Skip to content

Instantly share code, notes, and snippets.

@KCreate
Created May 7, 2016 22:23
Show Gist options
  • Save KCreate/bb221c0670f0953e3f3f6952df0a2c72 to your computer and use it in GitHub Desktop.
Save KCreate/bb221c0670f0953e3f3f6952df0a2c72 to your computer and use it in GitHub Desktop.
Personal Ubuntu Setup Script
# Install git
sudo apt-get install git
sudo mkdir ~/github/
# Uninstall all previous copies of vim
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-common vim-gui-common
sudo apt-get build-dep vim-gnome
sudo apt-get install python-dev libncurses5-dev
sudo rm -rf /usr/local/share/vim
sudo rm /usr/bin/vim
# Install vim
cd ~/github/
sudo git clone https://github.com/vim/vim/
cd vim/src
./configure \
--with-features=huge \
--enable-largefile \
--enable-pythoninterp \
--with-python-config-dir=/usr/lib/python2.7/config \
--enable-gui=auto
sudo make
sudo make install
sudo mv ./vim /usr/bin/
# Setup Vundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
# Install NodeJS 6
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
# Install some global packages via npm
sudo npm install -g nodemon
sudo npm install -g gulp
# Install tmux
sudo apt-get install tmux
# Download configuration files for vim, tmux and bash
sudo scp root@yourserver.de:/root/.vimrc ~/
sudo scp root@yourserver.de:/root/.tmux.conf ~/
sudo scp root@yourserver.de:/root/.bashrc ~/
# Download the customized onedark theme
sudo scp root@yourserver.de:/root/.vim/colors/onedark.vim ~/.vim/colors/
# Install all vim plugins
vim +PluginInstall +qall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment