93  字
  1  分钟 
  Linux 装机配置 
 新建用户
/sbin/useradd –d /home/xxx -m xxx
-d指定用户目录,-m表明新建目录,xxx为用户名
开启sudo
- 安装sudo
 apt install sudo
- 加进sudo用户组
 /sbin/usermod -aG sudo xxx
 然后exit再连接
zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlightingdocker
curl -fsSL https://get.docker.com | bash -s dockerdockerd-rootless-setuptool.sh installsudo systemctl disable --now docker containerd docker.socket把以下放入~/.zshrc
export PATH=/usr/bin:$PATHexport DOCKER_HOST=unix:///run/user/1000/docker.socksource ~/.zshrc
systemd
sudo loginctl enable-linger xxx Linux 装机配置 
  https://blog.lpkt.cn/posts/linux-init-op/     
  