Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo
I have followed the instructions listed at
http://mediatomb.cc/dokuwiki/faq:faq to run mediatomb on startup for my ubuntu 8.04
but it isn't working - when I restart my computer, and browse to where I have mediatomb at 192.168 etc, it isn't there -
I still need to run sudo mediatomb to get it all working and streaming to my ps3. idea is not have to do this step every time I turn on my desktop
What should I be doing different to make this work on loadup?
I also see that the faq says "MediaTomb runs as the user:group mediatomb:mediatomb now, so make sure the permissions on you files/dirs are set right." - I have no idea what this means or if I should be changing a setting for this?
(my ubuntu skills are very limited and I have been only this for five days now, but I can cut and paste pretty good in a terminal session!)
Couple of things.. The FAQ assumes that you've installed using the Debian/Ubuntu packages.
If this is not the case, you're probably not going to have much luck here..
Does the user mediatomb exist on your system?
sudo cat /etc/passwd | grep mediatomb
Does the group mediatomb exist on your system?
sudo cat /etc/group | grep mediatomb
If the answer to both of these is yes, then:
sudo /etc/init.d/mediatomb start
Please reply with the output of each of these commands.
debian / ubuntu packages...... no idea. running ubuntu 8.04. so maybe no, so maybe I need different instructions! too many names for too many different things.
sudo cat /etc/passwd | grep mediatomb =
I really don't want to be using a new user as mediatomb - I have set up a little bit on mediatomb using my username already (was able to run mediatomb with: sudo mediatomb)
so any ideas on how to start mediatomb on startup then?
Running it as sudo mediatomb is a recipe for trouble, and in fact isn't running as your user - it's really running as root.
VERY VERY VERY BAD IDEA!
I really can't emphasise that enough
It's possible to copy the db and such from wherever it is just now to a new location though.
You didn't say what the output of sudo /etc/init.d/mediatomb is.
However, we have an idea as to why it's failing.
sudo mv /etc/rc2.d/S20mediatomb /etc/rc2.d/S70mediatomb
Then reboot. (This is likely to be a temporary fix until the packages are updated)
drwxr-xr-x 2 mediatomb mediatomb 4096 2008-11-11 10:06 .
drwxr-xr-x 51 root root 4096 2008-11-11 08:53 ..
-rw-r--r-- 1 mediatomb mediatomb 126 2008-11-11 10:04 mediatomb.html
-rw-r--r-- 1 mediatomb mediatomb 18432 2008-11-11 08:53 sqlite3.db
sudo /etc/init.d/mediatomb start:
* Starting upnp media server mediatomb [ OK ]
and the last step:
sudo mv /etc/rc2.d/S20mediatomb /etc/rc2.d/S70mediatomb:
mv: cannot stat `/etc/rc2.d/S20mediatomb': No such file or directory
Reading package lists... Done
Building dependency tree
Reading state information... Done
mediatomb is already the newest version.
drwxr-xr-x 2 mediatomb mediatomb 4096 2011-12-25 14:05 .
drwxr-xr-x 68 root root 4096 2011-12-25 13:00 ..
-rw-r--r-- 1 mediatomb mediatomb 44447744 2011-12-25 14:05 mediatomb.db
-rw-r--r-- 1 mediatomb mediatomb 127 2011-12-25 13:01 mediatomb.html
* Starting upnp media server mediatomb [fail]
BIOS release date:
AMD Sempron(tm) SI-42
Level 1 cache:
64K Data cache. 64K Instruction cache.
Level 2 cache:
512K Unified cache.
64 bit CPU?
Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)
bincue (UID: 1000, GID: 1000)
X server version:
X.Org X Server 1.7.6
Mozilla Firefox 9.0.1