I’m getting a Raspberry Pi 2 also to run a server locally. Is there a step by step manual to do so to complement the instructions posted here? https://github.com/blynkkk/blynk-server
Like:
1-Get the NOOB software onto a SD card;
2-Install Raspbian software
3-Install / update java
4-…?
Now were to put the server.jar file? In the sd card? Which folder? And should I use a ssh terminal to run the server (putty, lxterminal…)?
Create one new file in pi and add the command “sudo ./blynk --token= mytoken” as its contents. Then make it executable by using command “chmod 755 filename”. Finally open bashrc using command “sudo nano .bashrc” and go to last and add “./filename” where filename is the newly created executable file. Its working for me. Hope it works for you as well.
Could you do it like this? sudo nano superscript
then save it: Ctrl + X, Y, Enter
Open the .bashrc sudo nano .bashrc
Scroll down to the bottom and put: ./superscript
Then save it: Ctrl + X, Y, Enter
And you’re done!
You can also use blynkstartup or other names instead of “superscript”
There also can be some permission issues, I solved it with this.
Hope it’s gonna work for ya! Source