Run Coder for Raspberry Pi on Your Linux PC

That cool little “Coder for Raspberry Pi” project from Google which I linked to earlier doesn’t just run on Raspberry Pi. You can run it on any old Linux PC (Mac works too, but the instructions are slightly different).

I set it up in less than 2 minutes using these commands (note that I’m running Debian Sid):

    sudo useradd -M pi
    sudo apt-get install redis-server
    cd ~/projects
    git clone https://github.com/googlecreativelab/coder.git
    cd coder/coder-base
    npm install
    npm start

Node.js is also a requirement, so if you don’t have that, you’ll need to install that at step 2 as well.

Once everything is up and running, point your browser at https://localhost:8081/. You’ll need to specify a password the first time you run Coder, after which you’ll be able to try the environment out. It’s pretty neat, and the sample clone of Asteroids is quite addictive!

  1. […] Run Coder for Raspberry Pi on Your Linux PC (chrismcleod.me) […]

    Like

  2. had to putz with this a bit on ubuntu, needed to install nodejs and nodejs-legacy

    Like

  3. I get the following error from npm install using Ubuntu 12.04LTS.

    npm http GET https://registry.npmjs.org/express/3.1.0
    npm http GET https://registry.npmjs.org/redis/0.8.2
    npm http GET https://registry.npmjs.org/mustache/0.7.2
    npm http GET https://registry.npmjs.org/consolidate/0.8.0
    npm http GET https://registry.npmjs.org/socket.io/0.9.13
    npm http GET https://registry.npmjs.org/express-params/0.0.3
    npm http GET https://registry.npmjs.org/bcrypt/0.7.4
    npm http GET https://registry.npmjs.org/connect
    npm http GET https://registry.npmjs.org/cookie

    npm ERR! Error: failed to fetch from registry: mustache/0.7.2
    npm ERR! at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12
    npm ERR! at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)
    npm ERR! at Request._callback (/usr/share/npm/lib/utils/npm-registry-client/request.js:136:18)
    npm ERR! at Request.callback (/usr/lib/nodejs/request/main.js:119:22)
    npm ERR! at Request. (/usr/lib/nodejs/request/main.js:212:58)
    npm ERR! at Request.emit (events.js:88:20)
    npm ERR! at ClientRequest. (/usr/lib/nodejs/request/main.js:412:12)
    npm ERR! at ClientRequest.emit (events.js:67:17)
    npm ERR! at HTTPParser.onIncoming (http.js:1261:11)
    npm ERR! at HTTPParser.onHeadersComplete (http.js:102:31)
    npm ERR! You may report this log at:
    npm ERR!
    npm ERR! or use
    npm ERR! reportbug –attach /home/shane/projects/coder/coder-base/npm-debug.log npm
    npm ERR!
    npm ERR! System Linux 3.5.0-45-generic
    npm ERR! command “node” “/usr/bin/npm” “install”
    npm ERR! cwd /home/shane/projects/coder/coder-base
    npm ERR! node -v v0.6.12
    npm ERR! npm -v 1.1.4
    npm ERR! message failed to fetch from registry: mustache/0.7.2
    npm ERR!
    npm ERR! Additional logging details can be found in:
    npm ERR! /home/shane/projects/coder/coder-base/npm-debug.log
    npm not ok

    Any help would be appreciated

    Thanks

    Like

Comments are closed.

%d bloggers like this: