Because I didn't touch Linux for a long time, I had no way to answer at once, I found some information to see it, I decided to do the following notes. First there are several related articles: Linux startup process Summary How to implement automatic landing Linuxlinux system Automatic Job Control 1. The easiest way to modify the /etc/rc.d/rc.local file (this method is to automatically run without login) 2. There is also a user directory for different users. .bashrc files can automatically run some scripts when the user logs in (remember / etc, there is a .bashrc file, you can automate some scripts after the modification) 3. There is also a good method, Do a RC startup script belonging to your own.