Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save anilahir/ebc3b82970d18064f8f294a722d0025b to your computer and use it in GitHub Desktop.
Save anilahir/ebc3b82970d18064f8f294a722d0025b to your computer and use it in GitHub Desktop.
robomongo 3t installtion and creating shortcut
#!/bin/bash
cd /tmp || exit
echo "Downloading Robomongo ..."
wget -q https://download.studio3t.com/robomongo/linux/robo3t-1.4.2-linux-x86_64-8650949.tar.gz
tar -xzf robo3t-1.4.2-linux-x86_64-8650949.tar.gz
rm robo3t-1.4.2-linux-x86_64-8650949.tar.gz
echo "Installing to opt..."
if [ -d "/opt/RoboMongo" ];then
sudo rm -rf /opt/RoboMongo
fi
sudo mv robo3t-1.4.2-linux-x86_64-8650949 /opt/RoboMongo
echo "Creating symbolic link..."
if [ -L "/usr/bin/robomongo" ];then
sudo rm -f /usr/bin/robomongo
fi
sudo ln -s /opt/RoboMongo/bin/robo3t /usr/bin/robomongo
echo "Installation completed successfully."
echo "Downloading Robomongo Logo...."
cd /opt/RoboMongo
wget -q https://robomongo.org/static/robomongo-128x128-129df2f1.png
echo "Creating desktop entry for Robomongo."
cat > ~/.local/share/applications/robomongo.desktop <<EOL
[Desktop Entry]
Encoding=UTF-8
Name=MongoDB Robo 3T
Exec=/opt/RoboMongo/bin/robo3t
Icon=/opt/RoboMongo/robomongo-128x128-129df2f1.png
Terminal=false
Type=Application
Categories=Development;
StartupNotify=true
EOL
echo "Done...You can use RoboMongo!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment