Created
April 9, 2020 12:45
-
-
Save zu1k/eaa8ef4d04131dba9bc68ad0de3df6b5 to your computer and use it in GitHub Desktop.
linux准备脚本
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# prepare for debian and ubuntu | |
# update | |
apt update && apt upgrade -y | |
apt install -y sudo zsh git nano wget curl python3 python3-pip htop | |
apt install -y sudo neofetch ipython3 | |
# docker | |
curl -fsSL https://get.docker.com -o get-docker.sh | |
sh get-docker.sh | |
rm -f get-docker.sh | |
usermod -aG docker root | |
# oh my zsh | |
# sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
sh -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/ohmyzsh/ohmyzsh@master/tools/install.sh)" | |
# golang | |
curl -o go.tar.gz https://dl.google.com/go/go1.14.1.linux-amd64.tar.gz | |
tar -C /usr/local -xzf go.tar.gz | |
rm -f go.tar.gz | |
echo "export PATH=\$PATH:/usr/local/go/bin" >> ~/.zshrc | |
source ~/.zshrc | |
# neofetch show system information | |
neofetch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment