|
cord.phas.ubc.ca 142.103.243.203 |
Purchase Date:
| Hardware Specs | Linux System Software Installed |
|---|---|
|
|
Disable screen lock
sudo chmod 700 /usr/bin/gnome-screensaver2012-08-24
- 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 install2012-08-23
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 reboot2012-05-25
sudo chmod 700 /mediaAutomatically set hostname
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/sethostnameContents 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/hostsStop screensaver from running on startup and disable screen lock
sudo rm /etc/xdg/autostart/gnome-screensaver.desktop sudo chmod 700 /usr/bin/gnome-screensaverConfigure CUPS
sudo vi /etc/cups/client.confMake sure the following line is in the file:
ServerName print.phas.ubc.caAdd 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: DENYModify /etc/fstab
# 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 0Reboot the computer and login as root
mv /home /lhome mkdir /home mkdir /home2 mkdir /ahome vi /etc/passwd
Change home in the passwd file to lhome
Install nfs-commonsudo apt-get install nfs-commonMount network drives
mount -aConfigure 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 usernameInstall 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 bootCustomize 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
| webmaster@phas.ubc.ca | [Dept. Home Page] | Last updated: |