My Twitch Channel: https://www.twitch.tv/zerobandwidth
My Discord for Tech Support https://discord.gg/ejgQUfc
Game is in Early Access meaning tons of updates and broken servers. Please post issues so we can make our edits and keep you up and running!
Worlds are saved: /home/steam/.config/unity3d/IronGate/Valheim/worlds/(here.fwl)
How to set up a Linux Valheim dedicated server:
Use my referral link if you do not already have a DigitalOcean Account, gives me free credit on my account, if not no biggie! https://m.do.co/c/9d2217a2725c
Use my code and you get $100 in credit over 60 days. (good way to test your dedicated server)
Never run any script on a production server, unless you know what you are doing.
Create VM with minimum 2 CPUs and 4GB of ram. Otherwise server won't start.
DigitalOcean private IP and routing fix for Valheim:
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
rebootENJOY!!!
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
# There are 4 things you need to change!
# NOTE: Minimum password length is 5 characters & Password cant be in the server name.
userpassword="user_password" <---password for the new Linux User it creates
password="passw0rd" <---password for the Valheim Server Access
displayname="server display name" <---Public display name for server
worldname="111111111" <---local inside world name
#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 I Agree
Press Entersudo ufw allow 2456:2458/tcp
sudo ufw allow 2456:2458/udpsudo systemctl stop valheimserver.servicesudo rebootsudo systemctl status valheimserver.service###Congratz! You did it, now get out there and start exploring with your friends!!!
