- 1. Chinese garbled problem.
This problem is long-standing, every time I look at the Mount to Linux under the Windows Chinese directory, is a bunch of garbled, Putty also refused me to enter Chinese, In a word, this thing is allergic to Chinese.
How to resolve:
1.1 Modify the environment variables for Linux .
|
[[email protected] arm] #vi/etc/sysconfig/i18n |
Modify the lang=zh_cn. GBK changed to LANG=ZH_CN. UTF-8
|
[[email protected] arm] #source/etc/sysconfig/i18n |
PS: Here we use the UTF-8 encoding method.
1.2 modifying Putty window>translation>received data assumed to being in which character set
Select UTF-8
1.3 Don't forget to save.
Save to sessions . The next use will not change.
OK. Three simple steps to solve the Chinese problem:
|
[[email protected] ztl]# incorrect option : ambiwidth= incorrect option : Ambiwidth=double
bash: incorrect option :: Command not found
[[email protected] ztl]# incorrect option : Ambiwidth=double
bash: incorrect option :: Command not found
[Email protected] ztl]# VI/ROOT/.VIMRC
An error occurred while processing /ROOT/.VIMRC :
Line :
Incorrect option : Ambiwidth=double
[Email protected] ztl]#
[Email protected] ztl]# VI/ROOT/.VIMRC
|
See, can display Chinese correctly.
can correctly input Chinese, and display Chinese catalogue correctly.
- 2. putty font settings.
2.1 searched the internet for most of the day, found a good font : Microsoft ya Black font:
Http://img.namipan.com/downfile/7c74a6406da9968cc126d6d33b4e4d11536ef7fbfd177a00/Consolas%e5%ad%97%e4%bd%93%e9 %9b%85%e9%bb%91%e6%b7%b7%e5%90%88%e7%89%88yahei.consolas.1.11b.rar
But the above connection is the download connection of the Nano robot. You Google a bit "Consolas Black mixed Version" a lot of.
After downloading, copy to c:\WINDOWS\Fonts below.
2.2 Select the putty font:
Window>font Settings>change
Select Consolas to
- 3. Vim configuration:
Vim Configuration, I have been directly from the Internet test a paragraph down.
Http://www.renseng.com/learning/super-vim-configuration-file-be-updated.html
The main reference to this , I will not be sent here.
Copy the above files and save them as /ROOT/.VIMRC .
- 4. PS1 settings
|
Export ps1= "\[\e]0;\u \w\a\]\[\033[01;32m\][\u]\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$" |
- 5. Final effect:
6
. Reference Documents
PuTTY Chinese Course
http://chaifeng.com/blog/2007/06/putty_200611.html#_582484557233528
Microsoft Official Ya Black font Windows XP version with Consolas Black hybrid version suitable for programming font download
Http://www.iplaysoft.com/consolas.html
The beautification of Putty