Debate sobre mediatomb-howto

114 views
Skip to first unread message

asimov44

unread,
Oct 2, 2009, 1:53:03 AM10/2/09
to DealExtreme NAS
Fantastic!!!

gemni

unread,
Nov 13, 2009, 9:56:44 PM11/13/09
to DealExtreme NAS
Hey Guys,
Sorry im new to SSH and dont know much about it. Im stuck on step 3.
3. In a ssh session do the following:
cd /path-to-external-storage/
tar -xvf mediatomb-static-0.11.0-r1-linux-uclibc-armv4.tar.gz
What is the path im typing?
sda Generic External sda5 MacDrive vfat 55.9G 258.7M 55.6G 0%
That is my main drive i have connected all the time.
When i map the drive as a network drive it shows as this.
\\MEDIA\MacDrive
Any help would be great. Thx.

JG

unread,
Nov 14, 2009, 1:35:34 AM11/14/09
to DealExtreme NAS
Gemini,

it should be under /usb/sda5
but easier to check
run this command:
df -h
And will print all the mounted partitions and its size.

Cheers
JG

gemni

unread,
Nov 14, 2009, 3:49:01 AM11/14/09
to DealExtreme NAS
Hey JG,
I typed df -h and i got this.
Filesystem Size Used Available Use% Mounted on
/dev/root 2.6M 2.6M 0 100% /
tmpfs 2.0M 48.0K 2.0M 2% /var
tmpfs 2.0M 0 2.0M 0% /tmp
tmpfs 1.0M 0 1.0M 0% /usb
mdev 1.0M 0 1.0M 0% /dev
tmpfs 1.0M 188.0K 836.0K 18% /etc
/dev/sda5 55.9G 261.1M 55.6G 0% /usb/MacDrive
So then the path would be /dev/sda5
Now when i type this in i get this error
cd/dev/sda5/tar -xvf mediatomb-static-0.11.0-r1-linux-uclibc-
armv4.tar.gz
-sh: cd/dev/sda5/tar: not found
With in the root of that drive i placed the gz file that i got from
the link on this titorial.
What am i missing? I checked the name of file and command and they are
the same also.
Thx in advance.

PaulG

unread,
Nov 14, 2009, 5:52:18 AM11/14/09
to DealExtreme NAS
for your command you must leave a space between cd and /

wrong-
cd/dev/sda5/tar -xvf mediatomb-static-0.11.0-r1-linux-uclibc-
armv4.tar.gz

correct-
cd /dev/sda5/tar -xvf mediatomb-static-0.11.0-r1-linux-uclibc-
armv4.tar.gz

gemni

unread,
Nov 14, 2009, 12:17:34 PM11/14/09
to DealExtreme NAS
Ok i tried the correct command and still i get this.
cd /dev/sda5/tar -xvf mediatomb-static-0.11.0-r1-linux-uclibc-
armv4.tar.gz
-sh: cd: can't cd to /dev/sda5/tar

Eugene Nesterov

unread,
Nov 14, 2009, 1:10:03 PM11/14/09
to dealextr...@googlegroups.com
They are two separate commands:

$ cd /dev/sda5/
$ tar -xvf mediatomb-static-0.11.0-r1-linux-uclibc-armv4.tar.gz

//C.O.

2009/11/14 gemni <gemni...@gmail.com>:
> --
> You received this message because you are subscribed to the Google
> Groups "DealExtreme NAS" group.
> To post to this group, send email to dealextr...@googlegroups.com
> To unsubscribe from this group, send email to
> dealextreme-na...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/dealextreme-nas-?hl=en

Douglas Gazineu

unread,
Nov 14, 2009, 6:42:23 PM11/14/09
to dealextr...@googlegroups.com
Folks:

The correct folder name is not : /usb/sda5 ???
--
Douglas Gazineu

gemni

unread,
Nov 14, 2009, 6:55:06 PM11/14/09
to DealExtreme NAS
Hey Guys, Douglas is right. I figure it out with all ur guys help.
Below are the steps i took
root
password
df -h
cd /dev/MacDrive
tar -xvf mediatomb-static-0.11.0-r1-linux-uclibc-armv4.tar.gz
./mediatomb.sh

now im wondering what do i do to start it up again when i reboot the
NAS and is there a way to make it start up all the time when i reboot?
Sorry i need baby steps plz. Thx

adam w

unread,
Nov 15, 2009, 11:48:29 AM11/15/09
to DealExtreme NAS
yea to auto start you need to add a line to one of the scripts in ect
folder with a line leading to the mediatomb.sh file then you need to
modifi mediatomb.sh to include the root to the mediatomb folder to
enable running it from one of the other scripts. i used swapsvc file

i used swap script and inserted the line "/usb/sda1/mediatomb/
mediatomb.sh" (/usb/sda5) under start & again under autostart
(thanks to rich_a)

i then input into the mediatomb.sh file LAUNCHDIR=/usb/sda1/mediatomb/
on first dir line (/usb/sda5) for you

you will need notepad++ and filezilla

to test mediatomb.sh just run from your ssh program in root dir, "./
usb/sda5/mediatomb/mediatomb.sh" if not right it will not run.

use filezilla and copy swapsvc from nas, edited file then put back on
nas i then saved config using the nas web config as it lost changed
file if i did-not, i dono why. login from filezilla is user:root
password:(nasloginpassword) port:22

can just edit mediatomb.sh file from shared folder or can use
filezilla like the above

big thanks to snake team and mediatomb for helping me get that far got
it auto running and working great.

dono if on next snake release if posible to have a start file linked
to a box on web config to put a link to any file in any drive/folder
of your choice or mutiple boxs that inable more than one that would be
cool im sure there more than one program that might be use-full

Arlindo Pereira

unread,
Nov 16, 2009, 5:38:52 AM11/16/09
to dealextr...@googlegroups.com
Guys,

the df -h shows the (physical) device on the left, and the mounted directory (which matters for us) on the right. So, every command you'll have to type you'll usually use the right one.

Therefore:

