Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Autostart on DSL2024?
#1
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)