命令行中文乱码问题
Tofloor
poster avatar
dream_baul
deepin
2016-01-14 16:35
Author
本人新手,接触linux,昨天安装了deepin linux,桌面模式下的中文显示都正常,命令行下中文显示成方块如何解决啊。
Reply Favorite View the author
All Replies
1 / 2
To page
avatar
cxbii
deepin
2016-01-14 22:28
#1
桌面模式下的中文显示都正常

给下截图

命令行下中文显示成方块如何解决啊

这个是正常的
Reply View the author
avatar
873792861
deepin
2016-01-14 23:01
#2
是tty中显示方块吧,export LANG=en_us,用英文显示吧
Reply View the author
avatar
ddb_01
deepin
2016-01-14 23:03
#3
是不是ctrl + alt + f1进 tty 中文显示成方块?如果是这样的话是正常的。想要显示中文建议安装一个软件,我是用 fbterm。
Reply View the author
avatar
dream_baul
deepin
2016-01-15 00:49
#4
https://bbs.deepin.org/post/36044
是tty中显示方块吧,export LANG=en_us,用英文显示吧

按照你的做法 方块变?了···
Reply View the author
avatar
dream_baul
deepin
2016-01-15 00:50
#5
https://bbs.deepin.org/post/36044
是不是ctrl + alt + f1进 tty 中文显示成方块?如果是这样的话是正常的。想要显示中文建议安装一个软件,我 ...

怎么安装 在桌面环境下安装吗
Reply View the author
avatar
ghostry
deepin
2016-01-15 01:03
#6
https://bbs.deepin.org/post/36044
怎么安装 在桌面环境下安装吗

看我以前的文章https://blog.ghostry.cn/program/bian-yi-le-yi-ge-fbv.html。

{:4_92:}
不过别照搬,系统不同。可以参考下。
Reply View the author
avatar
dream_baul
deepin
2016-01-15 01:07
#7
https://bbs.deepin.org/post/36044
看我以前的文章https://blog.ghostry.cn/program/bian-yi-le-yi-ge-fbv.html。

这太难为新手了啊 没有手把手的说明啊
Reply View the author
avatar
ghostry
deepin
2016-01-15 01:16
#8
https://bbs.deepin.org/post/36044
这太难为新手了啊 没有手把手的说明啊

{:4_117:}

这是你自己找困难嘛。

干嘛用tty。平时点点鼠标,不行用模拟终端。都挺好的。非要用这个命令行。

这东西我觉得除了系统坏了修系统,就是用来装B,没别的用了。
Reply View the author
avatar
dream_baul
deepin
2016-01-15 01:22
#9
https://bbs.deepin.org/post/36044
这是你自己找困难嘛。

干嘛用tty。平时点点鼠标,不行用模拟终端。都挺好的。非要用这个命令 ...

tty应该稳定些  而且自动补全的命令感觉很好用啊,它的桌面我倒有点不适应,所以想先补充下tty的用法···
Reply View the author
avatar
ddb_01
deepin
2016-01-15 01:49
#10
本帖最后由 ddb_01 于 2016-1-16 09:52 编辑
https://bbs.deepin.org/post/36044
怎么安装 在桌面环境下安装吗

在哪安装无所谓。安装好后,需要手动在tty中执行 fbterm。
安装:
        通过官方软件仓库安装fbterm
  1. sudo apt-get install fbterm
Copy the Code

若想使用非根用户运行fbterm,需要把用户加入video组:
  1. sudo gpasswd -a YOUR_USERNAME video
Copy the Code

若想非根用户可使用键盘快捷方式,需要:
  1. sudo chmod u+s /usr/bin/fbterm
Copy the Code

fcitx输入法框架:(如果只是想显示中文,没有输入法方面的需求,可以不用安装)
        安装fcitx-frontend-fbterm(这里假定系统已经安装了fcitx,如果没有安装,需要同时安装fcitx)
  1. sudo apt-get install fcitx-frontend-fbterm
Copy the Code
       修改~/.fbtermrc:
        找到“input-method=”这一行,修改为 input-method=fcitx-fbterm 。
        这样就能在fbterm中启用fcitx输入法框架。
Reply View the author
avatar
MattD
deepin
2016-01-15 01:55
#11
一劳永逸的做法就是替换掉agetty
Reply View the author
avatar
ghostry
deepin
2016-01-15 02:26
#12
https://bbs.deepin.org/post/36044
tty应该稳定些  而且自动补全的命令感觉很好用啊,它的桌面我倒有点不适应,所以想先补充下tty的用法·· ...

11楼写的很好。。

如果只是为了自动补全,模拟终端也可以的。稳定都差不多。
自动补全用bash-completion

  1. # enable bash completion in interactive shells
  2. if ! shopt -oq posix; then
  3.   if [ -f /usr/share/bash-completion/bash_completion ]; then
  4.     . /usr/share/bash-completion/bash_completion
  5.   elif [ -f /etc/bash_completion ]; then
  6.     . /etc/bash_completion
  7.   fi
  8. fi
Copy the Code
Reply View the author
avatar
136******54
deepin
2016-01-15 03:47
#13
https://bbs.deepin.org/post/36044
这太难为新手了啊 没有手把手的说明啊

你既然选择了用tty,就不要想着一切都是简单的
Reply View the author
avatar
dream_baul
deepin
2016-01-15 20:50
#14
https://bbs.deepin.org/post/36044
在哪安装无所谓。安装好后,需要手动在tty中执行 fbterm。
安装:
        通过官方软件仓库安装fbterm

十分感谢,很详细,我回去试试看。
Reply View the author
avatar
SnDream
deepin
2016-01-15 21:51
#15
平时没有什么要求的话,直接用深度终端就是,没必要一定用tty。
Reply View the author
avatar
dream_baul
deepin
2016-01-15 23:08
#16
https://bbs.deepin.org/post/36044
平时没有什么要求的话,直接用深度终端就是,没必要一定用tty。

可是 tty与桌面的切换很流畅, 比桌面上开终端的操作要快很多,不存在卡顿的感觉
Reply View the author
avatar
dream_baul
deepin
2016-01-16 06:47
#17
https://bbs.deepin.org/post/36044
在哪安装无所谓。安装好后,需要手动在tty中执行 fbterm。
安装:
        通过官方软件仓库安装fbterm

没找到f.btermrc这个文件啊
Reply View the author
avatar
ddb_01
deepin
2016-01-16 06:52
#18
https://bbs.deepin.org/post/36044
没找到f.btermrc这个文件啊

先运行一下fbterm再退出,就有了。“.”开头的文件默认是隐藏的,可以按快捷键ctrl + h 显示。
Reply View the author
avatar
dream_baul
deepin
2016-01-16 08:01
#19
https://bbs.deepin.org/post/36044
先运行一下fbterm再退出,就有了。“.”开头的文件默认是隐藏的,可以按快捷键ctrl + h 显示。 ...

终于弄好了 十分感谢,最后一个问题  修改~/.fbtermrc 为input-method=fcitx-fbterm的作用是什么,貌似我没修改  也没有出现乱码了
Reply View the author
avatar
ddb_01
deepin
2016-01-16 17:46
#20
https://bbs.deepin.org/post/36044
终于弄好了 十分感谢,最后一个问题  修改~/.fbtermrc 为input-method=fcitx-fbterm的作用是什么,貌似我 ...

这个没说清楚,是修改.fbterm文件中的“input-method=”这一行,改为input-method=fcitx-fbterm。这样就能在fbterm中使用fcitx输入法框架。
Reply View the author
1 / 2
To page