Top things to do after installing Ubuntu 10.10 Maverick

After doing some installs of Ubuntu for friends, i started to get bored by adding stuff manually after the default install. A good guide for setting up some basic missing things is Silent number’s top things to after installing Ubuntu 10.04/. Read that! He’s working on an updated version of the guide, but the post is still mostly relevant.

I added most of the stuff he recommends and some other things in a very basic GUI-setupscript. Handy for new installs of Maverick, and easy to modify.It installs a lot of tools and utillites.

To use:
1. Copy the text to a new textfile, put it in your homefolder, rename to something fitting – eg.
”installscript.sh”
2. Open a Terminal: Program->Accesories->Terminal
3. write: sudo chmod 755 whatever you named your script. This is to make it executable
4 run the script, in terminal: sudo sh whatever you named your script
6. have fun with your new apps.

Note: firefoxplugins are only downloaded. You’ll still have to install them from firefox.

#!/bin/bash –

if [ ! ”`whoami`” = ”root” ]
then
zenity –info –text ”Please start script with sudo.”
exit 1
fi

#VARIABLES
GETDEB=’deb http://archive.getdeb.net/ubuntu maverick-getdeb apps’
PLAYDEB=’deb http://archive.getdeb.net/ubuntu maverick-getdeb games’
TOR=’deb http://deb.torproject.org/torproject.org lucid main’
VIRTUALBOX=’deb http://download.virtualbox.org/virtualbox/debian maverick non-free’
X2GO=’deb http://x2go.obviously-nice.de/deb/ lenny main’
SPOTIFY=’deb http://repository.spotify.com stable non-free’
MEDIBUNTU=http://www.medibuntu.org/sources.list.d/maverick.list
GETDEBSOURCE=/etc/apt/sources.list.d/deb.getdeb.sources.list
PLAYDEBSOURCE=/etc/apt/sources.list.d/deb.playdeb.sources.list
TORSOURCE=/etc/apt/sources.list.d/deb.torproject.sources.list
MEDIBUNTUSOURCE=/etc/apt/sources.list.d/medibuntu.list
VIRTUALBOXSOURCE=/etc/apt/sources.list.d/deb.virtualbox.sources.list
X2GOSOURCE=/etc/apt/sources.list.d/deb.x2go.sources.list
SPOTIFYSOURCE=/etc/apt/sources.list.d/deb.spotify.sources.list
I2PEXE=i2pinstall_0.8.2.exe
ONESWARMTAR=OneSwarm_0_7_linux_x86_64.tar.gz

installprograms ()
{
    ARG=”$1″
for program in ${ARG}
do
apt-get -f -y -q –allow-unauthenticated install $program
done
}

zenity –question –text ”Welcome to Ubuntu 10.10 a lot of utils script – Do you want the misc. package installed? [y/n]:”
INSTALLMISC=$?
zenity –question –text ”Do you want the game package installed? [y/n]:”
INSTALLGAMES=$?
zenity –question –text ”Do you want the filesharing/anon package installed? [y/n]: ”
INSTALLFILESHAREANON=$?
zenity –question –text ”Do you want the developer package installed? [y/n]: ”
INSTALLDEVELOPER=$?
zenity –question –text ”Do you want to download the firefox-plugins? [y/n]: ”
DOWNLOADPLUGINS=$?

