Skip to content

Instantly share code, notes, and snippets.

@jfeilbach
Last active November 7, 2024 21:31
Show Gist options
  • Save jfeilbach/90c602d7516b3646b86962ad0945afcb to your computer and use it in GitHub Desktop.
Save jfeilbach/90c602d7516b3646b86962ad0945afcb to your computer and use it in GitHub Desktop.
Compile/setup zerotier on Ubuntu 24.04

Usually this works for most people, but never does for me on Ubuntu.

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

  • The minimum compiler versions required are GCC/G++ 8.x or CLANG/CLANG++ 5.x.
  • Linux makefiles automatically detect and prefer clang/clang++ if present as it produces smaller and slightly faster binaries in most cases. You can override by supplying CC and CXX variables on the make command line.
  • Rust for x86_64 and ARM64 targets if SSO is enabled in the build.
sudo apt update && sudo apt upgrade
sudo apt install git cargo pkg-config libssl-dev
git clone https://github.com/zerotier/ZeroTierOne.git
cd ZeroTierOne/
make
make selftest
sudo make install

Start sudo ./zerotier-one -d

Home Folder /var/lib/zerotier-one

GitHub https://github.com/zerotier/ZeroTierOne

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment