Ubuntu14.04 Chinese Input in Terminal Mode

Source: Internet
Author: User
Start the X mode of Ubuntu14.04-Chinese Input in Terminal Mode, listen to songs, and enable framebuffer to watch movies on irc. First, Kaka is all about operations in tty1, watching movies, listening to songs, looking at pictures, going to irc, etc. It is quite suitable to put a fart in front of Tom! Software to be installed: In order to display Chinese characters properly: Install fbtermsudoapt-getinstallfbterm because ubun

Start the X mode of Ubuntu 14.04-input Chinese Characters in Terminal Mode, listen to songs, and enable framebuffer to watch movies on irc.

First

Kaka is all about operations in tty1, watching movies, listening to songs, looking at pictures, going to irc, etc. It is quite suitable for playing fart in front of Tom!

Software to be installed:

To display Chinese characters properly: Install fbterm

sudo apt-get install fbterm

Because framebuffer of ubuntu 14.04 is enabled by default, please check (ls/proc/| grep fb), so no other configuration is required,

You only need to add the user to the video group. Otherwise, the following error occurs: "cann' t open frame buffer device! "

sudo usermod -a -G video username

Note that sudo usermod-a-G video username must not be missing-a. This is an append. If-a is not available, you will suffer. After you restart, you will not be able to log on to the system, don't ask me how to know,

Go to Baidu's spam tutorial.

After fbterm is installed, the input method needs to be installed. I use fcitx

Installation:

sudo apt-get install  fcitx-frontend-fbterm

Modify permissions:

sudo chmod u+s `which fbterm`

In this step, it is okay to display Chinese and Chinese Input. Note that if you want to use fcitx by default under fbterm, set the Default Input Method to fcitx.

Otherwise, you need to edit: $ HOME/. fbtermrc, but I have not tried to edit this file directly.

We can simply write a script and modify. bashrc to make the operation more convenient.

Show the Quick Start script for creating fbterm:

Linuxidc @ ubuntu :~ $ Cd/usr/local/bin/
Linuxidc @ ubuntu:/usr/local/bin $ sudo gedit zhterm

Add the following content:

# Export DISPLAY =: 0
# Fcitx-d
# Fcitx-fbterm-helper
Eval 'launch-launch -- auto-syntax'
Fcitx>/dev/null 2> & 1
Fbterm-I fcitx-fbterm

Save and authorize:

sudo chmod 755 zhterm

Next, modify $ HOME/. bashrc.

Join:

#fbterm[[ $(tty) == \/dev\/tty[0-9]* ]]&&zhterm

After OK is saved, Ctrl + Alt + F1 will automatically enter fbterm mode after logging on to tty1:

Fbterm installation I reference: http://www.linuxidc.com/Linux/2015-01/111976.htm

If you feel that the fbterm font is too ugly, Please modify $ HOME/. fbtermrc according to your requirements.

Next, let's talk about watching movies, watching movies, and of course using the mplayer.

sudo apt-get install mplayer 

Input in fbterm Mode

mplayer -vo fbdev2 xx.avi  

You can watch a movie. Note that the output device is fbdev2.

Mocp recommended for music tools

sudo apt-get install moc

Configuration:

You can edit $ HOME/. moc/config without creating a new one to solve the garbled problem.

Join:

XTermTheme = transparent-backgroundReadTags = no

Mocp startup

If an error is reported during startup, execute:

cd $HOME/.moc/sudo chmod 755  config

 

Fbgrab recommended for tools

sudo apt-get install fbcat

No special configuration is required for fbgrab XX.png.

Tmux recommended for split screen Software

sudo apt-get install tmux 

For more information, see man tmux.

The above mocp mplayer fbgrab must be executed under fbterm to start the expected results.

But there is also an alternative, that is, the graphic software fbi

Install

sudo apt-get install fbi

You must exit the fbterm mode when looking at the figure; otherwise, the following error occurs:

Using "Droid Sans Fallback-16", pixelsize = 16.67 file =/usr/share/fonts/truetype/droid/DroidSansFallbackFull. ttf
Ioctl VT_GETSTATE: The ioctl operation that is not appropriate for the device (not a linux console ?)

Let's end with irc.

Install

sudo apt-get install irssi

There are a lot of irc commands on the Internet.

Introduce a technique,

Edit $ HOME/. bashrc

Add the following content:

#ircalias irc='irssi -c irc.freenode.net -p 6666 -n username'

Replace username with your name.

This is the end of a useless nonsense article. Please leave a message if you have any questions.

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-01/111975.htm

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.