Page 1 of 1

Autostart program without login

Posted: 12 Feb 2020, 12:33
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

Re: Autostart program without login

Posted: 14 Feb 2020, 11:58
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