Abstract
- Dependent installation.
- Server installation.
- Operation and maintenance methods.
Thanks
Thanks Thanks to “Linux Game Server Managers” for providing the build script.
Server
Minimum Recommended Distros

Ubuntu 16.04 LTS

Debian 9

CentOS (Incompatible)
Since I am accustomed to using the Centos environment, I will correct and improve the official incompatibility issues.
Since centos 8 has officially stopped maintenance, centos 7 is come to an end too, it is recommended to use Rocky Linux as a replacement system.
3.1. Other Distros
Although not tested, any distro with tmux => 1.6 and glibc => 2.18 should also be compatible with Factorio servers.Dependencies
Please select the corresponding code for installation according to your operating system.
4.1. Centos / Rocky Linux
EPEL is required to install some dependencies needed for using LinuxGSM on CentOS / Rocky Linux.1 | yum install epel-release |
1 | yum install curl wget tar bzip2 gzip unzip python3 binutils bc jq tmux glibc.i686 libstdc++ libstdc++.i686 xz |
4.2. Ubuntu
Ubuntu
1 | sudo dpkg --add-architecture i386; sudo apt update; sudo apt install curl wget file tar bzip2 gzip unzip bsdmainutils python3 util-linux ca-certificates binutils bc jq tmux netcat lib32gcc1 lib32stdc++6 xz-utils |
4.3. Debian
Debian
Debian =< 101 | sudo dpkg --add-architecture i386; sudo apt update; sudo apt install curl wget file tar bzip2 gzip unzip bsdmainutils python3 util-linux ca-certificates binutils bc jq tmux netcat lib32gcc1 lib32stdc++6 xz-utils |
1 | sudo dpkg --add-architecture i386; sudo apt update; sudo apt install curl wget file tar bzip2 gzip unzip bsdmainutils python3 util-linux ca-certificates binutils bc jq tmux netcat lib32gcc-s1 lib32stdc++6 xz-utils |
Install
5.1. Create a user and login
Create a user1 | adduser fctrserver |
EN: Entering a password under Linux will not display the input on the screen.
1 | passwd fctrserver |
1 | su fctrserver |
5.2. Download linuxgsm.sh
Switch to user directory1 | cd ~ |
1 | wget -O linuxgsm.sh https://linuxgsm.sh && chmod +x linuxgsm.sh && bash linuxgsm.sh fctrserver |
5.3. Run the installer following the on-screen instructions.
Run script1 | ./fctrserver install |
Dependencies will be checked during the installation process. If any dependencies fail the check-in the Checking Dependencies step, please select n when prompted: Was the install successfully? [Y/n]
(Centos / Rocky Linux)
1 | yum install -y nmap-ncat |
1 | ================================= |
1 | ./fctrserver start |
Basic Usage
All commands
A complete list of commands can be found by typing. Below are the most common commands available.1 | ./fctrserver |
Running
start1 | ./fctrserver start |
1 | ./fctrserver stop |
1 | ./fctrserver restart |
Console allows you to view the live console of a server as it is running and allow you to enter commands; if supported.
1 | ./fctrserver console |
Update
Update checks for any server updates and applies them. The server will update and restart only if required.
1 | ./fctrserver update |
Debugging
DetailsYou can get all important and useful details about the server such as passwords, ports, config files etc.
1 | ./fctrserver details |
Use debug mode to help you if you are having issues with the server. Debug allows you to see the output of the server directly to your terminal allowing you to diagnose any problems the server might be having.
1 | ./fctrserver debug |
Server logs are available to monitor and diagnose your server. Script, console and game server (if available) logs are created for the server.
1 | /home/fctrserver/logs |
Backup will allow you to create a complete tar bzip2 archive of the whole server.
1 | ./fctrserver backup |
LinuxGSM can monitor the game server by checking that the proccess is running and querying it. Should the server go offline LinuxGSM can restart the server and send you an alert. You can use cronjobs to setup monitoring.
1 | ./fctrserver monitor |
Mods
1 | ~/serverfiles/ |
1 | achievements.dat |
1 | ./fctrserver restart |
Enjoy the game ~