Ubuntu 8: Difference between revisions

From CSLLabWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 238: Line 238:


=== Remove Compiz ===
=== Remove Compiz ===
* apt-get remove --purge compiz compiz-core compiz-fusion-plugins-extra compiz-fusion-plugins-main compiz-gnome compiz-plugins compizconfig-backend-gconf libcompizconfig0 libdecoration0 libx11-xcb1
* apt-get remove --purge compiz compiz-core compiz-fusion-plugins-extra compiz-fusion-plugins-main compiz-gnome compiz-plugins compizconfig-backend-gconf libcompizconfig0 libdecoration0 libx11-xcb1 mesa-utils


=== Printing (CUPS) ===
=== Printing (CUPS) ===
Line 255: Line 255:
Model: Lexmark T642 (B&W)
Model: Lexmark T642 (B&W)
Trays: 1
Trays: 1
</pre></code>
* apt-get install hplip libcupsys2-dev cupsys-bsd openssl libjpeg62-dev libsnmp-dev libtool libusb-dev libsane-dev sane-utils
* hp-setup
<code><pre>
root@clarke:/etc/cups# hp-setup
HP Linux Imaging and Printing System (ver. 2.8.2)
Printer/Fax Setup Utility ver. 7.0
Copyright (c) 2001-7 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
warning: No display found. Reverting to interactive mode.
HP Linux Imaging and Printing System (ver. 2.8.2)
Services and Status Daemon ver. 9.3
Copyright (c) 2001-7 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)
--------------------------
| CHOOSE CONNECTION TYPE |
--------------------------
  Num.            Connection Type  Connection Type Description           
  ---------------  ---------------  ----------------------------------------
  0*              usb              Universal Serial Bus (USB)             
  1                net              Network/Ethernet/Wireless (direct     
                                    connection or JetDirect)               
  2                par              Parallel Port (LPT:)                   
Enter number 0...2 for connection type (q=quit, enter=usb*) ? 1
Using connection type: net
--------------------
| DEVICE DISCOVERY |
--------------------
Using device: hp:/net/HP_Color_LaserJet_4500?ip=10.20.3.6
Setting up device: hp:/net/HP_Color_LaserJet_4500?ip=10.20.3.6
-
help
---------------------
| PRINT QUEUE SETUP |
---------------------
Please enter a name for this print queue (m=use model name:'HP_Color_LaserJet_4500'*, q=quit) ?
Using queue name: HP_Color_LaserJet_4500
warning: Found multiple possible PPD files
Choose a PPD file that most closely matches your device:
(Note: The model number may vary slightly from the actual model number on the device.)
Num.  PPD Filename                                          Description                           
----  -----------------------------------------------------  ----------------------------------------
0    lsb/usr/openprinting/HP/HP_Color_LaserJet_4500.ppd.gz  HP Color LaserJet 4500 v2014.200       
                                                            Postscript (recommended)               
1    lsb/usr/hpijs/HP/HP-Color_LaserJet_4500-hpijs.ppd      HP Color LaserJet 4500 Foomatic/hpijs, 
                                                            hpijs 2.8.2.10 - HPLIP 2.8.2           
2    drv:///hpijs.drv/hp-color_laserjet_4500-hpijs.ppd      HP Color LaserJet 4500 Foomatic/hpijs 
3    (None of the above match)                                                                     
Enter number 0...3 for printer (q=quit) ?help
error: Please enter a number between 0 and 3, or "q" to quit.
Enter number 0...3 for printer (q=quit) ?1
Enter a location description for this printer (q=quit) ?BSC 106
Enter additonal information or notes for this printer (q=quit) ?
Adding print queue to CUPS:
Device URI: hp:/net/HP_Color_LaserJet_4500?ip=10.20.3.6
Queue name: HP_Color_LaserJet_4500
PPD file: lsb/usr/hpijs/HP/HP-Color_LaserJet_4500-hpijs.ppd
Location: BSC 106
Information:
---------------------
| PRINTER TEST PAGE |
---------------------
Would you like to print a test page (y=yes*, n=no, q=quit) ? y
HP Linux Imaging and Printing System (ver. 2.8.2)
Testpage Print Utility ver. 5.0
Copyright (c) 2001-7 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
Printing test page to printer HP_Color_LaserJet_4500...
Test page has been sent to printer.
note: If an error occured, or the test page failed to print, refer to the HPLIP website
note: at: http://hplip.sourceforge.net for troubleshooting and support.
Done.
Done.
</pre></code>
</pre></code>



Revision as of 18:45, 3 September 2009

Installation and Configuration

Installation i386 (32-bit)

  1. Download and burn the latest Ubuntu Server-Edition LTS ISO for i386 (8.04.3 used for these instructions)
  2. Boot from CD

