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.
Much 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.
See here for some other good installation guides: APC's Linux/Vista/XP dual-booting guide and Psychocats' installation guide.
sudo dpkg-reconfigure xserver-xorgand then press ENTER on your keyboard.
| Purpose | Size | Filesystem |
| swap space | 1-2GB | linux-swap |
| root directory (/) | 6-10GB | ReiserFS (or ext3) |
| home directory (/home) | remaining free space | ReiserFS (or ext3) |
sudo apt-get update sudo apt-get upgrade
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup sudo gedit /etc/apt/sources.listAdd:
deb http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted universe multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted universe multiverse deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted universe multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted universe multiverse deb http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse deb http://archive.canonical.com/ubuntu gutsy partner deb-src http://archive.canonical.com/ubuntu gutsy partner deb http://security.ubuntu.com/ubuntu gutsy-security main restricted universe multiverse deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted universe multiverse
sudo apt-get update
Note that installing the nVidia driver will fix some screen resolution problems.
sudo dpkg-reconfigure xserver-xorgYou will be presented with a series of questions. Choose the default answers for all the questions except for the following:
sudo apt-get install nvidia-glx-new sudo nvidia-glx-config enableNote: If you have a GeForce4 video card, you may need to use nvidia-glx instead of nvidia-glx-new. And if you have a very old card, like a TNT, you may need to use nvidia-glx-legacy instead.
sudo nvidia-settingsYou can change the settings in the "X Server Display Configuration" section and then click the "Save to X Configuration" button and save the file as /etc/X11/xorg.conf.
sudo gedit /etc/X11/xorg.confChange:
Section "Device"
...
Driver "nvidia"
...
EndSection
to:
Section "Device"
...
Driver "nvidia"
...
Option "NoLogo" "true"
EndSection
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup.mouse sudo gedit /etc/X11/xorg.confChange:
Section "InputDevice"
...
Driver "mouse"
...
Option "Emulate3Buttons" ...
Option "ZAxisMapping" ...
...
EndSection
to:
Section "InputDevice"
...
Driver "mouse"
...
Option "Emulate3Buttons" "false"
Option "Buttons" "7"
Option "ButtonMapping" "1 2 3 8 9 10 11"
Option "ZAxisMapping" "4 5"
...
EndSection
Important: This only applies if you want to move the /home directory to another drive/partition, or if you want to activate an existing home directory on another drive/partition.
sudo /etc/init.d/gdm stop
sudo cp -pR /home/$USER /media/new_home_partition sudo chown $USER:$USER /media/new_home_partition/$USER
sudo cp /etc/fstab /etc/fstab.backup sudo nano /etc/fstabIf the mount point for any entry is currently listed as /home, change it from
# /dev/old_home_partition
UUID=... /home ...
to
# /dev/old_home_partition UUID=... /media/old_home_partition ...Then set mount point for the desired partition's entry to /home by changing
# /dev/new_home_partition UUID=... /media/new_home_partition ...to
# /dev/new_home_partition
UUID=... /home ...
Save the file (i.e., press CTRL+O) and exit Nano (i.e., press CTRL+X).
sudo apt-get install msttcorefonts
sudo apt-get install tango-icon-theme-common openoffice.org-style-tango
gnome-appearance-manager
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., gthumb.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 (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:
mimeType=newApp.desktopTo figure out what newApp should be (if necessary):
ls /usr/share/applications/*.desktop | sed -e "s@/usr/share/applications/@@g" | lessTo figure out what mimeType should be (if necessary):
find /usr/share/mime/ -mindepth 2 -maxdepth 2 -name "*" | sed -e "s@/usr/share/mime/@@g" -e "s@[.]xml@@g" | less
killall gnome-panel nautilus
gksudo network-adminSelect the "General" tab, and change the hostname as desired.
Firefox comes pre-installed on Ubuntu. Here are some useful customizations.
general.autoScroll=true network.http.pipelining=true network.prefetch-next=false browser.backspace_action=0 browser.link.open_newwindow=3 (3: new tab; 2: new indow; 1: current tab) browser.link.open_newwindow.restriction=2 (0: use open_newwindow setting; 1: new window; 2: use open_newwindow setting unless javascript specifies window size) browser.search.openintab=true browser.tabs.autoHide=false browser.tabs.closeButtons=2 browser.tabs.loadFolderAndReplace=false browser.tabs.loadGroup=0 browser.tabs.warnOnClose=false browser.search.minwidth=300 linkification.settings.Linkify_OpenInTab=true linkification.settings.Linkify_OpenTabinBG=true linkification.settings.Linkify_Toggle=false
sudo apt-get install fastjar pushd /tmp; fastjar -xf /usr/share/firefox/chrome/browser.jar content/browser/browser.js; popd sed -i -e"s/if (aTriggeringEvent \&\& aTriggeringEvent.altKey)/if (!(aTriggeringEvent \&\& aTriggeringEvent.altKey))/" /tmp/content/browser/browser.js sudo fastjar -uf0 /usr/share/firefox/chrome/browser.jar -C/tmp content/browser/browser.js
Thunderbird is a fast and polished email client.
sudo apt-get install thunderbird
gconftool --type string --set /desktop/gnome/url-handlers/mailto/command "thunderbird %s"
mailnews.default_news_sort_order=2 mailnews.default_sort_order=2
wget -c -P /tmp/ http://www.debian-multimedia.org/pool/main/w/w32codecs/w32codecs_20071007-0.0_i386.deb wget -c -P /tmp/ http://www.debian-multimedia.org/pool/main/libd/libdvdcss/libdvdcss2_1.2.9-0.0_i386.deb sudo dpkg -i /tmp/w32codecs_20071007-0.0_i386.deb /tmp/libdvdcss2_1.2.9-0.0_i386.deb
sudo apt-get install totem-xine libxine1-plugins
gconftool --type string --set /desktop/gnome/applications/media/exec "totem"
sudo apt-get install mplayer sudo sed -i.backup -e's@gmplayer@mplayer@g' /usr/share/applications/mplayer.desktop 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 -P /tmp/ http://www.fbriere.net/debian/dists/stable/misc/deb/eawpatches_12-1~fbriere.4_all.deb sudo dpkg -i /tmp/eawpatches_12-1~fbriere.4_all.deb sudo gedit /etc/timidity/timidity.cfgChange:
source /etc/timidity/freepats.cfgto:
source /etc/timidity/eawpatches.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.
sudo apt-get install libqt4-gui wget -c -O /tmp/skype.deb http://www.skype.com/go/getskype-linux-ubuntu sudo dpkg -i /tmp/skype.deb
cp /usr/share/applications/skype.desktop /home/djm/.config/autostart/Alternatively, you can go to the "System" / "Preferences" / "Sessions" menu, click on the "Startup Programs" tab, and an entry with name "Skype" and command skype.
Pidgin is an elegant cross-platform IM client that comes pre-installed on Ubuntu. Here are some useful customizations.
cp /usr/share/applications/pidgin.desktop /home/djm/.config/autostart/Alternatively, you can go to the "System" / "Preferences" / "Sessions" menu, click on the "Startup Programs" tab, and an entry with name "Pidgin" and command pidgin.
sudo apt-get install pidgin-extprefsNow run Pidgin, press CTRL+u to go to the "Plugins" window, turn on the "Extended Preferences" plugin, click on "Configure Plugin", and turn on the "Hide Buddy List at startup" option.
sudo apt-get install pidgin-otrNow run Pidgin, press CTRL+u to go to the "Plugins" window, and turn on the "Off-the-Record Messaging" plugin.
sudo apt-get install flashplugin-nonfree
Note: The regular Flash installation was broken for several months, but they have finally fixed it. However, if the above method doesn't seem to work, you can use the following alternative method.
wget -c -P /tmp/ http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_9_linux.tar.gz pushd /tmp; tar -xzvf install_flash_player_9_linux.tar.gz; popd mkdir ~/.mozilla/plugins cp /tmp/install_flash_player_9_linux/libflashplayer.so ~/.mozilla/plugins/
See the Restricted Formats page.
sudo apt-get install sun-java6-jre sun-java6-pluginSelect the appropriate Sun Java option.
sudo apt-get install gparted
sudo apt-get install brasero
sudo apt-get install gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-ffmpeg
sudo apt-get install nautilus-actions
nautilus-actions-config
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 apt-get install texlive texlive-latex-extra texlive-math-extra texlive-pstricks latex-beamer
sudo apt-get install octave
sudo apt-get install wxmaxima
sudo apt-get install gnuplot
sudo apt-get install build-essential
sudo apt-get install anjuta
sudo apt-get install nvidia-glx-new-dev libglew1.4-dev libsdl1.2-dev libsdl-ttf2.0-dev libsdl-image1.2-dev libsdl-mixer1.2-dev
sudo apt-get install libgmp3-dev libgmp3-doc
sudo apt-get install cvs
sudo apt-get install meld
sudo apt-get install tkcvs
sudo apt-get install subversion
mkdir $SVN_DIR
Typically, use /home/$USER/svn as $SVN_DIR.
svnadmin create $SVN_DIR/$PROJECTwhere $PROJECT is your project name
nano $SVN_DIR/$PROJECT/conf/svnserve.confAdd the following lines:
[general] #section heading anon-access = none # turn off anonymous access
svn import /path/to/original/content/ file://$SVN_DIR/$PROJECT[/deeper]
svn checkout svn+ssh://$SVN_SERVER/$SVN_DIR/$PROJECT[/deeper/]
svn update/commit/add/remove/rename/revert [filenames]
sudo apt-get install meld
A few words of explanation to dispell some of the misconceptions about Firestarter. Ubuntu Linux has a built-in firewall called iptables. However, it is somewhat complicated to configure and maintain since it is command-line only. Firestarter is a tool that acts as a nice GUI front-end to iptables. As such, you can use Firestarter to configure the iptables firewall to your liking. After that you don't need to keep Firestarter running anymore. Thus, even if you close Firestarter, the iptables firewall (which is built into the Linux kernel and loads automatically on boot) will still be running.
Ubuntu, as installed, leaves all its ports open. So, if you want to install a server (e.g., SSH, Samba, etc.), you should first install Firestarter and then use Firestarter to close all ports except for those that your servers needs to listen to.
sudo apt-get install firestarter
sudo firestarterand then complete the setup wizard.
The OpenSSH server allows you to access your computer from another computer, possibly over the Internet provided you allow SSH connections.
sudo apt-get install openssh-server
sudo nano /etc/ssh/sshd_configAdd the following line:
AllowUsers user1 user2 ... userNwhere user1, user2, ..., userN are the users you want to allow (all other users will be disallowed SSH access).
sudo nano /etc/ssh/sshd_configChange
Port 22to
Port xxxx
where xxxx is the alternative port number you want to use.
sudo /etc/init.d/ssh restart
If you have a dynamic IP address, it can be difficult to access your computer over the Internet (e.g., via an SSH) because the IP address keeps changing. An elegant solution is to use a free service, called DynDNS, to create a URL (e.g., yourname.dyndns.org) with which you can access your computer over the Internet so long as you keep DynDNS updated with your current IP address. We will use a script called ipcheck to automatically update DynDNS with your IP address.
sudo apt-get install ipcheck
sudo mkdir /root/ipcheck
sudo nano /root/ipcheck/dyndns_accountEnter your DynDNS account information into the file as below:
username password hostname.domainnameSave and close the file. Here, username and password are your DynDNS account username and password. hostname is the hostname you chose, and domain is the domain you selected (e.g., dyndns.org, podzone.org, etc.).
sudo chmod o-r /root/ipcheck/dyndns_account
sudo nano /root/ipcheck/dyndns_update.shEnter the following code into the script file:
#!/bin/sh cd /root/ipcheck/ if [ -f ipcheck.dat ]; then /usr/sbin/ipcheck -l -r checkip.dyndns.org:8245 --acctfile dyndns_account else /usr/sbin/ipcheck --makedat -l -r checkip.dyndns.org:8245 --acctfile dyndns_account fiSave and close the file. When called, this script will get the current IP address (using a free service provided by DynDNS). Then, if the IP address changed, the script will update DynDNS with the new address.
sudo chmod +x /root/ipcheck/dyndns_update.sh
sudo crontab -eAppend the following line to the list of crontab tasks in order to schedule our script to run every 10 minutes:
*/10 * * * * test -x /root/ipcheck/dyndns_update.sh && /root/ipcheck/dyndns_update.sh > /dev/nullSave and close the file.
sudo mount /dev/hdb1 mount_point -t reiserfs -o notail
sudo mount /dev/hdb1 mount_point -t ext3
sudo mount /dev/hda1 mount_point -t ntfs -o nls=utf8,umask=0222
sudo mount /dev/hda1 mount_point -t vfat -o iocharset=utf8,umask=000
sudo mount /dev/cdrom0 /media/cdrom0 -t iso9660 -o unhide
sudo modprobe loop sudo mount file.iso mount_point -t iso9660 -o loop -r
sudo mount /dev/sda1 mount_point -t vfat
sudo umount mount_point
sudo umount -l mount_point
An ISO image is a computer file that stores the complete contents of a disk or directory.
info=$(isoinfo -d -i $device) && echo "$info" && dd if=$device of=output.iso bs=$(echo "$info" | grep "^Logical block size is:" | cut -d " " -f 5) count=$(echo "$info" | grep "^Volume size is:" | cut -d " " -f 4) conv=notrunc,noerror,syncIf this step fails with an "input/output error", try various combinations of unmounting/remounting/ejecting the device:
sudo umount -l $device eject $device sudo mount $deviceIf the disk is an audio or video disk, try playing it with Totem or MPlayer first.
mkisofs -o file.iso dir
An MD5 checksum of a file is a tiny fingerprint that can be used to verify (with high probability) the correctness of the contents of the file.
md5sum file.iso > file.iso.md5
md5sum -c file.iso.md5
tar -cvzf archive_name.tar.gz file_or_directory
tar -xvzf archive_name.tar.gz
gpg -c file
You will be asked to enter (and re-enter) a password which will used to create the encrypted file called file.gpg
gpg file.gpg
find dir -name "pattern" -okdir rm {} \;
find directory -mindepth 1 -maxdepth 1 -regextype posix-extended -regex "(.*\/)([^\/]*(regexp1)+[^\/]*)" -execdir bash -c "mv \"\$0\" \"\$(echo \"\$0\" | sed -e's@regexp1@regexp2@g')\"" '{}' \;
find directory -mindepth 1 -maxdepth 1 -regextype posix-extended -regex "(.*\/)([^\/]*([A-Z]|(regexp1))+[^\/]*)" -execdir bash -c "mv \"\$0\" \"\$(echo \"\$0\" | sed -e'y@ABCDEFGHIJKLMNOPQRSTUVWXYZ@abcdefghijklmnopqrstuvwxyz@')\"" '{}' \;
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 -fN bastion_hostname
ssh target_hostname
Quick explanation: Public key authentication works as follows. First you create a public key and a private key. Think of the public key as being a lock which only opens with the private key. The private key should reside only on your local machine and is stored in encrypted form using a passphrase that you choose when you first create the key. Never send your private key to anyone. The public key is copied to the various systems that you want to access. Once the public key is installed on another system, you can access that system using your private key as authentication. This authentication is done automatically and there is no need for a password entry. You do however need to enter your passphrase in order to decrypt the private key on your local machine in the first place, but you can do this just once per session on your local machine (e.g., when you first log in to your local machine). This will store the decrypted private key in memory until you log out or until you manually tell the local machine to forget the decrypted private key.
ssh-keygen -f ~/.ssh/key_file -t dsa
I highly recommend using a non-empty passphrase; you can later set up key management so that you only enter your passphrase once per session.
You will now have two files in your ~/.ssh folder:
ssh -i key_file server_hostname.server_domainAlternatively, you can add the following line to the appropriate host entry in your ~/.ssh/config file:
IdentityFile ~/.ssh/key_file
and then ssh to that host as usual without having to use the -i keyFile command line option.
cp ~/.ssh/known_hosts ~/.ssh/known_hosts.backup
ssh -fN 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.
WARNING: In Edgy, after performing the steps below, I ran into GRUB "Error 18: Selected cylinder exceeds maximum supported by BIOS" and could not boot into Ubuntu. To solve this, I had to boot into Ubuntu recovery mode, and then edit /boot/grub/menu.lst and comment out the savedefault line in the Ubuntu stanza. You probably can't do this remotely once you run into this error (since the computer requires a physical CTRL+ALT+DEL to reboot after encountering the error), so make sure to comment out the savedefault before you perform a remote grub-reboot.
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 /boot/grub/menu.lst.
shutdown /r /t 00
gconftool --type boolean --set /desktop/gnome/remote_access/local_only true gconftool --type boolean --set /desktop/gnome/remote_access/prompt_enabled false gconftool --type boolean --set /desktop/gnome/remote_access/view_only false gconftool --type boolean --set /desktop/gnome/remote_access/enabled true
gconftool --type boolean --set /desktop/gnome/remote_access/enabled false
ssh -fN -L 5903:[::1]:5900 server
Note that the "::1" in the above line is the IPv6 name for localhost.
vncviewer localhost:3
NOTE: The remote computer must be currently booted in WinXP, so you might have to reboot remotely from Ubuntu to Windows first.
ssh -fN herakles ssh -fN lion
rdesktop -r disk:sync=/home/$USER/local_directory localhost:2011
Note that disk:sync should be set to an absolute (as opposed to relative) path.
NOTE: I find that SFTP is faster, more secure, and more reliable.
See CFS's "Samba mounting" page for additional info.
ssh -fN herakles ssh -fN lion
smbclient //smb.cs.cornell.edu/win -U user_name -W CUCS -I localhost -p 2017
Or smbmount to mount the share:
smbmount //smb.cs.cornell.edu/win local_directory -o ip=localhost,port=2017,username=user_name,workgroup=CUCSAnd smbumount to unmount it:
smbumount local_directory
I find this method faster and more reliable than using Samba.
ssh -fN 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
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
sudo gedit /etc/fstabFind the line corresponding to the FAT32 partition giving you the warning:
... vfat ... 0 1and change the last number from 1 to 0.
sudo /etc/init.d/gdm restart
sudo grubAt the grub command prompt, run the following commands:
find /boot/grub/stage1You should see something like (hdX,Y) where X and Y will be numbers, e.g., (hd0, 1).
root (hdX,Y)where X and Y above should be replaced by the appropriate numbers returned in step 1.
setup (hdX)
where X above should be replaced by the appropriate number returned in step 1.
quit
I'm feeling too lazy to write a step-by-step guide for this one. Instead, I'll post my /etc/X11/xorg.conf file which contains the settings for my dual monitor setup (using a dual head GeForce 7300GS card with a Hanns-G flat panel and a Micron CRT monitor). The "Device", "Monitor", "Screen", "ServerFlags", "ServerLayout", and "Extensions" sections are all relevant.
With my /etc/X11/xorg.conf in mind, here's the short explanation. Basically there must be two "Device" sections, two "Monitor" sections, and two "Screen" sections (linking the appropriate Devices to the appropriate Monitors). The "ServerLayout" section specifies how the Screens are positioned relative to each other. The "ServerFlags" section turns Xinerama on or off. Xinerama allows the two monitors to share one big virtual screen (which I prefer). Turning Xinerama off makes the two monitors have separate and independent screens and so, for example, you can't drag windows between the screens, which is a drag (sorry!). I recommend initially turning off Xinerama while you set things up. Turn Xinerama on only after you've got your screen resolution, etc. set up nicely. This is because you can't access or change the screen resolution with the current implementation of Xinerama. Finally, the "Extensions" section is necessary if you use Xinerama with nVidia drivers to work around this nVidia bug.
Wine is an implementation of the Windows API that allows you to run Windows applications directly in Linux.
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add - sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/winehq.list sudo apt-get update
sudo apt-get install wine
wine program.exe
I have an old Lexmark Z23 printer, and it takes a little extra work to get it running.
sudo apt-get install alien libstdc++5 wget -c -P /tmp/ http://www.downloaddelivery.com/srfilecache/CJLZ35LE-CUPS-2.0-1.TAR.GZ pushd /tmp tar -xvzf CJLZ35LE-CUPS-2.0-1.TAR.GZ tail -n +143 lexmarkz35-CUPS-2.0-1.gz.sh > install.tar.gz tar -xvzf install.tar.gz sudo alien --to-deb *.rpm sudo dpkg -i *.deb sudo ldconfig popd cd /usr/share/cups/model sudo gunzip Lexmark-Z35-lxz35cj-cups.ppd.gz sudo /etc/init.d/cupsys restart
gksudo /usr/bin/system-config-printerand then click the "New Printer" button.
http://$SERVER:631/printers/$PRINTERwhere $SERVER is the server URL or IP address and $PRINTER is the printer name on the server, and then click "Forward". You can find the names of the shared printer on a server by visiting the following URL in your web browser:
http://$SERVER:631/printers
where $SERVER is the server URL or IP address.
http://$SERVER:631/printers/$PRINTERwhere $SERVER is the server URL or IP address and $PRINTER is the printer name on the server, and then click "Forward" and follow the remaining steps as you would for local printer setup. You can find the names of the shared printer on a server by visiting the following URL in your web browser:
http://$SERVER:631/printers
where $SERVER is the server URL or IP address.
You might have noticed that, upon installation, Ubuntu automatically created folders in your home directory called Desktop, Documents, Music, Pictures, Videos, and Templates. The instructions presented here allow you to change these defaults to use different directories for your desktop, documents, music, etc. This is useful if, for example, you like your directories to be lower-case (e.g., ~/desktop instead of ~/Desktop), or if you want a slightly different organization for your directories (e.g., ~/ instead of ~/Documents).
gedit ~/.config/user-dirs.dirsFor example, to set the default music directory to /home/user/audio/music, use the following line:
XDG_MUSIC_DIR="$HOME/audio/music"or
XDG_MUSIC_DIR="/home/user/audio/music"
gedit ~/.gtk-bookmarksFor example, to add a bookmark named "Music" pointing to /home/user/audio/music, use the following line:
file:///home/user/audio/music Music