Chinese characters garbled during SecureCRT login to Ubuntu9.10

Source: Internet
Author: User
1. Cancel the default dot matrix font cd/etc/fonts/conf In Ubuntu. dsudoln-sf .. /conf. avail/66-wqy-zenhei-sharp-no13px.conf66-wqy-zenhei-sharp.conf2. during initial installation of Ubuntu, sudoapt-getinstallvsftpdxinetdtelnetd without ftp/telnet needs to be set :/

1. Cancel the default dot matrix font of Ubuntu.
Cd/etc/fonts/conf. d
Sudo ln-sf ../conf. avail/66-wqy-zenhei-sharp-no13px.conf 66-wqy-zenhei-sharp.conf

2. There is no ftp/telnet for the initial installation of Ubuntu.

Sudo apt-get install vsftpd xinetd telnetd
Note the following line in the/etc/vsftpd. conf file: local_enable = YES. You can use a linux user to log on to ftp (otherwise, you can only log on anonymously ).
There is another problem. In FTP put, it seems that the put fails due to permission issues, and the attempt to root login also fails. The reason is not found yet. I will study it later.

3. su-root
After Ubuntu is installed for the first time, it cannot log on to the root user by default. At this time, you can run the following command to modify the root password to su-root.

Sudo passwd root

4. New Fonts
Upload the font file to the/home/. fonts directory and execute the following command to refresh the font cache. Then you can use the new font.

Fc-cache-fv
Sudo is not sudo. In addition, we recommend that you change the font permission to 755 for other users to read.


5. The last one is also the title of this article. It is also a problem that bothers me for one night. In SecureCRT login found Chinese garbled problem, tried some ways on the Internet, the encoding to change the UTF-8 GBK are problematic, and finally found the original font character set is also related, now I want to organize the changes as follows.


(1) Add a line in the/var/lib/locales/supported. d/local file: zh_CN.UTF-8 UTF-8, execute sudo locale-gen to download the file
(2) Add two lines in/etc/environment: LANG = "zh_CN.UTF-8" and LC_ALL = "zh_CN.UTF-8"
(3 )~ /. Add two lines in profile: export LANG = "zh_CN.UTF-8" and export LC_ALL = "zh_CN.UTF-8", execute. profile
(4) In SecureCRT, select the terminal type as Linux, select the Encoding As UTF-8, the most important is to select a font that supports the GB2312 character set. Because my commonly used Monaco fonts are not supported, I have to give up. I can find a "YaHei Mono" on the Internet to display it normally, although it does not look as good as Monaco, but I am still getting used to it. (remember to use a Yahei console font in netbeans to design my graduation project in college.) For details, see here.

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.