build-install.sh 1003 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/bin/sh
  2. apt update -y
  3. apt upgrade
  4. apt install -y locales tzdata
  5. locale-gen en_US.UTF-8
  6. :> /etc/environment
  7. echo "LC_ALL=$DEVENV_LOCALE" >> /etc/environment
  8. echo "LANGUAGE=$DEVENV_LOCALE" >> /etc/environment
  9. echo "LANG=$DEVENV_LOCALE" >> /etc/environment
  10. echo "LC_TYPE=$DEVENV_LOCALE" >> /etc/environment
  11. dpkg-reconfigure locales
  12. ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
  13. dpkg-reconfigure tzdata
  14. INSTALL_CMD="apt install --no-install-recommends -y zsh python2 python3 python3-pip ruby ruby-all-dev nodejs npm sudo curl perl git build-essential"
  15. $INSTALL_CMD
  16. gem install neovim
  17. npm install -g n
  18. npm install -g neovim
  19. curl -sfL https://cpanmin.us | perl - App::cpanminus
  20. curl -s https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
  21. python2 get-pip.py
  22. curl -s -L -o nvim-linux64.tar.gz https://github.com/neovim/neovim/releases/download/v0.7.0/nvim-linux64.tar.gz
  23. tar -xvzf nvim-linux64.tar.gz
  24. cp -ran /nvim-linux64/* /usr
  25. chmod +x /usr/bin/nvim