if [ ”$INSTALLMISC” = ”0” ]
then
PROGRAM_ARRAY=$(zenity  –list  –text ”Choose the programs you want to install” –checklist  –column ”Pick” –column ”options” TRUE ”libdvdcss2” TRUE ”mkvtoolnix” TRUE ”samba” TRUE ”ntp” TRUE ”libdvdread4” TRUE ”ubuntu-restricted-extras” TRUE ”miro” TRUE ”bisigi-themes” TRUE ”community-themes 2” TRUE ”gnome-backgrounds” TRUE ”gnome-colors” TRUE ”gnome-themes” TRUE ”gnome-themes-extras” TRUE ”awn-settings” TRUE ”gnome-themes-more” TRUE ”metacity-themes” TRUE ”shiki-colors” TRUE ”p7zip” TRUE ”pitivi” TRUE ”pidgin” TRUE ”pidgin-otr” TRUE ”pidgin-themes” TRUE ”istanbul” TRUE ”jokosher” TRUE ”gufw” TRUE ”cheese” TRUE ”mnemosyne” TRUE ”anki” TRUE ”inkscape” TRUE ”gimp” TRUE ”clamtk” TRUE ”unetbootin” TRUE ”rcconf” TRUE ”desktop-webmail” TRUE ”backintime-gnome” TRUE ”jedit” TRUE ”bluefish” TRUE ”gmountiso” TRUE ”likewise-open” TRUE ”vlc” TRUE ”istanbul” TRUE ”exaile” TRUE ”banshee” TRUE ”boinc” TRUE ”inkscape” TRUE ”blender” TRUE ”scribus” TRUE ”calibre” TRUE ”gparted” TRUE ”ubuntu-tweak” TRUE ”lirc” TRUE ”xbmc” TRUE ”flashplugin-nonfree” TRUE ”klavaro” TRUE ”mkvtoolnix-gui” TRUE ”comix” TRUE ”cbrpager” TRUE ”dia” TRUE ”thunderbird” TRUE ”filezilla” TRUE ”googleearth-package” TRUE ”sun-java6-jre” TRUE ”wireshark” TRUE ”bleachbit” TRUE ”wine” TRUE ”dosbox” TRUE ”mame” TRUE ”e-uae” TRUE ”gens” TRUE ”playonlinux” TRUE ”dolphin” TRUE ”pcsxr” TRUE ”scummvm” TRUE ”jpcsp” TRUE ”gelide” TRUE ”snes9x-gtk” TRUE ”stellarium” TRUE ”handbrake-gtk” TRUE ”keepassx” TRUE ”skype” TRUE ”usb-modeswitch” TRUE ”libccid” TRUE ”spotify-client-qt” TRUE ”spotify-client-gnome-support” TRUE ”x2goclient-gtk” –separator=” ”);
fi

if [ ”$INSTALLGAMES” = ”0” ]
then
GAMES_ARRAY=$(zenity –list –text ”Choose the games you want to install” –checklist  –column ”Pick” –column ”options” TRUE ”reecol” TRUE ”liquidwar” TRUE ”gbrainy” TRUE  ”warzone2100” TRUE ”frozen-bubble” TRUE ”pingus” TRUE ”smokinguns” TRUE ”warsow” TRUE  ”astromenace” TRUE ”hedgewars” TRUE ”eternallands” TRUE ”ufoai” TRUE ”nexuiz” TRUE  ”fretsonfire” TRUE ”numptyphysics” TRUE ”goonies” TRUE ”kulic” TRUE ”caph” TRUE ”soulfu” TRUE ”egoboo” TRUE ”qjoypad” TRUE ”enemy-territory” TRUE ”triplea” TRUE ”goolie” TRUE  ”0ad” TRUE ”performous” TRUE ”atomicworm” TRUE ”freeciv” TRUE ”xmoto” TRUE ”alien-arena” TRUE ”funguloids” TRUE ”gemrb” TRUE ”jstest-gtk” TRUE ”l-echo” –separator=” ”);
fi

if [ ”$INSTALLFILESHAREANON” = ”0” ]
then
FILESHARE_ARRAY=$(zenity  –list  –text ”Choose the fileshare/anons you want to install” –checklist  –column ”Pick” –column ”options” TRUE ”tor” TRUE ”tor-geoipdb” TRUE  ”vidalia” TRUE ”network-manager-pptp” TRUE ”gnunet-gtk” TRUE ”network-manager-openvpn”  FALSE ”anomos” –separator=” ”);
fi

if [ ”$DOWNLOADPLUGINS” = ”0” ]
then
mkdir ./tmpFirefoxPlugins
cd ./tmpFirefoxPlugins
#checkplaces
wget https://addons.mozilla.org/firefox/downloads/latest/10897/addon-10897-latest.xpi
#adblock plus
wget https://addons.mozilla.org/downloads/latest/1865/adblock_plus-1.3.3.xpi
#trackmenot
wget http://cs.nyu.edu/trackmenot/xpi/trackmenot-0.7.63-fx.xpi
#update-scanner
wget https://addons.mozilla.org/firefox/downloads/latest/3362/addon-3362-latest.xpi
#https-everywhre
wget https://www.eff.org/files/https-everywhere-latest.xpi
#firefox-sync
wget https://addons.mozilla.org/mobile/downloads/latest/10868/type:attachment/addon-10868-latest.xpi
#ghostery
wget https://addons.mozilla.org/firefox/downloads/latest/9609/addon-9609-latest.xpi
#torbutton
https://addons.mozilla.org/firefox/downloads/latest/2275/addon-2275-latest.xpi
cd ..
chmod -R 777 ./tmpFirefoxPlugins
fi

