未知狐 发布的文章

xfox@orangepi3b:~$ journalctl -xeu cloudflared.service
部分输出如下:

lines 1-95/316 25%
Aug 05 22:50:15 orangepi3b systemd[1]: Starting cloudflared.service - cloudflared...
░░ Subject: A start job for unit cloudflared.service has begun execution
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit cloudflared.service has begun execution.
░░
░░ The job identifier is 142.
Aug 05 22:50:20 orangepi3b cloudflared[1116]: 2024-08-05T14:50:20Z INF Starting tunnel tunnelID=740e1ff0-2276-4e32-9028-2a491dbd654a
Aug 05 22:50:20 orangepi3b cloudflared[1116]: 2024-08-05T14:50:20Z INF Version 2024.6.1
Aug 05 22:50:20 orangepi3b cloudflared[1116]: 2024-08-05T14:50:20Z INF GOOS: linux, GOVersion: go1.22.2, GoArch: arm64
Aug 05 22:50:20 orangepi3b cloudflared[1116]: 2024-08-05T14:50:20Z INF Settings: map[no-autoupdate:true token:*****]
Aug 05 22:50:20 orangepi3b cloudflared[1116]: 2024-08-05T14:50:20Z INF Generated Connector ID: f222f304-ee8e-4354-b409-212c19408f21
Aug 05 22:50:20 orangepi3b cloudflared[1116]: 2024-08-05T14:50:20Z INF cloudflared will not automatically update if installed by a package manager.
Aug 05 22:50:21 orangepi3b cloudflared[1116]: 2024-08-05T14:50:21Z ERR Failed to fetch features, default to disable error="lookup cfd-features.argotunnel.com on [2001:4860:4860::8888]:53: dial udp [2001:4860:4860::8888]:53: connect: network is unreachable"
Aug 05 22:50:21 orangepi3b cloudflared[1116]: 2024-08-05T14:50:21Z ERR update check failed error="Get \"https://update.argotunnel.com?arch=arm64&clientVersion=2024.6.1&os=linux\": dial tcp: lookup update.argotunnel.com on [2001:4860:4860::8888]:53: dial udp [2001:4860:4860::8888]:53: connect: network is unreachable"
Aug 05 22:50:21 orangepi3b cloudflared[1116]: 2024-08-05T14:50:21Z WRN Unable to lookup protocol percentage.
Aug 05 22:50:21 orangepi3b cloudflared[1116]: 2024-08-05T14:50:21Z INF Initial protocol quic
Aug 05 22:50:21 orangepi3b cloudflared[1116]: 2024-08-05T14:50:21Z INF ICMP proxy will use 0.0.0.0 as source for IPv4
Aug 05 22:50:21 orangepi3b cloudflared[1116]: 2024-08-05T14:50:21Z INF ICMP proxy will use ::1 in zone lo as source for IPv6
Aug 05 22:50:21 orangepi3b cloudflared[1116]: 2024-08-05T14:50:21Z WRN The user running cloudflared process has a GID (group ID) that is not within ping_group_range. You might need to add that user to a group within that range, or instead update the range to encompass a group the user is already in by modifying /proc/sys/net/ipv4/ping_group_range. Otherwise cloudflared will not be able to ping this network error="Group ID 0 is not between ping group 1 to 0"
Aug 05 22:50:21 orangepi3b cloudflared[1116]: 2024-08-05T14:50:21Z WRN ICMP proxy feature is disabled error="cannot create ICMPv4 proxy: Group ID 0 is not between ping group 1 to 0 nor ICMPv6 proxy: socket: permission denied"
Aug 05 22:50:21 orangepi3b cloudflared[1116]: 2024-08-05T14:50:21Z ERR edge discovery: error looking up Cloudflare edge IPs: the DNS query failed error="lookup _v2-origintunneld._tcp.argotunnel.com on [2001:4860:4860::8888]:53: dial udp [2001:4860:4860::8888]:53: connect: network is unreachable" event=0
Aug 05 22:50:21 orangepi3b cloudflared[1116]: 2024-08-05T14:50:21Z ERR Please try the following things to diagnose this issue: event=0
Aug 05 22:50:21 orangepi3b cloudflared[1116]: 2024-08-05T14:50:21Z ERR   1. ensure that argotunnel.com is returning "origintunneld" service records. event=0
Aug 05 22:50:21 orangepi3b cloudflared[1116]: 2024-08-05T14:50:21Z ERR      Run your system's equivalent of: dig srv _origintunneld._tcp.argotunnel.com event=0
Aug 05 22:50:21 orangepi3b cloudflared[1116]: 2024-08-05T14:50:21Z ERR   2. ensure that your DNS resolver is not returning compressed SRV records. event=0
Aug 05 22:50:21 orangepi3b cloudflared[1116]: 2024-08-05T14:50:21Z ERR      See GitHub issue https://github.com/golang/go/issues/27546 event=0
Aug 05 22:50:21 orangepi3b cloudflared[1116]: 2024-08-05T14:50:21Z ERR      For example, you could use Cloudflare's 1.1.1.1 as your resolver: event=0
Aug 05 22:50:21 orangepi3b cloudflared[1116]: 2024-08-05T14:50:21Z ERR      https://developers.cloudflare.com/1.1.1.1/setting-up-1.1.1.1/ event=0
Aug 05 22:50:21 orangepi3b cloudflared[1116]: 2024-08-05T14:50:21Z INF Starting metrics server on 127.0.0.1:37845/metrics
Aug 05 22:50:21 orangepi3b cloudflared[1116]: 2024-08-05T14:50:21Z ERR edge discovery: error looking up Cloudflare edge IPs: the DNS query failed error="lookup _v2-origintunneld._tcp.argotunnel.com on [2001:4860:4860::8888]:53: dial udp [2001:4860:4860::8888]:53: connect: network is unreachable" event=0
Aug 05 22:50:21 orangepi3b cloudflared[1116]: 2024-08-05T14:50:21Z ERR Please try the following things to diagnose this issue: event=0
Aug 05 22:50:21 orangepi3b cloudflared[1116]: 2024-08-05T14:50:21Z ERR   1. ensure that argotunnel.com is returning "origintunneld" service records. event=0
Aug 05 22:50:21 orangepi3b cloudflared[1116]: 2024-08-05T14:50:21Z ERR      Run your system's equivalent of: dig srv _origintunneld._tcp.argotunnel.com event=0
Aug 05 22:50:21 orangepi3b cloudflared[1116]: 2024-08-05T14:50:21Z ERR   2. ensure that your DNS resolver is not returning compressed SRV records. event=0
Aug 05 22:50:21 orangepi3b cloudflared[1116]: 2024-08-05T14:50:21Z ERR      See GitHub issue https://github.com/golang/go/issues/27546 event=0
Aug 05 22:50:21 orangepi3b cloudflared[1116]: 2024-08-05T14:50:21Z ERR      For example, you could use Cloudflare's 1.1.1.1 as your resolver: event=0
Aug 05 22:50:21 orangepi3b cloudflared[1116]: 2024-08-05T14:50:21Z ERR      https://developers.cloudflare.com/1.1.1.1/setting-up-1.1.1.1/ event=0
Aug 05 22:50:21 orangepi3b cloudflared[1116]: 2024-08-05T14:50:21Z INF Tunnel server stopped
Aug 05 22:50:21 orangepi3b cloudflared[1116]: 2024-08-05T14:50:21Z ERR Initiating shutdown error="Could not lookup srv records on _v2-origintunneld._tcp.argotunnel.com: lookup _v2-origintunneld._tcp.argotunnel.com on [2001:4860:4860::8888]:53: dial udp [2001:4860:4860::8888]:53: connect: network is unreachable"
Aug 05 22:50:22 orangepi3b cloudflared[1116]: 2024-08-05T14:50:22Z INF Metrics server stopped
Aug 05 22:50:22 orangepi3b cloudflared[1116]: Could not lookup srv records on _v2-origintunneld._tcp.argotunnel.com: lookup _v2-origintunneld._tcp.argotunnel.com on [2001:4860:4860::8888]:53: dial udp [2001:4860:4860::8888]:53: connect: network is unreachable

