Skip to content

LachlanMac/Dedicated_Valheim_Server_Script

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 

Repository files navigation

Dedicated_Valheim_Server_Script

Setup script for linux installations

Twitch Channel: zerobandwidth

Build Valheim server with one script

How to set up a Linux Valheim dedicated server

DONT USE ON PRODUCTION SERVER UNLESS YOU KNOW WHAT YOU ARE DOING

Tested with Ubuntu 18 64 LTS DigitalOcean, AWS and Azure

DigitalOcean:
edit 50-cloud-init.yaml
vi /etc/netplan/50-cloud-init.yaml

remove private IP address on eth0 (might be 10.10.something - do not remove your public IP the same one you use to SSH into the server or access it)

netplan apply
systemctl status valheimserver.service
reboot

ENJOY!!!

VM'd with the follow requirements: CPU: x4 RAM: 8GB HD: 250GB+

Use my referral link if you do not already have a DigitalOcean Account https://m.do.co/c/9d2217a2725c

Run as root(if brave enough) or sudo current user

Install GIT to pull down script

sudo apt-get install -y git net-tools

Change to OPT Dir

cd /opt

Clone GIT from Nimdy (Zero Bandwidth)

sudo git clone https://github.com/Nimdy/Dedicated_Valheim_Server_Script.git

Change dir to Dedicated_Valheim_Server_Script

cd Dedicated_Valheim_Server_Script/

Allow script to execute

sudo chmod +x build_dedicated_valheim_server.sh

Change PASSWORDS and CHANGE ME AREAS before launching

(I live in vi... use whatever you wish)
sudo vi build_dedicated_valheim_server.sh
#Display number lines in vi
:set number
#Change the following lines
Line Number: 45 (Change password for your steam user)
Line Number: 84
-name "DISPLAYNAMECHANGEME"
-world "CHANGEMEWORLDNAME"
-password "CHANGEMEPASSWORD"

#Save the file
(press ESC and save/exit by entering)
:wq!

Execute installation file

sudo ./build_dedicated_valheim_server.sh

A new version of /boot/grub/menu.lst is available - Do this twice

Select  keep the local version currently installed

Agree to STEAM LICENSE AGREEMENT

Select Ok
Select Agree
Press Enter

About

Build Valheim server with one script

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Shell 100.0%