Skip to content

Instantly share code, notes, and snippets.

@chetanppatil
Last active May 10, 2023 03:54
Show Gist options
  • Save chetanppatil/ef98f17a699c1ff2ef7c34903c3c0389 to your computer and use it in GitHub Desktop.
Save chetanppatil/ef98f17a699c1ff2ef7c34903c3c0389 to your computer and use it in GitHub Desktop.
Robo mongo 3t installation and creating shortcut
#!/bin/bash
set -e
ROBO_VERSION="1.2.1"
ROBO_FILE="robo3t-$ROBO_VERSION-linux-x86_64-3e50a65.tar.gz"
ROBO_URL="https://download.robomongo.org/$ROBO_VERSION/linux/$ROBO_FILE"
ROBO_DIR="/opt/RoboMongo"
echo "Downloading Robomongo..."
wget -q "$ROBO_URL" -P /tmp
echo "Extracting Robomongo..."
sudo tar -xzf "/tmp/$ROBO_FILE" -C /opt
echo "Cleaning up..."
rm "/tmp/$ROBO_FILE"
echo "Creating symbolic link..."
sudo ln -sf "$ROBO_DIR/bin/robo3t" "/usr/local/bin/robomongo"
echo "Creating desktop entry for Robomongo..."
cat > ~/.local/share/applications/robomongo.desktop <<EOL
[Desktop Entry]
Encoding=UTF-8
Name=Robo 3T
Exec=$ROBO_DIR/bin/robo3t
Icon=$ROBO_DIR/robomongo-128x128-129df2f1.png
Terminal=false
Type=Application
Categories=Development;
StartupNotify=true
EOL
echo "Robomongo installation completed successfully!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment