Set up Orange Pi Zero as Blynk Local Server

Change “pi” to your username

#Install Java Development Kit
sudo apt-get install default-jre

sudo apt-get install default-jdk

sudo apt-get install software-properties-common

sudo add-apt-repository "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main"

sudo apt-get update

sudo apt-get install oracle-java8-installer

sudo apt install oracle-java8-set-default

#Create a directory for the server called Blynk
mkdir /home/pi/Blynk

#Move into the working directory
cd Blynk

#Download the server
wget "https://github.com/blynkkk/blynk-server/releases/download/v0.23.1/server-0.23.1.jar"

#Generate self-signed certificates
openssl req -x509 -nodes -days 1825 -newkey rsa:2048 -keyout server.key -out server.crt

#Convert key to pem
openssl pkcs8 -topk8 -inform PEM -outform PEM -in server.key -out server.pem

#Copy the contents from the site given below
https://raw.githubusercontent.com/blynkkk/blynk-server/master/server/core/src/main/resources/server.properties
#and paste it in
sudo nano server.properties

#Change the following lines
server.ssl.cert=./server.crt
server.ssl.key=./server.pem
server.ssl.key.pass=PASSWORD_USED_IN_ABOVE_STEP

#Copy the contents from the site
https://raw.githubusercontent.com/blynkkk/blynk-server/master/server/notifications/email/src/main/resources/mail.properties

#and paste it in
sudo nano mail.properties

#Set Gmail id and password. If you are using two step verification, generate app specific password from google account.

cd ..

#For Autostart on reboot
sudo nano /etc/rc.local

Add the following command mentioned before “exit”

java -jar /home/pi/Blynk/server-0.23.1.jar -dataFolder /home/pi/Blynk -serverConfig /home/pi/Blynk/server.properties -mailConfig /home/pi/Blynk/mail.properties &

#Now You can start the server
java -jar /home/pi/Blynk/server-0.23.1.jar -dataFolder /home/pi/Blynk -serverConfig /home/pi/Blynk/server.properties -mailConfig /home/pi/Blynk/mail.properties

5 Likes

@shivasiddharth nice clear video, thanks for sharing.

Video and text, you are my hero! (I hate video’s, I love text LOL).

Hi shivasiddharth,

Is this guide still applicable to version 0.26.1 of the server?

I have followed exactly (except for downloading the latested server) but I cannot login to the admin web page, upon hitting login (with correct credentials) the page just refreshes with no errors or warnings (just cleared username and password fields.

Thanks

Check out the new “admin account” change, made around the same time frame.

I just tried this on Chrome (I was using IE and Edge) which works ok.

Console for IE and Edge shows only this error, nothing else:

DOM7011: The code on this page disabled back and forward caching. For more information, see: Back navigation caching (Windows) | Microsoft Learn

Default login name admin@blynk.cc, password admin.

blynk.log just show’s this, no other errors:

21:29:32.228 DEBUG- POST : /admin/login

Login Page:

https://192.168.0.38:9443/admin

Anyone else have this issue on IE\Edge?

Others have reported the same.

1 Like

A post was split to a new topic: I have a problem with setup local Blynk server to Orange Pi Zero