LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1504|回复: 15

How can I set opera as the default browser?

[复制链接]
发表于 2006-6-1 16:59:06 | 显示全部楼层 |阅读模式
debian 3.1 sarge, fvwm 2.5.
I have only installed w3m through apt-get and opera through deb file, but the default browser is w3m.
Although it can be set by adding the Global Settings in .fvwm2rc file, but it seems not to be a good method, and sometimes the default browser is still w3m.
发表于 2006-6-1 21:21:01 | 显示全部楼层
sudo /usr/sbin/update-alternatives --config www-browser
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-1 23:13:24 | 显示全部楼层
But it prompts:
There is only 1 program which provides www-browser
(/usr/bin/w3m). Nothing to configure.
回复 支持 反对

使用道具 举报

发表于 2006-6-2 00:12:27 | 显示全部楼层
If there's no entry for opera, just add one for yourself
  1. Usage: update-alternatives --install <link> <name> <path> <priority>
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-2 00:21:11 | 显示全部楼层
Could you explain it in detail? I'm a newbie. I can't get the meaning of <link>... clearly
回复 支持 反对

使用道具 举报

发表于 2006-6-2 12:46:56 | 显示全部楼层
Post by LaoLang_cool
Could you explain it in detail? I'm a newbie. I can't get the meaning of <link>... clearly

Then why don't you just look at the manual page yourself? When I'm answering your questions, I don't know all of them either, and I also have to look at the manual page. just type

  1. man update-alternatives
复制代码

and have fun!
回复 支持 反对

使用道具 举报

发表于 2006-6-2 18:07:33 | 显示全部楼层
Opera即使安装到alternative系统,也应该是x-www-browser。

可以看一下我发过的一个介绍alternative和diversion系统的帖子:

http://www.linuxsir.cn/bbs/showthread.php?t=248982
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-2 19:46:31 | 显示全部楼层
Can you upload a file /var/lib/dpkg/alternatives/www-browser? I have edited it and it seems has destroyed! The related command update-alternatives meets error now, the prompt is
update-alternatives: error or eof reading /var/lib/dpkg/alternatives/www-browser for version ()
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-2 19:48:16 | 显示全部楼层
The number of 优先级 can be choised whatever I like?
回复 支持 反对

使用道具 举报

发表于 2006-6-2 19:55:32 | 显示全部楼层
是,管理员可以自己调整优先级

  1. auto
  2. /usr/bin/www-browser
  3. www-browser.1.gz
  4. /usr/share/man/man1/www-browser.1.gz

  5. /usr/bin/links.main
  6. 40
  7. /usr/share/man/man1/links.main.1.gz
  8. /usr/bin/lynx
  9. 50
  10. /usr/share/man/man1/lynx.1.gz

复制代码


每个人的alternative列表不同,取决于其安装的程序,其上是我的www-browser列表,供参考,但不应手动编辑,而应该用update-alternatives命令。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表