From 6b6d8fcc7cda6122acb749353894968fb51b4001 Mon Sep 17 00:00:00 2001 From: Dana Woodman Date: Sun, 12 Aug 2018 14:33:29 -0700 Subject: [PATCH] Update docs --- readme.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index cb3b7e3..7ea3729 100644 --- a/readme.md +++ b/readme.md @@ -18,12 +18,12 @@ On the RPI: ```bash +# Change to "sudo" user +sudo su + # Install nvm curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash -# Install the USB relay driver -# sudo apt-get install usbrelay - # Install forever npm i -g forever @@ -48,7 +48,7 @@ Follow the [install from source guide for node-hid](https://github.com/node-hid/ ``` npm install -g node-gyp -sudo apt install build-essential git libudev-dev gcc-4.8 g++-4.8 libusb-1.0-0 libusb-1.0-0-dev +apt install build-essential git libudev-dev gcc-4.8 g++-4.8 libusb-1.0-0 libusb-1.0-0-dev export CXX=g++-4.8 npm install node-hid --build-from-source ``` @@ -58,6 +58,7 @@ You should now be able to view the app at Place this at the bottom of your `~/.bashrc` file: ```bash +alias node='$NVM_BIN/node' forever start ~/doorlock/src/server.js chromium-browser --kiosk localhost:3000 ```