PDA

View Full Version : Mediatomb on PBO



supergizboy
03-01-2010, 11:29 PM
I created this new thread for running Mediatomb on PBO.

Requirements:
1. internal HDD installed.
2. installed ipkg (instructions here (http://www.patriotmem.com/forums/showthread.php?t=2942) from xun1234)
3. little knowledge of *nix.

Steps:
1. make sure you follow instructions from xun1234 to have ipkg installed.
2. telnet into pbo with any telnet client (recommended putty.exe)
telnet venus
3. include path
# PATH=$PATH:/opt/bin
4. use ipkg to install mediatomb, it'll take care of the dependencies.
# ipkg install mediatomb
5. set home directory. a hidden directory .mediatomb will be created under home directory to store mediatomb configuration files. I couldn't think of two good places for this, /opt or /usr/local/etc
# HOME=/opt; export HOME
note: hidden directory /opt/.mediatomb will be created.
6. create a database for mediatomb
# cd /opt/share/mediatomb
# cat sqlite3.sql | sqlite3 mediatomb.db
# mv mediatomb.db /opt/.mediatomb (move db to mediatomb conf directory)
7. start mediatomb from command line.
# mediatomb &

MediaTomb UPnP Server version 0.11.0 - http://mediatomb.cc/

================================================== =======
Copyright 2005-2008 Gena Batsyan, Sergey Bostandzhyan, Leonhard Wimmer.
MediaTomb is free software, covered by the GNU General Public License version 2

2001-06-29 01:25:39 INFO: Loading configuration from: /opt/.mediatomb/config.xml
2001-06-29 01:25:39 INFO: Checking configuration...
2001-06-29 01:25:39 INFO: Setting filesystem import charset to ASCII
2001-06-29 01:25:39 INFO: Setting metadata import charset to ASCII
2001-06-29 01:25:39 INFO: Setting playlist charset to ASCII
2001-06-29 01:25:39 INFO: Configuration check succeeded.
2001-06-29 01:25:39 INFO: Initialized port: 49153
2001-06-29 01:25:39 INFO: Server bound to: 192.168.1.12
2001-06-29 01:25:40 INFO: MediaTomb Web UI can be reached by following this link:
2001-06-29 01:25:40 INFO: http://<your_pbo_ip>:49153/

8. go to mediatomb web interface
http://venus:49153/

Note: a little scripting can start mediatomb at boot.

snappy46
03-02-2010, 02:41 AM
That is great; I can't wait until I have the time to give it a try. Hopefully version 0.12 will be out soon. I will be able to use the same db and config.xml that I have currently on my Linux machine. I don't think that the PBO will be able to handle transcoding not enough CPU power. Thankfully a lot of the stream do not require any transcoding : apple trailer (.mov), youtube (.flv) and many internet radio (asx. .mp3 feeds).

I think you may also have solved the issue I had with transmission torrent client and probably other packages that rely on being a home directory to store their configuration file. I never thought about the export command to create the home directory.

Good job supergizboy a dummy proof step by step process.

mammom
03-02-2010, 03:23 AM
I am new to this, but could you give us an emample of how to use the MediaTomb? Could we use this to stream Internet radios?

Thanks

snappy46
03-02-2010, 12:18 PM
I am new to this, but could you give us an emample of how to use the MediaTomb? Could we use this to stream Internet radios?


For more information about mediatomb I suggest that you go to their Web site. http://mediatomb.cc/ The best way to learn mediatomb is probably to try it on a linux pc first and read and read some more. There is a lot of linux bootable cd that will alllow you to play with linux without actually installing it.

Yes we can stream internet radio using mediatomb but in some cases it requires some configuration changes and transcoding. The bottom line is that mediatomb does not have a nice interface like tversity or twonky to add new stream although it does have a web interface to help with that process and to make changes to the database.

Once you have it working on a linux machine then try on the PBO.

anadigi
03-02-2010, 12:48 PM
I created this new thread for running Mediatomb on PBO.

Requirements:
1. internal HDD installed.
2. installed ipkg (instructions here (http://www.patriotmem.com/forums/showthread.php?t=2942) from xun1234)
3. little knowledge of *nix.

Steps:
1. make sure you follow instructions from xun1234 to have ipkg installed.
2. telnet into pbo with any telnet client (recommended putty.exe)
telnet venus
3. include path
# PATH=$PATH:/opt/bin
4. use ipkg to install mediatomb, it'll take care of the dependencies.
# ipkg install mediatomb
5. set home directory. a hidden directory .mediatomb will be created under home directory to store mediatomb configuration files. I couldn't think of two good places for this, /opt or /usr/local/etc
# HOME=/opt; export HOME
note: hidden directory /opt/.mediatomb will be created.
6. create a database for mediatomb
# cd /opt/share/mediatomb
# cat sqlite3.sql | sqlite3 mediatomb.db
# mv mediatomb.db /opt/.mediatomb (move db to mediatomb conf directory)
7. start mediatomb from command line.
# mediatomb &

MediaTomb UPnP Server version 0.11.0 - http://mediatomb.cc/

================================================== =======
Copyright 2005-2008 Gena Batsyan, Sergey Bostandzhyan, Leonhard Wimmer.
MediaTomb is free software, covered by the GNU General Public License version 2

2001-06-29 01:25:39 INFO: Loading configuration from: /opt/.mediatomb/config.xml
2001-06-29 01:25:39 INFO: Checking configuration...
2001-06-29 01:25:39 INFO: Setting filesystem import charset to ASCII
2001-06-29 01:25:39 INFO: Setting metadata import charset to ASCII
2001-06-29 01:25:39 INFO: Setting playlist charset to ASCII
2001-06-29 01:25:39 INFO: Configuration check succeeded.
2001-06-29 01:25:39 INFO: Initialized port: 49153
2001-06-29 01:25:39 INFO: Server bound to: 192.168.1.12
2001-06-29 01:25:40 INFO: MediaTomb Web UI can be reached by following this link:
2001-06-29 01:25:40 INFO: http://<your_pbo_ip>:49153/

8. go to mediatomb web interface
http://venus:49153/

Note: a little scripting can start mediatomb at boot.



Is there anyway to uninstall clean if I don"t want it?

supergizboy
03-02-2010, 01:10 PM
1. all things installed on the internal HDD small partition (/tmp/hdd/root/opt), if you re-format the internal HDD, all things will be gone.

2. to manually remove mediatomb. run this commands,
# PATH=$PATH:/opt/bin; export PATH
# ipkg remove mediatomb
# cd /opt
# rm -rf .mediatomb