I add one line to /etc/rc.local:
sudo python /home/pi/web/xxx.py
then restart the system. Unfortunately, I am never able to ping successfully the device! Moreover, I could not ssh to the device to see any log on the system...
Anyone help me?
I add one line to /etc/rc.local:
sudo python /home/pi/web/xxx.py
then restart the system. Unfortunately, I am never able to ping successfully the device! Moreover, I could not ssh to the device to see any log on the system...
Anyone help me?
From another Linux pc try to mount your SD and edit the /etc/rc.local.
If the other pc doesn't have a SD slot, use a universal memory reader.
Take into account that the /etc/rc.local must exit with the status error 0. And maybe your python script is failing and exiting with a different status error value.
By the way, your /home/pi/web/xxx.py script should be exacuted by the pi user, so your /etc/rc.local should have some like this:
sudo -u pi python /home/pi/web/xxx.py
exit 0
I hope it helps you.
Regards!