Hello, comrades
I can now run a local server on my smartphone
but back to the beginning
First you need to install termux, can be found in google playmarket.
Then open termux and install packages.
list of packages to install: wget, openssl-tools, proot.
pkg install proot
And time to install Java, info taken from github
here is the command to install
wget https://raw.githubusercontent.com/MasterDevX/java/master/installjava && bash installjava
on the phone java will not start without the proot package. so we have to pretend that we are a superuser.
Just write in concole:
proot -0
check if java works
java -version
if everything works, then load the server file
wget "https://github.com/blynkkk/blynk-server/releases/download/v0.41.13/server-0.41.13-java8.jar"
Before starting, you need to make a certificate for the server, otherwise it will not start
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout key.key -out cert.crt
and then write them in the server.propeties file. And add the file storage path
should look something like this
server.ssl.cert=cert.crt
server.ssl.key=key.key
server.ssl.key.pass=
data.folder=blynkdata/
always run proot before starting the server.
proot -0
then
java -jar server-0.41.13-java8.jar
???
Profit?
Devide was Honor 9X with Android 10