Setting up a Valheim Server

Published on November 28, 2021

Installation

Make sure you have set up the VoidLinux chroot and installed Steamcmd first.

We can then simply create a script as follows to install/update the Valheim server:

cat >~/chroot/update-valheim.sh <<'EOF'
#!/bin/sh
./voidlinux.sh "/home/$USER/steamcmd.sh +@sSteamCmdForcePlatformType linux +force_install_dir /home/$USER/valheim +login anonymous +app_update 896660 validate +quit"
EOF

Ensure the script is executable:

chmod +x ~/chroot/update-valheim.sh
#!/bin/sh
SERVER_NAME="My server"
PORT=2456
WORLD_NAME="Dedicated"
PASSWORD="secret"
./voidlinux.sh "/home/$USER/valheim/valheim_server.x86_64 -name $SERVER_NAME -port $PORT -world $WORLD_NAME -password $PASSWORD"

[ #alpine ]


If you like my work or if my work has been useful to you in any way, then feel free to donate me a cup of coffee. Any donation is much appreciated!