Set the Default Browser on Ubuntu From the Command Line Nastavite privzeti brskalnik na Ubuntu Od Command Line
Ubuntu Linux has a default browser functionality that will automatically launch the correct browser when clicking on a link in a gnome gui application. Ubuntu Linux je funkcionalnost privzeti brskalnik, da se bo samodejno začela pravilno brskalnik, ko s klikom na povezavo v gnome uporabi GUI. It's easy enough to It's easy dovolj set the default browser using the GUI tools določiti privzeti brskalnik z GUI orodja , but sometimes it's easier to set it using the command line client.. , Toda včasih je lažje določiti, da z uporabo odjemalca ukazne vrstice .. for instance, if you are trying to remotely administer a machine. na primer, če se potrudiš, da na daljavo upravlja stroj.
To change this setting, we'll use the update-alternatives command. Če želite spremeniti to nastavitev, bomo uporabili ukaz update-alternative.
sudo update-alternatives –config x-www-browser sudo update-alternative-config x-www-browser
You should see something similar to this. Zdaj bi morali videti nekaj podobnega temu. You'll notice that konqueror is the default browser on my computer right now. Opazili boste, da je Konqueror je privzeti brskalnik na svoj računalnik zdaj.
$ sudo update-alternatives –config x-www-browser $ Sudo update-alternative-config x-www-browser
There are 2 alternatives which provide `x-www-browser'. Obstajata 2 možnosti, ki zagotavljajo `x-www-browser".
Selection Alternative Izbira Alternative
———————————————– ----------------
1 /usr/bin/firefox 1 / usr / bin / firefox
*+ 2 /usr/bin/konqueror * + 2 / usr / bin / KonquerorPress enter to keep the default[*], or type selection number: Pritisnite ENTER, da obdržite privzeto [*], ali tip izbor številka:
If I wanted to select firefox as the default browser, I could just type 1 and hit enter. Če sem hotel, da izberete firefox kot privzeti brskalnik, jaz bi samo tipa 1 in zadeti nastopiti.

Daily Email Updates Dnevni Email Updates
You can get our how-to articles in your inbox each day for free. Lahko dobite našo kako do člankov v vašo mapo »Prejeto vsak dan brezplačno. Just enter your name and email below: Preprosto vpišite vaše ime in e-pošto spodaj:



im trying to do that but i dont get anything in that list…. im težaven za to, ampak jaz dont zaslužiti ničesar na tem seznamu .... my prob is i update from firefox to firefox2, everything is fine besides the fact that some apps when i click on link they dont open the browser anymore ( like gaim ) … im trying to set symlinks but with no luck , so i came to this side, setting default browser but got no luck either svoj prob je i od modernizirati kresnica do firefox2, vse je v redu poleg dejstva, da nekatere aplikacije, ko kliknete na link i oni dont odpreti brskalnik več (kot Gaim) ... im težaven, da določi symlinks, vendar nima sreče, tudi jaz prišel na to strani, ki določa privzeti brskalnik, vendar nimam niti sreča
Thanks for sharing. Hvala za delitev. Although, using GUI tools is much easier. Čeprav, z uporabo GUI orodij je veliko lažje.
BTW, is there any way of configuring POP/IMAP access for Windows Live Mail in Evolution Mail ?? BTW, obstaja kakršen koli način za konfiguracijo POP / IMAP dostop za Windows Live Mail iz Evolution Mail?
Thank you! Hvala! Tell me, how can I change the default email client as well? Povej mi, kako lahko spremenim e-poštni odjemalec neplačila, kakor je tudi?
Good advice. Dober nasvet. But: I upgraded to ubuntu 8.04 which includes firefox-3 of course, which sucks, of course. Toda: Nadgradil sem na ubuntu 8,04, ki vključuje firefox-3 seveda, ki je zanič, seveda. After reverting to firefox-2, fixing the eye-damaging fonts, etc. I found that links from my emails/im etc didn't work. Ko se vrne v firefox-2, določanje oči škodljive pisave, itd sem ugotovil, da povezave iz mojega emails / im etc ni deloval. I suspected that something like the default browser was “confused” and tried to change that. I sum, da je nekaj kot privzeti brskalnik je "zmeden" in poskušal spremeniti. This led me here. Zaradi tega me tukaj. Typing the command I get: Vnašanje ukaz dobim:
$ sudo update-alternatives –config x-www-browser $ Sudo update-alternative-config x-www-browser
There is only 1 program which provides x-www-browser Obstaja samo 1 program, ki zagotavlja x-www-browser
(/usr/bin/firefox-2). (/ usr/bin/firefox-2). Nothing to configure. Nič v oblikovati.
It seems that only by using the GUI i could add the -2 at the firefox %s command. Zdi se, da le z uporabo GUI jaz lahko dodate na Firefox -2% s ukaz. After I changed it to firefox-2 %s the links worked fine. Potem sem spremenil, da firefox-2% s povezavami obdelan lep.
Great advice, but note that preceding the worh “config”, there are two dashes as: Super nasvet, vendar pa ugotavlja, da pred worh "zaupnik", obstajata dve pomišljajev kot:
sudo update-alternatives –config x-www-browser. sudo update-alternative-config x-www-browser. Hard to see while editing, but it makes all the difference in execution. Težko je videti, medtem ko urejanje, vendar naredi vse razlike v izvedbi.
thanks for the tip!!! hvala zakaj odlagališče! works like a charm deluje brezhibno
had a problem setting firefox to open html files after following this tip (konqueror still was the default file in opening html files), solved the problem after associating it with ff3 in kubuntu 8.04.1 by right-clicking the file, open with, selected ff3 and checked “Remember application association for this type of file” tick box problem je, da odprete nastavitev kresnica html datoteke, potem sledi to odlagališče (Konqueror še vedno je bil pri odpiranju datoteke privzete html datotek), rešiti problem, ko povezujemo s FF3 v Kubuntu 8.04.1 z desnim klikom na datoteko, odprto z izbrano FF3 in preverjen "Zapomni vloga združenja za to vrsto datoteke" označite okence
just thought I'd add it here… Samo mislila sem dodati, da tukaj ...
I am using Kubuntu Hardy 8.04. Rabim Kubuntu Hardy 8,04.
I have typed the command: Imam natipkan ukaz:
sudo update-alternatives –config x-www-browser sudo update-alternative-config x-www-browser
There are 2 alternatives which provide `x-www-browser'. Obstajata 2 možnosti, ki zagotavljajo `x-www-browser".
Selection Alternative Izbira Alternative
———————————————– ----------------
* 1 /usr/bin/firefox-3.0 * 1 / usr/bin/firefox-3.0
+ 2 /usr/bin/konqueror + 2 / usr / bin / Konqueror
Press enter to keep the default[*], or type selection number: 1 Pritisnite ENTER, da obdržite privzeto [*], ali tip izbor številka: 1
Using '/usr/bin/firefox-3.0′ to provide 'x-www-browser'. Uporaba "/ usr/bin/firefox-3.0", ki omogočajo "x-www-browser".
I have selected 1 for firefox but when I create a desktop url pointing to I izbrali 1 zakaj kresnica, vendar, ko sem na namizju ustvarite url kaže na http://www.google.com http://www.google.com it automatically opens in Konqueror. samodejno odpre v Konqueror.
Any ideas? Vse ideje? I need to setup Firefox as the default web browser in a LiveCD I am creating. Moram setup Firefox kot privzeti spletni brskalnik v živeti sem ustvarjanju.
just use the GUI 'system', 'preferences', 'preferred applications' Samo uporabite GUI "sistem", "nastavitve", "prednostne aplikacije"
Sawtooth – Thanks for the tip and now the links work! Sawtooth - Hvala za nasvet in zdaj povezave delo!
“–config” not “-config” "-Config" ne "-config"
Thanks for this great tip. Hvala zakaj to velik odlagališče. I just wanted to add that you could use '–set' instead of '–config' to set the path non-interactively. Hotel sem dodati, da lahko uporabite "-set" namesto "-config", da nastavite pot non-interaktivno. Like so: Kot so:
sudo update-alternatives –set x-www-browser /usr/bin/firefox sudo update-alternative-set x-www-browser / usr / bin / firefox
Great, if you want to use this command in a script. Super, če želite uporabiti ta ukaz v scenarij.
How about for Windows? Kaj pa za Windows? Any idea how to set the default web browser (Opera, Safari, Chrome, IE, Firefox, etc) from the command line in Windows (XP/Vista/Win7)? Vsako idejo, kako nastaviti privzeti spletni brskalnik (Opera, Safari, Chrome, IE, Firefox, itd) iz ukazne vrstice v operacijskem sistemu Windows (XP/Vista/Win7)? thanks! hvala!
Hi I happen to use mepsis on my laptop and I am using KDE as my desktop. Halo jaz slučajno uporabo mepsis naprej svoj laptop in rabim KDE kot svoj pult. I configured wrongly and when I open trash can it opens with firefox and it says “This application cannot be opened in firefox” and how do I retreive it back to open in Konqueror. I konfigurirani napačno in ko odprem smeti lahko odpre s kresnica ter to pravi: "Ta uporaba ne more biti odprt v kresnica" in kako retreive nazaj odpreti v Konqueror. Please help me Prosim, pomagajte mi
This is a cool help site where I have seen all sort of answers regarding ubuntu we get To je kul stran pomoč kjer sem videl vse vrste odgovorov glede ubuntu pridemo
Firefox 3.5 always comes up as default, but it doesn't show up as default here: Firefox 3,5 vedno pride gor kot ne izpolniti obveznosti, vendar ne prikaže kot privzeto tukaj:
sudo update-alternatives –config x-www-browser sudo update-alternative-config x-www-browser
There are 10 alternatives which provide `x-www-browser'. Obstajajo druge možnosti, ki zagotavljajo 10 `x-www-browser".
Selection Alternative Izbira Alternative
———————————————– ----------------
1 /usr/bin/firefox-3.0 1 / usr/bin/firefox-3.0
2 /usr/bin/opera 2 / usr / bin / opera
3 /usr/bin/seamonkey 3 / usr / bin / Seamonkey
4 /usr/bin/midori 4 / usr / bin / Midori
5 /usr/bin/epiphany-gecko 5 / usr / bin / sveti trije kralji-Gecko
6 /usr/bin/firefox-2 6 / usr/bin/firefox-2
*+ 7 /usr/bin/galeon * + 7 / usr / bin / Galeon
8 /usr/bin/kazehakase 8 / usr / bin / Kazehakase
9 /usr/bin/netsurf 9 / usr / bin / netsurf
10 /usr/bin/firefox-3.5 10 / usr/bin/firefox-3.5
Press enter to keep the default[*], or type selection number: Pritisnite ENTER, da obdržite privzeto [*], ali tip izbor številka:
I have blackbox as alternative session, and Galeon is default there. Imam blackbox kot alternativno zasedanju, in Galeon je privzeta tam. How do I change the default for Gnome? Kako spremenim privzeto Gnome?