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

前端 未结 9 1738
南方客
南方客 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条回答
  •  闹比i
    闹比i (楼主)
    2021-01-31 08:23

    You can first extract the package:

    cd ~/Downloads
    tar -xzf robo3t-x.x.x-linux-x86_64-xxxxxxx.tar.gz
    

    You can rename the folder to something simpler

    mv robo3t-x.x.x-linux-x86_64-xxxxxxx robo3t
    

    Dowload any images with format .png [click here][1] (For whatever reason, the Robo3T package itself does not contain any png file for the icon)

    Save the image like robo3t.png and move this image to folder robo3t and then, instead of dumping the whole thing in /usr you can transfer this directory to /opt directory and symlink the binary file to /usr/bin or /usr/local/bin. This makes for a better way of organising your applications, and keeping such add-on packages is what /opt is for.

    So first move the directory

    sudo mv robo3t /opt
    

    and then symlink it like so

    sudo ln -s /opt/robo3t/bin/robo3t /usr/bin/robo3t
    

    then you can create an Unity desktop file for your launcher

    nano ~/.local/share/applications/robo3t.desktop
    

    and finally; paste the next code in the file newly created

     [Desktop Entry]
           Encoding=UTF-8
           Name=Robo 3T
           Exec=robo3t
           Icon=/opt/robo3t/robo3t.png
           Terminal=false
           Type=Application
           Categories=Development;
    

    And Happy coding!

提交回复
热议问题