Run Programs Automatically on Linux (esp Raspberry Pi)

Server Daemons

The Greeks considered daemons to be spirits that work in the background, so that’s why daemons are called daemons.

systemd

/etc/rc.local

is deprecated according to ChatGPT.

Graphical Applications

Using a desktop file in the autostart folder.

lxde?

If running a version with desktop GUI, put the desktop file for the program you want to auto-start in:

~/.config/autostart

Short-Run Programs that Run Regularly

Crontab (everything with crontab can be done with systemd, but easier with crontab.