arnaucube
arnaucube/configsPublic Self-hosted repository
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"
19# alternative: apt-get install python3-neovim
20apt-get -y install neovim
21curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
22    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
23
24echo "setting nvim config"
25mkdir ~/.config
26mkdir ~/.config/nvim
27cp ./init.vim ~/.config/nvim/init.vim
28
29# vim & neovim PlugInstall
30echo "installing PlugInstall vim"
31curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
32    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
33echo "installing PlugInstall neovim"
34curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
35    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
36
37# bash
38echo "append .bashrc of this repo lines to the .bashrc system file"
39cat .bashrc >> ~/.bashrc
40
41source .bashrc
42
43# go
44echo "installing go 1.12.5"
45wget https://dl.google.com/go/go1.12.5.linux-amd64.tar.gz
46tar -C /usr/local -xzf go1.12.5.linux-amd64.tar.gz
47
48# nodejs
49echo "installing nodejs v10"
50curl -sL https://deb.nodesource.com/setup_10.x | bash -
51apt-get install -y nodejs
52
53echo "installing npm http-server"
54npm install -g http-server
55
56echo "installing fzf fuzzy finder"
57git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
58~/.fzf/install
59
60echo "instaling ripgrep"
61curl -LO https://github.com/BurntSushi/ripgrep/releases/download/11.0.2/ripgrep_11.0.2_amd64.deb
62dpkg -i ripgrep_11.0.2_amd64.deb
63
64# nginx
65apt install nginx -y
66
67# certbot
68apt-get update
69apt-get install software-properties-common -y
70add-apt-repository universe -y
71add-apt-repository ppa:certbot/certbot -y
72apt-get update
73apt-get install certbot python-certbot-nginx -y