Skip to content

Instantly share code, notes, and snippets.

@davidecaruso
Last active October 22, 2021 07:26
Show Gist options
  • Save davidecaruso/7bba58df28390c995be3a0e279f0dfff to your computer and use it in GitHub Desktop.
Save davidecaruso/7bba58df28390c995be3a0e279f0dfff to your computer and use it in GitHub Desktop.
Install Robo3T on Linux
#!/bin/bash
cd /tmp || exit
printf "Downloading Robo 3T...\n"
filename="${1:-robo3t-1.4.4-linux-x86_64-e6ac9ec}"; # Default: v1.4.4
wget -q https://download.studio3t.com/robomongo/linux/$filename.tar.gz
if [ $? -ne 0 ];then
printf "Invalid package given.\n"
exit 1
fi
tar -xzf $filename.tar.gz
rm $filename.tar.gz
printf "Installing...\n"
if [ -d "/opt/robo3t" ];then
sudo rm -rf /opt/robo3t
fi
sudo mv $filename /opt/robo3t
printf "Creating symbolic link...\n"
if [ -L "/usr/bin/robo3t" ];then
sudo rm -f /usr/bin/robo3t
fi
sudo ln -s /opt/robo3t/bin/robo3t /usr/bin/robo3t
printf "\nInstallation completed successfully!\n\n"
printf "Downloading logo....\n"
cd /opt/robo3t
wget -q https://robomongo.org/static/robomongo-128x128-129df2f1.png
printf "Creating desktop entry...\n"
cat > ~/.local/share/applications/robo3t.desktop <<EOL
[Desktop Entry]
Encoding=UTF-8
Name=Robo 3T
Exec=/opt/robo3t/bin/robo3t
Icon=/opt/robo3t/robomongo-128x128-129df2f1.png
Terminal=false
Type=Application
Categories=Development;
StartupNotify=true
EOL
printf "\nDone!\n"
@itxtoledo
Copy link

to use it sudo wget -O - https://gist.githubusercontent.com/davidecaruso/7bba58df28390c995be3a0e279f0dfff/raw/20cf9a3d3f788e8c71dd823b474317971e666749/install-robo3t.sh | bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment