Tuesday, October 30, 2007

After MySQL installation, do

mysql_install_db.

It wasn't so for some time, but now, for reasons unknown to me, it has to be done under FreeBSD.

more on the subject http://dev.mysql.com/doc/refman/5.0/en/unix-post-installation.html

also, chmod 777 /var/tmp.

Turn on SMART capability on a HDD

smartctl -s on /dev/da0

A nice network monitoring tool

A nice network monitoring tool is Ntop. Has its own webserver, and pretty good stats, to see which host is doing lots of traffic, what traffic it is, etc. Great!

DHCP - assign a fixed ip adress to a particular host

Been a while.. So, today I had to assign a fixed ip adress to one particular host, 'cause I had to make host-specific firewall rules, and make sure user doesn't get around them as easily as getting a new DHCP ip address. Here's a config I used (thanks to wikipedia)

host saturn {
hardware ethernet 00:50:04:53:F8:D2;
fixed-address 192.168.42.3;
}