除了刚执行服务部署的时候,其他时间大部分log只是在重复的报错各种连接失败和重试

在大量的日志中我发现参杂了这条:
2024-08-05T13:47:45Z ERR Failed to fetch features, default to disable error="lookup cfd-features.argotunnel.com on [fe80::1%end1]:53: dial udp [fe80::1%end1]:53: i/o timeout"

看上去是dns解析有问题,所以我去看了看/etc/resolv.conf
内容默认是H2-3V的ipv4地址和一个看上去不太对劲的ipv6内网地址,遂改为如下内容:
nameserver 8.8.8.8 # Google IPv4
nameserver 8.8.4.4 # Google IPv4
nameserver 2001:4860:4860::8888 # Google IPv6
nameserver 2001:4860:4860::8844 # Google IPv6
但是看注释这个文件内容貌似是由NetworkManager生成的,所以规范一点用nmcli解决问题。

xfox@orangepi3b:~$ nmcli connection show
NAME                UUID                                  TYPE      DEVICE
Orange Pi ethernet  b76cc74f-5847-4558-8098-5709829e4eb2  ethernet  end1
lo                  572b3c59-1519-4e09-b290-a48063e98424  loopback  lo
sudo nmcli connection modify "Orange Pi ethernet" ipv4.dns "8.8.8.8,8.8.4.4"
sudo nmcli connection modify "Orange Pi ethernet" ipv6.dns "2001:4860:4860::8888,2001:4860:4860::8844"

