[linux-l] alternatives in debian
Ivan F. Villanueva B.
iv at artificialidea.com
Mi Jun 7 12:54:07 CEST 2006
Am Mi, Jun 07, 2006 09:34:12 +0200, Lutz Willek schrieb:
> Hi Liste,
>
> das ist bestimmt schon 1000 mal gefragt worden, aber google liefert mir nicht die richtigen
> Ergebnisse. Wird wohl an meinen falschen Keywords liegen...
>
> Also, ich möchte firefox als Standard einrichten. Wenn ich auf einen Link klicke soll er aufgehen.
> Und genau das funktioniert nicht. Mal kommt Konquerror, mal Galeon, abhängig von meiner
> Oberfläche.
>
> Unter Debian gibts doch so ein Verzeichnis /etc/alternatives, da sollte man das doch einstellen
> können. Nur finde ich nicht die richtigen Bezeichnungen für einen graphischen Browser. Für die
> Textkonsole ist der Link www-browser -->/usr/bin/w3m, was gut funktioniert. Was mich zu der Frage
> bringt, wo /etc/alternatives überhaupt beschrieben ist. Kann mir da einer Weiterhelfen?
Das hilft mir immer als howto:
$ ls -ld /usr/bin/wx-config
lrwxrwxrwx 1 root root 27 2002-07-14 22:32 /usr/bin/ wx-config -> /etc/alternatives/wx-config
So the wx-config script is handled by the alternatives system. See what the alternative is pointing to:
$ /usr/sbin/update-alternatives --list wx-config
/usr/bin/wxbase-2.2-config
or to see all the alternatives:
$ /usr/sbin/update-alternatives --display wx-config
wx-config - status is auto.
link currently points to /usr/bin/wxbase-2.2-config
/usr/bin/wxbase-2.2-config - priority 60
Current `best' version is /usr/bin/wxbase-2.2-config.
So. Install a link to my wx-config from a later version. (Remember - Usage:
update-alternatives --install <link> <name> <path> <priority>)
# update-alternatives --install /usr/bin/wx-config wx-config /usr/local/bin/wxgtk2u-2.4-config 70
(I need a higher priority than 60 to be chosen of the wxbase-2.2 one from the
debian package).
Now to confirm that my one is chosen:
$ /usr/sbin/update-alternatives --display wx-config
wx-config - status is auto.
link currently points to /usr/local/bin/wxgtk2u-2.4-config
/usr/bin/wxbase-2.2-config - priority 60
/usr/local/bin/wxgtk2u-2.4-config - priority 70
Current `best' version is /usr/local/bin/wxgtk2u-2.4-config.
--
Ivan F. Villanueva B.
A.I. library: http://www.artificialidea.com
<<< The European Patent Litigation Agreement (EPLA) >>>
<<< will bring Software patents by the backdoor >>>
<<< http://www.no-lobbyists-as-such.com/florian-mueller-blog/epla/ >>>
<<< http://wiki.ffii.de/EplaEn >>>
Mehr Informationen über die Mailingliste linux-l