My Ubuntu Cheat Sheet

Looks like I’m maintaining an Ubuntu server these days…

Package Management

# Finding Installed Dependent Packages
apt-cache rdepends --installed packageX
 
# Installing Individual .deb Packages
sudo dpkg -i package_file.deb
 
# Ubuntu version info
cat /etc/lsb-release

Trust not to aptitude…

Sometimes aptitude does silly things, like install X11 when all you wanted was ImageMagick. Try apt-get as well to see if it doesn’t have a different set of deps (this is true of ImageMagick as of December 2008).

Services

Old-style service scripts are in /etc/init.d but up-to-date methods of managing them are described at https://help.ubuntu.com/community/UbuntuBootupHowto.

# make a service start at startup
sudo update-rc.d servicename defaults
 
# remove from startup
sudo update-rc.d -f servicename remove

Comments are closed.