Purpose: Modify the font size under TTY terminal, Chinese display, font aesthetics problem
Linux version: xubuntu14.04
When switching to TTY terminal mode, Chinese characters are garbled and the fonts are too small to affect reading. Searched the internet for some information and recorded the problem and solution as follows.
The tool used is fbterm
1, install Fbterm
2,fbterm use Help, fbterm configuration file for ~/.FBTERMRC files in home directory
3, root permission must be used to start fbterm
Note: This is only for commands, Fbterm can only be started in a TTY environment.
4, followed by a problem is that the font is larger, but the default font display is missing, because it is a TTY environment, such as the letter m, the effect is to look like N, that is, the right side of a vertical has not, greatly affect the coding mood. The workaround is as follows.
5. Modify the configuration file ~/.fbterm
Default
After modification
6, support for virtual terminal, similar to Byobu
Ctrl Alt C: Create a new virtual terminal
Ctrl Alt D: Exiting the current virtual terminal
Shift left: Move to the previous virtual terminal
Shift right: Move to the next virtual terminal
Ctrl Alt number N: Move to nth virtual terminal
In addition, there is the ability to turn pages:
SHITF PAGE UP: Paging up
SHITF PAGE DOWN: Page Down
7,q&a
1. Why didn't I/dev/fb this file?
First you need to correctly enable Framebuffer support in the kernel, this is not within the scope of this article, Google can find out the detailed configuration method.
If you have enabled Framebuffer or do not have this file, then you can look at the grub has not been added to the correct VGA parameters, if there is/dev/fb0 this file, then build a link/dev/fb-/dev/fb0 on it.
2. Why is fbterm still unable to display Chinese?
First to see whether the ~/.FBTERMRC in the correct configuration of the Chinese font, but also do not forget to set the terminal Locale character set to UTF-8, you can try to export lc_all= "ZH_CN. UTF-8 "Add to your ~/.BASHRC.
Ubuntu TTY Fonts