Skip to content

Instantly share code, notes, and snippets.

Last active January 3, 2018 15:59
  • Star 5 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save BloodAxe/6441766 to your computer and use it in GitHub Desktop.
Configure DigitalOcean Droplet for cloud image processing
# Prepare system
apt-get update
apt-get upgrade
apt-get install build-essential
apt-get install cmake
apt-get install git
apt-get install pkg-config
# Grab frest opencv library
curl -sL >
# Configure & install OpenCV
mkdir opencv-build
cd opencv-build/
make install
# Install Node.js
# See
apt-get update
apt-get install python-software-properties python g++ make
apt-get install software-properties-common
add-apt-repository ppa:chris-lea/node.js
apt-get update
apt-get install nodejs
# Make symbolic link to alias node and nodejs commands
ln /usr/bin/nodejs /usr/bin/node
npm install -g express
Copy link

StreamTitan commented Jan 3, 2018


As its on a DO droplet, what terminal do you use to do tests? I've been using putty when setting up various droplets in the past but now that I'm setting up for OpenCV face detect, I keep getting this result from a demo I am testing:

[[ 0.8660254 -0.5 162.29749663]
[ 0.5 0.8660254 -93.70250337]]
QXcbConnection: Could not connect to display
Aborted (core dumped)

The values are the results of the demo I'm running but as you can see I am not able to do the visual. If it was on my local machine I guess all would be fine but as its a virtual machine I'm stuck on what I should use. Putty is text based (hence puTTY) so this may be the issue I am having.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment