Credit and modivation from GeekHead https://www.youtube.com/channel/UCG4EFg9NAskd3X7RoyiomuA
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
rebootENJOY!!!
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
sudo apt-get install -y git net-toolscd /optsudo git clone https://github.com/Nimdy/Dedicated_Valheim_Server_Script.gitcd Dedicated_Valheim_Server_Script/sudo chmod +x build_dedicated_valheim_server.sh(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!sudo ./build_dedicated_valheim_server.shSelect keep the local version currently installedSelect Ok
Select Agree
Press Enter