From af92716c7754de73ecb16b6d1acf6e9611116158 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 22 Dec 2016 16:09:20 +0100 Subject: [PATCH] Ubuntu install instructions added --- README.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2a05b561..2d03c6d4 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ There are no requirements for other mods, they can be ran in any configuration a You can change the name and path expected in config.json if wanted. -3. node client.js [instancename] +3. node client.js start [instancename] Repeat step 3 for more servers on one machine. You should be able to find its port by looking at the console output or at the slave section on master:8080 @@ -59,3 +59,25 @@ Repeat step 3 for more servers on one machine. You should be able to find its po 2. Drop it into ./factorio/mods 3. Run factorio and connect to slave as a normal MP game. + +#Ubuntu setup + +Master and all slaves: + + sudo curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash - && sudo apt install -y git nodejs && git clone https://github.com/Danielv123/factorioClusterio.git && cd factorioClusterio && npm install + +downloads and installs nodejs, git and clusterio. + +**Master** + + node master.js + +**Slave** + +Download factorio with curl. Make sure to insert the correct version number. + +Start the slave with node client.js + + curl -o factorio.tar.gz -L https://www.factorio.com/get-download/0.14.21/headless/linux64 && tar -xvzf factorio.tar.gz + + node client.js start [instancename]