January 15, 2008

CentOS 5 + VMware Tools installation problem

Filed under: Server Admin — dh @ 2:17 am

Copied here so i wont lose it… 😉

Prior to installing the VMware Tools, there are a few things you want to do. The first step would be to install the kernel header files and a C compiler:

# yum install gcc gcc-c++ kernel-devel

The second thing would be to create a symbolic link pointing to your kernel header files:

# ln -s /usr/src/kernels/[your kernel version] /usr/src/linux

Now you’re ready to install the VMware Tools. From the VMware Server Console (with your virtual machine running), click on “VM => Install VMware Tools”……?. Nothing is supposed to be happening at this point, it’s just like you inserted a virtual CD. From the command line, mount the cdrom drive, copy the installation files to a directory on your virtual hard drive and untar them:

# mount /dev/cdrom /mnt/cdrom
# cd /mnt/cdrom
# cp VMwareTools-[version].tar.gz /tmp
# cd /tmp
# umount /mnt/cdrom
# tar zxf VMwareTools-[version].tar.gz

Execute the VMware Tools installation script:

# cd /tmp/vmware-tools-distrib
# ./

Go through the installation and answer all the questions. I’ve left every settings to its default value.

When you’re done, simply reboot your virtual machine. I’ve had a little problem with X as it wouldn’t start upon reboot. I just used the X configuration wizard (which launched automatically) to make some adjustments, rebooted the VM again and everything worked fine.

CentOS 5 + vsftpd + TLS/SSL

Filed under: Server Admin — dh @ 2:06 am

cd /etc/pki/tls/certs
make vsftpd.pem
cat /etc/pki/tls/certs/vsftpd.pem
openssl x509 -in /etc/pki/tls/certs/vsftpd.pem -noout -text
chmod 600 /etc/pki/tls/certs/vsftpd.pem
vi /etc/vsftpd/vsftpd.conf

[add to file]
# custom ssl config

[/add to file]

/etc/init.d/vsftpd restart

done! 🙂

More info:

January 11, 2008

VMware Server + CentOS 5 Install

Filed under: Server Admin — dh @ 5:23 pm

Here is a great post on installing VMware Server on CentOS 5:

June 26, 2007

Strip the passphrase from a server certificate

Filed under: Server Admin — dh @ 12:38 pm

/usr/bin/openssl rsa -in privkey.pem -out key.pem

March 2, 2007

High Gain Wi-Fi Antenna From A Wok?

Filed under: Server Admin — dh @ 11:29 am

I have to try this one day:

Cool stuff!

February 23, 2007

Backup MX with Postfix & Redhat ES4

Filed under: Server Admin — dh @ 3:11 pm

Moving to postfix from sendmail is wonderful. Here’s how to set up a backup mx for a remote server. If you have many backup mx’s to enter, use a new line and put whitespace in front of the domain. See the instructions in /etc/postfix/ for more details. Configure your dns with the appropriate mx records and then edit:


relay_domains = $mydestination
smtpd_recipient_restrictions = permit_mynetworks, check_relay_domains

Restart postfix with:

/sbin/service postfix restart

Go to the park and get some fresh air.

February 6, 2007

bsdftpd-ssl + Redhat ES4 / CentOS 4

Filed under: Server Admin — dh @ 12:10 pm

I needed to use encrypted ftp on a new server that we got. Here’s a quick way to install bsdftpd-ssl on Redhat ES4.

Download .rpm for Fedora Core2 from here.

rpm -e vsftpd
cd /usr/share/ssl/certs/
touch ftpd.pem
chmod 600 ftpd.pem
openssl req -new -x509 -nodes -days 3650 -out ftpd.pem -keyout ftpd.pem
rpm -iv bsdftpd-ssl*

Then to make the server daemon start automatically edit /etc/xinetd.d/bsdftpd-ssl and make disable = no instead of yes.


/sbin/service xinetd restart

All done! Do all of the above as root. You should be good to go.

January 30, 2007

Rackspace + RedHat ES3 + MySQL = Reliability

Filed under: Server Admin — dh @ 12:37 pm


November 21, 2006

Another picture worth a thousand words…

Filed under: Server Admin — dh @ 10:11 am


June 19, 2006

Spamassassin: FORGED_MUA_OUTLOOK score modification

Filed under: Server Admin — dh @ 3:16 pm

I updated /etc/mail/spamassassin/ with:


because I was getting alot of false positives with this rule. This rule originally had a score of 3.5 .

« Previous PageNext Page »