
This page is not maintained anymore; the links may be broken, and the information may be out of date.
The information presented here is for you to use freely but at your own risk.
Here are some good instructions for installing Ubuntu.
Most of the information on this page comes from the following sources:
You can visit my home page to find out how to contact me with feedback and suggestions for this site.
IMPORTANT: This only applies if you want to move your home directory to another drive, or if you want to activate an existing home directory on another drive.
sudo mkdir /mnt/newdrive sudo mount -t ext3 /dev/hdb1 /mnt/newdrive/ sudo cp -R -p /home/[user] /mnt/newdrive/ sudo chown [user]:[user] /mnt/newdrive/[user] sudo umount /mnt/newdrive/
sudo nano /etc/fstabAdd the following line immediately after lines for the main and swap partitions:
/dev/hdb1 /home ext3 defaults,errors=remount-ro 0 1Save the file (i.e., press [CTRL] + [o]) and exit Nano (i.e., press [CTRL] + [x]).
sudo mv /home /home.old sudo mkdir /home sudo mount -a
sudo /etc/init.d/gdm restart
sudo apt-get update sudo apt-get upgrade
sudo apt-get install nvidia-glx nvidia-settings sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.nvidia-driver.backup sudo nvidia-glx-config enable
sudo gedit /usr/share/applications/NVIDIA-Settings.desktopAdd the following into the new file:
[Desktop Entry] Name=NVIDIA Settings Comment=NVIDIA Settings Exec=nvidia-settings Icon= Terminal=false Type=Application Categories=Application;System;
sudo gedit /etc/X11/xorg.confand find the following section:
... Section "Device" Identifier "NVIDIA Corporation NV11 [GeForce2 MX/MX 400]" Driver "nvidia" BusID "PCI:1:0:0" ...and append the following line to this section:
Option "NoLogo"
sudo /etc/init.d/gdm restart
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.5button-mouse.backup sudo gedit /etc/X11/xorg.confReplace:
Section "InputDevice" Identifier "mouse.usb" Driver "mouse" Option "CorePointer" Option "Device" "/dev/input/mice" Option "Protocol" "IMPS/2" Option "Emulate3Buttons" "YES" Option "ZAxisMapping" "4 5" EndSectionWith:
Section "InputDevice" Identifier "mouse.usb" Driver "mouse" Option "CorePointer" Option "Device" "/dev/input/mice" Option "Protocol" "ExplorerPS/2" Option "Buttons" "7" Option "ZAxisMapping" "4 5" EndSection
(See http://ubuntuguide.org/#speedupcddvdrom.)
sudo hdparm -d1 /dev/cdrom sudo cp /etc/hdparm.conf /etc/hdparm.conf.enable-dma.backup sudo gedit /etc/hdparm.conf
/dev/cdrom {
dma = on
}
NOTE: Fix issue where non-empty CD/DVD drives don't eject when the physical eject button is pushed. Don't use if unnecessary.
sudo cp /etc/sysctl.conf /etc/sysctl.conf.eject-fix.backup
sudo gedit /etc/sysctl.confAdd:
dev.cdrom.lock=0Save and close the file.
(See http://ubuntuguide.org/#configuresoundproperly.)
sudo ddcprobe | grep monitorrangeThe first two values returned are your HorizSync rates, the second pair is your VertRefresh values.
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup.sync_and_refresh sudo gedit /etc/X11/xorg.confFind the following section and make sure the HorizSync and VertRefresh lines exist and have the appropriate values (e.g., 30-96 and 50-160):
Section "Monitor"
Identifier "FLATRON 995F"
Option "DPMS"
HorizSync 30-96
VertRefresh 50-160
EndSection
gnome-theme-managerClick "Theme Details", and set "Controls = Glider, Window Border = Clearlooks, Icons = GNOME".
gnome-font-propertiesSet "App = Sans 8, Desktop = Sans 8, Window title = Sans 8, Terminal = FreeMono 10".
gconf-editorSelect "apps / nautilus / preferences" and check "always use browser".
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
sudo gedit /etc/apt/sources.listAdd:
#deb cdrom:[Ubuntu 5.10 _Breezy Badger_ - Release i386 (20051012)]/ breezy main restricted ## OFFICIALLY SUPPORTED REPOSITORIES deb http://us.archive.ubuntu.com/ubuntu breezy main restricted deb-src http://us.archive.ubuntu.com/ubuntu breezy main restricted deb http://security.ubuntu.com/ubuntu breezy-security main restricted deb-src http://security.ubuntu.com/ubuntu breezy-security main restricted deb http://us.archive.ubuntu.com/ubuntu breezy-updates main restricted deb-src http://us.archive.ubuntu.com/ubuntu breezy-updates main restricted ## COMMUNITY SUPPORTED REPOSITORIES deb http://us.archive.ubuntu.com/ubuntu breezy universe multiverse deb-src http://us.archive.ubuntu.com/ubuntu breezy universe multiverse deb http://security.ubuntu.com/ubuntu breezy-security universe multiverse deb-src http://security.ubuntu.com/ubuntu breezy-security universe multiverse deb http://us.archive.ubuntu.com/ubuntu breezy-updates universe multiverse deb-src http://us.archive.ubuntu.com/ubuntu breezy-updates universe multiverse ## BACKPORTS deb http://archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse #deb http://ubuntu-backports.mirrormax.net/ breezy-extras-staging main restricted universe multiverse ## PENGUIN LIBERATION FRONT (PLF) REPOSITORIES (http://wiki.ubuntu-fr.org/doc/plf) ## Primary #deb http://packages.freecontrib.org/ubuntu/plf/ breezy free non-free #deb-src http://packages.freecontrib.org/ubuntu/plf/ breezy free non-free ## Secondary (use only if primary is not working) #deb ftp://ftp.free.fr/pub/Distributions_Linux/plf/ubuntu/plf/ breezy free non-free #deb-src ftp://ftp.free.fr/pub/Distributions_Linux/plf/ubuntu/plf/ breezy free non-free ## MISCELLANEOUS ## timidity-patches-eaw #deb http://www.fbriere.net/debian/dists/etch misc/ ## libdvdcss2, w32codecs #deb ftp://ftp.nerim.net/debian-marillat/ etch main ## jEdit #deb http://dl.sourceforge.net/sourceforge/jedit ./ #deb-src http://dl.sourceforge.net/sourceforge/jedit ./
sudo apt-get update
sudo apt-get install msttcorefonts
(See http://ubuntuguide.org/#codecs.)
sudo gedit /etc/apt/sources.listAdd the following line at the bottom:
deb ftp://ftp.nerim.net/debian-marillat/ etch mainSave and close the file.
sudo apt-get update sudo apt-get install w32codecs sudo apt-get install libdvdcss2
sudo gedit /etc/apt/sources.listRemove or comment out the following line:
deb ftp://ftp.nerim.net/debian-marillat/ etch mainSave and close the file.
sudo apt-get update
cd ~/ sudo dpkg -i w32codecs_*.deb sudo /usr/share/doc/libdvdread3/examples/install-css.sh
sudo apt-get install libmad0 libdvdread3
sudo apt-get install lame sox ffmpeg mjpegtools vorbis-tools
sudo apt-get install gstreamer0.8-misc gstreamer0.8-plugins gstreamer0.8-plugins-multiverse gstreamer0.8-ffmpeg gst-register-0.8
sudo apt-get install totem-xine
gedit ~/.xine/configAt the appropriate line, set:
video.driver:xv
gedit ~/.gnome2/nautilus-scripts/totem-enqueueAdd:
#!/bin/bash totem --enqueue $NAUTILUS_SCRIPT_SELECTED_URIS
gedit ~/.gnome2/nautilus-scripts/totem-replaceAdd:
#!/bin/bash totem --replace $NAUTILUS_SCRIPT_SELECTED_URIS
sudo apt-get install gxine gedit ~/.gxine/configAt the appropriate line, set:
video.driver:xv
sudo cp /usr/share/applications/defaults.list /usr/share/applications/defaults.list_backup sudo sed -e 's/totem.desktop/gxine.desktop/g' /usr/share/applications/defaults.list_backup > /tmp/defaults.list sudo mv /tmp/defaults.list /usr/share/applications/defaults.list killall gnome-panel killall nautilus
gconftool-2 --type string --set /desktop/gnome/volume_manager/autoplay_dvd_command "gxine dvd://"
sudo ln -fs /usr/lib/gxine/gxineplugin.a /usr/lib/mozilla-firefox/plugins/ sudo ln -fs /usr/lib/gxine/gxineplugin.la /usr/lib/mozilla-firefox/plugins/ sudo ln -fs /usr/lib/gxine/gxineplugin.so /usr/lib/mozilla-firefox/plugins/
sudo apt-get install mplayer-386 sudo cp /etc/mplayer/mplayer.conf /etc/mplayer/mplayer.conf_backup sudo gedit /etc/mplayer/mplayer.confReplace:
vo=x11,With:
vo=xv,
sudo apt-get install mozilla-mplayer
sudo apt-get install vlc
xine-check
cp ~/.xine/catalog.cache ~/.xine/catalog.cache.backup gedit ~/.xine/catalog.cacheFind the following section:
[/usr/lib/xine/plugins/1.0.0/xineplug_decode_w32dll.so] size=173768 mtime=1112804124 type=131 api=15 id=win32a version=10000 supported_types=50593792 52428800 52822016 ... (long line truncated) decoder_priority=1Replace (in this section only):
decoder_priority=1With:
decoder_priority=7
sudo apt-get install timidity timidity-interfaces-extra freepats
sudo gedit /etc/apt/sources.listAdd:
deb http://www.fbriere.net/debian/dists/etch misc/Save and close the file.
sudo apt-get update sudo apt-get install timidity-patches-eaw sudo gedit /etc/apt/sources.listRemove:
deb http://www.fbriere.net/debian/dists/etch misc/Save and close the file.
sudo apt-get update sudo cp /etc/timidity/timidity.cfg /etc/timidity/timidity.cfg.backup sudo gedit /etc/timidity/timidity.cfgReplace:
source /etc/timidity/freepats.cfgWith:
source /usr/share/doc/timidity-patches-eaw/examples/timidity.cfg
sudo gedit /usr/share/applications/timidity.desktopAdd:
[Desktop Entry] Encoding=UTF-8 Name=Timidity MIDI Player Comment=Play MIDI audio files Exec=timidity -ig Terminal=false Type=Application StartupNotify=false MimeType=audio/midi; Categories=Application;AudioVideo; #Icon=??? #NoDisplay=trueSave and close the file.
sudo gedit /usr/share/applications/defaults.listAdd:
audio/midi=timidity.desktop
sudo gedit /etc/timidity/timidity.cfgAdd:
opt EFresamp=d #disable resampling (or "opt EFresamp=l" for linear resampling) opt EFvlpf=d #disable VLPF opt EFreverb=d #disable reverb opt EFchorus=d #disable chorus opt EFdelay=d #disable delaySave and close the file.
sudo apt-get install gparted
sudo apt-get install mozilla-thunderbird
wget -c http://www.cs.cornell.edu/~djm/ubuntu/mozilla-icons/mozilla-firefox.png wget -c http://www.cs.cornell.edu/~djm/ubuntu/mozilla-icons/document.png chmod 644 mozilla-firefox.png chmod 644 document.png sudo dpkg-divert --rename /usr/share/pixmaps/mozilla-firefox.png sudo dpkg-divert --rename /usr/share/pixmaps/mozilla-firefox.xpm sudo dpkg-divert --rename /usr/lib/mozilla-firefox/icons/default.xpm sudo dpkg-divert --rename /usr/lib/mozilla-firefox/icons/document.png sudo dpkg-divert --rename /usr/lib/mozilla-firefox/chrome/icons/default/default.xpm sudo cp mozilla-firefox.png /usr/share/pixmaps/mozilla-firefox.png sudo cp mozilla-firefox.png /usr/share/pixmaps/mozilla-firefox.xpm sudo cp mozilla-firefox.png /usr/lib/mozilla-firefox/icons/default.xpm sudo cp document.png /usr/lib/mozilla-firefox/icons/document.png sudo cp mozilla-firefox.png /usr/lib/mozilla-firefox/chrome/icons/default/default.xpm
wget -c http://www.cs.cornell.edu/~djm/ubuntu/mozilla-icons/mozilla-thunderbird.xpm chmod 644 mozilla-thunderbird.xpm sudo dpkg-divert --rename /usr/share/pixmaps/mozilla-thunderbird.xpm sudo dpkg-divert --rename /usr/share/pixmaps/mozilla-thunderbird-menu.xpm sudo dpkg-divert --rename /usr/share/pixmaps/mozilla-thunderbird-pm-menu.xpm sudo dpkg-divert --rename /usr/lib/mozilla-thunderbird/chrome/icons/default/mozilla-thunderbird.xpm sudo dpkg-divert --rename /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow16.xpm sudo dpkg-divert --rename /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow.xpm sudo dpkg-divert --rename /usr/lib/mozilla-thunderbird/chrome/icons/default/default.xpm sudo cp mozilla-thunderbird.xpm /usr/share/pixmaps/mozilla-thunderbird.xpm sudo cp mozilla-thunderbird.xpm /usr/share/pixmaps/mozilla-thunderbird-menu.xpm sudo cp mozilla-thunderbird.xpm /usr/share/pixmaps/mozilla-thunderbird-pm-menu.xpm sudo cp mozilla-thunderbird.xpm /usr/lib/mozilla-thunderbird/chrome/icons/default/mozilla-thunderbird.xpm sudo cp mozilla-thunderbird.xpm /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow16.xpm sudo cp mozilla-thunderbird.xpm /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow.xpm sudo cp mozilla-thunderbird.xpm /usr/lib/mozilla-thunderbird/chrome/icons/default/default.xpm
sudo apt-get install smeg
sudo apt-get install gnomebaker
sudo apt-get install sound-juicer
sudo apt-get install acroread
sudo gedit /usr/share/applications/defaults.listReplace:
application/pdf=evince.desktopWith:
application/pdf=AdobeReader.desktop
sudo apt-get install mozilla-acroread
sudo apt-get install flashplayer-mozilla
sudo mount /dev/hdb1 [mount_point_dir] -t ext3
sudo mount /dev/hda1 [mount_point_dir] -t ntfs -o nls=utf8,umask=0222
sudo mount /dev/hda1 [mount_point_dir] -t vfat -o iocharset=utf8,umask=0000
sudo mount /media/cdrom0/ -o unhide
sudo modprobe loop sudo mount file.iso /media/iso/ -t iso9660 -o loop -r
sudo umount [mount_point_dir]
sudo umount [mount_point_dir] -l
sudo umount /dev/dvd -l sudo mount /dev/dvd
dd if=/dev/[device] of=file.iso bs=1024
mkisofs -o file.iso [dir]
md5sum file.iso > file.iso.md5
md5sum -c file.iso.md5
sudo apt-get install tetex-base tetex-bin tetex-extra
sudo apt-get install build-essential sudo apt-get install manpages-dev autoconf automake libtool
sudo apt-get install libxxf86vm-dev nvidia-glx-dev sudo apt-get install libsdl1.2-dev libsdl-ttf2.0-dev libsdl-image1.2-dev libsdl-mixer1.2-dev sudo apt-get install libsdl-sound1.2-dev libsdl-net1.2-dev
sudo apt-get install x-window-system-dev libgtk1.2-dev libpng-dev libxxf86vm-dev
sudo apt-get install cvs
sudo apt-get install tkcvs
sudo apt-get install pharmacy
sudo apt-get install vim-gnome
sudo gedit /usr/share/applications/gvim.desktopAdd the following:
[Desktop Entry] Encoding=UTF-8 Name=gvim Comment=Edit text files Exec=gvim --remote-silent Terminal=false Type=Application StartupNotify=false MimeType=text/plain;text/html;text/css;text/xml;text/x-dtd;text/x-chdr;text/x-csrc;text/x-c++hdr;text/x-c++src;text/x-java;text/x-csharp;text/x-tex;text/x-bibtex;text/x-readme; Icon=text-editor Categories=GNOME;Application;Utility;TextEditor; # NoDisplay=trueSave and close the file.
sudo gedit /usr/share/applications/defaults.listDelete:
text/plain=gedit.desktopAdd:
text/plain=gvim.desktop text/x-chdr=gvim.desktop text/x-csrc=gvim.desktop text/x-c++hdr=gvim.desktop text/x-c++src=gvim.desktop text/x-csharp=gvim.desktop text/x-java=gvim.desktop text/x-tex=gvim.desktop
(See https://wiki.ubuntu.com/JavaPackageBuildNewVersions.)
sudo apt-get install java-package java-common sudo apt-get install build-essential
sudo apt-get install fakeroot fakeroot make-jpkg jre-1_5_0_06-linux-i586.bin sudo dpkg -i sun-j2re1.5_1.5.0+update06_i386.deb
sudo update-alternatives --config javaSelect the sun java option.
sudo gedit /etc/apt/sources.listAdd the following lines:
deb http://dl.sourceforge.net/sourceforge/jedit ./ deb-src http://dl.sourceforge.net/sourceforge/jedit ./Save and close the file.
sudo apt-get update sudo apt-get install jedit
sudo gedit /usr/bin/jeditReplace:
... ${JEDIT} -jar "/usr/share/jedit/jedit.jar" $@
With:
... ${JEDIT} -jar "/usr/share/jedit/jedit.jar" -reuseview $@
sudo apt-get install scummvm sudo apt-get install beneath-a-steel-sky flight-of-the-amazon-queen
See the CFS connectivity page and this example ~/.ssh/config file for information specific to CUCS tunneling.
nano ~/.ssh/configAdd:
host [bastion_hostname] user [bastion_username] hostname [bastion_hostname].[bastion_domain] ForwardAgent yes LocalForward 2001 [target_hostname].[target_domain]:22 host [target_hostname] user [target_username] hostname localhost port 2001
ssh -f -N [bastion_hostname]
ssh [target_hostname]
ssh-keygen -f [key_file] -t dsaI highly recommend using a non-empty passphrase; you can later set up key management so that you only enter your passphrase once per session.
ssh -i [key_file] [server_name].[server_domain]
cp ~/.ssh/known_hosts ~/.ssh/known_hosts.backup ssh -N -f [bastion_hostname] ssh-keyscan -H -t rsa,dsa -p 2001 localhost >> ~/.ssh/known_hosts ssh-keyscan -H -t rsa,dsa -p 2002 localhost >> ~/.ssh/known_hosts ssh-keyscan -H -t rsa,dsa -p ... localhost >> ~/.ssh/known_hosts
The following allows you to set things up so that you only have to enter your SSH key passphrase once per login session.
sudo apt-get install gnome-keyring-manager
ssh-add
ssh-add -D
NOTE: the remote computer must be currently booted in WinXP.
ssh -N -f herakles ssh -N -f lion
rdesktop -r disk:sync=/home/[local_dir] localhost:2011Note that disk:sync should be set to an absolute (as opposed to relative) path.
NOTE: I find that using SFTP is faster and more reliable.
See http://www.cs.cornell.edu/support/Linux/smbmount.htm for additional info.
ssh -N -f herakles ssh -N -f lion
smbclient //smb.cs.cornell.edu/win -U [username] -W CUCS -I localhost -p 2017Or smbmount to mount the share:
smbmount //smb.cs.cornell.edu/win [local_dir] -o ip=localhost,port=2017,username=[username],workgroup=CUCSAnd smbumount to unmount it:
smbumount [local_dir]
I find this method faster and more reliable than using Samba.
ssh -N -f herakles sftp lion
sftp://lion/home/[user]Windows home directory:
sftp://lion/home/WIN/[user]Linux Bigbox directory:
sftp://lion/home/BIGBOX/[user]Windows Bigbox directory (seems to be read-only):
sftp://lion/home/BIGBOX.win/[user]
\\cucs\home\UNIX\[user]Windows home directory:
\\cucs\home\Windows\[user]Windows Bigbox directory:
\\cs.cornell.edu\home\bigbox\[user]
gksudo network-admin
sudo cp /etc/dhcp3/dhclient.conf /etc/dhcp3/dhclient.conf.backup sudo gedit /etc/dhcp3/dhclient.confAdd the following line to the appropriate place (assuming the new host name and domain are "hostname" and "domain", respectively):
send host-name "hostname.domain";
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst.backup sudo gedit /boot/grub/menu.lstRemove the "splash" option from the appropriate lines. I.e., Replace:
kernel /boot/... root=... ro quiet splashWith:
kernel /boot/... root=... ro quiet
sudo cp /lib/lsb/init-functions /lib/lsb/init-functions.backup sudo gedit /lib/lsb/init-functionsReplace:
echo "[ ok ]"With:
printf '[' $TPUT setaf 2 # green printf " ok " $TPUT op # normal echo ']'
cd [dir]
find . -name "*.monkeypoop" -exec rm {} \;
sudo cp /usr/share/applications/defaults.list /usr/share/applications/defaults.list.backup
sudo gedit /usr/share/applications/defaults.listAdd/change appropriate line to:
[mime-type]=[new-app].desktopTo figure out what [new-app] should be (if necessary):
ls /usr/share/applications/*.desktopTo figure out what [mime-type] should be (if necessary):
ls /usr/share/applications/mime/[text|image|...]
killall gnome-panel killall nautilus
:%s/^M$//gIMPORTANT: Make the ^M by typing "[CTRL]-V [CTRL]-M", not by "[CARROT] M"! This expression will replace all the ^M's that have carriage returns after them with nothing. (The dollar ties the search to the end of a line)
:%s/^M/ /gIMPORTANT: Make the ^M by typing "[CTRL]-V [CTRL]-M", not by "[CARROT] M"! This expression will replace all the ^M's that didn't have carriage returns after them with a carriage return.