Skip to content

Instantly share code, notes, and snippets.

@hitswa
Last active August 29, 2015 14:22
Show Gist options
  • Save hitswa/735abbfdad48f4007258 to your computer and use it in GitHub Desktop.
Save hitswa/735abbfdad48f4007258 to your computer and use it in GitHub Desktop.
shell script for fresh installed ubuntu copy
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 "Add Personal Package Archives" &&
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 -y ppa:linrunner/tlp &&
sudo add-apt-repository -y ppa:atareao/atareao && # for weather updates
sudo add-apt-repository -y ppa:webupd8team/sublime-text-3 &&
sudo add-apt-repository -y ppa:elementary-os/unstable-upstream &&
sudo add-apt-repository -y ppa:birdie-team/stable &&
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 - &&
sudo apt-get update &&
#sudo apt-get upgrade &&
#sudo apt-get dist-upgrade &&
sudo apt-get purge laptop-mode-tools &&
echo "Install Essentials" &&
sudo apt-get install -y tlp synaptic vlc gimp gimp-data gimp-plugin-registry gimp-data-extras y-ppa-manager bleachbit 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* unity-tweak-tool gnome-tweak-tool icedtea-7-plugin openjdk-7-jre my-weather-indicator git sublime-text-installer indicator-synapse libkeybinder-3.0-0 &&
#sudo tlp start &&
#echo "Install dropbox and fix indecator issue" &&
#sudo apt-get install -y nautilus-dropbox &&
#sudo apt-get install -y libappindicator1 &&
echo "Disable Shopping suggestions" &&
gsettings set com.canonical.Unity.Lenses disabled-scopes "['more_suggestions-amazon.scope', 'more_suggestions-u1ms.scope', 'more_suggestions-populartracks.scope', 'music-musicstore.scope', 'more_suggestions-ebay.scope', 'more_suggestions-ubuntushop.scope', 'more_suggestions-skimlinks.scope']" &&
echo "Install Google 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 "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