Battle Cry of Freedom > General Discussion
Servers on Linux
I'm slightly hurt that I did not see Linux servers from the get go, as I thought Unity was this cool engine with a single click build option for Linux. Anyway, of course it is manageable to run it on Linux with some quirks, thanks for even providing server files though!
You need, as usual, to use wine.
But as it seems that the server won't run without opening a window, you also need to install xvfb-run.
And then you just start the server with "xvfb-run --auto-servernum --server-args='-screen 0 640x480x24:32' wine BCoF.exe -batchmode -nographics -server"
and voila, the server runs!
I did however notice a base cpu usage of 40% (of a single core on a 4Ghz Xeon) on start of an empty server, once map change occurred it went down to 9-10%. Not sure if that's normal or a problem generated by not running things on Windows. Ram usage is 4,7GB.
is just because no official linux support for bcof server
but yes with linux you have significant performance drops
and its bugy
Glad to see that you were able to manage to run the server on Linux with some tweaks. Regarding the CPU usage, it does seem a bit high for an empty server, but it's not uncommon for Windows applications running through Wine to use more resources than they would natively. However, as you mentioned, the usage went down significantly after the map change, which is a good sign. Thanks for sharing your solution with the community, and I hope that it helps others who may be trying to run servers on Linux. I would also recommend checking out https://tuxcare.com/extended-lifecycle-support/centos-7-extended-support/ for more useful info. It's a good source for any Linux user.
 Message IndexGo to full version