Ubuntu knowledge: wangda Xiaoyu speaks Tang Poetry

Source: Internet
Author: User
There are wangda fish in Ubuntu. When you click it, there will be some playful words, slang and so on. However, the system comes with English language. It is not easy for Chinese to understand the meaning of these words. Fortunately, there is a fortune-zh, which is a Chinese classical poetry, which suits our taste. By default, the system is generally not installed, so you need to install it yourself: sudoapt-getinstallfortune-zh, it is not very good, because those

There are wangda fish in Ubuntu. When you click it, there will be some playful words, slang and so on. However, the system comes with English language. It is not easy for Chinese to understand the meaning of these words.

Fortunately, there is a fortune-zh, which is a Chinese classical poetry, which suits our taste. By default, the system is generally not installed, so you need to install it yourself:

Sudo apt-get install fortune-zh

After the installation, I still feel uncomfortable, because the English content will continue to be displayed. There are two ways to show only Chinese sentences.

First, delete an English data file.

These sentences all exist in some files. The files are in the/usr/share/games/fortunes directory. We can check them in this directory and there will be many files. The Chinese content we want is included in these six files:

Tang300 tang300.dat tang300.u8 song100 song100.dat song100.u8

You can delete other files or move them to another directory.

Then run fortune, and the sentences are all Chinese poems.

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.