Ubuntu tips: View "one sentence per day" during login"

Source: Internet
Author: User
Welcome to the Linux community forum and interact with 2 million technicians in the Unix era. When you log on, a highlighted "one sentence per day" appears, although it may be very useful, but it is also very interesting. This can be easily done In Ubuntu. To display the "one sentence per day" on the command line, perform the following steps: 1. enable the new installation of s.

Welcome to the Linux community forum and interact with 2 million technicians> in the Unix era, when you log on, a highlighted "one sentence per day" appears ", although it may be very practical, it is also very interesting. This can be easily done In Ubuntu. To display the "one sentence per day" on the command line, perform the following steps: 1. enable the new installation of s.

Welcome to the Linux community forum and interact with 2 million technicians>

In the Unix era, when you log on, a highlighted "one sentence per day" will appear. Although it may be very practical, it is also very interesting. This can be easily done In Ubuntu.


Display "one sentence per day" on the command line"

The procedure is as follows:

1. enable the new version to install signify. This is a very simple program that displays the content in a text file. Signify is designed to use the Email signature service, but it is not necessary.

2. After the installation is complete, create a file named ". signify" in the HOME directory. Enter the content you need in the file. There are a lot of sites on the network that raise the "daily sentence" content, I especially recommend http://coolsig.com.

However, many websites have some "sexual suggestion" content, so you can choose to copy/paste some content to. signify. In addition, if you pay special attention to the % and $ symbols, they will disrupt your display.

3. Open Gedit and copy/paste some content to the newly created document. Add a line at the top of the document and type % {in this line {. Add "% |" after each entry ". Add "%}" at the end of the file }". Each entry can span multiple rows.

The following is an example:

% {

A fanatic is one who can't change his mind and won't change?

Subject.

-- Winston Churchill

% |

All the people like us are We, and everyone else is They.

-- Rudyard Kipling

% |

Now is the time for all good men to come to the aid of the party.

% |

And therefore as a stranger give it welcome.

There are more things in heaven and earth, Horatio,

Than are dreamt of in your philosophy.

Hamlet (Act 1, scene 5)

%}

4. Open the. bashrc file in the HOME directory. After adding the file, enter. signify and save the file.


Each time you log on or open a new terminal window, your "daily sentence" entries are automatically displayed.


When you log on to the desktop, the "daily sentence" is displayed"

If you like to display "one sentence per day" when logging on to the desktop, you must create a script file and make it run automatically every time. Before you start, make sure that the. signify file is created according to the previous section.

1. Create a file in the HOME directory named. quod. edit the file in gedit as follows:

Zenity -- info -- title "daily sentence" -- text "$ (signify )"

2. Save the file. Open the terminal to ensure that the. quod file can be executed:

Chmod + x. quod

3. Open "System"-"Preferences"-"session", click "add", and enter "quote of the day" in the "name" input box ", in the "command" input box, enter "/home/usrname /. quod ", where username is your login user name. Close the window and log on again to see the effect.


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.