Beiträge von Solo0815

    Hab grad mal den Code des fstab-scripts angeschaut und einfach mal nen Schuss ins Blaue:
    Es kann nicht sein, dass am Ende von

    Code
    # >>> [openmediavault]


    ein Leerzeichen (oder ein anderes nicht darstellbares Zeichen) reingerutscht ist? Dann würde nämlich der Code

    Code
    grep -E "^# >>> \[${OMV_FSTAB_SECTIONNAME}\]$" ${OMV_FSTAB_CONFIG} >/dev/null

    mit dem Dollarzeichen, welches das Ende einer Zeile angibt nicht mehr greifen.
    Wie gesagt, keine Ahnung, obs so ist, kannste ja mal testen. Alle Leerzeichen nach # >>> [openmediavault] löschen, natürlich nur einen openmediavault-Block drin lassen und den oberen Befehl nochmal ausführen. Alternativ kannst du das Dollarzeichen nach

    Code
    grep -E "^# >>> \[${OMV_FSTAB_SECTIONNAME}\]

    mal löschen und sehen, was passiert.


    Mach aber bitte ein backup der geänderten Dateien und der /etc/fstab ;)

    Enable SSH on your OMV and you can use "WinSCP" to change files from windows. But always remember:
    Make copies of your files so that you can restore them later
    and don't open a bug-report, if YOU are destroying your installation ;)
    Better reinstall OMV

    You don't have to worry about the LVM and the mdadm errors, as you don't have a LVM or RAID configured (i think).
    BTW: Did you use "admin" and "openmediavault" as user and pw?
    If yes you can try

    Code
    apt-get update
    apt-get upgrade


    and try to login. If this doesn't work, log in to your OMV-machine and do

    Code
    omv-firstaid


    to reset your password.

    Should work, all files are there :o
    Maybe Volker can look into it, Marcel Beck is not active lately.
    The last solution for me is:

    Code
    apt-get remove --purge openmediavault-autoshutdown autoshutdown


    This removes all autoshutdown-files, reboot
    Install autoshutdown-plugin via WebGUI, then ... the Log should appear ...

    Zitat von "ryecoaaron"

    Very interesting. Nice writeup. I will have to test this in a virtual machine. I'd be curious to see how the built-in dlna server compares to minidlna especially since I think it transcodes (?)


    It is compiled with "--disable-upnp" and "--disable-avahi" so I think it doesn't recode, but I'm compiling a new version atm with upnp- and avahi-support. If it's ready i send you a link to test the new libxbmc.so.

    Please read the following carefully!
    don't use this guide anymore!
    The XBMC-version will not be upgraded above 13.0
    Use this instead: http://forums.openmediavault.org/viewtopic.php?f=13&t=4906


    Thx to GutPilz
    -----------------------------------------------------------------------------------------------------------------------


    This guide describes, how to run a headless xbmc-server on OMV (amd64 only for now, sorry). The XBMC-server is only for the MySQL-Database scan and cannot play any files or music.
    You need some CLI experience for this guide ;)


    Info about the xbmc-server: http://forum.xbmc.org/showthre…19&pid=1117319#pid1117319


    The xbmc-server must be compiled by your own or you can use the version linked in this post (amd64 only). Eventually someone can provide a 32bit version?
    How to compile the xbmc-server:
    Guide over @ xbmc.org from KraVen: here
    xbmc-server.cpp and others here or here
    fix for Frodo 12.0: here
    The binary linked under 3. is compiled with:

    Code
    ./configure  --enable-shared-lib  --disable-debug --disable-vdpau  --disable-vaapi --disable-crystalhd  --disable-vdadecoder  --disable-vtbdecoder  --disable-openmax  --disable-joystick --disable-xrandr  --disable-rsxs  --disable-projectm --disable-rtmp  --disable-airplay --disable-airtunes --disable-dvdcss --disable-optical-drive  --disable-libbluray --disable-libusb  --disable-libcec  --disable-libmp3lame  --disable-libcap --disable-optical-drive --disable-libbluray --disable-ssh --disable-udev --disable-asap-codec --disable-afpclient --disable-nfs --disable-goom --disable-avahi --disable-upnp


    You must know, what you are doing! I'm not responsible, if you break your OMV-System!
    I repeat: It's for the 64bit-version only!This xbmc-server can NOT play any files and is only for MySQL-DB scan. It is _not_ the "normal" XBMC. If you know what you are doing, proceed.


    Please ask questions about the xbmc-server in the corresponding XBMC-Forum


    To get this to work, you need:
    1. One ore more XBMC-Clients - Frodo 12.0 is supported only
    2. a MySQL-Database for XBMC -> Howto thx to bootlegninja
    3. your XBMC-Clients already connected to your MySQL-DB -> Howto
    You have all this? OK, let's go:


    1. Install some needed stuff:

    Code
    apt-get install libsdl1.2debian-all libmicrohttpd5 libsmbclient libsdl-image1.2 libjasper1 libtinyxml2.5.3 libyajl1 liblzo2-2 libglu1-mesa libglew1.5 libpython2.6 libfribidi0 libpcrecpp0 libcdio10 libsamplerate0 libtag1c2a libhal1 libhal-storage1


    2. Install taglib 1.8
    Go to http://debian.oppserver.net/debian/#squeeze and search for taglib
    There are 3 files:
    - libtag1-vanilla
    - libtag1c2a
    - libtagc0
    I don't know which one is needed, so download and install all 3 ;)

    Code
    dpkg -i $packagename


    3. unpack the xbmc-server to the root directory (copys the files to their location)
    Download this file and unpack it to root with

    Code
    tar xvfz xbmc-server_Frodo_12.0_amd64.tar.gz -C /


    4. update the start scripts

    Code
    update-rc.d xbmc-server defaults


    5. Run the xbmc-server

    Code
    services xbmc-server start


    6. Connect to the xbmc-server's WebGUI via your preferred browser

    Code
    http://OMV-IP:8585


    User: "xbmc"
    Password:"xbmc"


    xbmc-server runs with portable-data under "/opt/xbmc-server/portable-data". You find the xbmc-server-log in "/opt/xbmc-server/portable-data/temp/xbmc.log"


    Please change the guisettings.xml (for password and WebGUI-Port), advancedsettings.xml and the sources.xml on all clients to fit your needs. More Info on XBMC-Wiki
    All XBMC-Clients needs the same sources for the database and the same db-version. If you set up user and pw for the smb-share, make sure you use this syntax for the smb-share:

    Code
    smb://user:password@Server/Path/to/media


    You can update your DB over the XBMC-WebGUI or over CLI with: (change the IP)
    Video-DB:

    Code
    curl -s -d '{"jsonrpc":"2.0","method":"VideoLibrary.Scan","id":1}' -H 'content-type: application/json;' http://xbmc:xbmc@yourOMV-IP:8585/jsonrpc?VideoLibrary.Scan


    Music-DB:

    Code
    curl -s -d '{"jsonrpc":"2.0","method":"VideoLibrary.Scan","id":1}' -H 'content-type: application/json;' http://xbmc:xbmc@yourOMV-IP:8585/jsonrpc?MusicLibrary.Scan


    If everything works, it should look like this:

    Zitat

    user@huntington:~$ curl -s -d '{"jsonrpc":"2.0","method":"VideoLibrary.Scan","id":1}' -H 'content-type: application/json;' http://xbmc:xbmc@yourIP:8585/jsonrpc?VideoLibrary.Scan (Enter)
    {"id":1,"jsonrpc":"2.0","result":"OK"} (reply from the xbmc-server)
    user@huntington:~$


    and then the xbmc.log looks like this:

    Zitat

    ...
    19:43:36 T:140260291684096 NOTICE: Thread CVideoInfoScanner start, auto delete: false
    19:43:36 T:140260291684096 NOTICE: VideoInfoScanner: Starting scan ..
    19:43:47 T:140260291684096 NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:10
    19:45:19 T:140260641339296 NOTICE: Samba is idle. Closing the remaining connections


    I've got a ATV2 and a Windows-PC (both Frodo 12.0) synced over a MySQL-DB with xbmc-server.
    If you want, you can store the thumbnails on a SMB-share on the OMV-machine. So every client can get them and doesn't have to store them on its own:
    http://wiki.xbmc.org/index.php…Sync_thumbails_and_fanart
    I don't know, if it's neccessary for Frodo 12.0, but works on my Clients very nice.


    New libxbmc.so with Frodo 12.2 and upnp, NFS etc.:
    http://filebin.ca/vesuT5KyDnF/libxbmc.so.zip
    overwrite the old file in /lib


    Known issues:
    - xbmc-server will crash, if you browse the Database with the XBMC-WebGUI


    To do:
    - get this addon working -> XBMC Library Updater Addon


    Turorial-Version 0.3

    Hint: _all_ HDD-Space will be used for the OMV-System. Make sure you use a small one ;) I'm using a 2,5" 20GB-HDD from a old Laptop. After install you can plug in all other HDDs and format/configure them via the OMV-WebGUI.

    Hmmmm ... the log should be there ...
    Go to the CLI and pleae post the output of:

    Code
    ls -l /var/www/openmediavault/module/autoshutdown*


    Code
    ls -l /var/log/auto*


    and please do a

    Code
    apt-get install --reinstall openmediavault-autoshutdown

    I'll update the script on github and then give you infos how to update yours tomorrow.


    Edit:
    Please try this script attached to this post and report back, if it is working after suspend/hibernate
    you need only the new autoshutdown.sh and /etc/pm/sleep.d/autoshutdown-restart. Extract and copy the files to the location:

    Code
    tar xfvz autoshutdown_v0.3.4.3.tar.gz 
    mkdir /etc/pm/sleep.d/
    cp usr/local/bin/autoshutdown.sh /usr/local/bin
    cp etc/pm/sleep.d/autoshutdown-restart /etc/pm/sleep.d/


    See the README for more infos about new features