mirror of
https://github.com/openziti/zrok.git
synced 2024-11-22 08:03:49 +01:00
number install steps
This commit is contained in:
parent
d338c30a10
commit
c041166aee
@ -3,7 +3,20 @@ title: Install zrok in Linux
|
|||||||
sidebar_label: Linux
|
sidebar_label: Linux
|
||||||
---
|
---
|
||||||
|
|
||||||
import Details from '@theme/MDXComponents/Details';
|
import { AssetsProvider } from '@site/src/components/assets-context';
|
||||||
|
import DownloadCard from '@site/src/components/download-card';
|
||||||
|
import styles from '@site/src/css/download-card.module.css';
|
||||||
|
|
||||||
|
## Extract Distribution
|
||||||
|
|
||||||
|
<AssetsProvider>
|
||||||
|
<div className={styles.downloadContainer}>
|
||||||
|
<DownloadCard
|
||||||
|
osName="Linux"
|
||||||
|
osLogo="/img/logo-linux.svg"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</AssetsProvider>
|
||||||
|
|
||||||
## Install Linux Package
|
## Install Linux Package
|
||||||
|
|
||||||
|
@ -20,36 +20,36 @@ import styles from '@site/src/css/download-card.module.css';
|
|||||||
|
|
||||||
Download the binary distribution for your macOS architecture. For Intel Macs use the `amd64` distribution. For Apple Silicon Macs use the `arm64` distribution.
|
Download the binary distribution for your macOS architecture. For Intel Macs use the `amd64` distribution. For Apple Silicon Macs use the `arm64` distribution.
|
||||||
|
|
||||||
Unarchive the distribution in a temporary directory:
|
1. Unarchive the distribution in a temporary directory.
|
||||||
|
|
||||||
```text
|
```text
|
||||||
mkdir /tmp/zrok && tar -xf ./zrok*darwin*.tar.gz -C /tmp/zrok
|
mkdir /tmp/zrok && tar -xf ./zrok*darwin*.tar.gz -C /tmp/zrok
|
||||||
```
|
```
|
||||||
|
|
||||||
Install the `zrok` executable.
|
1. Install the `zrok` executable.
|
||||||
|
|
||||||
```text
|
```text
|
||||||
mkdir -p ~/bin && install /tmp/zrok/zrok ~/bin/
|
mkdir -p ~/bin && install /tmp/zrok/zrok ~/bin/
|
||||||
```
|
```
|
||||||
|
|
||||||
Add `~/bin` to your shell's executable search path. Optionally add this to your ~/.zshenv to persist the change.
|
1. Add `~/bin` to your shell's executable search path. Optionally add this to your ~/.zshenv to persist the change.
|
||||||
|
|
||||||
```text
|
```text
|
||||||
export PATH=~/bin:$PATH
|
export PATH=~/bin:$PATH
|
||||||
```
|
```
|
||||||
|
|
||||||
With the `zrok` executable in your path, you can then execute the `zrok` command from your shell:
|
1. With the `zrok` executable in your path, you can then execute the `zrok` command from your shell:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
zrok version
|
zrok version
|
||||||
```
|
```
|
||||||
|
|
||||||
```buttonless title="Output"
|
```buttonless title="Output"
|
||||||
_
|
_
|
||||||
_____ __ ___ | | __
|
_____ __ ___ | | __
|
||||||
|_ / '__/ _ \| |/ /
|
|_ / '__/ _ \| |/ /
|
||||||
/ /| | | (_) | <
|
/ /| | | (_) | <
|
||||||
/___|_| \___/|_|\_\
|
/___|_| \___/|_|\_\
|
||||||
|
|
||||||
v0.4.0 [c889005]
|
v0.4.0 [c889005]
|
||||||
```
|
```
|
||||||
|
@ -18,35 +18,35 @@ import styles from '@site/src/css/download-card.module.css';
|
|||||||
</div>
|
</div>
|
||||||
</AssetsProvider>
|
</AssetsProvider>
|
||||||
|
|
||||||
Unarchive the distribution in a temporary directory:
|
1. Unarchive the distribution in a temporary directory:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
New-Item -Path "$env:TEMP\zrok" -ItemType Directory -ErrorAction Stop
|
New-Item -Path "$env:TEMP\zrok" -ItemType Directory -ErrorAction Stop
|
||||||
tar -xf .\zrok*windows*.tar.gz -C "$env:TEMP\zrok"
|
tar -xf .\zrok*windows*.tar.gz -C "$env:TEMP\zrok"
|
||||||
```
|
```
|
||||||
|
|
||||||
Install the `zrok` executable and include HOME\bin in the search PATH.
|
1. Install the `zrok` executable and include HOME\bin in the search PATH.
|
||||||
|
|
||||||
```text
|
```text
|
||||||
$source = Join-Path -Path $env:TEMP -ChildPath "zrok\zrok.exe"
|
$source = Join-Path -Path $env:TEMP -ChildPath "zrok\zrok.exe"
|
||||||
$destination = Join-Path -Path $env:HOME -ChildPath "bin\zrok.exe"
|
$destination = Join-Path -Path $env:HOME -ChildPath "bin\zrok.exe"
|
||||||
New-Item -Path $destination -ItemType Directory -ErrorAction SilentlyContinue
|
New-Item -Path $destination -ItemType Directory -ErrorAction SilentlyContinue
|
||||||
Copy-Item -Path $source -Destination $destination
|
Copy-Item -Path $source -Destination $destination
|
||||||
$env:path += ";"+$destination
|
$env:path += ";"+$destination
|
||||||
```
|
```
|
||||||
|
|
||||||
With the `zrok` executable in your path, you can then execute the `zrok` directly.
|
1. With the `zrok` executable in your path, you can then execute the `zrok` directly.
|
||||||
|
|
||||||
```text
|
```text
|
||||||
zrok version
|
zrok version
|
||||||
```
|
```
|
||||||
|
|
||||||
```buttonless title="Output"
|
```buttonless title="Output"
|
||||||
_
|
|
||||||
_____ __ ___ | | __
|
|
||||||
|_ / '__/ _ \| |/ /
|
|
||||||
/ /| | | (_) | <
|
|
||||||
/___|_| \___/|_|\_\
|
|
||||||
|
|
||||||
v0.4.0 [c889005]
|
_____ __ ___ | | __
|
||||||
```
|
|_ / '__/ _ \| |/ /
|
||||||
|
/ /| | | (_) | <
|
||||||
|
/___|_| \___/|_|\_\
|
||||||
|
|
||||||
|
v0.4.0 [c889005]
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user