------------------------------
Once you have a fresh instance of Ubuntu running, it is time to install a few critical applications. The goal is to get to the point of logging moments offline, minimally.

It is best to perform the following steps on a *live* instance, just incase you install something you didn't mean to.

There are some general system settings that are good to take care of first:

Configure gedit to insert a date, timestamp in the correct format (from moments/editors/gedit.txt)

Gedit ships with a plug-in that is enabled by default for inserting the date and time.
This functionality can be found under:
Edit->Insert Date and Time...

Edit->Preferences->Plugins->Insert Date/Time->Configure Plugin
To conform to the moments date/timestamp, use a custom format as follows:



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


Change trackpad settings / mouse sensitivity

Apply any machine specific configurations as needed. (e.g. thinkpad-configure.txt)

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

Change Desktop background / wallpaper.

Under "System Settings"->"Screen", uncheck "Lock"

Change terminal profile settings"
"Edit"->"Profile Preferences..."
Under "Colors" tab,
disable "Use colors from system theme"
just use white on black
and set the background transparency to about 85%

Create a default .hgrc file:
vi ~/.hgrc

[ui]
username = Firstname Lastname
ui.report_untrusted = False

This can be overridden on a repository by repository basis with the file:
/.hg/hgrc

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

Connect to a wireless network.



export VERSION=11.10
export PREVIOUS=11.04

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

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

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


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/



sudo apt-get update

#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-pyaudio python-nose mercurial python-reportlab python-mako python-rsvg
mkdir python
sudo mv /var/cache/apt/archives/*.deb python/

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

#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/

#don't forget mozilla configs... either from scratch:
#see firefox.txt then copy for future installs:
cp -r ~/.mozilla $ARCHIVEPATH/.mozilla
#or copy previous:
#cp -r $ARCHIVEPATH/.mozilla ~/.


#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