启用自动获取dns服务器功能:

可选,特别是你的网络需要被劫持dns才能跳转认证页面完成认证的情况下。(某些大学) 但是对于我参数应为yes,因为我不想用路由器下发的的瘸腿DNS,特别是有这样一条提示:

# NOTE: the libc resolver may not support more than 3 nameservers.
# The nameservers listed below may not be recognized.
...
sudo nmcli connection modify "Orange Pi ethernet" ipv4.ignore-auto-dns no
sudo nmcli connection modify "Orange Pi ethernet" ipv6.ignore-auto-dns no

重启网络连接

我使用SSH连接,所以最好一次性执行完所有内容,以免需要重启设备。
sudo nmcli connection down "Orange Pi ethernet" && sudo nmcli connection up "Orange Pi ethernet"

查看当前DNS设置状态

cat /etc/resolv.conf

# Generated by NetworkManager
nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 2001:4860:4860::8888
# NOTE: the libc resolver may not support more than 3 nameservers.
# The nameservers listed below may not be recognized.
nameserver 2001:4860:4860::8844


重新安装cloudflared服务

sudo cloudflared service uninstall
#最好先在cloudfalre zero trust > Networks > Tunnels里刷新一下token
#接着按照面板提供的指令直接安装即可。
sudo cloudflared service install *******
2024-08-05T15:00:44Z INF Using Systemd
2024-08-05T15:00:48Z INF Linux service for cloudflared installed successfully

END

问题成功解决!!!

没错,我又买了一块开发板香橙派3B,第一块Zero2几年前已经送给秋秋了。这块OPI 3B的用途以后再公开。

参考了OrangePi5B修改默认的用户名 如果你去看C*D*的文章,最好记得回来看看怎么给新用户目录授权。

关闭自动登录

我使用的server img没有安装桌面环境,按照官方文档只需要执行如下指令:

sudo auto_login_cli.sh -d
sudo disable_desktop_autologin.sh #如果你安装了桌面环境

修改相关系统配置文件

sed -i "s/orangepi/xfox/g" /etc/passwd
sed -i "s/orangepi/xfox/g" /etc/shadow
sed -i "s/orangepi/xfox/g" /etc/group

修改用户目录名称

mv /home/orangepi /home/xfox

给变更后的新用户目录授权

chown -R xfox:xfox /home/xfox

接下来重启

reboot

END

也没打算请假就正常上班吧。耳机来自万能某宝的漫步者上海官方店,200出头,问客服要了赠品:耳机收纳包+USB-A to C线材

