====================================================
This package contains the bluetooth/camera services for 2null16-bra. To start the server proper it is necessary to install following software:
brew install ssh-copy-id
ssh-copy-id pi@raspberrypi
wget http://node-arm.herokuapp.com/node_latest_armhf.deb
sudo dpkg -i node_latest_armhf.deb
sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev
sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
apt-get install graphicsmagick
sudo mkdir -p /opt/.pm2
sudo echo "export PM2_HOME=/opt/.pm2" >> /etc/profile
sudo chmod -R 777 /opt/.pm2
sudo npm install -g pm2 --unsafe-perm
sudo apt-get install git
mkdir -p ~/2null16-bra-services.git
cd ~/2null16-bra-services.git
git init --bare
mkdir -p ~/2null16-bra-services
Then copy content of file scripts/post-receive in 2null16-bra.git/hooks/post-receive and (pi)
sudo chmod +x ~/2null16-bra-services.git/hooks/post-receive
On local machine:
git remote add pi pi@raspberrypi:2null16-bra.git
For the first time disable npm stop script in package.json by adding a #
...
"stop": "#pm2 stop 2null16-bra"
...
Then:
git remote add pi pi@raspberrypi:2null16-bra-services.git
git push pi master
Enable npm stop script
pm2 startup
pm2 save
apt-get install libgphoto2-2-dev
apt-get install libclang-dev
Disable Raspberry pi wireless power management mode: Edit file /etc/newtork/interfaces and add:
wireless-power off
directly after wpa-conf /ezc/wpa_supplicant/wpa_supplicant.conf Restart network for taking changes
sudo /etc/init.d/networking restart
iwconfig
Local Camera testing (MAC only)
ps ax|grep PTP
kill <PID>
@see http://gphoto.org/doc/manual/FAQ.html#FAQ-could-not-claim-USB