The Network Management Lab pc1 10.10.0.1 pc2 10.10.0.2 pc3 10.10.0.3 pc4 10.10.0.4 pc5 10.10.0.5......

6
The Network Management Lab pc1 10.10.0.1 pc2 10.10.0.2 pc3 10.10.0.3 pc4 10.10.0.4 pc5 10.10.0.5 ... Virtual Servers Your Laptop

Transcript of The Network Management Lab pc1 10.10.0.1 pc2 10.10.0.2 pc3 10.10.0.3 pc4 10.10.0.4 pc5 10.10.0.5......

Page 1: The Network Management Lab pc1 10.10.0.1 pc2 10.10.0.2 pc3 10.10.0.3 pc4 10.10.0.4 pc5 10.10.0.5... Virtual Servers Your Laptop.

The Network Management Lab

pc110.10.0.1

pc210.10.0.2

pc310.10.0.3

pc410.10.0.4

pc510.10.0.5

...

Virtual Servers

Your Laptop

Page 2: The Network Management Lab pc1 10.10.0.1 pc2 10.10.0.2 pc3 10.10.0.3 pc4 10.10.0.4 pc5 10.10.0.5... Virtual Servers Your Laptop.

Our chosen platform is:

Ubuntu Linux, server edition, 32-bit, 10.04 LTS Not using GUI, administer using command line In production you may prefer 64-bit (x86_64) LTS = Long Term Support release

There are other platforms you could use CentOS / RedHat, FreeBSD, ...

This isn't a Unix admin course Worksheets are step by step Please help each other or ask us for help

Page 3: The Network Management Lab pc1 10.10.0.1 pc2 10.10.0.2 pc3 10.10.0.3 pc4 10.10.0.4 pc5 10.10.0.5... Virtual Servers Your Laptop.

You need to be able to...

Login using ssh putty.exe (Google for "putty ssh") connect to "pcX.ws.nsrc.org" (or 10.10.0.1-24)

Be root when necessary: sudo <cmd> "sudo bash" for root shell, ctrl-D to exit it You'll see # prompt for root, $ for normal user

Install packages

sudo apt-get install joe Edit files

[sudo] joe /etc/motd.tail

Page 4: The Network Management Lab pc1 10.10.0.1 pc2 10.10.0.2 pc3 10.10.0.3 pc4 10.10.0.4 pc5 10.10.0.5... Virtual Servers Your Laptop.

joe editor

Ctrl-C to quit without saving Ctrl-K X to quit and save Ctrl-K H for help

There's a reminder on the top row! Cursor keys work how you expect them! There's a quick reference PDF in the materials

Page 5: The Network Management Lab pc1 10.10.0.1 pc2 10.10.0.2 pc3 10.10.0.3 pc4 10.10.0.4 pc5 10.10.0.5... Virtual Servers Your Laptop.

Other tools

Terminate foreground program: ctrl-C (not Z) Rename and delete files

mv file file.bak rm file.bak

Start and stop services

/etc/init.d/apache2 restart service apache2 restart

Show running processes

ps auxwww | grep apache

Page 6: The Network Management Lab pc1 10.10.0.1 pc2 10.10.0.2 pc3 10.10.0.3 pc4 10.10.0.4 pc5 10.10.0.5... Virtual Servers Your Laptop.

Please now:

Login to your virtual server using ssh Install package 'joe'

sudo apt-get update sudo apt-get install joe

Create a file for the "message of the day" to identify your machine as yours

sudo joe /etc/motd.tail (Feel free to use vi or nano or pico or whatever)

Log out and login again