thin-edge.io
thin-edge.io copied to clipboard
Installing and joining ZeroTier Network
In order to use the ZeroTier Network installation and joining network is needed, this ticket should provide information about the easiest way how to do it.
Raspberry Pi & Ubuntu 22.04
-
Use the following two commands to update both the package list and any installed packages.
sudo apt update
sudo apt upgrade
-
To install ZeroTier directly from their package repository to our Device, we will need to add the GPG key. This key helps verify the contents of the packages that we are installing are from ZeroTier.
Run the following command to download the GPG key from their GitHub repository, then save its “de-armored” contents into the “
/usr/share/keyrings/
” directory.curl https://raw.githubusercontent.com/zerotier/ZeroTierOne/master/doc/contact%40zerotier.com.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/zerotierone-archive-keyring.gpg >/dev/null
-
With the GPG key added, we need to create a source list that contains the ZeroTier repository.
Before we do that, we must first store the codename for the current operating system in a shell variable called “
RELEASE
“.Running the following command will allow us to quickly build the correct URL for the ZeroTier repository in the next step.
RELEASE=$(lsb_release -cs)
-
We use the shell variable we set in the previous step to build the correct ZeroTier repository URL for your current operating system.
We then pipe this string into a file called “
zerotier.list
” that is stored within the “/etc/apt/sources.list.d/
” directory.echo "deb [signed-by=/usr/share/keyrings/zerotierone-archive-keyring.gpg] http://download.zerotier.com/debian/$RELEASE $RELEASE main" | sudo tee /etc/apt/sources.list.d/zerotier.list
-
As we have made changes to our System’s sources, we need to update the package list.
You can update the package list by running the following command on your system
sudo apt update
-
Once we have performed an update, we can finally install the ZeroTier package.
sudo apt install -y zerotier-one
-
We will need to use the ZeroTier CLI to join the network
sudo zerotier-cli join 9bee8941b554cd05
the response should be:
200 join OK
-
At this point send info to the administrators of ZeroTier to enable the device on ZeroTier @gligorisaev, @reubenmiller