Ubuntu 8: Difference between revisions
Jump to navigation
Jump to search
Line 151: | Line 151: | ||
kdm;*;*;Al0000-2400;cdrom,floppy,plugdev,audio,dip,video | kdm;*;*;Al0000-2400;cdrom,floppy,plugdev,audio,dip,video | ||
gdm;*;*;Al0000-2400;cdrom,floppy,plugdev,audio,dip,video | gdm;*;*;Al0000-2400;cdrom,floppy,plugdev,audio,dip,video | ||
</pre></code> | |||
# Test LDAP authentication - if "id USERNAME" returns with info about the user... all is good. | |||
<code><pre> | |||
root@clarke:~# id kmoorman | |||
uid=1129(kmoorman) gid=110(faculty) groups=110(faculty),800(camp),2100(linux) | |||
</pre></code> | </pre></code> |
Revision as of 23:34, 2 September 2009
Installation and Configuration
Installation i386 (32-bit)
- Download and burn the latest Ubuntu Server-Edition LTS ISO for i386 (8.04.3 used for these instructions)
- Boot from CD
Installation x86_64 (64-bit)
- Download and burn the latest Ubuntu Server-Edition LTS ISO for x86_64 (amd64) (8.04.3 used for these instructions)
- Boot from CD
Installation (both 32 and 64 bit)
- Select "English"
- Select "Install Ubuntu Server"
- Select "English"
- Select "United States"
- Detect keyboard layout -> NO
- Select "USA"
- Select "USA"
- !!! It will now attempt to use DHCP.. cancel this or select "Go Back" on the following screen
- Select "Configure network manually"
- Enter the IP address of the workstation. Ex: 10.20.3.15
- Enter the Netmask of "255.255.255.0"
- Enter the Gateway of "10.20.3.1"
- Enter the Nameservers "10.20.70.16 10.20.70.17"
- Hostname: Set the FQDN of the machine as the hostname. Ex: clarke.cs.transy.edu
- Select "Eastern" time zone
Partitioning (Single Disk)
- Select the "Manual" method
- Use the arrow keys to highlight the disk (usually sda) and press enter
- Confirm the dialog to create a new empty partition table.
- Select the "FREE SPACE" and press enter.
- Create the following partitions:
- (TotalSpace - 2 GB), primary, mountpoint: /, use as: ext3, options: bootable
- 2 GB, logical, use as: swap
- Select "Finish Partitioning" and write the changes to disk
Partitioning (Software RAID 1)
Finish Up
- Full name for new user: lab
- Username for your account: lab
- Password: lab (this user will be deleted later)
- Verify Password
- Leave the HTTP proxy box empty and select "Continue"
- Note: If it freezes "Scanning the mirror" unplug and replug the ethernet cable once.
- Software to install: Select "OpenSSH server" and select "Continue"
- 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.
- ssh lab@HOST.cs.transy.edu
- sudo su -
- passwd root (set the current root password)
- exit
- exit
- ssh root@HOST.cs.transy.edu
- userdel lab
- rm -rf /home/lab
- 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
- apt-get update
- apt-get upgrade
- 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.
- uname -a
- 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)
- apt-get remove linux-image-2.6.XX-YY-server --purge (again XX from uname)
- REBOOT!
- ssh root@HOST.cs.transy.edu
Configuring LDAP Authentication
- First we need to get GDM (the graphical login) and its dependencies installed so..
- apt-get install gdm
- apt-get install auth-client-config libpam-ldap libnss-ldap ldap-auth-client ldap-auth-config
- LDAP server Uniform Resource Identifier: ldap://10.20.3.8
- Distinguished name of the search base: dc=cs,dc=transy,dc=edu
- LDAP version to use: 3
- Make local root Database admin: NO
- Does the LDAP database require login?: NO
- Edit /etc/ldap.conf and change the following values:
- host 10.20.3.8
- base dc=cs,dc=transy,dc=edu
- uri ldap://10.20.3.8
- Edit /etc/ldap/ldap.conf
- BASE dc=cs,dc=transy,dc=edu
- URI ldap://10.20.3.8
- 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
- auth-client-config -a -p transy
- Add the following line near the very top of /etc/pam.d/gdm AND /etc/pam.d/login
auth optional pam_group.so
- 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
- 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)