startup
linux startup
Adding commands at startup
In Debian GNU/Linux 9.12 (stretch) with xfce I have tried several ways to add a script after login and unlocking screen and none of them has worked. It seems adding a .desktop
file on ~/.config/autostart/
should work. But even doing that by xfce "Session and startup" interface and having sure that the script is runnable is did not worked in any situation (unlocking, login and even startup). What really works is by /etc/init.d/
that I did as follows:
Write a script placing it at /etc/init.d/
Make it executable
Test it on start and on stop
Add the script on startup
To remove it from startup just run $ sudo update-rc.d -f myautostart remove
Source: stuffaboutcode.com
Last updated
Was this helpful?