« Home | 1st working model (OLPC) 實機展示影片 » | 一個找檔案的好網站 www.filemirrors.com » | Linux的檔案屬性(關於時間的部份) » | LinuxDevices所做的embedded Linux 市場調查(2006年五月) » | Linux中的printk()追蹤 » | QT embedded的Compiler Time錯誤 » | 1st working model (OLPC) » | 如何用RPM檔編譯Fedora core 5的kernel » | OLPC原型機 » | X Window出現could not open default font 'fixed' » 

2006/06/22 

使用YUM安裝VLC

使用YUM安裝VLC

安裝環境:Fedora 5 i386及x86_64

1.說明
由於VLC並沒有包括在官方Fedora 套件中
所以需要找找有沒有"善心人士"包裝好rpm檔,vlc套件就我所知有二個不同的rpm系列名稱
一個是vlc*.rpm 一個是videolan-client*.rpm(看來善心人士有很多)
以下是個人找尋rpm的方法
使用rpm.pbone.net尋找vlc套件(另一個同名套件是videolan-client),建議縮小範圍在Fedora 5即可,這樣就可以找到至少有以下網站有rpm套件
a.使用vlc關鍵字的部份
Fedora 5 rpm.livna.org/fedora/5/x86_64/vlc-devel-0.8.4a-1.lvn5.x86_64.rpm
Fedora 5 rpm.livna.org/fedora/5/i386/vlc-devel-0.8.4a-1.lvn5.i386.rpm
Fedora 5 rpm.livna.org/fedora/5/x86_64/vlc-devel-0.8.4-9.a.lvn5.x86_64.rpm
Fedora 5 rpm.livna.org/fedora/5/i386/vlc-devel-0.8.4-9.a.lvn5.i386.rpm
Fedora 5 rpm.livna.org/fedora/5/x86_64/debug/vlc-debuginfo-0.8.4a-1.lvn5.x86_64.rpm
Fedora 5 rpm.livna.org/fedora/5/i386/debug/vlc-debuginfo-0.8.4a-1.lvn5.i386.rpm
Fedora 5 rpm.livna.org/fedora/5/x86_64/debug/vlc-debuginfo-0.8.4-9.a.lvn5.x86_64.rpm
Fedora 5 rpm.livna.org/fedora/5/i386/debug/vlc-debuginfo-0.8.4-9.a.lvn5.i386.rpm
Fedora 5 rpm.livna.org/fedora/5/x86_64/vlc-0.8.4a-1.lvn5.x86_64.rpm
Fedora 5 rpm.livna.org/fedora/5/i386/vlc-0.8.4a-1.lvn5.i386.rpm
Fedora 5 rpm.livna.org/fedora/5/x86_64/vlc-0.8.4-9.a.lvn5.x86_64.rpm
Fedora 5 rpm.livna.org/fedora/5/i386/vlc-0.8.4-9.a.lvn5.i386.rpm
Fedora 5 ftp.freshrpms.net/pub/freshrpms/fedora/linux/5/videolan-client/videolan-client-devel-0.8.5-1.fc5.x86_64.rpm
Fedora 5 ftp.freshrpms.net/pub/freshrpms/fedora/linux/5/videolan-client/videolan-client-devel-0.8.5-1.fc5.i386.rpm
Fedora 5 ftp.freshrpms.net/pub/freshrpms/fedora/linux/debug/5/videolan-client-debuginfo-0.8.5-1.fc5.x86_64.rpm
Fedora 5 ftp.freshrpms.net/pub/freshrpms/fedora/linux/debug/5/videolan-client-debuginfo-0.8.5-1.fc5.i386.rpm
Fedora 5 ftp.freshrpms.net/pub/freshrpms/fedora/linux/5/videolan-client/videolan-client-0.8.5-1.fc5.x86_64.rpm
Fedora 5 ftp.freshrpms.net/pub/freshrpms/fedora/linux/5/videolan-client/videolan-client-0.8.5-1.fc5.i386.rpm
個人使用rpm.livna.org/fedora/5/i386的部份
在yum中表示為baseurl=http://rpm.livna.org/fedora/$releasever/$basearch/ (請注意Protocol也可能為ftp://rpm.xxx.xxx)
b.使用videolan-client的部份
Total files number: 9
Site Filename Distribution File size
chuck.ucs.indiana.edu videolan-client-devel-0.8.5-1.fc5.i386.rpm Fedora 5 29086
chuck.ucs.indiana.edu videolan-client-devel-0.8.5-1.fc5.i386.rpm Fedora 5 29086
ftp.rediris.es videolan-client-devel-0.8.5-1.fc5.i386.rpm Fedora 5 29086
ftp.rediris.es videolan-client-devel-0.8.5-1.fc5.i386.rpm Fedora 5 29086
ftp.ntua.gr videolan-client-devel-0.8.5-1.fc5.i386.rpm Fedora 5 29086
ftp.ntua.gr videolan-client-devel-0.8.5-1.fc5.i386.rpm Fedora 5 29086
ftp.freshrpms.net videolan-client-devel-0.8.5-1.fc5.i386.rpm Fedora 5 29086
ftp.freshrpms.net videolan-client-devel-0.8.5-1.fc5.i386.rpm Fedora 5 29086
ftp.pbone.net videolan-client-devel-0.8.5-1.fc5.i386.rpm Fedora 5 29086



2.安裝步驟
2.1 基於"由於VLC並沒有包括在官方Fedora 套件中",所以要為它加上新的rpm庫(Repositories)
新增檔案/etc/yum.repos.d/livna.repo
內容如下:
[livna]
name=Livna for Fedora Core $releasever - $basearch - Base
baseurl=http://rpm.livna.org/fedora/$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-LIVNA-GPG-KEY

2.2 下載RPM-PGP-KEY到/etc/pki/rpm-gpg
#wget http://rpm.livna.org/RPM-LIVNA-GPG-KEY
2.3 安裝vlc
#yum install vlc (另一個套件需改為#yum install videolan-client)
yum會自動下載及統計所需的Package,需回答Y確認安裝
過程視套件的size可能需要數分鐘到數十分鐘

補充:vlc如果異常關閉,有可能是這個bug:vlc: pcm_plug.c:384: snd_pcm_plug_change_channels: Assertion `snd_pcm_format_linear(slv-
>format)' failed.
Aborted (請在console下$vlc xxx.mp3即可以看到這個訊息)
解決方法:修改[Settings][Preferences]下的[Audio][Output modules][ALSA]
將ALSA Device Name由Default改為自選(按[Refersh list]),如下圖



Labels:

About me

  • I'm Martin's blog 馬汀的部落格
  • From 中壢市, 桃園縣, Taiwan
  • -----BEGIN GEEK CODE BLOCK----- Version: 3.1 Comment: For info see http://www.geekcode.com GC/CS/CC/E/IT/TW d- s a C++++ L++++ P+ L++++ E--- W+++ N++ o+ K- w+++ O- M- V- PS+ PE++ Y+ PGP+ t 5- X++ R- tv- b+++ DI+ D-- G e+++ h+ r+ y+ z? ------END GEEK CODE BLOCK------ /**************************** 旅行是我生命的動力 它的樂趣從計劃旅行開始 我樂於分享旅行及Linux Kernel上的每一件事. ****************************/
My profile