Skip to content

Instantly share code, notes, and snippets.

@halissonvit
Forked from fredgalvao/install.sh
Created May 7, 2012 17:19
Show Gist options
  • Save halissonvit/2629069 to your computer and use it in GitHub Desktop.
Save halissonvit/2629069 to your computer and use it in GitHub Desktop.
Linux All-Installer-Configurator
#!/bin/sh
set -e
INITIALPWD=`pwd`
#=============================================================================================
#:::After installing the operating system:::
sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y autoclean && sudo apt-get -y autoremove
#=============================================================================================
#=============================================================================================
#============ ADD REPOSITORIES FOR SOFTWARE INSTALLATION AND UPDATES =========================
#For nVidia Optimus - bumblebee
sudo add-apt-repository -y ppa:bumblebee/stable
#For nVidia drivers and X11 updates
sudo add-apt-repository -y ppa:ubuntu-x-swat/x-updates
#For awOken icon set
sudo add-apt-repository -y ppa:alecive/antigone
#For groovy packages and metapackages
sudo add-apt-repository -y ppa:groovy-dev/groovy
#For grails packages and metapackages
sudo add-apt-repository -y ppa:groovy-dev/grails
#For Ubuntu Tweakppa:tiheum/equinox
sudo add-apt-repository -y ppa:tualatrix/ppa
#For deluge torrent client
sudo add-apt-repository -y ppa:deluge-team/ppa
#For PostgreSQL and pgAdmin updated packages
sudo add-apt-repository -y ppa:flexiondotorg/postgres
#For Y-PPA manager
sudo add-apt-repository -y ppa:webupd8team/y-ppa-manager
#For Faenza icon set
sudo add-apt-repository -y ppa:tiheum/equinox
#For canonical partner repositories
sudo add-apt-repository -y "deb http://archive.canonical.com/ $(lsb_release -sc) partner"
#For DeadBeef song player
sudo add-apt-repository -y ppa:alexey-smirnov/deadbeef
#For RabbitVCS
sudo add-apt-repository -y ppa:rabbitvcs/ppa
#For opera software
wget -qO - http://deb.opera.com/archive.key | sudo apt-key add - && sudo sh -c 'echo "deb http://deb.opera.com/opera/ stable non-free" > /etc/apt/sources.list.d/opera.list'
#For google-chrome
wget -qO - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - && sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list'
#=============================================================================================
#=============================================================================================
#Fixes DeaDBeeF repo for precise (12.04)
echo -e "deb http://ppa.launchpad.net/alexey-smirnov/deadbeef/ubuntu oneiric main\ndeb-src http://ppa.launchpad.net/alexey-smirnov/deadbeef/ubuntu oneiric main" | sudo tee /etc/apt/sources.list.d/alexey-smirnov-deadbeef-precise.list
#=============================================================================================
#=============================================================================================
#For codecs, plugins, and media software
MURL="http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list"
sudo -E wget --output-document=/etc/apt/sources.list.d/medibuntu.list $MURL
sudo apt-get update && sudo apt-get -y --allow-unauthenticated install medibuntu-keyring
sudo apt-get update && sudo apt-get -y upgrade
sudo apt-get install app-install-data-medibuntu apport-hooks-medibuntu
#=============================================================================================
#=============================================================================================
#For the java custom installer, <downloads and installs the last version through a local repo>
JURL='https://raw.github.com/flexiondotorg/oab-java6/master/oab-java6.sh'
#wget $JURL -O /tmp/oab-java6.sh && chmod +x /tmp/oab-java6.sh && sudo /tmp/oab-java6.sh
sudo apt-get -y remove icedtea-*
sudo apt-get -y install sun-java6-*
sudo apt-get -y remove openjdk-6-j*
#=============================================================================================
#=============================================================================================
#============ INSTALL ALL NEEDED SOFTWARE ====================================================
#Enables nVidia optimus control
sudo apt-get install -y bumblebee bumblebee-nvidia
#Enables partition management and ntfs write permission
sudo apt-get install -y gparted ntfs-config
#Enables most of codecs, plugins, ubuntu-tweak, and two icon sets
sudo apt-get install -y xubuntu-restricted-extras ubuntu-tweak awoken-icon-theme faenza-icon-theme
#Enables most of the compression methods' software
sudo apt-get install -y zip unzip p7zip-full p7zip-rar sharutils rar uudeview mpack lha arj cabextract file-roller unace unrar
#Enables Vim, monitoring software, psql related, version control related, and grails related
sudo apt-get install -y vim discus iotop nmon ant postgresql subversion pgadmin3
#Enables meta-packages for groovy and grails (always latest versions, and updates)
sudo apt-get install -y groovy grails
#Enables <<<<<<ALL>>>>>> versions of groovy (1.7+) and grails (1.2+) available in the repositories (http://freshgroovy.com)
#sudo apt-get install -y '^groovy-*' '^grails*'
#Enables RabbitVcs for Thunar
sudo apt-get install -y rabbitvcs-thunar
#Enables RabbitVcs for Nautilus 2
#sudo apt-get install -y rabbitvcs-nautilus
#Enables RabbitVcs for Nautilus 3
#sudo apt-get install -y rabbitvcs-nautilus3
#Enables RabbitVcs for gEdit
#sudo apt-get install -y rabbitvcs-gedit
#Enables all other codecs, and installs vlc media player
sudo apt-get install -y non-free-codecs libdvdcss2 vlc libxine1-ffmpeg gxine mencoder totem-mozilla icedax tagtool easytag id3tool lame libmad0 mpg321
#Enables DeadBeef song player
sudo apt-get install -y deadbeef
#Enables torrent, windows emulation, skype, ftp, and acrobat reader
sudo apt-get install -y wine deluge skype playonlinux filezilla acroread
#Enables virtualization
sudo apt-get install -y virtualbox virtualbox-guest-additions-iso
#Enables graphics and 3D editor
sudo apt-get install -y blender
#Enables ppa manager
sudo apt-get install -y y-ppa-manager
#Enables Opera Browser
sudo apt-get install -y opera
#Enables Google-chrome stable channel browser
sudo apt-get install -y google-chrome-stable
#Enables FOSS Chromium stable browser
sudo apt-get install -y chromium-browser
#Install Terminator
sudo apt-get install -y terminator
#=============================================================================================
#=============================================================================================
#For Thunar, fix first-use bug and delay
#Replace 'AutoMount=true' with 'AutoMount=false'
#sudo vim /usr/share/gvfs/mounts/network.mount
#TAURL='https://bugs.launchpad.net/ubuntu/+source/thunar/+bug/775117/+attachment/3093754/+files/Thunar%20accelerator.desktop'
#wget $TAURL -O ~/.config/autostart/Thunar\ accelerator.desktop
#=============================================================================================
#=============================================================================================
#For Adobe Air for linux
#wget http://airdownload.adobe.com/air/lin/download/latest/AdobeAIRInstaller.bin -O /tmp/AdobeAIRInstaller.bin
#sudo ln -s /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0
#sudo ln -s /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/libgnome-keyring.so.0.2.0
#sudo chmod +x /tmp/AdobeAIRInstaller.bin
#sudo /tmp/AdobeAIRInstaller.bin
#=============================================================================================
#=============================================================================================
#Changes default password of postgres user
#sudo -u postgres psql -c "ALTER USER postgres WITH PASSWORD 'root';"
#=============================================================================================
#=============================================================================================
#For Dropbox installer
#Downloads installer
#cd ~ && wget -O - "http://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -
#Must run mannualy later to install dropbox
#~/.dropbox-dist/dropboxd &
#=============================================================================================
#=============================================================================================
#For IntellijIDEA. Change IDEAV to download another version.
#IDEAV="11.1.1"
#IDEAN="ideaIU-$IDEAV.tar.gz"
#wget http://download.jetbrains.com/idea/$IDEAN -O /tmp/$IDEAN
#tar xzf /tmp/$IDEAN -C /home/$USER/
#IDEAOLDDIR=`find ~/ -type d -name 'idea-IU*'`
#mv $IDEAOLDDIR /home/$USER/idea-$IDEAV
#chmod +x /home/$USER/idea-$IDEAV/bin/idea.sh
#=============================================================================================
#=============================================================================================
## For aditional groovy versions
#GROOVYV="1.6.4"
#GROOVYN="groovy-binary-$GROOVYV.zip"
#wget http://dist.groovy.codehaus.org/distributions/$GROOVYN -O /tmp/$GROOVYN
#sudo mkdir -p /usr/lib/groovy/
#sudo unzip /tmp/$GROOVYN -d /usr/lib/groovy/
#GROOVYD=`find /usr/lib/groovy/ -type d -name "*$GROOVYV*"`
#sudo mv $GROOVYD /usr/lib/groovy/$GROOVYV
#sudo update-alternatives --install /usr/bin/groovy groovy /usr/lib/groovy/$GROOVYV/bin/groovy 50 \
#--slave /usr/bin/groovyc groovyc /usr/lib/groovy/$GROOVYV/bin/groovyc \
#--slave /usr/bin/groovyConsole groovyConsole /usr/lib/groovy/$GROOVYV/bin/groovyConsole \
#--slave /usr/bin/groovydoc groovydoc /usr/lib/groovy/$GROOVYV/bin/groovydoc \
#--slave /usr/bin/groovysh groovysh /usr/lib/groovy/$GROOVYV/bin/groovysh \
#--slave /usr/bin/grape grape /usr/lib/groovy/$GROOVYV/bin/grape \
#--slave /usr/bin/java2groovy java2groovy /usr/lib/groovy/$GROOVYV/bin/java2groovy \
#--slave /usr/bin/startGroovy startGroovy /usr/lib/groovy/$GROOVYV/bin/startGroovy
#=============================================================================================
cd $INITIALPWD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment