Skip to content

Instantly share code, notes, and snippets.

@JBaczuk
Last active November 6, 2019 17:38
Show Gist options
  • Save JBaczuk/3d4baeed2be4a1493ef6bccc42eb8899 to your computer and use it in GitHub Desktop.
Save JBaczuk/3d4baeed2be4a1493ef6bccc42eb8899 to your computer and use it in GitHub Desktop.
Linux environment setup script
#!/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"
@JBaczuk
Copy link
Author

JBaczuk commented Sep 10, 2018

Updated for Ubuntu 18.04LTS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment