Ubuntu 14 Instructions: Difference between revisions

From CSLLabWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 160: Line 160:
* mount -a
* mount -a
* Ensure the NFS filesystems loaded with "ls /home" "ls /classes" "ls /labdata"
* Ensure the NFS filesystems loaded with "ls /home" "ls /classes" "ls /labdata"
=== Software ===
* scp 10.20.3.8:/root/keep/jdk* .
<code>
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 cupsys swi-prolog htop screen kdm mutt eclipse  libxi-dev libxmu-dev spim tk make ant xorg k3b kubuntu-desktop ubuntu-desktop mesa-utils nfs-common flashplugin-nonfree alsa-utils lbreakout2 subversion subversion-tools patch libsvn-perl python-subversion g++ gcc build-essential libxi-dev libxmu-dev mysql-client lynx lbreakout2 csh xlockmore mesa-utils dia-common
</code>


== Potential Pitfalls ==
== Potential Pitfalls ==
Line 167: Line 173:
* When logging into an LDAP user on KDM, the log-in screen disappears but no welcome screen appears.
* When logging into an LDAP user on KDM, the log-in screen disappears but no welcome screen appears.
- Purge Plasma-Desktop and reinstall Plasma-Desktop / Kubuntu-Desktop. See http://ubuntuforums.org/showthread.php?t=2133661
- Purge Plasma-Desktop and reinstall Plasma-Desktop / Kubuntu-Desktop. See http://ubuntuforums.org/showthread.php?t=2133661
* <code>
Note, selecting 'flashplugin-installer' instead of 'flashplugin-nonfree'
Package hpijs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsol
is only available from another source
However the following packages replace it:
  printer-driver-hpijs:i386 printer-driver-hpijs
Package openoffice.org is not available, but is referred
This may mean that the package is missing, has been obsol
is only available from another source
Package ffmpeg is not available, but is referred to by an
This may mean that the package is missing, has been obsol
is only available from another source
Package mozilla-plugin-vlc is not available, but is referge.
This may mean that the package is missing, has been obsol
is only available from another source
However the following packages replace it:
  vlc-data browser-plugin-vlc:i386 browser-plugin-vlc
Package xlockmore is not available, but is referred to by
This may mean that the package is missing, has been obsol
is only available from another source
E: Package 'openoffice.org' has no installation candidate
E: Package 'hpijs' has no installation candidate
E: Unable to locate package cupsys
E: Unable to locate package libglui-dev
E: Unable to locate package libglui2c2
E: Unable to locate package libglut3-dev
E: Unable to locate package libglut3
E: Package 'ffmpeg' has no installation candidate
E: Package 'mozilla-plugin-vlc' has no installation candi
E: Unable to locate package libsvn-ruby
E: Unable to locate package libglui-dev
E: Unable to locate package libglui2c2
E: Unable to locate package kompozer
E: Unable to locate package kompozer-dev
E: Package 'xlockmore' has no installation candidate
</code>

Revision as of 17:46, 6 October 2014

Installation

WARNING: The pre-packaged installer does not handle RAID well. GParted does. If partitioning is necessary, try it on live and use GParted to partition prior to installing using the below steps.

1. Select "English"

2. Select "Install Ubuntu"

3. Select "Install this Third Party Software" and "Download Updates while Installing"

4. Wait

5. IF NO OTHER OPERATING SYSTEMS: Erase Disk and Install Ubuntu.

5b. IF OTHER OSes: Something else - Select a drive; set to ext3, mountpoint: /, install.

6. Where are you? New York. 7. English, English (US)

8. Your name: Lab - Pick a username: lab - Password: qazzaq - Do not encrypt home folder.

Restart now.

Configuration

- SSH does not come preinstalled in Ubuntu 14! You *must* go to the machine and physically log in as lab to do:

- apt-get install ssh

- Reboot

- You still can't ssh in as root.


Setting up root SSH

- sudo vi /etc/ssh/sshd_config

- PermitRootLogin no -> PermitRootLogin yes

- sudo service ssh restart


