Home > ホームネットワーク

ホームネットワーク Archive

CentOS 5.4(x86_64)にmediatombをインストール(mysql依存無し版)

参考先:DLNAサーバー構築(MediaTomb)


# wget http://downloads.sourceforge.net/mediatomb/mediatomb-0.11.0.tar.gz
# tar zxvf mediatomb-0.11.0.tar.gz
# mv mediatomb-0.11.0/mediatomb.spec /usr/src/redhat/SPECS/
# mv mediatomb-0.11.0.tar.gz /usr/src/redhat/SOURCES/
# vi /usr/src/redhat/SPECS/mediatomb.spec 

-BuildRequires: sqlite-devel, mysql-devel, libexif-devel, taglib-devel, file-devel, js-devel, zlib-devel
+BuildRequires: sqlite-devel, libexif-devel, taglib-devel, file, js-devel, zlib-devel, expat-devel
-Requires: mysql

# rpmbuild -bb --clean /usr/src/redhat/SPECS/mediatomb.spec
# rpm -ivh /usr/src/redhat/RPMS/x86_64/mediatomb-0.11.0-8.x86_64.rpm
# cp /usr/src/redhat/RPMS/x86_64/mediatomb-0.11.0-8.x86_64.rpm ~/
# rpmbuild --rmsource --rmspec /usr/src/redhat/SPECS/mediatomb.spec
# rm -rf mediatomb-0.11.0
# vi /etc/mediatomb.conf

## Network interface on which the server will run, you need to edit this!
-MT_INTERFACE="NOT_SET"
+MT_INTERFACE="eth0"

# /etc/rc.d/init.d/mediatomb start ;  /etc/rc.d/init.d/mediatomb stop
# vi /etc/mediatomb/config.xml 

      <extension -mimetype ignore-unknown="no">
+        <map from="jpg" to="image/jpeg"/>
+        <map from="jpeg" to="image/jpeg"/>
+        <map from="gif" to="image/gif"/>
+        <map from="png" to="image/png"/>
+        <map from="m4v" to="video/mp4"/>
+        <map from="mp4" to="video/mp4"/>
+        <map from="mpg" to="video/mpeg"/>
+        <map from="mpeg" to="video/mpeg"/>
        <map from="mp3" to="audio/mpeg"/>
        <map from="ogg" to="application/ogg"/>
        <map from="asf" to="video/x-ms-asf"/>
        <map from="asx" to="video/x-ms-asf"/>
        <map from="wma" to="audio/x-ms-wma"/>
        <map from="wax" to="audio/x-ms-wax"/>
        <map from="wmv" to="video/x-ms-wmv"/>
        <map from="wvx" to="video/x-ms-wvx"/>
        <map from="wm" to="video/x-ms-wm"/>
        <map from="wmx" to="video/x-ms-wmx"/>
        <map from="m3u" to="audio/x-mpegurl"/>
        <map from="pls" to="audio/x-scpls"/>
        <map from="flv" to="video/x-flv"/>
        <!-- Uncomment the line below for PS3 divx support -->
-        <!-- <map from="avi" to="video/divx"/> -->
+        <map from="avi" to="video/divx"/>

</extension>

# /etc/rc.d/init.d/mediatomb start
# chkconfig mediatomb on

ホーム > ホームネットワーク

Search
Feeds
Meta

Return to page top