
Ubuntu 18.04.x (ARM 64-bit) is now available for the Raspberry Pi 4. While not an officially supported OS from either the Foundation or Ubuntu, James A. Chambers has been working on a port for the Raspberry Pi 4. A 64-bit OS is required to run 64-bit MongoDB 4.2.x. MongoDB (the company) just recently provided a 64-bit ARM version for Ubuntu 18.04. I will show how to install this version of MongoDB under Ubuntu 18.04 on the Raspberry Pi 4.
Note that my Raspberry Pi 4 has 4GB RAM. I believe from past experience that 2GB is sufficient to run MongoDB. I have had issues with a 1GB RAM system but worked around by creating a swap disk.
Please read my instructions carefully and copy and paste where you can. I have noticed a couple of typos on the MongoDB website where the “ARM” keyword was missing in some commands.
First, follow the instructions on James A Chambers website to install Ubuntu 18.04. I used “Release v17” but there may now be a newer release. Make sure you have updated the bootloader per James’ Raspberry Pi 4 Bootloader Guide. In short do a “rpi-update” and a “rpi-eeprom-update” under Raspbian BEFORE burning and booting-from the Ubuntu 18.04 image. I booted with ethernet connected to establish keys, etc. with Ubuntu. I chose not to use a GUI but again, James mentions several available in his write-up.
(more…)