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.

92 lines
2.6 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. cp .bash_alias ~/.bash_alias
  35. echo "append .bashrc of this repo lines to the .bashrc system file"
  36. cat .bashrc >> ~/.bashrc
  37. source .bashrc
  38. # go
  39. echo "installing go 1.14.2"
  40. wget https://dl.google.com/go/go1.14.2.linux-amd64.tar.gz
  41. tar -C /usr/local -xzf go1.14.2.linux-amd64.tar.gz
  42. # nodejs
  43. echo "installing nodejs v14"
  44. curl -sL https://deb.nodesource.com/setup_14.x | bash -
  45. apt-get install -y nodejs
  46. echo "installing npm http-server"
  47. npm install -g http-server
  48. echo "installing fzf fuzzy finder"
  49. git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
  50. ~/.fzf/install
  51. echo "instaling ripgrep"
  52. curl -LO https://github.com/BurntSushi/ripgrep/releases/download/11.0.2/ripgrep_11.0.2_amd64.deb
  53. dpkg -i ripgrep_11.0.2_amd64.deb
  54. echo "install Rust"
  55. curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  56. # assuming that Rust is installed
  57. echo "installing delta (gitdiff tool)"
  58. cargo install git-delta
  59. echo "append .gitconfig of this repo lines to the .gitconfig system file to use delta gitdiff tool"
  60. cat .gitconfig >> ~/.gitconfig
  61. # install gotty (for terminal visualization sharing)
  62. wget https://github.com/yudai/gotty/releases/download/v1.0.1/gotty_linux_amd64.tar.gz
  63. tar -zxvf gotty_linux_amd64.tar.gz
  64. mv gotty /usr/gotty /usr/local/bin/
  65. # nginx
  66. apt install nginx -y
  67. # certbot
  68. apt-get update
  69. apt-get install software-properties-common -y
  70. add-apt-repository universe -y
  71. add-apt-repository ppa:certbot/certbot -y
  72. apt-get update
  73. apt-get install certbot python-certbot-nginx -y