Category Archives: FreeBSD7
Automysqlbackup.sh.2.5 on FreeBSD
Automysqlbackup is a great tool. It’s setup and configuration can be found at many other sites. When you try to run it out of the box, you will get something like this:
./automysqlbackup.sh.2.5: Command not found.
To run it in FreeBSD, you need to edit a single line. Automysqlbackup.sh.2.5 is a bash script, and it references the [...]
Also posted in MySQL Leave a comment
FreeBSD time updates with ntpdate and ntpd
So FreeBSD’s time is out of wack. Two options:
1. ntpdate. This is manual. To run a time sync manually, just run
ntpdate -b pool.ntp.org
You can replace pool.ntp.org with whatever you want. To tell it to run whenever the system is booted, add this to /etc/rc.conf:
ntpdate_enable="YES"
ntpdate_hosts="[your ntp server]"
This works, but if you don’t reboot often, could be [...]
webalizer installation on freebsd 7
cd /usr/ports/www/webalizer
make
make install
make clean
rehash
mkdir /usr/local/www/stats
webalizer -o /usr/local/www/stats /var/log/httpd-access_log
After that, just added it to the root crontab
crontab -e
like this:
0 * * * * /usr/local/bin/webalizer -o /usr/local/www/stats /var/log/httpd-access_log > /var/log/webalizer-hourly
That runs every hour, so that the stats are kept up-to-date.
savecore? reboot after panic?
scary. I updated freebsd, and i can only think that i messed it up when i tried to “shutdown -h” to get it shutdown so i could reboot. anyways, when i rebooted, i saw this message. apparently there was a kernel dump on my swap drive. But problem is that i didn’t have enough room [...]
How to update my sparc FreeBSD install