Wednesday, August 15, 2012

Setup Xubuntu 12.04 with updated XFCE and all the Fix'ins using APT-FAST

I Really like Ubuntu. The community support and package selection are really very nice, but I don't like unity. I like things my way so I wrote this script to use after a basic server install, it installs the latest XFCE,Skype,Dropbox,Libreoffice and a whole lot more using apt-fast, which it also installs. To use it, just download the script to a new server install using wget, use nano to comment out the stuff you don't want, and run it as described in the script itself.
You can run it as soon as you install... apt-fast will be copied over and even your post installiaion apt upgrade will be faster!

So.. during the install... don't download updates and don't sudo apt-get update && sudo apt-get upgrade, run the script and everything will be done using apt-fast.

From now on use apt-fast install instead and feel the speed!

Using apt-fast will REALLY speed up an install!!
Let me Know what you think... (Plus stuff to add!!)
Here is a copy of the script in case the above link dosen't work...

#! /bin/sh

#Scott Goodgame 2012 --- Do whatever you want with this script.
#Check for updates at
#Thanks to Matt Parnell for apt-fast!!!
#Just a little script to get an ubuntu 12.04 system up quickly. 
#Adds ppa's for software I use to stay current.
#installs games and utilities that are fun/come in handy,adds winbind and
#sets it up to browse windows networks.
#comment out/remove the stuff you don't want.
# Bitcasa is 64 bit only,you need to uncomment it if you want it.
#HuluDesktop has 64 and 32 bit versions, 32 bit is enabled by default by the script.

#yes, I know i update alot, but I did it this way to make it easier to comment out sections
# to use: put the script in your home directory. 
# go to a shell type
# cd /home/ 
# chmod +x
# sudo /home//
# walk away for awhile.... you are getting a bunch of stuff to give you a nice,
# rounded system with the latest versions of popular software

#The install will only need input a few times..

# wicd wants to add your user to netdev group ( 1aef )
# jack will install as part of the music stuff ( 2eef )
# Wine wants you to agree and install fonts ( 1ff4 )

[ "`whoami`" = root ] || exit

#get the system updated
apt-get update
apt-get -y install python-software-properties #fix add-apt-repository

#I love apt-fast, but there is no ppa for 12.04 yet, so I just set it up for you. DO NOT edit the end of the file, that is apt-fast. I install it from there.
#set up apt-fast
apt-get -y install axel 
tail -55 "$0" |cut -b 1 --complement > /usr/bin/apt-fast
chmod 755 /usr/bin/apt-fast

apt-fast -y upgrade
#enable partner repository
add-apt-repository "deb $(lsb_release -sc) partner"

###Below here, comment out the lines of stuff you don't want. Note that each ppa you add will increase the size of your updates, but you will have the latest version.

#add Xfce 4.10 - stolen directly from
add-apt-repository -y ppa:xubuntu-dev/xfce-4.10
apt-fast update
apt-fast -y dist-upgrade

#vlc daily stable ppa
add-apt-repository -y ppa:videolan/stable-daily
apt-fast update && apt-fast -y install  vlc

#add gimp ppa  
add-apt-repository -y ppa:otto-kesselgulasch/gimp
apt-fast update && apt-fast -y install  gimp

#gimp plugin registry
add-apt-repository -y ppa:otto-kesselgulasch/gimp
apt-fast update
apt-fast -y install gimp-plugin-registry

#Inkscape ppa
add-apt-repository -y ppa:cafuego/inkscape
apt-fast update
apt-fast -y install inkscape

#blender ppa
sh -c 'echo "deb precise main" >>/etc/apt/sources.list'
apt-fast update
apt-fast -y install blender
#add openshot video editor ppa and install 
add-apt-repository -y ppa:jonoomph/openshot-edge
apt-fast update
apt-fast -y install  openshot openshot-doc

#cinelerra ppa
add-apt-repository -y ppa:cinelerra-ppa/ppa
apt-fast update
apt-fast -y install  cinelerra
sh -c 'echo "deb oneiric main" >>/etc/apt/sources.list'
sh -c 'echo "deb-src oneiric main" >>/ect/apt/sources.list'
apt-fast update
apt-fast -y --force-yes install handbrake-gtk

#add -really cool game/app repo. go and check it out..
wget -P /tmp
dpkg -i playdeb_0.3-1~getdeb1_all.deb
apt-fast install -f -y
rm /tmp/playdeb_0.3-1~getdeb1_all.deb

#medibuntu for livdvdcss2 -- use this to play DVD's
wget --output-document=/etc/apt/sources.list.d/medibuntu.list$(lsb_release -cs).list &&  apt-fast --quiet update &&  apt-fast --yes --quiet --allow-unauthenticated install medibuntu-keyring &&  apt-fast --quiet update
apt-fast -y install  app-install-data-medibuntu apport-hooks-medibuntu libdvdcss2

#Sound/Music creation related stuff   
apt-fast -y install muse audacity lame

