Skip to content

Instantly share code, notes, and snippets.

@myuanz
Last active May 20, 2020 09:22
Show Gist options
  • Save myuanz/4798cc2ba328d8fa75586dbd683db3a7 to your computer and use it in GitHub Desktop.
Save myuanz/4798cc2ba328d8fa75586dbd683db3a7 to your computer and use it in GitHub Desktop.
新Ubuntu配置镜像和公钥
echo "deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
" > /etc/apt/sources.list
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCrmRdZsQAHXDkXmqTSh32QZXEF+8dGcwPAmx/HYB6JMScRLyTUcqxix+vqHLZJOJnHvZ9SQzbyltgbxuqV8U+kZUf2CD+9+nnARIDn2PwfIHdahUZETfDTS86M3lzSa4IW1KEXCI9RC0h0w/Cr7YA6th2bjySYqZK9znYawzP4H2mrzI0l7+vcxudoQQcCmQq+K4DJ4I0weS5XgFr1z/rVny2el2yJE4ajHswY4HbSqe6WrzZ45jTbibbhPiENpJINHtWnevWpT5EliB67ZqLjotpa9laADKYLM1cKKTJYx2fWbOajxeFa06+i7i8Ay8bB8sMwVhsKZIGgsbBDXbOn provefars@gmail.com
" >> ~/.ssh/authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment