让WSL保持后台运行
一般情况下,wsl的终端窗口关闭后,WSL就被Windows干掉了……
试了以下方法都不行:
1 | guiApplications=false |
最后是这个方法解决了:
1 | wsl --exec dbus-launch true |
一般情况下,wsl的终端窗口关闭后,WSL就被Windows干掉了……
试了以下方法都不行:
1 | guiApplications=false |
最后是这个方法解决了:
1 | wsl --exec dbus-launch true |
https://code.claude.com/docs/en/overview#terminal
1 | curl -fsSL https://claude.ai/install.sh | bash |
换个玩玩。
顺便把page的源,从docs/目录改为了直接在Github Actions里上传和发布,简化一下仓库。
另外Hexo比Hugo多一个“分类”的支持,但是Github issue只有Labels,被用来当做“标签”了……空了再看拿哪个字段来当分类。
升级系统后,web UI显示docker是关闭状态,点击开关提示“未知错误”。
SSH登录看docker服务是正常运行的。
Root Dir也是正确的。但是 container没起来。
尝试升级docker,重启后还是一样。
最后想起配置文件之前加了一个代理,而这个代理是飞牛OS里一个定时任务启动的,把代理配置从/etc/docker/daemon.json里删掉重启OK了。。。
猜测(也许)是因为docker启动时间比代理进程早???
修改配置:
sudo vi /etc/docker/daemon.json
1 | { |
重启服务:
sudo systemctl restart docker
报错:
1 | E: Release file for http://mirrors.tuna.tsinghua.edu.cn/ubuntu/dists/jammy-updates/InRelease is not valid yet (invalid for another 2h 1min 40s). Updates for this repository will not be applied. |
同步时间解决:
1 | hwclock -s |
问题:
1 | $ ping github.com |
解决方法:
1 | sudo setcap cap_net_raw+p /bin/ping |
报错:
1 | failed to start daemon: Error initializing network controller: error obtaining controller instance: unable to add return rule in DOCKER-ISOLATION-STAGE-1 chain: (iptables failed: iptables --wait -A DOCKER-ISOLATION-STAGE-1 -j RETURN: iptables v1.8.7 (nf_tables): RULE_APPEND failed (No such file or directory): rule in chain DOCKER-ISOLATION-STAGE-1 |
解决:
1 | sudo update-alternatives --set iptables /usr/sbin/iptables-legacy |
参考:https://forums.docker.com/t/failing-to-start-dockerd-failed-to-create-nat-chain-docker/78269
https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html
-fsanitize=address, -fsanitize=thread,…