惠普某型号笔记本双系统引导优化实录(Debian + Windows 11)

 

缘起

今年 3 月,我在新入手的惠普笔记本上安装了 Debian Testing(Debian 13,目前内核版本为 6.12.17,OpenGL 4.6,Mesa 25.0.1-2,对 AMD R7-8845HS 的支持应该还不错),系统盘为原装三星 PM9B1(nvme0,磁盘0,改插在原空盘位),Windows 11 已经安装在加装的三星 990 Pro(nvme1,磁盘1)。


遇到的异常

GRUB 能检测到 Windows 11 的启动项,但选择后无法引导,提示如下错误:

错误:malformed EFI Device Path node has length=0。
按任意键继续…

继续阅读惠普某型号笔记本双系统引导优化实录(Debian + Windows 11)

Fcitx 5 的“云拼音”与“无法通过 dbus 连接到 fcitx,fcitx 是否正在运行?”

周末了,又到了折腾的时候。于是在 Debian Testing(13)中一番操作之后,发现通过 Fcitx 5 的拼音输入法输入1-3个词(通常是1个)之后,Fcitx 5 立即停止运行了。“Fcitx 5 配置”中显示“无法通过 dbus 连接到 fcitx,fcitx 是否正在运行?”。重新启动 Fcitx 5,反反复复均是如此。最初以为是刚才的系统更新所致。看了些网文,有的说 Fcitx5 和 ibus(默认是已安装的)不能共存,于是先卸载了此二者,再重装的 Fcitx 5,结果还是一样:

sudo apt purge fcitx*
sudo apt purge ibus*
sudo apt autoremove
sudo apt install fcitx5 fcitx5-chinese-addons 继续阅读Fcitx 5 的“云拼音”与“无法通过 dbus 连接到 fcitx,fcitx 是否正在运行?”

记一次 WordPress 故障解决

故障1:不知从什么时候开始,WP Mail SMTP 插件已经不能正常发送邮件。

故障2:不知道已经有多久,我的博客已经不能正常提交评论。

故障1已经出现了很长时间,连测试邮件都发不出去,之前也尝试过解决,但是没发现问题所在。我曾一度怀疑,Outlook 是不是已经被作为付费的专业版专属了?其实不然,当我又怀疑中间修改过邮箱密码或密码应该是别的什么密码的时候,找到了这篇《如何正确地设置Outlook SMTP发送电子邮件》的时候,按照此文把“SMTP 主机”从 smtp.live.com 改为 smtp.office365.com,之后,测试邮件就能正常发送了,有新评论的时候也能收到邮件了。 继续阅读记一次 WordPress 故障解决

优化工具(gnome-tweak-tool)中没有「扩展」了怎么办?

昨天在不能连接外网的电脑上的 Virtualbox 上面安装了目前最新的 Fedora 35,却发现扩展管理功能已被 gnome-tweak-tool(优化工具)移除,显示的提示信息如下图。由于此信息只显示一次,并且当时点击“GNOME Extensions”的链接之后,发现是外网链接就很快关了,所以并没有记下其 URL。

继续阅读优化工具(gnome-tweak-tool)中没有「扩展」了怎么办?

安装 Virtualbox Guest Additions 找不到 linux/smp_lock.h

最近在 Virtualbox 6.1.6 安装了 Debian 11,却不能顺利安装增强功能(Virtualbox Guest Additions)。错误信息如下:

……fatal error: linux/smp_lock.h: No such file or directory
compilation terminated.
……

继续阅读安装 Virtualbox Guest Additions 找不到 linux/smp_lock.h

关于 Debian 11 浏览器不能输入中文

最近在公司的办公电脑上的 Virtualbox 6.1.6 中安装了 Debian 11,也将自己用了快十年的笔记本上面的 Debian 10 升级成了 Debian 11,却发现自带的 Fcitx5 不能在浏览器中输入中文,Firefox 和 Chrome 中均是如此。Google 之后也没看到有效的解决方法。最后发现,使用 Fcitx4 即可解决问题。 继续阅读关于 Debian 11 浏览器不能输入中文

解决 undefined reference to `LZ4_compress_default’ 错误

今年110 Debian Jessie 上尝试将 OCSERV 升级为 0.11.10 版本 make 的时候报错如下

……
CCLD ocserv
worker-http.o: In function `lz4_compress':
/root/ocserv-0.11.10/src/worker-http.c:140: undefined reference to `LZ4_compress_default'
collect2: error: ld returned 1 exit status
Makefile:1549: recipe for target 'ocserv' failed
make[3]: *** [ocserv] Error 1
make[3]: Leaving directory '/root/ocserv-0.11.10/src'
Makefile:1232: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/root/ocserv-0.11.10/src'
Makefile:1047: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/ocserv-0.11.10'
Makefile:980: recipe for target 'all' failed
make: *** [all] Error 2
继续阅读解决 undefined reference to `LZ4_compress_default’ 错误

在 Debian 9 安装 locate 和 updatedb 命令

为了使用 locate updatedb 命令快速查找文件,今天在 Debian 9 安装 locate(apt install locate)之后,执行 updatedb,却提示 :

/usr/bin/find: ‘/var/run/user/1000/gvfs’: Permission denied

于是百度、谷歌了一番,但是都没找到答案。 继续阅读在 Debian 9 安装 locate 和 updatedb 命令