Skip to content
Home » 20.10



By far the best guide I have found, in starting this journey, was written by Mark Smith on

If you want to see why things work the way they do, please visit his guide. My guide below is just the commands, and how I am connecting into the database once it is setup.

To begin, first you will want to install Ubuntu Server 20.10 as described here:

Once you are up and running, ssh into the Raspberry Pi

From the terminal run the following:
sudo bash

wget -qO – | sudo apt-key add –

echo “deb [ arch=amd64,arm64 ] focal/mongodb-org/4.4 multiverse” | tee /etc/apt/sources.list.d/mongodb-org-4.4.list

apt-get update

apt-get install -y mongodb-org

systemctl daemon-reload

systemctl enable mongod

systemctl start mongod

systemctl status mongod

CTRL button +c to exit

use admin

db.createUser( { user: "admin",
        pwd: "SuperSecretPassword",

        roles: [ "userAdminAnyDatabase",


                 "readWriteAnyDatabase"] } )


nano /etc/mongod.conf

Add these lines to the end of the file


   authorization: enabled

CTRL +x to Exit
Y to Save

systemctl restart mongod


db.adminCommand({listDatabases: 1})

Make sure you had no errors


mongo -u “admin” -p

Enter your admin password for mongo, aks your SuperSecretPassword

db.adminCommand({listDatabases: 1})
This will list out your databases and ensure you created it properly


nano /etc/mongod.conf
and Change the bind ip from to

   port: 27017

CTRL +x to Exit
Y to Save

systemctl restart mongod

ufw allow 27017/tcp

MongoDB is now successfully setup and running. On to configuring the Windows 10 system

To connect to the MongoDB from a Windows 10 computer

Open an Internet Browser on your Windows 10 computer
Navigate to
Download the Robomongo Robo 3T Client
Once you install it, add these settings to connect to your system
Click Create
Connection Tab
Type – Direct Connection
Address – The IP of your Raspberry Pi
Port 27017
Authentication Tab
Check mark Perform Authentication
Database is admin
User Name is admin
Password is your SuperSecretPassword
Auth is SCRAM
Click Save
Click Connect

You are now connected and ready to run with your MongoDB environment

Hardware that I used:
Raspberry Pi 4 (4gb)

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet

Western Digital 500GB WD_Black SN750 NVMe

Plugable USB C to M.2 NVMe Tool-free Enclosure


This guide shows you how to install an Operating System on a Raspberry Pi 4. The one I chose for this guide is Ubuntu Server 20.10 64 bit, so if you are installing that, you can follow along easily. If you are wondering which hardware I used, the exact items are linked at the bottom

On a Windows computer
Insert your USB M.2 Drive into the USB 3.0 Port on your Windows computer
Open a web browser
Navigate to
Download the Raspberry Pi Imager

Once it is downloaded, double click the imager.exe file
Select Yes
Click Install
Checkmark Run Raspberry Pi Imager
Click Finish

Now that the Raspberry Pi Imager is running
Click Choose OS
Scroll down and select Ubuntu
Then select Ubuntu Server 20.10 (RPI 3/4/400) 64-BIT
Select your SD Card (500GB WD M.2 Drive)
Click Write
All existing data …. will be erased. Are you sure you want to continue?
Click Yes
Data is written to the SD Card
The data is automatically verified after it is written
Once it finishes you will see the message that “you can now remove the SD card from the reader”
Remove the card
Click Continue

Now back on the Raspberry Pi
Plug in network cable
Connect the keyboard
Plug in a mouse
Connect the HDMI cable
Install the M.2 USB Drive you just made (up above)
Plug in the power (Last step)

Boot up your Raspberry Pi
The first time you login the username is ubuntu
The password is ubuntu
You will be forced to change the password immediately
Now you will want to run the following commands
sudo bash
apt-get update
apt-get dist-upgrade
apt install net tools

Note your ip address

You can now connect remotely and finish setting up the system

You are done. Your Raspberry Pi 4 is setup with the Ubuntu Server 20.10

Hardware that I used:
Raspberry Pi 4 (4gb)

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet

Western Digital 500GB WD_Black SN750 NVMe

Plugable USB C to M.2 NVMe Tool-free Enclosure

Thanks for reading…….