#Turn on partner repo if off
sed -i ‘s_#deb http://archive.canonical.com/ubuntu maverick partner_deb http://archive.canonical.com/ubuntu maverick partner_g’ /etc/apt/sources.list
apt-get -q update
apt-get -f -y -q upgrade

#Add repos
add-apt-repository ppa:tualatrix/ppa #ubuntu tweak
add-apt-repository ppa:bisigi/ppa
add-apt-repository ppa:pcf/miro-releases
add-apt-repository ppa:scribus/ppa
add-apt-repository ppa:banshee-team/ppa  #banshee
add-apt-repository ppa:team-xbmc/ppa #xmbc
#sudo add-apt-repository ppa:sportman1280/ppa No karmic ppa for synkron yet
#add-apt-repository ppa:dylanmccall/ppa #day of ubuntu no ppa for maverick yet
#truecrypt day-of-ubuntu-wallpaper

if [ ! -e ”$GETDEBSOURCE” ]
then
echo ”$GETDEB” > ”$GETDEBSOURCE”
fi

if [ ! -e ”$PLAYDEBSOURCE” ]
then
echo ”$PLAYDEB” > ”$PLAYDEBSOURCE”
fi

if [ ! -e ”$TORSOURCE” ]
then
echo ”$TOR” > ”$TORSOURCE”
gpg –keyserver keys.gnupg.net –recv 886DDD89
gpg –export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | apt-key add –
fi

if [ ! -e ”$VIRTUALBOXSOURCE” ]
then
echo ”$VIRTUALBOX” > ”$VIRTUALBOXSOURCE”
fi

if [ ! -e ”$MEDIBUNTUSOURCE” ]
then
wget –output-document=”$MEDIBUNTUSOURCE” ”$MEDIBUNTU”
fi

if [ ! -e ”$X2GOSOURCE” ]
then
echo ”$X2GO” > ”$X2GOSOURCE”
fi

if [ ! -e ”$SPOTIFYSOURCE” ]
then
echo ”$SPOTIFY” > ”$SPOTIFYSOURCE”
fi

#fetch playdeb/getdeb keys
wget -q -O- http://archive.getdeb.net/getdeb-archive.key | apt-key add –
#virtualbox key
wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | apt-key add –
#x2go key
apt-key adv –recv-keys –keyserver keyserver.ubuntu.com C509840B96F89133
#spotify key
gpg –keyserver wwwkeys.de.pgp.net –recv-keys 4E9CFF4E
gpg –export 4E9CFF4E | apt-key add –

apt-get -q update
apt-get -f -y -q –allow-unauthenticated install medibuntu-keyring
apt-get -q update
apt-get -f -y -q upgrade

#64 bits or 32 bits
if [ $(uname -m) = ”i686” ]
then
apt-get -f -y -q –allow-unauthenticated  install w32codecs
ONESWARMTAR=OneSwarm_0_7_linux_x86.tar.gz
else
apt-get -f -y -q –allow-unauthenticated install w64codecs
fi

if [ ”$INSTALLMISC” = ”0” ]
then
installprograms ”$PROGRAM_ARRAY”
fi

if [ ”$INSTALLGAMES” = ”0” ]
then
installprograms ”$GAMES_ARRAY”
fi

if [ ”$INSTALLFILESHAREANON” = ”0” ]
then
installprograms ”$FILESHARE_ARRAY”

#i2p
wget http://mirror.i2p2.de/$I2PEXE
java -jar $I2PEXE

