hello all,
I managed to compile and install ZeroTier-One remote access service on a Rpi3B+ and a Rpi4 2GB running 2.70 3 Large and 2.70 4 Large16 respectively. It's less than half an hour job and imho well worth doing.
First you get into zerotier.com, setup an account and create a personal network. Pretty straight forward, Found these instructions helpful https://iamkelv.in/blog/2017/06/zerotier.html
Then on a Venus OS terminal window and the root dir (/home/root) do the following.
First grab the file from github (note better have a look with your browser for the latest ver, 1.6.4 was the latest this week):
wget https://github.com/zerotier/ZeroTierOne/archive/1.6.4.tar.gz
takes a few mins (depending on speed) then uncompress and build the folder/subfolders:
tar xf 1.6.4.tar
this builds the whole filestructure, so next get into the dir:
cd ZeroTierOne-1.6.4
and type:
make
this will take approx 15mins with lots of text passing from the screen. Some warnings for unused variables but nothing serious. Following type:
make install
moves produced executables wherever they should be.
Now it's time to setup zerotier-one as a service before rebooting. So, go to /data:
cd /data
and using your favourite editor (I use vi) create a file called rc.local. Contents must be:
#!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. /usr/sbin/zerotier-one exit 0
save and exit. Now last step is to make that file executable:
chmod +x rc.local
followed by a reboot:
reboot -n
On restart, service must be running. Check it with the command (anywhere, /home/root is fine):
zerotier-cli listnetworks
if it starts with 200 it's running fine.
Time to join the network you've created already at the beginning:
zerotier-cli join ############# (16digits)
that's it! I now have access to the boat via a RUT240 gsm router. Speed is same as when accessing the test rpi next to my desk here at home...
hope it helps someone!
cheers
V.
PS. not a programmer, if you have any suggestions to improve the above, I'm all ears!