Skip to content

Instantly share code, notes, and snippets.

@hansbala
Created March 15, 2018 13:15
Show Gist options
  • Save hansbala/dc64482c8bbc26487e18e36aed6313df to your computer and use it in GitHub Desktop.
Save hansbala/dc64482c8bbc26487e18e36aed6313df to your computer and use it in GitHub Desktop.
#!/bin/bash
# This is a script that is used to setup an entire Linux System from scratch (mostly
# Software, programs, and configurations cause I spend most of my time in the terminal)
# This script also spits out my configurations as mentioned above so backup yours if you
# want to (Just a warning!)
# As of now this works with Ubuntu 16.04.4 LTS
# It has not been tested on other systems so use at your own risk
# Because Ubuntu has this broken package (libappstream3) I just purge it
# If I do need it later on, apt will anyways reinstall it as a dependency, so all's good
# You might not require the following if you are on another distro
yes | sudo apt purge libappstream3
# Initial System update and upgrade for latest packages and security upgrades
sudo apt update
yes | sudo apt upgrade
# Miscellaneous programs that I require more or less on a day to day basis
yes | sudo apt install vim zsh vlc axel git xclip gparted youtube-dl gdebi transmission
yes | sudo apt install g++ python python-pip python-dev build-essential python3 python3-pip
# Spotify installation using repository (I still prefer this over using snaps)
# Maybe in the future I'll port over applications that use snaps but until then ...
yes | sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list
sudo apt update
yes | sudo apt install spotify-client
# ------------------------ start of local applications ------------------
# I should probably port over these local applications to use the web and make
# it a it more pretty looking but I'm just too lazy. Hahahaha. Why the fuck did I
# just type this. Am I drunk >3 ;') Rarrrr.
# -- Local Applications
cd "/media/hansbala/Files/Computer Stuff/Applications/Linux/Java"
./Install_Java.sh
cd "/media/hansbala/Files/Computer Stuff/Applications/Linux/Google_Chrome"
sudo gdebi -n google-chrome-stable_current_amd64.deb
mkdir -p ~/Videos/PopCornTime
cd "/media/hansbala/Files/Computer Stuff/Applications/Linux/Pop_Corn_Time"
tar -xf Popcorn-Time-0.3.10-Linux-64.tar.xz -C ~/Videos/PopCornTime
cd "/media/hansbala/Files/Computer Stuff/Applications/Linux/Sublime"
sudo gdebi -n sublime-text_build-3126_amd64.deb
# ------------------------ End of local applications --------------------
# Spitting dotfiles into my home directory. Rarrrrrr.
cd /home/hansbala/
git clone https://www.github.com/hansbala/dotfiles.git
sudo mv dotfiles/* dotfiles/.* .
# If I don't echo all files into gitignore next time I run 'git status'
# I'll be looking at a screen of red. I'm just too lazy to do it later. Rarrr.
echo "*" > .gitignore
sudo rm -rf dotfiles
# Again do system update and upgrade to refresh newly installed packages with gdebi
# I'm looking at you google-chrome :')
sudo apt update
yes | sudo apt upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment