diff --git a/README.md b/README.md new file mode 100644 index 0000000..0b5aa61 --- /dev/null +++ b/README.md @@ -0,0 +1,188 @@ +# Valheim Server StackScript + +A Linode StackScript that turns a freshly created Debian 13 Linode into a +Valheim dedicated server. Running it as a StackScript means everything happens +as root during deployment, so no SSH session (and therefore no SSH key) is +needed to configure the machine. + +It does four things, in order: + +1. Installs Docker from Debian's own `docker.io` package. +2. Mounts the pre-existing Valheim volume (this mirrors `voldirections.txt`; + `mkfs.ext4` is **not** run because the filesystem already exists). +3. Creates the persistent `config/` and `data/` directories on the volume. +4. Starts the Valheim server container with those directories bind-mounted, so + worlds, configuration and backups survive destroying and recreating the + Linode. + +## Instructions + +1. Log in to the Linode Cloud Manager and open **StackScripts**. +2. Click **Create StackScript**. +3. Set **Label** to something like `valheim-server` and choose **Debian 13** + (or "Any") as the **Target Images**. +4. Paste the code block below into the **Script** editor. +5. Edit the server settings at the top of the script (name, world, password) + before saving. +6. Leave the **UDF** (User Defined Fields) section empty — the values are + hard-coded, so nothing needs to be entered at deploy time. +7. Click **Save**. The numeric ID of the StackScript appears in the URL and in + the StackScript list; copy it. +8. Put that ID in `create-linode.sh` as the `STACKSCRIPT_ID` value near the top + of the file. + +After that, `create-linode.sh c