Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown or unsupported distribution "Fedora Linux Asahi Remix" #91

Open
kbsmidt opened this issue Sep 27, 2024 · 2 comments
Open

Unknown or unsupported distribution "Fedora Linux Asahi Remix" #91

kbsmidt opened this issue Sep 27, 2024 · 2 comments

Comments

@kbsmidt
Copy link

kbsmidt commented Sep 27, 2024

NAME="Fedora Linux Asahi Remix"
VERSION="40 (Workstation Edition)"
ID=fedora-asahi-remix
ID_LIKE=fedora
VERSION_ID=40
VERSION_CODENAME=""
PLATFORM_ID="platform:f40"
PRETTY_NAME="Fedora Linux Asahi Remix 40 (Workstation Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora-asahi-remix:40"
DEFAULT_HOSTNAME="fedora"
HOME_URL="https://fedora-asahi-remix.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f40/system-administrators-guide/"
SUPPORT_URL="https://discussion.fedoraproject.org/c/neighbors/asahi/asahi-help/94"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=40
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=40
VARIANT="Workstation Edition"
VARIANT_ID=workstation

@onkoe
Copy link

onkoe commented Oct 25, 2024

Use the following commands to install it on Fedora Asahi:

# import the zerotier gpg key
$ sudo rpm --import /tmp/zt-gpg-key

# make a temporary repo file
$ sudo touch /tmp/zerotier.repo
$ sudo chown $USER /tmp/zerotier.repo

# fill the temp repo file with values
$ sudo echo '[zerotier]' >/tmp/zerotier.repo
$ sudo echo 'name=ZeroTier, Inc. RPM Release Repository' >>/tmp/zerotier.repo
$ sudo echo "baseurl=http://download.zerotier.com/redhat/fc/40" >>/tmp/zerotier.repo
$ sudo echo 'enabled=1' >>/tmp/zerotier.repo
$ sudo echo 'gpgcheck=1' >>/tmp/zerotier.repo

# move the repo to the real location
$ sudo mv -f /tmp/zerotier.repo /etc/yum.repos.d/zerotier.repo
$ sudo chown 0 /etc/yum.repos.d/zerotier.repo
$ sudo chgrp 0 /etc/yum.repos.d/zerotier.repo

# install the package
$ sudo dnf install -y zerotier-one

# turn on + start the service
$ sudo systemctl enable zerotier-one.service --now

# check that it's working
$ sudo zerotier-cli info
200 info (some id) 1.2.3 ONLINE

@DblD
Copy link

DblD commented Nov 4, 2024

Gist to automate this process
here

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:

  • 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.
  • Imports the GPG key to verify ZeroTier packages.
  • Creates a temporary repository configuration file for ZeroTier.
  • Moves the repository file to /etc/yum.repos.d to make it system-wide.
  • Installs the zerotier-one package using dnf.
  • Enables and starts the ZeroTier service immediately.

Designed specifically for Fedora on Apple Silicon via Asahi Linux, this script simplifies ZeroTier installation on devices that might otherwise face compatibility challenges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants