This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
|
oak:tutorials:localserver [2016/10/25 21:01] digistump |
oak:tutorials:localserver [2016/12/08 21:38] pfeerick mis-numbered steps |
||
|---|---|---|---|
| Line 30: | Line 30: | ||
| ===== Installing the Particle CLI Tool ===== | ===== Installing the Particle CLI Tool ===== | ||
| - | * With node installed in the last step you can install the Particle CLI tool with this command: | + | * With node installed in the last step you can install the Particle CLI tool with this command: <code>npm install -g particle-cli</code> |
| - | <code>npm install -g particle-cli</code> | + | |
| + | * If you are on the Raspberry Pi, you will need to use the following command so that the serialport dependency is successfully compiled as there are no pre-compiled binaries for the Raspberry Pi/ARM platform: <code>sudo npm install -g particle-cli --unsafe-perm --build-from-source</code> | ||
| ===== Setting up an Oak to use the Local Server ===== | ===== Setting up an Oak to use the Local Server ===== | ||
| Line 70: | Line 72: | ||
| - | ==== 2. Copy the device Public Key to the Server ==== | + | ==== 3. Copy the device Public Key to the Server ==== |
| In the server folder create a core_keys folder if it does not exist. | In the server folder create a core_keys folder if it does not exist. | ||
| Line 92: | Line 94: | ||
| - | ==== 3. Set the Particle CLI tool to allow it to talk to the local server ==== | + | ==== 4. Set the Particle CLI tool to allow it to talk to the local server ==== |
| Source: https://docs.particle.io/support/troubleshooting/cloud-solutions/photon/ | Source: https://docs.particle.io/support/troubleshooting/cloud-solutions/photon/ | ||
| Line 107: | Line 109: | ||
| This adds the local server ip to the cli tool, switches to using it, and creates an account on the local cloud. | This adds the local server ip to the cli tool, switches to using it, and creates an account on the local cloud. | ||
| - | ==== 4. Restart Oak so it connects ==== | + | ==== 5. Restart Oak so it connects ==== |
| Stop and restart the server. | Stop and restart the server. | ||