Skip to content

Screepspl.us agent with Compute Engine

bonzaiferroni edited this page Sep 3, 2017 · 6 revisions

If you are using the Grafana service from screepspl.us, there is a cheap and easy solution for running the agent remotely. I use the Compute Engine from Google Cloud Platform and it only costs about 35 cents a month. Here is how you can set it up.

  1. Create an instance with google cloud compute, least expensive machine will work. I used micro with a Debian boot disk. I used all the default settings.
  2. Once your machine is ready to use, start an SSH session. I just used the browser window. (VM instances -> Remote Access -> SSH -> Open in browser window)
  3. Install git
sudo apt-get install -y git
  1. Install nodejs
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
  1. Clone the screepspl.us agent
git clone https://github.com/ScreepsPlus/node-agent.git
  1. Navigate to node-agent folder and install
npm install
  1. Log in to screepspl.us and get your token, make a copy of config.js.sample and use nano to edit config.js
cp config.js.sample config.js
nano config.js
  1. Start the agent running in another thread so that it continues after you log out of the SSH session:
screen -d -m -S screeps node node-agent/app.js
  1. Complete the instructions at https://screepspl.us/agent to set up your screeps codebase.
  2. Support this excellent service and its author with patreon! https://www.patreon.com/ags131