36

I am using MongoDB and I want to install Robomongo on Ubuntu.

Are there any instructions on how I can I install Robomongo on my machine?

62

Follow these simple steps.

  • Download the robomongo: https://robomongo.org/download
  • Extract the .tar.gz downloaded from above
  • Change directory to extracted folder.
  • You'll find a bin folder. Go in there, then double click on robomongo.

Anytime you'll wanna run robomongo, you will have to do something like this from terminal:

/path/to/robomongo_dir/bin/robomongo

You might wanna add a link to robomongo from your /usr/bin which will allow you to do something like this anywhere from terminal:

for that

  • navigate to robomongo_dir/bin
  • right click on robomongo executable file and click on Make Link, Link to robomongo executable file will be created there
  • rename Link to robomongo to your wish ( let say robo_)
  • move this link to /usr/bin directory with below command on terminal

    sudo mv /robomongo_dir/bin/robo_ /usr/bin
    

Now you can run robomongo from terminal OR from run command (Alt+ F2) by typing robo_

  • 5
    This should be the accepted answer. – fosslinux Aug 3 '16 at 3:11
  • 1
    @ubashu Some get answers or help and sometimes forget where they got the assistance. – KhoPhi Aug 8 '16 at 19:55
24

answer of @Rexford is nice But I will be more clear

There Two ways to install robomongo program into ubuntu using command line:

First way

