-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
document and announce Linux user shares
- Loading branch information
Showing
7 changed files
with
92 additions
and
38 deletions.
There are no files selected for viewing
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
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,17 @@ | ||
|
||
1. Set up `zrok`'s Linux package repository by following [the Linux install guide](/guides/install/linux.mdx#install-zrok-from-the-repository), or run this one-liner to complete the repo setup and install packages. | ||
|
||
```bash | ||
curl -sSLf https://get.openziti.io/install.bash \ | ||
| sudo bash -s zrok-share | ||
``` | ||
|
||
1. If you set up the repository by following the guide, then also install the `zrok-share` package. This package provides the systemd service. | ||
|
||
```bash title="Ubuntu, Debian" | ||
sudo apt install zrok-share | ||
``` | ||
|
||
```bash title="Fedora, Rocky" | ||
sudo dnf install zrok-share | ||
``` |
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,8 @@ | ||
{ | ||
"label": "Linux User Share", | ||
"position": 40, | ||
"link": { | ||
"type": "doc", | ||
"id": "guides/linux-user-share/index" | ||
} | ||
} |
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,44 @@ | ||
--- | ||
title: Linux User Share | ||
--- | ||
|
||
import LinuxShareInstall from '/../docs/guides/_linux-share-install.mdx' | ||
|
||
## Overview | ||
|
||
You can run any number of zrok share services as `systemd --user` units with your Linux user's zrok environment in `~/.zrok`. This is like [zrok frontdoor](/guides/frontdoor.mdx) except that frontdoor is a system service managed by root separately from your user's login. Linux user shares, Linux system services, and Docker shares all use the same configuration environment variables. | ||
|
||
## Install the Linux Package | ||
|
||
The package provides the `zrok` executable and service unit template. | ||
|
||
<LinuxShareInstall /> | ||
|
||
## Create a User Share Configuration File | ||
|
||
Substitute a name for your instance in place of `my-instance` in the following example. To avoid character escaping problems, use only letters, numbers, hyphens, and underscores in the instance name, not spaces or other special characters. | ||
|
||
```bash | ||
ZROK_INSTANCE="my-instance" | ||
cp /opt/openziti/etc/zrok/zrok-share.env ~/.zrok/zrok-share@${ZROK_INSTANCE}.env | ||
``` | ||
|
||
## Edit the User Share Configuration File | ||
|
||
Edit the configuration file in `~/.zrok/zrok-share@${ZROK_INSTANCE}.env` as you would for [zrok frontdoor](/guides/frontdoor.mdx), except ignore the first section "ZROK ENVIRONMENT" because user shares re-use `~/.zrok` and do not need a separate zrok environment. | ||
|
||
## Start the User Share Service | ||
|
||
```bash | ||
systemctl --user enable --now zrok-share@${ZROK_INSTANCE}.service | ||
``` | ||
|
||
## Check the User Share Journal | ||
|
||
```bash | ||
journalctl --user -lfu zrok-share@${ZROK_INSTANCE}.service | ||
``` | ||
|
||
## Add Another User Share | ||
|
||
To create another user share, choose another instance name, copy the `zrok-share.env` file, edit the configuration file, and start the service. |