#oneswarm install
wget http://oneswarm.cs.washington.edu/builds/$ONESWARMTAR
tar -xvzf $ONESWARMTAR
rm -r /usr/bin/OneSwarm
mkdir /usr/bin/OneSwarm
mv OneSwarm /usr/bin/
chmod -R 777 /usr/bin/OneSwarm
rm OneSwarm*.tar.gz
echo ‘[Desktop Entry]’ > ./oneswarm.desktop
echo ‘Encoding=UTF-8’ >> ./oneswarm.desktop
echo ‘Version=1.0’ >> ./oneswarm.desktop
echo ‘Exec=/usr/bin/OneSwarm/OneSwarm’ >> ./oneswarm.desktop
#gksudo echo ‘Icon=/usr/share/pixmaps/songbird.png’ >> ./oneswarm.desktop #Fix a real icon some day
echo ‘Terminal=false’ >> ./oneswarm.desktop
echo ‘Name=OneSwarm’ >> ./oneswarm.desktop
echo ‘Comment=OneSvarm’ >> ./oneswarm.desktop
echo ‘Categories=Network’ >> ./oneswarm.desktop
echo ‘Type=Application’ >> ./oneswarm.desktop
chmod 777 ./oneswarm.desktop
mv oneswarm.desktop /usr/share/applications/oneswarm.desktop
fi

if [ ”$INSTALLDEVELOPER” = ”0” ]
then
apt-get -f -y -q –allow-unauthenticated install rabbitvcs-gedit rabbitvcs-core rabbitvcs-nautilus idea-ic netbeans postgresql pgadmin3 maven2 #soapui #dbvizualiser #jboss #eclipse #smartcvs #magicdraw
fi

apt-get autoremove
echo ”Script done! Have fun with all the new programs!”
exit 0

This is version 0.01 of the installscript, so bugs and suggestions are welcome.
Use on your own risk – If something breaks, don’t blame me:)
Use and modify freely!

Top things to do after installing Karmic (x64)

After doing some installs of Karmic, Ubuntu for friends, i started to get bored by adding stuff manually after the default install. A good guide for setting up some basic missing things is Silent number’s top things to after installing Karmic /. Read that!

Well, i added most of the stuff he recommends and some other things too, like Flash for x64 , (thanks) in a very basic setupscript, which maybe handy for new installs of Karmic. It installs a lot of tools and utillites too.

To use:
1. Copy the text to a new textfile, put it in your homefolder, rename to something fitting – eg.
”installscript.sh”
2. Open a Terminal: Program->Accesories->Terminal
3. write: sudo chmod 755 whatever you named your script. This is to make it executable
4. Before your run the script, remove any stuff that you dont want. eg: maybe you dont want OneSwarm, then remove the section, and so on.
5. run the script, in terminal: sudo sh whatever you named your script
6. have fun with your new apps.

#! /bin/bash

#RUN THIS SCRIPT FROM YOUR HOME DIR
#Get a good start, update and fix any inconsistences
sudo apt-get update
sudo apt-get upgrade
#sudo apt-get dist-upgrade

#REPO add##################################################################

sudo add-apt-repository ppa:ubuntu-tweak-testing/ppa #ubuntu tweak
#sudo add-apt-repository ppa:team-xbmc/karmic-ppa #xmbc
#sudo add-apt-repository ppa:sportman1280/ppa No karmic ppa for synkron yet
sudo add-apt-repository ppa:dylanmccall/ppa #day of ubuntu
sudo add-apt-repository ppa:hydr0g3n/ppa #qbittorrent 2
sudo add-apt-repository ppa:~songbird-daily/+archive/ppa
sudo add-apt-repository ppa:ubuntu-mozilla-daily/ppa #thunderbird 3, mozilla upd

echo ‘deb http://archive.getdeb.net/ubuntu karmic-getdeb apps’ >> /etc/apt/sources.list.d/deb.getdeb.sources.list #getdeb repo
wget -q -O- http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add –

echo ‘deb http://deb.torproject.org/torproject.org karmic main’ >> /etc/apt/sources.list.d/deb.torproject.sources.list #Tor repo
gpg –keyserver keys.gnupg.net –recv 886DDD89
gpg –export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add –

#Add playdeb repo
wget -O- http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add –

#add mediabuntu repo
sudo wget http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list –output-document=/etc/apt/sources.list.d/medibuntu.list && sudo apt-get -q update && sudo apt-get –yes -q –allow-unauthenticated install medibuntu-keyring && sudo apt-get -q update
#REPO add END#############################################################

