Page 1 of 1

Starting a Mulitplayer Server over Debian

Posted: Wed Aug 26, 2015 6:06 am
by Lakuf
Hi,

how can i start a mulitplayer server in Debian ?.

Is there somewhere a step by step Howto ?.

greetings
Lakuf

Re: Starting a Mulitplayer Server over Debian

Posted: Wed Aug 26, 2015 12:10 pm
by daniel34
There is a step-by-step guide on the wiki: https://forums.factorio.com/wiki/inde ... ess_server

I'm running a factorio server on debian 8.1 without problems.
Short guide how I did it:
  • Download and extract the factorio x64 linux zip to the server
  • Start factorio in server mode from the command line --> it will have missing libraries
  • Install those libraries with apt-get
  • Repeat until all libraries are installed and the server starts

Re: Starting a Mulitplayer Server over Debian

Posted: Thu Aug 27, 2015 4:45 am
by Lakuf
Thanks for the Info, i own a Debian 7 wheezy Root.

in Step 2 there was some errors, cant install :(.

I Will first try to update to Debian 8.1

Re: Starting a Mulitplayer Server over Debian

Posted: Thu Aug 27, 2015 9:17 am
by daniel34
It should work the same on debian 7 and 8.

I forgot to mention, you need to set the permissions for the factorio binary to executable, otherwise you get an error.
Just go into the x64 folder and run

Code: Select all

chmod +x factorio
Should you still have problems, post your error message here, that would help a lot.
I might write a short step-by-step sometime, because installation on a debian server with root should be just a few commands.

Re: Starting a Mulitplayer Server over Debian

Posted: Thu Aug 27, 2015 4:58 pm
by Fahrradkette
If you get some errors about Xorg, try out the headless part. In essence you have to create dummy libraries for the graphic, audio and mouse pointer:

cd to your factorio/bin/x64/ directory and build those:

Code: Select all

echo 'void*XOpenDisplay(){return 0;}int XInitThreads(){return 1;}' > x.c && cc -shared -o libX11.so.6 x.c && touch empty.c && for i in libXext.so.6 libXfixes.so.3 libXcursor.so.1 libXrender.so.1 libXrandr.so.2 libXinerama.so.1 libGL.so.1 libXi.so.6 libXcursor.so.1; do cc -shared -o $i empty.c; done
to run factorio with those dummy libraries instead of the system libraries run it using this, factorio/bin/x64/ should be the current directory:

Code: Select all

LD_LIBRARY_PATH=. ./factorio --start-server --create mymap
that creates a new map, if you want to use an old one, for example "bestmap.zip" run

Code: Select all

LD_LIBRARY_PATH=. ./factorio --start-server bestmap
instead.

Hope that did help you

Fahrrad

code is from https://forums.factorio.com/forum/vie ... 53&t=14273