Sunday, May 3, 2020

How to install, configure and troubleshoot zerotier

Linxu users can use a command line installation.

Debian and RPM based distributions including Debian, Ubuntu, CentOS, RHEL, Fedora, and others are supported via a script that adds the right repository and installs the package.  It's a "Quick Install for Unix-like Systems"

Type in the terminal. 

     curl -s https://install.zerotier.com | sudo bash

This command gave me an error.  

*** Package installation failed! Unfortunately there may not be a package
*** for your architecture or distribution.  For the source go to:
*** https://github.com/zerotier/ZeroTierOne

I need to remove Virtualbox install and reinstall:

     sudo dpkg --configure -a

You should get,

*** Success! You are ZeroTier address [##########]

How to join a ZeroTier network

Once you got yourself a ZeroTier address, you can join a ZeroTier network. 

     zerotier-cli join 1111222233334444

This gave me an error: missing authentication token and authtoken.secret not found

To fix it, I navigated to /var/lib/zerotier-one directory by using the change directory command.  
     cd /var/lib/zerotier-one   
     ls -l  

You will see 
-rw------- 1 zerotier-one zerotier-one date time authtoken.secret

The file authtoken.secret is owned by zerotier-one in a group zerotier-one
I need to become an owner so type this in.

     sudo chown bobisyouruncle authtoken.secret

You will see:  
-rw------- 1 bobisyouruncle zerotier-one date time authtoken.secret

bobisyouruncle is the new owner.  It is ok the files belongs the group zerotier-one
Now time to join again. 

     zerotier-cli join 1111222233334444

You will get: 200 join OK

Go to ZeroTier Central and approve!

Install Linux

I used Linux MINT.  It's an Ubuntu flavor so most ubuntu stuff runs fine on it.

Install ZeroTier client 

Windows users can download the client self-installer from ZeroTier website.

Linux:  

sudo curl -s 'https://raw.githubusercontent.com/zerotier/ZeroTierOne/master/doc/contact%40zerotier.com.gpg' | gpg --import && \
if z=$(curl -s 'https://install.zerotier.com/' | gpg); then echo "$z" | sudo bash; fi

sudo zerotier-cli join [id]
sudo service zerotier-one stop
sudo service zerotier-one start
zerotier-cli info
200 info 75362a153b 1.4.6 OFFLINE

HOW TO REMOVE ZEROTIER
dpkg --list
sudo apt-get --purge remove zerotier-one

sudo systemctl start zerotier-one

RUN:  ps aux | grep zerotier

BAD
dlee@20180705:~$ ps aux | grep zerotier
root      1154  0.2  0.1  95048  5936 ?        Ssl  00:11   0:00 zerotier-one -U
dlee      9683  0.0  0.0  22824  1088 pts/0    S+   00:14   0:00 grep --color=auto zerotier

GOOD
root@20180705:~# ps aux | grep zerotier
zerotie+  5321  0.0  0.2 239872 10308 ?        Ssl  01:11   0:00 /usr/sbin/zerotier-one
root     18231  0.0  0.0  22824  1104 pts/0    S+   01:16   0:00 grep --color=auto zerotier



PeopleSpace International