2009年2月8日星期日

failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id"的解决办法

今天,ememge skype之后到sawfish里就出现了标题中的错误信息,解决办法如下:
/etc/init.d/hald start

通过china-overlay安装pidgin来使用qq和msn

1。在use标记里添加qq,msn
2。在root下面执行以下命令:
emerge layman
sed -i -e 's/\(nocheck.*\)no/\1yes/' /etc/layman/layman.cfg
echo "source /usr/local/portage/layman/make.conf" >> /etc/make.conf
mkdir -p /usr/local/portage/layman
echo PORTDIR_OVERLAY=\"\" > /usr/local/portage/layman/make.conf
USE="-nowebdav" emerge subversion
l ayman -f -a gentoo-china
layman -S
3。emerge pidgin
4。ok,搞定。。。。。。

2009年2月7日星期六

Firefox关联mplayer打开mms的方法

默认在Linux下mms:// rtsp://关联的都是totem这个播放器
不过这个破烂播放器偏偏又非常不争气,什么都不放不了,只能想办法让Firefox关联mplayer了
上网Google了一番,最后发现能这么处理:
在Firefox的地址栏输入: about:config
在设置页面的任意空白处点击鼠标右键,选择“新建”->“字符串“。
在弹出的对话框内输入:network.protocol-handler.app.mms
点击确定,在出现的第二个对话框中输入: mplayer
然后确定。
rtsp的也按照同样的方法解决。

最近安装了一边gentoo 的amd64版本的,按照上面的方法性不同了,怎么办呢?
到google搜了很久也解决不了,后来到firefox的官方的社区,找到了解决办法
网址:http://kb.mozillazine.org/Register_protocol#Linux_and_Mac

* Type about:config into the address bar and press Enter.
* Right-click -> New -> Boolean -> Name: network.protocol-handler.external.foo -> Value -> true (Replacing foo with the protocol you're specifying)
* Right-click -> New -> String -> Name: network.protocol-handler.app.foo -> Value -> /path/to/app (Replacing foo with the protocol you're specifying and /path/to/app with the path to the application you want to run.
* Ensure network.protocol-handler.expose-all is set to true.


但是,我发现还有一个方法:
到“Edit->preferences->Applications”
找“mms”和“rtsp”,选择相应的程序就行了。
我就是这么干的。。。呵呵。

关于mask,missing keyword等

1。missing keyword 的解决办法是:
编辑/etc/portage/package.keywrods,加入
比如:
app-emulation/emul-linux-x86-xlibs ~amd64
或者:
= - 比如:
=app-emulation/emul-linux-x86-xlibs-20081109 ~amd64

2。masked by...的解决办法:
编辑/etc/portage/package.unmask,加入
比如:
app-emulation/emul-linux-x86-xlibs
或者:
= - 比如:
=app-emulation/emul-linux-x86-xlibs-20081109
(就是比package.keywords少了个keyword)