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.

86 lines
2.3 KiB

5 years ago
5 years ago
5 years ago
  1. # assumming that curl & wget & 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. cp ./vimconfigbase.vim ~/vimconfigbase.vim
  13. # neovim
  14. echo "installing neovim"
  15. # alternative: apt-get install python3-neovim
  16. apt-get -y install neovim
  17. curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
  18. https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  19. echo "setting nvim config"
  20. mkdir ~/.config
  21. mkdir ~/.config/nvim
  22. cp ./init.vim ~/.config/nvim/init.vim
  23. # vim & neovim PlugInstall
  24. echo "installing PlugInstall vim"
  25. curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
  26. https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  27. echo "installing PlugInstall neovim"
  28. curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
  29. https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  30. ## once Plug installed, execute inside nvim:
  31. ## :PlugInstall
  32. ## :GoInstallBinaries
  33. # bash
  34. echo "append .bashrc of this repo lines to the .bashrc system file"
  35. cat .bashrc >> ~/.bashrc
  36. source .bashrc
  37. # go
  38. echo "installing go 1.14.2"
  39. wget https://dl.google.com/go/go1.14.2.linux-amd64.tar.gz
  40. tar -C /usr/local -xzf go1.14.2.linux-amd64.tar.gz
  41. # nodejs
  42. echo "installing nodejs v10"
  43. curl -sL https://deb.nodesource.com/setup_10.x | bash -
  44. apt-get install -y nodejs
  45. echo "installing npm http-server"
  46. npm install -g http-server
  47. echo "installing fzf fuzzy finder"
  48. git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
  49. ~/.fzf/install
  50. echo "instaling ripgrep"
  51. curl -LO https://github.com/BurntSushi/ripgrep/releases/download/11.0.2/ripgrep_11.0.2_amd64.deb
  52. dpkg -i ripgrep_11.0.2_amd64.deb
  53. echo "install Rust"
  54. curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  55. # assuming that Rust is installed
  56. echo "installing delta (gitdiff tool)"
  57. cargo install git-delta
  58. echo "append .gitconfig of this repo lines to the .gitconfig system file to use delta gitdiff tool"
  59. cat .gitconfig >> ~/.gitconfig
  60. # nginx
  61. apt install nginx -y
  62. # certbot
  63. apt-get update
  64. apt-get install software-properties-common -y
  65. add-apt-repository universe -y
  66. add-apt-repository ppa:certbot/certbot -y
  67. apt-get update
  68. apt-get install certbot python-certbot-nginx -y