Starting a Mulitplayer Server over Debian

Arrange meetings with other people to play MP, announce your servers.
Lakuf
Manual Inserter
Manual Inserter
Posts: 3
Joined: Wed Aug 26, 2015 4:43 am
Contact:

Starting a Mulitplayer Server over Debian

Post by Lakuf »

Hi,

how can i start a mulitplayer server in Debian ?.

Is there somewhere a step by step Howto ?.

greetings
Lakuf
daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: Starting a Mulitplayer Server over Debian

Post 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
quick links: log file | graphical issues | wiki
Lakuf
Manual Inserter
Manual Inserter
Posts: 3
Joined: Wed Aug 26, 2015 4:43 am
Contact:

Re: Starting a Mulitplayer Server over Debian

Post 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
daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: Starting a Mulitplayer Server over Debian

Post 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.
quick links: log file | graphical issues | wiki
Fahrradkette
Inserter
Inserter
Posts: 45
Joined: Thu Aug 27, 2015 4:37 pm
Contact:

Re: Starting a Mulitplayer Server over Debian

Post 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
Post Reply

Return to “Multiplayer”