LMLPHP后院

badblocks 执行耗时技术

maybe yes 发表于 2022-11-21 12:10

这也太耗时了吧?

pi@raspberrypi:~/bak $ sudo badblocks -sw -v /dev/sda > badsectors.txt
Checking for bad blocks in read-write mode
From block 0 to 3907018583
Testing with pattern 0xaa: done
Reading and comparing: done
Testing with pattern 0x55: done
Reading and comparing: done
Testing with pattern 0xff: done
Reading and comparing:  15.19% done, 45:33:10 elapsed. (0/0/0 errors)

养成一个好习惯,使用跳板机堡垒机技术

maybe yes 发表于 2022-11-19 11:33

在国内,一定要养成好习惯。

了解了下 ProxyJump,ProxyCommand,以后配置 SSH 一定要加上跳板机。

关于 Windows 11 Pro 投屏 无线显示器 无线投影 屏幕镜像 Miracast DLNA 的一些心得技术

maybe yes 发表于 2022-11-15 17:27

源于一个需求,我才了解了这些,最后发现意义不大。且听我道来。

我有了电脑,连接到显示器,感觉很好。我之所以需要大屏幕电脑,就是想在看视频的时候,随时放在大屏幕上看,这样心情也舒服点。

因此,我想,如果我能随时将手机屏幕镜像到大屏幕上,或者是所谓的 DLNA 投屏就可以满足我的需求。

结果,我在 Windows11Pro 上实现了,不论是屏幕映射,双向控制,或者是所谓的 DLNA,结果发现不是我想的那样,我以为电脑要开着可以办公,想投屏直接投屏就可以,问题是不能全屏,不能全屏,不能因为你投过去了就自动全屏,这个目前没有实现。

为什么我不喜欢电视投屏呢,因为卡顿,我不知道为什么就是卡顿,比如 DLNA 投视频过去,结果那卡的根本放不了。所以想来想去,还是电脑比较厉害。

聊聊关于 CF 域名 DNS API 操作技术

maybe yes 发表于 2022-11-15 11:17

整体使用下来,感觉有点麻烦,我测试到完成用了半个多小时,并不能达到看一眼就弄明白的地步。

一个坑:

curl  --socks5 192.168.1.1:80 \
     -X GET "https://api.cloudflare.com/client/v4/user/tokens/verify" \
     -H "Authorization: Bearer -xx-O" \
     -H "Content-Type:application/json"

{"result":{"id":"xx","status":"active","not_before":"2022-11-14T00:00:00Z","expires_on":"2024-01-01T23:59:59Z"},"success":true,"errors":[],"messages":[{"code":10000,"message":"This API Token is valid and active","type":null}]}

raspberry pi os close the port 25技术

maybe yes 发表于 2022-11-04 11:44

怎么关闭 Raspberry OS 的 25 端口呢?

record : how to close raspberry os port 25.

when is use netstat -tunlp | grep 25 to find the process name, but it don't show:

pi@raspberrypi:~ $ netstat -lptun | grep 25
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      -                   
tcp6       0      0 ::1:25                  :::*                    LISTEN      -                   
2024-03-28 17:48:43 1711619323 0.004866