MediaTomb: Setting up a multimedia (UPnP) server
Introduction
MediaTomb is a multimedia server capable of streaming movies, music, and photos. It’s very practical for game consoles like Xbox360 or PlayStation 3, but has many other uses as well.
For example, if you have a machine that contains movies but isn’t connected to your TV screen, you need something to relay the content. This is where a PlayStation 3, for instance, comes in. However, it needs to know where to find the movies, so you need to install a UPnP server on your machine.
One of the best UPnP servers today is MediaTomb.
Installation
As usual, for Debian users:
|
|
Configuration
MySQL
This step is optional, but personally I prefer centralizing information on my machine. If you skip this step, a MySQLite database will be used. I decided to set up MediaTomb with a MySQL database. First, connect to your MySQL server:
|
|
Then let’s create a database dedicated to MediaTomb and an associated user:
|
|
Mediatomb
MySQL
Now we’re ready to configure this in the /etc/mediatomb/config.xml
configuration file. First, modify this to disable SQLite:
|
|
Now, activate MySQL:
|
|
Thumbnails
First, let’s install this small package:
|
|
Then add this code in the ‘
|
|
Now restart the server:
|
|
Great! We’re done with MySQL.
Graphical Interface
Now you can use the graphical interface. Connect to the server with your MediaTomb server address on port 49152:
http://ip_address:49152
All you have to do is configure your folders to scan and their refresh times. It takes some time to index them (depending on the number of items in your folders).
Security
To limit access to network interfaces on your multimedia server, edit the /etc/default/mediatomb
file:
INTERFACE="bond0"
Then restart the MediaTomb service.
Working with PlayStation 3
For the server to be recognized by PlayStation 3, you need to modify the file:
|
|
Important: You must have a PS3 firmware version 1.80 or higher
Then restart the MediaTomb server. Now, on the PlayStation, you can scan for Multimedia servers and yours will appear magically.
Resources
Last updated 23 Apr 2009, 19:19 CEST.