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.

93 lines
2.5 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. echo "setting nvim config"
  18. mkdir ~/.config
  19. mkdir ~/.config/nvim
  20. cp ./init.vim ~/.config/nvim/init.vim
  21. # vim & neovim PlugInstall
  22. echo "installing PlugInstall vim"
  23. curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
  24. https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  25. echo "installing PlugInstall neovim"
  26. curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
  27. https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  28. ## once Plug installed, execute inside nvim:
  29. ## :PlugInstall
  30. ## :GoInstallBinaries
  31. # bash
  32. cp .sh_alias ~/.sh_alias
  33. echo "append .bashrc of this repo lines to the .bashrc system file"
  34. cat .bashrc >> ~/.bashrc
  35. source .bashrc
  36. # go
  37. echo "installing go 1.17.1"
  38. wget https://golang.org/dl/go1.17.1.linux-amd64.tar.gz
  39. tar -C /usr/local -xzf go1.17.1.linux-amd64.tar.gz
  40. # nodejs
  41. echo "installing nodejs v16"
  42. curl -sL https://deb.nodesource.com/setup_16.x | bash -
  43. apt-get install -y nodejs
  44. echo "installing npm http-server"
  45. npm install -g http-server
  46. echo "installing fzf fuzzy finder"
  47. git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
  48. ~/.fzf/install
  49. echo "instaling ripgrep"
  50. curl -LO https://github.com/BurntSushi/ripgrep/releases/download/11.0.2/ripgrep_11.0.2_amd64.deb
  51. dpkg -i ripgrep_11.0.2_amd64.deb
  52. echo "install Rust"
  53. curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  54. # needed for later rust packages installations
  55. apt install build-essential
  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