-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
recast raspi downloads matrix as a guide instead of downloads page
- Loading branch information
Showing
8 changed files
with
679 additions
and
8,640 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
--- | ||
title: Raspberry Pi | ||
hide_table_of_contents: false | ||
--- | ||
|
||
import Details from '@theme/MDXComponents/Details'; | ||
|
||
## Install the zrok command | ||
|
||
### Package Install | ||
|
||
DEB and RPM packages are available for amd64, arm64, and armv7 architectures. | ||
|
||
1. Download the OpenZiti install script. | ||
|
||
```bash | ||
curl -sSo ./openziti-install.bash https://get.openziti.io/install.bash | ||
``` | ||
|
||
1. Inspect the script to ensure it is suitable to run as root on your system. | ||
|
||
```bash | ||
less ./openziti-install.bash | ||
``` | ||
|
||
1. Run the script as root to install the `zrok` package. | ||
|
||
```bash | ||
sudo bash ./openziti-install.bash zrok | ||
``` | ||
|
||
#### zrok-share service | ||
|
||
[Check out this guide for running a zrok share as a Linux service](/guides/linux-service.md). | ||
|
||
<br/><br/> | ||
|
||
### Binary Install | ||
|
||
1. [Download `zrok_{version}_linux_{arch}.tar.gz` directly from GitHub](https://github.com/openziti/zrok/releases/latest) | ||
1. In the terminal: | ||
|
||
```bash | ||
tar -xzf zrok_{version}_linux_{arch}.tar.gz -C target_dir | ||
./target_dir/zrok version | ||
``` | ||
|
||
You need the right download for your OS and CPU. This can be confusing because the OS, e.g., Raspberry Pi OS, could be 32bit even if you have a 64bit Pi (v3, 4, or Zero 2). Linux users can always find the right version by looking up the result of `uname -m` in this table. | ||
|
||
| Result |Linux Download Name | | ||
|------------------|--------------------| | ||
| x86_64 |linux-amd64 | | ||
| aarch64, arm/v8 |linux-arm64 | | ||
| armhf, arm/v7 |linux-armv7 | | ||
|
||
|
||
or install `jq` and `curl` and run this script to install the correct architecture build of zrok. | ||
|
||
<Details> | ||
<summary>Binary Install script for Linux</summary> | ||
|
||
```text | ||
(set -euo pipefail; | ||
cd $(mktemp -d); | ||
ZROK_VERSION=$( | ||
curl -sSf https://api.github.com/repos/openziti/zrok/releases/latest \ | ||
| jq -r '.tag_name' | ||
); | ||
case $(uname -m) in | ||
x86_64) GOXARCH=amd64 ;; | ||
aarch64|arm64) GOXARCH=arm64 ;; | ||
armv7|armhf|arm) GOXARCH=arm ;; | ||
*) echo "ERROR: unknown arch '$(uname -m)'" >&2 | ||
exit 1 ;; | ||
esac; | ||
curl -sSfL \ | ||
"https://github.com/openziti/zrok/releases/download/${ZROK_VERSION}/zrok_${ZROK_VERSION#v}_linux_${GOXARCH}.tar.gz" \ | ||
| tar -xz -f -; | ||
sudo install -o root -g root ./zrok /usr/local/bin/; | ||
zrok version; | ||
) | ||
``` | ||
|
||
</Details> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.