Autostart program without login

Topics about the Software of Revolution Pi
Post Reply
AvL
Posts: 2
Joined: 10 Dec 2018, 12:20

Autostart program without login

Post by AvL »

Hi there

I have made a file (sudo nano lxterm-autostart.desktop) in folder (cd ~/.config/autostart)
I have put in the rows

[Desktop Entry]
Encoding=UTF-8
Name=Terminal autostart
Comment=Start a terminal and list directory
Exec=lxterminal --command sudo ./Micronics

The program starts only afther login, how can i start the program without login?

Greetings
User avatar
dirk
KUNBUS
Posts: 2174
Joined: 15 Dec 2016, 13:19

Re: Autostart program without login

Post by dirk »

Hi AvL, the quick and dirty way is to put your executable in the "/etc/rc.local" file. The better is to use a systemd daemon. Have a look here: https://www.raspberrypi.org/documentati ... systemd.md
Post Reply