Installation x86_64 (64-bit)

  1. Download and burn the latest Ubuntu Server-Edition LTS ISO for x86_64 (amd64) (8.04.3 used for these instructions)
  2. Boot from CD


Installation (both 32 and 64 bit)

  1. Select "English"
  2. Select "Install Ubuntu Server"
  3. Select "English"
  4. Select "United States"
  5. Detect keyboard layout -> NO
  6. Select "USA"
  7. Select "USA"
  8. !!! It will now attempt to use DHCP.. cancel this or select "Go Back" on the following screen
  9. Select "Configure network manually"
    1. Enter the IP address of the workstation. Ex: 10.20.3.15
    2. Enter the Netmask of "255.255.255.0"
    3. Enter the Gateway of "10.20.3.1"
    4. Enter the Nameservers "10.20.70.16 10.20.70.17"
  10. Hostname: Set the FQDN of the machine as the hostname. Ex: clarke.cs.transy.edu
  11. Select "Eastern" time zone

Partitioning (Single Disk)

  1. Select the "Manual" method
  2. Use the arrow keys to highlight the disk (usually sda) and press enter
  3. Confirm the dialog to create a new empty partition table.
  4. Select the "FREE SPACE" and press enter.
  5. Create the following partitions:
    1. (TotalSpace - 2 GB), primary, mountpoint: /, use as: ext3, options: bootable
    2. 2 GB, logical, use as: swap
  6. Select "Finish Partitioning" and write the changes to disk

Partitioning (Software RAID 1)

  1. Select the "Manual" method
  2. Use the arrow keys to highlight each disk and press enter
  3. Confirm the dialog to create a new empty partition table on both drives.
  4. Select the "FREE SPACE" on each drive and create a TotalSize - 2gb primary partition
  5. Select Use as: Physical volume for RAID
  6. Select "Done setting up partition"
  7. Select the "FREE SPACE" below the partition you just created
  8. Use the remaining space on that first drive for another primary partition
  9. Select Use as: Physical volume for RAID
  10. REPEAT for second drive
  11. Select "Configure software RAID" at the top
  12. Confirm the changes (which have to be committed before configuring RAID)
  13. Select "Create MD Device"
  14. Select "RAID1"
  15. Number of active devices: 2
  16. Number of spare devices: 0
  17. Select /dev/sda1 and /dev/sdb1 then continue
  18. Create a second MD Device with /dev/sda2 and /dev/sdb2 just as the previous 5 steps
  19. Select "Finish"
  20. In the partitioner, select the first RAID device and Use as: ext3, Mount point: /
  21. Lastly, select the second RAID device and Use as: swap area then select "Finish partitioning and write changes" to disk at the bottom.


Finish Up

  1. Full name for new user: lab
  2. Username for your account: lab
  3. Password: lab (this user will be deleted later)
  4. Verify Password
  5. Leave the HTTP proxy box empty and select "Continue"
  6. Note: If it freezes "Scanning the mirror" unplug and replug the ethernet cable once.
  7. Software to install: Select "OpenSSH server" and select "Continue"
  8. The system will finish configuring and ask you to "Continue" before it reboots.

Configuration (via SSH)

  • This section is done via SSH as a convenience for installing multiple systems.. but can be done from the keyboard.
  1. ssh lab@HOST.cs.transy.edu
  2. sudo su -
  3. passwd root (set the current root password)
  4. exit
  5. exit
  1. ssh root@HOST.cs.transy.edu
  2. userdel lab
  3. rm -rf /home/lab
  4. Transfer or enter the following into /etc/apt/sources.list:
  • 32-bit:
deb http://babbage.cs.transy.edu/ubuntu-i386/ hardy main restricted universe multiverse
deb http://babbage.cs.transy.edu/ubuntu-i386/ hardy-updates main restricted universe multiverse
deb http://babbage.cs.transy.edu/ubuntu-i386/ hardy-security main restricted universe multiverse

#deb http://babbage.cs.transy.edu/ubuntu-i386/ hardy-backports main restricted universe multiverse
#deb http://babbage.cs.transy.edu/ubuntu-i386/ hardy-proposed main restricted universe multivers
  • 64-bit:
deb http://babbage.cs.transy.edu/ubuntu-amd64/ hardy main restricted universe multiverse
deb http://babbage.cs.transy.edu/ubuntu-amd64/ hardy-updates main restricted universe multiverse
deb http://babbage.cs.transy.edu/ubuntu-amd64/ hardy-security main restricted universe multiverse

#deb http://babbage.cs.transy.edu/ubuntu-amd64/ hardy-backports main restricted universe multiverse
#deb http://babbage.cs.transy.edu/ubuntu-amd64/ hardy-proposed main restricted universe multivers
  1. apt-get update
  2. apt-get upgrade
  3. apt-get dist-upgrade

