How to add startup items in Ubuntu?

To add a startup item, you can follow these steps:

  1. Open the terminal and input the following command to edit the boot entry list:
sudo nano /etc/rc.local
  1. In the open file, you can add commands or scripts that need to be executed. For example, if you want to run a script file during startup, you can add the following content:
/path/to/your/script.sh
  1. After editing is complete, press Ctrl + X, then press the Y key to confirm saving, and finally press Enter to exit the editor.
  2. Finally, enter the following command to apply the changes:
sudo chmod +x /etc/rc.local

Now, your Ubuntu system will automatically run the startup items you have added during boot.

Leave a Reply 0

Your email address will not be published. Required fields are marked *


广告
Closing in 10 seconds
bannerAds