Skip to content

Instantly share code, notes, and snippets.

View DblD's full-sized avatar

Dario Matonicki DblD

View GitHub Profile
@DblD
DblD / Install and Configure ZeroTier on Asahi Linux.MD
Last active November 4, 2024 20:32
Install and Configure ZeroTier on Asahi Linux (Fedora for Apple Silicon) with Automatic GPG Key Retrieval

Title: Install and Configure ZeroTier on Asahi Linux (Fedora for Apple Silicon) with Automatic GPG Key Retrieval

Description:

This script addresses issues with installing ZeroTier on Asahi Linux (Fedora installations on Apple Silicon). It ensures the correct GPG key and repository configuration for systems that may lack native ZeroTier support out of the box. The script performs the following steps:

  1. Checks for the presence of the ZeroTier GPG key in /tmp. If missing, it downloads the key directly from ZeroTier's official source to ensure package authenticity.
  2. Imports the GPG key to verify ZeroTier packages.
  3. Creates a temporary repository configuration file for ZeroTier.
  4. Moves the repository file to /etc/yum.repos.d to make it system-wide.