You are not logged in.

#1 2009-11-01 17:29:49

crocowhile
Member
Registered: 2009-10-18
Posts: 57

[How - to] Install in a click from AUR webpages

Here I little hack I coded to install packages directly from the AUR frontend.

Needed:
- yaourt
- Firefox with greasemonkey (https://addons.mozilla.org/addon/748) or any greasemonkey-scripts accepting browser.

Steps:

1. Create a small bash script called aur_opener.sh containing the following code:

#!/usr/bin/env bash
gnome-terminal -x /usr/bin/yaourt -S ${1//aur:\/\//}

2. Make the script executable

3. Open about:config in Firefox and add the following variable:

network.protocol-handler.app.aur

with value:

yaourt

4. Install the greasemonkey script AURlizer (http://userscripts.org/scripts/show/61015).

5. Visit any page on the AUR db. A new symbol [↓] will appear next to the package name. Click on it and you will be asked which program to use. Point Firefox to wherever aur_opener.sh is. install!

Note.
From now on, every time you click on a link like the following: aur://pkgname yaourt will start.


Enjoy.
PS
(Obviously, it would be very easy to implement this directly into yaourt / the AUR db )

Last edited by crocowhile (2009-11-01 17:43:38)

Offline

#2 2009-11-01 17:42:49

knedlyk
Member
From: L'viv, Ukraine
Registered: 2009-04-14
Posts: 163
Website

Re: [How - to] Install in a click from AUR webpages

Wonderful!!!

Offline

#3 2009-11-01 17:44:13

crocowhile
Member
Registered: 2009-10-18
Posts: 57

Re: [How - to] Install in a click from AUR webpages

I modified the instruction. There was a little mistake in how to configure firefox variable. Now should go.

Offline

#4 2009-11-02 09:57:17

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: [How - to] Install in a click from AUR webpages

One click away from disaster... yaaaah. smile

Nice job figuring out though.  If only I could one click hot dogs.

Last edited by Gen2ly (2009-11-02 10:08:06)


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

#5 2010-11-28 12:22:42

crocowhile
Member
Registered: 2009-10-18
Posts: 57

Re: [How - to] Install in a click from AUR webpages

Made an AUR package:

http://aur.archlinux.org/packages.php?ID=43981

This works also in chromium btw

Offline

Board footer

Powered by FluxBB