Open Media Vault – Plug ins

I found the true power of Open Media Vault was through it’s plug ins.  There’s some developers who have created some really useful ones.

I used the following

  • miniDLNA to stream music to my pure evoke flow radio
  • MYSQL which provides a central database for the various XBMC boxes I have.
  • Transmissionbt for download Linux distributions and seeding the Raspberry PI images
  • CUPS to manage two local printers
  • dnsMasq which provides the IP addresses for my home network
  • LVM2 for managing the 4 HDD in a Logical Volume
  • Website for Sickbeard / SabNZBD / Maraschino / SubSonic

So where do you get all the lovely plugins.


Installation

Don’t forget to look at this forum post.

Google Code Project Page

Dowload the package from here

Navigate to System / Plugins / Upload

Select the freshly downloaded file and Hit ok

Open Media Vault will do it thing so wait until it’s finished after which you’ll have to refresh the browser (control + F5 usually does the trick)

You should now have a new menu item System / OMV-Plugins.org which allows to choose with repository you want to use. (follow bit taken from the plugin )

  • Stable –  Use the list of plugins provided in the stable repository at OMV-Plugins.org.
  • Donald – Use the list of plugins provided in the Donald (unstable/testing) repository at OMV-Plugins.org.
  • Glass -Use the list of plugins provided in the Glass (experimental) repository at OMV-Plugins.org.
Glass can break the system. You have to know what you’re doing here.
Donald and Glass only supports the last OMV version.
If more then one repository is enabled, the package with a higher version number will be installed.

I use stable as I would like thing to work! Also I don’t know enough to fix it if it doesn’t work.


MYSQL Plugin

System / Plugins / openmediavault-mysql

This plug in took awhile to install so just be patient and everything goes well you’ll then see a new option will called MYSQL in the Services list.

XBMC database can now be created.

