
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.
The links to screenshots in this section are from OSDir's screenshot gallery.
| Purpose | Size | Filesystem |
| swap space | 1 - 2GB | linux-swap |
| root directory (/) | 4 - 8GB | reiserfs (or ext3) |
| home directory (/home) | remaining free space | reiserfs (or ext3) |
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.
sudo apt-get update sudo apt-get upgrade
Note that installing the nVidia driver will automatically fix some screen resolution problems.
sudo apt-get install nvidia-glx
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup.nvidia sudo nvidia-glx-config enableIf there was an error message, you might have to enable the driver manually as follows:
sudo gedit /etc/X11/xorg.confReplace:
Section "Device" ... Driver "nv" ... EndSectionwith:
Section "Device" ... Driver "nvidia" ... EndSection
sudo gedit /usr/share/applications/nvidia-settings.desktopAdd the following to the blank 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.confChange:
Section "Device" Identifier "NVIDIA Corporation ..." ... EndSectionto:
Section "Device" Identifier "NVIDIA Corporation ..." ... Option "NoLogo" "true" EndSection
Here is a script to do steps 1 - 4 automatically:
sudo apt-get install nvidia-glx
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup.nvidia
sudo nvidia-glx-config enable
sudo sed -i -e's@Driver[ \t]\{1,\}"nv"@Driver\t\t"nvidia"\n\tOption\t\t"NoLogo"\t"true"@g' /etc/X11/xorg.conf
(printf '[Desktop Entry]\nName=NVIDIA Settings\nComment=nVidia Settings\nExec=nvidia-settings\nIcon=\nTerminal=false\nType=Application\nCategories=Application;System;\n') | sudo tee /usr/share/applications/nvidia-settings.desktop
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup.mouse sudo gedit /etc/X11/xorg.confChange:
Section "InputDevice" Identifier "Configured Mouse" Driver "mouse" ... Option "Protocol" "ExplorerPS/2" ... Option "Emulate3Buttons" "true" ... EndSectionto:
Section "InputDevice" Identifier "Configured Mouse" Driver "mouse" ... Option "Protocol" "ExplorerPS/2" ... Option "Emulate3Buttons" "false" Option "Buttons" "7" Option "ButtonMapping" "1 2 3 6 7" ... EndSection
Here is a script to do step 1 automatically:
sudo sed -i.backup.mouse -e's@[ \t]*Option[ \t]\{1,\}"Emulate3Buttons"[ \t]\{1,\}"true"@\tOption\t\t"Emulate3Buttons"\t"false"\n\tOption\t\t"Buttons"\t\t"7"\n\tOption\t\t"ButtonMapping"\t\t"1 2 3 6 7"@g' /etc/X11/xorg.conf
sudo sysctl dev.cdrom.lock=0
sudo cp /etc/sysctl.conf /etc/sysctl.conf.backup.eject sudo gedit /etc/sysctl.confAdd the following line to the file:
dev.cdrom.lock=0
Here is a script to do step 1 automatically:
if ! cat /etc/sysctl.conf | grep "dev.cdrom.lock=0"; then sudo cp /etc/sysctl.conf /etc/sysctl.conf.backup.eject; >> /etc/sysctl.conf'; fi;
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
sudo gedit /etc/apt/sources.listAdd:
## OFFICIALLY SUPPORTED REPOSITORIES deb http://us.archive.ubuntu.com/ubuntu dapper main restricted deb-src http://us.archive.ubuntu.com/ubuntu dapper main restricted deb http://security.ubuntu.com/ubuntu dapper-security main restricted deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted deb http://us.archive.ubuntu.com/ubuntu dapper-updates main restricted deb-src http://us.archive.ubuntu.com/ubuntu dapper-updates main restricted ## COMMUNITY SUPPORTED REPOSITORIES deb http://us.archive.ubuntu.com/ubuntu dapper universe multiverse deb-src http://us.archive.ubuntu.com/ubuntu dapper universe multiverse deb http://security.ubuntu.com/ubuntu dapper-security universe multiverse deb-src http://security.ubuntu.com/ubuntu dapper-security universe multiverse deb http://us.archive.ubuntu.com/ubuntu dapper-updates universe multiverse deb-src http://us.archive.ubuntu.com/ubuntu dapper-updates universe multiverse ## BACKPORTS deb http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse ## PENGUIN LIBERATION FRONT (PLF) REPOSITORIES (http://wiki.ubuntu-fr.org/doc/plf) ## Primary #deb http://packages.freecontrib.org/ubuntu/plf/ dapper free non-free #deb-src http://packages.freecontrib.org/ubuntu/plf/ dapper free non-free ## Secondary (use only if primary is not working) #deb ftp://ftp.free.fr/pub/Distributions_Linux/plf/ubuntu/plf/ dapper free non-free #deb-src ftp://ftp.free.fr/pub/Distributions_Linux/plf/ubuntu/plf/ dapper free non-free
sudo apt-get update
Here is a script to do steps 1 - 3 automatically (requires internet access):
wget -c -O /tmp/sources.list http://www.cs.cornell.edu/~djm/ubuntu/sources_dapper.list sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup sudo cp /tmp/sources.list /etc/apt/sources.list sudo apt-get update
sudo apt-get install msttcorefonts
wget -c -O /tmp/w32codecs.deb http://packages.freecontrib.org/ubuntu/plf/pool/dapper/non-free/w32codecs_20060611-1plf1_i386.deb wget -c -O /tmp/libdvdcss2.deb http://packages.freecontrib.org/ubuntu/plf/pool/dapper/free/libdvdcss2_1.2.9-1plf4_i386.deb sudo dpkg -i /tmp/w32codecs.deb /tmp/libdvdcss2.deb
wget -c -O /tmp/w32codecs.deb ftp://ftp.nerim.net/debian-marillat/pool/main/w/w32codecs/w32codecs_20050412-0.4_i386.deb sudo dpkg -i /tmp/w32codecs.deb sudo apt-get install libdvdread3 sudo /usr/share/doc/libdvdread3/examples/install-css.sh
sudo apt-get install lame sox ffmpeg mjpegtools mpg321 vorbis-tools
sudo apt-get install totem-xine libxine-extracodecs
sudo apt-get install totem-gstreamer gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly-multiverse gstreamer0.10-gl gstreamer0.10-ffmpeg
sudo apt-get install nautilus-actions
nautilus-actions-config
application/x-cd-image ; application/ogg ; application/vnd.rn-realmedia ; application/x-extension-m4a ; application/x-extension-mp4 ; application/x-flac ; application/x-matroska ; application/x-ogg ; application/x-shockwave-flash ; audio/mpeg ; audio/mpegurl ; audio/vnd.rn-realaudio ; audio/x-flac ; audio/x-m4a ; audio/x-mp3 ; audio/x-mpeg ; audio/x-mpegurl ; audio/x-ms-asf ; audio/x-ms-asx ; audio/x-ms-wax ; audio/x-ms-wma ; audio/x-pn-aiff ; audio/x-pn-au ; audio/x-pn-realaudio-plugin ; audio/x-pn-realaudio ; audio/x-pn-wav ; audio/x-pn-windows-acm ; audio/x-real-audio ; audio/x-vorbis+ogg ; audio/x-wav ; image/vnd.rn-realpix ; misc/ultravox ; video/dv ; video/mp4 ; video/mpeg ; video/msvideo ; video/quicktime ; video/vnd.rn-realvideo ; video/x-anim ; video/x-avi ; video/x-flc ; video/x-fli ; video/x-mpeg ; video/x-ms-asf ; video/x-msvideo ; video/x-ms-wmv ; video/x-nsv
sudo apt-get install mplayer sudo sed -i.backup -e's@vo=x11,@vo=xv,@g' /etc/mplayer/mplayer.conf
sudo apt-get install mozilla-mplayer
(See also the Midi Software Synthesis How-To.)
sudo apt-get install timidity timidity-interfaces-extra
sudo modprobe snd-seq-device sudo modprobe snd-seq-midi sudo modprobe snd-seq-oss sudo modprobe snd-seq-midi-event sudo modprobe snd-seq timidity -iA -B2,8 -Os1l -s 44100To make software synthesis start automatically in future, first make the appropriate modules load automatically:
sudo gedit /etc/modulesAppend the following:
snd-seq-device snd-seq-midi snd-seq-oss snd-seq-midi-event snd-seqThen inform Timidity to start automatically:
sudo gedit /etc/default/timidityUncomment the line to enable the sequencer. That is, change:
#TIM_ALSASEQ=trueto:
TIM_ALSASEQ=true
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=true
sudo cp /usr/share/applications/defaults.list /usr/share/applications/defaults.list.backup.midi sudo gedit /usr/share/applications/defaults.listInsert/replace the audio/midi entry as follows:
audio/midi=timidity.desktop
wget -c -O /tmp/timidity-patches-eaw http://www.fbriere.net/debian/dists/etch/misc/deb/timidity-patches-eaw_12-0fbriere.1_all.deb sudo dpkg -i /tmp/timidity-patches-eaw.deb sudo gedit /etc/timidity/timidity.cfgChange:
source /etc/timidity/freepats.cfgto:
source /usr/share/doc/timidity-patches-eaw/examples/timidity.cfg
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.
Here is a script to do steps 1 - 5 for automatically:
sudo apt-get install timidity timidity-interfaces-extra (printf '[Desktop Entry]\nEncoding=UTF-8\nName=Timidity MIDI Player\nComment=Play MIDI audio files\nExec=timidity -ig\nTerminal=false\nType=Application\nStartupNotify=false\nMimeType=audio/midi;\nCategories=Application;AudioVideo;\n#Icon=???\n#NoDisplay=true\n') | sudo tee /usr/share/applications/timidity.desktop sudo cp /usr/share/applications/defaults.list /usr/share/applications/defaults.list.backup.midi if ! cat /usr/share/applications/defaults.list | grep "audio/midi"; then (printf 'audio/midi=timidity.desktop\n') | sudo tee -a /usr/share/applications/defaults.list; else sudo sed -i -e's@audio/midi.*$@audio/midi=timidity.desktop@g' /usr/share/applications/defaults.list; fi; wget -c -O /tmp/timidity-patches-eaw http://www.fbriere.net/debian/dists/etch/misc/deb/timidity-patches-eaw_12-0fbriere.1_all.deb sudo dpkg -i /tmp/timidity-patches-eaw.deb sudo sed -i.backup -e's@source /etc/timidity/freepats.cfg@source /usr/share/doc/timidity-patches-eaw/examples/timidity.cfg@g' /etc/timidity/timidity.cfg sudo modprobe snd-seq-device sudo modprobe snd-seq-midi sudo modprobe snd-seq-oss sudo modprobe snd-seq-midi-event sudo modprobe snd-seq timidity -iA -B2,8 -Os1l -s 44100 (printf 'snd-seq-device\nsnd-seq-midi\nsnd-seq-oss\nsnd-seq-midi-event\nsnd-seq\n') | sudo tee -a /etc/modules sudo sed -i -e's@#TIM_ALSASEQ=true@TIM_ALSASEQ=true@g' /etc/default/timidity
sudo apt-get install gparted
sudo apt-get install mozilla-thunderbird
sudo apt-get install gnomebaker
sudo apt-get install sound-juicer
sudo apt-get install acroread
sudo sed -i.backup.acroread -e's@application/pdf=evince.desktop@application/pdf=AdobeReader.desktop@g' /usr/share/applications/defaults.list
sudo apt-get install mozilla-acroread
sudo apt-get install flashplugin-nonfree sudo update-flashplugin
(See the Restricted Formats page.)
sudo apt-get install sun-java5-jre sun-java5-plugin sudo update-alternatives --config javaSelect the sun java option.
sudo apt-get install tetex-base tetex-bin tetex-extra
sudo apt-get install octave
sudo apt-get install gnuplot
sudo apt-get install build-essential manpages-dev
sudo apt-get install libgmp3-dev libgmp3-doc
sudo apt-get install libxxf86vm-dev nvidia-glx-dev ftgl-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-devNote that in order to get compile with FTGL, you might need to do the following:
sudo ln -s /usr/include/freetype2/freetype /usr/include/freetype
sudo apt-get install cvs
sudo apt-get install tkcvs
sudo apt-get install vim-gnome
sudo sed -i.backup.gvim -e's@gedit.desktop@gvim.desktop@g' -e's@text/x-csrc=gvim.desktop@text/x-csrc=gvim.desktop\ntext/x-c++hdr=gvim.desktop\ntext/x-c++src=gvim.desktop\ntext/x-csharp=gvim.desktop\ntext/x-tex=gvim.desktop@g' /usr/share/applications/defaults.list sudo sed -i.backup -e's@MimeType=text/plain;@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;@g' -e's@NoDisplay=true@NoDisplay=false@g' /usr/share/applications/gvim.desktop
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/jeditChange:
... ${JEDIT} -jar "/usr/share/jedit/jedit.jar" $@
to:
... ${JEDIT} -jar "/usr/share/jedit/jedit.jar" -reuseview $@
sudo apt-get install supertux scummvm sudo apt-get install beneath-a-steel-sky flight-of-the-amazon-queen
sudo apt-get install openssh-server
sudo mount /dev/hdb1 [mount_point_dir] -t reiserfs -o notail
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=000
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 -l [mount_point_dir]
dd if=/dev/[device] of=file.iso bs=1024If this step fails with an "input/output error", try various combinations of unmounting/remounting/ejecting the device:
sudo umount -l /dev/[device] eject /dev[device] sudo mount /dev/[device]
mkisofs -o file.iso [dir]
md5sum file.iso > file.iso.md5
md5sum -c file.iso.md5
See the Unofficial Ubuntu Starter Guide for more information.
See https://wiki.ubuntu.com/FixVideoResolutionHowto for more information. The following worked for me:
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"
...
HorizSync 30-96
VertRefresh 50-160
EndSection
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
See the Unofficial Ubuntu Starter Guide for more information.
sudo hdparm -d /dev/[device]where [device] is cdrom, cdrom1, cdrw, dvd, etc.
sudo hdparm -d1 /dev/[device] sudo cp /etc/hdparm.conf /etc/hdparm.conf.backup.dma sudo gedit /etc/hdparm.confAppend the following to the /etc/hdparm.conf
/dev/[device] {
dma = on
}
where [device] is cdrom, cdrom1, cdrw, dvd, etc.
sudo gedit /etc/fstabReplace:
/dev/hda1 /media/hda1 vfat defaults,utf8,umask=007,gid=46 0 1With:
/dev/hda1 /media/hda1 vfat iocharset=utf8,umask=000 0 0Note that occurences of hda1 could be different (e.g., hdb2) for you, depending on the disk and partition number of your FAT32 partition.
See CFS's "Connecting to Herakles using SSH" 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: this assumes that you use GRUB to dual boot and that you do NOT use dmraid.
sudo nano /boot/grub/menu.lstChange:
default 0to:
default savedSave and close the file by hitting [CTRL]+[o] and then [CTRL]+[x].
sudo grub-reboot [number]where [number] is the number of lines that show up in your GRUB menu before the "Windows" line (typically 4, 6, or 8). (Don't include the "Windows" line into your count, but do include the "Other operating systems:" line.) For example, [number] is 4 in this screenshot because there are four lines above the "Windows" option.
NOTE: this assumes that you use GRUB to dual boot, and that Ubuntu is the first boot option in /root/grub/menu.lst.
shutdown /r /t 00
NOTE: The remote computer must be currently booted in WinXP, so you might have to reboot remotely from Ubuntu to Windows first.
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 CFS's "Samba mounting" page 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:
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
gnome-theme-managerClick "Theme Details", and fiddle away. My preferences are "Controls = Silicon, Window Border = Silicon, Icons = Tangerine".
gnome-font-propertiesMy preferences are "App = Sans 8, Desktop = Sans 8, Window title = Sans 8, Terminal = Monospace 10".
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 /media/newNow mount the new partition (e.g., /dev/hdb2) to . If it is an Ext3 partition, use the following:
sudo mount -t ext3 /dev/hdb1 /mnt/new/If it is a ReiserFS partition, use the following:
sudo mount -t reiserfs -o notail /dev/hdb1 /mnt/new/Now copy your existing home directory to the new partition.
sudo cp -R -p /home/[user] /mnt/new/ sudo chown [user]:[user] /mnt/new/[user] sudo umount /mnt/new/
sudo nano /etc/fstabAssuming your intended home partition is /dev/hdb1, add a line to your /etc/fstab file to automount the partition onto the /home directory. If your intended home partition is Ext3, add the following line just after the main and swap partitions:
/dev/hdb1 /home ext3 defaults,errors=remount-ro 0 2If the intended home partition is ReiserFS, use the following:
/dev/hdb1 /home reiserfs defaults,notail 0 2Save the file (i.e., press [CTRL]+[o]) and exit Nano (i.e., press [CTRL]+[x]).
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., Change:
kernel /boot/... root=... ro quiet splashto:
kernel /boot/... root=... ro quiet
wget -c -O /tmp/mozilla-firefox.png http://www.cs.cornell.edu/~djm/ubuntu/mozilla-icons/mozilla-firefox.png wget -c -O /tmp/document.png http://www.cs.cornell.edu/~djm/ubuntu/mozilla-icons/document.png chmod 644 /tmp/mozilla-firefox.png /tmp/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 /tmp/mozilla-firefox.png /usr/share/pixmaps/mozilla-firefox.png sudo cp /tmp/mozilla-firefox.png /usr/share/pixmaps/mozilla-firefox.xpm sudo cp /tmp/mozilla-firefox.png /usr/lib/mozilla-firefox/icons/default.xpm sudo cp /tmp/document.png /usr/lib/mozilla-firefox/icons/document.png sudo cp /tmp/mozilla-firefox.png /usr/lib/mozilla-firefox/chrome/icons/default/default.xpm
wget -c -O /tmp/mozilla-thunderbird.xpm http://www.cs.cornell.edu/~djm/ubuntu/mozilla-icons/mozilla-thunderbird.xpm chmod 644 /tmp/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 /tmp/mozilla-thunderbird.xpm /usr/share/pixmaps/mozilla-thunderbird.xpm sudo cp /tmp/mozilla-thunderbird.xpm /usr/share/pixmaps/mozilla-thunderbird-menu.xpm sudo cp /tmp/mozilla-thunderbird.xpm /usr/share/pixmaps/mozilla-thunderbird-pm-menu.xpm sudo cp /tmp/mozilla-thunderbird.xpm /usr/lib/mozilla-thunderbird/chrome/icons/default/mozilla-thunderbird.xpm sudo cp /tmp/mozilla-thunderbird.xpm /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow16.xpm sudo cp /tmp/mozilla-thunderbird.xpm /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow.xpm sudo cp /tmp/mozilla-thunderbird.xpm /usr/lib/mozilla-thunderbird/chrome/icons/default/default.xpm
If you have trouble accessing your Ubuntu machine remotely, it might be because the DHCP server needs to be informed of the machine's name.
sudo cp /etc/dhcp3/dhclient.conf /etc/dhcp3/dhclient.conf.backup sudo gedit /etc/dhcp3/dhclient.confAdd the following line to the file:
send "[hostname].[domain]";where [hostname] is your computer name and [domain] is the your computer's network domain (e.g., u.cs.cornell.edu).
sudo /etc/init.d/gdm restart
find [dir] -name "*.monkeypoop" -ok rm '{}' \;
#!/bin/bash
find -maxdepth 1 -name "*string1*" | while read file
do
target=$(echo $file | sed -e "s@string1@string2@g")
mv "$file" "$target"
done
#!/bin/bash
find -maxdepth 1 -name "*[A-Z]*" | while read file
do
target=$(echo $file | tr '[A-Z]' '[a-z]')
mv "$file" "$target"
done
chmod +x [script_file]
Quick explanation: In order to associate an application (e.g., gThumb Image Viewer) with a file-type (e.g., PNG image files), the application needs to have a "desktop entry" (e.g., gthump.desktop) located in the /usr/share/applications/ directory. Furthermore, the file-type needs to have a mime-type located in the /usr/share/mime/ directory or one of its sub-directories (e.g., /usr/share/mime/images/png.xml). Finally, there should be a line in the /usr/share/applications/defaults.list file that associates the desktop entry with the mime-type (e.g., images/png=gthumb.desktop).
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.