Last active
January 3, 2018 19:09
-
-
Save lukehsiao/1d22aac2f8af05c8b861559909392725 to your computer and use it in GitHub Desktop.
Post-install script for setting up an xubuntu machine.
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 | |
NOTEBOOK=true | |
# Add repositories | |
sudo add-apt-repository -y "deb https://dl.google.com/linux/chrome/deb/ stable main" | |
sudo add-apt-repository -y pps:yubico/stable | |
if [ "$NOTEBOOK" = true ] ; then | |
sudo add-apt-repository -y ppa:linrunner/tlp | |
fi | |
# Perform an update | |
sudo apt-get -y --force-yes update | |
sudo apt-get -y --force-yes upgrade | |
# Install apps | |
sudo apt-get -y install \ | |
git \ | |
mosh \ | |
ssh \ | |
google-chrome-stable \ | |
build-essential \ | |
tmux \ | |
vim-gnome \ | |
curl \ | |
python-dev python-pip\ | |
python3-dev python3-pip\ | |
filezilla \ | |
ppa-purge \ | |
texlive-extra-utils \ | |
pinta \ | |
ack-grep \ | |
yubikey-manager \ | |
if [ "$NOTEBOOK" = true ] ; then | |
sudo apt-get -y install tlp | |
fi | |
# Install Python packages | |
sudo pip3 install --upgrade pip | |
sudo pip3 install virtualenv | |
# Install Keybase | |
curl -O https://prerelease.keybase.io/keybase_amd64.deb | |
sudo dpkg -i keybase_amd64.deb | |
sudo apt-get install -f | |
rm keybase_amd64.deb | |
# Install 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 google-chrome-stable_current_amd64.deb | |
# Install dotfiles | |
rm ~/.bashrc | |
curl -Lks https://bit.do/dot-install | /bin/bash | |
source ~/.bashrc | |
# Install Vim Plugins | |
vim +PlugInstall +qall |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment