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-highlighting
docker
curl -fsSL https://get.docker.com | bash -s docker
dockerd-rootless-setuptool.sh install
sudo systemctl disable --now docker containerd docker.socket
把以下放入~/.zshrc
export PATH=/usr/bin:$PATH
export DOCKER_HOST=unix:///run/user/1000/docker.sock
source ~/.zshrc
systemd
sudo loginctl enable-linger xxx