view · edit · print · history

FreeBSD

Quick Guide

Introduction

FreeBSD is an advanced operating system for x86 compatible (including Pentium and Athlon), amd64 compatible (including Opteron, Athlon 64, and EM64T), Alpha/AXP, IA-64, PC-98 and UltraSPARC?® architectures. It is derived from BSD, the version of UNIX® developed at the University of California, Berkeley. It is developed and maintained by a large team of individuals. Additional platforms are in various stages of development.

LiveCDs

FreeSBIE is a LiveCD based on the FreeBSD Operating system, or even easier, a FreeBSD-based operating system that works directly from a CD, without touching your hard drive.

Package Management

FreeBSD makes packagement easy and simple. Check out FreshPorts.org? for all of your FreeBSD needs.

/usr/libexec/locate.updatedb will update the locate database.

pkg_info is a very handy command, it will give you information about the packages on the machine.

The pkg_add command is used to extract packages that have been previously created with pkg_create

pkg_create -- a utility for creating software package distributions. The pkg_create command is used to create packages that will subsequently be fed to one of the package extraction/info utilities. The input description and command line arguments for the creation of a package are not really meant to be human-generated.

pkg_add -r <package name> This will use the remote fetching feature. This will aslo determine the appropriate objformate and release and then fetch and install the package.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html

Logging with syslogd

Simply edit /etc/syslog.conf with #vi /etc/syslog.conf

 # uncomment this to enable logging of all log messages to /var/log/all.log
 # touch /var/log/all.log and chmod it to mode 600 before it will work
 *.*                     /var/log/all.log

Now you need to uncomment the previous line to enable syslog to log to a central logfile. Once uncommented you will need to #touch /var/log/all.log and now chmod 600 it. #chmod 600 /var/log/all.log and restart syslogd #killall -HUP syslogd. Now to test if it is working just #cat /var/log/all.log

PortSentry

To Start PortSentry? /usr/local/psionic/portsentry/portsentry -tcp

If you create a blackhole route delete -net $IPINBLACKHOLE -netmask 255.255.255.255 http://www.giac.org/practical/gsec/David_Sarmanian_GSEC.pdf

In order to get real-time scan output simply #cat /var/log/messages

Mail

/var/spool/clientmqueue

Security Links for FreeBSD

Installing Flash Animation in Firefox 1.0

http://freebsdaddicts.org/forum/viewtopic.php?pid=2196 http://freebsd.kde.org/howtos/konqueror-flash.php

Process Management in FreeBSD

http://www.informit.com/articles/article.asp?p=366888&rl=1

Windows Managers

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x11-wm.html http://www.vmunix.com/fbsd-book/Xwindows.phtml#ch-3

References

FreeBSD.org
FreeSBIE.org
FreshPorts.org
FreeBSD Handbook

Nixes changes · ALL changes
Page last modified on April 27, 2005, at 10:51 PM