WSL里的Ubuntu/Debian因为时间不同步报错

报错: 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. E: Release file for http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease is not valid yet (invalid for another 5h 19min 27s). Updates for this repository will not be applied. 同步时间解决: hwclock -s Comments: (on github issue)……

阅读全文

WSL无法使用ping命令

问题: $ ping github.com ping: socktype: SOCK_RAW ping: socket: Operation not permitted ping: => missing cap_net_raw+p capability or setuid? 解决方法: $ sudo setcap cap_net_raw+p /bin/ping 参考:https://github.com/microsoft……

阅读全文

WSL里docker启动失败

报错: 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 (exit status 4)) 解决: sudo update-alternatives --set iptables /usr/sbin/iptables-legacy sudo update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy 参……

阅读全文

GCC Instrumentation Options

https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html -fsanitize=address, -fsanitize=thread,… Comments: (on github issue)……

阅读全文

Windows 11家庭版安装WSL

管理员权限打开PowerShell,执行: wsl --install 提示安装成功。但是启动WSL的时候报错: WslRegisterDistribution failed with error: 0x80370114 似乎是家庭版在“启用或关闭W……

阅读全文

Where is the core dump?

after setting ulimit -c unlimited, if you still don’t get the core file in the workding dir. try to run this: cat /proc/sys/kernel/core_pattern to get the path of the core dump files. test env: Ubuntu 20.04 (WSL), you may get: /mnt/wslg/dumps/core.%e Comments: (on github issue) ……

阅读全文

chrome with novnc in docker

sudo docker run --name chrome-novnc -p 8080:8080 -e VNC_PASS=meiyoumima vital987/chrome-novnc:latest Comments: (on github issue) ……

阅读全文

portainer重置密码

docker跑起来以后,portainer就不怎么登录了,久了就忘了密码。。。 portainer官方提供了一个helper用……

阅读全文

Oracle VPS端口和防火墙设置

开放端口 Instances >> Instance Details >> Attached VNICs >> Subnet or VLAN >> Subnet - subnet-YYYYMMDD-HHMM >> Security Lists >> add rules for TCP/UDP/ICMP ... Ubuntu防火墙设置: sudo iptables -L sudo apt remove iptables-persistent sudo apt purge netfilter-persistent sudo iptables -L sudo iptables -P INPUT ACCEPT sudo iptables -P……

阅读全文