Switch to Generic Kernel

  • Since the Ubuntu kernels have virtualization built in which is not compatible with nvidia drivers. Even after this is resolved, it is still nice to run the official kernel.org generic sources. Very compatible.
  1. uname -a
  2. apt-get install linux-image-generic linux-doc-2.6.XX linux-source-2.6.XX (replace XX with the sub-version output from uname)
  3. apt-get remove linux-image-2.6.XX-YY-server --purge (again XX from uname)
  • REBOOT!
  1. ssh root@HOST.cs.transy.edu

Configuring LDAP Authentication

  • First we need to get GDM (the graphical login) and its dependencies installed so..
  1. apt-get install gdm
  1. apt-get install auth-client-config libpam-ldap libnss-ldap ldap-auth-client ldap-auth-config
    1. LDAP server Uniform Resource Identifier: ldap://10.20.3.8
    2. Distinguished name of the search base: dc=cs,dc=transy,dc=edu
    3. LDAP version to use: 3
    4. Make local root Database admin: NO
    5. Does the LDAP database require login?: NO
  1. Edit /etc/ldap.conf and change the following values:
    1. host 10.20.3.8
    2. base dc=cs,dc=transy,dc=edu
    3. uri ldap://10.20.3.8
  1. Edit /etc/ldap/ldap.conf
    1. BASE dc=cs,dc=transy,dc=edu
    2. URI ldap://10.20.3.8
  1. Edit /etc/auth-client-config/profile.d/transy
[openldap]
nss_passwd=passwd: ldap files
nss_group=group: ldap files
nss_shadow=shadow: ldap files
pam_auth=auth       required     pam_env.so
        auth       sufficient   pam_unix.so likeauth nullok
        auth       sufficient   pam_ldap.so use_first_pass
        auth       required     pam_deny.so
pam_account=account    sufficient   pam_unix.so
        account    sufficient   pam_ldap.so
        account    required     pam_deny.so
pam_password=password   sufficient   pam_unix.so nullok md5 shadow use_authtok
        password   sufficient   pam_ldap.so use_first_pass
        password   required     pam_deny.so
pam_session=session    required     pam_limits.so
        session    required     pam_unix.so
        session    optional     pam_ldap.so

  1. auth-client-config -a -p transy
  2. Add the following line near the very top of /etc/pam.d/gdm AND /etc/pam.d/login
auth    optional        pam_group.so
  1. Add the following to the BOTTOM of /etc/security/group.conf:
# This will force all users that logon into these groups
login;*;*;Al0000-2400;cdrom,floppy,plugdev,audio,dip
kdm;*;*;Al0000-2400;cdrom,floppy,plugdev,audio,dip,video
gdm;*;*;Al0000-2400;cdrom,floppy,plugdev,audio,dip,video
  1. Test LDAP authentication - if "id USERNAME" returns with info about the user... all is good.
root@clarke:~# id kmoorman
uid=1129(kmoorman) gid=110(faculty) groups=110(faculty),800(camp),2100(linux)

Filesystems

  1. apt-get install nfs-common
  2. mkdir /classes
  3. mkdir /labdata
  4. Edit /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/sda1       /               ext3    relatime,errors=remount-ro 0       1
/dev/sda5       none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0

# NFS Filesystems
10.20.3.8:/data/exportfs/home           /home           nfs     defaults,rw
10.20.3.8:/data/exportfs/classes        /classes        nfs     defaults,rw
10.20.3.8:/data/exportfs/labdata        /labdata        nfs     defaults,rw
  1. mount -a
  2. Ensure the NFS filesystems loaded with "ls /home" "ls /classes" "ls /labdata"

Install Software

  • scp or download jdk-6u10-docs.zip to /tmp
apt-get install amarok mplayer firefox thunderbird blackbox fluxbox gimp blender vim emacs xemacs21 nano gedit nedit jedit gcc php5 perl ruby python audacity pidgin gdb xfce4 vlc openoffice.org hpijs cupsys swi-prolog sun-java6-jdk sun-java6-doc sun-java6-demo htop screen kdm mutt cmucl eclipse libglui-dev libglui2c2 libxi-dev libxmu-dev libglut3-dev libglut3 spim tk make ant xorg k3b kubuntu-desktop ubuntu-desktop mesa-utils nfs-common ffmpeg flashplugin-nonfree sun-java6-plugin mozilla-plugin-vlc alsa-utils lbreakout2 subversion subversion-tools patch libsvn-perl libsvn-ruby python-subversion g++ gcc gcc-4.2-doc libstdc++6-4.2-doc build-essential libglui-dev libglui2c2 libxi-dev libxmu-dev mysql-client lynx
  • Dialog from above command:
    • Default display manager: choose "gdm"
    • Accept the Java license

Graphics Drivers

