This is a collection of different commands that I maintain for my own reference. Be advised that most of them will work only on Ubuntu and other Debian derivatives.

Disable encrypted swap (so hibernate might work):


sudo swapoff -a
sudo cryptsetup remove /dev/mapper/cryptswap1
Then edit /etc/fstab and /etc/cryptab to comment out the crypted swap partitions. Then:

sudo /sbin/mkswap /dev/sda6
sudo swapon /dev/sda6
echo /dev/sda6	none	swap	sw	0	0 | sudo tee -a /etc/fstab
echo RESUME=/dev/sda6 | sudo tee /etc/initramfs-tools/conf.d/resume
sudo update-initramfs -u

Install encrypted DVD support:


sudo wget http://www.medibuntu.org/sources.list.d/`lsb_release -cs`.list --output-document=/etc/apt/sources.list.d/medibuntu.list && sudo apt-get -q update && sudo apt-get --yes -q --allow-unauthenticated install medibuntu-keyring && sudo apt-get -q update
sudo apt-get install libdvdcss2

Stop Update Manager from popping up arbitrarily:


gconftool -s --type bool /apps/update-notifier/auto_launch false

reconfigure X:


sudo dpkg-reconfigure -phigh xserver-xorg

Install jhconnect (JHU VPN):

See Jason Graham's instructions.

Install wicd:

echo 'deb http://apt.wicd.net hardy extras' | sudo tee -a /etc/apt/sources.list
wget -q http://apt.wicd.net/wicd.gpg -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get install wicd

Blacklist rt2x00 modules:


echo -e 'blacklist rt2500usb\nblacklist rt2500pci\nblacklist rt61pci\nblacklist rt2x00pci\nblacklist rt2400pci\nblacklist rt2x00lib\nblacklist rt2x00usb' | sudo tee -a /etc/modprobe.d/blacklist

Compile compat-wireless:

First go to http://linuxwireless.org/download/compat-wireless-2.6 and download the file named "compat-wireless-2.6.tar.bz2." Save it to your desktop. Then run these commands:

sudo apt-get update
sudo apt-get install build-essential
cd ~/Desktop
tar -xjvf compat-wireless-2.6.tar.bz2
cd compat-wireless*
make
sudo make unload
sudo make load
sudo make install

Compile Linux kernel (in nine easy steps):

# install some tools you'll need for the build
apt-get install build-essential libncursesw5-dev

# download kernel source code (any release >= 2.4.x.x should work; here we use 2.6.30.5)
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.30.5.tar.bz2

# unpack source
tar -xjvf linux*bz2
cd linux*

# configure kernel
make menuconfig

# build the kernel (on most computers this will take a while)
make

# build modules
make modules

# install modules
make modules_install

# install the kernel
make install

# reboot! (if you want)
reboot