Ubuntu 12.04 使用虚拟控制台fberm,显示并可输入中文

系统字体配置、中文显示和输入法问题
头像
wang153723482
帖子: 19
注册时间: 2011-06-13 9:56

Re: Ubuntu 12.04 使用虚拟控制台fberm,显示并可输入中文

#16

帖子 wang153723482 » 2012-08-10 12:57

在控制台里输入中文是一件十分蛋疼的事情
可以不用中文尽量不用,写的一些脚本的注释用蹩脚的英文哪怕用拼音都不想用中文。
---人在做,天在看.
头像
南宁仔
帖子: 220
注册时间: 2011-07-06 9:29
来自: 南宁
联系:

Re: Ubuntu 12.04 使用虚拟控制台fberm,显示并可输入中文

#17

帖子 南宁仔 » 2012-08-11 20:00

图片
如图,我现在进入控制台就成了这样,什么情况啊?
午夜留聲機,唱起誰的歌......
Midnight Gramophone...
funicorn
帖子: 1318
注册时间: 2005-09-13 4:56
系统: Ubuntu Jammy Jellyfi

Re: Ubuntu 12.04 使用虚拟控制台fberm,显示并可输入中文

#18

帖子 funicorn » 2012-08-13 16:33

如果在没有X的shell中,那么先要杀死随桌面环境启动而未能启动(因为没有X)的fcitx

代码: 全选

killall fcitx 
然后运行

代码: 全选

fcitx-fbterm-helper -l
就可以了,你看到的信息是fcitx启动但是找不到X而出现的错误。

使用-l参数会自动启动一个新的fcitx进程。
draic
帖子: 51
注册时间: 2008-04-19 12:50

Re: Ubuntu 12.04 使用虚拟控制台fberm,显示并可输入中文

#19

帖子 draic » 2012-10-04 20:55

楼主你好
我按照你说的方法安装设置好fbterm和fcitx后出现了问题
进入tty输入fbterm后中文显示正常,但是无法调用中文输入法
按ctrl-space显示
unable to autolaunch a dbus-daemon without a $DISPLAY for X11
输入

代码: 全选

fcitx-fbterm-helper
显示
Fcitx is not running, you may setup it manually
The easiest way is set $DISPLAY, start fcitx from X
Then try this helper
然后我按照提示说的输入

代码: 全选

set $DISPLAY
出来一大堆东西,还是不行

然后我输入

代码: 全选

killall fcitx
fcitx-fbterm-helper -l
显示

代码: 全选

……
stdin isn't a interactive tty!
你文章中提到的

代码: 全选

sudo setcap 'cap_sys_tty_config+ep' /usr/bin/fbterm
还有

代码: 全选

sudo chmod u+s /usr/bin/fbterm
我都试过,还是提示上面的错误

请问我该怎么办呢?

PS:我是intel核芯显卡,不知道是不是硬件不兼容?
funicorn
帖子: 1318
注册时间: 2005-09-13 4:56
系统: Ubuntu Jammy Jellyfi

Re: Ubuntu 12.04 使用虚拟控制台fberm,显示并可输入中文

#20

帖子 funicorn » 2012-10-04 21:09

我帖子里好像没说让输入
set $DISPLAY 吧

这样,你吧.bashrc里加进去的先去掉,把.fbtermrc 里面加进去的 input_method 内容也去掉,登录tty

env DISPLAY=:0 fcitx-fbterm-helper

看行不行
xuquanlei
帖子: 224
注册时间: 2011-09-17 9:23
系统: Arch-x86_64

Re: Ubuntu 12.04 使用虚拟控制台fberm,显示并可输入中文

#21

帖子 xuquanlei » 2012-10-04 21:46

果断mark之
draic
帖子: 51
注册时间: 2008-04-19 12:50

Re: Ubuntu 12.04 使用虚拟控制台fberm,显示并可输入中文

#22

帖子 draic » 2012-10-04 21:54

