https://www.eff.org/deeplinks/2012/10/privacy-ubuntu-1210-amazon-ads-and-data-leaks



#Location of your local Context instance:
export USBPATH=/media/disk

#If you're *not* on a live instance, you can download everything
#locally instead, saving space on your USB device:
export USBPATH=/c

export VERSION=12.04
export PREVIOUS=11.10

#If this is a new version, backup previous startup notes:
cp $USBPATH/technical/system/ubuntu.txt $USBPATH/technical/system/ubuntu-$PREVIOUS.txt


export ARCHIVEPATH=$USBPATH/downloads/ubuntu/$VERSION
#create a new directory for archives:
sudo mkdir -p $ARCHIVEPATH
#sudo chmod -R 777 /c

cd $ARCHIVEPATH
#start with a fresh copy of sources.list (will update later)
cp /etc/apt/sources.list $ARCHIVEPATH/sources.list

#be sure to clean up any updates that have already been downloaded previously
ls /var/cache/apt/archives/
#shouldn't have anything with clean system:
#mkdir updates-existing
#sudo mv /var/cache/apt/archives/*.deb updates-existing/


#You need to check that a universe mirror is listed in your /etc/apt/sources.list file.
#Open Ubuntu Software Centre, then on the top system bar select Edit and then select Software Sources. Next tick the boxes next to universe & multiverse, enter your password and click okay.

sudo apt-get update

#moving desktop config here... for xubuntu need an update to xfce:
Change Desktop background / wallpaper.


#This downloads everything for local/later use.
#To perform the actual installation, see startup.sh

#get base system updates
#(do not do this first on a live instance)
sudo apt-get upgrade -y -d
mkdir updates
sudo mv /var/cache/apt/archives/*.deb updates/
#to apply immediately
#sudo dpkg -i updates/*.deb
#check for any problems... if so:
#sudo apt-get -f install
#mkdir updates2
#sudo mv /var/cache/apt/archives/*.deb updates2/


sudo apt-get install -y -d python2.7-dev python2.7-dbg python-imaging python-docutils python-numpy python-setuptools python-nose python-reportlab python-mako python-rsvg mercurial python-pyaudio
mkdir python
sudo mv /var/cache/apt/archives/*.deb python/

#pyaudio (python 2.7, i386)
#http://people.csail.mit.edu/hubert/pyaudio/
#wget http://people.csail.mit.edu/hubert/pyaudio/packages/python-#pyaudio_0.2.6-1_i386.deb
#mv *.deb python

sudo apt-get install -y -d libjpeg-progs libgif4 tofrodos jhead
mkdir libraries
sudo mv /var/cache/apt/archives/*.deb libraries

#wget http://www.sentex.net/~mwandel/jhead/jhead
#sudo cp jhead /usr/bin

#to apply immediately
#sudo dpkg -i python/*.deb
#sudo dpkg -i libraries/*.deb

#while online, might be good to update pyglet (if mercurial is available):
hg clone https://pyglet.googlecode.com/hg/ $USBPATH/pyglet/


#If on a system with multiple operating systems, but you don't want
#ubuntu to be the default operating system, install startup manager:
sudo apt-get install -y -d startupmanager
mkdir startupmanager
sudo mv /var/cache/apt/archives/*.deb startupmanager
#remember to run startup manager after installation and choose the correct operating system


#now is a good time to run startup.sh




To quickly access this command, type:
Alt-E, S, Enter


Change trackpad settings / mouse sensitivity

Apply any machine specific configurations that are needed to function immediately. (e.g. thinkpad-configure.txt)

Set clock, including time format. Enable Date and Month in menu bar.


if you've already downloaded packages, jump straight to:
startup.sh

Connect to a wireless network.