| 8 | |
| 9 | == Working with FreeBSD == |
| 10 | |
| 11 | === First things first === |
| 12 | |
| 13 | FreeBSD comes with excellent documentation. This includes complete manual pages that document everything from syscalls to command line utilities and a handbook that covers basic system administration tasks. |
| 14 | |
| 15 | * [http://www.freebsd.org/cgi/man.cgi Web Interface for the FreeBSD man pages] |
| 16 | * [http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ The FreeBSD Handbook] |
| 17 | * [http://www.freebsd.org/docs.html All FreeBSD documentation resources] |
| 18 | |
| 19 | === Binary Packages === |
| 20 | |
| 21 | Binary packages for FreeBSD 7.3-RELEASE are mirrored on scratch. In order to install packages, the environment variable PACKAGEROOT needs to be set. This should be set by default on all supported FreeBSD images. To check if this is set, simple echo the variable: |
| 22 | |
| 23 | {{{ |
| 24 | node0 ~]$ echo $PACKAGEROOT |
| 25 | http://scratch |
| 26 | [jjh@node0 ~]$ |
| 27 | }}} |
| 28 | |
| 29 | You can now use the [http://www.freebsd.org/cgi/man.cgi?query=pkg_add&sektion=1 pkg_add] command to install packages. Using the '-r' option instructs [http://www.freebsd.org/cgi/man.cgi?query=pkg_add&sektion=1 pkg_add] to fetch the package from the remote host defined by the PACKAGEROOT variable. This command needs to be run as root, so we use the sudo command. |
| 30 | |
| 31 | {{{ |
| 32 | [jjh@node0 ~]$ sudo pkg_add -r tmux |
| 33 | Fetching http://scratch/pub/FreeBSD/ports/i386/packages-7.3-release/Latest/tmux.tbz... Done. |
| 34 | [jjh@node0 ~]$ |
| 35 | }}} |
| 36 | |
| 37 | To view the list of available packages, you can go to: |
| 38 | * [http://ftp3.freebsd.org/pub/FreeBSD/ports/i386/packages-7.3-release/ Packages available for FreeBSD 7.3] |
| 39 | * [http://ftp3.freebsd.org/pub/FreeBSD/ports/i386/packages-8.1-release/ Packages available for FreeBSD 8.1] |