最近斯诺克威尔士公开赛正在进行,曾有戏言,人生三大快事:看动漫;看奥沙利文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即可!
本文出自 “斩月” 博客,谢绝转载!