我帖子里好像没说让输入
set $DISPLAY 吧

这样,你吧.bashrc里加进去的先去掉,把.fbtermrc 里面加进去的 input_method 内容也去掉,登录tty

env DISPLAY=:0 fcitx-fbterm-helper

看行不行
我是在输入

代码: 全选

fcitx-fbterm-helper
后看到如下提示

代码: 全选

Fcitx is not running, you may setup it manually
The easiest way is set $DISPLAY, start fcitx from X
Then try this helper
才输入

代码: 全选

set $DISPLAY

我是linux菜鸟,呵呵
按你说的去掉
配置文件中加入的内容后登陆tty
输入

代码: 全选

env DISPLAY=:0 fcitx-fbterm-helper
OK!
funicorn
帖子: 1318
注册时间: 2005-09-13 4:56
系统: Ubuntu Jammy Jellyfi

Re: Ubuntu 12.04 使用虚拟控制台fberm,显示并可输入中文

#23

帖子 funicorn » 2012-10-05 4:30

那么你可以把它加回去了,之前写的时候我用的是编译的fcitx-fbterm一个较高版本,后来源里引入的是较旧的版本,必须指定env DISPLAY

env DISPLAY=:0 fcitx-fbterm-helper
draic
帖子: 51
注册时间: 2008-04-19 12:50

Re: Ubuntu 12.04 使用虚拟控制台fberm,显示并可输入中文

#24

帖子 draic » 2012-10-06 10:20

哦,明白,谢谢
a887722237
帖子: 5
注册时间: 2012-08-10 7:31

Re: Ubuntu 12.04 使用虚拟控制台fberm,显示并可输入中文

#25

帖子 a887722237 » 2012-11-09 16:15

请问楼主我在纯的shell之下用w3m是可以看到图片的,但是一道了fbterm就看不了了,请问是什么情况啊
funicorn
帖子: 1318
注册时间: 2005-09-13 4:56
系统: Ubuntu Jammy Jellyfi

Re: Ubuntu 12.04 使用虚拟控制台fberm,显示并可输入中文

#26

帖子 funicorn » 2012-11-09 17:10

这是w3m的问题,没办法
a887722237
帖子: 5
注册时间: 2012-08-10 7:31

Re: Ubuntu 12.04 使用虚拟控制台fberm,显示并可输入中文

#27

帖子 a887722237 » 2012-11-09 20:10

不是吧,这么蛋疼,有没有可以替代的浏览器呢,比如links什么的
alanfly
帖子: 334
注册时间: 2007-12-19 16:15

Re: Ubuntu 12.04 使用虚拟控制台fberm,显示并可输入中文

#28

帖子 alanfly » 2012-11-09 20:24

fbterm下看图正常。
w3m 0.5.3
fbterm 1.7.0
a887722237
帖子: 5
注册时间: 2012-08-10 7:31

Re: Ubuntu 12.04 使用虚拟控制台fberm,显示并可输入中文

#29

帖子 a887722237 » 2012-11-09 20:33

alanfly 写了:fbterm下看图正常。
w3m 0.5.3
fbterm 1.7.0
我的版本和你的一样,为什我就看不了呢?我用的是ubuntu12.10,刚才发现在unity的shell里面也看不了,只有最原始的tty可以看
alanfly
帖子: 334
注册时间: 2007-12-19 16:15

Re: Ubuntu 12.04 使用虚拟控制台fberm,显示并可输入中文

#30

帖子 alanfly » 2012-11-09 20:38

a887722237 写了:
alanfly 写了:fbterm下看图正常。
w3m 0.5.3
fbterm 1.7.0
我的版本和你的一样,为什我就看不了呢?我用的是ubuntu12.10,刚才发现在unity的shell里面也看不了,只有最原始的tty可以看
只是证明不是w3m和fbterm的问题,哪里设置不对我也不知道。
x下的终端xterm下w3m可以看图,terminal、guake看不了,其它的终端没试过。
回复