ubuntu 22.04 设置 DNS

  1. 修改 /etc/resolvconf/resolv.conf.d/head
1
2
3
4
5
6
7
vim /etc/resolvconf/resolv.conf.d/head

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.
nameserver 114.114.114.114

Read More

Tab Sync Pro 无法登录

https://chrome.google.com/webstore/detail/jdlfehkflgfmniokcligbfdjobgapehn

点击插件,然后Debug,会发现发送一个 Account 请求,但是没有携带 Bearer Token,所以无法登录。根据请求的发起地方,设置一个断点。

1
2
3
4
5
6
7
8
async function Q(t, e) {
const s = new URLSearchParams(e);
return (await fetch(`${F}/api/${t}` + (s ? `?${s}` : ""), {
headers: {
Authorization: `Bearer ${K}`
}
})).json()
}

设置一个断点,等一会就好,应该是没有等待拿到值。

Read More

Linux 测速

互联网测速

1
2
3
4
5
6
wget https://raw.github.com/sivel/speedtest-cli/master/speedtest.py
chmod a+rx speedtest.py
mv speedtest.py /usr/local/bin/speedtest
chown root:root /usr/local/bin/speedtest

speedtest

节点间测速

1
2
3
4
5
6
7
8
sudo apt install iperf

# service
iperf -s

# client

iperf -c <SERVER_IP>

ssh 测速

1
yes | pv |  ssh USER@HOST "cat > /dev/null"