博文

Linux下MPlayer安装手记(2009-02-25 11:13:00)

摘要:版本信息: Linux系统版本:RHEL5.5(i386-redhat-linux) Kernel版本:2.6.18-53.el5 (由#uname -r命令获得) gcc 版本:4.1.2 20070626 (Red Hat 4.1.2-14) (由#gcc -v命令获得) 安装mplayer需要四个包的安装:主程序,皮肤,codecs以及wincodecs(win32)。这四个程序都可以从以下两个网站下载: http://www.mplayerhq.hu http://www.mplayerhq.hu/MPlayer/releases/codecs/  我下载的程序分别是以下四种: (1)codecs:all-20071007.tar.bz2 (2)wincodecs:windows-all-20071007.zip (3)mplayer src code pkg:Mplayer-1.0rc2.tar.bz2 (4)Skin:Abyss-1.7.tar.bz2 然后从Windows下搜索*.ttf,查找到字体文件simkai.ttf和以上四个文件一起放到/home/fan/MPlayer文件夹中。 首先在终端进入MPlayer文件夹:[root@localhost ~]# cd /home/fan/MPlayer 1.安装编码器 Mplayer默认/usr/local/lib/codecs/文件夹中查找解码器(我们可以运行不带参数的./configure来查看其默认解码器搜索目录)。这里我们将解码器指定安装在 /usr/lib/codecs/和/usr/lib/wincodecs文件夹中: <1>安装codecs [root@localhost ~]# cd /home/fan/MPlayer [root@localhost MPlayer]# tar vjxf essential-20071007.tar.bz2 [root@localhost MPlayer]# mv all-20071007 /usr/lib/codecs <2>安装windcodecs [root@localhost MPlayer]# unzip windows-essential-20071007.zi......

阅读全文(8754) | 评论:0

Linux常见压缩格式及解压(2009-02-19 17:32:00)

摘要:(1)*.tar <1>建立*.tar包: 将指定的文件或目录打包到指定的文件中 #tar cvf tarName.tar 源文件或目录 c用于创建.tar包 v用于执行时给出详细信息 f用于指定.tar包的文件名 例如将../blog/file文件夹压缩成test.tar: [root@localhost blog]# tar cvf test.tar file file/ file/file1 file/file2 <2>查看*.tar包里的内容 # tar tf tarName.tar t是指用于指定的,tar包中的目录和文件 f用于指定.tar包的文件名 [root@localhost blog]# tar tf test.tar file/ file/file1 file/file2  <3>释放*.tar包 # tar xvf tarName.tar x指用于释放.tar包 v用于执行时给出详细信息 f用于指定.tar包的文件名 [root@localhost blog]# tar xvf test.tar file/ file/file1 file/file2 (2)*.tar.gz(*.tgz) <1>建立*.tar.gz包 # tar cvfz tarName.tar.gz 源文件或目录 c用于创建.tar包 v用于执行时给出详细信息 f用于指定.tar包的文件名 z是指用gzip程序进行压缩 [root@localhost blog]# tar cvfz test.tar.gz file  <2>查看*.tar.gz(*.tgz)包 # tar tfz tarName.tar.gz 源文件或目录 t是指用于指定的,tar包中的目录和文件 f用于指定.tar包的文件名 z是指用gzip程序压缩方式 [root@localhost blog]# tar tfz test.tar.gz (3)*.tar.bz2 <1>建立*.tar.bz2包 #tar cvfj tarName.tar.bz2 源文件或目录 ......

阅读全文(3168) | 评论:1