isle/docs/install.md

87 lines
2.3 KiB
Markdown
Raw Normal View History

2024-10-03 16:59:48 +00:00
# Installation
2024-10-03 16:59:48 +00:00
This document will guide you through the process of obtaining and installing
Isle on your machine.
NOTE currently only linux machines with the following architectures are
supported:
2024-07-07 11:37:26 +00:00
- `x86_64` (aka `amd64`)
- `aarch64` (aka `arm64`)
- `i686`
2024-07-07 11:37:26 +00:00
(`i686` has not been tested.)
More OSs and architectures coming soon!
2024-07-07 11:37:26 +00:00
## Install isle
2024-07-07 11:37:26 +00:00
How isle gets installed depends on which Linux distribution you are using.
2024-07-07 11:37:26 +00:00
### Archlinux (also Manjaro)
2024-07-07 11:37:26 +00:00
Download the latest `.pkg.tar.zst` package file for your platform from
[this link][latest].
2024-07-07 11:37:26 +00:00
Install the package using pacman:
```
2024-07-07 11:37:26 +00:00
sudo pacman -U /path/to/isle-*.pkg.tar.zst
```
2024-07-07 11:37:26 +00:00
### Other Distributions
2024-07-07 11:37:26 +00:00
If a package file is not available for your distribution you can still install
an AppImage directly. It is assumed that all commands below are run as root.
2024-07-07 11:37:26 +00:00
Download the latest `.AppImage` binary for your platform from
[this link][latest], and place it in your `/usr/bin` directory.
2024-07-07 11:37:26 +00:00
Create a `daemon.yml` file using default values by doing:
```
mkdir -p /etc/isle/
isle daemon --dump-config > /etc/isle/daemon.yml
```
2023-12-23 16:06:16 +00:00
2024-07-07 11:37:26 +00:00
Create a system user for the isle daemon to run as:
```
useradd -r -s /bin/false -C "isle Daemon" isle
```
2023-12-23 16:06:16 +00:00
2024-07-07 11:37:26 +00:00
If your distro uses systemd, download [the latest systemd service
file][serviceFile] and place it in `/etc/systemd/system`. Run `systemctl
daemon-reload` to ensure systemd has seen the new service file.
2024-07-07 11:37:26 +00:00
If your distro uses an init system other than systemd then you will need to
configure that yourself. You can use the systemd service file linked above as a
reference.
2024-10-03 16:59:48 +00:00
[latest]: https://code.betamike.com/micropelago/isle/releases/latest
2024-07-07 11:37:26 +00:00
[serviceFile]: https://code.betamike.com/micropelago/isle/src/branch/main/dist/linux/isle.service
### From Source
2024-10-03 16:59:48 +00:00
If you'd like to build your own `isle` binary from scratch, see the [Building
Isle](./dev/building.md) document.
2024-07-07 11:37:26 +00:00
## Add Users to the `isle` Group (Optional)
2024-07-07 11:37:26 +00:00
If you wish to run isle commands as a user other than root, you can add that
user to the `isle` group:
```
2024-07-07 11:37:26 +00:00
sudo usermod -aG isle username
```
2024-07-07 11:37:26 +00:00
## Start the isle Service
2024-07-07 11:37:26 +00:00
Once installed and bootstrapped you can enable and start the isle service by
doing:
```
sudo systemctl enable --now isle
```
2024-07-07 11:37:26 +00:00
(NOTE If your distro uses an init system other than systemd then you will need
to instead start isle according to that system's requirements.)