You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
1.9 KiB

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