Ubuntu命令行shell显示中文
Ubuntu命令行shell显示中文-iibull-ChinaUnix博客 http://blog.chinaunix.net/uid-27875-id-5860203.html
我按照上面的教程,设置了下,结果ubuntu shell显示中文还是乱码,请问下该怎么办?我没有安装Xwinodw
sudo nano /etc/apt/sources.list
Ubuntu命令行shell显示中文异常
-
- 帖子: 9
- 注册时间: 2021-02-01 20:13
- 系统: WIN10
Ubuntu命令行shell显示中文异常
上次由 liuzhaoyzz 在 2022-10-26 23:00,总共编辑 1 次。
- astolia
- 论坛版主
- 帖子: 6454
- 注册时间: 2008-09-18 13:11
Re: Ubuntu命令行shell显示中文异常
你的运行环境到底是什么?实机安装?虚拟机安装?ssh远程连接?wsl?wsl2?
你的图也没传上来,去读一下置顶帖
你的图也没传上来,去读一下置顶帖
- daf3707
- 论坛版主
- 帖子: 12731
- 注册时间: 2007-06-13 15:57
- 来自: 在他乡
Re: Ubuntu命令行shell显示中文异常
是不是要在tty下显示中文,可以搜索 fbterm,比如这里
https://fooyou.github.io/document/2015/ ... n-tty.html
https://fooyou.github.io/document/2015/ ... n-tty.html
-
- 帖子: 9
- 注册时间: 2021-02-01 20:13
- 系统: WIN10
-
- 帖子: 9
- 注册时间: 2021-02-01 20:13
- 系统: WIN10
Re: Ubuntu命令行shell显示中文异常
你这个帖子,好像说的是在桌面下的显示?我现在没有安装xwindow,可能不一样吧?daf3707 写了: ↑2022-10-26 9:51 是不是要在tty下显示中文,可以搜索 fbterm,比如这里
https://fooyou.github.io/document/2015/ ... n-tty.html
晚点我上传乱码的截图。
- daf3707
- 论坛版主
- 帖子: 12731
- 注册时间: 2007-06-13 15:57
- 来自: 在他乡
Re: Ubuntu命令行shell显示中文异常
不是桌面下,是tty终端显示及输入中文,你再看看帖子
-
- 帖子: 9
- 注册时间: 2021-02-01 20:13
- 系统: WIN10
Re: Ubuntu命令行shell显示中文异常
您说的这个fbterm,我在VPS里面的ubuntu上面试了下,好像是基于xwindow的啊?
作为tty下面中文显示方案,这个fbterm感觉太重了,依赖库暴多。
Configuration file '/etc/cloud/cloud.cfg'
我不知道怎么配置,取了默认值。
sudo chmod u+s /usr/bin/fbterm
chmod: cannot access '/usr/bin/fbterm': No such file or directory
失败了。
sudo setcap 'cap_sys_tty_config+ep' /usr/bin/fbterm
Failed to set capabilities on file `/usr/bin/fbterm' (No such file or directory)
The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file
失败了。
fcitx-fbterm-helper
Your display number is localhost10
Test whether fcitx is running correctly with dbus...
Cannot communicate fcitx with DBus.
=========================================================
=========================================================
Fcitx is not running, you may setup it mannually
The easiest way is set $DISPLAY, start fcitx from X
Then try this helper
=========================================================
你看上面最后的提示,还是提示需要依赖于xwindow,dbus这些。
- 附件
-
- fbterm安装日志.txt
- (315.42 KiB) 已下载 42 次