Welcome to damond.com!

This site is a collection of my personal notes and articles regarding Virtualization, FreeBSD, Linux, Solaris, and Windows. These are all things that I have done. These notes exist mainly for myself but hopefully they may help you, too.

Virtualization and Server Consolidation is the primary focus. My background and passion is with System Administration and End-User Support. As such, almost everything here is systems related.

Enjoy!

-- Damond

Windows Command Line: Synchronize Time

simple command to resynchronize the time with the default time server (time.windows.com)

useful when the time goes out of sync after using a restricted user account for a while.

will still need Administrator privileges. but this is perfect if you run as a restricted user. just use the runas command beforehand.

C:\> w32tm /resync

.procmailrc must NOT be world readable or writeable

When a user wants to filter messages with the ".procmailrc" file, make sure that the file is NOT world readable or writeable. Otherwise forwarding will not work.

Or put another way, make sure ONLY the user has access to the file.

$ ls -la .procmailrc
-rw------- 1 user group 86 Jun 12 10:00 .procmailrc

Windows XP: firewall command line

The "netsh" command is useful for many network tasks. Because it can be used at the command line means it can be used in scripts.

The following command shows what firewall rules are currently applied to the system.

C:\>netsh firewall show service verbose = enable

The following is an example of setting a firewall rule with the command line. It will set the Remote Desktop service (port 3389) to answer only to IP 192.168.0.100

C:\>netsh firewall set service profile=ALL type=REMOTEDESKTOP mode=ENABLE scope=CUSTOM addresses=192.168.0.100

FreeBSD: 'httpready' AcceptFilter for Apache 2.2 error

To fix the error on FreeBSD, you need to load the accf_http kernel module

# kldload accf_http

# grep accf /boot/defaults/loader.conf
accf_data_load="NO" # Wait for data accept filter
accf_http_load="NO" # Wait for full HTTP request accept filter

add the second to /boot/loader.conf with 'YES' to enable permanently.

FreeBSD: apache suexec and portupgrade

Reference: http://lists.freebsd.org/pipermail/freebsd-questions/2004-June/048913.html

> Hi, I want to compile apache2 from ports with suexec.
> Yet there is no mention of it at all in the Make file.
>
> It is in Makefile.doc but i'm not sure if thats what i should beusing.
>
> Can someone fill me in please.

A brief look at www/apache2/Makefile.modules suggests that you just need to
specify "WITH_SUEXEC=yes" in the build environment. Makefile.modules gets
included from Makefile.

This should work:

# make WITH_SUEXEC=yes install

Or if you use portupgrade and friends,

# portinstall -M WITH_SUEXEC=yes www/apache2


Copyright © 1999-2008 Damond Choi. All rights reserved.
Syndicate content