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?
11 Answers
Follow these simple steps.
- Download the robomongo:
- 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/robomongoYou 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_
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 6 Notice:
Now Robomongo program become Robo3T studio and you can download it from Here.
If you need old version include Old Robomongo program, you can download version from Here
======================= My answer from 2016
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 1.2 extract tar.gz file
tar -xvzf robomongo-0.9.0-linux-x86_64-0786489.tar.gz1.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/robomongo1.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
./robomongoSecond 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 2.2 install deb file using dpkg command line
sudo dpkg -i robomongo-0.8.5-x86_64.deb2.3 open robomongo program using command line by run
robomongoVery 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
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/robo3tNow you can run robo3t in your terminal and it will work.
Install Robo3t On Ubuntu 18.04 / Ubuntu 20.04
1- Download the package form or using wget
wget 2- Extract here using
tar xvf robo3t-1.4.4-linux-x86_64-e6ac9ec.tar.gz4- Move the extracted package
sudo mv robo3t-1.4.4-linux-x86_64-e6ac9ec /usr/local/bin/robo3tChange directory to
cd /usr/local/bin/robo3t/bin5- Download icon
sudo wget -O icon.png6- To make desktop icon for Robo3t, we can make a file in
sudo nano /usr/share/applications/robo3t.desktopPaste 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=trueValidate the .desktop file:
desktop-file-validate /usr/share/applications/robo3t.desktopIf everything is correct, you can search in application menu for robo3t.
Now, we can find the icon in application launcher menu by search for robo3t
We can check this also
1run the folowing commands (feel free to update the links and change folder names):
wget
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;
EOLthen 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) :(
1There doesn't seem to be sudo apt-get install for robomongo. There is tar.gz download available from hereOnce 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.tarand then either move the untar-ed version to /opt (if needed)
Otherwise there is another way as mentioned in this blog or here
3To install Robomongo (Robo 3T) version 1.4+ use following steps
- Download the : to Downloads folder
- Start command line and paste there following commands:
cd ~/Downloads/
tar -xvzf robo3t*.tar.gz
sudo mkdir /usr/local/bin/robo3t
sudo mv robo3t*/* /usr/local/bin/robo3t/
cd /usr/local/bin/robo3t/bin/
sudo chmod +x robo3tPreviously, you could install it using Ubuntu Software using sudo snap install robo3t-snap.
But it is not updating from version 1.3.
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 Extract it
tar -xvzf Make a directory
mkdir ~/robo-backupMove 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 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/db4) 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:$PATHand 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 --nodbit 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 My version grabs the latest tar.gz release from github:
#!/bin/bash
set -e
# sudo apt install jq desktop-file-utils
# clean
rm -rf robo3t /usr/localbin/robo3t /usr/share/applications/robo3t/usr/share/applications/robo3t.desktop
JSON="$(curl -s | jq -r '.assets[] | select(.name | select(endswith(".tar.gz")))')"
URL="$(echo $JSON | jq -r '.browser_download_url')"
FILENAME="$(echo $JSON | jq -r '.name')"
NAME="$(basename "$FILENAME" .tar.gz)"
echo "URL=$URL"
echo "FILENAME=$FILENAME"
echo "NAME=$NAME"
curl -sOJLN "$URL"
tar xf "$FILENAME"
rm -rf "$FILENAME"
sudo mv "$NAME" /usr/local/bin/robo3t
cd /usr/local/bin/robo3t/bin
sudo curl -s "" -o icon.png
cat > robo3t.desktop <<EOL
[Desktop Entry]
Name=Robo3T
Icon=/usr/local/bin/robo3t/bin/icon.png
Exec=/usr/local/bin/robo3t/bin/robo3t
Terminal=false
Type=Application
Categories=Development;
StartupNotify=true
EOL
desktop-file-validate robo3t.desktop
sudo desktop-file-install robo3t.desktop
rm robo3t.desktop
# Now, we can find the `icon` in application launcher menu by search for `robo3t`
#
#
#
# You can find it in github repo