#Mostly programming stuff - If you don't program, then you don't need and just comment it out. (although squeak is a nice gentle intro) 
apt-fast -y install scilab eclipse geany arduino emacs bless squeak-vm robocode eric idle

#ppa for the go language.. check it out on google tech talks
add-apt-repository -y ppa:gophers/go
apt-fast update
apt-fast -y install golang-stable 

apt-fast -y install software-center p7zip-full p7zip-rar rar unrar zip unzip leafpad terminator conky lm-sensors hddtemp
apt-fast -y install ubuntu-restricted-extras evince mountmanager bleachbit  preload unetbootin pulseaudio pavucontrol gparted skype

#misc. stuff I like to have
apt-fast -y install aweather scribus sunflow qrq qrencode dia gns3

# sound player -just like it best. (at least for now)
apt-fast -y install exaile

#youtube related stuff
apt-fast -y install youtube-dl minitube

#image related stuff
apt-fast -y install f-spot photoprint pinta fotowall shotwell hugin ristretto

#iso manipulation/mount and cd/dvd burning
apt-fast -y install xfburn acetoneiso furiusisomount

#useful network stuff
apt-fast -y install wireless-tools iftop iperf wireshark nmap screen ssh sshfs xchat links remmina traceroute curl

#Pulse Audio 
apt-fast -y install pulseaudio pavucontrol

#command line stuff-useful if X dies on you
apt-fast -y install links mc aptitude 

#Hulu Desktop 64 bit
dpkg -i huludesktop_amd64.deb 

#Hulu Desktop 32 bit
#dpkg -i

#firefox ppa
add-apt-repository -y ppa:mozillateam/firefox-next
apt-fast update
apt-fast -y install firefox

#Anti-Virus  I know Linux is not often the target, but better safe than sorry
wget -P /tmp
dpkg -i avast4workstation_1.3.0-2_i386.deb 
rm /tmp/avast4workstation_1.3.0-2_i386.deb

add-apt-repository -y ppa:webupd8team/java 
apt-fast update
apt-fast -y install oracle-java7-installer

#libreoffice ppa
add-apt-repository -y ppa:libreoffice/ppa
apt-fast update
apt-fast -y install  libreoffice

#Wine         ( 1ff4 Wine wants you to agree and install fonts)
add-apt-repository -y  ppa:ubuntu-wine/ppa
apt-fast update
apt-fast -y install wine1.5 winetricks playonlinux

#install ubuntu builder.. a cool easy way to create a custom cd/dvd
wget -P /tmp
dpkg -i ubuntu-builder_2.0.2-1_all.deb
apt-fast install -f -y
rm /tmp/ubuntu-builder_2.0.2-1_all.deb

#ZRAM ram based swap- very fast I like it, but your results may vary.
add-apt-repository -y ppa:shnatsel/zram
apt-fast update
apt-fast -y install zramswap-enabler

#Boot Repair.. fixes GRUB problems
add-apt-repository -y ppa:yannubuntu/boot-repair 
apt-fast update 
apt-fast -y install boot-repair 

#VirtualBox 4.1.16 & guest add-ons
wget -q -O- |  apt-key add -
sh -c 'echo "deb precise contrib" >> /etc/apt/sources.list'
apt-fast update
apt-fast -y install virtualbox-4.1
wget /tmp/
VBoxManage extpack install ~/Oracle_VM_VirtualBox_Extension_Pack-4.1.16--78094.vbox-extpack
rm /tmp/Oracle_VM_VirtualBox_Extension_Pack-4.1.16-78094.vbox-extpack

#Ubuntu Tweak - lets you tweak settings in one place. I rarely use it, but many people love it.
add-apt-repository -y ppa:tualatrix/next 
apt-fast update 
apt-fast -y install ubuntu-tweak

apt-key adv --keyserver --recv-keys 5044912E
sh -c 'echo "deb precise main" >> /etc/apt/sources.list.d/dropbox.list' 
apt-fast update 
apt-fast install -y python-gpgme nautilus-dropbox 

#Bitcasa -- 64 bit only :(
wget -O- | sudo sh
apt-fast update 
apt-fast -y install bitcasa
perl -e '$h="5261776264206775722076617376617667722065726663626166766879642"; 
s.([a-zA-Z]).ord$1<97 ---="---" --force-yes="--force-yes" --print-uris="--print-uris" -="-" -d="-d" -e="-e" -exec="-exec" -i="-i" -iname="-iname" -o="-o" -p="-p" -q="-q" -x="-x" -y="-y" .="." 0ad="0ad" 1="1" a="a" abhishek="abhishek" add-apt-repository="add-apt-repository" add="add" admin="admin" alien-arena="alien-arena" allan="allan" also="also" ame="ame" an="an" and="and" anything="anything" apt-add-repository="apt-add-repository" apt-fast="apt-fast" apt-get="apt-get" apt="apt" archives="archives" are="are" arguments="arguments" aria2c="aria2c" assaultcube="assaultcube" at="at" atomix="atomix" atris="atris" att="att" autocompletion="autocompletion" autoremove="autoremove" autorun="autorun" axel.="axel." axel="axel" bash_completion="bash_completion" battle="battle" below="below" berusky="berusky" big="big" bin="bin" boswars="boswars" browse="browse" by="by" cache="cache" can="can" case="case" cd="cd" center..="center.." check="check" checking="checking" chipset="chipset" clean="clean" commands="commands" comment="comment" complex="complex" contact="contact" contain="contain" cool="cool" cp="cp" data="data" detection="detection" directory="directory" dist-upgrade="dist-upgrade" distros="distros" dns="dns" do="do" don="don" dosbox="dosbox" download="download" downloaded="downloaded" downloading.="downloading." dreamchess="dreamchess" drivers="drivers" echo="echo" edit="edit" egrep="egrep" einstein="einstein" else="else" elsewhere="elsewhere" enigma="enigma" entered="entered" esac="esac" etc="etc" exec="exec" exit="exit" f="f" faster="faster" fceu="fceu" fi="fi" files="files" find="find" for="for" found="found" freeciv-client-gtk="freeciv-client-gtk" freecol="freecol" from="from" fully="fully" g="g" game="game""" games="games" gbrainy="gbrainy" ge="ge" get="get" gets="gets" ghextris="ghextris" gmult="gmult" gnome-video-arcade="gnome-video-arcade" gnotravex="gnotravex" go="go" graphics="graphics" grep="grep" gtans="gtans" have="have" here="here" hoffmeister="hoffmeister" host="host" how="how" ht="ht" http:="http:" i="i" id1="id1" if="if" in="in" including="including" information="information" init.d="init.d" install="install" installed="installed" installs="installs" into="into" is="is" it="it" jockey-gtk="jockey-gtk" just="just" klien="klien" know="know" kramer="kramer" latest="latest" lc="lc" let="let" lightsoff="lightsoff" lightyears="lightyears" like="like" lincity-ng="lincity-ng" machine="machine" madbomber="madbomber" made="made" mahjongg="mahjongg" make="make" mame="mame" manually="manually""" may="may" me="me" megaglest="megaglest" mkdir="mkdir" mv="mv" n="n" nabling="nabling" need...thanks="need...thanks" need.="need." networking="networking" networks="networks" neverball="neverball" neverputt="neverputt" normally="normally" not="not" now...="now..." nsswitch.conf.old="nsswitch.conf.old" nsswitch.conf="nsswitch.conf" nstall="nstall" nvidia-current="nvidia-current" nvidia-settings="nvidia-settings" nvidia="nvidia" often.="often." often="often" on="on" open-source="open-source" ops="ops" or="or" ord="ord" orking...="orking..." other="other" out="out" package="package" packages="packages" pak0.pak="pak0.pak" pak1.pak="pak1.pak" parnell="parnell" patrick="patrick" penguin-command="penguin-command" perform="perform" pgrade="pgrade" pingus="pingus" pioneers="pioneers" play="play" possible="possible" ppa:ubuntu-x-swat="ppa:ubuntu-x-swat" ppa:vincent-c="ppa:vincent-c" ppa="ppa" print="print" priveliges="priveliges" proper="proper" proxy="proxy" publish="publish" puts="puts""" quake="quake" read="read" reboot="reboot" redeclipse="redeclipse" regex="regex" restart="restart" richard="richard" rm="rm" rmdir="rmdir" root="root" ruiz="ruiz" s="s" samba="samba" scummvm="scummvm" sed="sed" see="see" sergio="sergio" setup="setup" sh="sh" share="share" sharma="sharma" showing="showing" silva="silva" size="size" smbfs="smbfs" so="so" software="software" special="special" speediness="speediness" starvoyager="starvoyager" stella="stella" strip="strip" suggestions.txt="suggestions.txt" suggestions="suggestions" supertuxkart="supertuxkart" support="support" sure="sure" system-config-samba="system-config-samba" t="t" test="test" thanks="thanks" the="the" then="then" thing="thing" this="this" time="time" tmp="tmp" to="to" torcs="torcs" tp:="tp:" travis="travis" travisn000="travisn000" ubuntu="ubuntu" uc="uc" un="un" unable="unable" uncomment="uncomment" untested="untested" unzip="unzip" update="update" updates="updates" upgrade="upgrade" uri="uri" usage="usage" use="use" user="user" using="using" usr="usr" v0.03="v0.03" var="var" want="want" warzone2100="warzone2100" wesnoth-1.10="wesnoth-1.10" wesnoth="wesnoth" wget="wget" whoami="whoami" whoever="whoever" will="will" winbind="winbind" windows="windows" wins="wins" with="with" wrote="wrote""" x-updates="x-updates" xshogi="xshogi" y="y" you="you" zaz="zaz"> apt-get.list && cat apt-get.list | xargs -l1 axel -a
#  # Perform the user's requested action via apt-get
#  apt-get $@;
#  echo -e "\nDone! Verify that all packages were installed successfully. If errors are found, run apt-get clean as root and try again using apt-get directly.\n";
#   apt-get $@;

No comments: