最近斯諾克威爾士公開賽正在進行,曾有戲言,人生三大快事:看動漫;看奧沙利文147;聽唐sir講oracle;因而一直用RHEL6.0 64位版當桌面使用,爲的就是方便學習oracle,但這平常的消遣,娛樂也不能少!包括電影,音樂,遊戲等!因而非常想看在線直播的比賽,研究了一番pps在rhel6上的安裝,這裏採用64位版,32位的安裝方法一致!
擴展閱讀:
http://ylw6006.blog.51cto.com/470441/589964 -- 如何在RHEL6上搞定音樂和視頻播放
http://ylw6006.blog.51cto.com/470441/590534 -- 玩轉RHEL6桌面應用
1:配置yum客戶端,需要用到apt.sw.be這個yum庫
- # cat /etc/yum.repos.d/base.repo
- [base]
- name=base
- baseurl=ftp://192.168.1.100/pub/iso6/Server/
- enable=1
- gpgcheck=0
- [dag]
- name=dag
- baseurl=http://apt.sw.be/redhat/el6/en/x86_64/dag/
- enable=1
- gpgcheck=0
2:利用alien轉換ubuntu版的pps包,這rhel明顯被歧視了,貌似只有32位的,不過在64位系統上一樣可以用
- # wget http://download.ppstream.com/ppstream_1.0.0-1_i386.deb
下載alien,將deb包轉換成rpm包
- # wget http://ftp.de.debian.org/debian/pool/main/a/alien/alien_8.86.tar.gz
- # tar -zxvpf alien_8.86.tar.gz
- # cd alien
- # ./alien.pl -h
- Usage: alien [options] file [...]
- file [...] Package file or files to convert.
- -d, --to-deb Generate a Debian deb package (default).
- Enables these options:
- --patch=<patch> Specify patch file to use instead of automatically
- looking for patch in /var/lib/alien.
- --nopatch Do not use patches.
- --anypatch Use even old version os patches.
- -s, --single Like --generate, but do not create .orig
- directory.
- --fixperms Munge/fix permissions and owners.
- --test Test generated packages with lintian.
- -r, --to-rpm Generate a Red Hat rpm package.
- --to-slp Generate a Stampede slp package.
- -l, --to-lsb Generate a LSB package.
- -t, --to-tgz Generate a Slackware tgz package.
- Enables these options:
- --description=<desc> Specify package description.
- --version=<version> Specify package version.
- -p, --to-pkg Generate a Solaris pkg package.
- -i, --install Install generated package.
- -g, --generate Generate build tree, but do not build package.
- -c, --scripts Include scripts in package.
- -v, --verbose Display each command alien runs.
- --veryverbose Be verbose, and also display output of run commands.
- -k, --keep-version Do not change version of generated package.
- --bump=number Increment package version by this number.
- -h, --help Display this help message.
- -V, --version Display alien's version number.
- # ./alien.pl -rc ../ppstream_1.0.0-1_i386.deb
3:安裝第2步生成好的rpm包,若出現依賴關係問題,安裝相應的包即可
- # rpm -qa |grep -i pps
- PPStream-1.0.0-2.i386
- # yum info PPStream
- Loaded plugins: refresh-packagekit, rhnplugin
- This system is not registered with RHN.
- RHN support will be disabled.
- Installed Packages
- Name : PPStream
- Arch : i386
- Version : 1.0.0
- Release : 2
- Size : 3.3 M
- Repo : installed
- From repo : /PPStream-1.0.0-2.i386
- Summary : PPStream for GNU/Linux Ubuntu 8.04+ Distro.
- License : see /usr/share/doc/ppstream/copyright
- Description:
- :
- : (Converted from a deb package by alien version unknown.)
4:安裝mplayer包,若出現依賴關係問題,安裝相應的包即可,安裝完成後,就可以在線播放視頻了
- # yum -y install *mplayer*
- # yum info mplayer
- Loaded plugins: refresh-packagekit, rhnplugin
- This system is not registered with RHN.
- RHN support will be disabled.
- Installed Packages
- Name : mplayer
- Arch : x86_64
- Version : 1.0
- Release : 0.47.svn20100703.el6.rf
- Size : 11 M
- Repo : installed
- From repo : /mplayer-1.0-0.47.svn20100703.el6.rf.x86_64
- Summary : MPlayer, the Movie Player for Linux
- URL : http://mplayerhq.hu/
- License : GPL
- Description: MPlayer is a multimedia player. It plays most video formats as well as DVDs.
- : Its big feature is the wide range of supported output drivers. There are also
- : nice antialiased shaded subtitles and OSD.
- :
- : On x86, additional Win32 binary codecs should be added to /usr/lib64/codecs/.
- :
- : Available rpmbuild rebuild options :
- : --with : dvdread
- : --without : aalib lirc cdparanoia arts xvid esd lzo fame caca dvb vstream
- : theora osdmenu gcccheck fribidi xvmc x264 faac mpc live ladspa
- : amrnb samba speex twolame
- [root@rhel6 ~]# yum info smplayer
- Loaded plugins: refresh-packagekit, rhnplugin
- This system is not registered with RHN.
- RHN support will be disabled.
- Installed Packages
- Name : smplayer
- Arch : x86_64
- Version : 0.6.9
- Release : 1.el6.rf
- Size : 7.4 M
- Repo : installed
- From repo : dag
- Summary : Frontend for mplayer
- URL : http://smplayer.berlios.de/
- License : GPLv2+
- Description: SMPlayer intends to be a complete front-end for MPlayer, from basic features
- : like playing videos, DVDs, and VCDs to more advanced features like support
- : for Mplayer filters and more. One of the main features is the ability to
- : remember the state of a played file, so when you play it later it will resume
- : at the same point and with the same settings. smplayer is developed with
- : the Qt toolkit, so it's multi-platform.
4:設置音頻,否則只有圖像,沒有聲音!點擊“工具”--“選項”--“選擇音頻設備”--“alsa”,設置完成後重啓下pps即可!