How to install Robomongo from tar.gz file as a program in Ubuntu 15.10

前端 未结 9 1737
南方客
南方客 2021-01-31 07:30

Nowadays robomongo developers releasing the new versions of robomongo as tar.gz not in .deb packages that was easy for double click installations. But

相关标签:
9条回答
  • 2021-01-31 08:25

    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
    
    0 讨论(0)
  • 2021-01-31 08:26

    You can also put the robomongo into /usr/bin like I do:

    tar xf robomongo-0.9.0-rc8-linux-x86_64-c113244.tar.gz
    
    sudo mv robomongo-0.9.0-rc8-linux-x86_64-c113244/ /usr/bin/robomongo
    
    export PATH=/usr/bin/robomongo/bin:$PATH
    

    If you are using fish shell, you need to change the last line to:

    set PATH $PATH /usr/bin/robomongo/bin
    

    Now you can start it with command:

    robomongo
    
    0 讨论(0)
  • 2021-01-31 08:26

    Well, I do not know if it might still help, but one efficient way to install Robomongo from tar.gz file is the following:

    1. Go to https://robomongo.org/download to grab the tar.gz file,

    2. After download,

      cd Downloads/*
      

      and then type in the terminal:

      $ sudo tar xzf robo3t-1.3.1-linux-x86_64-7419c406.tar.gz -C /opt/
      
    3. Make sure your file has been unzipped in the /opt directory by checking:

      $ ls -lh /opt/
      
    4. Next, install it by doing:

      $ sudo /opt/robo3t-1.3.1-linux-x86_64-7419c406/bin/robo3t
      
    5. The installation wizard pops up and accept the terms and continue installation. Then Enjoy

    NB: You will not see the robot3t icon in the start menu. So to start robot3t, always /opt/robo3t-1.3.1-linux-x86_64-7419c406/bin/robo3t to launch robo3T.

    Hope it helps ;)

    0 讨论(0)
提交回复
热议问题