GrampaMitch 2021 年 2 月 5 日 上午 10:31
Valheim Dedicated Server (Linux via Wine)
Ok, so today (2/5/2021) I decided to give Valheim a try. However, I wanted to setup a dedicated server for my friends and I to play on, rather than deal with 1 of us having to be online running a local dedi. I won't go into min/max server requirements for this game with respect to disk, memory, etc numbers. What I can tell you is that I rent a dedicated server from Contabo. Here's the basic info blurb from the confirmation email I received once I paid for it. (They do have servers in the U.S. now apparently) Dedicated Server 10-Core Intel Xeon E5 2630v4 (10 x 2,20 Ghz/per processor) RAM: 256 GB REG ECC Any combination of SSD/HDDs available 1Gbit/s port UNLIMITED Traffic Only 109.99 EUR / month One time setup fee: 0,00 EUR presently On this server I also run a full Ark crossplay cluster (9 * 70 slots), so adding a Valheim server was a trivial hit on resources at best. My OS of choice is Ubuntu (yymv) Step 1: Download and Install SteamCMD There are so many tutorials on how to do this, I won't even bother explaining it here (Google is your friend) https://developer.valvesoftware.com/wiki/SteamCMD Step 2: Download/Install Wine https://www.winehq.org/ Step 3: Download Game > steamcmd +@sSteamCmdForcePlatformType windows +login anonymous +force_install_dir /home/username/valheim +app_update 896660 validate +quit Step 4: Run Game server (ensure you do this in screen or tmux, if you don't know why, you shouldn't be running a server) * Note that this line is broken into several for readability, to run this you should remove the line breaks > xvfb-run --auto-servernum --server-args='-screen 0 640x480x24:32' wine ./valheim_server.exe -batchmode -nographics -name "Brothers of Honor" -port 22456 -world "Dedicated" -password "MySuperCoolDediServer" -public 1 Side Notes: I noticed there is an app for "Valheim dedicated server Linux" at https://steamdb.info/depot/896661/, however, I was not able to set that up correctly as it errored on steamcmd update with the following: Failed to install app '896661' (No subscription) SteamCMD wiki says to install the app with a valid login (instead of anonymous) and recommends using a seperate steam account. I'm not doing that.
< >
正在显示第 1 - 6 条,共 6 条留言
Metal_Warrior 2021 年 2 月 6 日 上午 7:11 
You may try that with the dedicated server account, AFAIK you don't have to pay for that. You just login with steamcmd and then download the stuff. I did that with my apprentices and Terraria (I think).
Jessie 2021 年 2 月 6 日 下午 12:43 
using a separate steam account is just to ensure that you don't put your own account at risk (since it would need credentials to login).

Create a steam account for the server and use that to login
https://developer.valvesoftware.com/wiki/SteamCMD#With_a_Steam_account

Then you can use the linux dedicate server instead of a workaround. (you don't need to buy the game to use the dedicated server)
Moins20 2021 年 5 月 4 日 上午 2:23 
Hi @all,
Just reacting to the message from the OP: I myself have installed a Valheim dedicated server on a VPS from Contabo. I have used the Docker image from Lloesche (lloesche/valheim-server-docker) - there is a linux server available, no need to use Wine.

All in all it took me perhaps 30 minutes to get the server running, plus 1 or 2 hours to fine tune things (enable the firewall on the VPS, install and configure Fail2ban, change SSH settings, schedule an automatic upload of Valheim saved game to my private NAS, enable automatic patching of Ubuntu).

I strongly recommend the Docker image, it is very well packaged and it comes with automatic update of the Valheim server, automatic backup of the game's world, and automatic reboot of the server if needed.

I have the basic VPS from Contabo at 5 € / mo and it runs really well. With 5 friends connected
to my game server the CPU load was around 25% and 2 GB of RAM consumed.

https://imgur.com/pzDRQV6

Hope this helps.
最后由 Moins20 编辑于; 2021 年 5 月 4 日 上午 2:47
Bro_Biden 2021 年 5 月 13 日 下午 4:25 
Who TF uses Linux?
Bro_Biden 2021 年 5 月 13 日 下午 4:25 
never mind, that was mean
noel.conac 2022 年 6 月 23 日 上午 1:13 
引用自 Moins20

All in all it took me perhaps 30 minutes to get the server running, plus 1 or 2 hours to fine tune things (enable the firewall on the VPS, install and configure Fail2ban, change SSH settings, schedule an automatic upload of Valheim saved game to my private NAS, enable automatic patching of Ubuntu).


Hope this helps.
What are the log files you used to configure fail2ban ?
< >
正在显示第 1 - 6 条,共 6 条留言
每页显示数: 1530 50