in Installations, Operating Systems, Posts, Useful tools

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/

(Found the right software packages from http://rpm.pbone.net)
Instructions are as follows….

1. download MediaTomb RPM – you don’t want to build from source;

[root@legoland mt]# 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@legoland mt]# wget ftp://ftp.pbone.net/mirror/centos.karan.org/el5/extras/testing/i386/RPMS/taglib-1.5-1.el5.kb.i386.rpm
(note I installed my CentOS with all the readily available development tools and libraries from DVD)

3. Install the sucker;

[root@legoland mt]# rpm -i taglib-1.5-1.el5.kb.i386.rpm
[root@legoland mt]# rpm -i mediatomb-0.11.0-1.el5.kb.i386.rpm

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

[root@legoland log]# 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@legoland mt]# 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@legoland log]# grep MT_PORT /etc/mediatomb.conf
MT_PORT="50500"

7. Start it;

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

8. Make sure Mediatomb is up and running;

[root@legoland mt]# /etc/init.d/mediatomb status
[root@legoland mt]# 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;

http://10.1.1.90:50500/

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”)