93 字
1 分钟
Linux 装机配置
2022-07-17

新建用户#

/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
Linux 装机配置
https://blog.lpkt.cn/posts/linux-init-op/
作者
lollipopkit
发布于
2022-07-17
许可协议
CC BY-NC-SA 4.0