https://gist.github.com/micln/f404d57c219842e459f270c99bbb472f

    1. USER=admin
    2. sudo cp /etc/apt/sources.list /etc/apt/sources.list.ubuntu
    3. sudo sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
    4. sudo sed -i "s/archive.ubuntu.com/mirrors.aliyun.com/g" /etc/apt/sources.list
    5. sudo apt update
    6. sudo apt install -y curl git htop tmux screen vim zsh net-tools aria2 tree unzip #nginx apache2-utils
    7. # sudo apt install -y mysql-server
    8. # zsh
    9. zsh
    10. sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
    11. echo "source ~/.user_config" >> ~/.zshrc
    12. touch ~/.user_config
    13. chsh -s /usr/bin/zsh
    14. # screen
    15. echo "screen -xROU admin" >> ~/.user_config
    16. # Go
    17. sudo apt install -y golang-go
    18. go env -w GOPROXY=https://goproxy.cn,https://goproxy.io,direct
    19. # ssh
    20. ssh-keygen -t ed25519
    21. # in local
    22. # ssh-copy-id root@1.1.1.1
    23. #