Introduction exercises:


1 – creating an account for yourself and the exim user



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 hand-built 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 (we're going to install the useful ftp/http tool curl)

pkg_add ftp://196.200.223.1/pub/FreeBSD/releases/i386/7.1-RELEASE-dvd1/packages/ftp/curl-7.18.0.tbz
4- install from ports...
First we need to configure the hosts to pull ports from a local source.
Edit:
/etc/make.conf 

add:
PERL_VERSION=5.8.8
MASTER_SITE_OVERRIDE="ftp://196.200.219.200/distfiles/"

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.sse.mtg.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.mtg.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