Skip to content

Load onto a device without installing OS

Eric Gundrum edited this page Oct 3, 2013 · 7 revisions

Install and Setup

Get the coder source tree using the command line: git clone https://github.com/googlecreativelab/coder

Set your working directory to the coder node app root: cd coder-base

Install node modules required for coder: npm install

Config

Replace the first group of lines with:

exports.listenIP = '127.0.0.1'; exports.listenPort = '8081'; exports.httpListenPort = '8080'; exports.cacheApps = true; exports.httpVisiblePort = '8080'; exports.httpsVisiblePort = '8081';

On Mac OS X no changes are needed in config.js. Possibly this also is true for other OSes.

On Linux?

If you are on Linux run this command. You must have cd'd into the coder-base directory within your coder installation.

echo "" > sudo_scripts/setpipass

On Mac OS X?

Probably you don't want Coder to try to set a system password for the pi account. In fact, it may best if coder didn't perform any actions using sudo so we change this instance to something innocuous. (Maybe the coder source can be changed to specify the sudo tool in config.js.)

In coder-base/apps/auth/app.js b/coder-base/apps/auth/app.js, change line 355 and line 440 from

var setpass = spawn( '/usr/bin/sudo', [setpipass] );

to

var setpass = spawn( '/bin/echo', [setpipass] );

Run

Type into the command line:

node server.js

And wait. The server should be running at https://127.0.0.1:8081. Note that if you don't specify https you may find the page hangs until timeout.

You may have warnings about security in your browser; ignore these messages -- they are caused by the self-signed certificate.

Information via:

This tutorial.

Clone this wiki locally