作者: 毛狐狸

668 篇文章

Unraid配置NUT连接UPS
Unraid配置NUT连接UPS 2021 from--https://forums.unraid.net/topic/93341-tutorial-networked-nut-for-cyberpower-ups/ I should start with the disclaimer that I have no particular expertise with NUT so this guide is not definitive. I have a Cyberpower UPS (CP685AVR) powering a Raspberry Pi and my Unraid Server. Initially I installed apcupsd on the Pi, connected it to the UPS (via US…
Shell 正则替换首字符
和标准的正则不一样,shell是用#和%来做首尾匹配的,使用方式不太一样 来源 -- https://tldp.org/LDP/abs/html/parameter-substitution.html # 从开头匹配 v1=${v0/#abc/ABCDEF} # abc1234zip1234abc # |-| echo "v1 = $v1" # ABCDEF1234zip1234abc # |----| # 从末尾匹配 v2=${v0/%abc/ABCDEF} # abc1234zip123abc # |-| echo "v2 = $v2" # abc1234zip1234ABCDEF # |----|
brave编译打包时dump_syms报错Couldn’t locate EXE or DLL file
brave编译打包时dump_syms报错Couldn't locate EXE or DLL file 原因:brave.exe.exe类似的文件名无效导致无法识别到文件 代码位置: src\third_party\breakpad\breakpad\src\common\windows\pdb_source_line_writer.cc // Look for an EXE or DLL file. const wchar_t* extensions[] = { L"exe", L"dll" }; for (size_t i = 0; i < sizeof(extensions) / sizeof(extensions[0]); i++) { size_t dot_pos = file.fi…
使用Windows Kits创建PE 及精简镜像
使用Windows Kits创建PE 及精简镜像 执行命令报错 ERROR: The following processor architecture was not found: amd64. 找到 部署和映像工具环境 右键 管理员权限运行 使用wimboot启动不要改boot.wim的名字 卵用没有的相关资料: https://kb.acronis.com/content/68324 https://www.sxj.xyz/make-winpe.html https://777notes.wordpress.com/2013/10/21/winpe-the-following-processor-architecture-was-not-found-amd64/ 使用Windows Kits创建PE 找到 部署和映像工具环境 右键 管理…
Windows精简部署相关简易内容
Windows精简部署相关简易内容 使用Windows Kits创建PE 可能遇到以下报错: ERROR: The following processor architecture was not found: amd64. 解决方案: 找到部署和映像工具环境右键 管理员权限运行 卵用没有的相关资料: https://kb.acronis.com/content/68324 https://www.sxj.xyz/make-winpe.html https://777notes.wordpress.com/2013/10/21/winpe-the-following-processor-architecture-was-not-found-amd64/ 找到 部署和映像工具环境 右键 管理员权限运行 copype amd64 C:\User…
APC UPS SUA1000ICH 踩坑记
想在Linux使用USB线连接到UPS然后提供给其他机器使用,打算使用APC的官方软件,但是无论如何都检测不到,翻了一堆资料才发现官方的应用不支持。 APC的软件PowerChute,不支持任何TypeB接口的设备在Linux下通过USB连接,Windows是可以的,折腾了好久,最后白费,老实用NUT工具获取数据了。相关资料如下: Type A UPS Type B UPS SMT SU SMX SUA (including C500J) SURTD SURT SRT SURTA SMTL SC SCL SUM SMC SRTL SRC models:SRC2KUXISRC3KUXISRC3KUXIX709 Any SRC model, excluding those listed under Type A. The config.sh s…
TrueNAS SCALE虚拟机无法 Ping主机
目前没找到专有的网络设置,解决方案如下 在TrueNas SCALE创建br网桥,然后将VM的网卡附加到对应的网桥接口。 相关资料: https://www.truenas.com/community/threads/kvm-guest-cannot-ping-truenas-scale-host-or-vice-versa.88487/