news
Serverspace Technologies in the UAE: Launch of Falconcloud
RF
February 8, 2024
Updated February 6, 2024

How to install MongoDB Compass in Ubuntu?

Databases MongoDB

There are various way to connect and manage MongoDB database, a lot of depend on your skills in the CLI or GUI interfaces. In that instruction we will give throughly information, step-by-step guide how to manage community version with MongoDB Compass! That represent perceived by the eye GUI interface with software that help aggregate, filter and analyze data in the visual field! That software will be useful people who don't know syntax of MongoSH, but there remains a needs to effectively manage data.

Prepare and update packegies

Due to features of Ubuntu and other distribution on the UNIX-core systems we need to update and than upgrade packages to avoid problem with discordance of the using packages:

apt update && apt upgrade -y
Update
Screenshot №1 — Update

If you don't have GUI interface on your machine, than Compass will not work on their. You need to install them, by any suitable way, in our case we will use apt manager for that purpose and download available package:

apt install ubuntu-desktop
GUI installation
Screenshot №2 — GUI installation

Commonly, packages with dependencies may occupied from 2GB to any values that depend of the using tools and features of the interface, take that in mind, when you install them! Now we need to wait the end of download process, that varies values due to bandwidth speed of your connection.

Warning! That process of download may be interrupted if your client go to sleep, than consequences of holded packages and haven't finished installation. Where you can use screen or termux utility and support your device available status. If you make mistake and your thin client was disconnected and package was broke, than you need to restart daemon of service:

systemctl daemon-reloads

Or you can use also another command for reboot, if that don't suitable:

reboot

And fix broken packages, then continue installation process:

dpkg --configure -a && apt install ubuntu-desktop

Alright! When troubles far away we can continue installation stage, at the end of the downloaded desktop packages, we can install xrdp module, which allow to connect through bunch of GUI remote control protocols, due to features of the ssh, that can transfer only CLI data:

apt install xrdp
Installation xrdp
Screenshot №3 — Installation xrdp

After that action we finished all preparations and go ahead to the installation Compass!

Install MongoDB Compass

We consider installation through the download prepared package on the site and use for that wget and dpkg, if the second go with distribute, than wget can isn't locate on the machine, than download it:

apt install wget -y && wget https://downloads.mongodb.com/compass/mongodb-compass_1.40.4_amd64.deb
Download compass
Screenshot №4 — Download compass

Ok! Download needed package on the site using utility which we install before, file will save in the standart directory:

dpkg -i mongodb-compass_1.40.4_amd64.deb
Installation compass
Screenshot №5 — Installation compass

After that process we can connect to the server through RDP or VNC and see GUI interface, if you will use root, then add option --no-sandbox:

mongodb -no--sandbox
Start compass
Screenshot №6 — Start compass

And if you connect to the remote server type their IP-address and port or use localhost DB! Click on the Connect button and you can start work!

 

This guide serves as a valuable resource for users seeking a seamless and efficient approach to managing MongoDB databases through MongoDB Compass, combining the power of GUI with detailed instructions for a successful installation and connection process.

Vote:
5 out of 5
Аverage rating : 5
Rated by: 1
1101 CT Amsterdam The Netherlands, Herikerbergweg 292
+31 20 262-58-98
700 300
ITGLOBAL.COM NL
700 300

You might also like...

We use cookies to make your experience on the Serverspace better. By continuing to browse our website, you agree to our
Use of Cookies and Privacy Policy.