Debian/Ubuntu System Administration


Service

rcconf --list
rcconf --on
rcconf --off
service sshd start
service sshd status
service sshd stop
service sshd restart
update-rc.d openvpn remove
update-rc.d openvpn defaults
update-rc.d openvpn disable
update-rc.d openvpn enable

Apt

apt-get install pkgname
apt-get source pkgname

aptitude search keyword
apt-cache search keyword

gpg --keyserver keys.gnupg.net --recv-key 89DF5277
gpg -a --export 89DF5277 | sudo apt-key add -

IPV6

cat >/etc/sysctl.conf <<DELIM
#disable ipv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
DELIM
cat /proc/sys/net/ipv6/conf/all/disable_ipv6

Firefox

http://releases.mozilla.org/pub/mozilla.org/firefox/releases/3.6.10/linux-i686/xpi/

Ubuntu

sudo echo "deb http://download.virtualbox.org/virtualbox/debian maverick non-free" >> /etc/apt/sources.list
sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 98AB5139
sudo apt-get update
sudo apt-get install virtualbox

nVidia

sudo apt-get purge nvidia*
sudo echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf
sudo apt-get install nvidia-current
sudo modprobe nvidia-current
# sudo lsmod | grep -i nvidia
# sudo nvidia-xconfig
cat >/etc/default/grub <<DELIM
GRUB_TIMEOUT=3
GRUB_GFXMODE=1280x1024
GRUB_GFXPAYLOAD_LINUX=1280x1024x32
DELIM
cat >/etc/grub.d/00_header <<DELIM
  set gfxmode=${GRUB_GFXMODE}
  set gfxpayload=keep
DELIM
sudo update-grub