configs/install-new-server.sh
install-new-server.shRaw
1# assumming that git & vim are already installed and this repo is downloaded
2
3echo "updating"
4apt-get update
5
6# tmux
7echo "installing tmux"
8apt-get -y install tmux
9
10echo "setting tmux config"
11cp ./.tmux.conf ~/.tmux.conf
12
13# vim
14echo "setting vim config"
15cp ./.vimrc ~/.vimrc
16
17# neovim
18echo "installing neovim"
19apt-get -y install neovim
20curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
21 https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
22
23echo "setting nvim config"
24mkdir ~/.config
25mkdir ~/.config/nvim
26cp ./init.vim ~/.config/nvim/init.vim
27
28# vim & neovim PlugInstall
29echo "installing PlugInstall vim"
30curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
31 https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
32echo "installing PlugInstall neovim"
33curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
34 https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
35
36# bash
37echo "append .bashrc of this repo lines to the .bashrc system file"
38cat .bashrc >> ~/.bashrc
39
40source .bashrc
41
42# go
43echo "installing go 1.12.5"
44wget https://dl.google.com/go/go1.12.5.linux-amd64.tar.gz
45tar -C /usr/local -xzf go1.12.5.linux-amd64.tar.gz
46
47# nodejs
48echo "installing nodejs v10"
49curl -sL https://deb.nodesource.com/setup_10.x | bash -
50apt-get install -y nodejs
51
52echo "installing npm http-server"
53npm install -g http-server
54
55echo "installing fzf fuzzy finder"
56git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
57~/.fzf/install