Project: Install and Configure Ubuntu

Due: 2/28/12

Read on Safari  

Beginning Ubuntu Linux, Chapter 4: Installing Ubuntu
Quickie chapter on installing (if you get stuck, read this chapter)
http://bit.ly/xujnrF

Pre-install  

Door code for SEM 342D is posted on Web Campus under the Syllabus tab

Get a copy of Linux, if you don't have one. Ubuntu 11.10 64-bit is recommended.
You're welcome to choose another flavor of Linux if you're willing to be on your own for support.
Ubuntu 11.10 CDs are available in the lab. Leave the CD by the printer in the lab when finished.

How to download and burn an ISO to CD:
http://help.ubuntu.com/community/BurningIsoHowto

Note the IP address (see label) of your machine: 134.197.34.

Install

Press <F12> Boot Options until you hear a beep and select Onboard or USB CD-ROM Drive    

 

Warning: If you are using one of the T3500s your screen will go blank unless you: 

Hit <ESC> as soon as you see the Ubuntu splash screen

Hit <F6> and select nomodeset (Press <ESC> to get out of the menu)

 

Boot the 11.10 CD – double-click “Install Ubuntu 11.10” icon and take all the defaults except the following:

When you get to the Installation Type screen select: “Something Else” to specify partitions manually

Click “Install Now” when done partitioning

Enter what you want for your User Name and Password

Computer name: cselab(n)      # Get name from the label on your computer
Pick a different name if it says you name is already taken

Reboot when done

On T3500s add nomodeset to the kernel line in GRUB:

·         Press E to edit

·         Add nomodeset to the end of the linux line

·         Press <F10> to boot

Post-install

Add Terminal to launcher panel:    
Dash Home (the Ubuntu circle symbol in the upper left corner) -> type: Terminal

Double click Terminal then right click on it in the launcher and select “Keep in launcher”

You'll need to be root to run the commands below:
sudo su -   # enter your password
id          # make sure your UID changed to 0 (root)

Configure TCP Wrappers: (Note the >> to append to the file)
echo "ALL:ALL" >> /etc/hosts.deny
echo "ALL: 127.0.0.1" >> /etc/hosts.allow
echo "sshd: 134.197.40. 134.197.34." >> /etc/hosts.allow

Configure /etc/host, ntp and openssh:
apt-get –y install vim openssh-server ntp
vim /etc/hosts
Change the 127.0.0.1 on the second line to your IP address
134.197.34.x   cselab(n) # where x is your IP and n is your machine number
ssh to your hostname (cselabn) to make sure you can login 
Type exit to close the connection
 
Configure Automatic Updates:

Dash Home -> type: Update Manager -> Click the Settings Button -> Click the Updates Tab -> When there are security updates -> Download and install automatically
Click Close without installing updates for now
 
Activate the proprietary graphics driver: 

Dash Home -> type: System Settings -> Additional Drivers -> click on the recommended driver -> Click Activate

Configure Printer: (skip this if you’re installing off-campus)
Dash Home -> type: System Settings -> Printing
Add -> Network printer -> Find Network Printer -> Wait for HP Laser Jet 2420 to appear and click it -> Forward -> Duplex Unit -> Forward -> Apply -> Print Test Page

Activate the power saver: 

Dash Home -> type: System Settings -> Power -> Suspend when inactive for 1 hour
 
Backup your ssh keys to another system:
cd /etc/ssh
tar cvzf labkeys.tgz ssh_host* 
scp labkeys.tgz user@cse.unr.edu:     # make sure to type the : at the end
Restore the keys if you ever have to reload your system.
 
Update Your System:
apt-get update; apt-get –y dist-upgrade
reboot

Turn In on Web Campus

cd             # return to your home directory
script install.txt
head /etc/hosts /etc/issue
tail –n 3 /etc/hosts.allow /etc/hosts.deny
uname -a                      
exit
 

Submit install.txt to WebCampus

Extra Credit (3 points)

Download, burn, and install the server version of Ubuntu

Tell me how to install the printer and turn on automatic updates that we used the GUI for in the section above.

This extra credit can be earned up till the end of class.

Remember: Google is your friend when you get stuck.