kali系统更新后的版本为
~$uname -a
Linux 4rk 5.9.0-kali5-amd64 #1 SMP Debian 5.9.15-1kali1 (2020-12-18) x86_64 GNU/Linux
进入系统后conky并未显示,通过终端启动报错如下:
~$ conky
conky: Syntax error (/home/m4k0/.conkyrc:2: syntax error near 'yes') while reading config file.
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:159: attempt to call a nil value (global 'loadstring')
查资料后发现,更新后的conky对配置文件解析更加严格,以前的形如double_buffer yes
的格式会解析失败,进而无法启动。更详细说明参见官方wiki
官方提供了转换脚本,可以把配置文件转换成新的可解析的格式。传送门,由于众所周知的原因,raw文件可能会下载失败,建议复制粘贴代码到本地。
备份原有配置文件,然后执行以下命令进行转换。
chmod +x convert.lua
./convert.lua .conkyrc conkyrcc
mv conkyrcc .conkyrc
注:如果出现下列问题,需要安装lua环境后再运行转换脚本,安装命令:sudo apt-get install lua5.4
./convert.lua .conkyrc conkyrcc
./convert.lua: line 3: local: can only be used in a function
./convert.lua: line 4: Usage:: command not found
./convert.lua: line 5: Tries: command not found
./convert.lua: line 6: Keep: command not found
./convert.lua: line 7: with: command not found
./convert.lua: line 8: should: command not found
./convert.lua: line 9: Although: command not found
./convert.lua: line 21: unexpected EOF while looking for matching `"'
./convert.lua: line 156: syntax error: unexpected end of file
启动conky,熟悉的界面又回来了
手机扫一扫
移动阅读更方便
你可能感兴趣的文章