Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

In support forums, tech blogs or any other website, one may encounter some instruction similar to the following:

Type sudo apt-get install sl in a terminal window, enter your password en you should get your program.

I know the risk implied by installing additional software and I promise I will be careful. So how do I make Firefox understand that whenever it displays such a text, it should turn it into a link wich, when cliked on, will open the Software Center on the right page?

share|improve this question
add comment

1 Answer 1

The solution comprises two steps:

  1. connect firefox and apt-get
  2. modify apt-get install textual content of web pages into hyperlinks pointing to apt://...

Regarding the first step, there's apturl to handle hyperlinks that implement the apt:// "protocol".

Regarding the second step, you could use the greasemonkey add-on together with a greasemonkey script that modifies the page content as desired. I didn't test it myself, but there are different examples to do this only, for example the "Apt-Linker for Greasemonkey" script.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.