-
Notifications
You must be signed in to change notification settings - Fork 275
Load onto a device without installing OS
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
Coder has no dependency on redis
or any other non-standard tools besides node
. node is easy to install with Installer packages for Mac and Windows available from their downloads page. Simply install node and follow the steps on this page and you can run Coder on any system.
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.
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
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] );
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.