-
Notifications
You must be signed in to change notification settings - Fork 274
/
INSTALL
67 lines (46 loc) · 2.02 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
CODER FOR RASPBERRY PI
The easy way...
Coder for Raspberry Pi is distributed as a Pi SD Card image.
If you want to go the easy route, please check out the
documentation at http://goo.gl/coder
EVERYONE ELSE
If you want to install Coder on something else, or would
like to install it on an existing Raspberry Pi, you can
manually install it as well.
BEFORE YOU START:
I recommend you do this as a normal user and not root.
The official pi distro has a "coder" user that Coder runs
under, and ports 80 and 433 are forwarded to 8080/8081.
MANUAL INSTALL:
1. You need to have node.js and npm installed
2. Download Coder from git.
# git clone https://github.com/googlecreativelab/coder.git
3. Install the basic Coder apps.
# cd coder-apps
# ./install_common.sh ../coder-base
Optional: Raspberry Pi additions to the code can be installed with:
# ./install_pi.sh ../coder-base
Note that there are a number of additional changes made to the OS.
These additional configurations can be found in the raspbian-addons
directory. See below.
4. In coder-base run "npm install" to download all the
needed modules.
5. Edit config.js to your liking. I recommend starting
with the settings in config.js.localhost and running
the localhost server.
6. Start Coder
# cd coder-base
# node localserver.js
If you want to run Coder on an external port, you'll need
to run server.js instead of localserver.js. This requires
a bit of port forwarding setup in iptables. Look in
the raspbian-addons directory to see the customizations that
were made to the stock raspbian distro.
The raspberry pi version of Coder has some other
tweaks that allow you to change your wifi settings
and keep your Pi password in sync with your Coder password.
There's some convoluted system configuration involved, which is
probably why you'd want to start with the Coder disk image,
but the modified apps are available by running ./install_pi.sh
after step 3. Modifications to the stock raspbian configuration
can be found in raspbian-addons.