Last active
April 3, 2018 05:22
-
-
Save rohithpeddi/87d8722827a8c1fb2077ba25cb3d62d9 to your computer and use it in GitHub Desktop.
Post install script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Steps to run this script | |
# $ sudo -s | |
# $ touch script.sh | |
## copy paste this file to script.sh | |
# $ chmod +x script.sh | |
# $ ./script.sh 2>&1 | tee scriptoutput | |
# add repos | |
echo "====================" | |
echo "Adding Repos" | |
echo "====================" | |
#chrome | |
sudo add-apt-repository -y "deb http://dl.google.com/linux/chrome/deb/ stable main" | |
sudo wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - | |
#docker | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
#sublime-text | |
sudo wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - | |
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list | |
#sticky-notes | |
sudo add-apt-repository -y ppa:umang/indicator-stickynotes | |
# download manager | |
sudo add-apt-repository -y ppa:noobslab/apps | |
# sm player | |
sudo add-apt-repository -y ppa:rvm/smplayer | |
echo "====================" | |
echo "Finished adding repos" | |
echo "====================" | |
# basic update | |
echo "====================" | |
echo " basic update" | |
echo "====================" | |
sudo apt-get -y --force-yes update | |
# sudo apt-get -y --force-yes upgrade | |
echo "====================" | |
echo "basic update done" | |
echo "====================" | |
# install apps | |
echo "====================" | |
echo " Installing apps from apt-get" | |
echo "====================" | |
sudo apt-get -y install \ | |
libxss1 sublime-text git \ | |
curl gparted google-chrome-stable chromium-browser \ | |
ubuntu-wallpapers* openjdk-8-jdk xdman-downloader qbittorrent \ | |
linux-headers-generic python-dev python3-dev python-pip python3-pip \ | |
build-essential clipit tree indicator-stickynotes \ | |
smplayer smplayer-themes smplayer-skins | |
echo "====================" | |
echo " Installing apps done" | |
echo "====================" | |
echo "====================" | |
echo " Installing docker-ce" | |
echo "====================" | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
apt-cache policy docker-ce | |
sudo apt-get install -y --allow-unauthenticated docker-ce | |
echo "====================" | |
echo " docker installed" | |
echo "====================" | |
echo "====================" | |
echo "Installing docker-compose" | |
echo "====================" | |
sudo pip install docker-compose | |
echo "====================" | |
echo "docker-compose installed" | |
echo "====================" | |
echo "====================" | |
echo "Installing fuck" | |
echo "====================" | |
sudo pip3 install thefuck | |
echo 'eval $(thefuck --alias)' | sudo tee -a ~/.bashrc | |
echo "====================" | |
echo " fuck installed" | |
echo "====================" | |
# set env variables | |
echo "====================" | |
echo " Setting Env variables" | |
echo "====================" | |
echo 'export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64' | sudo tee -a /etc/profile | |
echo 'export PATH=$JAVA_HOME/bin:$PATH' | sudo tee -a /etc/profile | |
echo "====================" | |
echo " Env variables set" | |
echo "====================" | |
echo "====================" | |
echo " Loading env variables" | |
echo "====================" | |
source ~/.bashrc | |
source /etc/profile | |
echo "====================" | |
echo " Loaded env variables" | |
echo "====================" | |
echo "====================" | |
echo " Other settings" | |
echo "====================" | |
# update system settings (must be run as user) | |
# set sublime text as default | |
sudo sed -i 's/gedit/sublime_text/g' /etc/gnome/defaults.list | |
gsettings set com.canonical.indicator.power show-percentage true | |
gsettings set com.canonical.Unity.Launcher favorites "['application://google-chrome.desktop', 'application://sublime_text.desktop', 'application://chromium-browser.desktop']" | |
# prompt for a reboot | |
clear | |
echo "" | |
echo "====================" | |
echo " TIME FOR A REBOOT! " | |
echo "====================" | |
echo "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment