startup on login not working

  • Wade Holmes

    Wade Holmes - 2008-11-10

    I have followed the instructions listed at 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!)


    • Chris Taylor

      Chris Taylor - 2008-11-10

      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:
      cd ~mediatomb
      ls -la

      Then finally,
      sudo /etc/init.d/mediatomb start

      Please reply with the output of each of these commands.

      • Wade Holmes

        Wade Holmes - 2008-11-10

        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  =

        mediatomb:x:112:124:MediaTomb Server,,,:/var/lib/mediatomb:/usr/sbin/nologin


        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?


        • Chris Taylor

          Chris Taylor - 2008-11-10

          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.

          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.

          Try this:

          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)

          • Wade Holmes

            Wade Holmes - 2008-11-10


            cd ~mediatomb
            ls -la

            total 32
            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

  • Huber

    Huber - 2011-12-25
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    mediatomb is already the newest version.
    mediatomb:x:115:126:MediaTomb Server,,,:/var/lib/mediatomb:/usr/sbin/nologin
    total 43420
    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]
    Hardware Information
       Motherboard name:
       Motherboard vendor:
       BIOS vendor:
       BIOS version:
       BIOS release date:
       CPU name:
         AMD Sempron(tm) SI-42
       Level 1 cache:
         64K Data cache. 64K Instruction cache. 
       Level 2 cache:
         512K Unified cache. 
       CPU Mips:
       64 bit CPU?
       Total memory:
         1.7 GB
       Total swap:
         11262 MBytes
       Ethernet card:
         Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)
    Linux Information
       Host name:
       Current user:
         bincue (UID: 1000, GID: 1000)
         31 minutes
       Kernel version:
       Kernel arch:
       Default shell:
       X server version:
         X.Org X Server 1.7.6
       GCC version:
       Java version:
       Python version:
       GTK version:
       PyGTK version:
       Firefox version:
         Mozilla Firefox 9.0.1
       Ubuntu version:
       GNOME version:
       GNOME locale:

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks