0

Can anyone please help me to run a simple python script at start up? (for eg. let the script print hello) please explain me step by step,,,starting from basic steps!

I tried many examples using init.d & rc.local but not worked... may be I had gone wrong! so be precise,clear,step by step starting from basic step!

sachin
  • 1
  • 1

1 Answers1

0
sudo bash

create a file in /etc/init.d name it like vncboot.sh

sudo nano /etc/init.d/vncboot.sh

then

chmod 755 /etc/init.d/vncboot

then

update-rc.d /etc/init.d/vncboot defaults

if it says

update-rc.d: error: unable to read /etc/init.d//etc/init.d/vncboot

use

update-rc.d vncboot defaults

source: http://elinux.org/RPi_VNC_Server#Instructions | section: run at boot