LinuxSir.cn,穿越时空的Linuxsir!

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

为我心爱的Fedora Core 6写的一点东西,相信一定对你有用

[复制链接]
发表于 2006-11-24 19:45:20 | 显示全部楼层 |阅读模式
为我心爱的Fedora Core 6写的一点东西,相信一定对你有用

简述:我是一个不喜欢说只喜欢做的人,如果你想在你的Fedora Core 6中增加MP3 plug-in,想增加Macromedia Flash/Shockwave播放功能,想有DVD播放器,想安装realPlayer 10,想安装java J2RE,想挂载NTFS,想用IE浏览器等,请你按照文章的方法,一步步来!(本文提供外文及翻译)

第一步:准备工作
Add support for other repositories(前提准备,要下一个东西)
These instructions can vary depending on 32bit or 64bit architecture. If there is a difference it will be noted. If you don't know which architecture you're running you can run the following command:
(你可以用下面这个命令先查看你的机子是64位还是32位的)
$ uname -m
x86_64
...or...
i686
###################################

Both 32 and 64 bits:( 如果你不清楚是32还是64,你可以不用管了,直接在终端执行下边这个命令)
# rpm -ihv http://ayo.freshrpms.net/fedora/ ... 1.1-1.fc.noarch.rpm
32 bit version:(如果是32位的,你可以用下边这个命令)
# rpm -ihv http://rpm.livna.org/fedora/6/i386/livna-release-6-1.noarch.rpm
64 bit version:(如果是64位的,你可以用下边这个命令)
# rpm -ihv http://rpm.livna.org/fedora/6/x86_64/livna-release-6-1.noarch.rpm

上边的三个命令,由你根据你的机子选择一个,一般就执行第一个就可以了,这样你会在终端看到一些下载过程,当然你要肯定你的网络是通的。

第二步:MP3插件安装
nstall MP3 Plug-in
Since you've been following along this next step is about as easy as it gets. Just use yum  to automatically install the MP3 plug-ins for xmms and Rhythmbox like this:
(如果你确定你已经成功完成上边第一步,那么你可以用下边的命令来进行Mp3插件的安装)
# yum -y install xmms-mp3 xmms-faad2 gstreamer-plugins-ugly libmad libid3tag

While you're here you might as well install my personal favorite (this week at least) music player Banshee:
( 你还可以安装一个作者喜欢的音乐播放器,不过随便你了,不想装就不要执行这个命令)
# yum -y install banshee

The -y  flag is to automatically answer yes to any question. If you want to be able to say no you can ignore that flag.

While you're there I highly recommend the grip CD ripper which supports both MP3 and Ogg formats. Once again installation is quite simple:
(你还可以用下边的命令来安装使grip CD支持MP3和ogg格式的插件)
# yum -y install grip

第三步:安装Flash/Shockwave 插件
Install Macromedia Flash/Shockwave plug-in
Flash Plug-in 7.0
If you set up the repositories correctly above you should just need to do this to install the Flash plug-in version 7.0:
( 不用我多说了,直接执行下边命令就行了)
# yum -y install flash-plugin
第四步:字体
There is a problem with fonts not being handled correctly in the current version of the flash plug-in and until Macromedia gets around to fixing the plug-in you'll need to do the following workaround.
(在当前版本中有一个字体错误,你可以用下边命令来解决)
# mkdir -p /usr/X11R6/lib/X11/fs/
# ln -s /etc/X11/fs/config /usr/X11R6/lib/X11/fs/config
第五步:安装DVD 播放器
Install DVD player
Currently I find the DVD player that works best is the Xine Multimedia Player which is found in the Livna repository so installing it is just this simple:
(能看懂的看一下,看不懂e文的,请直接执行下边的命令)
# yum -y install xine xine-lib xine-skins xine-lib-extras-nonfree libdvdcss

This will install the xine DVD/VCD/CD player. Now to get xine to automatically play a DVD upon insertion instead of the Totem player which can't actually play DVDs, go to the System -> Preferences -> Removable Drives and Media. Once that comes up select Multimedia Make sure Video DVD Discs is turned on and put in the following for the command:
(如果你运行上边命令后,碟放进去,不能自动播放,你可以点System -> Preferences -> Removable Drives and Media.也就是系统->首选项->可移动驱动器和介质,来使其运行,你也可以执行下边命令)
xine --auto-play --auto-scan dvd
第六步:安装MPlayer Media Player
Install MPlayer Media Player
At some point you're probably going to want to play a QuickTime, AVI or ASF file so you'll want the MPlayer media player. Fortunately with the FreshRpms repositories it's also very easy to download and install. Once again there are conflicts between the Livna and FreshRpms repositories and you'll have to disable one of them.
(如果你想播放QuickTime格式,或AVI或ASF格式文件,你可以装上这个播放器,具体我就不再翻了,大家对着字典看看吧,眼睛受不了了<:)
To prevent potential problems of updates in the Livna repository from messing up the mplayer  and mencoder  packages add the following line highligted in bold to the file /etc/yum.repos.d/livna.repo :

gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-livna
exclude=mplayer* mencoder*

[livna-debuginfo]

Then you can go ahead and install mplayer and all it's dependencies:

# yum -y install mplayer mplayer-skins mplayer-fonts mplayerplug-in

This command line will download the whole kit and kaboodle. that if you want to play content from a command line that you use the gmplayer  version which will include a skin-able control panel. This will install the plug-in to play a wide variety of media within your browser window. Restart your web browser after that whole mess is done installing and you'll also have a plug-in for Mozilla so you can play embedded content. While you're at it be sure to configure mplayer to use the ALSA sound system rather than the default. It just works better. Edit the file ~/.mplayer/config and add the following line:

ao=alsa

And finally you'll probably also want some additional codecs to play all that proprietary video that seems to have infected the Internet. Go to the MPlayer Download page and download the essential Binaries Codec Package. You'll need to install those files in /usr/local/lib/win32. Here are the steps. Remember the exact file names may change at some point.

# gtar xjvf essential-20061022.tar.bz2
# mkdir /usr/local/lib/win32
# mv essential-20061022/* /usr/local/lib/win32
发表于 2006-11-24 19:51:04 | 显示全部楼层
不错,楼主加入了中文注释,费心了!
回复 支持 反对

使用道具 举报

发表于 2006-11-24 19:54:50 | 显示全部楼层
哎,大家干嘛都喜欢用YUM在网上安装,我喜欢本地光盘的那种。要不然我就用源码编译,多好玩,那才叫乐趣。要是没有网络让你装一些软件该咋办呢?
我们单位生产用的计算机就如让接入,难道就不安装软件了吗?
回复 支持 反对

使用道具 举报

发表于 2006-11-24 22:32:33 | 显示全部楼层
Post by ak_birdofprey
哎,大家干嘛都喜欢用YUM在网上安装,我喜欢本地光盘的那种。要不然我就用源码编译,多好玩,那才叫乐趣。要是没有网络让你装一些软件该咋办呢?
我们单位生产用的计算机就如让接入,难道就不安装软件了吗?

安装光盘上软件太少,至于源码,个人以为,在可以不用源码的情况下用源码安装只是白白浪费时间,装个mplayer都花上半天
回复 支持 反对

使用道具 举报

发表于 2006-11-24 23:28:56 | 显示全部楼层
那你应该去用WINDOWS,那样更省事,点点鼠标什么都能完成。你根本就不需要学太多的东西,做个服务器都没有问题的。呵呵
回复 支持 反对

使用道具 举报

发表于 2006-11-25 10:06:41 | 显示全部楼层
Post by ak_birdofprey
那你应该去用WINDOWS,那样更省事,点点鼠标什么都能完成。你根本就不需要学太多的东西,做个服务器都没有问题的。呵呵

那自己编译源码能学到什么直接安装rpm包学不到的东西呢?把时间和精力浪费在源码编译上,会不会有点本末倒置?
回复 支持 反对

使用道具 举报

发表于 2006-11-25 13:07:06 | 显示全部楼层
Post by darkangel308
那自己编译源码能学到什么直接安装rpm包学不到的东西呢?把时间和精力浪费在源码编译上,会不会有点本末倒置?

个人觉得如果你不打算去研究某个软件的源代码,那么安装rpm包和源码编译唯一的不同就是敲的命令不一样而已,所以可以rpm安装的还是rpm比较方便,实在没必要去每个包都编译一次,可以把时间花在更有用的地方
回复 支持 反对

使用道具 举报

发表于 2006-11-26 16:01:42 | 显示全部楼层
原来是你的时间真多啊,看样子机器也不错
Post by ak_birdofprey
那你应该去用WINDOWS,那样更省事,点点鼠标什么都能完成。你根本就不需要学太多的东西,做个服务器都没有问题的。呵呵
回复 支持 反对

使用道具 举报

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

本版积分规则

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