I’ve blogged before on MongoDB running on a 4 ODROID C2 SBC Cluster with external SATA drives — see this post.  I had tried both Arch and Ubuntu flavors of Linux.  I pointed out that MongoDB has an official Enterprise Server Version for Ubuntu 16.04 ARM 64.  MongoDB Release 3.6.3 is currently available for download (as of 24 February 2018).  Please check the license terms of the “Enterprise Server Version”.  Note that there is also a “Community Server” version that might better meet your needs and/or avoid restictions.

I use a MongoDB database to analyze data extracted from logs on Linux production servers that handle hundreds of thousands of users per day.  I also have databases that I use for research topics – oriented around K-12 education.  I have pulled data from The British Library and various datasets from the Europeana Collections.

OK, here is the quick and simple way to install the latest MongoDB on your ODROID C2 running Ubuntu 16.04…

I am assuming you have not installed MongoDB in any form before this setup.  If you have installed, do a complete backup (dump) of databases and remove the MongoDB and utilities installs as well as all associated directories and files.

Make sure your OS is up to date:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt install linux-image-c2

Here are my versions of ODROID – name, kernel, hardware & OS info:

$ uname -a
Linux odroid-D54 3.14.79-117 #1 SMP PREEMPT Tue Jan 2 23:46:30 BRST 2018 aarch64 aarch64 aarch64 GNU/Linux

$ cat /etc/os-release
NAME=”Ubuntu”
VERSION=”16.04.4 LTS (Xenial Xerus)”
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME=”Ubuntu 16.04.4 LTS”
VERSION_ID=”16.04″
HOME_URL=”http://www.ubuntu.com/”
SUPPORT_URL=”http://help.ubuntu.com/”
BUG_REPORT_URL=”http://bugs.launchpad.net/ubuntu/”

VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial

Add the MongoDB repository and update the packages list.  Install any updates and then install MongoDB:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5

echo "deb [ arch=amd64,arm64,ppc64el,s390x ] http://repo.mongodb.com/apt/ubuntu xenial/mongodb-enterprise/3.6 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install mongodb-enterprise

You can check versions installed:

mongod --version
mongo --version

You can start MongoDB and check its status:

sudo service mongod start
sudo service mongod status

Run the MongoDB shell:

mongo

Hopefully these quick instructions work for you.  LMK in the comments if problems arise 😉

SaveSave

SaveSave

SaveSave

SaveSave

SaveSave

SaveSave

SaveSave

SaveSave

SaveSave

SaveSave

SaveSave