DEV Community

Cover image for Running Valheim on an Linux Server
Michael
Michael

Posted on

Running Valheim on an Linux Server

Commands standardized for Ubuntu, you will have to adjust if you are using another distro.

Starting from ground zero

1). Install dependencies

# As root or with sudo run the following:
apt update
useradd -m steam
apt install software-properties-common -y
add-apt-repository multiverse
dpkg --add-architecture i386
apt update
apt install -y \
  lib32gcc1 steamcmd unzip wget curl gosu jq
Enter fullscreen mode Exit fullscreen mode

Running as steam user

1).

gosu steam bash
Enter fullscreen mode Exit fullscreen mode

2). Edit steams .bashrc
3). Add the following to the bashrc:

export PATH="$HOME/.bin:/usr/games/:$PATH"
Enter fullscreen mode Exit fullscreen mode

4). Run the following to download the latest release:

DOWNLOAD_URL="$(curl  https://api.github.com/repos/mbround18/valheim-docker/releases/latest | jq -r '.assets[0].browser_download_url')"
wget -O bundle.zip "${DOWNLOAD_URL}"
Enter fullscreen mode Exit fullscreen mode

5). Unzip the bundle unzip bundle.zip
6). Move the files to the .bin folder

mkdir -p $HOME/.bin
chmod +x {odin,huginn}
mv odin $HOME/.bin
mv huginn $HOME/.bin
Enter fullscreen mode Exit fullscreen mode

7). Navigate to the folder you wish to install the server to.
8). Configure odin with odin configure --password "Your Password"
9). Start the server :) odin start

Top comments (0)