Ubuntu使用fbterm無法開啟fb裝置的解決及fcitx-fbterm安裝

來源:互聯網
上載者:User

Ubuntu使用fbterm無法開啟fb裝置的解決及fcitx-fbterm安裝

"Ubuntu 12.04.1 LTS" fbterm can't open frame buffer device 的解決 及fcitx-fbterm的安裝

1.修改grub2檔案

/etc/default/grub

添加

GRUB_GFXMODE=1280x800x32
GRUB_GFXPAYLOAD_LINUX=keep

不加不知道行不行,反正我加了

sudo  grub-mkconfig
sudo reboot
2.加入video組


sudo usermod -a -G video username

3.安裝fcitx-fbterm
sudo apt-get install fcitx-frontend-fbterm
sudo chmod u+s `which fbterm`

配置系統使用fctix為IME,也就是啟動管理器啟動的時候就啟動fcitx

4.建立指令碼zhterm
內容:
-----------------
export DISPLAY=:0
fcitx-fbterm-helper
--------------------
並sudo  chmod a+x /path/to/zhterm
ln到/usr/bin下


5reboot
在啟動管理器上登入
ctrl+alt+f1
切換到終端下
就可以用zhterm啟動中文的文本終端了

問題:有點畫蛇添足,既然能進x,幹嘛還要fbterm呢??!!

不過進不了X的時候,fbterm還是能用的,能顯示中文但沒辦法輸入。
用fbterm啟動
-----------------------------------------------------------------------------------------------

修改zhterm為
bkjia@PCUnity:~$ cat ~/bin/zhterm

#export DISPLAY=:0
#fcitx -d
#fcitx-fbterm-helper
eval `dbus-launch --auto-syntax`
fcitx > /dev/null 2>&1 # 不顯示標準輸出
fbterm -i fcitx-fbterm
bkjia@PCUnity:~$
這樣就可以了,就可以沒有一個X中的fcitx了。
-------------------------------------------------------------------------------------------
到此問題解決

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.