谈体验之前当然得先谈谈我的需求,买这个是基于自己对ANC主动降噪和有线低延迟+蓝牙无线模式的需求,其实就是在自己下班抱着PC/手机休闲娱乐或者偶尔有什么需求写代码的时候不想听到任何杂音。(机械革命性能拉起来的噪音你懂的。)

使用体验

用起来我觉得还是很舒服的,不管是有线还是无线降噪功能都能开启,而且有安卓APP可以调整快捷键对应的模式,官方默认 降噪关+深度降噪+环境声模式 ,我改成了:舒适降噪+深度降噪+降噪关。
夏天戴着可能耳朵有点闷热,但是对我影响不大就是。 两个降噪模式效果都非常好,而且我几乎没有感到底噪,耳压也优化的很好,比我用过的入耳式的ANC设备好多了。
续航水平现在还没法准确描述,但是看目前的掉电速度我感觉还是很顶的。

出现的问题

按照客服的反馈,我应该是全网第一个发现该问题的用户

我发现蛟龙5插上电后有线连接下任何降噪模式都有电流声,最终证明和USB A to C的连接方式有密切关系(不是电脑USB有共振之类的干扰就是官方的赠品线材有问题。)好在客服态度非常好,详细描述情况后被告知可以直接七天无理由退换,但是我嫌麻烦而且费时间,我和客服也都怀疑线材可能存在问题,所以最终先让客服补发一条C to C的线试了试,今天拿到线试了试问题解决了。
(后续尝试了自己的A to C数据线插所有接口都没有电流声,确定是赠品线材问题。已反馈给客服。)

总结

耳机不错,服务也对得起价格,这是我迄今为止买过最贵的耳机,也是体验最好的一个。
漫步者打钱!(bushi

人工智能解放生产力这句话没有问题,但是更多的人是因为被“解放了生产力”而遭到资本家裁撤的那80%。
同样的事情也曾在工业化的发生,工业机器的确大大提高了生产效率,可是实践中生产效率的提高往往只引起老板的收入提高。
在资本主义时代,生产力,生产效率与工人的收入实际未必成正比。甚至大部分时候与过去工人更努力工作就能获得更多回报的情况完全相反。

配置如下:

MECHREVO Jiaolong Series GM5ZG0O 笔记本电脑
处理器AMD Ryzen 7 5800H with Radeon Graphics
主板MECHREVO GM5ZG0O ( AMD PCI 标准主机 CPU 桥 )
内存SO-DIMM 2*8GB DDR4 3200Mhz (计划换为两条16G
主硬盘SSD:Intel SSDPEKNU512GZ(原厂)+致态Tiplus7100 1TB(淘宝500自购)
显卡Nvidia GeForce RTX 3060 Laptop GPU ( 6 GB )
显示器夏普 SHP155D LQ156M1JW03 ( 15.3 英寸 1920*1080 60/240HZ )
声卡AMD High Definition Audio 控制器
网卡瑞昱 Realtek Gaming 2.5GbE Family Controller / 11111D05

带180W DC电源,到手价 3500 RMB 支持独显直连。

机械革命BIOS存在问题,暂时不会在物理机直接安装Debian,使用Windows11+WSL凑合。

从南昌带回来的☂️最终折在了郑州的暴雨天。[心碎]
​这把伞去过南昌起义纪念馆,替两个憨憨挡过江西的雨,扛过河南的雪,今天寿终正寝。[合十]
蓝绿红白苏格兰裙一样的花纹,也许我还有机会买到一模一样的伞,但是没有哪把可以替代它。

吃饭碰见一对母女,外地口音,母亲一头黄发三十多岁不识字,指定要问老板宣传图上的面是什么肉做的。老板一再解释只是宣传图,并念了一下菜单。但是母亲还是带着女儿走了,这个穿汉服裙子的小姑娘应该是能看懂墙上的菜单的,但是她眼神有些畏惧不太敢说出来。
我坐旁边能隐隐约约听见小姑娘用蚊子一样的声音念了几道菜名。
​出了店门骑上车,看着不远处衣着光鲜的小孩子和繁华的街道,百感交集。