rilevante


  rilevante > linux.debian.user.italian

 #1  
14.02.2012, 17:20
enrico tognoni
Premetto che ho disinstallato iceweasel e uso solo iron:

enrico@debian-acer3690-enrico:~$ sudo update-alternatives --config
x-www-browser

update-alternatives: errore: nessuna alternativa per x-www-browser.

Non mi consente di aggiungere voci in lista ,non e' che qualcuno mi
posterebbe in quale file /path../nomefile e quale riga di esempio di
browser predefinito e non per provare se manualmente può funzionare?
 #2  
14.02.2012, 18:40
Davide Prina
On 14/02/2012 18:56, enrico tognoni wrote:

> enrico@debian-acer3690-enrico:~$ sudo update-alternatives --config
> x-www-browser
>
> update-alternatives: errore: nessuna alternativa per x-www-browser.


$ update-alternatives --query x-www-browser

> Non mi consente di aggiungere voci in lista


forse ti conviene usare l'opzione: --install

> in quale file /path../nomefile e quale riga di esempio di
> browser predefinito e non per provare se manualmente può funzionare?


/etc/alternatives/

per saperne di più:
$ man 8 update-alternatives

Ciao
Davide
 #3  
15.02.2012, 08:00
enrico tognoni
On 14/02/2012 20:40, Davide Prina wrote:
> forse ti conviene usare l'opzione: --install
>
>> in quale file /path../nomefile e quale riga di esempio di
>> browser predefinito e non per provare se manualmente può funzionare?

ho provato: (prima ho creato il link symbolic)
update-alternatives --install /etc/alternatives/iron iron
/usr/share/iron/iron
ho provato anche questo:
sudo update-alternatives --install /etc/alternatives/x-www-browser iron
/usr/share/iron/iron
per vedere se impostava qualcosa di default ma niente

anche se creo un iron symbolic link in /etc/alternatives, manca
l'impostazione x-www-browser.1 (x-www-browser.1.gz) che penso sia creata
di default al momento dell'installazione del pacchetto.

ho provato a installare anche chromium per vedere se lo trova nel 1.gz o
cercare di capire come inserirlo manualmente ma niente...

ho provato a cambiare il link simbolico x-www-browser verso iron
piuttosto che iceweasel, ma niente, evidentemente ci sono delle
impostazioni più oscure che non riesco a immaginare.

non sono abbastanza esperto per andare + a fondo, comunque grazie, si
spiega perchè la famiglia chrome, chromium e anche iron non sono in
grado di auto impostarsi come browser predefinito.

grazie

P.S.
x-www-browser.1.gz contiene questo se a qualcuno interessa:

..TH ICEWEASEL 1 "November 4, 2004" iceweasel "Linux User's Manual"
..SH NAME
iceweasel - a Web browser for X11 derived from the Mozilla browser

..SH SYNOPSIS
..B iceweasel
[\fIOPTIONS\fR] [\fIURL\fR]

..B /usr/lib/iceweasel/firefox\-bin
[\fIOPTIONS\fR] [\fIURL\fR]

..SH DESCRIPTION
\fBIceweasel\fR is an open-source web browser, designed for
standards compliance, performance and portability.

..SH USAGE
\fBiceweasel\fR is a simple shell script that will set up the
environment for the actual executable, \fBfirefox\-bin\fR.
If there is an Iceweasel browser already running, \fBiceweasel\fR will
arrange for it to create a new browser window; otherwise it will start
the Iceweasel application.

..SH OPTIONS
A summary of the options supported by \fBiceweasel\fR is included below.

..SS "X11 options"
..TP
..BI \-\-display= DISPLAY
X display to use
..TP
..B \-\-sync
Make X calls synchronous
..TP
..B \-\-no\-xshm
Don't use X shared memory extension
..TP
..BI \-\-xim\-preedit= STYLE
..TP
..BI \-\-xim\-status= STYLE
..TP
..B \-\-g\-fatal\-warnings
Make all warnings fatal

..SS "Mozilla options"
..TP
..B \-h, \-help
Show summary of options.
..TP
..B \-v, \-version
Print Iceweasel version.
..TP
\fB\-P\fR [\fIprofile\fR]
Start with \fIprofile\fR. When no profile is given, displays the Profile
Manager. May require \fB\-no\-remote\fR, see below.
..TP
..B \-migration
Start with migration wizard. May require \fB\-no\-remote\fR, see below.
..TP
..B \-ProfileManager
Start with profile manager. May require \fB\-no\-remote\fR, see below.
..TP
..B \-no\-remote
Don't connect to a running Iceweasel instance. This option can be necessary
in conjunction to several of the options above, that won't have any effect
when an Iceweasel instance is running unless \fB\-no\-remote\fR is used at
the same time.
..TP
\fB\-UILocale\fR \fIlocale\fR
Start with \fIlocale\fR resources as User Interface locale. By default,
it is
guessed from environment and available locales for Iceweasel.
..TP
..B \-safe\-mode
Starts Iceweasel in safe mode, i.e. disabling all extensions and
showing a bit more debugging messages.
..TP
..B \-jsconsole
Start with Javascript Console
..TP
\fB\-new-window\fR \fIURL\fR
Open \fIURL\fR in a new window in an already running Iceweasel process.
..TP
\fB\-new-tab\fR \fIURL\fR
Open \fIURL\fR in a new tab in an already running Iceweasel process.
..TP
\fB\-chrome\fR \fIurl\fR
Load the specified chrome.
..SS "Debugger options"
..TP
..B \-g, \-debug
Starts Iceweasel through a debugger (gdb by default).
..TP
\fB\-\-debugger\fR \fIprogram\fR
Use \fIprogram\fR as a debugger for Iceweasel. Implies \fB\-debug\fR.

