Ubuntu 5.10 (breezy badger) Guide
- Install
- Attach and detach media devices
- Create and play an ISO Device
- Create and check MD5 verification Codes
- Configure SSH for CUCs and remote desktop for office computers
- Related Links
Install
- Install Ubuntu
- Set Home Directory
- Update and upgrade Ubuntu
- Install the NVIDIA driver
- Enable 5-Key mouse
- Enable DMA
- Sound device repair
- Customize personalized configurations and Fonts
- Add additional software libraries
- Installation:
- Partition tool-gparted
- Email client-Thunderbird
- Version Control-CVS
- Latex
- Font
- Java-Sun Java
- Editor-jedit, gvim
- PDF viewing software-Adobe Acrobat Reader
- Flash Player
- Multimedia file Decoder
- Media Player-Totem-xine, gxine, mplayer, VLC
- MIDI player-timidity
- CD recording software-gnome Baker
- CD Extraction Tool-sound Juicer
- Game-scummvm
- Development Tools
Set Home Directory
sudo mkdir /mnt/newdrivesudo mount -t ext3 /dev/hdb1 /mnt/newdrive/sudo mkdir /mnt/newdrive/home.newsudo cp -R -p /home/[user] /mnt/newdrive/home.new/sudo chown [user]:[user] /mnt/newdrive/home.new/[user]sudo umount /mnt/newdrive/
- At the same time, press [CTRL] + [alt] + [F1] And then log on.
sudo pico /etc/fstab
Add the following lines after the primary partition and swap partition entries:
/dev/hdb1 /home ext3 defaults,errors=remount-ro 0 1
Press [CTRL] + [O] To save the file. Press [CTRL] + [x] to exit the pico program.
sudo mv /home /home.oldsudo mkdir /homesudo mount -a
Update and upgrade Ubuntu
sudo apt-get updatesudo apt-get upgrade
Install the NVIDIA driver
sudo apt-get install nvidia-glx nvidia-settingssudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.nvidia-driver.backupsudo nvidia-glx-config enable
sudo gedit /usr/share/applications/NVIDIA-Settings.desktop
Add the following lines to the file:
[Desktop Entry]Name=NVIDIA SettingsComment=NVIDIA SettingsExec=nvidia-settingsIcon=Terminal=falseType=ApplicationCategories=Application;System;
- The following settings are used to disable the NVIDIA startup window.
sudo gedit /etc/X11/xorg.conf
Edit the Xorg. conf file and find the following items:
...Section "Device" Identifier "NVIDIA Corporation NV11 [GeForce2 MX/MX 400]" Driver "nvidia" BusID "PCI:1:0:0"...
Add the following line below:
Option "NoLogo"
- Press [CTRL] + [alt] + [backspace] to restart the gnome window management system.
Enable 5-Key mouse
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.5-button-mouse.backup
sudo gedit /etc/X11/xorg.conf
Replace the following items:
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"EndSection
Is:
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
Enable DMA
(Reference http://ubuntuguide.org/#speedupcddvdrom .)
sudo hdparm -d1 /dev/cdromsudo cp /etc/hdparm.conf /etc/hdparm.conf_backupsudo gedit /etc/hdparm.conf
- Add the following line/etc/hdparm. conf
/dev/cdrom { dma = on}
- Repeat the preceding steps to set/dev/cdrom1
Sound System Repair
(Reference http://ubuntuguide.org/#configuresoundproperly .)
Customize personalized configurations and Fonts
gnome-theme-manager
Click "theme details" and set "set controls = glider, window border = mist, icons = gnome ".
gnome-font-properties
Set "APP = sans 8, desktop = sans 8, window title = sans 8, terminal = freemono 10 ".
Always use the browser in Nautilus
gconf-editor
Select "apps/Nautilus/Preferences" and select "always use Browser ".
Add additional software libraries
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
sudo gedit /etc/apt/sources.list
Add the following line (Note: Because the settings in China are different, please refer to the configuration published on ubuntu.com.cn ):
# deb cdrom:[Ubuntu 5.10 _Breezy Badger_ - Release i386 (20051012)]/ breezy main restricted# Example sources.list for Ubuntu 5.10 "The Breezy Badger" release## All officially supported packages, including security- and other updatesdeb http://us.archive.ubuntu.com/ubuntu breezy main restricteddeb-src http://us.archive.ubuntu.com/ubuntu breezy main restricteddeb http://security.ubuntu.com/ubuntu breezy-security main restricteddeb-src http://security.ubuntu.com/ubuntu breezy-security main restricteddeb http://us.archive.ubuntu.com/ubuntu breezy-updates main restricteddeb-src http://us.archive.ubuntu.com/ubuntu breezy-updates main restricted## All community supported packages, including security- and other updatesdeb http://us.archive.ubuntu.com/ubuntu breezy universe multiversedeb-src http://us.archive.ubuntu.com/ubuntu breezy universe multiversedeb http://security.ubuntu.com/ubuntu breezy-security universe multiversedeb-src http://security.ubuntu.com/ubuntu breezy-security universe multiversedeb http://us.archive.ubuntu.com/ubuntu breezy-updates universe multiversedeb-src http://us.archive.ubuntu.com/ubuntu breezy-updates universe multiverse## libdvdcss2, w32codecs# deb ftp://ftp.nerim.net/debian-marillat/ etch main# deb http://ubuntu-backports.mirrormax.net/ breezy-extras-staging main restricted universe multiverse## jedit# deb http://dl.sourceforge.net/sourceforge/jedit ./# deb-src http://dl.sourceforge.net/sourceforge/jedit ./## hoary-extras - the most widely used source for packages not includded in Ubuntu## no guarantees on working - not enabled by default# deb http://public.planetmirror.com/pub/ubuntu-backports/ hoary-extras main universe multiverse restricted
sudo apt-get update
Installation font (Microsoft Font)
sudo apt-get install msttcorefonts
Install a multimedia file Decoder
(See http://ubuntuguide.org/#codecs .)
- Add additional software libraries.
sudo gedit /etc/apt/sources.list
Add the following lines at the end:
deb ftp://ftp.nerim.net/debian-marillat/ etch main
Save the file.
sudo apt-get updatesudo apt-get install w32codecssudo apt-get install libdvdcss2
sudo gedit /etc/apt/sources.list
Cancel the annotator before the following line:
deb ftp://ftp.nerim.net/debian-marillat/ etch main
Save the file.
sudo apt-get update
- If the above steps do not work, you need to manually install w32codecs and decss2 package: Download The w32codecs_20050412-0.0_i386.deb from the Internet to the home directory.
cd ~/sudo dpkg -i w32codecs_*.debsudo /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
Install the Media Player (totem-xine, gxine, mplayer, VLC)
- Totem-xine (See Instructions for post-installation setup ):
sudo apt-get install totem-xine gedit ~/.xine/config
Modify the following line:
video.driver:xv
- Gxine (See Instructions for post-installation setup ):
sudo apt-get install gxinegedit ~/.gxine/config
Modify the following line:
video.driver:xv
- Mplayer:
sudo apt-get install mplayer-386 mozilla-mplayersudo cp /etc/mplayer/mplayer.conf /etc/mplayer/mplayer.conf_backupsudo gedit /etc/mplayer/mplayer.conf
Search:
vo=x11,
Replace:
vo=xv,
- VLC:
sudo apt-get install vlc
Set xine/gxine
xine-check
- Perform the following steps to fix the WMV playback problem (if this problem occurs ):
cp ~/.xine/catalog.cache ~/.xine/catalog.cache.backupgedit ~/.xine/catalog.cache
Find the following section:
[/usr/lib/xine/plugins/1.0.0/xineplug_decode_w32dll.so]size=173768mtime=1112804124type=131api=15id=win32aversion=10000supported_types=50593792 52428800 52822016 ... (long line truncated)decoder_priority=1
Replace with one row:
decoder_priority=1
Is:
decoder_priority=7
- Specify gxine as the default Media Player (not recommended because totem-xine is better ):
sudo cp /usr/share/applications/defaults.list /usr/share/applications/defaults.list_backupsudo sed -e 's/totem.desktop/gxine.desktop/g' /usr/share/applications/defaults.list_backup > /tmp/defaults.listsudo mv /tmp/defaults.list /usr/share/applications/defaults.listkillall gnome-panelkillall nautilus
- Specify gxine as the default DVD player (not recommended because totem-xine is better ):
gconftool-2 --type string --set /desktop/gnome/volume_manager/autoplay_dvd_command "gxine dvd://"
- Install the gxine plug-in for Firefox (not recommended because totem-xine is better ):
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/
Install the Midi player (timidity)
sudo apt-get install timidity timidity-interfaces-extra freepats
Play MIDI
- Start with GTK:
timidity -ig
Install the partition tool (gparted)
sudo apt-get install gparted
Install the e-mail client (Mozilla Thunderbird)
sudo apt-get install mozilla-thunderbird
Install the menu editing program (smeg)
sudo apt-get install smeg
Install CD recorder (gnomebaker)
sudo apt-get install gnomebaker
Install PDF read)
sudo apt-get install acroread mozilla-acroread
sudo gedit /usr/share/applications/defaults.list
Set:
application/pdf=evince.desktop
Replace:
application/pdf=AdobeReader.desktop
Install Flash Player
sudo apt-get install flashplayer-mozilla
Mount
- Ext3 format partition:
sudo mount /dev/hdb1 [mount_point_dir] -t ext3
- NTFS format partition:
sudo mount /dev/hda1 [mount_point_dir] -t ntfs -o nls=utf8,umask=0222
- Partitions in FAT32 format:
sudo mount /dev/hda1 [mount_point_dir] -t vfat -o iocharset=utf8,umask=000
- CD/DVD:
sudo mount /media/cdrom0/ -o unhide
- ISO:
sudo modprobe loopsudo mount file.iso /media/iso/ -t iso9660 -o loop -r
Uninstall
sudo umount [mount_point_dir]
- Force uninstall (if the first step fails ):
sudo umount [mount_point_dir] -l
Create an ISO Image File
- Create from CD/DVD (Replace [device] in the following line with DVD, CDROM, or cdrom1 ):
dd if=/dev/[device] of=file.iso bs=1024
- Create from the specified directory:
mkisofs -o file.iso [dir]
Playing ISO
- Install, configure, and run gxine.
- Select "file/preferences.../Media (Tab)/DVD (Tab )".
- Change the DVD location to "/.../file. ISO ".
MD5 Verification
- Create an MD5 verification code:
md5sum file.iso > file.iso.md5
- Verify the MD5 verification code:
md5sum -c file.iso.md5
Install Latex
sudo apt-get install tetex-base tetex-bin tetex-extra
Install development tools
- Basic compilers and tools:
sudo apt-get install build-essentialsudo apt-get install manpages-dev autoconf automake libtoolsudo apt-get install flex bison gcc-doc g++
- OpenGL and SDL development:
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-devsudo apt-get install libsdl-sound1.2-dev libsdl-net1.2-dev
- Compile the mplayer environment:
sudo apt-get install x-window-system-dev libgtk1.2-dev libpng-dev libxxf86vm-dev
Install the CVS version control software
sudo apt-get install cvs
Install gvim
sudo apt-get install vim-gnome
gedit ~/.vimrc
Add the following line:
set rulerset showcmdset incsearchset history=500set expandtabset tabstop=4set autoindentset shiftwidth=4colorscheme desertif has("vms") set nobackupelse set backupendifif &t_Co > 2 || has("gui_running") syntax on set hlsearchendif
sudo gedit /usr/share/applications/gvim.desktop
Add the following line:
[Desktop Entry]Encoding=UTF-8Name=gvimComment=Edit text filesExec=gvim --remote-silent %UTryExec=gvimTerminal=falseType=ApplicationStartupNotify=falseMimeType=text/plain;Icon=text-editorCategories=GNOME;Application;Utility;TextEditor;
Save the file.
- Specify gvim as the default file editor (optional ).
sudo gedit /usr/share/applications/defaults.list
Replace this row:
text/plain=gedit.desktop
Is:
text/plain=gvim.desktop
Install the Java environment (Sun Java)
(Reference https://wiki.ubuntu.com/JavaPackageBuildNewVersions .)
sudo apt-get install java-package java-commonsudo apt-get install build-essential
- Download JRE Linux self-extracting file (jre-1_5_0_06-linux-i586.bin, non-RPM file) from http://java.sun.com ).
sudo apt-get install fakerootfakeroot make-jpkg jre-1_5_0_06-linux-i586.binsudo dpkg -i sun-j2re1.5_1.5.0+update06_i386.deb
sudo update-alternatives --config java
Select the Sun Java option.
Install the Editor (jedit)
- Install Java.
sudo gedit /etc/apt/sources.list
Add the following lines:
deb http://dl.sourceforge.net/sourceforge/jedit ./deb-src http://dl.sourceforge.net/sourceforge/jedit ./
Save the file.
sudo apt-get updatesudo apt-get install jedit
sudo gedit /usr/bin/jedit
Replace:
... ${JEDIT} -jar "/usr/share/jedit/jedit.jar" $@
Is:
... ${JEDIT} -jar "/usr/share/jedit/jedit.jar" -reuseview $@
Install the game (scummvm)
sudo apt-get install scummvmsudo apt-get install beneath-a-steel-sky flight-of-the-amazon-queen
Configure SSH for Cornell CS
(See http://www.cs.cornell.edu/support .)
pico ~/.ssh/config
Add the following line:
host herakleshostname herakles.cs.cornell.eduuser djmForwardAgent yesLocalForward 2001 lion.cs.cornell.edu:22IdentityFile ~/.ssh/herakles/id_dsahost lionhostname localhostuser djmForwardX11 yesport 2001LocalForward 2002 smtp.cs.cornell.edu:25LocalForward 2003 popsrv.cs.cornell.edu:110LocalForward 2004 blather.cs.cornell.edu:515LocalForward 2005 falcon.cs.cornell.edu:139LocalForward 2006 cucsfs1.cs.cornell.edu:139LocalForward 2007 [office_computer_name].u.cs.cornell.edu:3389IdentityFile ~/.ssh/id_dsa
Configure Remote Desktop for the office computer
- Configure SSH for CCS, and then confirm that localhost: 2007 is redirected to [office_computer_name] .u.cs.cornell.edu: 3389.
ssh -N -f heraklesssh -N -f lion
rdesktop -r disk:sync=/home/[local_dir] localhost:2007
Note Disk: Set sync to an absolute path.
Access cucsfs1
(See http://www.cs.cornell.edu/support/Linux/smbmount.htm .)
- Configure SSH for CCS.
ssh -N -f heraklesssh -N -f -L2006:cucsfs1.cs.cornell.edu:139 lion
smbclient //cucsfs1.cs.cornell.edu/a -U [user_name] -W CUCS -I localhost -p 2006
Or
smbmount //localhost/a [local_dir] -o port=2006,username=[user_name],workgroup=CUCSsmbumount [local_dir]
Recursively Delete objects
- For example, to delete all *. Atom file under the [dir] directory:
cd [dir]find . -name "*.afm" -exec rm {} /;
Add/modify default applications
sudo cp /usr/share/applications/defaults.list /usr/share/applications/defaults.list.backup
sudo gedit /usr/share/applications/defaults.list
Add/modify similar items:
[mime-type]=[new-app].desktop
Find the installed software:
ls /usr/share/applications/*.desktop
Find the MIME type installed:
ls /usr/share/applications/mime/[text|image|...]
killall gnome-panelkillall nautilus
Reference
Most of the information in this article comes from:
- The unofficial Ubuntu 5.04 Starter Guide
- The Ubuntu forums
- The Ubuntu restricted formats Wiki