February 6, 2008

Great tutorial about the BIND dns server

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

Here is a great tutorial about the Bind dns server:

February 1, 2008

Add an IP to CentOS 5

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

I need more than one ssl website on a new CentOS 5 machine. Here is how to add another ip address to eth0.

January 15, 2008

CentOS 5 + vsftpd + lock some users in their home directory ?

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

vi /etc/vsftpd/vsftpd.conf



vi /etc/vsftpd/chroot_list

[restricted username]

service vsftpd restart

done! 😉

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:

July 12, 2007


Filed under: Programming — dh @ 2:51 pm

Found a really cool php class today.



  • Can send emails with multiple TOs, CCs, BCCs and REPLY-TOs
  • Redundant SMTP servers
  • Multipart/alternative emails for mail clients that do not read HTML email
  • Support for 8bit, base64, binary, and quoted-printable encoding
  • Uses the same methods as the very popular AspEmail active server (COM) component
  • SMTP authentication
  • Word wrap
  • Address reset functions
  • HTML email
  • Tested on multiple SMTP servers: Sendmail, qmail, Postfix, Imail, Exchange, etc
  • Works on any platform
  • Flexible debugging
  • Custom mail headers
  • Multiple fs, string, and binary attachments (those from database, string, etc)
  • Embedded image support

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

May 14, 2007

mySQL left join on more than one table? yes!

Filed under: Programming — dh @ 11:04 am

I never knew you could do this till the other day… Man that makes it easy!

SELECT products.product_ID, manufacturer.manufacturer_name, category.category_name
FROM products
left join manufacturer ON products.manufacturer_ID = manufacturer.manufacturer_ID
left join category ON products.category_ID = category.category_ID
ORDER BY products.product_ID

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!

« Previous PageNext Page »