Tag: Raspberry Pi

MongoDB 4.4 under Raspberry Pi OS 64 bit (Raspbian64)

There is no official support from MongoDB for Debian ARM 64 or Raspbian64 Linux OS.  You can, however, compile the MongoDB Community Edition from source.  I did just that ūüôā  It did, however, take three days and a burnt Raspberry Pi 4 to accomplish ūüôĀ  I’ll provide a link to instructions to create the executables for mongod, mongos and mongo — as well as provide a few tips to successfully compile.  Better and easier than that, I provide links to already compiled versions with instructions on how to install and use.

I recently decided to “check-in” on the status of Raspbian64, the 64 bit version of Raspberry Pi OS which is not yet released. I had been using Ubuntu Server 20.04 ARM 64-bit on a couple of Raspberry Pi 4s for various projects. One benefit of Ubuntu was official support for MongoDB. I was looking for a complete optimized Raspbian OS with GUI AND MongoDB. Searching around, I did not find what I wanted. I decided to try and create it.

(more…)
Read MoreComment

MongoDB 4.4 & Ubuntu 20.04 on Raspberry Pi 4

Latest MongoDB on Raspberry Pi 4

Have a Raspberry Pi 4 with 4GB or 8GB of RAM and want to run the popular noSQL database, MongoDB? Read on for installing and running the latest 64-bit versions of MongoDB and Ubuntu 20.04.

The short (TL;DR) instructions are to read and follow the official install guides for 64-bit Ubuntu Server 20.04 and MongoDB 4.4 for ARM 64. The longer detailed instructions follow…

(more…)
Read MoreView 3 Comments

MongoDB 3.0.14 for Raspbian Stretch

The main operating system for Raspberry Pi, Raspbian, continues to evolve. ¬†The latest version as of August 2017 is “Raspbian Stretch” — based upon the current stable version of Debian 9. ¬†The previous version was known as “Raspbian Jessie”. ¬†One difference between versions is OpenSSL libraries. OpenSSL is a¬†general purpose cryptography library that provides an open source implementation of the Secure Sockets Layer (SSL). ¬†My previous builds of MongoDB relied on the older library. ¬†As a result, my previous binaries for 3.0.14 and 3.0.9 do not run under Raspbian Stretch. ¬†Given this change as well as other changes to MongoDB source and newer compilers, I could no longer compile MongoDB 3.0.14 with SSL.

After a few source tweaks and use of various compiler flags, I have manged to compile MongoDB core apps and tools. ¬†These binaries do NOT support SSL and only run under Raspian Stretch on a Raspberry Pi 3. ¬†[UPDATE — 2018 Mar 22] I have confirmed that these binaries work on the latest Raspberry Pi 3 Model B+ with the March 2018 version of Raspbian.

(more…)

Read MoreView 20 Comments

CouchDB 2.0 on Raspberry Pi

The Apache Software Foundation has released CouchDB version 2.0. ¬†CouchDB 2.0, is a “distributed” version of CouchDB, a mature¬†NoSQL, document-oriented data-store that is accessable via a RESTful JSON API. Developers can take advantage of CouchDB‚Äôs offline capability and reliable data sync for web, mobile and IoT apps at (any) scale.

[NOTE: September 2017 — CouchDB 2.1 and Raspbian Stretch have been released. ¬†Check out updated instructions in this blog post]

Current Raspbian (November 2016) can “apt-get install” version 1.4 and I have previously written about getting CouchDB 1.6 running on the R-Pi. ¬†I have now installed version 2.0.0 on an R-Pi 3 and am sharing the process. ¬†It is pretty straightforward to get CouchDB 2.0 running on the R-Pi. It takes a combination of the R-Pi specific 1.6 install and the “generic linux” 2.0 install to¬†get things running.

(more…)

Read MoreView 19 Comments

R-Pi Clock Radio – Zeroed!

clock_radio_20160909_smallWe had a really old alarm clock in our bedroom. ¬†Really old. ¬†The LED number segments, which were a nice dim red in color, had been dying at the rate of 1 segment a year and it was getting hard to read the time. ¬†My wife finally had enough of my “I’ll get a new one real soon” excuse and bought a new big, bright, blue LED clock to replace the old clock. ¬†It was blue … and *really* bright … even in its dim-mode ūüôĀ ¬†It had to go!

My converted 1942 Crosley Radio was collecting dust on my workbench. ¬†I had¬†finally received a Raspberry Pi Zero and Zero4U USB hub to play with but was already lusting after the new R-Pi Zero with camera port. ¬†I recently upgraded the audio-output on my Mac from an¬†old USB HiFiMan Express DAC to ¬†a Schiit Modi DAC. ¬† Hmmmmm, seemed like I had the ingredients to make¬†a BIG clock “radio” with alarm(s) and great stereo audio?

(more…)

Read MoreView 33 Comments

Using Python with MongoDB on Raspberry Pi 2 & 3

