I just installed Ubuntu on my desktop at work. This is the first Linux installation I've done in years, and it went much better than it has in the past. However, as always, there are little details that need work. This page is a random collection of stuff I did to my Ubuntu 8.10 system to get things working just right. Hopefully Google will help others with the same issues. For reference, my system is a Dell Optiplex GX620.
By default, gnome-terminal will beep the system speaker. I want a visual indicator instead. This makes it flash the menu bar, which is not ideal but is much better than the audible beep.
Out of the box, if you ssh from Mac OS X into a Ubuntu box, then use screen, your backspace key will not work. The solution (from here):
Your backspace key should now work in screen, and in a normal terminal. However, now you won't get color when you ssh in. Ubuntu's default ~/.bashrc
needs a small edit. Uncomment the line that reads: force_color_prompt=yes
I was stupid and moved my swap partition. If you do this, there are a number of steps you need to take, since the partition's UUID changes. The Ubuntu UUID documentation is a helpful reference.
To learn more about how Ubuntu/Gnome's hibernate and suspend menu items work, see Debugging Gnome Power Manager. This includes handy command lines for suspending and hibernating. Using these commands is better than using pm-hibernate directly because it permits applications like NetworkManager to take action before and after the suspend.
Wake on LAN lets me save electricity while having access to my system at all times. I can shut my system down, then can wake it up when I want access.
Supports Wake-on: g Wake-on: g
Now shut down your system. Your adapter should still be active (check the activity light on the adapter or your switch). You can then wake it from another computer on the same network with: wakeonlan [MAC address]
The part I can't get working is if I suspend my system it does not wake up, but it seems like it should.
Alternative procedure:
Sadly, I can't get compiz to work, as it complains that the texture memory is too small for my screen resolution. However, there is a good compiz check script that is useful for determining if you should be able to use compiz or not.
For development work, I prefer to use a MySQL instance running as my user in my home directory, rather than use the system wide MySQL instance, but I still use the system MySQL binary, because it is convenient. However, I was running into all sorts of error messages that made it looks like I did not have the right permissions:
Could not open required defaults file: /home/evanj/test/my.cnf
I finally found a blog post and a Ubuntu bug about the issue. The problem is that by default Ubuntu uses AppArmor to limit MySQL's access to the file system. This is intended to reduce the amount of damage possible if an attacker compromises the server. However, it also means that normal users can't run MySQL. To fix this, add the following line to /etc/apparmor.d/usr.sbin.mysqld, with the existing path permission lines:
/home/** rwk,
Then restart AppArmor: /etc/init.d/apparmor restart.