From ef428cd7ec72278edac0eab9d21d279ff07bfedb Mon Sep 17 00:00:00 2001 From: Baden Date: Sat, 13 Oct 2018 10:53:31 +0200 Subject: [PATCH 1/4] Update README.md updated to current software versions and installs git before installing 3dCamera --- README.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ec6b8ab..aecf7e5 100644 --- a/README.md +++ b/README.md @@ -17,15 +17,25 @@ wget https://nodejs.org/dist/v7.9.0/node-v7.9.0-linux-armv6l.tar.gz tar -xvf node-v7.9.0-linux-armv6l.tar.gz cd node-v7.9.0-linux-armv6l/ sudo cp -R * /usr/local/ -sudo reboot + +# Install NPM +cd ~ +wget https://nodejs.org/dist/v8.12.0/node-v8.12.0-linux-armv6l.tar.xz +tar xf node-v8.12.0-linux-armv6l.tar.xz +cd node-v8.12.0-linux-armv6l/ +sudo cp -R * /usr/local/ # Tidy up cd ~ rm node-v7.9.0-linux-armv6l.tar.gz.gz rm -r node-v7.9.0-linux-armv6l.tar.gz +sudo reboot # Update NPM sudo npm install -g npm + +# Install Git +sudo apt-get install git ``` Once node has been installed you can download the files for the client software. @@ -51,7 +61,7 @@ node app.js Starting the software and keeping it running is the job of supervisor, this program will make sure the camera software allways runs, this can be installed using the following command. ```bash -sudo apt-get install git supervisor +sudo apt-get install supervisor ``` Supervisor can then be setup with the 3d scanner application by copying the supplied config file into the final location using the following command From 6a38eb223f17b20193fc534c0ce6219f9c83769b Mon Sep 17 00:00:00 2001 From: Baden Date: Sat, 13 Oct 2018 11:09:11 +0200 Subject: [PATCH 2/4] Update README.md Corrected nodeJS installation process and other fine tuning --- README.md | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index aecf7e5..e94cd3f 100644 --- a/README.md +++ b/README.md @@ -6,17 +6,18 @@ This software is designed to run on the raspbery pi and use the raspbery pi came ## Getting started The first thing you need to do is setup a raspbery pi, ideally with a lite version of Raspbian. Once this is setup you should ssh into it. How to do this is outside of the scope of this setup guide. -The first thing you need to do once you have logged into the pi is to enable the camera using the setup utility. +Once logged into the pi, enable the camera using the setup utility. +```bash +raspi-config +``` -The software needs nodejs to run, the raspbery pi will come with node installed but its mostlikly an old out of date version, the following commands can be used to replace it with something more modern. There are many ways to upgrade node, this is just one. +Once the camera is enabled, use the following commands to install all packages required for the 3DCamera software to run. -#### Upgrading to node v7 +#### Installing Required Packages ```bash +# Install Node cd ~ -wget https://nodejs.org/dist/v7.9.0/node-v7.9.0-linux-armv6l.tar.gz -tar -xvf node-v7.9.0-linux-armv6l.tar.gz -cd node-v7.9.0-linux-armv6l/ -sudo cp -R * /usr/local/ +sudo apt-get install nodejs # Install NPM cd ~ @@ -28,7 +29,7 @@ sudo cp -R * /usr/local/ # Tidy up cd ~ rm node-v7.9.0-linux-armv6l.tar.gz.gz -rm -r node-v7.9.0-linux-armv6l.tar.gz +rm -r node-v7.9.0-linux-armv6l sudo reboot # Update NPM @@ -38,20 +39,20 @@ sudo npm install -g npm sudo apt-get install git ``` -Once node has been installed you can download the files for the client software. +Once node, npm and git have been installed the 3dCamera client software can be downloaded. ```bash cd ~ git clone https://github.com/ArthurGuy/3dCamera.git ``` -The software can then be installed using the following commands +The 3dCamera client software can then be installed using the following commands: ```bash cd 3dCamera npm install ``` -Once this is complete you can test the software by running it using the following command +Once this is complete, test the software by running it using the following command: ```bash node app.js ``` From c3079439c7343bf298587fa574a4337118bb41aa Mon Sep 17 00:00:00 2001 From: Baden Date: Sat, 13 Oct 2018 11:11:14 +0200 Subject: [PATCH 3/4] Update README.md added sudo to copying supervisor config file --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e94cd3f..aa96464 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ sudo apt-get install supervisor Supervisor can then be setup with the 3d scanner application by copying the supplied config file into the final location using the following command ```bash -cp /home/pi/3dCamera/camera.conf /etc/supervisor/conf.d/camera.conf +sudo cp /home/pi/3dCamera/camera.conf /etc/supervisor/conf.d/camera.conf ``` You can now tell supervisor to identify the new config file and start running. From ac735d96d1681bffeebec3646b09f8d1980a64c0 Mon Sep 17 00:00:00 2001 From: Baden Date: Sat, 13 Oct 2018 11:12:56 +0200 Subject: [PATCH 4/4] Update README.md Added sudo to startup script to add update --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index aa96464..f788eee 100644 --- a/README.md +++ b/README.md @@ -83,5 +83,5 @@ Now whenever the system starts up supervisor will start the camera application w The software can be updated using an update command built into the web ui, an alternative is to force an update whenever the raspbery pi boots up. If you wish to do this you should enter the following command, this will replace the default startup script with one that will carry out an update. ```bash -cp /home/pi/3dCamera/rc.local /etc/rc.local +sudo cp /home/pi/3dCamera/rc.local /etc/rc.local ```