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@daddylinux~]# rpm -ivh rpmforge-release-0.3.6-1.el5.rf.i386.rpm

64bit
[root@daddylinux~]#rpm -ivh rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
02. DVD playback
[root@daddylinux~]#yum -y install libdvdcss libdvdread libdvdplay libdvdnav lsdvd libdvbpsi

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

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

05. XMMS with MP3 support and Other codecs
[root@daddylinux~]#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@daddylinux~]#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@daddylinux~]#rpm -ivh adobe-release-i386-1.0-1.noarch.rpm

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

08. Sun Jre (Java Runtime Environment)

Install the dependencies
[root@daddylinux~]# 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@daddylinux~]#chmod +x jre-6u12-linux-i586-rpm.bin
[root@daddylinux~]#./jre-6u12-linux-i586-rpm.bin

check
[root@daddylinux~]#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@daddylinux~]#alternatives --install /usr/bin/java java $(rpm -ql jre | grep bin/java$) 2
[root@daddylinux~]#alternatives --display java
[root@daddylinux~]#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@daddylinux~]#getenforce

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

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

0 comments:

Post a Comment