Volvox Labs + Microsoft Timelapse Project
Below are instructions for setting up project machines from scratch.
##Camera Controller - Local Machine Setup On-site Linux machine, connected to 4 Canon DSLRs over USB-Ethernet extenders.
- Install Ubuntu 14.04
- via mountable ISO disk image
- Update packages
$ sudo apt-get update
$ sudo apt-get upgrade
- Install Git
$ sudo apt-get install git
- Install Node
v0.10.39
via nvm$ sudo apt-get install build-essential libssl-dev
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | sh
$ source ~/.profile
$ nvm install 0.10.39
#crucial for gphoto2$ nvm use 0.10.39
$ nvm alias default 0.10.39
$ nvm use default
$ node -v
// check that install worked
- Install gphoto2
$ sudo apt-get install libgphoto2-2-dev
- Clone repo (first
$ cd
to correct folder)$ git clone https://github.com/jmsaavedra/volvox-microsoft.git
- Install package modules
$ npm install
- AuthKeys.js
- manually copy AuthKeys.js into the root folder (this is shared privately)
- Install PM2
- $
$ npm install pm2 -g
- $
$ pm2 startup
#follow directions if there is a reply from pm2! - $
$ pm2 start startup.json
#run the app with pm2 startup script - $
$ pm2 save
#save this process to the startup scripts - $
$ pm2 logs
#tail console logs
- $
##Video Processor - Azure Virtual Machine Setup This is an Ubunutu 14.04 Linux Virtual Machine, that processes all uploaded videos nightly, uploads to Vimeo, and reports to the a server db for display in the public gallery site.
- Update packages
$ sudo apt-get update
$ sudo apt-get upgrade
- Install Git
$ sudo apt-get git
- Install Node
v0.10.39
via NVM$ sudo apt-get install build-essential libssl-dev
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | sh
$ source ~/.profile
$ nvm install 0.10.39
#video processor has run on 0.12.x in the past$ nvm use 0.10.39
$ nvm alias default 0.10.39
$ nvm use default
$ node -v
// check that install worked
- Install ffmpeg
- wget and unpack binary: see my gist here.
- old ref
- Install graphicsmagick + ghostscript
$ sudo apt-get install graphicsmagick
$ sudo apt-get install ghostscript
- Clone repo, install packages
$ git clone https://github.com/jmsaavedra/volvox-microsoft.git
$ npm install
- AuthKeys.js
- manually copy
AuthKeys.js
into the root folder of repo (this is shared privately)
- manually copy
- Set local time zone of server
- Linux (ref):
$ date
// show date$ more /etc/timezone
#show timezone file$ sudo dpkg-reconfigure tzdata
#run timezone config- if using cron, restart it:
$ /etc/init.d/cron stop
$ /etc/init.d/cron start
- Install PM2
- $
$ npm install pm2 -g
- $
$ pm2 startup
#follow directions if there is a reply from pm2! - $
$ pm2 start startup.json
#run the app with pm2 startup script - $
$ pm2 save
#save this process to the startup scripts - $
$ pm2 logs
#tail console logs
- $