安装 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 命令

VirtualBox 中的 Debian 与 Windows 主机共享文件夹

最近在 Windows 下的 VirtualBox 中安装了64位的 Debian-8.4.0。为了更方便地与物理机互通有无,当然要安装增强功能并设置共享文件夹。

在虚拟机窗口的菜单中选择设备 – 安装增强功能…”之后,打开文件管理器,在左侧可以看到 VBOXADDITIONS_5.0.18_106667,点击它,就能显示出增强功能的安装文件。这些文件的路径其实为 /media/cdrom0。打开终端,cd /media/cdrom0,运行 sh VBoxLinuxAdditions.run,可是安装失败。后来才知道 Ubuntu 和 CentOS 中可以直接这样安装,可是在 Debian 中,需要先安装一些组件,于是: 继续阅读VirtualBox 中的 Debian 与 Windows 主机共享文件夹