Automatic Blynk Server Bootup on Raspberry Pi

Hi there,

I am a newbie to Blynk, Raspberry Pi etc. I have successfully got Blynk server working on a pi I have. I am using it to control an Arduino Uno with ethernet shield with my android phone. Both are connected to my home wireless router. I can control led lights etc from my android phone with this app. Very happy so far.

I’m struggling with getting Blynk to start up automatically when I power up the rpi. I have found the following instructions from browsing the forum here:

3.6) Optionally enable server start when the rpi boots up.
find and open the file entitled “rc.local” within /home/pi/etc/init.d/
Then add the linejava -jar /home/pi/server-0.11.4.jar -dataFolder /home/pi/Blynk &
(Or in case above approach doesn’t work for you, executecrontab -e add the following line @reboot java -jar /home/pi/server-0.11.4.jar -dataFolder /home/pi/Blynk &)
Save and close the file.

Can anyone give me even simpler instructions to do this?? I have tried to find the file rc.local and it says it doesn’t exist. Also, the directory /home/pi/etc/init.d/ doesnt exist?

Please help :smiley:

sincerely noob

also, if I close the LXTerminal the Blynk server stops working. Note: I am running PuTTy and XMing to control the Raspberry Pi

Hello. Please read docs before asking questions. Here is doc with 2 ways for doing this.

You will find the editable rc.local file within /etc/init.d directory, not home/pi/etc/init.d.

So, start by getting to /etc, then you will find it. Then edit the rc.local file as instructed and all should be well.I use Bitvise with my pi, and double clicking a text file will bring up your windows text editor making life easier.

Thanks Roffey you are a champion!