安装很简单:
- apt-get install apt-p2p
- 修改/etc/apt/sources.list,将你使用的repos服务器改成localhost:9977,类似下面这样
然后重新执行一下apt-get update就可以了。
现在可以在realplayer里播放rmvb了,回到totem,还是不行(也许有朋友要问,为啥非得用totem不用realplayer放啊,这是因为totem有gnome-vfs支持,可以从网络共享上直接播放,:-)。我用strings /usr/bin/totem-xine | grep addons查过了,结果为空,所以觉得很多网友虽然说将codecs库放到~/.gnome2/totem-addons那样可以,但现在也许已经改掉了(刚下载了totem源代码,还没有来证实)。REALPLAYBIN=$HELIX_LIBS/realplay.bin
if [ -n "$DEBUG" -a -x "$CATCHSEGV" ]; then
$CATCHSEGV $REALPLAYBIN ${1+"$@"}
else
while /bin/true; do
export GTK_IM_MODULE=
export XMODIFIERS=
aoss $REALPLAYBIN "$@"# Restart the player if exit code is 10
if [ $? -ne 10 ]; then
break
fi
done
fi
strace totem --debug > trace.out 2>&1
这里可以看到它搜索了/usr/lib/RealPlayer10目录,但realplayer目前的安装目录是/usr/lib/realplayer-10.0.8,于是创建一个符号连接解决问题。stat64("/usr/local/RealPlayer8/Codecs/drv3.so.6.0", 0xbfe23b2c) = -1 ENOENT (No such file or directory)
stat64("/usr/RealPlayer8/Codecs/drv3.so.6.0", 0xbfe23b2c) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/RealPlayer8/Codecs/drv3.so.6.0", 0xbfe23b2c) = -1 ENOENT (No such file or directory)
stat64("/opt/RealPlayer8/Codecs/drv3.so.6.0", 0xbfe23b2c) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/RealPlayer9/users/Real/Codecs/drv3.so.6.0", 0xbfe23b2c) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/RealPlayer10/codecs/drvc.so", 0xbfe23b2c) = -1 ENOENT (No such file or directory)
stat64("/usr/lib64/RealPlayer8/Codecs/drv3.so.6.0", 0xbfe23b2c) = -1 ENOENT (No such file or directory)
stat64("/usr/lib64/RealPlayer9/users/Real/Codecs/drv3.so.6.0", 0xbfe23b2c) = -1 ENOENT (No such file or directory)
stat64("/usr/lib64/RealPlayer10/codecs/drvc.so", 0xbfe23b2c) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/codecs/drv3.so.6.0", 0xbfe23b2c) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/win32/drv3.so.6.0", 0xbfe23b2c) = -1 ENOENT (No such file or directory)
为了获得休眠(suspend to disk)功能,俺把ubuntu的内核包安装到了俺的Debian上 :-)
---------------------------------------------------------------------------------------
大约三周以前某天,用totem打开一集Doctor Who时黑屏了,重启后俺的GNOME里喇叭上就多了小红叉,怎么都没有声音。上次误打误撞的解决方法也被证明无效。
几乎打算重装了,但两年多的东西要备份下来还是挺麻烦。于是又没头苍蝇似地升级了udev和kernel, 嘿嘿,好了。
不过来了一个新问题,俺习惯性地敲echo 4 > /proc/acpi/sleep试图让系统休眠,但不起作用,系统报告/proc/acpi/sleep不存在。
apt-cache search hibernate告诉我有个hibernate包, 可以smartly puts your computer to sleep (suspend to RAM or disk),满怀希望地装上,结果告诉我:
Your kernel does not appear to have Software Suspend 2 support compiled in.
Please follow the HOWTO linked from http://www.suspend2.net/ for instructions
on how to compile Software Suspend into your kernel.
不能休眠可不爽,比没有声音还难忍受。俺又是个懒人,懒得自己去编译内核,于是从ubuntu网站上下载了linux-image-2.6.17-686,装上,嘿嘿,可以了。
(ubuntu 的linux-image-2.6.17-686包需要module-init-tools版本在3.2.2-3ubuntu2,而debianl里面还 是3.2.2-2版本,于是俺很邪恶地修改了/var/lib/dpkg/status,将其要求的版本号改掉,dpkg --configure就不报错了。)
原来听说Ubuntu免费派送CD,就定了5张,没想到还真来了。
跑了一下Live CD,我的无线网卡什么都不用配置直接就上网了,挺爽。只是没有中文输入法,而且Ubuntu缺省的暗红色theme我不怎么喜欢。至于GNOME 2.12,倒也没怎么留意跟2.10的差别在哪些地方。
我又要不要把我的Debian换成Ubuntu呢?CD都已经送上门了,如果完全闲置了,有点对不住吧?
好的方法是先不覆盖目前用的还不错的Debian, 另外新装一个试用一段。但我现在本本上没有那么多空间啊。
头疼。
我新买的laptop装不上Debian(安装基本系统后重启时死在加载usb-uhci模块这个地方),为此苦恼了好久。在网上查过,没看见这个 型号的成功案例,一些类似的型号说是要先在BIOS里面禁用对legacy USB device的支持,我打开BIOS,只有时间、启动顺序这几个选项,其他的都没有。也试过用expert模式安装,或者用Knoppix光盘启动后修改 modules.conf等文件禁用usb-uhci等模块,都不好使。:-(
五一期间下载了一套Mandriva LE2005来用,安装、配置什么的也都挺顺利(尤其中文什么的不用自己动手),mcc这个系统管理工具也做得不错,suspend to disk也可用,也跟着linuxsir上的方法学会了urpmi的用法,但总是有些不爽: 安装盘里面devhelp, anjuta, xfce4, zhcon都没有; 带了mplayer却根本没法用; 装盘里所有的RPM都仍在一个目录下(后来下了DVD,用mcc配置urpmi时点了一下Browse,就死在那个目录了); 用户还分等级,普通用户先没有ISO下... 其实也都不是太大的事情,只是有些东西自己不太习惯而已。还是想念Debian。
晚上在QQ上网友Cedric说可以试试Ubuntu。也 不是没有想过这个,我在本本上试过Ubuntu的Live CD,感觉相当不错。但我担心它的软件少,我是懒得什么东西都来自己编译(本来KDE是可以不用的,但最近发现刻录光盘gnomebaker还是不如 k3b稳定)。而且原来在slashdot上看见一篇Is Ubuntu a Compatibility Nightmare for Debian,也就认定它跟Debian还是不怎么兼容,没有再去试。Cedric倒是说debian的源都可以用,看来还是要试试。