Skip to content

Instantly share code, notes, and snippets.

@zu1k
Created April 9, 2020 12:45
Show Gist options
  • Save zu1k/eaa8ef4d04131dba9bc68ad0de3df6b5 to your computer and use it in GitHub Desktop.
Save zu1k/eaa8ef4d04131dba9bc68ad0de3df6b5 to your computer and use it in GitHub Desktop.
linux准备脚本
#!/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