mongodb plus pythonI’ve written about getting MongoDB running on the Raspberry Pi 2. View my other posts where you can get binaries (3.0.9) or learn how to compile from scratch (3.0.7). The mongo shell works great but you may want/need to code in Python, especially for¬†device control or data logging, etc.

PyMongo is a Python distribution containing tools for working with MongoDB, and is the recommended way to work with MongoDB from Python. You can either use Python 2 or Python 3. Python 3 did not come on the minimal Raspbian Jessie image but can be installed using “sudo apt-get install python3”.

To install the appropriate PyMongo for MongoDB 3.0.x you can do the following from the command line. Note you could use “python3” where I use “python”, depending on your preference. I normally use the default Python 2.7.

Instructions after the break: (more…)

Read MoreComment

MongoDB 3.0.9 binaries for Raspberry Pi 2 & 3 (Jessie)

I’ve received feedback that some folks are having problems compiling MongoDB 3.0.7 per my instructions AND it takes a long time ūüėČ

MongoDB 3.0.9 just became available but needs¬†quite a few changes to source in order to compile on the Raspberry Pi. ¬†I worked through MongoDB build scripts for ARCH ARM Linux and managed to “translate” for Raspbian (Jessie) Linux on the R-Pi 2. ¬†Rather than creating patch files and writing instructions for building from source, I am providing my compiled binaries. ¬†PLEASE do not post links to my binaries! ¬†Feel free to download for personal use from this site.

[NOTE: I have compiled version 3.0.14 and created binaries for Raspbian Jessie for the R-Pi 2 & 3. NEW: I have also created 3.0.14 binaries for the R-Pi 3 running Raspbian Stretch that will also work on the new R-Pi 3B+.  I have confirmed that the instructions in this blog entry work with the new binaries.]

(more…)

Read MoreView 142 Comments

MongoDB 3.0.7 on Raspberry Pi 2!

MongoDB logoI have successfully compiled MongoDB version 3.0.7 and tools on the Raspberry Pi 2. ¬†Full instructions are after the break — click on “more“. ¬†As usual I found great help from the Linux community for getting this to work on ARM7. ¬†mongo, mongod, mongos, and tools¬†are all working great. ¬†The WiredTiger Engine does NOT work under 32-bit ARM but, AFAIK, all other components do ūüôā

NOTE: I have made MongoDB 3.0.9 binaries available for Raspbian (Jesse) for R-Pi 2 – here.

(more…)

Read MoreView 18 Comments

Node.js v4 & v5 on Raspberry Pi 2

Node.jsI had been experimenting with the world of Javascript on the server-side using Node.js. ¬†I “fell off the horse” when Node.js had an identity and direction crisis and io.js was forked. ¬†Node.js and io.js have reunited and the latest supported version is v4.2 with v5.0 just released. ¬†The latest “apt-get” version of Node.js as of¬†15 September 2015 is (something like) 0.6 on Raspbian Wheezy. ¬†Not current enough IMHO. I also wanted to take advantage of the ARMv7 processor in the Raspberry Pi 2. ¬†The best way forward was to figure out how to compile the latest version from source. ¬†NOTE that instructions have been updated for Raspbian Jessie and later versions of node.js.

(more…)

Read MoreView 3 Comments

MongoDB on the Raspberry Pi 2

Raspberry Pi 2 After purchasing a Raspberry Pi 2, I decided to move some of my projects to it.  I also added an external 2.5 inch USB drive via a USB hub.  I store various sensor information in a MongoDB database and needed everything to run on the R-Pi 2.  I chose to stick with the well-supported Debian Linux port, Raspbian Wheezy, as opposed to ARCH Linux that I used on my old R-Pi B+, as the R-Pi 2 has a quad core ARMv7 processor that requires a new kernel.

UPDATE¬†(30 January¬†2016): ¬†I’ve compiled MongoDB 3.0.9 and tools for R-Pi 2 Raspbian (Jessie). ¬†Check here.

UPDATE (25 December 2015): Instructions for compiling MongoDB 3.0.7 and tools for R-Pi 2 running Raspbian Jessie are now available.  Check here.

UPDATE (8 November 2015): If you are running Raspbian Jessie, you can “apt-get install mongodb”. ¬†This will result in an install of MongoDB v2.4. ¬†Good enough for most uses and you get a working mongo shell ūüėČ ¬†If you want MongoDB v2.6.3, read-on!

I was back to hunting for a compatible MongoDB binary — or instructions on how to compile from source. ¬†Research showed that MongoDB does not compile for ARM after version 2.6.3 ūüôĀ ¬†Searching the ‘net led me to the “facat’ blog.” This blog shows how to cross-compile MongoDB 2.6.3 for ARM. ¬†Precompiled binaries are also available. ¬†NOTE that the mongo shell does NOT work correctly on the R-Pi. ¬†“mongod”, the server, does work fine and can be accessed programmatically or via a mongo shell from another (non-R-Pi) computer. ¬†I use “mongo” on my Mac to connect to “mongod” running on the R-Pi 2.

more after the break

(more…)

Read MoreView 9 Comments