Skip to content

Instantly share code, notes, and snippets.

@snhasani
Created June 24, 2015 11:21
Show Gist options
  • Save snhasani/e490c0d30d7f49912f7a to your computer and use it in GitHub Desktop.
Save snhasani/e490c0d30d7f49912f7a to your computer and use it in GitHub Desktop.
bash script for install essential application after setup linux
#!/bin/bash
# originally: https://github.com/taataam/helloworld
echo "Downloading GetDeb and PlayDeb"
wget http://archive.getdeb.net/install_deb/getdeb-repository_0.1-1~getdeb1_all.deb http://archive.getdeb.net/install_deb/playdeb_0.3-1~getdeb1_all.deb
echo "Installing GetDeb"
sudo dpkg -i getdeb-repository_0.1-1~getdeb1_all.deb
echo "Installing PlayDeb"
sudo dpkg -i playdeb_0.3-1~getdeb1_all.deb
echo "Deleting Downloads"
rm -f getdeb-repository_0.1-1~getdeb1_all.deb
rm -f playdeb_0.3-1~getdeb1_all.deb
echo "Adding Essential Repositories"
sudo add-apt-repository -y ppa:videolan/stable-daily
sudo add-apt-repository -y ppa:otto-kesselgulasch/gimp
sudo add-apt-repository -y ppa:gnome3-team/gnome3
sudo add-apt-repository -y ppa:webupd8team/java
sudo add-apt-repository -y ppa:webupd8team/y-ppa-manager
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo add-apt-repository ppa:rednotebook/stable
sudo add-apt-repository ppa:plushuang-tw/uget-stable
sudo add-apt-repository ppa:nilarimogard/webupd8
echo 'deb http://download.videolan.org/pub/debian/stable/ /' | sudo tee -a /etc/apt/sources.list.d/libdvdcss.list
echo 'deb-src http://download.videolan.org/pub/debian/stable/ /' | sudo tee -a /etc/apt/sources.list.d/libdvdcss.list
wget -O - http://download.videolan.org/pub/debian/videolan-apt.asc|sudo apt-key add -
echo "updating Ubuntu"
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
echo "Installing Essentials Apps"
sudo apt-get install synaptic vlc gimp gimp-data gimp-plugin-registry gimp-data-extras y-ppa-manager bleachbit openjdk-7-jre oracle-java8-installer flashplugin-installer unace unrar zip unzip p7zip-full p7zip-rar sharutils rar uudeview mpack arj cabextract file-roller libxine1-ffmpeg mencoder flac faac faad sox ffmpeg2theora libmpeg2-4 uudeview libmpeg3-1 mpeg3-utils mpegdemux liba52-dev mpeg2dec vorbis-tools id3v2 mpg321 mpg123 libflac++6 totem-mozilla icedax lame libmad0 libjpeg-progs libdvdcss2 libdvdread4 libdvdnav4 libswscale-extra-2 ubuntu-restricted-extras ubuntu-wallpapers* gcc-5 g++-5 gfortran-5 uget rednotebook indicator-netspeed
echo "Configuring Compilers"
sudo update-alternatives --remove-all gcc
sudo update-alternatives --remove-all g++
sudo update-alternatives --remove-all gfortran
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 20
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 20
sudo update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-5 20
sudo update-alternatives --config gcc
sudo update-alternatives --config g++
sudo update-alternatives --config gfortran
echo "Installing Chrome"
if [[ $(getconf LONG_BIT) = "64" ]]
then
echo "64bit Detected"
echo "Installing Google Chrome"
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
rm -f google-chrome-stable_current_amd64.deb
else
echo "32bit Detected"
echo "Installing Google Chrome"
wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb
sudo dpkg -i google-chrome-stable_current_i386.deb
rm -f google-chrome-stable_current_i386.deb
fi
echo "Installing and Configuring Eclipse Parallel"
wget -P ~/Downloads/ ftp://ftp.bluage.com/eclipse442/eclipse-parallel-luna-SR2-linux-gtk-x86_64.tar.gz
cd /opt/
sudo tar -zxvf ~/Downloads/eclipse-parallel-luna-SR2-linux-gtk-x86_64.tar.gz
sudo su
sudo echo "[Desktop Entry]" > /usr/share/applications/eclipse.desktop
sudo echo "Name=Eclipse Parallel" >> /usr/share/applications/eclipse.desktop
sudo echo "Type=Application" >> /usr/share/applications/eclipse.desktop
sudo echo "Exec=/opt/eclipse/eclipse" >> /usr/share/applications/eclipse.desktop
sudo echo "Terminal=false" >> /usr/share/applications/eclipse.desktop
sudo echo "Icon=/opt/eclipse/icon.xpm" >> /usr/share/applications/eclipse.desktop
sudo echo "Comment=Integrated Development Environment" >> /usr/share/applications/eclipse.desktop
sudo echo "NoDisplay=false" >> /usr/share/applications/eclipse.desktop
sudo echo "Categories=Development;IDE;" >> /usr/share/applications/eclipse.desktop
sudo echo "Name[en]=Eclipse" >> /usr/share/applications/eclipse.desktop
exit
echo "Cleaning Up"
sudo apt-get -f install
sudo apt-get autoremove
sudo apt-get -y autoclean
sudo apt-get -y clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment