Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shellhub-io/snap


https://github.com/shellhub-io/snap

Last synced: 3 days ago
JSON representation

Awesome Lists containing this project

README

        


ShellHub Agent for Snap



















## Installation

ShellHub is available in the [Snap Store](https://snapcraft.io/shellhub). To install it, run the following command:

```
$ sudo snap install --classic shellhub
```

> [!NOTE]
> By default, the ShellHub is configured to use the [ShellHub Cloud](https://cloud.shellhub.io),
> making it easy to get started without needing to set up a self-hosted instance.
> You just need to set the `tenant-id` to connect your device to your ShellHub Cloud namespace.

## Configuration

### Viewing Configuration

To view the current configuration of the ShellHub agent, use the `snap get` command:

```
$ snap get shellhub
```

This will display the current configuration settings for the ShellHub agent:

| Key | Value |
|------------------|-----------------------------|
| `private-key` | `/etc/shellhub.key` |
| `server-address` | `https://cloud.shellhub.io` |
| `tenant-id` | |

### Setting Configuration

To set or update the configuration of the ShellHub agent,
use the `snap set` command followed by the desired configuration options:

```
$ sudo snap set shellhub =
```

Replace `` and `` with the configuration settings you wish to change.

* `private-key`: The path to the private key used by the ShellHub agent.
* `server-address`: The address of the ShellHub server the agent will connect to.
* `tenant-id`: The tenant ID (if applicable) associated with the ShellHub namespace.

## Building

```
$ git clone https://github.com/shellhub-io/snap.git
$ cd snap
$ snapcraft
$ sudo snap install --classic --dangerous shellhub__amd64.snap
```

Replace `` with the appropriate version number of the generated snap file.

Make sure to replace the default values with your own configurations if needed.