Friday, February 3, 2012

My apt sources.list

My /ect/apt/sources.list on Ubuntu 10.04.3 LTS (Lucid Lynx).

Code:
# MAIN
deb http://archive.ubuntu.com/ubuntu/ lucid main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ lucid main restricted universe multiverse

# UPDATES
deb http://archive.ubuntu.com/ubuntu/ lucid-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ lucid-updates main restricted universe multiverse

# BACKPORTS
deb http://archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse

# SECURITY
deb http://security.ubuntu.com/ubuntu lucid-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted universe multiverse

# CANONICAL
deb http://archive.canonical.com/ lucid partner
deb http://archive.canonical.com/ubuntu lucid partner
deb-src http://archive.canonical.com/ubuntu lucid partner

# TOR
deb http://deb.torproject.org/torproject.org lucid main
deb-src http://deb.torproject.org/torproject.org lucid main

# MEDIBUNTU ## wget --quiet http://packages.medibuntu.org/medibuntu-key.gpg -O - | sudo apt-key add -
deb http://packages.medibuntu.org/ lucid free non-free
deb-src http://packages.medibuntu.org/ lucid free non-free

# GOOGLE ## wget --quiet http://dl.google.com/linux/linux_signing_key.pub -O - | sudo apt-key add -
deb http://dl.google.com/linux/deb/ stable non-free
Use at your own risk, no responsibility taken, this might break your machine, etcetera, etcetera.

Copy a website using wget

Download a copy of a whole website using wget

Code:
wget --random-wait --limit-rate=20K -r -p -e robots=off -U mozilla http://www.targetsite.com
Use at your own risk, no responsibility taken, this might break your machine &/or get you into trouble & it will probably upset the targetsite you are downloading, etcetera, etcetera.

Fix a broken gnome panel

A simple, one line command to fix a broken gnome panel & restore it to the default settings. I came across it after I accidentally deleted my Gnome panel. Lately I have found it useful for situations where the panel just becomes corrupt (I am always switching monitors) or the panel just won't do what you want it to do (hidden sound, network, time applets etc). Tested on Ubuntu 10.04.3 LTS (Lucid Lynx).

Code:
gconftool-2 -shutdown && gconftool --recursive-unset /apps/panel && rm -rf ~/.gconf/apps/panel && pkill gnome-panel
Use at your own risk, no responsibility taken, this might break your machine, etcetera, etcetera.

Purge unused Ubuntu linux kernels

A simple, one line command to delete (purge) old, unused Ubuntu linux kernels, & update your grub start-up menu. Tested on Ubuntu 10.04.3 LTS (Lucid Lynx).

Code:
sudo dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e [0-9] | xargs sudo apt-get -y purge
Use at your own risk, no responsibility taken, this might break your machine, etcetera, etcetera.