Geek

博客园 首页 新随笔 联系 订阅 管理

debain12 系统配置记录

1. rclone 自动 配置

(base) lyr@debian:~$ sudo vim /etc/systemd/system/rclone-webdav.service
(base) lyr@debian:~$ sudo cat  /etc/systemd/system/rclone-webdav.service
[Unit]
Description=Mount WebDAV directory using rclone
After=network-online.target
Wants=network-online.target

[Service]
User=lyr
Type=simple
ExecStart=/usr/bin/rclone mount jg:/keepass /home/lyr/jgCloud/keePass --config /home/lyr/.config/rclone/rclone.conf --vfs-cache-mode writes
ExecStop=/usr/bin/fusermount -u /home/lyr/jgCloud/keePass
Restart=on-abort

[Install]
WantedBy=multi-user.target


配置 rclone-webdav 自动挂载 webdav 目录

systemctl enable rclone-webdav.service
sudo systemctl start rclone-webdav.service
sudo systemctl status rclone-webdav.service

docker ps 报错

显示用户没有权限
https://stackoverflow.com/questions/48957195/how-to-fix-docker-got-permission-denied-issue

sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
docker run hello-world



cat <<-EOF > /etc/docker/daemon.json 
{
  "registry-mirrors": [
       "https://hub.geekery.cn/",
       "https://ghcr.geekery.cn"
   ]
}
EOF
systemctl daemon-reload
systemctl restart docker

posted on 2024-10-08 14:39  .geek  阅读(23)  评论(0编辑  收藏  举报