How to install Robomongo from tar.gz file as a pro

2020-05-22 06:58发布

Nowadays robomongo developers releasing the new versions of robomongo as tar.gz not in .deb packages that was easy for double click installations. But that option is no longer available. So how to install it as a program in Ubuntu. I have tried extracting the package and install but failed.

admin@admin-lenovo:~$ cd Downloads/
admin@admin-lenovo:~/Downloads$ tar -xzf robomongo-0.9.0-rc4-linux-x86_64-8c830b6.tar.gz 
admin@admin-lenovo:~/Downloads$ cd robomongo-0.9.0-rc4-linux-x86_64-8c830b6/
admin@admin-lenovo:~/Downloads/robomongo-0.9.0-rc4-linux-x86_64-8c830b6$ ./configure
bash: ./configure: No such file or directory

Also .make and ./install failed as no files found. How to install it as a program?

9条回答
Summer. ? 凉城
2楼-- · 2020-05-22 07:33

Pulled this from my dotfiles. It's ugly but it works... and it's a bit more verbose so it should be understandable to most:

# Pull down and install Robomongo by copying files
cd /tmp
wget https://download.robomongo.org/0.9.0/linux/robomongo-0.9.0-linux-x86_64-0786489.tar.gz
tar xf robomongo-0.9.0-linux-x86_64-0786489.tar.gz
sudo mv ./robomongo-0.9.0-linux-x86_64-0786489 /opt/robomongo
cd /usr/sbin
sudo ln -s /opt/robomongo/bin/robomongo

# Grab image to use for icon
cd /opt/robomongo
wget http://mongodb-tools.com/img/robomongo.png

# Create desktop entry
touch /tmp/robomongo.txt
echo "[Desktop Entry]" >> /tmp/robomongo.txt
echo "Encoding=UTF-8" >> /tmp/robomongo.txt
echo "Name=Robomongo" >> /tmp/robomongo.txt
echo "Comment=Launch Robomongo" >> /tmp/robomongo.txt
echo "Icon=/opt/robomongo/robomongo.png" >> /tmp/robomongo.txt
echo "Exec=/usr/sbin/robomono" >> /tmp/robomongo.txt
echo "Terminal=false" >> /tmp/robomongo.txt
echo "Type=Application" >> /tmp/robomongo.txt
echo "Categories=Developer;" >> /tmp/robomongo.txt
echo "StartupNotify=true" >> /tmp/robomongo.txt
mv /tmp/robomongo.txt ~/.local/share/applications/robomongo.desktop
查看更多
Viruses.
3楼-- · 2020-05-22 07:35

Robomongo is now Robo 3T. Following are the updated steps:

  1. Download the tar file from robomongo site. The current file is robo3t-1.1.1-linux-x86_64-c93c6b0.tar.gz, but yours could be different.

  2. Open up the terminal, switch to download directory and run the following commands:

    $ tar -xvzf robo3t-1.1.1-linux-x86_64-c93c6b0.tar.gz
    $ sudo mkdir /usr/local/bin/robomongo
    $ sudo mv  robo3t-1.1.1-linux-x86_64-c93c6b0/* /usr/local/bin/robomongo
    $ cd /usr/local/bin/robomongo/bin
    $ sudo chmod +x robo3t 
    $ sudo gedit ~/.bashrc
    
  3. Add the following line to the end of .bashrc file:

    alias robomongo='/usr/local/bin/robomongo/bin/robo3t'

  4. Save and close the file. Now reload it using the following command:

    $ source ~/.bashrc
    
  5. Then you can run robomongo from your terminal and it will work:

    $ robomongo
    
查看更多
Deceive 欺骗
4楼-- · 2020-05-22 07:37

Don't worry about how to install Robo-3T on your Linux machine, follow these simple steps:

  1. Download script from Robo3T-Installation-With-Desktop Entry
  2. Open terminal in directory where above file is downloaded and run below command

    sudo chmod +x ./Robo3T-Installation-Menu.sh

  3. Then type below command and hit enter

    ./Robo3T-Installation-Menu.sh

  4. Just wait to complete it, once completed enjoy RoboMongo. Search in menu with name "Robo 3T".

查看更多
登录 后发表回答