08-30-2024, 05:30 PM
Hi, I'm relatively new to Linux but got everything working so far
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 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
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 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