How to install ZeroTier on openSUSE
Tags: linux, productivity, tutorial, opensource
Published: 2022-09-05 21:52:33

**[ZeroTier](https://www.zerotier.com/)** is an open source software to create VPN (Virtual Private Network) over the internet with 256-bit end-to-end encryption. It's reliable, no hassle to setup, and you can **[use it for free for non-commercial use cases](https://www.zerotier.com/pricing/)**. It's no surprise that ZeroTier is very popular among gamers and many homebrew projects alike. 

Normally, you should be able to install ZeroTier on Linux very easily. However, it's a bit more tricky on openSUSE, as the install instruction on **[the official download page](https://www.zerotier.com/download/)**, won't work. See **[ZeroTierOne issue #1517](https://github.com/zerotier/ZeroTierOne/issues/1517)**.

---

## Here's how you install ZeroTier on openSUSE.

1. Adding the right repository by opening **YaST Software Repositories** app, then click the _Add_ button to add a repository.

     ![The add button to add a repository.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wgla0rrdyujmw6b0iiuj.png)

2. Choose the _Specify URL..._ option to add a repository via URL, then click _Next_.

     ![Choose the Specify URL... option](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/el24vfhzmgq8oh450cx8.png)

3. You can enter whatever repository name that you want, but to prevent any confusion, I recommend you to use _zerotier_ as a repository name (you're adding zerotier's repository after all). For the URL field, you'll have to add the official ZeroTier's repository for RHEL9: `https://download.zerotier.com/redhat/el/9`.

     ![Adding ZeroTier's repository](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rs3bbf59atox5x2ib52t.png)

4. Follow the onscreen instruction. YaST will prompt you about the unsigned file, which is pretty normal when you try to add a non-openSUSE repository, you can ignore it as there's nothing wrong with ZeroTier.

     ![Unsigned File Prompt](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q86hgnfpnqsm38ks8j7l.png)

5. At the end of the process, you should have _zerotier_ repository _Enabled_ and _Autorefresh_.

     ![zerotier repository enabled](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w6qnglst4dwkuo0q7o68.png)

6. Now, you should be able to install ZeroTier from **YaST Software Management** app. Searching for _zerotier-one_ package to install.

     ![zerotier-one package](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lw9cy7ckpm5m0a5fxzdt.png)

7. Initialize ZeroTier's daemon by: `sudo zerotier-one -d`.

8. Open **YaST Services Manager** to check whether your `zerotier-one` service is currently in an active state, and also set to start on boot.

     ![zerotier-one service](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gj1406xywkrq40fukkhb.png)

After this you can use **[all the ZeroTier commands](https://zerotier.atlassian.net/wiki/spaces/SD/pages/29065282/Command+Line+Interface+zerotier-cli)** through `sudo zerotier-cli` without any issue. Or if you want to use ZeroTier through GUI, please check **[ZeroTier-GUI project on GitHub](https://github.com/tralph3/ZeroTier-GUI)**.

I hope this helps.

---

**Cover** photo by **[Lars Kienle](https://unsplash.com/@larskienle?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)** on **[Unsplash](https://unsplash.com/s/photos/network?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)**