14-Day Money Back Guarantee on Cloud Solutions + 1H/mo extra Managed Support

14-Day Money Back Guarantee on Cloud + 1H/mo extra Managed Support

Install Valheim Dedicated Server on Linux

In this guide, provided by Space Hosting, you will learn how to install Valheim Dedicated Server on Ubuntu/Debian and make yourself admin in the server using STEAMID64,

 

Table of contents

  1. Introduction
  2. Install and Configure Valheim Dedicated Server
  3. Basic Requirements
  4. Build Valheim Dedicated Server Using Steam
  5. Linux startup script and service for Valheim Dedicated Server
  6. How to make yourself admin?
 
 

1. Introduction

Vilhelm is an upcoming survival and sandbox video game by the Swedish developer Iron Gate Studio and published by Coffee Stain Studios. It was released in early access on 2 February 2021 for Linux and Windows via Steam and is set to be released for Xbox One and Xbox Series X/S in 2023.

The majority of the game servers can be run on Linux systems. These game servers, VALHEIM is also one of the Games whose servers can be hosted on Linux. Operating systems such as Linux are used to increase the performance and security of game servers. We can quickly install Valheim Dedicated Server using the steam repository on a Ryzen VPS or the AMD Dedicated server.

If you still don’t own any VPS, you can get a Free Trial VPS.

 
  • R9-VPS-KVM-S
  • 2.99

    First Month

  • Recurring Price $3.99/mo
  • CPU AMD RYZEN 9 5950X 4.9GHz
  • CORE 1 Core
  • RAM 2 GB DDR4
  • TECHNOLOGY KVM
  • INSTANT DEPLOYMENT YES
  • STORAGE 25 GB SSD NVME M.2
  • NETWORK 1GB/s (shared)
  • R9-VPS-KVM-S+
  • 3.75

    First Month

  • Recurring Price $4.99/mo
  • CPU AMD RYZEN 9 5950X 4.9GHz
  • CORE 1 Core
  • RAM 2 GB DDR4
  • TECHNOLOGY KVM
  • INSTANT DEPLOYMENT YES
  • STORAGE 30 GB SSD NVME M.2
  • NETWORK 1GB/s (shared)
  • R9-VPS-KVM-S++
  • 7.49

    First Month

  • Recurring Price $9.99/mo
  • CPU AMD RYZEN 9 5950X 4.9GHz
  • CORE 2 Core
  • RAM 4 GB DDR4
  • TECHNOLOGY KVM
  • INSTANT DEPLOYMENT YES
  • STORAGE 35 GB SSD NVME M.2
  • NETWORK 1GB/s (shared)

  •  
     

    2. Install and Configure Valheim Dedicated Server

    Before starting to install and configure valheim dedicated server, you must fulfill the requirements given below i.e server, os installation and downloading software, etc.

     
     

    3. Basic Requirements

    • Root Server
    • Fresh install Ubuntu/Debian OS

    Connect to the server using Putty and type the following commands;

    Make sure that the firewall (UFW, IP-Tables, CSFirewall) is not running in the system

     
    Install Valheim Dedicated Server on Ubuntu/Debian
     

    If you still wanted to run your game server with firewall ON, then enable the following ports by typing the command

     
    sudo ufw allow 2456/udp
    sudo ufw allow 2457/udp
    sudo ufw allow 2458/udp
    sudo ufw allow 27060/udp
     
     

    4. Build Valheim Dedicated Server Using Steam

    Before starting the installation of the VALHEIM dedicated server, firstly we have to install dependencies in the operating system required for running the steam-cmd and game server. The update helps a lot in order to install the basic dependencies used by almost every software in OS.

    Please type the following commands in order to update the system and install steam cmd.

     
    sudo add-apt-repository multiversea
    sudo dpkg --add-architecture i386
    sudo apt update && sudo apt install lib32gcc1 steamcmd 
    mkdir /home/valheim
    cd /home/valheim
    steamcmd
     

    The steam-CMD screen will display and now type the following commands in there

    The steam-CMD is a command line version of the steam client which is used by the server administrator in order to install the steam games dedicated server.

    Note: you can change the installation directory to your desired location but I prefer not to change it in order to follow the steps smoothly.

     
    force_install_dir "/home/valheim"
    login anonymous
    app_update 896660 validate
    exit
     
     

    5. Linux startup script and service for Valheim Dedicated Server

    Now create a startup script and service for Valheim Server

    The startup batch script will help you to run the game server with a single command instead of typing all the commands every time. The script will check the updates of the server and then launch the server whenever the script is run.

     
    nano start_valheim.sh
     

    Now Paste the following text into that file

     
    #!/bin/bash
    
    export templdpath=$LD_LIBRARY_PATH
    export LD_LIBRARY_PATH=./linux64:$LD_LIBRARY_PATH
    export SteamAppId=892970
    
    # Tip: Make a local copy of this script to avoid it being overwritten by steam.
    # NOTE: Minimum password length is 5 characters & Password cant be in the server name.
    # NOTE: You need to make sure the ports 2456-2458 is being forwarded to your server through your local router & firewall.
    steamcmd +login anonymous +force_install_dir /home/valheim +app_update 896660 +quit
    
    ./valheim_server.x86_64 -name "Banana Fury" -port 2456 -nographics -batchmode -world "Dedicated" -password "hello123" -public 1 > /dev/null &
    export LD_LIBRARY_PATH=$templdpath
    
    echo "Server started"
     

    Press CTRL + X (button) and then press Y (button) to save the file

     
    chmod +x start_valheim.sh
    nano valheim.service
     

    Paste the following text into that file

    A service is basically a program that runs in the background and auto-runs the program if the system restarts, with the help of the service you can able to start and stop the server easily.

     
    [Unit]
    Description=Valheim service
    Wants=network-online.target
    After=syslog.target network.target nss-lookup.target network-online.target
    
    [Service]
    Type=simple
    Restart=on-failure
    RestartSec=10
    StartLimitInterval=60s
    StartLimitBurst=3
    User=steam
    Group=steam
    ExecStartPre=steamcmd +login anonymous +force_install_dir /home/valheim +app_update 896660 validate +exit
    ExecStart=/home/valheim/start_valheim.sh
    ExecReload=/bin/kill -s HUP $MAINPID
    KillSignal=SIGINT
    WorkingDirectory=/home/valheim
    LimitNOFILE=100000
    
    [Install]
    WantedBy=multi-user.target
     

    Press CTRL + X (button) and then press Y (button) to save the file

     
    sudo cp valheim.service /etc/systemd/system && sudo systemctl daemon-reload
    sudo systemctl start valheim
    sudo systemctl enable valheim.service
     
     

    6. How to make yourself admin?

    To make yourself admin first get your STEAMID64, you can get STEAMID64 from steamid.net and then paste that id to adminlist.txt

    To gain full access to the server as a player you must make yourself admin.

     
    nano ~/.config/unity3d/IronGate/Valheim/adminlist.txt
     
    Follow and like us:

    About US

    Welcome to the Space Hosting Blog

    Stay updated with the latest news from the Top Tier Leading European cloud provider. Explore technical insights from our engineers, interviews with satisfied customers, and our posts on the digital revolution.

    How to Flush Hosts in MySQL?

    Learn the importance "FLUSH HOSTS" command in MySQL and the method of how to flush hosts in MySQL. This guide provides a comprehensive understanding of the process, walking you through when to use it, its implications, and detailed steps to execute the command...

    Icarus Dedicated Server Guide For the Beginners

    Navigate through the vast terrain of Icarus dedicated server guide to setting up your dedicated server. From choosing the server type, managing backups, and understanding technical requirements, to detailed steps on installing and configuring your server - we offer a...

    How to run your own Ark Dedicated Server

    To run your own Ark dedicated server may appear daunting, but this guide demystifies the process. From the initial setup to managing game mods, every aspect is covered. Whether you are a gaming enthusiast or a hosting business exploring new ventures, this guide...

    Best Dedicated Server Hosting for Games

    Unleash superior gaming experiences with our guide on the best dedicated server hosting for games. We delve into high-performance servers, ensuring smooth gameplay for various online games. Catering to hosting businesses, resellers, and individual gamers, our insights...

    What is Dedicated Web Hosting?

    Explore what is dedicated web hosting and its significance in ensuring high-performance web solutions. Learn about its benefits, costs, and how it compares to other hosting types like Shared Hosting, Virtual Private Servers (VPS), and Physical Server Hosting. Find out...

    Advantages and Disadvantages of Dedicated Web Hosting

    Explore the balance between the advantages and disadvantages of dedicated web hosting in our detailed guide. Understand the advantages, including total server control and unrivaled power, against the disadvantages like high costs and required technical knowledge....

    How to Host a CSGO Server on Linux as a beginner

    Immerse in the thrill of your favorite game by learning how to host a CSGO server. This guide provides step-by-step instructions, ensuring a seamless gaming experience. Perfect for gamers and server enthusiasts seeking to create their own private CSGO server. Let's...

    How to Host a CS 1.6 Server as a beginner

    Immerse in the thrill of your favorite game by learning how to host a CS 1.6 server. This guide provides step-by-step instructions, ensuring a seamless gaming experience. Perfect for gamers and server enthusiasts seeking to create their own private CS 1.6 server....

    How to Access a VPS via SSH Protocol

    Discover how to securely access your VPS (Virtual Private Server) using SSH (Secure Shell). We offer a step-by-step guide to establishing a connection using the root or VPS Control Panel. In this guide provided by Space Hosting, we will learn how to access VPS via ssh...

    Best Valheim Dedicated Servers: 13 Things to Know

    Discover the best Valheim dedicated servers for an optimal gaming experience. We've curated a list of top hosting providers, examining features, customer service, pricing, and more. From fast ping and 24/7 server availability to easy setup, find a server that fits...

    You May Also Like…

    How to Flush Hosts in MySQL?

    How to Flush Hosts in MySQL?

    Learn the importance "FLUSH HOSTS" command in MySQL and the method of how to flush hosts in MySQL. This guide provides...

    0 Comments

    Submit a Comment

    O seu endereço de email não será publicado. Campos obrigatórios marcados com *

    Pin It on Pinterest