UBC Physics & Astronomy
optics4.phas.ubc.ca
142.103.238.195

Purchase Date:

Hardware Specs Linux System Software Installed
  • Motherboard: ASUS
  • CPU: AMD Athlon(tm) II X2 270 Processor (64bit)
  • Memory: DDR3 4GB
  • HD: WestDigital WD400JB 40GB
  • Purchased from varsity

2014-09-22
Create a script under cron.daily to automatically update the system
sudo vi /etc/cron.daily/autoupdt
#!/bin/bash
apt-get update
apt-get upgrade -y
apt-get autoclean
chmod 755 /etc/cron.daily/autoupdt

2014-09-19
Change login screen background
sudo apt-get install dconf-editor
sudo -i
xhost +SI:localuser:lightdm
su lightdm -s /bin/bash
dconf-editor
1. Navigate to com –> canonical –> unity-greeter. 
2. Change the background value to your custom image: /usr/share/backgrounds/Forever_by_Shady_S.jpg
3. Disable both draw-grid and draw-user-backgrounds

2014-09-12
Solution for display problem on Acer AL1511 monitors
  1. Create a script:
    sudo vi /usr/bin/lightdmxrandr
    #!/bin/sh
    xrandr --output VGA-0 --primary --mode 1024x768
    chmod a+x /usr/bin/lightdmxrandr
  2. Run the script when user login
    sudo vi /etc/xdg/autostart/lightdmxrandr.desktop
    [Desktop Entry]
    Comment=Change screen resolution to 1024x768
    Name=Lightdmxrandr
    Exec=/usr/bin/lightdmxrandr
    Terminal=false
    GenericName=
    Type=Application
    Categories=
    Icon=
    

2014-09-09
Create Ubuntu 14.04.1 Image
  1. Install Ubuntu 14.04.1 and run all the updates
  2. Install openssh-server:
    sudo apt-get install openssh-server
  3. Install xawtv:
    sudo apt-get install xawtv
    sudo vi /usr/share/applications/xawtv.desktop
    [Desktop Entry]
    Version=3.103
    Name=xawtv
    Exec=/usr/bin/xawtv
    Icon=/usr/share/xawtv/xawtv32.png
    Terminal=
    Type=Application
    Categories=Application
    sudo scp hongyun@hyper:opticsLab/xawtv32.png /usr/share/xawtv/.
    
  4. Disable Guest Account:
    sudo vi /usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf
    [SeatDefaults}
    greeter-session=unity-greeter
    greeter-show-manual-login=true
    greeter-hide-users=true
    allow-guest=false
  5. Enable root login and then login as root:
    sudo passwd root
  6. Modify /etc/fstab
    sudo vi /etc/fstab add the following line:
    # network nfs mount
    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
    
  7. Move local home directory and create network mount directory:
    mv /home /lhome
    mkdir /home
    mkdir /home2
    mkdir /ahome
    vi /etc/passwd		# Change home to lhome in this file
  8. Install nfs-common:
    sudo apt-get install nfs-common
    sudo mount -a
  9. Configure LDAP Authentication:
    sudo apt-get install ldap-auth-client nscd
    	host: ipa.phas.ubc.ca
    	base: dc=phas,dc=ubc,dc=ca
    	uri: ldap://ipa.phas.ubc.ca
    	ldap_version: 3
    sudo auth-client-config -t nss -p lac_ldap
    pam-auth-update
    
    mkdir /etc/ldap/cacerts
    scp root@hyper:cacert.asc /etc/ldap/cacerts/.
    vi /etc/ldap.conf
    base dc=phas,dc=ubc,dc=ca
    uri ldap://ipa.phas.ubc.ca
    uri ldap://ipa02.phas.ubc.ca
    ldap_version 3
    pam_password md5
    nss_base_passwd	cn=users,cn=accounts,dc=phas,dc=ubc,dc=ca
    nss_base_group		cn=groups,cn=accounts,dc=phas,dc=ubc,dc=ca
    ssl start_tls
    sudo vi /etc/ldap/ldap.conf
    BASE		dc=phas,dc=ubc,dc=ca
    URI		ldap://ipa.phas.ubc.ca ldap://ipa02.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
    
  10. Remove Switch User Account option:
    sudo vi /usr/share/glib-2.0/schemas/com.canonical.indicator.session.gschema.xml
    
      false
      Determine the visibility of the User Menu
      Allow for the user menu to be hidden by the user.
    
    cp /usr/share/glib-2.0/schemas/gschemas.compiled /usr/share/glib-20./schemas/gschemas.compiled.bk
    sudo glib-compile-schemas /usr/share/glib-2.0/schemas
  11. Disable Suspend, create a new file:
    sudo vi /etc/polkit-1/localauthority/50-local.d/com.ubuntu.disable-suspend.pkla
    [Disable suspend (upower)]
    Identity=unix-user:*
    Action=org.freedesktop.upower.suspend
    ResultActive=no
    ResultInactive=no
    ResultAny=no
    
    [Disable suspend (logind)]
    Identity=unix-user:*
    Action=org.freedesktop.login1.suspend
    ResultActive=no
    ResultInactive=no
    ResultAny=no
    
    [Disable suspend when others are logged in (logind)]
    Identity=unix-user:*
    Action=org.freedesktop.login1.suspend-multiple-sessions
    ResultActive=no
    ResultInactive=no
    ResultAny=no


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