<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>ZeroTier on Wimpy's World</title><link>https://blog.wimpys.world/tags/zerotier/</link><description>Recent content in ZeroTier on Wimpy's World</description><generator>Hugo -- gohugo.io</generator><language>en-gb</language><managingEditor>martin@wimpress.com (Martin Wimpress)</managingEditor><webMaster>martin@wimpress.com (Martin Wimpress)</webMaster><lastBuildDate>Thu, 17 Aug 2023 12:15:45 +0100</lastBuildDate><atom:link href="https://blog.wimpys.world/tags/zerotier/rss.xml" rel="self" type="application/rss+xml"/><item><title>Install ZeroTier on Steam Deck</title><link>https://blog.wimpys.world/posts/install-zerotier-on-steamdeck/</link><pubDate>Thu, 17 Aug 2023 12:15:45 +0100</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/install-zerotier-on-steamdeck/</guid><description>&lt;p&gt;It took 9 episodes of &lt;a href="https://linuxmatters.sh"&gt;Linux Matters&lt;/a&gt; for my friends and co-hosts &lt;a href="https://linuxmatters.sh/host/apope/"&gt;Alan&lt;/a&gt; and &lt;a href="https://linuxmatters.sh/host/mjohnson/"&gt;Mark&lt;/a&gt; to wear down 😅 my resolve to buy a &lt;a href="https://www.steamdeck.com/en/"&gt;Steam Deck&lt;/a&gt;, even &lt;a href="https://blog.wimpys.world/posts/steambox-vs-steamdeck/"&gt;after I passed on my original Steam Deck pre-order&lt;/a&gt;.
I&amp;rsquo;m glad they did, it&amp;rsquo;s a great little device and a dream come true for Linux 🐧 nerds; excellent hardware and completely hackable 🧑‍💻&lt;/p&gt;
&lt;p&gt;I ordered the 64GB model via the recently announced &lt;a href="https://store.steampowered.com/sale/steamdeckrefurbished"&gt;Steam Deck™ Certified Refurbished&lt;/a&gt; program.
I&amp;rsquo;m going to resist retrofitting a larger NVMe SSD, and have instead added a 1TB microSDXC card 💾
The 64GB internal eMMC storage will be used for SteamOS and the microSDXC card will be used exclusively for games 🕹️&lt;/p&gt;
&lt;p&gt;While I&amp;rsquo;m avoiding hardware modifications, I do want to install some software enhancements on the Steam Deck; specifically &lt;a href="https://www.zerotier.com/"&gt;ZeroTier&lt;/a&gt;.
&lt;strong&gt;I spoke enthusiastically about ZeroTier in &lt;a href="https://linuxmatters.sh/episodes/8/"&gt;Linux Matters: Picking Apart the Steam Deck (Episode 8)&lt;/a&gt;&lt;/strong&gt;; it is as essential as WiFi for me.
So, give that episode a listen to hear why I love ZeroTier so much 💖&lt;/p&gt;
&lt;p class="text-center"&gt;
&lt;a href="https://linuxmatters.sh" target="_blank"&gt;&lt;img src="https://linuxmatters.sh/img/episode/linuxmatters-banner-3000x750.webp" class="img-fluid" alt="Linux Matters Podcast"/&gt;&lt;/a&gt;
&lt;br /&gt;
&lt;em&gt;Linux Matters Podcast&lt;/em&gt;
&lt;/p&gt;
&lt;p&gt;What follows is a guide to installing ZeroTier on the Steam Deck, &lt;strong&gt;but this technique can be used to install any software on Steam Deck that is available for Arch Linux&lt;/strong&gt; 👍️&lt;/p&gt;
&lt;h1 id="installing-zerotier-on-steam-deck"&gt;Installing ZeroTier on Steam Deck&lt;/h1&gt;
&lt;p&gt;The Steam Deck has a (&lt;em&gt;mostly&lt;/em&gt;) read-only filesystem.
We&amp;rsquo;ll use &lt;a href="https://github.com/ValShaped/rwfus"&gt;Rwfus: Read-Write OverlayFS for your Steam Deck&lt;/a&gt; to install ZeroTier so that it persists across reboots &lt;em&gt;and&lt;/em&gt; SteamOS updates.&lt;/p&gt;
&lt;p&gt;The author describes &lt;code&gt;rwfus&lt;/code&gt; as:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;a vinyl couch cover for your filesystem, Rwfus covers your Deck&amp;rsquo;s &lt;code&gt;/usr/&lt;/code&gt; directory (and some others) allowing you to initialize and use &lt;code&gt;pacman&lt;/code&gt; (the Arch Linux package manager) on the Steam Deck without losing packages when the next update comes out.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Perfect 👌️&lt;/p&gt;
&lt;h2 id="enter-the-desktop"&gt;Enter the Desktop&lt;/h2&gt;
&lt;p&gt;The process of installing and configuring ZeroTier requires the use of the Steam Deck desktop mode.
Connecting a mouse 🖱️ and keyboard ⌨️ to the Steam Deck will make this process much easier.
After the Steam Deck has booted you should Switch to Desktop.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Press the &amp;ldquo;Steam&amp;rdquo; button on the Steam Deck and scroll down through the menu and select &amp;ldquo;Power&amp;rdquo;.&lt;/li&gt;
&lt;li&gt;Then, select the &amp;ldquo;Switch to Desktop&amp;rdquo; option.&lt;/li&gt;
&lt;li&gt;Once the desktop has loaded, click on the Steam Deck logo in the lower-left corner of the desktop to bring up the menu.&lt;/li&gt;
&lt;li&gt;Select &amp;ldquo;System&amp;rdquo; in the left column and then &amp;ldquo;Konsole&amp;rdquo; from the right column.
&lt;ul&gt;
&lt;li&gt;You can also press the Super key and type in &amp;ldquo;Konsole&amp;rdquo; in the search bar.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Suddenly, as if by magic, the terminal appeared 🪄&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="text-center"&gt;
&lt;img src="./magic-terminal.webp" class="img-fluid" alt="Konsole"/&gt;
&lt;br /&gt;
&lt;em&gt;Konsole on Steam Deck&lt;/em&gt;
&lt;/p&gt;
&lt;h2 id="set-a-password"&gt;Set a Password&lt;/h2&gt;
&lt;p&gt;By default, no password 🔓️ is set for the &lt;code&gt;deck&lt;/code&gt; user.
With no password set, it is not possible to run commands in the root context using &lt;code&gt;sudo&lt;/code&gt;.
Type &lt;code&gt;passwd&lt;/code&gt; in the terminal to set a password.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;(&lt;/span&gt;deck@steamdeck ~&lt;span class="o"&gt;)&lt;/span&gt; $ passwd
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;New Password:
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Retype New Password:
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="install-rwfus"&gt;Install Rwfus&lt;/h2&gt;
&lt;p&gt;With that done we can install &lt;code&gt;rwfus&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;git clone https://github.com/ValShaped/rwfus.git
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; rwfus
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;./rwfus -iI
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="install-zerotier"&gt;Install ZeroTier&lt;/h2&gt;
&lt;p&gt;Run &lt;code&gt;sudo pacman -Sy&lt;/code&gt; to update your repositories 🌿
Now install ZeroTier.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo pacman -S zerotier-one
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="enable-and-start-zerotier-service"&gt;Enable and Start ZeroTier service&lt;/h3&gt;
&lt;p&gt;ZeroTier installs its systemd unit in &lt;code&gt;/usr/lib/systemd/system/&lt;/code&gt;, but as we&amp;rsquo;re installing while Rwfus is active that service file is installed into the Rwfus overlay.
This is a problem because running &lt;code&gt;systemctl enable zerotier-one&lt;/code&gt; now would create a systemd unit in &lt;code&gt;/etc/systemd/system/multi-user.target.wants/&lt;/code&gt; that references a file in &lt;code&gt;/usr&lt;/code&gt;, and that file will not exist until Rwfus is running.
The effect is that the ZeroTier service will not start on boot as systemd will not be able to find the service file.&lt;/p&gt;
&lt;p&gt;But there is a simple workaround, copy the ZeroTier service file to &lt;code&gt;/etc/systemd/system&lt;/code&gt;, which is fine as &lt;code&gt;/etc&lt;/code&gt; is already a writable overlay.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;cp /usr/lib/systemd/system/zerotier-one.service /etc/systemd/system/zerotier-one.service
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Now, enable and start the ZeroTier service.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo systemctl &lt;span class="nb"&gt;enable&lt;/span&gt; zerotier-one --now
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="join-a-zerotier-network"&gt;Join a ZeroTier Network&lt;/h2&gt;
&lt;p&gt;Find your ZeroTier device ID (a 10-digit hexadecimal number) by running:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo zerotier-cli info
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The output will look 👀 something like this:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;200 info deadbeef00 1.10.1 OFFLINE
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Join a ZeroTier network using a network ID (a 16-digit hexadecimal number) which you can get from the &lt;a href="https://my.zerotier.com/"&gt;My ZeroTier page&lt;/a&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo zerotier-cli join &amp;lt;network id&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Return to the &lt;a href="https://my.zerotier.com/"&gt;My ZeroTier page&lt;/a&gt; select the network you joined, scroll down to the Members section and authorize the Steam Deck device ID.&lt;/p&gt;
&lt;p&gt;Verify that the Steam Deck is correctly allocated an IP address, this may take up to 30 seconds ⏳️&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ip --brief addr &lt;span class="p"&gt;|&lt;/span&gt; grep ^zt
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You should see 👁️ output similar to this:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;zta1b2c3d4 UNKNOWN 192.168.192.59/24 baad::4a4a:faff:fefe:5aa5/64
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="use-your-zerotier-network"&gt;Use your ZeroTier network&lt;/h2&gt;
&lt;p&gt;You can now connect from your Steam Deck to other devices on the same ZeroTier network.
Or you could enable SSH on the Steam Deck and then log in to it from another device on the ZeroTier network 💪&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo systemctl &lt;span class="nb"&gt;enable&lt;/span&gt; sshd --now
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="conclusion"&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;With ZeroTier installed on the Steam Deck, it is part of my network where ever I may roam; and enables some interesting possibilities such as remote play from anywhere in the world or &lt;a href="https://steamcommunity.com/sharedfiles/filedetails/?id=2632149295"&gt;playing LAN multi-player games with remote friends&lt;/a&gt;.
Share in the comments how you&amp;rsquo;re using ZeroTier on your Steam Deck 💬&lt;/p&gt;
&lt;p class="text-center"&gt;
&lt;img src="./SteamDeck-ZeroTier.webp" class="img-fluid" alt="Steam Deck with ZeroTier"/&gt;
&lt;br /&gt;
&lt;em&gt;Steam Deck&lt;/em&gt;
&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ll be keeping my Steam Deck software modifications to a minimum 🤏 but where I do make changes I&amp;rsquo;ll be careful not to disrupt the SteamOS root file systems or potentially break SteamOS updates.
I&amp;rsquo;m glad solutions like Rwfus exist to allow me to install the software I need. But&amp;hellip;. 🤔&lt;/p&gt;
&lt;p&gt;&lt;a href="https://nixos.org"&gt;Nix&lt;/a&gt; is what I work on as my day job at &lt;a href="https://determinate.systems"&gt;Determinate Systems&lt;/a&gt; ❄️
I&amp;rsquo;m creating a little project that any Steam Deck owner can use to bring the power of Nix to Steam Deck while maintaining isolation from the SteamOS root file system.
That project depends on the &lt;a href="https://github.com/DeterminateSystems/nix-installer"&gt;Determinate Nix Installer&lt;/a&gt;, &lt;strong&gt;which natively supports Steam Deck&lt;/strong&gt;.
So, if you want to get a head start with Nix on the Steam Deck then you can do that today 🙂&lt;/p&gt;</description><summary>How to persist software installation across SteamOS updates on the Steam Deck.</summary></item></channel></rss>