Skip to content

Instantly share code, notes, and snippets.

@BloodAxe
Last active January 3, 2018 15:59
Embed
What would you like to do?
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 https://github.com/Itseez/opencv/archive/master.zip > opencv.zip
unzip opencv.zip
rm opencv.zip
# Configure & install OpenCV
mkdir opencv-build
cd opencv-build/
cmake -DCMAKE_BUILD_TYPE=RELEASE -DBUILD_DOCS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DWITH_OPENEXR=OFF ../opencv-master/
make install
# Install Node.js
# See https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager
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
@StreamTitan
Copy link

StreamTitan commented Jan 3, 2018

Thanks.

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 rotate.py 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