Use raspi-config command
sudo raspi-config
In menu choose:
Boot options -> Desktop / CLI -> Console autologin
After reboot, prepare script:
chmod +x script.sh
Setup startup script:
nano /home/pi/.bashrc
Type:
/home/script.sh
Reboot device
sudo reboot
Now is your autorun script ready.
Komentáře