Removing the 'lab' generic account and changing root password

- ssh root@ipaddress

- sudo su -

- passwd root (set the current root password)

- exit

- exit

- ssh root@ipaddress

- userdel lab

- rm -rf /home/lab

Update / Upgrade

  • apt-get update
  • apt-get upgrade
  • apt-get dist-upgrade

LDAP / KDM

  • apt-get install kdm kubuntu-desktop plasma-desktop
  • edit /etc/kde4/kdm/kdmrc
  • Change allowRootLogin to true.
  • 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 / check the following values:
    • host 10.20.3.8
    • base dc=cs,dc=transy,dc=edu (should be set already)
    • uri ldap://10.20.3.8 (should be set already)
    • bind_policy soft
  • 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
[transy]
nss_passwd=passwd: ldap files
nss_group=group: ldap files
nss_shadow=shadow: ldap files
nss_netgroup=netgroup: 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/kdm 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. (Maybe)
root@clarke:~# id kmoorman
uid=1129(kmoorman) gid=110(faculty) groups=110(faculty),800(camp),2100(linux)
  • Make sure you can log-in via KDM! See Potential Pitfalls.

Filesystems

  • apt-get install nfs-common
  • mkdir /classes
  • mkdir /labdata
  • Edit /etc/fstab

Add:


# 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
  • Log-in to Babbage
  • edit /etc/exports
  • exportfs -a
  • exit
  • ssh root@IP
  • mount -a
  • Ensure the NFS filesystems loaded with "ls /home" "ls /classes" "ls /labdata"

Software

  • scp 10.20.3.8:/root/keep/jdk* .

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 cupsys swi-prolog htop screen kdm mutt eclipse libxi-dev libxmu-dev spim tk make ant xorg k3b kubuntu-desktop ubuntu-desktop mesa-utils nfs-common flashplugin-nonfree alsa-utils lbreakout2 subversion subversion-tools patch libsvn-perl python-subversion g++ gcc build-essential libxi-dev libxmu-dev mysql-client lynx lbreakout2 csh xlockmore mesa-utils dia-common

Potential Pitfalls

  • The machine is frozen while trying to mount something! (Also: GDM freezes on start-up)

- Switch to terminal 1; if it works, then it's a GDM issue. GDM freezes on start up. Fix unknown; use KDM!

  • When logging into an LDAP user on KDM, the log-in screen disappears but no welcome screen appears.

- Purge Plasma-Desktop and reinstall Plasma-Desktop / Kubuntu-Desktop. See http://ubuntuforums.org/showthread.php?t=2133661

Note, selecting 'flashplugin-installer' instead of 'flashplugin-nonfree' Package hpijs is not available, but is referred to by another package. This may mean that the package is missing, has been obsol is only available from another source However the following packages replace it:

 printer-driver-hpijs:i386 printer-driver-hpijs

Package openoffice.org is not available, but is referred This may mean that the package is missing, has been obsol is only available from another source

Package ffmpeg is not available, but is referred to by an This may mean that the package is missing, has been obsol is only available from another source

Package mozilla-plugin-vlc is not available, but is referge. This may mean that the package is missing, has been obsol is only available from another source However the following packages replace it:

 vlc-data browser-plugin-vlc:i386 browser-plugin-vlc

Package xlockmore is not available, but is referred to by This may mean that the package is missing, has been obsol is only available from another source

E: Package 'openoffice.org' has no installation candidate E: Package 'hpijs' has no installation candidate E: Unable to locate package cupsys E: Unable to locate package libglui-dev E: Unable to locate package libglui2c2 E: Unable to locate package libglut3-dev E: Unable to locate package libglut3 E: Package 'ffmpeg' has no installation candidate E: Package 'mozilla-plugin-vlc' has no installation candi E: Unable to locate package libsvn-ruby E: Unable to locate package libglui-dev E: Unable to locate package libglui2c2 E: Unable to locate package kompozer E: Unable to locate package kompozer-dev E: Package 'xlockmore' has no installation candidate