From 9982fdaaab70c76dc8f0892ea57fe7beab54a435 Mon Sep 17 00:00:00 2001 From: Bernt Christian Egeland Date: Fri, 27 Oct 2023 21:21:04 +0200 Subject: [PATCH] debian standalone --- docs/ztnet/docs/Installation/debian_11.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/docs/ztnet/docs/Installation/debian_11.md b/docs/ztnet/docs/Installation/debian_11.md index d2fd7121..ca67782e 100644 --- a/docs/ztnet/docs/Installation/debian_11.md +++ b/docs/ztnet/docs/Installation/debian_11.md @@ -8,7 +8,18 @@ sidebar_position: 2 # Standalone Debian & Ubuntu +Install curl if it is not already installed: + +```bash +sudo apt update && sudo apt install curl +``` + +:::info +if you system does not have sudo installed, you will need to run the script as root and remove the "sudo" from the command below. +::: + To install ztnet on Debian or Ubuntu, run the following command: + ```bash curl -s http://install.ztnet.network | sudo bash ``` @@ -24,6 +35,7 @@ This script executes the following steps: 5. **Systemd Service**: Sets up a systemd service to auto-start `ztnet` during system boot. ### Monitoring Service Status + To check the status of the `ztnet` service, run the following command: ```bash @@ -31,6 +43,7 @@ sudo systemctl status ztnet ``` ### Starting the Service + To start the `ztnet` service, run the following command: ```bash @@ -38,13 +51,13 @@ sudo systemctl start ztnet ``` ### Stopping the Service + To stop the `ztnet` service, run the following command: ```bash sudo systemctl stop ztnet ``` - ## Uninstalling ztnet Follow these steps to uninstall `ztnet` from your system: @@ -58,3 +71,6 @@ Follow these steps to uninstall `ztnet` from your system: After following these steps, `ztnet` should be completely uninstalled from your system. +### Development + +The installation scripts is available in the [install.ztnet](https://github.com/sinamics/ztnet/tree/main/install.ztnet) folder in main repository.