Skip to content

partysalat/2null16-bra-services

Repository files navigation

2null16-bra-services

====================================================

Software dependencies

This package contains the bluetooth/camera services for 2null16-bra. To start the server proper it is necessary to install following software:

Install on Rasperry Pi

SSH keys(local machine, in my case: mac)

brew install ssh-copy-id
ssh-copy-id pi@raspberrypi

Install Node (pi)

  wget http://node-arm.herokuapp.com/node_latest_armhf.deb
  sudo dpkg -i node_latest_armhf.deb

For Noble (bluetooth on pi)

  sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev
  sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)

Installing graphicsmagick

apt-get install graphicsmagick

pm2 (pi)

 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

post-receive (pi)

 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

Push to Repo (local)

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

Enable Startup on Restart(pi)

pm2 startup
pm2 save

Installing camera

apt-get install libgphoto2-2-dev
apt-get install libclang-dev

Quirks

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages