Post Reply 
Thread Rating:
  • 3 Vote(s) - 4.33 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tutorial] Installing MinimServer on FreeNAS or FreeBSD
23-01-2016, 17:52 (This post was last modified: 23-03-2021 17:52 by airflow.)
Post: #1
Music [Tutorial] Installing MinimServer on FreeNAS or FreeBSD

FreeNAS is a free and open-source solution for building a NAS yourself on commodity hardware. It's based on FreeBSD as the OS and ZFS as the filesystem.
MinimServer is a new UPnP AV music server with a number of innovative features that make it easier to organize and explore your music collection.

MinimServer does not come readily packaged for FreeNAS, but with a few steps it can be achieved that it runs properly within a jail on the system.
Details of investigations about this can be read here and here, but I recommend you save your time and just follow the instructions below.

I sum up the steps needed for MinimServer on FreeBSD here:
  1. Prepare a jail within FreeNAS as usual. Ensure the jail can connect to the internet.
  2. Install dependencies within jail: multimedia/ffmpeg, java/openjdk8-jre, ftp/wget, lang/gcc
  3. Create storage-link between your folder with your music and /media within the jail.
  4. Download MinimServer for Linux Intel and place it in /usr/local/share within the jail.
  5. Change to /usr/local/share and extract the software:
    tar -xvzf MinimServer-<version-you-downloaded>-linux-intel.tar.gz
  6. Download the libs from here (it contains the ohnet-libraries MinimServer needs, specifically compiled for FreeBSD) and place it in /usr/local/share within the jail.
  7. Now search for zip-files within the path of minimserver in the jail:
    find /usr/local/share/minimserver -name "*.zip"
    You should see a zip-file beginning with "ohnet".
  8. Replace that file with the previously downloaded file, using exactly the filename of the existing variant of the installation of MinimServer.
  9. Start Minimserver with "minimserver/bin/startc".
  10. Depending on the exact version installed, it might start normally like this:
    root@jail:/usr/local/share # minimserver/bin/startc
    MinimServer 2.0.16 update 185, Copyright (c) 2012-2021 Simon Nash. All rights reserved.
    starting MinimServer[jail]
    Enter command (? for help):
    >Enter content directory, or null to continue:
  11. After entering the path "/media" and pressing enter, MinimServer should scan your media and start. You can check the status of the server via a Webbrowser pointing to the ip of the jail and port 9790, for example You can rescan the library there. For full functionality install MinimWatch on your PC and control MinimServer through that.
  12. Note: If the downloaded version is not the latest one, it will update itself and then crash (!). This might also happen at a later time, when new updates of the software are released.
  13. If this happens: Repeat steps 7 & 8. This is necessary because the update-procedure has yet added another updated but incompatible zip-file with a new, higher version-number. It has to be replaced another time.
Want to make MinimServer to start automatically when starting the jail (or starting FreeNAS, that is)? In this case also do the following steps:
  1. Execute this command:
    /usr/bin/sed -i -- 's/-eo pid,user,vsz,stat,args/-exo pid,user,vsz,stat,args/g' /usr/local/share/minimserver/bin/stopall
  2. Create the file /etc/rc.d/minimserver with the following contents:
    # $FreeBSD: /usr/local/etc/rc.d/minimserver, 2020/02/03 05:55:56 isaac Exp $
    # PROVIDE: minimserver
    # KEYWORD: FreeBSD
    # minimserver startup

    . /etc/rc.subr



    minimserver_start() {
        export PATH
        export LANG
        export LC_CTYPE
        export LC_ALL
        checkyesno minimserver_enable && echo "Starting minimserver." && \
            ${minimserver_path}/bin/startd ${minimserver_flags}

    minimserver_stop() {
        checkyesno minimserver_enable && echo "Stopping minimserver." && \

    load_rc_config ${name}
    run_rc_command "$1"
  3. Make the file executable with "chmod +x minimserver"
  4. Execute this command:
    sysrc minimserver_enable="YES"
  5. You can now start the server in the background with "service minimserver start" or by just restarting the jail or FreeNAS itself.
Additional notes

In the future it might become necessary to repeat the replacement of the zip-file (steps 7 & 8) again because of future updates. Just remember that when MinimServer suddenly stops working that this might be the case. In these cases, you will find an error-message in the log similar like this:
>java.lang.UnsatisfiedLinkError: /usr/local/minimserver/data/native/ Shared object "" not found, required by ""

Note: At the moment, the libraries are provided for 64-bit architecture only. These files will not work if used on a 32-bit OS (you can check with "uname -a").

Good luck and have fun with MinimServer!
Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
[Tutorial] Installing MinimServer on FreeNAS or FreeBSD - airflow - 23-01-2016 17:52

Forum Jump:

User(s) browsing this thread: 1 Guest(s)