Skip to content

Quick and dirty web gui used to control the game servers. Game and Apache are run on the same server, for now.

License

Notifications You must be signed in to change notification settings

Cogito/Web_Control

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web_Control

Quick and dirty web gui used to control the game servers. Game and Apache are run on the same server, for now.

Requirements

(Realized this was kind of important... so we're working on it)

configure the sudoers file to allow www-data access to screen and gcc www-data ALL=(ALL:ALL) /usr/bin/screen * www-data ALL=(ALL:ALL) /usr/bin/gcc * Or else you will be unable to start the factorio server from the web control

Ubuntu 16.06 (or any other linux of your choosing, if you have the know-how to figure it out)

Apache2 with SSL Enabled. (Web Control is set to only work on a an https connection)

php7

Node.js (https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions)

Installation

Easy Install! wget https://raw.githubusercontent.com/3RaGaming/Web_Control/master/install.sh sudo bash install.sh

This will run you through the entire setup process. Once the program is installed on the server, you'll be instructed on how to access the web gui to continue the rest of the configuration.

Or if you prefer to do it manually, here are the steps. Right now the file path dependancies are as follows:
/var/www/html for the web files
/var/www/factorio for the server save locations.
/usr/share/factorio/ for the factorio instance itself
Basically, you should treat /var/www/ as the root directory for all web_control files.

To compile the manage.c program, you must install gcc.

  1. Open a Terminal window and navigate to cd /var/www/factorio

  2. Run the command gcc -o managepgm -pthread manage.c (On success, nothing should appear in the terminal. If an error message appears, message zackman0010 with the error message.)

  3. Run the command npm i --save --no-optional discord.js (If a message appears saying missing requirements, ignore it. It's only the voice server parts, which are not used in this program)

Once the server files are all installed, and you have web access, there is a button at the top of the page to update from the master repo. This will easily keep your server up to date. We reccomend following our updates, as if a recompile of the manage.c is ever necessary, you may need to restart your factorio server(s).

About

Quick and dirty web gui used to control the game servers. Game and Apache are run on the same server, for now.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 78.7%
  • PHP 10.5%
  • CSS 5.1%
  • C 4.0%
  • Shell 1.7%