Settings

  • Settings
    • Enable – Yes
    • Enable Networking – Yes
    • Port – 3306
    • Bind Address – Change this to your server address (http://10.0.0.1/)
  • Data
    • SQL Data Volume – Change this to a data drive, if
      anything happen to the root drive your data should be safe
    • SQL Data Root – will change to reflect the data volume
  • Change MySQL Root Password
    • Generate a new password if needed
  • phyMyAdmin
    • Enable – will install phpMyAdmin – opptional
  • Donate
    • If you like this, i’d suggest Donating

Databases

  • Add
    • Name
      • xbmc_video
      • xbmc_music
    • Collation – not quite sure about this so I left it at default
  • Click Ok

We will use the information here to create the advancedsettings.xml  document and to be honest before I had Open Media Vault and this plugin I had so many problems getting MYSQL to work but with OMV things are easier! Which is what I like.

I used some PHP code from WEBUNE.COM to check that I had my permission correct before starting XBMC. It saved me a lot of time and effort – so thanks WEBUNE. Tried posting the code here  but WordPress keeps messing it up, I suspect that’ll need the code and  pre tabg etc but in the mean time it can be found here on http://www.wallpaperama.com/

This should create a MYSQL database that XBMC can use. If you have difficulties it’s usually down to permission, so select the Global Privileges to the XBMC  user.

My advancedsettings.xml looks like this
<advancedsettings>
<videodatabase>
<type>mysql</type>
<host>10.0.0.1</host>
<name>xbmc_video</name>
<user>xbmc</user>
<pass>xbmc</pass>
</videodatabase>
<musicdatabase>
<type>mysql</type>
<host>10.0.0.1</host>
<name>xbmc_music</name>
<user>xbmc</user>
<pass>xbmc</pass>
</musicdatabase>
</advancedsettings>

You may have to restart XBMC for this to take effect.


miniDLNA

Install – System / Plugins / openmediavault-minidlna
Setting – Services / DLNA

  • Enable (Yes / No)
  • Name –  The name that is displayed to DLNA clients.
  • Port (Port to listen on.)
  • Strict DLNA (Strictly adhere to DLNA standards – This will allow server-side downscaling of very large JPEG images)
  • TiVo support (Yes / No)
  • Media Rescan (Force a complete rescan of all media folders)
  • A complete rescan should not normally be needed. When files / folders are updated (added/deleted/modified), miniDLNA will automatically rescan updated items.
Advertisements

15 thoughts on “Open Media Vault – Plug ins

  1. Ivaylo

    This is one of the few web sites I have found EXTREMELY USEFUL on the internet. Please keep going the same direction providing outstanding guidance!

  2. Brian Mcdonald

    ok then i am still get this error, i am on OMV 0.30.16 (omnius) as i quite new to the OVM and debian just geting my feet wet with this just miss watch stuff with my PS3 on my big TV just wodndering if have any input on this problem

    Error #2003:
    exception ‘OMVException’ with message ‘Invalid method parameter: Array is not an object.’ in /usr/share/php/openmediavault/rpc.inc:289
    Stack trace:
    #0 /var/www/openmediavault/rpc/minidlna.inc(114): OMVRpc->validateParams(‘MiniDLNARpc::se…’, Array)

    #1 /var/www/openmediavault/rpc/minidlna.inc(153): MiniDLNARpc->_validate(‘MiniDLNARpc::se…’, Array)
    #2 [internal function]: MiniDLNARpc->set(Array)
    #3 /usr/share/php/openmediavault/rpc.inc(261): call_user_func_array(Array, Array)
    #4 /usr/share/php/openmediavault/rpc.inc(97): OMVRpc::exec(‘MiniDLNA’, ‘set’, Array)
    #5 /var/www/openmediavault/rpc.php(44): OMVJsonRpcServer->handle()

    Cheers

    Brian

    1. Hi Brian

      I think there was a bug in the minidlna plug in. It didn’t create the config file. Try this forum post http://sourceforge.net/apps/phpbb/openmediavault/viewtopic.php?f=5&t=321&start=160

      I haven’t gone through it was I’m on the bus into work.

      If that doesnt help try a quick google on minidlna config file. Then log on via ssh and create the file manually. The restart the process.

      Hope that help. If I was near a pc I’d have a more detailed answer.

      Good luck.

  3. Colin Goodman

    Hi Mark

    Were you able to successfully set-up the Transmission plug-in? I’ve installed it but I cant seem to save a ‘Download Shared Folder’ location in the settings. I choose a shared folder from the drop-down menu that has read/write access for the ‘debian-transmission’ group, but when I click save/OK nothing happens, no save or error message.

    On another note, sadly my attempt at adding XBMC alongside OMV wasn’t successful. Likely due to my lack of knowledge. Installed Xorg, nVidia drivers and XBMC standalone via commandline, created a xorg.conf to use nVidia. In the end couldn’t get a window to open. By 2am I got frustrated and decided to wipe everything and reinstall from scratch. Project for another day/month/year perhaps 🙂

    1. Hi Colin

      Sorry don’t know the answer to the transmission question. If the shared folder has bee created and then added to transmission settings it should work – he says. Try posting on the forum everyone is helpful there.

      Maybe the xbmc thing isn’t to be, just as an idea if you want to try again although it might not work. Install a fresh ubuntu then put xbmc over the top as you’ve already done. Configure it then save the config files and use them with omv.

      I understand what your doing and still think a separate pc is the way to go but in the end of the day it comes down to cost,time and free money.

      Good luck.

  4. Nico

    Hi,
    Did you try adding videos to mini dlna ? I can see only a few.
    Full rescan stops on some files but without saying why …

    1. Hi

      Try checking the permissions and also looking for zero length files. I only use the miniDLNA to stream music..

      Also look at the log which I think is at /var/log/minidlna.log but you might have to do a search to check either using find or locate.

  5. Hey Kentish Man (are you actually from Kent?)…

    Great website – succinct, simple, easy to understand. And there is not enough documentation online about OMV considering it’s potential. Good work…

    I can’t seem to install plugins. I’ve tried uploading the file you gave us the link for, but when I click on the plugins button I get this error:

    Error #4000:
    exception ‘OMVException’ with message ‘Failed to execute command ‘export LANG=C; sudo apt-get –simulate –reinstall install openmediavault-clamav 2>&1’: Package: openmediavault-omvpluginsorg
    Priority: optional
    Section: misc
    Installed-Size: 164
    Maintainer: Marcel Beck
    Architecture: all
    Version: 0.3.2~3.gbpa0b737
    Depends: openmediavault (>= 0.3)
    Filename: ./openmediavault-omvpluginsorg_0.3.2~3.gbpa0b737_all.deb
    Size: 11264
    MD5sum: bac2181bd2ede361c4134f27e9623861
    SHA1: bd9c00bed700bc1056f572cf10e89f6a36c59854
    SHA256: 5f2f1a08bd57e42cd96b92dfd4088c9168757aa3c0941f5ca217daf8848b1575
    Description: OMV-Plugins.org Package Repositories for OpenMediaVault
    Homepage: http://omv-plugins.org/

    Reading package lists…
    Building dependency tree…
    Reading state information…
    The following NEW packages will be installed:
    openmediavault-omvpluginsorg
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Inst openmediavault-omvpluginsorg (0.3.2~3.gbpa0b737 localhost [all])
    Conf openmediavault-omvpluginsorg (0.3.2~3.gbpa0b737 localhost [all])
    Package: openmediavault-clamav
    Version: 0.3.0.6
    Architecture: all
    Maintainer: Volker Theile
    Installed-Size: 291
    Depends: openmediavault (>= 0.3.0.14), clamav-daemon, clamav-freshclam
    Homepage: http://www.openmediavault.org
    Priority: optional
    Section: net
    Filename: pool/main/o/openmediavault-clamav/openmediavault-clamav_0.3.0.6_all.deb
    Size: 32728
    SHA256: a3dac7fc19a400dd65f46055ce6080ae6ff20108d934c9aafce012bf59b9aed2
    SHA1: 3cb3e19ebfbc797ec53a8ab3080543508c5551bb
    MD5sum: 0699ec7784e68b60a9a945fd47b42ef7
    Description: OpenMediaVault ClamAV plugin
    Clam AntiVirus is an anti-virus toolkit for Unix.

    Reading package lists…
    Building dependency tree…
    Reading state information…
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    openmediavault-clamav : Depends: clamav-daemon but it is not installable
    Depends: clamav-freshclam but it is not installable
    E: Broken packages’ in /var/www/openmediavault/rpc/plugin.inc:154
    Stack trace:
    #0 [internal function]: PluginRpc->getList(Array)
    #1 /usr/share/php/openmediavault/rpc.inc(261): call_user_func_array(Array, Array)
    #2 /usr/share/php/openmediavault/rpc.inc(97): OMVRpc::exec(‘Plugin’, ‘getList’, Array)
    #3 /var/www/openmediavault/rpc.php(44): OMVJsonRpcServer->handle()
    #4 {main}

    Any ideas?

    Cheers!

    Jon

  6. John

    I posted this same request over on the unoffical plugins web site. I was wanting to install miniDLNA but I can’t get the OMV-Plugins.org to work. It installs ok but when I select “Stable” then click OK I get the following error. It is the same for both .3 and .4. I have .4 OMV installed on 2 different servers and both get exactly the same error.

    I haven’t had much luck finding a solution for this problem. How do I get OMV-Plugins.org to work?

    Undefined index: fedaykin

    Error #0:
    exception ‘ErrorException’ with message ‘Undefined index: fedaykin’ in /var/www/openmediavault/rpc/omvpluginsorg.inc:151
    Stack trace:
    #0 /var/www/openmediavault/rpc/omvpluginsorg.inc(151): exception_error_handler(8, ‘Undefined index…’, ‘/var/www/openme…’, 151, Array)
    #1 [internal function]: OmvPluginsOrgRpc->set(Array)
    #2 /usr/share/php/openmediavault/rpc.inc(265): call_user_func_array(Array, Array)
    #3 /usr/share/php/openmediavault/rpc.inc(98): OMVRpc::exec(‘OmvPluginsOrg’, ‘set’, Array)
    #4 /var/www/openmediavault/rpc.php(44): OMVJsonRpcServer->handle()
    #5 {main}

    maihoaomv

    1. Hi John

      I’ve had a similar problem and in the end gave up with the miniDLNA plug in via OMV which was strange as I had it working in the initial release. Although saying that I do use miniDLNA and installed via the command line then tweaked the config file.

      Log in via SSH and …

      sudo apt-get update
      sudo apt-get install minidlna

      This site is pretty useful although they compile from source http://zeldor.biz/2012/01/dlna-minidlna-on-debian/

      The edited the /etc/minidlna.conf file to reflect the music folder, ie /media/{UUID}/

      Hope this helps

      Mark

  7. Armand

    Thank you for the very useful information I have found on your site. This will help setting up my own OMV, which I intend to run on a small HP Proliant microserver N40L. The server hardware arrived yesterday, while the red WD caviar disks and the extra RAM for zfs have been sent a week earlier. I did a first test and installed OMV 0.3 (in about half an hour) on a small USB stick, from a DVD with the ISO file. Now I know my base hardware is working fine. I hope I can find some time next weekend to go further, install the RAM on the motherboard and the disks (I’m thinking about RAID1). My idea is to do it with the kids and have them learn some IT stuff. The server will be used to store the family pictures and to backup our home PCs. A MySQL instance could be running also, maybe an Asterix IP-PBX. Thanks again for the valuable information.
    Armand
    Strasbourg, France.

  8. Armand

    OMV up and running. Installed somewhere in December, on a HP microserver N40L that has been upgraded to 8 GB RAM and 2 hard disks for mirroring. I didn’t select very fast hard disks and decided to go for a reliable solution with WD “Caviar red NASware” disks running at 5400 rpm. Under my supervision, my daughter (12 yo) removed the system board, replaced the RAM, re-installed the board, installed the HDD in the drive bays, and installed the software on a USB stick placed on the system board. I now plan to replace the stick by an additional HDD because I do not trust the reliability of the USB stick and I wish to have more space for more apps. I am considering a Samsung SSD 840, or a HDD I recuperated from an IOMEGA external drive that I don’t use anymore. The microserver so far proved to be an interesting solution, and OMV seems to be well suited for a home NAS. Reasonably fast, too. For my Linux desktop I am using Rsync (very good backup solution). For Windows I was lesser convinced by Rsync & Cygwin (difficult to run as a service, to automate backups to the NAS) so I’ll probably make login or logout scripts, mount shared drives, and use Synctoy to copy the data. Thanks again Mark for the useful information.

    Happy new year!

    Armand

  9. Chuck

    Outstanding insight and guidance on openmediavault. I recently acquired a Raspberry Pi 3 and have been trying to set it up as a NAS server, which has been incredibly time consuming and frustrating. I finally tried installing the image on an SD card. I was able to boot it but ended up with a command prompt. When trying to configure my wireless NIC, I found that fundamental linux commands like iwconfig were missing. I finally found your posts and was able to add OMS to Raspbian. WAHOO!!! Now I just need to learn how to use OMS.

    While exploring the plugins, I tried following your link above (Dowload the package from here) several times and was redirected to various random sites. Will you please check this? Is anyone else having this problem?

    I truly appreciate the time and effort you have put into this! Please continue.

    Thank You.

    Chuck

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s