UBC Physics & Astronomy
cord.phas.ubc.ca
142.103.243.203

Purchase Date:

Hardware Specs Linux System Software Installed
  • Motherboard: Intel DH55TC
  • BIOS Version: TCIBX10H.86A.0038.2010.0624.1337
  • Processor: Intel(R) Core(TM) i3 CPU 540 @ 3.07GHz
  • Memory: DDR3 1333MHz 8GB (2G x4)
  • Hard Disk: 500GB SATA Blue HDD
  • Video: nVIDIA GeForce 210
  • Network: Intel 82579V Gigabit Network Connection
  • MAC Address: 70:71:bc:0b:b9:69
  • Optical Drive: none
  • Network Printer:
    Xerox ColorQube 8870 (lp)
    Xerox ColorQube 8870 (lp3)
    Canon iRC 5185 (CanonColourCopier)
  • Scientific Linux 6.3

 

Disable screen lock
sudo chmod 700 /usr/bin/gnome-screensaver

2012-08-24
Install Seamonkey

- Open Ubuntu Software Center
- Go to Edit -> Software Sources
- Click on tab "Other Software"
- Click on Add...
- Enter ppa:joe-nationnet/seamonkey-dev
- Open Terminal
- Type: sudo apt-get update
- Re-open Ubuntu Software Center
- Search for Seamonkey, and then install

2012-08-23
Install nVidia GeForce 210 driver

on login screen press Ctrl-Alt-F1 login through console, then

wget http://us.download.nvidia.com/XFree86/Linux-x86/304.37/NVIDIA-Linux-x86-304.37.run
sudo service lightdm stop
sudo sh NVIDIA-Linux-x86-304.37.run
reboot

