How to install MinimServer on QNAP NAS

How to install MinimServer with on QNAP NAS

How to install MinimServer on QNAP NAS

MinimServer is a popular UPnP music server. It is typically used to provide access to stored music collections to network music streamers (Linn, Moon, Cyrus, HiFi Rose, Wimm, Sonos etc).

Installing MinimServer on QNAP used to be straight forward. It was part of the QNAP App ecosystem and could be installed in a couple of clicks. MinimServer requires a Java runtime (JRE).

QNAP removed its legacy JRE and JRE_ARM packages from the App Center on QTS 5 and newer firmware, which is why Java no longer appears under Developer Tools.

This guide shows how to manually install the Java Runtime Environment and MinimServer on your QNAP NAS. 

**** The steps below maybe beyond your comfort zone - so please get in touch if you need assistance **** 

We can pre-install MinimServer on QNAP NAS purchased from us.

The steps below are carried out on a ARM processor based QNAP (TS233 in this example). You will need to select the correct packages to match your QNAP processor.

Step 1: Install OpenJDK via App Center

Open App Center in QTS, click the Settings (gear) icon in the top-right corner, go to the General tab, check Allow installation of applications without a valid digital signature, and click Apply.

Enable Unsigned Packages

STEP 2: Enable SSH

We will need to connect to the NAS with the command line over ssh. Make sure ssh access is enabled. 

Control Panel -> Network & File Services

Allow SSH

 

Make Sure your user has SSH permissions - - check "Edit Access Permissions"

SSH Permission

 

Step 3: Add the OpenJDK App Repository.

In App Center -> Settings, switch to the App Repository tab, click Add, enter Java Installer as the Name and https://get.filebot.net/qnap/index.xml as the URL, then click Add and Apply.

Enable the OpenJDK

 

Add the JDK Repository

Step 4: Install the Java Installer Package

Close the Settings window, select Java Installer in the left-hand sidebar of App Center -> Developer Tools -> Java Installer app, and click Install. 

Install the JDK

Confirm that you wish to install a package without digital signature

Digital Certificate

You should be able to open the package when installed and display someting similar to:

JDE successfuly installed

Step 5: Download MinimServer

Visit https://minimserver.com/downloads.html and download the version of MinimServer that matches the processor architecture for your QNAP QTS. This is ARMv8 for our TS-233.

Accept the license conditions and Download

MinimServer License Accept

This will save the installation package in your downloads folder e.g. MinimServer-2.2-arm64.qpkg

Step 6: Try to install MinimServer

Go back to the QNAP Web browser interface. (Note this step will fail first time).

In the App Centre and click the Manual Install button at the top right of the screen

Install MinimServer Manually

Browse to the recently downloaded MinimServer package and click Install

Install Minim Server

At this point the installation will fail as MinimServer cannot find the Java Runtime Environment we installed earlier. 

Step 7: Verify Java is Installed

Open a Windows command prompt, a Putty session, or Termina App on Mac.

Enter ssh <username>@<qnap ip address>

e.g. ssh adminmain@192.168.1.12

Enter the command

java --version

You should see something like:

openjdk 21.0.10 2026-01-20 LTS
OpenJDK Runtime Environment Temurin-21.0.10+7 (build 21.0.10+7-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.10+7 (build 21.0.10+7-LTS, mixed mode, sharing)

Step 8: Configure the QNAP Package Manger to recognise the JRE

MinimServer relies on the QNAP package manager to identify the location of the JRE. We need to create the correct entry so MinimServer finds the JRE

Paste each of the following lines individually:

JAVA_ROOT=$(dirname $(dirname $(readlink -f $(which java))))

QPKG_BASE=$(echo "$JAVA_ROOT" | grep -oE '^/share/[^/]+/\.qpkg')
[ -z "$QPKG_BASE" ] && QPKG_BASE="/share/CACHEDEV1_DATA/.qpkg"

echo "QPKG Base: $QPKG_BASE"

echo "Java Root: $JAVA_ROOT"

You should see something like:

[adminmain@TS233-57 ~]$ JAVA_ROOT=$(dirname $(dirname $(readlink -f $(which java))))
[adminmain@TS233-57 ~]$ QPKG_BASE=$(echo "$JAVA_ROOT" | grep -oE '^/share/[^/]+/\.qpkg')
[adminmain@TS233-57 ~]$ echo "QPKG Base: $QPKG_BASE"
QPKG Base: /share/CACHEDEV1_DATA/.qpkg
[adminmain@TS233-57 ~]$ echo "Java Root: $JAVA_ROOT"
Java Root: /share/CACHEDEV1_DATA/.qpkg/java-installer
[adminmain@TS233-57 ~]$

Next create a persistent jre.sh service script. The QNAP operating system, QTS,  requires every registered QPKG package to point to an existing executable shell script. Create $QPKG_BASE/JRE/jre.sh so QTS automatically creates the /usr/local/jre symlink whenever the NAS boots:

sudo mkdir -p "$QPKG_BASE/JRE"
cat << EOF | sudo tee "$QPKG_BASE/JRE/jre.sh" > /dev/null
#!/bin/sh
case "\$1" in
 start)
   ln -sfn "$JAVA_ROOT" /usr/local/jre
   ;;
 stop)
   ;;
 restart)
   \$0 stop
   \$0 start
   ;;
 *)
   echo "Usage: \$0 {start|stop|restart}"
   exit 1
