FreeBSD

From Hackepedia
Jump to navigationJump to search

FreeBSD is an operating system based on 4.4BSD lite2.

FreeBSD 7.2-RELEASE

The FreeBSD Project

The current version of FreeBSD is 7.2-RELEASE

FreeBSD Release page

rc.conf recommendations

/etc/rc.conf recommendations:

This will stop syslog from opening a socket. This is highly recommended unless you do remote syslogging. If you're unsure, you can safely make this change.

syslogd_flags="-ss"

ports

Cleanup hints if you're using ports. Once in a while look for:

# ls /usr/ports/distfiles/

which is leftover packages you've downloaded to install. You can remove these if the install is complete

# find /usr/ports/ -name work -type d -print 

this is old work directories left around from an install you've done. When you install from ports if you do:

# make install distclean

the distclean will clean this work directory as well as the distfiles.

Also make sure you have a regular patching process.


FreeBSD:php Help with installing php from ports on FreeBSD. FreeBSD:apache22:ssl Getting SSL working with apache22.

Hints

Unlike cat(1) on most OS', the cat on FreeBSD can't handle cat'ing directories:

$ cat elcheapo/
Ê
 .

and then the terminal will appear to lock up. If you type "reset" (even though you will not see your typing) when this happens you will rescue your session so you don't have to quit it and start over.


Patching

# cat /bin/update
portsnap fetch && portsnap update && pkg_version  -v -l "<"
# cat /bin/upgrade
portaudit -Fda
/usr/local/sbin/portupgrade -a

Once you have these two scripts, run each at your convenience.