QZLin

My Env Configures for Ubuntu

account & verify

  • ssh-copy-id for windows
    Get-Content ~\.ssh\id_rsa.pub | ssh <user>@<hostname> "mkdir -p .ssh;cat >> .ssh/authorized_keys"

  • new user with sudo perm
    sudo useradd -G sudo -m -d /home/newuser newuser

TimeZone, apt

TimeZone

https://askubuntu.com/a/594186
sudo timedatectl set-timezone <timeszone>
sudo timedatectl set-timezone PRC
timedatectl list-timezones

apt

sudo sed -i 's/ubuntu/mirror/g' /etc/apt/sources.list
example:
sudo sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
sudo sed -i 's/archive.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list

Vim, zsh

oh my zsh

git clone https://ghproxy.net/github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

vim

pip

  • source
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/

posted on 2022-04-13 22:56  QZLin  阅读(17)  评论(0编辑  收藏  举报

导航