..SH ENVIRONMENT
\fIICEWEASEL_DSP\fR - configures the /dev/dsp wrapper to use. Accepted
values
are "auto", "artsdsp", "esddsp", "aoss" or "none" (default).

\fIMOZILLA_DISABLE_PLUGINS\fR - when set, totally disables loading
browser plugins
(the ones that appear at the about:plugins url)

..SH FILES
\fI/usr/bin/iceweasel\fR - shell script wrapping
\fBfirefox\-bin\fR
..br

\fI/usr/lib/iceweasel/firefox\-bin\fR - \fBiceweasel\fR
executable
..br

\fI/etc/iceweasel/iceweaselrc\fR - file containing environment
variables to be passed to Iceweasel.
..br

\fI${HOME}/.mozilla/firefox/rc\fR - file containing environment variables to
be passed to Iceweasel. Overrides \fI/etc/iceweasel/iceweaselrc\fR

..SH BUGS
To report a bug, please visit \fIhttp://bugzilla.mozilla.org/\fR and/or
report bugs
to the Debian Bug Tracking System, as usual.

..SH AUTHORS
..TP
..B The Mozilla Organization
..I http://www.mozilla.org/about.html
 #4  
15.02.2012, 17:10
Davide Prina
On 15/02/2012 09:36, enrico tognoni wrote:
> On 14/02/2012 20:40, Davide Prina wrote:
>> forse ti conviene usare l'opzione: --install


> ho provato: (prima ho creato il link symbolic)
> update-alternatives --install /etc/alternatives/iron iron
> /usr/share/iron/iron
> ho provato anche questo:
> sudo update-alternatives --install /etc/alternatives/x-www-browser iron
> /usr/share/iron/iron


mi sa che hai fatto qualche errore

$ man update-alternatives
[...]
--install link name path priority [--slave link name path]...
Add a group of alternatives to the system. link is the
generic name for the master link, name is the name of its sym?
link in the alternatives directory, and path is the
alternative being introduced for the master link. The arguments
after --slave are the generic name, symlink name in the
alternatives directory and the alternative path for a slave
link. Zero or more --slave options, each followed by
three arguments, may be specified. Note that the master alterna?
tive must exist or the call will fail. However if a slave
alternative doesn't exist, the corresponding slave alterna?
tive link will simply not be installed (a warning
will still be displayed). If some real file is installed where an
alternative link has to be installed, it is kept unless
--force is used.

If the alternative name specified exists already in the
alternatives system's records, the information supplied will be
added as a new set of alternatives for the group.
Otherwise, a new group, set to automatic mode, will be added with
this information. If the group is in automatic mode, and
the newly added alternatives' priority is higher than any
other installed alternatives for this group, the symlinks
will be updated to point to the newly added alternatives.
[...]

se non capisci cosa significano link, name, path, priority, ... cerca un
esempio!

$ update-alternatives --query x-www-browser
Link: x-www-browser
Status: auto
Best: /usr/bin/epiphany-browser
[...]

quindi epiphany-browser è un esempio

$ apt-file search /usr/bin/epiphany-browser
epiphany-browser: /usr/bin/epiphany-browser
epiphany-browser-dbg: /usr/lib/debug/usr/bin/epiphany-browser
$ cd /tmp
$ apt-get download epiphany-browser
Scaricamento di:1 Scaricamento di epiphany-browser 3.2.1-2 [1445 kB]
Recuperati 1445 kB in 5s (252 kB/s)
$ ar x epiphany-browser_3.2.1-2_amd64.deb
$ tar zxvf control.tar.gz
./
./postrm
./prerm
./md5sums
./postinst
./preinst
./control
$ cat postinst
#!/bin/sh
set -e

PRIO=85
for alt in x-www-browser gnome-www-browser; do
update-alternatives --install \
/usr/bin/$alt $alt /usr/bin/epiphany-browser $PRIO \
--slave /usr/share/man/man1/$alt.1.gz $alt.1.gz
/usr/share/man/man1/epiphany-browser.1.gz
done

# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ];then
update-menus
fi
# End automatically added section

da cui vedi che cosa hai sbagliato nell'uso dei parametri

Attenzione che con i comandi che hai dato hai modificato dei link
simbolici errati. Ti conviene eseguire la riconfigurazione dei browser
che hai installato per sistemarli (più dovresti cancellare quelli che
hai creato in più).

Usa l'istruzione
$ update-alternatives --query x-www-browser
per verificare se quello che hai fatto ha dato dei risultati

Attenzione a fare test che possono comprometterti il corretto
funzionamento del sistema, forse sarebbe meglio se ti installi una
Debian molto base con debootstrap e fai i test li

per saperne di più:
$ apt-cache show debootstrap
# apt-get install debootstrap
$ man debootstrap

Ciao
Davide
Discussioni simili
impostare explore come browser predefinito

ciao, non riesco piu' ad avere explorer e windows mail come programmi predefiniti per la navigazione e la posta. nonostante abbia flaggato l'opzione di impostazione come...

Impostare come predefinito...........

siccome uso per navigare firefox vorrei metterlo come browser predefinito, ma non ricordo come si fa. Chi mi aiuta?

come impostare explorer come browser predefinito

ciao a tutti ho una macchina con win 2000 pro ho usato per un periodo di tempo firefox e l'ho impostato come browser predefinito, vorrei tornare ad explorer ma se apro...

[MDK 10.1] Impostare il browser predefinito

Salve a tutti, cdt mi piacerebbe tanto sapere come impostare il browser predefinito in modo tale che sia Firefox e non Konqueror.... Vi ringrazio anticipatamente


Tutti gli orari sono GMT. Attualmente sono le 09:43. | Privacy Policy