I run 2 FreeBSD servers, the server hosting this website running on VMWare and a dev server at work.
Links to FreeBSD tutorials incoming
Misc. FreeBSD info/commands (mostly for my reference)
How to use a patch file ex. drupal.org
cd /path/to/drupal
wget -q -O - http://drupal.org/files/issues/anonymous-contact-5.x_1.patch | patch -p0
Look at connections to a port with tcpdump
tcpdump -i em0 -v dst port 25
Misc. backup stuff
tar czvf path/to/backup.tar.gz path/to/dir/
mysqldump -u root -h localhost -p database > database.sql
Start mySQL
/usr/local/etc/rc.d/mysql-server start
/usr/local/bin/mysqld_safe
Folder sizes
du -h -d 1 /home/dir
Slice sizes
df -H
Portsnap
first time:
portsnap fetch && portsnap extract
afterwards:
portsnap fetch && portsnap update
Update ports tree
portsdb -Uu
Upgrade ports
portupgrade -arR
sync the time
/etc/rc.d/ntpdate start > /dev/null
update the locate db
/usr/libexec/locate.updatedb
find vulnerable ports
portaudit
or
portversion -l “<”
Update portaudit
portaudit -F
find fastest cvsup
fastest_cvsup -c US
CVSup ports/source update
cvsup -h cvsup7.freebsd.org /usr/share/examples/cvsup/ports-supfile
cvsup -h cvsup7.freebsd.org /usr/share/examples/cvsup/stable-supfile







