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.

95 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 .sh_alias ~/.sh_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.17.1"
  40. wget https://golang.org/dl/go1.17.1.linux-amd64.tar.gz
  41. tar -C /usr/local -xzf go1.17.1.linux-amd64.tar.gz
  42. # nodejs
  43. echo "installing nodejs v16"
  44. curl -sL https://deb.nodesource.com/setup_16.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. # needed for later rust packages installations
  57. apt install build-essential
  58. # assuming that Rust is installed
  59. echo "installing delta (gitdiff tool)"
  60. cargo install git-delta
  61. echo "append .gitconfig of this repo lines to the .gitconfig system file to use delta gitdiff tool"
  62. cat .gitconfig >> ~/.gitconfig
  63. # install gotty (for terminal visualization sharing)
  64. wget https://github.com/yudai/gotty/releases/download/v1.0.1/gotty_linux_amd64.tar.gz
  65. tar -zxvf gotty_linux_amd64.tar.gz
  66. mv gotty /usr/gotty /usr/local/bin/
  67. # nginx
  68. apt install nginx -y
  69. # certbot
  70. apt-get update
  71. apt-get install software-properties-common -y
  72. add-apt-repository universe -y
  73. add-apt-repository ppa:certbot/certbot -y
  74. apt-get update
  75. apt-get install certbot python-certbot-nginx -y