<?xml version="1.0" encoding="utf-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>打工人的备忘录</title><link>http://ibug.com.cn/</link><description></description><item><title>FreeBSD更换源后提示no srv record found for the repo</title><link>http://ibug.com.cn/?id=13</link><description>&lt;p data-pid=&quot;tkZ9jvXY&quot; style=&quot;margin: 10px auto; padding: 0px; list-style-type: none; list-style-image: none; color: rgb(68, 68, 68); font-family: Tahoma, Arial, Helvetica, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;创建用户级源文件:&lt;/p&gt;&lt;p data-pid=&quot;COPzD0uM&quot; style=&quot;margin: 10px auto; padding: 0px; list-style-type: none; list-style-image: none; color: rgb(68, 68, 68); font-family: Tahoma, Arial, Helvetica, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;code style=&quot;font-family: ui-monospace, SFMono-Regular, &amp;quot;SF Mono&amp;quot;, Menlo, Consolas, &amp;quot;Liberation Mono&amp;quot;, monospace, sans-serif; font-size: 12px; padding: 0px 5px; line-height: 1.8; margin: 0px 3px; display: inline-block; overflow-x: auto; vertical-align: middle; border-radius: 3px; color: rgb(192, 52, 29); background-color: rgba(0, 0, 0, 0.04); border: none !important;&quot;&gt;# vi /usr/local/etc/pkg/repos/ustc.conf&lt;/code&gt;&lt;/p&gt;&lt;p data-pid=&quot;I9UrU96W&quot; style=&quot;margin: 10px auto; padding: 0px; list-style-type: none; list-style-image: none; color: rgb(68, 68, 68); font-family: Tahoma, Arial, Helvetica, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;写入以下内容:&lt;/p&gt;&lt;div class=&quot;highlight&quot; style=&quot;color: rgb(68, 68, 68); font-family: Tahoma, Arial, Helvetica, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;pre class=&quot;highlighter-hljs&quot; highlighted=&quot;true&quot; cnb-code-toolbar-active=&quot;true&quot; has-selection=&quot;true&quot; style=&quot;transition-duration: 0.2s; transition-property: background, font-size, border-color, border-radius, border-width, padding, margin, color; overflow: auto; margin-top: 0px; margin-bottom: 0px; padding: 0px; list-style-type: none; list-style-image: none; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; position: relative;&quot;&gt;ustc:&amp;nbsp;{&amp;nbsp;&amp;nbsp;

url:&amp;nbsp;&amp;quot;pkg+http://mirrors.ustc.edu.cn/freebsd-pkg/${ABI}/quarterly&amp;quot;,&amp;nbsp;&amp;nbsp;

mirror_type:&amp;nbsp;&amp;quot;srv&amp;quot;,&amp;nbsp;&amp;nbsp;

signature_type:&amp;nbsp;&amp;quot;none&amp;quot;,&amp;nbsp;&amp;nbsp;

fingerprints:&amp;nbsp;&amp;quot;/usr/share/keys/pkg&amp;quot;,&amp;nbsp;&amp;nbsp;

enabled:&amp;nbsp;yes

}

FreeBSD:&amp;nbsp;{&amp;nbsp;enabled:&amp;nbsp;no&amp;nbsp;}&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;保存之后执行如下命令更新：&lt;/p&gt;&lt;p&gt;&lt;code style=&quot;font-family: ui-monospace, SFMono-Regular, &amp;quot;SF Mono&amp;quot;, Menlo, Consolas, &amp;quot;Liberation Mono&amp;quot;, monospace, sans-serif; font-size: 12px; padding: 0px 5px; line-height: 1.8; margin: 0px 3px; display: inline-block; overflow-x: auto; vertical-align: middle; border-radius: 3px; color: rgb(192, 52, 29); background-color: rgba(0, 0, 0, 0.04); border: none !important;&quot;&gt;# pkg update -f&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;如果提示no srv record found for the repo...，将上面的配置文件中url里的pkg+去掉，mirror_type改为none，如下所示：&lt;/p&gt;&lt;pre class=&quot;highlighter-hljs&quot; highlighted=&quot;true&quot; cnb-code-toolbar-active=&quot;true&quot; has-selection=&quot;true&quot; style=&quot;margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(68, 68, 68); transition-duration: 0.2s; transition-property: background, font-size, border-color, border-radius, border-width, padding, margin, color; overflow: auto; list-style-type: none; list-style-image: none; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; position: relative;&quot;&gt;ustc:&amp;nbsp;{&amp;nbsp;&amp;nbsp;

