DEV Community

Cover image for Running Valheim on an Linux Server
Michael
Michael

Posted on

4 1

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

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay