The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Install Software In Ubuntu by Clicking a Link

    Discussion in 'Linux Compatibility and Software' started by blackbird, Apr 7, 2008.

  1. blackbird

    blackbird Notebook Deity

    Reputations:
    584
    Messages:
    1,546
    Likes Received:
    0
    Trophy Points:
    55
    Original Article Here
    ============================================================================

    " Apturl in Ubuntu
    Written by Matt on April 5, 2008 – 8:33 pm -

    Imagine the next time you are trying reading a great list of Ubuntu programs. One of them catches your eye, and you want to try it. Instead of either using Add/Remove or opening a terminal to install the program, you simply click a link. A message box pops up asking you if you want to install the program, and then you enter your password. Before you could have found the program in Add/Remove, the program is installed! With Apturl, this is now a reality.

    You must first install Apturl. To do this, simply run this in terminal:


    sudo apt-get install apturl


    After Apturl is installed, you’ll need to restart your current web browser. Now if you would like to test Apturl, you’ll need an link won’t you? For details of the program, click “Gnome-Main-Menu”. To actually install the program, click “Install”.

    Gnome-Main-Menu : Install

    Hopefully that worked! Now before everyone starts complaining of how “insecure” this is, consider this. All that is really being done is apt-get is being told what program to install. So a “malicious” blogger can’t install “harmful” software because it isn’t in your repositories. Apturl only works with programs in your repositories. If apt-get can’t install it, neither can Apturl! You can’t run commands using Apturl, so no worries of automatic disk formatting!

    What if you would like to use this on your blog? It is very simple to do. For example, for the above install link, I’ve simply created a hyperlink to:

    apt:gnome-main-menu "

    ============================================================================

    I recommend that you install gnome-main-menu mentioned in the article as it will make your gnome panel menus much better

    [​IMG]

    ============================================================================

    Imagine how easy it is now to help your friends and family who are not so familiar with Linux to install programs.

    All you have to do is setup Apturl for them once, then just send them an email with a hyperlink to the program they wish to install, such as "apt:compiz"

    This procedure if adapted by tutorial / guide writers for Linux will make following guides even easier for beginners.
     
  2. prol91

    prol91 Notebook Consultant

    Reputations:
    54
    Messages:
    145
    Likes Received:
    0
    Trophy Points:
    30
    Great post!
    Can this be made to work with other package managers?
     
  3. blackbird

    blackbird Notebook Deity

    Reputations:
    584
    Messages:
    1,546
    Likes Received:
    0
    Trophy Points:
    55
    Apturl per say no, but something similar could be developed.

    Apturl is a protocol handler for just "apt:". However something generic for every package manager shouldn't be hard to create.

    I mean in firefox alone you can set how certain protocols are handled/open so...
     
  4. timberwolf

    timberwolf Notebook Consultant

    Reputations:
    131
    Messages:
    288
    Likes Received:
    0
    Trophy Points:
    30
    Software installation, like any system administation task, should be a deliberate and concious act - it shouldn't be a casual (or even accidental) click of a link on web page.

    Next you'll have web pages listing software that can be de-installed...
     
  5. blackbird

    blackbird Notebook Deity

    Reputations:
    584
    Messages:
    1,546
    Likes Received:
    0
    Trophy Points:
    55
    It is concious,unless someone creates a hyperlink with a delibrately incorrect heading.

    You cant install whatever the person who created the link wants you to install as the software the link points to has to be in the users repositories.
     
  6. LostDestiny

    LostDestiny Notebook Consultant

    Reputations:
    30
    Messages:
    216
    Likes Received:
    0
    Trophy Points:
    30
    It comes pre installed in 7.10
    or atleast i had it without installing anything other than updates?

    EDIT: oh and btw i love the menu the guide provided big thanks for that =D
     
  7. blackbird

    blackbird Notebook Deity

    Reputations:
    584
    Messages:
    1,546
    Likes Received:
    0
    Trophy Points:
    55
    no probs, its much more organized and easy to use compared to the default
     
  8. timberwolf

    timberwolf Notebook Consultant

    Reputations:
    131
    Messages:
    288
    Likes Received:
    0
    Trophy Points:
    30
    There are still dangerous programs in the regular repositories, a telnetd (daemon) would be one likely candidate, and I bet there are other programs that are best not installed on a newbie users desktop machine. One of the strengths of Ubuntu, is that no internet services and hence open ports are available on a default install.

    You've illustrated my point, by a clicking on a web link, firstly the user does not know what they are installing, and two you've dumbed down the knowledge level so that the user doesn't know where or how to use the proper software management tools.
     
  9. v1k1ng1001

    v1k1ng1001 Notebook Deity

    Reputations:
    239
    Messages:
    738
    Likes Received:
    0
    Trophy Points:
    30
    Great thread!

    I believe I've used this to install the open office <--> .docx converter.

    Also, doesn't Mint use this to install many of its programs?

    Is this the same thing?
     
  10. Element

    Element Notebook Evangelist

    Reputations:
    192
    Messages:
    537
    Likes Received:
    1
    Trophy Points:
    31
    Very nice guide! ;)
     
  11. Ayle

    Ayle Trailblazer

    Reputations:
    877
    Messages:
    3,707
    Likes Received:
    7
    Trophy Points:
    106
    Doesn't gdebi already do that? Or am I confusing the way this thing works....
     
  12. v1k1ng1001

    v1k1ng1001 Notebook Deity

    Reputations:
    239
    Messages:
    738
    Likes Received:
    0
    Trophy Points:
    30
    ^^^ maybe that is what I am thinking of. I always use synaptic but I have Mint installed at work. I will check it out tomorrow.
     
  13. blackbird

    blackbird Notebook Deity

    Reputations:
    584
    Messages:
    1,546
    Likes Received:
    0
    Trophy Points:
    55
    Mint uses something similar, you search for something and it takes you to mints own database for downloading.
     
  14. v1k1ng1001

    v1k1ng1001 Notebook Deity

    Reputations:
    239
    Messages:
    738
    Likes Received:
    0
    Trophy Points:
    30
    http://linuxmint.com/software/?sec=categories&release=2

    ^^^ Yeah it takes you here I believe, and you can add some common packages to your system. Very noob friendly, but at some point you're going to have to learn add/remove, synaptic and finally how to use the terminal.