64位机器上修复libx264错误
02月 23, 2008 on 12:30 pm | In linux/unix | No Comments64位机器就是不方便,包的测试总是不够全面。前几天发现一个依赖性问题,昨天更新又发现问题了
- Missing Dependency: libx264.so.56 is needed by package mencode
这个提示有时是
- Missing Dependency: libx264.so.56 is needed by package ffmpeg-libs
反正更新多媒体播放类软件时总是出现。
Google到了解决办法:
先updatedb一下,然后locate libx264,找到:
/usr/lib64/libx264.so.58
好了,现在运行yum remove /usr/lib64/libx264.so.58,这个命令在我的机器上的实质结果是把x264删了。
,再运行安装命令(我之间是yum install amarok),就能成功了。这次,又顺道把libx264.so.*给我装上了。
yum错误修复
02月 22, 2008 on 11:10 pm | In linux/unix, 杂谈 | 2 Comments今天想把fedora8升级到fedora9,结果先把fedora-release*的包升级以后,发现系统fedora源已经全部变成fedora9的了,但是因几个基本包有问题,我用yum安装什么包都装不了了。
只好回退,结果遇上这样一个问题:
- Cannot retrieve repository metadata (repomd.xml) for repository:/var/cache/yum/fedora/mirrorlist.txt
到处查,都搞不懂为什么。最后只好自己查查yum的源代码,再加上我天才般的瞎猜,终于整出来了:
记下过程:
手工建立/var/cache/yum/fedora/和/var/cache/yum/updates两个目录。
编辑/var/cache/yum/fedora/mirrorlist.txt为
- # repo = fedora-8 arch = x86_64 country = CN country = RU country = JP country = HK country = KR country = TW country = TH country = IN
- http://fedora.candishosting.com.cn/pub/fedora/linux/releases/8/Everything/x86_64/os
- http://opensource.nchc.org.tw/fedora/linux/releases/8/Everything/x86_64/os
- http://ftp.twaren.net/Linux/Fedora/linux/releases/8/Everything/x86_64/os
- http://linux.ntcu.net/ftp/dists/fedora/releases/8/Everything/x86_64/os
- http://ftp.yz.yamagata-u.ac.jp/pub/linux/fedora/linux/releases/8/Everything/x86_64/os
- http://ftp.hostrino.com/pub/fedora/linux/releases/8/Everything/x86_64/os
- ftp://ftp.rhd.ru/pub/fedora/linux/releases/8/Everything/x86_64/os
- http://ftp.cse.yzu.edu.tw/pub/Linux/Fedora/releases/8/Everything/x86_64/os
- http://ftp.chg.ru/pub/Linux/fedora/linux/releases/8/Everything/x86_64/os
- http://ftp.jaist.ac.jp/pub/Linux/Fedora/releases/8/Everything/x86_64/os
- http://ftp.ncnu.edu.tw/Linux/Fedora/linux/releases/8/Everything/x86_64/os
- http://allotter.yandex.net/fedora/linux/releases/8/Everything/x86_64/os
- http://ftp.kddilabs.jp/Linux/packages/fedora/releases/8/Everything/x86_64/os
- http://ftp.kaist.ac.kr/pub/fedora/linux/releases/8/Everything/x86_64/os
- ftp://ftp.sfc.wide.ad.jp/pub/Linux/Fedora/releases/8/Everything/x86_64/os
- http://ftp.riken.jp/Linux/fedora/releases/8/Everything/x86_64/os
- http://spreader.yandex.net/fedora/linux/releases/8/Everything/x86_64/os
编辑/var/cache/yum/updates/mirrorlist.txt为:
- # repo = updates-released-f8 arch = x86_64 country = RU country = JP country = HK country = CY country = SG country = TW country = TH country = IN
- http://spreader.yandex.net/fedora/linux/updates/8/x86_64
- http://ftp.kddilabs.jp/Linux/packages/fedora/updates/8/x86_64
- http://allotter.yandex.net/fedora/linux/updates/8/x86_64
- http://ftp.hostrino.com/pub/fedora/linux/updates/8/x86_64
- http://ftp.riken.jp/Linux/fedora/updates/8/x86_64
- ftp://ftp.oss.eznetsols.org/linux/fedora/updates/8/x86_64
- ftp://ftp.sfc.wide.ad.jp/pub/Linux/Fedora/updates/8/x86_64
- http://opensource.nchc.org.tw/fedora/linux/updates/8/x86_64
- http://ftp.jaist.ac.jp/pub/Linux/Fedora/updates/8/x86_64
- http://mirrors.cytanet.com.cy/linux/fedora/linux/updates/8/x86_64
大功告成。
再运行yum install mplayer,一切正常。
原因(个人瞎猜版):
/var/cache/yum/下是yum的缓存目录。当我运行yum clean all时,把这两个目录下的一些文件清空了。但是可能yum存在一个bug,
/var/cache/yum/fedora/repomd.xml能重新下载生成,/var/cache/yum/fedora/mirrotlist.txt却不能正常生成。因此需要我们手工构造这个文件。
那我是怎么构造这个文件的内容的呢?
注意看/etc/yum.repos.d/fedora.repod文件,中有
- mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch
$releasever应该是8(我用的是fedora 8),$basearch是架构的意思,我的是x86_64,替换上,访问之,得到:
- # repo = fedora-8 arch = x86_64 country = CN country = RU country = JP country = HK country = KR country = TW country = TH country = IN
- http://fedora.candishosting.com.cn/pub/fedora/linux/releases/8/Everything/x86_64/os
- http://opensource.nchc.org.tw/fedora/linux/releases/8/Everything/x86_64/os
- http://ftp.twaren.net/Linux/Fedora/linux/releases/8/Everything/x86_64/os
- http://linux.ntcu.net/ftp/dists/fedora/releases/8/Everything/x86_64/os
- http://ftp.yz.yamagata-u.ac.jp/pub/linux/fedora/linux/releases/8/Everything/x86_64/os
- http://ftp.hostrino.com/pub/fedora/linux/releases/8/Everything/x86_64/os
- ftp://ftp.rhd.ru/pub/fedora/linux/releases/8/Everything/x86_64/os
- http://ftp.cse.yzu.edu.tw/pub/Linux/Fedora/releases/8/Everything/x86_64/os
- http://ftp.chg.ru/pub/Linux/fedora/linux/releases/8/Everything/x86_64/os
- http://ftp.jaist.ac.jp/pub/Linux/Fedora/releases/8/Everything/x86_64/os
- http://ftp.ncnu.edu.tw/Linux/Fedora/linux/releases/8/Everything/x86_64/os
- http://allotter.yandex.net/fedora/linux/releases/8/Everything/x86_64/os
- http://ftp.kddilabs.jp/Linux/packages/fedora/releases/8/Everything/x86_64/os
- http://ftp.kaist.ac.kr/pub/fedora/linux/releases/8/Everything/x86_64/os
- ftp://ftp.sfc.wide.ad.jp/pub/Linux/Fedora/releases/8/Everything/x86_64/os
- http://ftp.riken.jp/Linux/fedora/releases/8/Everything/x86_64/os
- http://spreader.yandex.net/fedora/linux/releases/8/Everything/x86_64/os
这就是/var/cache/yum/fedora/mirrorlist.txt的内容了。
对应地,查看/etc/yum.repos.d/fedora-updates.repo,去访问对应的地址,取得内容写入到/var/cache/yum/updates/mirrorlist.txt.
Fedora 8小试(狼人来袭!)
12月 7, 2007 on 10:08 am | In 未分类 | 2 CommentsFedora 8 (WereWolf)出了,我马上就用上了。
今天放张PP.
fedora 8 改进:
1.启动速度加快(linux的老大难了,现在好像减少到了一半,能跟Xp比了)
2.配套软件大升级 (比如Awn ,看看我现在的Dock效果)
3.很SB地建了”桌面”,”文档“,音乐等几个中文目录。SB到让人晕。 谁喜欢在终端下面输中文?
4.beryl去掉了,换成了Compiz-fusion.3D更酷。
教你戴套儿操GFW
07月 13, 2007 on 12:20 am | In 未分类 | No Comments汗,check了几遍,确认没有漏掉最后的W…
Tor 是一个工具集,帮助各类组织和个人增强互联网上活动的安全。 Tor 能够匿名 Web 浏览与发布、即时通讯、IRC、SSH 和其他基于 TCP 协议的应用。 Tor 同时提供了一个平台,软件开发人员能够在上面构建具有内建匿名性、安全性与隐私保护特性的新的应用程序。
但是tor在中国有着更为特别的含义。
1.tor在fedora core 6/7,redhat,centos下的安装:
- yum install tor
在debian/ubuntu下安装:
sudo apg-get install tor
安装需要root权限。如果yum,apg-get失败,则需要到tor.eff.org下载源代码进行安装。
- configure --prefix=/opt/tor/
- make
- make install
这些都是屁话。会用linux都会安装。问题是yum 或是make 报错了呢?祝贺你,你就照着错误的提示一个个地把所缺少的组件比如可以GCC啦什么的全下载下来安装上吧。
2.tor的启动:
直接在命令行中输tor就可以了。
注意看他的提示。由于tor要搜索加密proxy构建物理链路,因此启动后需要过一段时间才能提示现在安全的回环链路已经构建成功,这时你才可以使用tor.我的电脑上用了5分钟才成功。
3.tor的使用:
早先tor是作为一个http代理来用的,后来进行改进,现在是在9050端口提供socks代理。因为那个著名的torbutton Firefox已经不管用了,请直接设置IE/firefox让它们使用本机127.0.0.1:9050作为socks代理来访问网络。
同理,tor不能自动地保护你的其他网络应用,需要为这些应用设置代理才可以使用。
4.关于安全:
理论上Tor是安全的,但是tor仍然不能破坏它传输的数据中建立的安全机制,比如你通过tor作代理了访问网站,并在网站的表单中登记了某些信息,或是接受的网站的cookie,这些仍会显露你的行踪。除非你保证这些网站都不出卖你。所以tor仍是不安全的。当然某些应用,比如拿tor先做一次跳板…..通过tor 来ssh控制某一台肉鸡,用它去执行SSHScan,Passsword Guess等操作,那还是非常爽的的!~
升级了!Fedora 7 moonshine 升级成功
06月 27, 2007 on 7:00 pm | In 未分类 | 2 Comments昨天以5Mb/s的速度提心吊胆地下Fedora core 7,一直担心网管会过来叫我停。还好,到下完他也没有过来。
马上烧盘,先在台式机上安装,接着又在notebook上安装。终于都安装成功,不过有点小问题:
1. Fedoar Core 6时,我的硬盘 显示是hda1,hda2…..hda6,没想到到7之后,变成了sda1,sda2,sda3,直接导致我的swap分区和windows分区无法加载。于是改了fstab,将hda3改成sda3,加载成功。
2. 原来安装的madwifi不起作用了.madwifi是依赖于内核的,内核升级一次,madwifi就需要重新安装一次。不过这次我惊喜地发现,yum search ***时,下载的不再是primary.xml,而是primary.sqlite.bz2,也就是说源数据不再以xml格式存储了,而是sqlite的格式,同时压缩方式也改了。不错的进步。原来分析这个数据要老长一段时间 .这次我不再自行编译madwifi,而是yum install madwifi kmod-madwifi,安装之后,仍是无动静。这时想起来madwifi是依赖于内核的,果然,重启之后就能用wireless 连AP了。
升级之后,界面漂亮多了,不再是那个难看的DNA了。本来宏伟前几天老秀他新装的vista的界面(在这这前,我的fedora core 6+beryl可要比他的XP 好看多了),现在,fedora 7 界面也不输vista 了。
Powered by WordPress with Pool theme design by Borja Fernandez.
Entries and comments feeds.
Valid XHTML and CSS. ^Top^