Last active
November 6, 2019 17:38
-
-
Save JBaczuk/3d4baeed2be4a1493ef6bccc42eb8899 to your computer and use it in GitHub Desktop.
Linux environment setup 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 | |
# Run using: sudo wget <url> -O - | bash | |
# Update | |
sudo add-apt-repository main | |
sudo add-apt-repository universe | |
sudo add-apt-repository restricted | |
sudo add-apt-repository multiverse | |
sudo apt update | |
sudo apt-get update && sudo apt-get -y upgrade | |
# Install c/c++ tools | |
sudo apt-get install build-essential libtool autotools-dev automake autoconf pkg-config libssl-dev libevent-dev bsdmainutils python3 libboost-all-dev gdb | |
# Install vim, git, pip, tmux | |
sudo apt-get install vim git python3-setuptools python3-pip tmux -y | |
# Install vimrc file | |
sudo wget https://gist.githubusercontent.com/JBaczuk/43e124c66fcc48664c49b4b21d96a079/raw/c159af1a3d0f79e0df66ae89e363b95365137287/.vimrc -P ~/ | |
# Install vundle | |
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
# Install future | |
sudo pip3 install future | |
# Set vi as interactive shell | |
echo "" >> ~/.bashrc | |
echo "# Set vi as interactive shell" >> ~/.bashrc | |
echo "set -o vi" >> ~/.bashrc | |
echo "bind -m vi-command "\C-l":clear-screen" >> ~/.bashrc | |
# Set vim as default editor | |
echo "export VISUAL=vim" >> ~/.bashrc | |
echo 'export EDITOR="$VISUAL"' >> ~/.bashrc | |
# Install node.js | |
curl -L https://git.io/n-install | bash | |
source ~/.bashrc | |
printf "\n\n" | |
echo "========================" | |
echo "Configuration Complete!" | |
echo "Make sure to open vim and run :PluginInstall" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated for Ubuntu 18.04LTS