A factorio init script for linux
Among others:
- wget
- cURL
- xz-utils
- tar
- git
Every command listed here should be run as a non-root user. My suggestion is to do the following:
$ printf "Creating user factorio...\n" #First time only
$ adduser factorio
$ usermod -aG factorio factorio
$ printf "Logging in as factorio user:\n" #Every time you need to make changes
$ su factorioCreate a directory where you want to store this script along with configuration. (either copy-paste the files or clone from github):
$ cd '~'
$ git clone https://github.com/EssGeeEich/factorio-init.git finitThe config has options for declaring a alternate glibc root. The user millisa over on the factorio forums has created a wonderful guide to follow on creating this alternate glibc root ( side by side ) here: https://forums.factorio.com/viewtopic.php?t=54654#p324493
First things first, you should create a directory for your new instance, whose name ends with the port the server will be running on.
$ mkdir factorio-34197 # Create the new instance directory
$ cd factorio-34197 # Enter it in order to manage this instance
$ ~/finit/factorio install # Create the new instance
$ cp data/server-settings.example.json data/server-settings.json # Copy the sample settings file
$ nano data/server-settings.json # Edit the settings file to your likingThe installation routine creates Factorio's config.ini automatically.
By entering an instance directory, you can manage it.
In the next example, you can see how to start an instance.
Run ~/finit/factorio help to see what else you can do.
$ cd ~/factorio-34197 # Enter it in order to manage this instance
$ ~/finit/factorio start # Start it- To all who find this script useful in one way or the other
- A big thank you to Wube for making Factorio
- A special thanks to NoPantsMcDance, Oxyd, HanziQ, TheFactorioCube and all other frequent users of the #factorio channel @ esper.net
- Thank you to Salzig for pointing me in the right direction when it comes to input redirection
- At last, but not least; Thank you to all contributors and users posting issues in my github project or on the factorio forums
You are all a great source of motivation, thank you.
This code is realeased with the MIT license, see the LICENSE file.