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.

105 lines
2.9 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 update
  4. # tmux
  5. echo "installing tmux"
  6. apt -y install tmux
  7. echo "setting tmux config"
  8. cp ./.tmux.conf ~/.tmux.conf
  9. echo "installing mosh"
  10. apt -y install mosh
  11. # vim
  12. echo "setting vim config"
  13. cp ./.vimrc ~/.vimrc
  14. cp ./vimconfigbase.vim ~/vimconfigbase.vim
  15. # neovim
  16. echo "installing neovim"
  17. # alternative: apt install python3-neovim
  18. apt -y install neovim
  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.21.6"
  40. # wget https://golang.org/dl/go1.21.6.linux-amd64.tar.gz
  41. # tar -C /usr/local -xzf go1.21.6.linux-amd64.tar.gz
  42. #
  43. # # nodejs
  44. # echo "installing nodejs v16"
  45. # # curl -sL https://deb.nodesource.com/setup_16.x | bash -
  46. # curl -fsSL https://deb.nodesource.com/setup_21.x | bash -
  47. # apt install -y nodejs
  48. #
  49. # echo "installing npm http-server"
  50. # npm install -g http-server
  51. #
  52. # echo "installing fzf fuzzy finder"
  53. # git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
  54. # ~/.fzf/install
  55. echo "instaling ripgrep"
  56. # curl -LO https://github.com/BurntSushi/ripgrep/releases/download/13.0.0/ripgrep_13.0.0_amd64.deb
  57. # dpkg -i ripgrep_13.0.0_amd64.deb
  58. apt install ripgrep -y
  59. echo "install Rust"
  60. curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
  61. # needed for later rust packages installations
  62. apt install build-essential -y
  63. # btop
  64. wget https://github.com/aristocratos/btop/releases/download/v1.3.0/btop-x86_64-linux-musl.tbz
  65. tar -xjf btop-x86_64-linux-musl.tbz
  66. cd btop
  67. bash install.sh
  68. cd ..
  69. # # assuming that Rust is installed
  70. # echo "installing delta (gitdiff tool)"
  71. # cargo install git-delta
  72. # echo "append .gitconfig of this repo lines to the .gitconfig system file to use delta gitdiff tool"
  73. # cat .gitconfig >> ~/.gitconfig
  74. #
  75. # # install gotty (for terminal visualization sharing)
  76. # wget https://github.com/yudai/gotty/releases/download/v1.0.1/gotty_linux_amd64.tar.gz
  77. # tar -zxvf gotty_linux_amd64.tar.gz
  78. # mv gotty /usr/gotty /usr/local/bin/
  79. #
  80. # # nginx
  81. # apt install nginx -y
  82. #
  83. # # certbot
  84. # apt update
  85. # apt-get install software-properties-common -y
  86. # add-apt-repository universe -y
  87. # add-apt-repository ppa:certbot/certbot -y
  88. # apt-get update
  89. # apt-get install certbot python-certbot-nginx -y