#install some stuff ———————————————————————————
sudo apt-get install libdvdcss2 w32codecs mkvtoolnix samba ntp libdvdread4 ubuntu-restricted-extras miro
sudo apt-get install electricsheep simple-ccsm arc-colors community-themes gdm-themes gnome-backgrounds gnome-colors
sudo apt-get install gnome-themes gnome-themes-extras gnome-themes-more metacity-themes shiki-colors avant-window-navigator
sudo apt-get install pitivi pidgin pidgin-otr pidgin-themes pidgin-facebookchat istanbul jokosher gufw cheese
sudo apt-get install mnemosyne anki solang inkscape gimp gwibber clamtk unetbootin rcconf
sudo apt-get install backintime-gnome jedit bluefish gmountiso likewise-open
#truecrypt skype
sudo apt-get install gparted virtualbox-ose ubuntu-tweak lirc xbmc flashplugin-nonfree
sudo apt-get install comix cbrpager dia thunderbird filezilla googleearth sun-java6-jre wireshark bleachbit
sudo apt-get install wine dosbox mame e-uae day-of-ubuntu-wallpaper songbird

#Cool games!
sudo apt-get install freecol playonlinux liquidwar gbrainy warzone2100 frozen-bubble pingus
#sudo apt-get install smokinguns warsow astromenace hedgewars eternallands ufoai nexuiz fretsonfire

#Anonymous, filesharing,vpn etc——————————————-
sudo apt-get install qbittorrent tor tor-geoipdb vidalia network-manager-pptp
#gnunet-gtk
#i2p
sudo wget http://mirror.i2p2.de/i2pinstall_0.7.8.exe
java -jar i2pinstall-0.7.8.exe
#——————————————————

#oneswarm install
wget http://oneswarm.cs.washington.edu/builds/OneSwarm_0_6_9_linux_x86_64.tar.gz
tar -xvzf OneSwarm_0_6_9_linux_x86_64.tar.gz
gksudo ”rm -r /usr/bin/OneSwarm”
gksudo ”mv OneSwarm /usr/bin/OneSwarm”
rm OneSwarm*.tar.gz
gksudo echo ‘[Desktop Entry]’ > ./oneswarm.desktop
gksudo echo ‘Encoding=UTF-8’ >> ./oneswarm.desktop
gksudo echo ‘Version=1.0’ >> ./oneswarm.desktop
gksudo echo ‘Exec=/usr/bin/OneSwarm/OneSwarm’ >> ./oneswarm.desktop
gksudo echo ‘Icon=/usr/share/pixmaps/songbird.png’ >> ./oneswarm.desktop #Fix a real icon some day
gksudo echo ‘Terminal=false’ >> ./oneswarm.desktop
gksudo echo ‘Name=OneSwarm’ >> ./oneswarm.desktop
gksudo echo ‘Comment=OneSvarm’ >> ./oneswarm.desktop
gksudo echo ‘Categories=Network’ >> ./oneswarm.desktop
gksudo echo ‘Type=Application’ >> ./oneswarm.desktop
gksudo ”mv oneswarm.desktop /usr/share/applications/oneswarm.desktop”

anw=`zenity –question –text ”Do you want install the alpha of FLASH 64? WARNING – this willl wipe earlier flash, gnash and related wrapper ”; echo $?`
if [ $anw = 0 ] ; then
gksudo ”echo 0”

# Script created by
# Romeo-Adrian Cioaba romeo.cioaba@spotonearth.com

echo ”Stopping any Firefox that might be running”
sudo killall -9 firefox

echo ”Removing any other flash plugin previously installed:”
sudo apt-get remove -y –purge flashplugin-nonfree gnash gnash-common mozilla-plugin-gnash swfdec-mozilla libflashsupport nspluginwrapper
sudo rm -f /usr/lib/mozilla/plugins/*flash*
sudo rm -f ~/.mozilla/plugins/*flash*
sudo rm -f /usr/lib/firefox/plugins/*flash*
sudo rm -f /usr/lib/firefox-addons/plugins/*flash*
sudo rm -rfd /usr/lib/nspluginwrapper

echo ”Installing Flash Player 10”
cd ~
wget http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz
tar zxvf libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz
sudo cp libflashplayer.so /usr/lib/mozilla/plugins/

echo ”Linking the libraries so Firefox and apps depending on XULRunner (vuze, liferea, rsswol) can find it.”
sudo ln -sf /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/firefox-addons/plugins/
sudo ln -sf /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/xulrunner-addons/plugins/

# now doing some cleaning up:
sudo rm -rf libflashplayer.so
sudo rm -rf libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz

else
zenity –info –text=”Installation of FLASH 64 cancelled.”
fi

EDIT:Updated

This is version 0.02 of the installscript, so please, suggestions are welcome.
If something breaks, don’t blame me:)
Use it anyway you want!