Damn Small Linux Forums
Autostart on DSL2024? - Printable Version

+- Damn Small Linux Forums (https://damnsmalllinux.org/forums)
+-- Forum: Damn Small Linux Forum (https://damnsmalllinux.org/forums/forum-1.html)
+--- Forum: Help Section (https://damnsmalllinux.org/forums/forum-4.html)
+--- Thread: Autostart on DSL2024? (/thread-150.html)



Autostart on DSL2024? - clouds5 - 08-30-2024

Hi, I'm relatively new to Linux but got everything working so far Smile 

Is there a simple solution to autostart a program (like plex server)when I boot up the system? My goal is to sometimes shut the server down, but when I need I only want to press the button on the device and everything should start automatically.

I tried
- using systemd commands, but DSL doesn't use that? Should/can I install? 
- .config/autostart (the .desktop files work but they don't autostart
- crontab -e? No luck either.

[e] fixed
I made this more complicated than it needed to be Big Grin In the end it was actually very simple:
In /home there is a folder called /.desktop-session/ (maybe you have to use CTRL+H to make it visible) with a "startup" file. There you can add commands/scripts you want to execute after boot.
--> /home/.desktop-session/startup
I simply opened it, added my command at the end (I also added a "&" because all the other lines had it), saved and rebooted. Finally worked, after two evenings of looking for