Install an iTunes media server(mt-daapd) in SL5, CentOS5 or RHEL5
我參考CentOS 5 に mt-daapd インストール安裝 iTunes media server. 雖然我不知到日語. 😛
先準備重新編譯的 rpm 目錄.
# cd
# echo “%_topdir $HOME/rpm” > $HOME/.rpmmacros
# mkdir -p rpm/{BUILD,SPECS,RPMS,SRPMS,SOURCES}
安裝 mt-daapd 要有 libid3tag & howl 套件. 所以分別進行各個套件的重新編譯.
# cd rpm/SRPMS
# wget http://dag.wieers.com/rpm/packages/libid3tag/libid3tag-0.15.1b-3.rf.src.rpm
# rpmbuild –rebuild libid3tag-0.15.1b-3.rf.src.rpm
安裝剛剛重新編譯後的libid3tag套件. 如果你是32位元記得把 x86_64 改為 i386
# rpm -ivh ~/rpm/RPMS/x86_64/libid3tag-*.rpm
重新編譯 howl 套件.
# wget ftp://ftp.icm.edu.pl/vol/rzm1/linux-aurox/11.1/packages/base/SRPMS/howl-0.9.8-3.src.rpm
# rpmbuild –rebuild howl-0.9.8-3.src.rpm
安裝 howl 套件.
# rpm -ivh ~/rpm/RPMS/x86_64/howl-*.rpm
重新編譯 mt-daapd 套件.
# wget http://nchc.dl.sourceforge.net/sourceforge/mt-daapd/mt-daapd-0.2.4-1.src.rpm
# rpmbuild –rebuild mt-daapd-0.2.4-1.src.rpm
安裝 mt-daapd 套件
# rpm -ivh ~/rpm/RPMS/x86_64/mt-daapd-*.rpm
安裝無誤後啓動 mt-daapd 程式
# /etc/rc.d/init.d/mt-daapd start
你可以透過下列檔案自定你的 daapd server 參數
# vi /etc/mt-daapd.conf
# vi /etc/mt-daapd.playlist
先暫時寫這樣. 晚點有空在補充