1 parent
8084c39e37
commit
208c81899a
3 files changed
+56
-6
No files matched your search
+16
-3
@@ -100,13 +100,25 @@ The server can write only inside `instances/`. It reads `dist/` but can never ch
|
||||
|
||||
## Installation
|
||||
|
||||
The package works on Debian 12 or newer and Ubuntu 22.04 or newer.
|
||||
The package works on Debian 12 or newer and Ubuntu 22.04 or newer. The easiest way is the apt repository, since `sudo apt upgrade` then keeps it up to date:
|
||||
|
||||
```bash
|
||||
sudo install -d -m 0755 /etc/apt/keyrings
|
||||
sudo curl -fsSL https://gitea.adbraun.lol/api/packages/adam/debian/repository.key \
|
||||
-o /etc/apt/keyrings/terraria-server-manager.asc
|
||||
echo "deb [signed-by=/etc/apt/keyrings/terraria-server-manager.asc] https://gitea.adbraun.lol/api/packages/adam/debian stable main" |
|
||||
sudo tee /etc/apt/sources.list.d/terraria-server-manager.list
|
||||
sudo apt update
|
||||
sudo apt install terraria-server-manager
|
||||
```
|
||||
|
||||
The repository is signed; the first two commands fetch its key and let apt trust it for this repository only. Alternatively, download a `.deb` from the releases page and install it directly:
|
||||
|
||||
```bash
|
||||
sudo apt install ./terraria-server-manager_0.0.9_all.deb
|
||||
```
|
||||
|
||||
Using `apt install ./file.deb` (rather than `dpkg -i`) installs the dependencies automatically. `unzip` is required. `curl` and the ICU library are "recommended", which apt installs by default; they're only needed for tModLoader instances, which crash with `Aborted` without ICU. `polkitd` is also recommended: it lets members of the `terraria` group start and stop servers without `sudo` (see [Permissions](#permissions)).
|
||||
Using `apt install` (rather than `dpkg -i`) installs the dependencies automatically. `unzip` is required. `curl` and the ICU library are "recommended", which apt installs by default; they're only needed for tModLoader instances, which crash with `Aborted` without ICU. `polkitd` is also recommended: it lets members of the `terraria` group start and stop servers without `sudo` (see [Permissions](#permissions)).
|
||||
|
||||
Installing the package:
|
||||
|
||||
@@ -125,7 +137,8 @@ sudo ufw allow 7777/tcp # example with ufw
|
||||
### Upgrading the package
|
||||
|
||||
```bash
|
||||
sudo apt install ./terraria-server-manager_<new-version>_all.deb
|
||||
sudo apt update && sudo apt upgrade # from the apt repository
|
||||
sudo apt install ./terraria-server-manager_<new-version>_all.deb # or from a downloaded .deb
|
||||
```
|
||||
|
||||
Running servers are not restarted. Each one picks up the new version the next time it starts. Your changes to `/etc/default/terractl` are kept; if the new package also changes that file, dpkg asks which version to keep.
|
||||
|
||||
Reference in new issue
Block a user