How to Set Automatic startup for Linux applications

Source: Internet
Author: User
Article Title: how to set Automatic startup of a Linux application at startup. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source. This article will detail how to automatically run applications when logging on to Linux, it is the same as setting up auto-start QQ in windows.
This article will take: After logging on to the system, automatically run the QQ application as an example. This article is based on your installation of Linux QQ. If it is not installed, you can use another application experiment.
I. How to set Automatic startup for Linux applications
The specific method is as follows:
Open a terminal and enter
[Root @ qinglemon (it.dengchao.org) ~] # Vi ~ /. Bash_profile press the "I" key on the keyboard to move the cursor to the end of the text and enter the following statement:
After entering export DISPLAY =: 0 & QQ &, press the "ESC" key in the upper left corner of the keyboard, and then press "Shift" and add ":" (the colon key on the keyboard ), A colon is displayed at the bottom of the cursor.
If a colon exists, "wp" is output (excluding the semicolon ).
Okay. Shut down the terminal and restart the system. Linux QQ will automatically start.
Ii. Summary
Linux root directory. Script files such as bash_profile and bashrc will be executed when the system starts, while bash_profile is the first to be executed. Therefore, you only need to add the following statement to the script to enable the application to automatically start upon startup.

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.