Hem » GNU/Linux » Top things to do after installing Ubuntu 10.10 Maverick

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!

Advertisements

Kommentera

Fyll i dina uppgifter nedan eller klicka på en ikon för att logga in:

WordPress.com Logo

Du kommenterar med ditt WordPress.com-konto. Logga ut / Ändra )

Twitter-bild

Du kommenterar med ditt Twitter-konto. Logga ut / Ändra )

Facebook-foto

Du kommenterar med ditt Facebook-konto. Logga ut / Ändra )

Google+ photo

Du kommenterar med ditt Google+-konto. Logga ut / Ändra )

Ansluter till %s