Article Title: automatically execute applications after logging on to Linux. 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 example describes how to automatically run the program after logging on to the system, such as QQ in windows.
This example automatically runs the EVA Application After logging on to the system.
In fact, this instance is quite simple, as long as you know what script files it needs to execute after logging on to the system. Which scripts are run after the system logs on?
The answer is: The. bash_profile and bashrc script files under the root directory, while bash_profile is the first to be executed. Therefore, you only need to add the following statement under this script:
[Root @ localhost ~] # Vim ~ /. Bash_profile
The added content is:
Export DISPLAY =: 0 & eva &
Save and exit.
Finally, restart the system.