esac
exit 0
EOF
sudo chmod +x "$QPKG_BASE/JRE/jre.sh"			

Verify this has worked with the command cat "$QPKG_BASE/JRE/jre.sh"

 You should see

#!/bin/sh
case "$1" in
 start)
   ln -sfn "/share/CACHEDEV1_DATA/.qpkg/java-installer" /usr/local/jre
   ;;
 stop)
   ;;
 restart)
   $0 stop
   $0 start
   ;;
 *)
   echo "Usage: $0 {start|stop|restart}"
   exit 1
esac
exit 0
[adminmain@TS233-57 ~]$	

Next we need to write metadata to the QNAP package manager so MinimServer can find the JRE. QTS uses the file /etc/config/qpkg.conf to save metadata for each installed package.

We will write the Java Runtime Environment metadata to the  [JRE] section of /etc/config/qpkg.conf
Register all required QPKG fields with RC_Number = 101 so QTS initializes JRE early in the boot sequence before MinimServer with the following commands:

sudo /sbin/rmcfg JRE -f /etc/config/qpkg.conf
sudo /sbin/setcfg JRE Name JRE -f /etc/config/qpkg.conf
sudo /sbin/setcfg JRE Class null -f /etc/config/qpkg.conf
sudo /sbin/setcfg JRE Status complete -f /etc/config/qpkg.conf
sudo /sbin/setcfg JRE Display_Name JRE -f /etc/config/qpkg.conf
sudo /sbin/setcfg JRE Version 21.0.10 -f /etc/config/qpkg.conf
sudo /sbin/setcfg JRE Author "Eclipse Adoptium" -f /etc/config/qpkg.conf
sudo /sbin/setcfg JRE QPKG_File JRE.qpkg -f /etc/config/qpkg.conf
sudo /sbin/setcfg JRE Date 2026-11-24 -f /etc/config/qpkg.conf
sudo /sbin/setcfg JRE Shell "$QPKG_BASE/JRE/jre.sh" -f /etc/config/qpkg.conf
sudo /sbin/setcfg JRE Install_Path "$JAVA_ROOT" -f /etc/config/qpkg.conf
sudo /sbin/setcfg JRE RC_Number 101 -f /etc/config/qpkg.conf
sudo /sbin/setcfg JRE Enable TRUE -f /etc/config/qpkg.conf

You should see something like:

[adminmain@TS233-57 ~]$ sudo /sbin/rmcfg JRE -f /etc/config/qpkg.conf
[adminmain@TS233-57 ~]$ sudo /sbin/setcfg JRE Name JRE -f /etc/config/qpkg.conf
[adminmain@TS233-57 ~]$ sudo /sbin/setcfg JRE Class null -f /etc/config/qpkg.conf
[adminmain@TS233-57 ~]$ sudo /sbin/setcfg JRE Status complete -f /etc/config/qpkg.conf
[adminmain@TS233-57 ~]$ sudo /sbin/setcfg JRE Display_Name JRE -f /etc/config/qpkg.conf
[adminmain@TS233-57 ~]$ sudo /sbin/setcfg JRE Version 21.0.10 -f /etc/config/qpkg.conf
[adminmain@TS233-57 ~]$ sudo /sbin/setcfg JRE Author "Eclipse Adoptium" -f /etc/config/qpkg.conf
[adminmain@TS233-57 ~]$ sudo /sbin/setcfg JRE QPKG_File JRE.qpkg -f /etc/config/qpkg.conf
[adminmain@TS233-57 ~]$ sudo /sbin/setcfg JRE Date 2026-11-24 -f /etc/config/qpkg.conf
[adminmain@TS233-57 ~]$ sudo /sbin/setcfg JRE Shell "$QPKG_BASE/JRE/jre.sh" -f /etc/config/qpkg.conf
[adminmain@TS233-57 ~]$ sudo /sbin/setcfg JRE Install_Path "$JAVA_ROOT" -f /etc/config/qpkg.conf
[adminmain@TS233-57 ~]$ sudo /sbin/setcfg JRE RC_Number 101 -f /etc/config/qpkg.conf
[adminmain@TS233-57 ~]$ sudo /sbin/setcfg JRE Enable TRUE -f /etc/config/qpkg.conf
[adminmain@TS233-57 ~]$

Now back to QNAP web interface and attempt to re-install MinimServer manually again. This time it should install correctly and start running as expected.

MinimServer running

 

I hope you found that useful... Please let us know if there are any issues or improvements...

 

YouTube Strap