1.1 download tar.gz file from Official robomongo website(choose version you need to install and get it's tar.gz download file url)

wget https://download.robomongo.org/0.9.0/linux/robomongo-0.9.0-linux-x86_64-0786489.tar.gz

1.2 extract tar.gz file

 tar -xvzf robomongo-0.9.0-linux-x86_64-0786489.tar.gz

1.3 mv files and folders into the result folder from extraction operation into folder robomongo under /usr/local/bin

sudo mkdir /usr/local/bin/robomongo
sudo mv  robomongo-0.9.0-linux-x86_64-0786489/* /usr/local/bin/robomongo

1.4 make sure excute file for robomongo program which exists under /usr/local/bin/robomongo/bin folder is excutable file

cd /usr/local/bin/robomongo/bin
sudo chmod +x robomongo ## run command only if robomongo isn't excutable file
./robomongo

Second way

2.1 download deb file from Official robomongo website(choose version you need to install and get it's deb download file url)

wget https://download.robomongo.org/0.8.5/linux/robomongo-0.8.5-x86_64.deb

2.2 install deb file using dpkg command line

sudo dpkg -i robomongo-0.8.5-x86_64.deb

2.3 open robomongo program using command line by run

robomongo

Very Important Notice:

All available versions 0.8.5 and earlier of robomongo have both deb file and tar.gz file download urls. So If you want a previous version you can use one of two ways But If you need download version 0.9.0 there only one way is the first ones

more links about install robomongo program: link 1, line 2, link 3

  • 1
    it seems these *.deb files are not unavailable anymore – Joost Döbken Jan 25 '17 at 9:35
  • 1
    to make robomongo executable from anywhere, I renamed its folder and sudo ln -s /usr/local/bin/robomongodir/bin/robomongo /usr/local/bin/ – Joost Döbken Jan 25 '17 at 9:47
  • If you follow these instructions and you see robomongo: command not found then you're probably on 32-bit architecture which isn't (and probably won't be) supported by robomongo – Michael Mar 4 '17 at 8:43
  • 2
    This no longer works. Version 0.8 is now so old, it's incompatible with the current version of Mongo, and Studio3T seems to have stopped releasing deb files for newer versions. – Cerin Aug 9 '17 at 19:56
21

Robo 3T (formerly Robomongo) is the free lightweight GUI with embedded shell for MongoDB enthusiasts. Use Ubuntu Software to install the robo3t-snap package or install it from the terminal with:

sudo snap install robo3t-snap
  • 4
    this is should be top answer in 2019 and for Ubuntu 18.04 above. – krige Jun 6 '19 at 5:08
15

Robomongo is now Robo 3T:

Download the tar file from the site.

The current file is robo3t-1.1.1-linux-x86_64-c93c6b0.tar.gz but obviously this may be different to what you downloaded in the future: adapt the commands below accordingly.

Open a terminal and cd to wherever you downloaded the archive, eg, cd Downloads and mv it to wherever you would like to keep it, perhaps /opt. Then extract it, and make a symlink from the binary to a PATH location, for example...

sudo tar -xf /opt/robo3t-1.1.1-linux-x86_64-c93c6b0.tar.gz
sudo ln -s /opt/robo3t-1.1.1-linux-x86_64-c93c6b0/bin/robo3t /usr/local/bin/robo3t

Now you can run robo3t in your terminal and it will work.

  • @Zanna sorry didn't see the /opt path – George Udosen Jul 29 '17 at 22:06
  • 1
    @George my bad, just fixed it after seeing your comment :) – Zanna Jul 29 '17 at 22:07
4

run the folowing commands(feel free to update the links and change folder names):

wget https://download.robomongo.org/1.1.1/linux/robo3t-1.1.1-linux-x86_64-c93c6b0.tar.gz
sudo tar -xzf robo3t-1.1.1-linux-x86_64-c93c6b0.tar.gz -C /opt
rm robo3t-1.1.1-linux-x86_64-c93c6b0.tar.gz
sudo mkdir /opt/robo3t-1.1.1-linux-x86_64-c93c6b0//lib/BKP/
sudo mv /opt/robo3t-1.1.1-linux-x86_64-c93c6b0/lib/libstdc++* /opt/robo3t-1.1.1-linux-x86_64-c93c6b0//lib/BKP/
sudo ln -s /opt/robo3t-1.1.1-linux-x86_64-c93c6b0/bin/robo3t /usr/bin/robo3t
cat > ~/.local/share/applications/robo3t.desktop <<EOL
[Desktop Entry]
Encoding=UTF-8
Name=Robo3T
Exec=robo3t
Terminal=false
Type=Application
Categories=Development;
EOL

then you will also get a launcher icon so you will be able to press win-key and search for.

But you wont get an image for the icon (some ubuntu place-holder) :(

3
Install Robo3t On Ubuntu 18.04 Download the package form Robo3t or using wget
wget https://download.robomongo.org/1.2.1/linux/robo3t-1.2.1-linux-x86_64-3e50a65.tar.gz
Extract here using

tar -xvzf robo3t-1.2.1-linux-x86_64-3e50a65.tar.gz

Make a new floder in usr/local/bin from the package

sudo mkdir /usr/local/bin/robo3t

Move the extracted package to usr/local/bin

sudo mv  robo3t-1.2.1-linux-x86_64-3e50a65/* /usr/local/bin/robo3t

Change directory to cd /usr/local/bin/robo3t/bin We can download the icon for Robo3t from and put it here as we will need to make desktop icon later

For example save it on /bin with name icon.png /usr/local/bin/robo3t/bin/icon.png

Now, We need to give permission to newly created directory using chmod

sudo chmod +x robo3t ./robo3t

Now we can run Robo3t ./robo3t

To make desktop icon for Robo3t, we can make a file in usr/share/applications

nano usr/share/applications/robo3t.desktop

Paste these and save

[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=Robo3t
Icon=/usr/local/bin/robo3t/bin/icon.png
Exec="/usr/local/bin/robo3t/bin/robo3t"
Comment=Robo3t 
Categories=Development;
Terminal=false
StartupNotify=true

Now, we can find the icon in application launcher menu by search for robo3t

We can check this also

Reference

  • As of 2019-12-18 Robo 3T v1.3 has a bug that prevents editing in the UI. Upvoted this answer for the URL for v1.2.1. Thanks. – studog Dec 18 '19 at 20:08
2

There doesn't seem to be sudo apt-get install for robomongo. There is tar.gz download available from here Once you download that you need to do

gunzip robomongo-0.9.0-rc4-linux-x86_64-8c830b6.tar.gz
tar -xvf robomongo-0.9.0-rc4-linux-x86_64-8c830b6.tar

and then either move the untar-ed version to /opt (if needed)

Otherwise there is another way as mentioned in this blog or here

  • I have done this robomongo-0.9.0-rc4-linux-x86_64-8c830b6.tar.gz how i can proceed ? – Suraj Maurya Feb 26 '16 at 11:16
  • Please specify details in terms of what you have done and what error messages(if any) you are getting? – Ashu Feb 26 '16 at 12:07
  • @SurajMaurya if answer below helped, you mind marking as answer? – KhoPhi Jul 3 '16 at 21:49
0

if you try to install the latest version of robomobo that call be now robo3t. Or you try to install on ubuntu 16.04 follow the below step and your robomongo install

Download latest robomongo tar file

wget https://download.robomongo.org/1.1.1/linux/robo3t-1.1.1-linux-x86_64-c93c6b0.tar.gz

Extract it

tar -xvzf https://download.robomongo.org/1.1.1/linux/robo3t-1.1.1-linux-x86_64-c93c6b0.tar.gz

Make a directory

mkdir ~/robo-backup

Move robo3t-1.1.1-linux-x86_64-c93c6b0/lib/libstdc++ direcotry to ~/robo-backup/ direcotry

mv robo3t-1.1.1-linux-x86_64-c93c6b0/lib/libstdc++* ~/robo-backup/

Run the robo3t

robo3t-1.1.1-linux-x86_64-c93c6b0/bin/robo3t
0

If you need to install mongodb binary (Manually) to your Ubuntu 18.04 LTS (Bionic). You need to download mongodb .tgz file from this link .

1) Download it to your ~/Downloads folder and moveit to home directory by typing mv Downloads/mongodb-linux-x86_64-ubuntu1804-4.0.4.tgz ~/

2) Then unter it by typing tar -zxvf mongodb-linux-x86_64-ubuntu1804-4.0.4.tgz place it here (Home directory /home/). Dont move it from here.

3) Then make a directory at /data/db location and give write permission to thatdirectory.

sudo mkdir -p /data/db

sudo chmod -R 777 /data/db

4) Now, this is the tricky area. Make sure u r in hme directory by typing pwd (Present Working Directory)

pwd 

it will show

/home/<your user name>

Then type

ls -al

This command will show up all hiddenfile at home directory and search for

~/.bashrc

5) Edit the .bashrc file and write

export PATH=mongodb-linux-x86_64-ubuntu1804-4.0.4/bin:$PATH

and save the file type source ./bashrc

Then type echo $PATH at terminal it will display ~/mongodb-linux-x86_64-ubuntu1804-4.0.4/bin:/home/xenon/.nvm/versions/node/v10.15.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin

6) Now at terminal type mongo --nodb it will show MongoDB shell version v4.0.4

From here , you are all set, go ahead and enjoy mongodb installation. This istallation is bit complex but by this method you can easily control the version of mongodb and use it as per your need.

7) Then start mongod

>sudo mkdir -p /var/log && sudo chmod -R 777 /var/log
>mongod --port 27017 --dbpath /data/db --logpath /var/log/local.log --fork
>mongo --port 27017

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.