在RHEL6上輕鬆玩轉PPS

最近斯諾克威爾士公開賽正在進行,曾有戲言,人生三大快事:看動漫;看奧沙利文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庫

  1. # cat /etc/yum.repos.d/base.repo   
  2. [base]   
  3. name=base   
  4. baseurl=ftp://192.168.1.100/pub/iso6/Server/   
  5. enable=1   
  6. gpgcheck=0   
  7.  
  8. [dag]   
  9. name=dag   
  10. baseurl=http://apt.sw.be/redhat/el6/en/x86_64/dag/   
  11. enable=1   
  12. gpgcheck=0  

2:利用alien轉換ubuntu版的pps包,這rhel明顯被歧視了,貌似只有32位的,不過在64位系統上一樣可以用

  1. # wget http://download.ppstream.com/ppstream_1.0.0-1_i386.deb 

下載alien,將deb包轉換成rpm包

  1. # wget http://ftp.de.debian.org/debian/pool/main/a/alien/alien_8.86.tar.gz  
  2. # tar -zxvpf alien_8.86.tar.gz   
  3. # cd alien  
  4. # ./alien.pl -h  
  5. Usage: alien [options] file [...]  
  6.   file [...]                Package file or files to convert.  
  7.   -d, --to-deb              Generate a Debian deb package (default).  
  8.      Enables these options:  
  9.        --patch=<patch>      Specify patch file to use instead of automatically  
  10.                             looking for patch in /var/lib/alien.  
  11.        --nopatch            Do not use patches.  
  12.        --anypatch           Use even old version os patches.  
  13.        -s, --single         Like --generate, but do not create .orig  
  14.                             directory.  
  15.        --fixperms           Munge/fix permissions and owners.  
  16.        --test               Test generated packages with lintian.  
  17.   -r, --to-rpm              Generate a Red Hat rpm package.  
  18.       --to-slp              Generate a Stampede slp package.  
  19.   -l, --to-lsb              Generate a LSB package.  
  20.   -t, --to-tgz              Generate a Slackware tgz package.  
  21.      Enables these options:  
  22.        --description=<desc> Specify package description.  
  23.        --version=<version>  Specify package version.  
  24.   -p, --to-pkg              Generate a Solaris pkg package.  
  25.   -i, --install             Install generated package.  
  26.   -g, --generate            Generate build tree, but do not build package.  
  27.   -c, --scripts             Include scripts in package.  
  28.   -v, --verbose             Display each command alien runs.  
  29.       --veryverbose         Be verbose, and also display output of run commands.  
  30.   -k, --keep-version        Do not change version of generated package.  
  31.       --bump=number         Increment package version by this number.  
  32.   -h, --help                Display this help message.  
  33.   -V, --version             Display alien's version number.  
  34.  
  35. # ./alien.pl -rc ../ppstream_1.0.0-1_i386.deb 

3:安裝第2步生成好的rpm包,若出現依賴關係問題,安裝相應的包即可

  1. # rpm -qa |grep -i pps  
  2. PPStream-1.0.0-2.i386  
  3.  
  4. # yum info PPStream  
  5. Loaded plugins: refresh-packagekit, rhnplugin  
  6. This system is not registered with RHN.  
  7. RHN support will be disabled.  
  8. Installed Packages  
  9. Name       : PPStream  
  10. Arch       : i386  
  11. Version    : 1.0.0  
  12. Release    : 2  
  13. Size       : 3.3 M  
  14. Repo       : installed  
  15. From repo  : /PPStream-1.0.0-2.i386  
  16. Summary    : PPStream for GNU/Linux Ubuntu 8.04+ Distro.  
  17. License    : see /usr/share/doc/ppstream/copyright  
  18. Description:   
  19.            :   
  20.            : (Converted from a deb package by alien version unknown.) 

4:安裝mplayer包,若出現依賴關係問題,安裝相應的包即可,安裝完成後,就可以在線播放視頻了

  1. # yum -y install *mplayer*  
  2. # yum info mplayer  
  3. Loaded plugins: refresh-packagekit, rhnplugin  
  4. This system is not registered with RHN.  
  5. RHN support will be disabled.  
  6. Installed Packages  
  7. Name       : mplayer  
  8. Arch       : x86_64  
  9. Version    : 1.0  
  10. Release    : 0.47.svn20100703.el6.rf  
  11. Size       : 11 M  
  12. Repo       : installed  
  13. From repo  : /mplayer-1.0-0.47.svn20100703.el6.rf.x86_64  
  14. Summary    : MPlayer, the Movie Player for Linux  
  15. URL        : http://mplayerhq.hu/  
  16. License    : GPL  
  17. Description: MPlayer is a multimedia player. It plays most video formats as well as DVDs.  
  18.            : Its big feature is the wide range of supported output drivers. There are also  
  19.            : nice antialiased shaded subtitles and OSD.  
  20.            :   
  21.            : On x86, additional Win32 binary codecs should be added to /usr/lib64/codecs/.  
  22.            :   
  23.            : Available rpmbuild rebuild options :  
  24.            : --with : dvdread  
  25.            : --without : aalib lirc cdparanoia arts xvid esd lzo fame caca dvb vstream  
  26.            :             theora osdmenu gcccheck fribidi xvmc x264 faac mpc live ladspa  
  27.            :             amrnb samba speex twolame  
  28.  
  29. [root@rhel6 ~]# yum info smplayer  
  30. Loaded plugins: refresh-packagekit, rhnplugin  
  31. This system is not registered with RHN.  
  32. RHN support will be disabled.  
  33. Installed Packages  
  34. Name       : smplayer  
  35. Arch       : x86_64  
  36. Version    : 0.6.9  
  37. Release    : 1.el6.rf  
  38. Size       : 7.4 M  
  39. Repo       : installed  
  40. From repo  : dag  
  41. Summary    : Frontend for mplayer  
  42. URL        : http://smplayer.berlios.de/  
  43. License    : GPLv2+  
  44. Description: SMPlayer intends to be a complete front-end for MPlayer, from basic features  
  45.            : like playing videos, DVDs, and VCDs to more advanced features like support  
  46.            : for Mplayer filters and more. One of the main features is the ability to  
  47.            : remember the state of a played file, so when you play it later it will resume  
  48.            : at the same point and with the same settings. smplayer is developed with  
  49.            : the Qt toolkit, so it's multi-platform. 

 4:設置音頻,否則只有圖像,沒有聲音!點擊“工具”--“選項”--“選擇音頻設備”--“alsa”,設置完成後重啓下pps即可!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章