Last active
January 3, 2018 15:59
-
-
Save BloodAxe/6441766 to your computer and use it in GitHub Desktop.
Configure DigitalOcean Droplet for cloud image processing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.