root
[password]
df -h  (just to check the right directory, you don't have to type this all the time)
cd /usb/MacDrive (check that linux is case sensitive, therefore /usb/macdrive wouldn't work)
tar xzf mediatomb*.tar.gz (just an alias to the bigger command, does the same thing)
./mediatomb.sh

Cheers

2009/11/14 gemni <gemni...@gmail.com>

--
You received this message because you are subscribed to the Google
Groups "DealExtreme NAS" group.
To post to this group, send email to dealextr...@googlegroups.com
To unsubscribe from this group, send email to
dealextreme-na...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/dealextreme-nas-?hl=en



--
Arlindo Saraiva Pereira Jr.

Bacharelando em Sistemas de Informação - UNIRIO - uniriotec.br
Consultor de Software Livre da Uniriotec Consultoria - uniriotec.com

Acadêmico: arlindo...@uniriotec.br
Profissional: arlindo...@uniriotec.com
Geral: con...@arlindopereira.com
Tel.: +5521 92504072
Jabber/Google Talk: nig...@nighto.net
Skype: nighto_sumomo
Chave pública: BD065DEC

Renex

unread,
Jan 8, 2010, 5:00:56 AM1/8/10
to DealExtreme NAS
Hello im new here.

I have a question.

I have installed mediatomb with this tutorial, but what is the address/
path voor the upnp connection in xbmc? Is it possible to stream thru
DynDns.org?

Kind regards Rinse Ringma

Brunofs

unread,
Feb 9, 2010, 12:30:43 PM2/9/10
to DealExtreme NAS
That's great!
But what about performance, considering that the NAS is not that
powerfull...

If it's fine, it could be installed on the snakeOS by default,
disabled by default

Brunno

unread,
May 24, 2010, 4:45:16 PM5/24/10
to DealExtreme NAS
Dear Friends!

I´ve just received my NAS last friday, and already updated to Snake
O.S. After playing a bit with the snake OS, I went to install and
check how mediatomb works on the NAS. The performance is ok, and I
could stream music and videos straight to my Windows Media Player 11
but not to my Samsung TV. The TV reported failure do access the
mediatomb. I've changed a few lines on the config.xml, as recommended
by this topic, and now the TV can access the mediatomb and even browse
through the folders and files, but I still can´t play. The TV reports
that file is not supported, but I usually stream MP3, AVI and others
from PC to TV without issues. I guess I'm missing some detail on the
config.xml file. I'll keep trying to fix it, and I would appreciate if
someone could send me a tip on how to solve this issue.
The TV model is UN40B7000.
regards,

Brunno

cbd

unread,
May 26, 2010, 9:17:36 AM5/26/10
to DealExtreme NAS
Brunno,

What did you change to the config file to get mediatomb running with
windows mediaplayer ? I can not select the nas server for streaming
the data with windowsmediaplayer. I succeeded with another tool, so
mediatomb is running.

On May 24, 10:45 pm, Brunno <bnlo...@gmail.com> wrote:
> Dear Friends!
>
> I´ve just received my NAS last friday, and already updated to Snake
> O.S. After playing a bit with the snake OS, I went to install and

> check howmediatombworks on the NAS. The performance is ok, and I


> could stream music and videos straight to my Windows Media Player 11

> but not to my Samsung TV. The TV reported failure do access themediatomb. I've changed a few lines on the config.xml, as recommended
> by this topic, and now the TV can access themediatomband even browse

Brunno

unread,
Jun 10, 2010, 1:33:08 PM6/10/10
to DealExtreme NAS
Hello CBD,

I`ve searched for ways to have mediatomb to work with my Samsung TV,
and found some modifications on the config file.

My complete config file can be found below (I took the original config
file from mediatomb for desktop and changed it). You can compare my
config file with yours and you'll find the diferences.

Basically it adds some headers to the DLNA packets to make it
compatible with DLNA.org.




<?xml version="1.0" encoding="UTF-8" ?>
- <config version="1" xmlns="http://mediatomb.cc/config/1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://mediatomb.cc/config/1 http://mediatomb.cc/config/1.xsd">
- <server>
- <ui enabled="yes">
- <accounts enabled="no" session-timeout="30">
<account user="mediatomb" password="mediatomb" />
</accounts>
</ui>
<name>MediaTomb</name>
<udn>uuid:1f8502d2-4f25-4441-afad-b9f08b863c8a</udn>
<home>/usb/sda2/mediatomb/config</home>
<webroot>/usb/sda2/mediatomb/usr/share/mediatomb/web</webroot>
- <storage>
- <sqlite3 enabled="yes">
<database-file>mediatomb.db</database-file>
</sqlite3>
</storage>
<protocolInfo extend="yes" />
- <!-- For PS3 support change to "yes"
-->
- <custom-http-headers>
<add header="transferMode.dlna.org: Streaming" />
<add header="contentFeatures.dlna.org:
DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=017000
00000000000000000000000000" />
</custom-http-headers>
</server>
- <import hidden-files="no">
<filesystem-charset>UTF-8</filesystem-charset>
<metadata-charset>UTF-8</metadata-charset>
<playlist-charset>UTF-8</playlist-charset>
<magic-file>/usb/sda2/mediatomb/usr/share/file/magic</magic-file>
- <autoscan use-inotify="auto">
<directory location="/usb/sda2" mode="inotify" recursive="yes"
hidden-files="no" />
</autoscan>
- <scripting script-charset="UTF-8">
<common-script>/usb/sda2/mediatomb/usr/share/mediatomb/js/common.js</
common-script>
<playlist-script>/usb/sda2/mediatomb/usr/share/mediatomb/js/
playlists.js</playlist-script>
- <virtual-layout type="builtin">
<import-script>/usb/sda2/mediatomb/usr/share/mediatomb/js/import.js</
import-script>
</virtual-layout>
</scripting>
- <mappings>
- <extension-mimetype ignore-unknown="no">
<map from="mp3" to="audio/mpeg" />
<map from="ogg" to="application/ogg" />
<map from="asf" to="video/x-ms-asf" />
<map from="asx" to="video/x-ms-asf" />
<map from="wma" to="audio/x-ms-wma" />
<map from="wax" to="audio/x-ms-wax" />
<map from="wmv" to="video/x-ms-wmv" />
<map from="wvx" to="video/x-ms-wvx" />
<map from="wm" to="video/x-ms-wm" />
<map from="wmx" to="video/x-ms-wmx" />
<map from="m3u" to="audio/x-mpegurl" />
<map from="pls" to="audio/x-scpls" />
<map from="flv" to="video/x-flv" />
- <!-- Uncomment the line below for PS3 divx support
-->
<map from="avi" to="video/divx" />
<map from="vob" to="video/mpeg" />
<map from="m2ts" to="video/mpeg" />
<map from="ts" to="video/mpeg" />
- <!-- Uncomment the line below for D-Link DSM / ZyXEL DMA-1000
-->
- <!-- <map from="avi" to="video/avi"/>
-->
</extension-mimetype>
- <mimetype-upnpclass>
<map from="audio/*" to="object.item.audioItem.musicTrack" />
<map from="video/*" to="object.item.videoItem" />
<map from="image/*" to="object.item.imageItem" />
</mimetype-upnpclass>
- <mimetype-contenttype>
<treat mimetype="audio/mpeg" as="mp3" />
<treat mimetype="application/ogg" as="ogg" />
<treat mimetype="audio/x-flac" as="flac" />
<treat mimetype="image/jpeg" as="jpg" />
<treat mimetype="audio/x-mpegurl" as="playlist" />
<treat mimetype="audio/x-scpls" as="playlist" />
<treat mimetype="audio/x-wav" as="pcm" />
<treat mimetype="audio/L16" as="pcm" />
<treat mimetype="video/x-msvideo" as="avi" />
</mimetype-contenttype>
</mappings>
</import>
- <transcoding enabled="no">
- <mimetype-profile-mappings>
<transcode mimetype="video/x-flv" using="vlcmpeg" />
<transcode mimetype="application/ogg" using="vlcmpeg" />
<transcode mimetype="application/ogg" using="oggflac2raw" />
<transcode mimetype="audio/x-flac" using="oggflac2raw" />
</mimetype-profile-mappings>
- <profiles>
- <profile name="oggflac2raw" enabled="no" type="external">
<mimetype>audio/L16</mimetype>
<accept-url>no</accept-url>
<first-resource>yes</first-resource>
<accept-ogg-theora>no</accept-ogg-theora>
<agent command="ogg123" arguments="-d raw -f %out %in" />
<buffer size="1048576" chunk-size="131072" fill-size="262144" />
</profile>
- <profile name="vlcmpeg" enabled="no" type="external">
<mimetype>video/mpeg</mimetype>
<accept-url>yes</accept-url>
<first-resource>yes</first-resource>
<accept-ogg-theora>yes</accept-ogg-theora>
<agent command="vlc" arguments="-I dummy %in --sout
#transcode{venc=ffmpeg,vcodec=mp2v,vb=4096,fps=25,aenc=ffmpeg,acodec=mpga,ab=192,samplerate=44100,channels=2}:standard{access=file,mux=ps,dst=
%out} vlc:quit" />
<buffer size="14400000" chunk-size="512000" fill-size="120000" />
</profile>
- <profile id="a843d125-1752-483a-9e50-ae5970a484f5">
- <!-- SamsungTV
-->
<friendlyName>Samsung TV</friendlyName>
<manufacturerName>Samsung</manufacturerName>
<modelName>UN40B7000</modelName>
<HTTPHeader outServerUA="Samsung HTTP streaming server
contentFeatures.dlna.org:
DLNA.ORG_PN=MP3;DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01500000000000000000000000000000"
inUASubstr="SamsungWiselinkPro" />
</profile>
</profiles>
</transcoding>
</config>

On May 26, 10:17 am, cbd <e.nijeb...@cb-distribution.nl> wrote:
> Brunno,
>
> What did you change to the config file to getmediatombrunning with
> windows mediaplayer ? I can not select the nas server for streaming
> the data with windowsmediaplayer. I succeeded with another tool, somediatombis running.

Marco Davide Toci

unread,
Jun 10, 2010, 4:34:07 PM6/10/10
to dealextr...@googlegroups.com
Hi, brunno.

What about the performance?

Can you stream full hd videos, or it is too sloow?

And how did u connect the tv to the router? Wired or wifi?

Thank you

2010/5/26, cbd <e.nij...@cb-distribution.nl>:

--
Inviato dal mio dispositivo mobile

_______________________________
Marco Davide Toci

Ted

unread,
Aug 31, 2010, 2:43:31 AM8/31/10
to DealExtreme NAS
Hi, I have two questions regard:
how do you turn the mediaserver on and off?
my file is extracted rather than installed, the mediatomb file is
under:
/usb/sdb1/mediatomb/usr/bin/mediatomb
So I tried this command line:
# /usb/sdb1/mediatomb/usr/bin/mediatomb restart

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

2010-08-30 23:40:52 ERROR: Could not create directory /
root/.mediatomb : Read-only file system<<resulted in this error.
Please let me know what I should do.
Second question regards that the charset UTF-8 does not allow chinese
files to read properly. Does anyone know how to get mediatomb work
with national lang?
Thanks

Joe Guerra

unread,
Aug 31, 2010, 7:31:52 AM8/31/10
to dealextr...@googlegroups.com
Hi, I got mediatomb working by extracting to windows then copying it over to my usb stick on the NAS.

Once I've copied it over, you might need to change the permissions on the directory.

from the command cli prompt - I use putty to log into the NAS - use "root" (user) and "snake" (password)
chmod a+x mediatomb.sh usr/bin/mediatomb

once permissions are ok,

./mediatomb.sh (should start the mediatomb.)

Then you can go to the url mediatomb dishes out, and add folders to media tomb.

Ctrl-c kills mediatomb, so I just exit putty without shutting down mediatomb.

Thats about it.  

Joakim Berge

unread,
Aug 31, 2010, 7:26:03 PM8/31/10
to dealextr...@googlegroups.com
./mediatomb.sh &
Will make it run in the background, and does not quit when you exit. 

- Joakim
Reply all
Reply to author
Forward
0 new messages