Installing MediaTomb uPnP Server

Posted: October 24, 2010 in Personal, Redhat

Installing latest MediaTomb on CentOS 5.x 32-bit

If I ever have to do it again.. since it turned out to be extremely easy (if you look a little longer and resists compiling it from source), here is how to install MediaTomb on CentOS (or in my case ”Installing MediaTomb on CentOS 5.4″);

“[MediaTomb is] an open source (GPL) UPnP MediaServer with a web user interface and AV transcoding support” (Wikipedia)

MediaTomb can be read about and downloaded (in source form) from  http://mediatomb.cc/

1. download MediaTomb RPM.

[root@mediatomb ~]# wget ftp://ftp.pbone.net/mirror/centos.karan.org/el5/extras/testing/i386/RPMS/mediatomb-0.11.0-1.el5.kb.i386.rpm

2. download Required lib;

[root@mediatomb ~]# wget ftp://ftp.pbone.net/mirror/centos.karan.org/el5/extras/testing/i386/RPMS/taglib-1.5-1.el5.kb.i386.rpm

3. Install the Library

[root@mediatomb ~]# rpm -ivh taglib-1.5-1.el5.kb.i386.rpm

[root@mediatomb ~]# rpm -ivh mediatomb-0.11.0-1.el5.kb.i386.rpm

4. Find out which netword card to use (most likely its ‘eth0′)

[root@mediatomb ~]# ifconfig -a|egrep "inet addr|eth|wlan"
eth0 Link encap:Ethernet  HWaddr 00:0F:EA:8A:F7:76
inet addr:10.1.1.90 Bcast:10.255.255.255  Mask:255.0.0.0
inet addr:127.0.0.1  Mask:255.0.0.0
wlan0     Link encap:Ethernet  HWaddr 00:0F:B5:4F:79:71
In my case you see the only card with an IP address is ‘eth0′

5. Change the config and select your network card;

[root@mediatomb ~]# vi /etc/mediatomb.conf
In my case, change FROM;
MT_INTERFACE="NOT_SET"
TO:
MT_INTERFACE="eth0"

6. See which port it runs on;

[root@mediatomb ~]# grep MT_PORT /etc/mediatomb.conf
MT_PORT="50500"

7. Start it;

[root@mediatomb ~]# /etc/init.d/mediatomb start

8. Make sure Mediatomb is up and running;

[root@mediatomb ~]# /etc/init.d/mediatomb status
[root@mediatomb ~]# cat /var/log/mediatomb
2010-02-23 22:15:55    INFO: MediaTomb configuration was created in: /etc/mediatomb/config.xml
2010-02-23 22:15:55    INFO: Loading configuration from: /etc/mediatomb/config.xml
2010-02-23 22:15:55    INFO: UUID generated: 384f1086-4063-4390-acdf-b79771c60b6d
2010-02-23 22:15:55    INFO: Checking configuration...
2010-02-23 22:15:55    INFO: Setting filesystem import charset to UTF-8
2010-02-23 22:15:55    INFO: Setting metadata import charset to UTF-8
2010-02-23 22:15:55    INFO: Setting playlist charset to UTF-8
2010-02-23 22:15:55    INFO: Configuration check succeeded.
2010-02-23 22:15:55 WARNING: Sqlite3 database seems to be corrupt or doesn't exist yet.
2010-02-23 22:15:55    INFO: no sqlite3 backup is available or backup is corrupt. automatically creating database...
2010-02-23 22:15:55    INFO: database created successfully.
2010-02-23 22:15:55    INFO: Initialized port: 50500
2010-02-23 22:15:55    INFO: Server bound to: 10.1.1.90
2010-02-23 22:15:56    INFO: MediaTomb Web UI can be reached by following this link:
2010-02-23 22:15:56    INFO: http://10.1.1.90:50500/

9. You can see its available now on;

10. Go to that address above in a browser and have fun!

(remember if your firewall is enabled, you must open the port – do this in GNOME if you have the UI under “System” -> “Administration” -> “Security Level and Firewall”)
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s