惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
The Blog of Author Tim Ferriss
Know Your Adversary
Know Your Adversary
P
Palo Alto Networks Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
K
Kaspersky official blog
L
LINUX DO - 热门话题
P
Proofpoint News Feed
P
Privacy & Cybersecurity Law Blog
Google DeepMind News
Google DeepMind News
Attack and Defense Labs
Attack and Defense Labs
Cisco Talos Blog
Cisco Talos Blog
AI
AI
L
LINUX DO - 最新话题
H
Heimdal Security Blog
Hacker News: Ask HN
Hacker News: Ask HN
Webroot Blog
Webroot Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The GitHub Blog
The GitHub Blog
I
Intezer
Blog — PlanetScale
Blog — PlanetScale
有赞技术团队
有赞技术团队
S
Securelist
博客园_首页
IT之家
IT之家
Schneier on Security
Schneier on Security
博客园 - 叶小钗
罗磊的独立博客
WordPress大学
WordPress大学
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
MongoDB | Blog
MongoDB | Blog
P
Proofpoint News Feed
阮一峰的网络日志
阮一峰的网络日志
A
Arctic Wolf
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
W
WeLiveSecurity
The Register - Security
The Register - Security
D
DataBreaches.Net
S
Security @ Cisco Blogs
Security Archives - TechRepublic
Security Archives - TechRepublic
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
腾讯CDC
Recorded Future
Recorded Future
NISL@THU
NISL@THU
N
News and Events Feed by Topic
T
Tailwind CSS Blog
N
News and Events Feed by Topic
Cyberwarzone
Cyberwarzone
T
Tor Project blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com

BlackHoleMax

中国校服外包产业与“统一着装”的意识形态机制 Vue 响应式原理:从 2.x 的 Object.defineProperty 到 3.x 的 Proxy 赛里斯教育臃肿、企业文化与社会不平等的结构性困境 C语言学习(帕斯卡三角) C语言学习(long和char强制类型转换) 意识形态国家机器(AIE)笔记 论阶级革命 论亲情 论盲目 当代唯分论,“什么书该读” 农场主与笨驴 如何成为一名安那其主义者 windows平台最好的包管理器:scoop 从Python3快速开始 正在施工🚧
用 Podman 在家用电脑搭私人 WebDAV 书签同步服务
BlackHoleMax · 2025-10-06 · via BlackHoleMax

环境:Linux Mint 21.x | Podman 4.9 | rootless 模式
目标:开机自启、崩溃自恢复、全浏览器通用、零翻墙。


1. 最终效果

  • Chrome / Edge / Firefox 通过 Floccus 插件把书签实时同步到 本地 WebDAV
  • 数据落盘 ~/webdav/data/bookmarks.xbel,完全私有。
  • 使用 Podman Pod + 用户级 systemd 托管,重启后无需登录即可自动拉起。

2. 一键脚本(用户级 systemd)

把下面保存为 ~/bin/webdav-pod.sh 并给执行权限:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash
set -e
POD_NAME=webdav-pod
PORT=18080
USER=floccus
PASS=$(openssl rand -hex 8)
DATA_DIR="$HOME/webdav/data"

mkdir -p "$DATA_DIR"
echo "PASSWORD=$PASS"


podman pod create --name "$POD_NAME" -p "$PORT":80


podman run -d --restart=no --pod "$POD_NAME" \
--name webdav \
-e USERNAME="$USER" \
-e PASSWORD="$PASS" \
-v "$DATA_DIR":/var/lib/dav:Z \
docker.io/bytemark/webdav


mkdir -p ~/.config/systemd/user
cd ~/.config/systemd/user
podman generate systemd --name "$POD_NAME" --files --new
systemctl --user daemon-reload
systemctl --user enable --now "pod-${POD_NAME}.service"

执行:

1
2
chmod +x ~/bin/webdav-pod.sh
~/bin/webdav-pod.sh

3. 浏览器配置(Floccus)

服务器地址 http://<电脑IP>:18080/
用户名 floccus
密码 脚本输出的 16 位随机串
书签路径 bookmarks.xbel
同步策略 双向同步,15 min

4. 日常运维(用户级)

1
2
3
4
5
6
7
8

journalctl --user -u pod-webdav-pod -f


systemctl --user restart pod-webdav-pod


cp ~/webdav/data/bookmarks.xbel{,.$(date +%F)}

5. 卸载清理(用户级)

1
2
3
4
5
systemctl --user stop pod-webdav-pod
systemctl --user disable pod-webdav-pod
rm -f ~/.config/systemd/user/{pod,pod-webdav-pod,container-webdav}.service
systemctl --user daemon-reload
podman pod rm -f webdav-pod

6. 同步插件下载地址


整个方案 零依赖云厂商,换电脑/重装系统只需把 ~/webdav/data 备份带走,再跑一遍脚本即可恢复同步。Happy syncing!