Nvidia

  1. Download the appropriate installer from [1] (based on GPU and architecture)
  2. /etc/init.d/gdm stop
  3. chmod +x NVIDIA-Linux-x86-185.18.36-pkg1.run
  4. ./NVIDIA-Linux-x86-185.18.36-pkg1.run
  5. Accept the license
  6. Attempt to download a module, but you will most likely have to have it compile one.
  7. At the end of installation, allow the installer to run "nvidia-xconfig"
  8. echo "nvidia" >> /etc/modules
  9. modprobe nvidia
  10. /etc/init.d/gdm start

Northbridge (A)

Which series???
GeForce2 MX 100/200 -> 96.43.xx series


ATI

Remove Compiz

  • apt-get remove --purge compiz compiz-core compiz-fusion-plugins-extra compiz-fusion-plugins-main compiz-gnome compiz-plugins compizconfig-backend-gconf libcompizconfig0 libdecoration0 libx11-xcb1 mesa-utils

Printing (CUPS)

Printer Info:

Name: Starkweather
Host: starkweather.cs.transy.edu
IP: 10.20.3.7
Model: HP Color Laserjet 4500N
Trays: 1

Name: Watson
Host: watson.cs.transy.edu
IP: 10.20.3.6
Model: Lexmark T642 (B&W)
Trays: 1
  • apt-get install hplip libcupsys2-dev cupsys-bsd openssl libjpeg62-dev libsnmp-dev libtool libusb-dev libsane-dev sane-utils
  • hp-setup
root@clarke:/etc/cups# hp-setup 

HP Linux Imaging and Printing System (ver. 2.8.2)
Printer/Fax Setup Utility ver. 7.0

Copyright (c) 2001-7 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

warning: No display found. Reverting to interactive mode.

HP Linux Imaging and Printing System (ver. 2.8.2)
Services and Status Daemon ver. 9.3

Copyright (c) 2001-7 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)


--------------------------
| CHOOSE CONNECTION TYPE |
--------------------------

  Num.             Connection Type  Connection Type Description             
  ---------------  ---------------  ----------------------------------------
  0*               usb              Universal Serial Bus (USB)              
  1                net              Network/Ethernet/Wireless (direct       
                                    connection or JetDirect)                
  2                par              Parallel Port (LPT:)                    

Enter number 0...2 for connection type (q=quit, enter=usb*) ? 1

Using connection type: net

--------------------
| DEVICE DISCOVERY |
--------------------

Using device: hp:/net/HP_Color_LaserJet_4500?ip=10.20.3.6

Setting up device: hp:/net/HP_Color_LaserJet_4500?ip=10.20.3.6


-
help

---------------------
| PRINT QUEUE SETUP |
---------------------


Please enter a name for this print queue (m=use model name:'HP_Color_LaserJet_4500'*, q=quit) ?
Using queue name: HP_Color_LaserJet_4500

warning: Found multiple possible PPD files

Choose a PPD file that most closely matches your device:
(Note: The model number may vary slightly from the actual model number on the device.)

Num.  PPD Filename                                           Description                             
----  -----------------------------------------------------  ----------------------------------------
0     lsb/usr/openprinting/HP/HP_Color_LaserJet_4500.ppd.gz  HP Color LaserJet 4500 v2014.200        
                                                             Postscript (recommended)                
1     lsb/usr/hpijs/HP/HP-Color_LaserJet_4500-hpijs.ppd      HP Color LaserJet 4500 Foomatic/hpijs,  
                                                             hpijs 2.8.2.10 - HPLIP 2.8.2            
2     drv:///hpijs.drv/hp-color_laserjet_4500-hpijs.ppd      HP Color LaserJet 4500 Foomatic/hpijs   
3     (None of the above match)                                                                      

Enter number 0...3 for printer (q=quit) ?help
error: Please enter a number between 0 and 3, or "q" to quit.

Enter number 0...3 for printer (q=quit) ?1
Enter a location description for this printer (q=quit) ?BSC 106
Enter additonal information or notes for this printer (q=quit) ?

Adding print queue to CUPS:
Device URI: hp:/net/HP_Color_LaserJet_4500?ip=10.20.3.6
Queue name: HP_Color_LaserJet_4500
PPD file: lsb/usr/hpijs/HP/HP-Color_LaserJet_4500-hpijs.ppd
Location: BSC 106
Information: 
 

---------------------
| PRINTER TEST PAGE |
---------------------


Would you like to print a test page (y=yes*, n=no, q=quit) ? y

HP Linux Imaging and Printing System (ver. 2.8.2)
Testpage Print Utility ver. 5.0

Copyright (c) 2001-7 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.


Printing test page to printer HP_Color_LaserJet_4500...
Test page has been sent to printer.

note: If an error occured, or the test page failed to print, refer to the HPLIP website
note: at: http://hplip.sourceforge.net for troubleshooting and support.

Done.
Done.


Hosts

At Boot

  1. update-rc.d -f apache2 remove