Introduction exercises:


1 – creating an account for yourself



Below create the exim user account and your own personal user account as well using the following commands:

The first command created the account exim with no home directory and a UID of 90. The second command created your personal userid that you will use during the rest of this workshop, automatically setup a home directory for the userid ("-m" option), placed the user in the wheel and exim groups, and set the default shell to be csh.

By placing your user in the wheel group this allows you to become the superuser root by using the su command. For more information on the pw command type man pw at the prompt.

Now you need to set the password for your new account so that you can login on that account. To do this type:

Follow the prompts to enter in a new password. Pick something secure...



2 – filesystem manipulation



We will be placing source for programs during the workshop in a directory called /usr/local/src. See the Installation Notes section below for more information on partition slices.

To create /usr/local/src do the following:

Take a look at what's in /usr/local/src (which is nothing):



3 - Installing a package via ftp



pkg_add ftp://noc.ws.afnog.org/pub/FreeBSD/ports/i386/packages-6.2-release/Latest/ispell-3.2.06_15.tbz
pkg_add ftp://noc.ws.afnog.org/pub/FreeBSD/ports/i386/packages-6.2-release/Latest/joe-2.9.8.tbz
4- install from ports...
First we need to configure the hosts to pull ports from a local source.
Edit:
/etc/make.conf 
add: MASTER_SITE_BACKUP=ftp://noc.e1.ws.afnog.org/distfiles/${DIST_SUBDIR}/
MASTER_SITE_FREEBSD=yes
now we can install something from ports: # cd /usr/ports/shells/bash # make # make install # make clean VI exercises:

#1 login as root

pwd

should be in /root

lets create a .forward file...

type vi

i to insert

enter email address you want to forward to,

root@noc.e1.ws.afnog.org

hit escape to exit from insert mode

enter :wq .forward to write the file out as .forward and exit

#2

lets add a second email address to the .forward file

vi .forward

$ to move to end of line

a to start inserting text to the right of the cursor

hit enter

enter email address root@noc.ws.afnog.org

hit escape

enter :wq to write and quit

#3

lets delete the first entry in the .forward file

vi .forward

enter dd to remove the first line

:wq to write and quit


#4

Remove the .forward file

rm .forward