April 2, 2021
Start a Program on Startup in Linux
the crontab way
as user
crontab -e
- write
@reboot python /path/to/your/script.py
and save
as root
crontab -e
- write
@reboot python /path/to/your/script.py
and save
the rc.local way
sudo su
nano /etc/rc.local
- write
python /path/to/your/script.py
at the bottom and save
the systemd way
- todo