#&amp;nbsp;url:&amp;nbsp;&amp;quot;pkg+http://mirrors.ustc.edu.cn/freebsd-pkg/${ABI}/quarterly&amp;quot;,&amp;nbsp;
url:&amp;nbsp;&amp;quot;http://mirrors.ustc.edu.cn/freebsd-pkg/${ABI}/quarterly&amp;quot;,&amp;nbsp;&amp;nbsp;

#&amp;nbsp;mirror_type:&amp;nbsp;&amp;quot;srv&amp;quot;,&amp;nbsp;&amp;nbsp;
mirror_type:&amp;nbsp;&amp;quot;none&amp;quot;,&amp;nbsp;&amp;nbsp;

signature_type:&amp;nbsp;&amp;quot;none&amp;quot;,&amp;nbsp;&amp;nbsp;

fingerprints:&amp;nbsp;&amp;quot;/usr/share/keys/pkg&amp;quot;,&amp;nbsp;&amp;nbsp;

enabled:&amp;nbsp;yes

}

FreeBSD:&amp;nbsp;{&amp;nbsp;enabled:&amp;nbsp;no&amp;nbsp;}&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;保存之后再次执行更行命令：&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #C0341D; font-family: ui-monospace, SFMono-Regular, &amp;quot;SF Mono&amp;quot;, Menlo, Consolas, &amp;quot;Liberation Mono&amp;quot;, monospace, sans-serif; font-size: 12px; text-wrap-mode: wrap; background-color: rgba(0, 0, 0, 0.04);&quot;&gt;# pkg update -f&lt;/span&gt;&lt;/p&gt;</description><pubDate>Fri, 26 Sep 2025 02:29:12 +0800</pubDate></item><item><title>FreeBSD安装MySQL无法启动的问题</title><link>http://ibug.com.cn/?id=12</link><description>&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;sudo&amp;nbsp;pkg&amp;nbsp;delete&amp;nbsp;mysql57-server
sudo&amp;nbsp;rm&amp;nbsp;-rf&amp;nbsp;/usr/local/etc/mysql
sudo&amp;nbsp;rm&amp;nbsp;-rf&amp;nbsp;/var/db/mysql
sudo&amp;nbsp;pkg&amp;nbsp;install&amp;nbsp;mysql57-server
sudo&amp;nbsp;service&amp;nbsp;mysql-server&amp;nbsp;start&lt;/pre&gt;&lt;p&gt;以上操作会删除所有数据库内容，谨慎操作。&lt;br/&gt;&lt;/p&gt;&lt;p&gt;上述命令中mysql57代表MySQL 5.7，如果是8.0版本则改为mysql80即可。&lt;/p&gt;</description><pubDate>Thu, 25 Sep 2025 00:30:15 +0800</pubDate></item><item><title>Qt旧版本下载方法</title><link>http://ibug.com.cn/?id=10</link><description>&lt;p&gt;根据要下载的版本修改下面链接中的红色部分&lt;/p&gt;&lt;p&gt;http://download.qt.io/new_archive/qt/&lt;span style=&quot;color: #FF0000;&quot;&gt;5.9&lt;/span&gt;/&lt;span style=&quot;color: #FF0000;&quot;&gt;5.9.9&lt;/span&gt;/qt-opensource-windows-x86-&lt;span style=&quot;color: #FF0000;&quot;&gt;5.9.9&lt;/span&gt;.exe&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;使用迅雷下载修改后的链接即可&lt;/p&gt;</description><pubDate>Fri, 29 Aug 2025 23:06:38 +0800</pubDate></item><item><title>vsftpd配置文件详解</title><link>http://ibug.com.cn/?id=9</link><description>&lt;p&gt;vsftpd配置文件路径：/etc/vsftpd.conf&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;以独立模式运行，ipv4
listen=YES
#&amp;nbsp;是否开启ipv6，ipv4和ipv6不能同时开启
listen_ipv6=NO
#
#&amp;nbsp;是否允许匿名登录
anonymous_enable=NO
#
#&amp;nbsp;是否允许本地用户登录
local_enable=YES
#
#&amp;nbsp;允许写入
#write_enable=YES
#
#&amp;nbsp;文件权限掩码&amp;nbsp;777&amp;nbsp;-&amp;nbsp;022&amp;nbsp;=&amp;nbsp;755
local_umask=022
#
#&amp;nbsp;是否允许匿名用户上传文件
#anon_upload_enable=YES
#
#&amp;nbsp;是否允许匿名用户创建文件夹
#anon_mkdir_write_enable=YES
#
#&amp;nbsp;是否显示目录消息
#dirmessage_enable=YES
#
#&amp;nbsp;是否使用客户端时间
#use_localtime=YES
#
#&amp;nbsp;是否开启日志
xferlog_enable=YES
#
#&amp;nbsp;是否从20端口连接
connect_from_port_20=YES
#
#&amp;nbsp;是否修改匿名上传文件的所有者
#chown_uploads=YES
#&amp;nbsp;匿名上传后文件所有者，与前项配合使用
#chown_username=whoever
#
#&amp;nbsp;日志文件路径，以下为默认值
#xferlog_file=/var/log/vsftpd.log
#
#&amp;nbsp;用户配置文件路径，在该路径下以用户名为文件名创建配置文件，在文件内定义local_root=**路径**，可指定该用户登录后的根目录路径，如不指定则为该用户的home目录
user_config_dir=/etc/vsftpd/userconfig
#
#&amp;nbsp;日志文件是否以标准&amp;nbsp;ftpd&amp;nbsp;xferlog&amp;nbsp;格式存储
#xferlog_std_format=YES
#
#&amp;nbsp;session超时时长
#idle_session_timeout=600
#
#&amp;nbsp;数据连接超时时长
#data_connection_timeout=120
#
#&amp;nbsp;自定义banner欢迎消息
#ftpd_banner=Welcome&amp;nbsp;to&amp;nbsp;blah&amp;nbsp;FTP&amp;nbsp;service.
#
#&amp;nbsp;是否禁用邮件地址
#deny_email_enable=YES
#&amp;nbsp;(default&amp;nbsp;follows)
#&amp;nbsp;禁用的邮件地址列表文件
#banned_email_file=/etc/vsftpd.banned_emails
#
#&amp;nbsp;是否将用户限制在根目录内，开启后用户不能访问根目录的上级目录
chroot_local_user=YES
#&amp;nbsp;是否开启chroot用户列表，如开启chroot_local_user，则此列表为列外用户列表，即在此列表里的用户可以访问root目录的上级目录
chroot_list_enable=YES
#&amp;nbsp;(default&amp;nbsp;follows)
#&amp;nbsp;chroot列表文件路径
chroot_list_file=/etc/vsftpd.chroot_list
#
#&amp;nbsp;监狱目录，此目录为空且ftp用户无法操作
secure_chroot_dir=/usr/local/empty
#
#&amp;nbsp;是否使用UTF-8文件系统
#utf8_filesystem=YES&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Fri, 20 Jun 2025 11:14:02 +0800</pubDate></item><item><title>Linux开机执行sh脚本</title><link>http://ibug.com.cn/?id=8</link><description>&lt;p&gt;在/etc/systemd/system目录下创建一个后缀名为.service的文件，比如叫auto_start.service，文件内容如下：&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;[Unit]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;Description=Description to this service. //对当前服务的描述，随便写。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;After=default.target&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;[Service]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;ExecStart=/usr/local/start.sh&amp;nbsp; &amp;nbsp;//需要开机执行的sh脚本路径，也可以运行其他软件&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;[Install]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;WantedBy=default.target&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;然后在终端执行如下命令：&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;systemctl&amp;nbsp;daemon-reload
systemctl&amp;nbsp;enable&amp;nbsp;auto_start.service&lt;/pre&gt;&lt;p&gt;完成以上步骤即可实现开机执行sh脚本或运行其他软件。&lt;/p&gt;</description><pubDate>Wed, 04 Jun 2025 18:08:59 +0800</pubDate></item><item><title>windows电源选项没有卓越性能选项</title><link>http://ibug.com.cn/?id=6</link><description>&lt;p&gt;&lt;span style=&quot;color: #223344; font-family: 微软雅黑; font-size: 16px; text-wrap-mode: wrap; background-color: #FFFFFF;&quot;&gt;以管理员权限打开Windows Powershell，&lt;/span&gt;&lt;span style=&quot;margin: 0px; padding: 0px; box-sizing: border-box; outline: none; font-size: 16px; text-wrap-mode: wrap; color: #111111; font-family: Arial, Helvetica, sans-serif; background-color: #FFFFFF;&quot;&gt;&amp;nbsp;在PowerShell窗口中，输入命令powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61即可增加卓越性能选项。&lt;/span&gt;&lt;/p&gt;</description><pubDate>Sat, 24 May 2025 02:56:16 +0800</pubDate></item><item><title>Windows系统下Qt获取U盘设备实例路径的方法</title><link>http://ibug.com.cn/?id=5</link><description>&lt;pre class=&quot;prism-highlight prism-language-cpp&quot; data-language=&quot;C++&quot; style=&quot;padding: 1em 1em 1em 3.8em; box-sizing: border-box; outline: none; text-shadow: white 0px 1px; font-family: Consolas, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; direction: ltr; word-break: normal; overflow-wrap: normal; line-height: 1.5; tab-size: 4; hyphens: none; overflow: auto; background-color: rgb(245, 242, 240); position: relative; counter-reset: linenumber 0; font-size: 16px;&quot;&gt;#ifdef&amp;nbsp;Q_OS_WIN
#include&amp;nbsp;&amp;lt;windows.h&amp;gt;
#include&amp;nbsp;&amp;lt;setupapi.h&amp;gt;
#include&amp;nbsp;&amp;lt;cfgmgr32.h&amp;gt;
#include&amp;nbsp;&amp;lt;devguid.h&amp;gt;
#pragma&amp;nbsp;comment(lib,&amp;nbsp;&amp;quot;setupapi.lib&amp;quot;)
QStringList&amp;nbsp;getUsbPhysicalPaths()&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;QStringList&amp;nbsp;usbPaths;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;HDEVINFO&amp;nbsp;hDevInfo&amp;nbsp;=&amp;nbsp;SetupDiGetClassDevs(&amp;amp;GUID_DEVINTERFACE_DISK,&amp;nbsp;0,&amp;nbsp;0,&amp;nbsp;DIGCF_PRESENT&amp;nbsp;|&amp;nbsp;DIGCF_DEVICEINTERFACE);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&amp;nbsp;(hDevInfo&amp;nbsp;==&amp;nbsp;INVALID_HANDLE_VALUE)&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return&amp;nbsp;usbPaths;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SP_DEVICE_INTERFACE_DATA&amp;nbsp;devInterfaceData&amp;nbsp;=&amp;nbsp;{0};
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;devInterfaceData.cbSize&amp;nbsp;=&amp;nbsp;sizeof(SP_DEVICE_INTERFACE_DATA);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for&amp;nbsp;(DWORD&amp;nbsp;i&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;SetupDiEnumDeviceInterfaces(hDevInfo,&amp;nbsp;NULL,&amp;nbsp;&amp;amp;GUID_DEVINTERFACE_DISK,&amp;nbsp;i,&amp;nbsp;&amp;amp;devInterfaceData);&amp;nbsp;i++)&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DWORD&amp;nbsp;requiredSize&amp;nbsp;=&amp;nbsp;0;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SetupDiGetDeviceInterfaceDetail(hDevInfo,&amp;nbsp;&amp;amp;devInterfaceData,&amp;nbsp;NULL,&amp;nbsp;0,&amp;nbsp;&amp;amp;requiredSize,&amp;nbsp;NULL);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PSP_DEVICE_INTERFACE_DETAIL_DATA_W&amp;nbsp;pDetail&amp;nbsp;=&amp;nbsp;(PSP_DEVICE_INTERFACE_DETAIL_DATA_W)malloc(requiredSize);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;pDetail-&amp;gt;cbSize&amp;nbsp;=&amp;nbsp;sizeof(SP_DEVICE_INTERFACE_DETAIL_DATA_W);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SP_DEVINFO_DATA&amp;nbsp;devInfoData&amp;nbsp;=&amp;nbsp;{0};
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;devInfoData.cbSize&amp;nbsp;=&amp;nbsp;sizeof(SP_DEVINFO_DATA);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&amp;nbsp;(SetupDiGetDeviceInterfaceDetail(hDevInfo,&amp;nbsp;&amp;amp;devInterfaceData,&amp;nbsp;pDetail,&amp;nbsp;requiredSize,&amp;nbsp;NULL,&amp;nbsp;&amp;amp;devInfoData))&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//&amp;nbsp;获取设备实例路径
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;wchar_t&amp;nbsp;instanceId[MAX_DEVICE_ID_LEN];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CM_Get_Device_IDW(devInfoData.DevInst,&amp;nbsp;instanceId,&amp;nbsp;MAX_DEVICE_ID_LEN,&amp;nbsp;0);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;QString&amp;nbsp;path&amp;nbsp;=&amp;nbsp;QString::fromWCharArray(instanceId);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&amp;nbsp;(path.contains(&amp;quot;USBSTOR&amp;quot;,&amp;nbsp;Qt::CaseInsensitive))&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;usbPaths.append(QString::fromWCharArray(pDetail-&amp;gt;DevicePath));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;free(pDetail);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SetupDiDestroyDeviceInfoList(hDevInfo);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return&amp;nbsp;usbPaths;
}
#endif&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sat, 24 May 2025 02:53:58 +0800</pubDate></item><item><title>通过http请求获取当前公网IP</title><link>http://ibug.com.cn/?id=4</link><description>&lt;ul class=&quot; list-paddingleft-2&quot; style=&quot;margin-bottom: 24px; margin-left: 2em; padding: 0px; box-sizing: border-box; outline: 0px; font-size: 16px; text-wrap-mode: wrap; list-style-position: initial; list-style-image: initial; --el-button-hover-bg-color: #6d5ffd; --el-button-hover-border-color: #6d5ffd; --el-button-active-bg-color: #6d5ffd; --el-button-active-border-color: #6d5ffd; overflow: auto hidden; font-synthesis-style: auto; overflow-wrap: break-word; color: rgba(0, 0, 0, 0.75); font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; background-color: rgb(255, 255, 255);&quot;&gt;&lt;li&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 1em; padding: 0px; box-sizing: border-box; outline: none;&quot;&gt;https://ifconfig.me/ip&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 1em; padding: 0px; box-sizing: border-box; outline: none;&quot;&gt;https://jsonip.com&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 1em; padding: 0px; box-sizing: border-box; outline: none;&quot;&gt;但是使用第三方网站服务太过频繁可能会被拒绝服务，所以也可以在自己的服务器上搭建一个网页提供该服务，比如php页面内输入如下内容：&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-php&quot;&gt;$ip&amp;nbsp;=&amp;nbsp;$_SERVER[&amp;quot;REMOTE_ADDR&amp;quot;];&lt;/pre&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 1em; padding: 0px; box-sizing: border-box; outline: none;&quot;&gt;这样访问这个php文件就会返回IP地址。此方法适用于一般情况，如果使用了代理之类的就要复杂一点了。&lt;/p&gt;</description><pubDate>Sat, 24 May 2025 02:53:15 +0800</pubDate></item><item><title>Ubuntu下编译Qt遇到的问题</title><link>http://ibug.com.cn/?id=3</link><description>&lt;p style=&quot;margin-top: 0px; margin-bottom: 1em; padding: 0px; box-sizing: border-box; outline: none; color: rgb(34, 51, 68); font-family: 微软雅黑; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;1. 安装完QtCreator打不开&lt;br style=&quot;margin: 0px; padding: 0px; box-sizing: border-box; outline: none;&quot;/&gt;&lt;/p&gt;&lt;div class=&quot;prism-show-language&quot; style=&quot;margin: 0px; padding: 0px; box-sizing: border-box; outline: none; position: relative; color: rgb(34, 51, 68); font-family: 微软雅黑; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;div class=&quot;prism-show-language-label&quot; data-language=&quot;Bash&quot; style=&quot;margin: 0px; padding: 0px 0.5em; box-sizing: border-box; outline: none; color: black; background-color: rgb(207, 207, 207); display: inline-block; position: absolute; inset: 0px 0px auto auto; width: auto; height: auto; font-size: 0.9em; border-radius: 0px 0px 0px 5px; text-shadow: none; z-index: 1; box-shadow: none; transform: none;&quot;&gt;Bash&lt;/div&gt;&lt;/div&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot; data-language=&quot;Bash&quot; style=&quot;padding: 1em 1em 1em 3.8em; box-sizing: border-box; outline: none; text-shadow: white 0px 1px; font-family: Consolas, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; direction: ltr; word-break: normal; overflow-wrap: normal; line-height: 1.5; tab-size: 4; hyphens: none; overflow: auto; background-color: rgb(245, 242, 240); position: relative; counter-reset: linenumber 0; font-size: 16px;&quot;&gt;sudo&amp;nbsp;apt&amp;nbsp;install&amp;nbsp;build-essentialsudo&amp;nbsp;apt&amp;nbsp;install&amp;nbsp;libxcb-xinerama0&lt;/pre&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 1em; padding: 0px; box-sizing: border-box; outline: none; color: rgb(34, 51, 68); font-family: 微软雅黑; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;br style=&quot;margin: 0px; padding: 0px; box-sizing: border-box; outline: none;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 1em; padding: 0px; box-sizing: border-box; outline: none; color: rgb(34, 51, 68); font-family: 微软雅黑; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;2. GL/gl.h: No such file or directory&lt;/p&gt;&lt;div class=&quot;prism-show-language&quot; style=&quot;margin: 0px; padding: 0px; box-sizing: border-box; outline: none; position: relative; color: rgb(34, 51, 68); font-family: 微软雅黑; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;div class=&quot;prism-show-language-label&quot; data-language=&quot;Bash&quot; style=&quot;margin: 0px; padding: 0px 0.5em; box-sizing: border-box; outline: none; color: black; background-color: rgb(207, 207, 207); display: inline-block; position: absolute; inset: 0px 0px auto auto; width: auto; height: auto; font-size: 0.9em; border-radius: 0px 0px 0px 5px; text-shadow: none; z-index: 1; box-shadow: none; transform: none;&quot;&gt;Bash&lt;/div&gt;&lt;/div&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot; data-language=&quot;Bash&quot; style=&quot;padding: 1em 1em 1em 3.8em; box-sizing: border-box; outline: none; text-shadow: white 0px 1px; font-family: Consolas, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; direction: ltr; word-break: normal; overflow-wrap: normal; line-height: 1.5; tab-size: 4; hyphens: none; overflow: auto; background-color: rgb(245, 242, 240); position: relative; counter-reset: linenumber 0; font-size: 16px;&quot;&gt;sudo&amp;nbsp;apt-get&amp;nbsp;install&amp;nbsp;mesa-common-dev&lt;/pre&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 1em; padding: 0px; box-sizing: border-box; outline: none; color: rgb(34, 51, 68); font-family: 微软雅黑; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;br style=&quot;margin: 0px; padding: 0px; box-sizing: border-box; outline: none;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 1em; padding: 0px; box-sizing: border-box; outline: none; color: rgb(34, 51, 68); font-family: 微软雅黑; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;3. Linux Qt cannot find -Lgl&lt;/p&gt;&lt;div class=&quot;prism-show-language&quot; style=&quot;margin: 0px; padding: 0px; box-sizing: border-box; outline: none; position: relative; color: rgb(34, 51, 68); font-family: 微软雅黑; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;div class=&quot;prism-show-language-label&quot; data-language=&quot;Bash&quot; style=&quot;margin: 0px; padding: 0px 0.5em; box-sizing: border-box; outline: none; color: black; background-color: rgb(207, 207, 207); display: inline-block; position: absolute; inset: 0px 0px auto auto; width: auto; height: auto; font-size: 0.9em; border-radius: 0px 0px 0px 5px; text-shadow: none; z-index: 1; box-shadow: none; transform: none;&quot;&gt;Bash&lt;/div&gt;&lt;/div&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot; data-language=&quot;Bash&quot; style=&quot;padding: 1em 1em 1em 3.8em; box-sizing: border-box; outline: none; text-shadow: white 0px 1px; font-family: Consolas, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; direction: ltr; word-break: normal; overflow-wrap: normal; line-height: 1.5; tab-size: 4; hyphens: none; overflow: auto; background-color: rgb(245, 242, 240); position: relative; counter-reset: linenumber 0; font-size: 16px;&quot;&gt;#查找libGL所在位置[root@localhost~]#&amp;nbsp;locate&amp;nbsp;libGL/usr/lib64/libGL.so
/usr/lib64/libGL.so.1
/usr/lib64/libGL.so.1.2.0
/usr/share/doc/mesa-libGL-9.2.5
/usr/share/doc/mesa-libGL-9.2.5/COPYING&amp;nbsp;
#创建链接[root@localhost~]#&amp;nbsp;ln&amp;nbsp;-s&amp;nbsp;/usr/lib64/libGL.so.1&amp;nbsp;/usr/lib/libGL.so&lt;/pre&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 1em; padding: 0px; box-sizing: border-box; outline: none; color: rgb(34, 51, 68); font-family: 微软雅黑; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;br style=&quot;margin: 0px; padding: 0px; box-sizing: border-box; outline: none;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 1em; padding: 0px; box-sizing: border-box; outline: none; color: rgb(34, 51, 68); font-family: 微软雅黑; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;4. libQt5WebEngineCore.so: .dynsym local symbol at index&lt;/p&gt;&lt;div class=&quot;prism-show-language&quot; style=&quot;margin: 0px; padding: 0px; box-sizing: border-box; outline: none; position: relative; color: rgb(34, 51, 68); font-family: 微软雅黑; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;div class=&quot;prism-show-language-label&quot; data-language=&quot;Bash&quot; style=&quot;margin: 0px; padding: 0px 0.5em; box-sizing: border-box; outline: none; color: black; background-color: rgb(207, 207, 207); display: inline-block; position: absolute; inset: 0px 0px auto auto; width: auto; height: auto; font-size: 0.9em; border-radius: 0px 0px 0px 5px; text-shadow: none; z-index: 1; box-shadow: none; transform: none;&quot;&gt;Bash&lt;/div&gt;&lt;/div&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot; data-language=&quot;Bash&quot; style=&quot;padding: 1em 1em 1em 3.8em; box-sizing: border-box; outline: none; text-shadow: white 0px 1px; font-family: Consolas, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; direction: ltr; word-break: normal; overflow-wrap: normal; line-height: 1.5; tab-size: 4; hyphens: none; overflow: auto; background-color: rgb(245, 242, 240); position: relative; counter-reset: linenumber 0; font-size: 16px;&quot;&gt;sudo&amp;nbsp;ln&amp;nbsp;-sf&amp;nbsp;/usr/bin/x86_64-linux-gnu-ld.gold&amp;nbsp;/usr/bin/ld&lt;/pre&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 1em; padding: 0px; box-sizing: border-box; outline: none; color: rgb(34, 51, 68); font-family: 微软雅黑; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;br style=&quot;margin: 0px; padding: 0px; box-sizing: border-box; outline: none;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 1em; padding: 0px; box-sizing: border-box; outline: none; color: rgb(34, 51, 68); font-family: 微软雅黑; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;5. 修改.ui文件后代码里不生效，找不到控件&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 1em; padding: 0px; box-sizing: border-box; outline: none; color: rgb(34, 51, 68); font-family: 微软雅黑; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;在代码所在目录使用以下命令重新生成ui_****.h文件&lt;/p&gt;&lt;div class=&quot;prism-show-language&quot; style=&quot;margin: 0px; padding: 0px; box-sizing: border-box; outline: none; position: relative; color: rgb(34, 51, 68); font-family: 微软雅黑; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;div class=&quot;prism-show-language-label&quot; data-language=&quot;Bash&quot; style=&quot;margin: 0px; padding: 0px 0.5em; box-sizing: border-box; outline: none; color: black; background-color: rgb(207, 207, 207); display: inline-block; position: absolute; inset: 0px 0px auto auto; width: auto; height: auto; font-size: 0.9em; border-radius: 0px 0px 0px 5px; text-shadow: none; z-index: 1; box-shadow: none; transform: none;&quot;&gt;Bash&lt;/div&gt;&lt;/div&gt;&lt;pre class=&quot;prism-highlight prism- language-bash prism-line-numbers&quot; data-language=&quot;Bash&quot; style=&quot;padding: 1em 1em 1em 3.8em; box-sizing: border-box; outline: none; text-shadow: white 0px 1px; font-family: Consolas, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; direction: ltr; word-break: normal; overflow-wrap: normal; line-height: 1.5; tab-size: 4; hyphens: none; overflow: auto; background-color: rgb(245, 242, 240); position: relative; counter-reset: linenumber 0; font-size: 16px;&quot;&gt;uic&amp;nbsp;-o&amp;nbsp;ui_xxxxxx.h&amp;nbsp;xxxxxx.ui&lt;/pre&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 1em; padding: 0px; box-sizing: border-box; outline: none; color: rgb(34, 51, 68); font-family: 微软雅黑; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;br style=&quot;margin: 0px; padding: 0px; box-sizing: border-box; outline: none;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 1em; padding: 0px; box-sizing: border-box; outline: none; color: rgb(34, 51, 68); font-family: 微软雅黑; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;6.&amp;nbsp;collect2: error: ld returned 1 exit status&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 1em; padding: 0px; box-sizing: border-box; outline: none; color: rgb(34, 51, 68); font-family: 微软雅黑; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;查看编译输出窗口提示信息，检查是否缺少库&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sat, 24 May 2025 02:51:17 +0800</pubDate></item></channel></rss>