<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Working dedicated server on Debian 8.6 x64]]></title><description><![CDATA[<p>Got it working on Debian x64. I want to share my scripts how I did it, it is like <a class="plugin-mentions-user plugin-mentions-a" href="http://screeps.com/forum/uid/79">@coteyr</a> said <a href="/hc/en-us/community/posts/209369425-Dedicated-Server?input_string=Dedicated%20server%20on%20Debian%208.6%20x64" target="_blank" rel="nofollow noreferrer">here</a> but more detailed.</p>
<pre>## Set up dedicated screeps server.<br># Tested only on Debian 8.6 x64 with 512mb.<br><br>## Dependencies<br># To install steam, see https://wiki.debian.org/Steam<br>sudo apt-get install unzip git build-essential<br><br><br>## Setup node<br># Probably not the simplest way but it works.<br># Remove everything related to node, so that `node`, `nodejs`, `npm`, `n` or `node-gyp` is not found.<br>curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash<br>sudo aptitude install -y nodejs<br>sudo npm install npm@latest -g<br>sudo npm install node-gyp@latest -g<br>node -v # v6.9.1<br>npm -v # 3.10.9<br>node-gyp -v # v3.4.0<br><br><br>## Create user who will run server<br>adduser screeps<br>sudo su screeps</pre>
<pre># get ~/steamworks_sdk_137.zip from your steam developer account. It has to be v1.37!<br><br>## Set variables<br>STEAM_USER=<br>BETA_INVITE_CODE=<br><br><br>## Setup greenworks<br>cd ~<br>git clone https://github.com/greenheartgames/greenworks.git<br>cd greenworks/deps/<br>    unzip ~/steamworks_sdk_137.zip<br>    mv sdk steamworks_sdk<br>  cd ..<br>  npm install # if errors, do you have correct version of node and SDK?<br><br><br>## Setup steamcmd<br>wget http://media.steampowered.com/installer/steamcmd_linux.tar.gz<br>rm -rf steamcmd<br>mkdir ~/steamcmd<br>cd ~/steamcmd<br>  tar -xvzf ../steamcmd_linux.tar.gz<br><br><br>## Setup screeps for first time. It will ask password and always slows for 5-15min in the middle of download.<br>~/steamcmd/steamcmd.sh +force_install_dir ~/screeps +login $STEAM_USER +app_update 464350 -beta Server -betapassword $BETA_INVITE_CODE validate +exit<br><br><br>## Setup config: add steam_api_key from https://steamcommunity.com/dev/apikey<br>cd ~/screeps/server/<br>nano .screepsrc<br><br><br>## Setup launch scripts.<br>echo '#!/bin/bash<br>cd ~/steamcmd/<br>./steamcmd.sh +force_install_dir ~/screeps +login '$STEAM_USER' +app_update 464350 -beta Server -betapassword '$BETA_INVITE_CODE' validate +exit<br>cd ~/screeps/server<br>cp ~/greenworks/build/Release/greenworks-linux64.node ~/screeps/server/modules/backend/greenworks/lib/greenworks-linux64.node<br>for M in modules/*/<br>do<br>pushd $M<br>rm node_modules -Rf<br>npm install<br>npm build<br>popd<br>done<br>pushd modules/driver/native/<br>node-gyp configure<br>node-gyp build<br>popd<br>rm logs/* -Rf<br>node modules/launcher/bin/screeps.js start' &gt; ~/rebuild_server.sh<br>chmod +x ~/rebuild_server.sh<br><br>echo '#!/bin/bash<br>cd ~/screeps/server<br>node modules/launcher/bin/screeps.js start' &gt; ~/launch_server.sh<br>chmod +x ~/launch_server.sh<br><br><br>## Start server!<br>~/rebuild_server.sh<br># ~/launch_server.sh</pre>]]></description><link>http://screeps.com/forum/topic/499/working-dedicated-server-on-debian-8-6-x64</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 14:34:29 GMT</lastBuildDate><atom:link href="http://screeps.com/forum/topic/499.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 01 Nov 2016 11:55:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Working dedicated server on Debian 8.6 x64 on Invalid Date]]></title><description><![CDATA[<p>Got it working on Debian x64. I want to share my scripts how I did it, it is like <a class="plugin-mentions-user plugin-mentions-a" href="http://screeps.com/forum/uid/79">@coteyr</a> said <a href="/hc/en-us/community/posts/209369425-Dedicated-Server?input_string=Dedicated%20server%20on%20Debian%208.6%20x64" target="_blank" rel="nofollow noreferrer">here</a> but more detailed.</p>
<pre>## Set up dedicated screeps server.<br># Tested only on Debian 8.6 x64 with 512mb.<br><br>## Dependencies<br># To install steam, see https://wiki.debian.org/Steam<br>sudo apt-get install unzip git build-essential<br><br><br>## Setup node<br># Probably not the simplest way but it works.<br># Remove everything related to node, so that `node`, `nodejs`, `npm`, `n` or `node-gyp` is not found.<br>curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash<br>sudo aptitude install -y nodejs<br>sudo npm install npm@latest -g<br>sudo npm install node-gyp@latest -g<br>node -v # v6.9.1<br>npm -v # 3.10.9<br>node-gyp -v # v3.4.0<br><br><br>## Create user who will run server<br>adduser screeps<br>sudo su screeps</pre>
<pre># get ~/steamworks_sdk_137.zip from your steam developer account. It has to be v1.37!<br><br>## Set variables<br>STEAM_USER=<br>BETA_INVITE_CODE=<br><br><br>## Setup greenworks<br>cd ~<br>git clone https://github.com/greenheartgames/greenworks.git<br>cd greenworks/deps/<br>    unzip ~/steamworks_sdk_137.zip<br>    mv sdk steamworks_sdk<br>  cd ..<br>  npm install # if errors, do you have correct version of node and SDK?<br><br><br>## Setup steamcmd<br>wget http://media.steampowered.com/installer/steamcmd_linux.tar.gz<br>rm -rf steamcmd<br>mkdir ~/steamcmd<br>cd ~/steamcmd<br>  tar -xvzf ../steamcmd_linux.tar.gz<br><br><br>## Setup screeps for first time. It will ask password and always slows for 5-15min in the middle of download.<br>~/steamcmd/steamcmd.sh +force_install_dir ~/screeps +login $STEAM_USER +app_update 464350 -beta Server -betapassword $BETA_INVITE_CODE validate +exit<br><br><br>## Setup config: add steam_api_key from https://steamcommunity.com/dev/apikey<br>cd ~/screeps/server/<br>nano .screepsrc<br><br><br>## Setup launch scripts.<br>echo '#!/bin/bash<br>cd ~/steamcmd/<br>./steamcmd.sh +force_install_dir ~/screeps +login '$STEAM_USER' +app_update 464350 -beta Server -betapassword '$BETA_INVITE_CODE' validate +exit<br>cd ~/screeps/server<br>cp ~/greenworks/build/Release/greenworks-linux64.node ~/screeps/server/modules/backend/greenworks/lib/greenworks-linux64.node<br>for M in modules/*/<br>do<br>pushd $M<br>rm node_modules -Rf<br>npm install<br>npm build<br>popd<br>done<br>pushd modules/driver/native/<br>node-gyp configure<br>node-gyp build<br>popd<br>rm logs/* -Rf<br>node modules/launcher/bin/screeps.js start' &gt; ~/rebuild_server.sh<br>chmod +x ~/rebuild_server.sh<br><br>echo '#!/bin/bash<br>cd ~/screeps/server<br>node modules/launcher/bin/screeps.js start' &gt; ~/launch_server.sh<br>chmod +x ~/launch_server.sh<br><br><br>## Start server!<br>~/rebuild_server.sh<br># ~/launch_server.sh</pre>]]></description><link>http://screeps.com/forum/post/2400</link><guid isPermaLink="true">http://screeps.com/forum/post/2400</guid><dc:creator><![CDATA[akuukis]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Working dedicated server on Debian 8.6 x64 on Invalid Date]]></title><description><![CDATA[<p>Nice, will try this to recreate it on RaspberryPi. Thanks for posting</p>
<p>update1: Raspbian doesnt support steam's architecture, retry with just debian.</p>]]></description><link>http://screeps.com/forum/post/2401</link><guid isPermaLink="true">http://screeps.com/forum/post/2401</guid><dc:creator><![CDATA[FlyingHusky]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Working dedicated server on Debian 8.6 x64 on Invalid Date]]></title><description><![CDATA[<p>I got this working on Raspberry Pi 3, woo!<br>I had to modify backend/lib/game/server.js and backend/lib/game/api/auth.js to comment out the greenworks API calls.</p>
<h4>backend/lib/game/server.js:</h4>
<pre>// try {<br>// if(!greenworks.isSteamRunning()) {<br>// throw new Error('Steam is not running');<br>// }<br>// if(!greenworks.initAPI()) {<br>// throw new Error('greenworks.initAPI() failure');<br>// }<br>// console.log("Connected to local Steam client, using native authentication");<br>// useNativeAuth = true;<br>// }<br>// catch(e) {<br>// console.log("Connecting to local Steam client failed:", e.message);<br><br>// Need these lines to use Steam Web API<br> console.log("Using Steam Web API authentication instead");<br> if (!process.env.STEAM_KEY) {<br> throw new Error('STEAM_KEY environment variable is not set!');<br> }<br> useNativeAuth = false;<br>// }</pre>
<h4>backend/lib/game/api/auth.js:</h4>
<pre>if(request.body.useNativeAuth) {<br> if(!useNativeAuth) {<br> return q.reject('authentication method is not supported');<br> }<br> // Removed greenworks auth stuff... do we need to do something else?<br> }</pre>
<p> </p>
<p>...but now all my rooms are red and I can't choose a spawn... possibly because I can't set a password?</p>]]></description><link>http://screeps.com/forum/post/2402</link><guid isPermaLink="true">http://screeps.com/forum/post/2402</guid><dc:creator><![CDATA[SpatulaNinja]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>