Skip to content

Instantly share code, notes, and snippets.

@usbuild
Last active December 12, 2018 03:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save usbuild/c008625a939251f0018dd24271475eaf to your computer and use it in GitHub Desktop.
Save usbuild/c008625a939251f0018dd24271475eaf to your computer and use it in GitHub Desktop.
debian ubuntu server initialize
#!/usr/bin/env bash
#install tmux git subversion wget uuid-dev liblzma-dev libgdbm-dev libncurses5-dev libbz2-dev libssl-dev libreadline-dev libsqlite3-dev libffi-dev
if [[ 1 -eq 2 ]]; then
echo "set-option -g default-shell /bin/zsh" > ~/.tmux.conf
mkdir ~/usr
mkdir ~/download
wget https://gist.githubusercontent.com/usbuild/21fd99f6341ef1db9758/raw/046cd4281f105963fb0ad741ba3782468d4ad366/vimrc -O ~/.vimrc
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
cd ~/download
wget https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tar.xz
tar xvpf Python-3.7.1.tar.xz
cd ~/download/Python-3.7.1
./configure --prefix=$HOME/usr
make -j8
make install
cd ~/download
git clone https://github.com/vim/vim
cd vim
./configure --with-features=huge --enable-python3interp --with-python3-command=$HOME/usr/bin/python3 --prefix=$HOME/usr
make -j8
make install
$HOME/usr/bin/vim +BundleInstall +qall
echo PATH="$HOME/usr/bin:\$PATH" >> $HOME/.zshrc
sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
fi
ln -s $HOME/usr/bin/vim $HOME/usr/bin/vi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment