Use the terminal command line to access the Internet and display Chinese Characters in Ubuntu

Source: Internet
Author: User

Step 1: Install a software tool named w3m. Open the terminal and enter the following command:

Sudo apt-Get install WM w3m-img-y

Step 2: After w3m is installed, start w3m on the terminal and open a website, such as w3m www.baidu.com. Have you seen the Baidu homepage that can only be viewed under the browser?

If your terminal does not display Chinese characters, please. Install zhcon. Installation command:

Sudo apt-Get install zhcon-y

Okay. The following is a w3m help file.

Similar to common Vim commands, H, J, K, and l can be used as the moving keys, respectively, left, bottom, top, and right. If you are familiar with vim operations, this will be a very convenient function. <And> used for left and right scrolling.

Press Q and you will be prompted to exit!

Press enter in the text box to be entered, and text is displayed below. You can enter the text you want to search. Press enter to return to the text box. Move the cursor to the "Baidu search" button and press enter to start searching!

Use u to re-enter the URL to be opened.

B returns to the previous page.

Multiple tag operations!

You can press the T button to open a new tag.

Switch among multiple tags? Use {And!

If you use ESC-t, the tab menu will be opened for you to choose from. The function is similar to the alt-tab function in the system.

C-Q is used to view the current tab.

Bookmarks

C-A add bookmarks

C-B view bookmarks

Search

/Search for the current page.

? Search for the current page

N search for the next searched keyword

N search for the searched keywords forward

Help

H and above options can be seen here!

To display Chinese Characters in TT1:

After Ubuntu is installed, the Chinese characters in the command line are not displayed. I have read a lot of similar information on the Internet, and my operation steps are like this.

Connect your computer to the Internet to ensure that you can connect to Inetrnet. View the display in the ETC/default/locale file

Lang = "zh_cn.utf8"

Language = "zh_cn: ZH"

The above default language is Chinese

Switch to the command line (CTRL + alf + F1) and enter the user name and password to log in. If the user is the current user, enter the command:

Sudo apt-Get install zhcon

Enter the password to download the file, and there is another confirmation. The download speed varies with time.

After that, change the encoding parameter of zhcon to utf8 and enter the command: zhcon -- utf8-Dev = VGA.

The command I entered above is invalid. Just enter the following command.

Zhcon -- utf8

Now, let's see if Chinese is displayed!

Press Ctrl + alf + space to start the Chinese Pinyin input method.

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.