Setting up – Mediatomb – UPnP media server on Debian.

I’m assuming mediatomb is installed and running.

Create database MediaTomb.

  • user: mediatombuser,
  • password: password,
  • Database name: mediatomb,

Log on to your MySQL as – root,

sudo mysql -u root -p
create user 'mediatombuser'@'localhost' identified by 'password';
create user 'mediatombuser'@'%' identified by 'password';
grant all on mediatomb.* to 'mediatombuser'@'localhost';
grant all on mediatomb.* to 'mediatombuser'@'%';

Load mediatomb DB into MySQL.

sudo mysql mediatomb -u mediatomb -p < /usr/share/mediatomb/mysql.sql
sudo /etc/init.d/mediatomb restart

Edit configfile /etc/default/mediatomb.

sudo nano /etc/default/mediatomb

Change the default port for MediaTomb (default port – 49152):

OPTIONS="-p 50000"

Change the listening newtork interface for MediaTomb (eth1).
MediaTomb is listening on all network interfaces by default.


Edit configfile /etc/mediatomb/config.xml.

sudo nano /etc/mediatomb/config.xml
Enable Web Interface MediaTomb.
<ui enabled="yes" show-tooltips="yes">
Using MySQL.

I will be using MySQL (default mediatomb setup is sqlite)

<sqlite3 enabled="no">

<mysql enabled="yes">
 Enable MediaTomb accounts

Accounts are disabled by default, to enable:

<accounts enabled="yes" session-timeout="30">
<account user="mediatomb" password="mediatomb"/>

Job done.

Now restart mediatomb service:

sudo /etc/init.d/mediatomb restart
[ ok ] Restarting upnp media server: mediatomb.

and go to http:/ to configure media folders.

Leave a Reply

Your email address will not be published. Required fields are marked *

15 + 6 =

This site uses Akismet to reduce spam. Learn how your comment data is processed.