Media playback in CentOS5 and RHEL5

Media (DVD, web content, video & audio) playback in CentOS5 and RHEL5

01. Download RPMFORGE repo configuration RPM.

32bit
http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

64bit
http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm

Go to the downloaded location, Install it.

32bit
[root@server ~]# rpm -ivh rpmforge-release-0.3.6-1.el5.rf.i386.rpm

64bit
[root@server ~]#rpm -ivh rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm

02. DVD playback
[root@server ~]#yum -y install libdvdcss libdvdread libdvdplay libdvdnav lsdvd libdvbpsi

03. Gstreamer and Gstreamer-plugins
[root@server ~]#yum -y install gstreamer gstreamer-plugins-good gstreamer-plugins-bad gstreamer-plugins-ugly

04. Mplayer and Mplayer-plugin
[root@server ~]#yum -y install mplayer mplayerplug-in

05. XMMS with MP3 support and Other codecs
[root@server ~]#yum -y install xmms xmms-crossfade xmms-mp3 xmms-musepack xmms-wma

06. W32codecs

Download
http://rpm4fc-cn.googlecode.com/files/w32codecs-20071007-0.1.i386.rpm

Go to the downloaded location and install
[root@server ~]#rpm -ivh w32codecs-20071007-0.1.i386.rpm

07. Adobe Flash Player

Download
http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm

Go to the downloaded location and install
[root@server ~]#rpm -ivh adobe-release-i386-1.0-1.noarch.rpm

Then install the flash player
[root@server ~]#yum -y install flash-plugin

08. Sun Jre (Java Runtime Environment)

Install the dependencies
[root@server ~]# yum -y install compat-libstdc++-33 compat-libstdc++-296

Go to www.java.com and go to download section download the Linux RPM (self-extracting file)
Go to the downloaded location
[root@server ~]#chmod +x jre-6u12-linux-i586-rpm.bin
[root@server ~]#./jre-6u12-linux-i586-rpm.bin

check
[root@server ~]#java –version

If the result is some thing like this, every thing is ok.
java version "1.6.0_12"
Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
Java HotSpot(TM) Client VM (build 11.2-b01, mixed mode, sharing)

othewise the result is something like this, that means sun java is not yet default.
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 20071124 (Red Hat 4.1.2-42)

Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

To make sun java default
[root@server ~]#alternatives --install /usr/bin/java java $(rpm -ql jre | grep bin/java$) 2
[root@server ~]#alternatives --display java
[root@server ~]#alternatives --config java
type number 2

installing sun java plugin for firefox
first we have to disable selinux protection for the plugin
check the status of selinux
[root@server ~]#getenforce

if the result is "disabled" no need to do the following command, othewise you do
[root@server ~]#chcon -t textrel_shlib_t "$(rpm -ql jre | grep libdeploy\\.so$)"

now we can install the plugin
[root@server ~]#cd /usr/lib/mozilla/plugins
[root@server ~]#ln –s /usr/java/jre1.6.0_12/plugin/i386/ns7/libjavaplugin_oji.so

------------------------------------------------------------------------------------------