Skip to content
Federico Peliti edited this page Jun 26, 2018 · 4 revisions

Raspberry Pi Server

Step by step, how to setup a SpaceBrew server on RasPi from scratch.

  1. Download Raspbian OS.

  2. Download Etcher to flash Raspbian on a micro-SD. Burn the SD and put it into the Raspberry.

  3. Connect to the raspberry via a serial cable and run ifconfig to find the IP.

  4. Run raspi-config to enable SSH and setup the wifi credentials.

  5. Install Netatalk:

    sudo apt-get update
    sudo apt-get install netatalk
    

    Use the raspberry password. On your mac go to the finder, press Command+K, connect to afp://192.168.1.1 (use your IP address instead).

  6. SSH into the Raspberry from the terminal.

  7. Copy MRHT

  8. Install Node.js: sudo apt-get install node , and check that has been installed properly by running node -v

  9. Install Npm: sudo apt-get install npm

  10. cd into the spacebrew-master folder and run: npm install to install the dependencies.

  11. Set up a test server by following point 5 and 6 here.

  12. To start the server automatically on boot edit the crontab by adding this line:

    @reboot /usr/bin/node /home/pi/Mixed-Reality-Hardware-Toolkit/Spacebrew/spacebrew-master/node_server.js &

    Check that the path to the SpaceBrew node_server script is right.

Clone this wiki locally