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

前端 未结 9 1734
南方客
南方客 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
    

提交回复
热议问题