2012-05-25
Install Scientific Linux 6.3

  1. Install Scientific Linux 6.3 64-bit and all updates on primary ext3 partition
  2. Reboot the computer, open Terminal, make the following changes:
    Disable USB mount

    sudo chmod 700 /media

    Automatically set hostname
    Create /etc/init.d/sethostname and then run:
    phasadmin@viper:/etc/init.d$ sudo update-rc.d sethostname defaults
    update-rc.d: warning: sethostname start runlevel arguments (2 3 4 5) do not match LSB Default-Start values (1 2 3 4 5)
    update-rc.d: warning: sethostname stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (0 6)
     Adding system startup for /etc/init.d/sethostname ...
       /etc/rc0.d/K20sethostname -> ../init.d/sethostname
       /etc/rc1.d/K20sethostname -> ../init.d/sethostname
       /etc/rc6.d/K20sethostname -> ../init.d/sethostname
       /etc/rc2.d/S20sethostname -> ../init.d/sethostname
       /etc/rc3.d/S20sethostname -> ../init.d/sethostname
       /etc/rc4.d/S20sethostname -> ../init.d/sethostname
       /etc/rc5.d/S20sethostname -> ../init.d/sethostname
    Contents of /etc/init.d/sethostname:
    #! /bin/sh
    
    ### BEGIN INIT INFO
    # Provides:          nothing
    # Required-Start:    
    # Required-Stop:     
    # Should-Start:      
    # X-Start-Before:    networking
    # Default-Start:     1 2 3 4 5
    # Default-Stop:      0 6
    # Short-Description: update /etc/hostname and /etc/hosts with hostname determined from dhcp
    # Description:       update /etc/hostname and /etc/hosts with hostname determined from dhcp
    #                    using lookup
    #                    
    ### END INIT INFO
    
    # rdp 10-08-12  ubuntu 10.04
    # put this in /etc/init.d/sethostname
    # to set up proper links, run the following command:
    # sudo update-rc.d sethostname defaults
    
    # the idea: get our IP addr, reverse lookup against the dhcp/dns server
    # now get the hostname, and use the hostname command to set it without 
    # using /etc/hostname
    
    # get our IP address
    ip=`ifconfig -a | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}'`
    
    # get our fqdn from the dhcp/dns server (dnsmasq)
    fqdn=`dig -x $ip +short`
    
    # strip off the dn
    myname=${fqdn%%.*}
    
    # voila
    echo "Found my hostname is" $myname
    hostname $myname
    
    # find current value in /etc/hostname
    OLDNAME=`cat /etc/hostname`
    # update /etc/hostname file
    TMPFILE=/tmp/hostname
    echo "Updating /etc/hostname"
    sed "s/$OLDNAME/$myname/g" /etc/hostname > $TMPFILE && mv $TMPFILE /etc/hostname
    /bin/rm -f $TMPFFILE
    
    # update /etc/hosts file
    TMPFILE=/tmp/hostname
    echo "Updating /etc/hosts"
    sed "s/$OLDNAME/$myname/g" /etc/hosts > $TMPFILE && mv $TMPFILE /etc/hosts
    /bin/rm -f $TMPFFILE
    sudo vi /etc/hosts
    Stop screensaver from running on startup and disable screen lock
    sudo rm /etc/xdg/autostart/gnome-screensaver.desktop
    sudo chmod 700 /usr/bin/gnome-screensaver
    Configure CUPS
    sudo vi /etc/cups/client.conf
    Make sure the following line is in the file:
    ServerName print.phas.ubc.ca
    Add ACL control in the following file

    /etc/hosts.allow

    # allow ssh from all our servers except hyper
    sshd: 142.103.236. EXCEPT 142.103.236.100
    # spyder (Ron's workstn)
    sshd: 142.103.235.1
    # ada (Mary Ann's workstn)
    sshd: 142.103.237.132
    # glitch (Hongyun's workstn)
    sshd: 142.103.237.135
    # wraith (Gerry's workstn)
    sshd: 142.103.239.1
    # allow any access from alpha and kratos
    ALL: 142.103.236.32
    ALL: 142.103.236.15
    # bh0 (Matt Choptuik's workstn) put in for cord only and only temporary
    until term starts
    #sshd: 142.103.234.164
    ALL: localhost
    ALL: ALL: DENY
    
    Modify /etc/fstab
    Remove UUID line and replace it with /dev/sda#
    Add the following lines
    #
    filesvr.phas.ubc.ca:/home           	/home             nfs     rw,rsize=32768,wsize=32768,hard,intr,bg      0 0
    filesvr.phas.ubc.ca:/home2	  	/home2            nfs     rw,rsize=32768,wsize=32768,hard,intr,bg      0 0
    filesvr.phas.ubc.ca:/ahome	  	/ahome            nfs     rw,rsize=32768,wsize=32768,hard,intr,bg      0 0
    
    Reboot the computer and login as root
    Move local home directory
    mv /home /lhome
    mkdir /home
    mkdir /home2
    mkdir /ahome
    vi /etc/passwd
    

    Change home in the passwd file to lhome

    Install nfs-common
    sudo apt-get install nfs-common
    Mount network drives
    mount -a
    Configure LDAP
    sudo apt-get install ldap-auth-client nscd
      host: ldap.phas.ubc.ca
      base: dc=phas,dc=ubc,dc=ca
      uri: ldap://ldap.phas.ubc.ca/
      ldap_version: 3
    sudo auth-client-config -t nss -p lac_ldap
    pam-auth-update
    
    mkdir /etc/ldap/cacerts
    scp root@ldap:/etc/ldap/certs/cacert.asc /etc/ldap/cacerts/cacert.asc
    vi /etc/ldap.conf
       make sure turn on ssl start_tls
    vi /etc/ldap/ldap.conf
       BASE dc=phas,dc=ubc,dc=ca
       URI  ldap://ldap.phas.ubc.ca
       ldap_version 3
       TLS_CACERT /etc/ldap/cacerts/cacert.asc
       TLS_REQCERT allow
       bind_timelimit 10
       bind_policy soft
    
    /etc/init.d/nscd restart
    Test ldap working or not
       getent passwd
       id username
    
    Install grub-legacy
    apt-get install grub
    grub-install /dev/sda
    vi /boot/grub/menu.lst
       timeout 0
       title GNU/Linux Ubuntu 12.04 LTS
       root (hd0,0)
       kernel /boot/vmlinuz-3.2.0-24-generic-pae root=/dev/sda1 ro quiet splash
       initrd /boot/initrd.img-3.2.0-24-generic-pae
       
       quiet
       savedefault
       boot
    
    Customize default launcher for user first time login
    To make appear applications pinned in launcher for newly created users you can change default settings schema by setting up a new override:
    Create file /usr/share/glib-2.0/schemas/10_local-unity-launcher.gschema.override and insert the following code
    (.desktop files are stored under /usr/share/applications/):
    
    [com.canonical.Unity.Launcher]
    favorites=['nautilus-home.desktop', 'firefox.desktop', 'google-chrome.desktop', 'libreoffice-writer.desktop',
    'libreoffice-calc.desktop', 'libreoffice-impress.desktop', 'gnome-terminal.desktop', 'acroread.desktop']
    
    You have to insert all pinned applications.
    See /usr/share/glib-2.0/schemas/com.canonical.Unity.gschema.xml for default values by searching settings schema and key:
        <schema path="/desktop/unity/launcher/" id="com.canonical.Unity.Launcher" gettext-domain="unity">
        <key type="as" name="favorites">
          <default>DEFAULT_VALUES</default>
    
    Then recompile schemas file /usr/share/glib-2.0/schemas/gschemas.compiled (which is used by gsettings):
    sudo glib-compile-schemas /usr/share/glib-2.0/schemas/
    
    Disable root login
    sudo passwd -l root



For more assistance contact Ron Parachoniak, rap@phas.ubc.ca
 
webmaster@phas.ubc.ca [Dept. Home Page] Last updated: