仅仅是为了方便记忆,一般都为 ArchLinux debian10使用。 依赖 1 2 apt update apt install -y vim zsh htop curl git wget unzip screen 安装ssh-key 1 echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDQ4YL6VNGhNDFhj/CJbmtUpcTFpyC2YqK19L4dAbTvtsPog3OgqNkdLJnxL6dONqucnrusoOykAI3/5dwHIT5IXHTkye4pEywHAbZBNES7ZGitZgCbmpMhmaecz9ZE3mGeSBkOqYDho33uH5xT9O0AU0pgLRo7BO//ae+gnsH1WEkbK4y0a+typw9QcAupTi+wmfg/w+u6zYGiB3CPZhNqk5SEBvt9WI4cDbcovCTCfhsu1Ty6tD2tCEHeBRzd9UVlZfDpY/dBOcCbBQVEU2Zf1sQos0lkEjcV77oh5REtrha3DojIqZqYSWw+l7cKny6u6Z4W5O/IIVNsS5Tda3oN canxuetian@gmail.com" > ~/.ssh/authorized_keys 禁用密码登录 1 2 3 4 5 6 vim /etc/ssh/sshd_config PubkeyAuthentication yes AuthorizedKeysFile .ssh/authorized_keys PasswordAuthentication no PermitRootLogin without-password 删除登陆信息 1 touch ~/.hushlogin besttrace 1 2 3 4 5 wget https://78997899.xyz/od/Linux/besttrace4linux.zip unzip be* chmod +x besttrace mv besttrace /usr/local/bin/btr rm -rf ./besttrace* zsh 1 2 3 4 5 6 7 sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)" #linux curl -fsSL https://starship.rs/install.sh | bash #mac brew install starship # ~/.zshrc eval "$(starship init zsh)" LinuxBrew……
阅读全文