Package Details: serviio 2.2.1-2

Git Clone URL: (read-only, click to copy)
Package Base: serviio
Description: Free DLNA media server
Upstream URL:
Licenses: custom
Submitter: cebru
Maintainer: yigits
Last Packager: yigits
Votes: 62
Popularity: 0.034956
First Submitted: 2011-04-09 16:25 (UTC)
Last Updated: 2022-05-20 00:08 (UTC)

Dependencies (2)

Required by (1)

Sources (5)

Latest Comments

yigits commented on 2022-05-20 00:09 (UTC)

@cherio thank you for the heads up, pushed a new release to address those issues

cherio commented on 2022-05-16 21:40 (UTC) (edited on 2022-05-16 21:43 (UTC) by cherio)

There seem to be a problem with The syntax inside assumes "bash" however the shebang specifies #!/bin/sh which is a directive to use POSIX compatible shell. While by default in arch sh points to bash, it is not a requirement to have bash as a fallback; both arch bash and dash documentation briefly touches upon POSIX compatibility.

The script needs either to tweak syntax to use POSIX compatible expressions (see below) or change shebang to #!/bin/bash - either way it is a simple fix.


if [ "$(id -u)" -eq "0" ]; then
    if [ -f /etc/profile.d/ ]; then
        . /etc/profile.d/
    elif [ -f /etc/profile.d/ ]; then
        . /etc/profile.d/
    export PATH=/usr/lib/jvm/java-8-openjdk/jre/bin/:$PATH
    JAVA_OPTS=" -Djava.awt.headless=true -Dderby.system.home=$SERVIIO_HOME/library -Dserviio.home=$SERVIIO_HOME -Dffmpeg.location=ffmpeg"

    java -Xmx384M $JAVA_OPTS -classpath $SERVIIO_CLASS_PATH org.serviio.MediaServer "$@"
    echo "Must be run as root."

lesebas commented on 2021-10-13 19:31 (UTC)

Sorry I do not use this app anymore and don't have time to maintain it. Disowned.

kiswa commented on 2021-10-13 19:04 (UTC)

Will this be getting an update to the latest version anytime soon?

skeezmoe commented on 2020-07-29 20:38 (UTC) (edited on 2020-07-29 20:41 (UTC) by skeezmoe)

For those having post install issues refer to:

I followed the instructions in the link and now it works:

After install use these commands to get it going . systemctl start serviio.service ( Starts the service and it will start at boot . ) systemctl stop serviio.service ( Stops the service ) systemctl status serviio.service ( Will show you the server status )

zerophase commented on 2019-06-20 05:15 (UTC)

Anyone else having issues accessing the serviio console since updating to 2.0?

lesebas commented on 2019-01-15 21:43 (UTC)



zerophase commented on 2019-01-12 20:01 (UTC)

jre10-openjdk-headless seems to work fine for this. could you change java-runtime-headless to >=8?

lesebas commented on 2019-01-06 15:51 (UTC)

Up to date, enjoy.

lesebas commented on 2019-01-05 17:05 (UTC)

Hi, I will update the package as soon as I will be back at home. Please be patient or download the pkgbuild and modify it locally to buildthe pkg.

yoohahn commented on 2019-01-02 07:22 (UTC) (edited on 2019-01-02 07:38 (UTC) by yoohahn)

If I knew how to add an update I would. Its easy to do this your selfe. Just change the hash and download The 10.0.1 package manually. Worked for me when I installed 1.10.

Edit: Adding this patch should do it -

student975 commented on 2019-01-01 11:02 (UTC)

Hi! Any chances to move to the last (1.10.1)?

lesebas commented on 2018-03-03 09:36 (UTC)

Hi, updated to version 1.9.1. Enjoy!

jro commented on 2017-09-19 10:57 (UTC)

Please ignore my below comment. Wrong port

jro commented on 2017-09-19 10:51 (UTC)

After launching serviio and visiting http://[[hostname]]:23424/console, what I see is: Not Found The server has not found anything matching the request URI You can get technical details here. Please continue your visit at our home page.

rkmax commented on 2017-08-09 03:17 (UTC)

Version 1.9 is out!

lesebas commented on 2016-12-15 21:03 (UTC)

Hello, updated to 1.8 @fuzzy2 : thanks for the advise, corrected.

fuzzy2 commented on 2016-10-22 08:46 (UTC)

Hi, thank you for maintaining this package! I see you have the `.install` file included in the source/checksums. This is discouraged: (last paragraph in section) yaourt prompts you to edit the .install file, but that won't work with this package unless removing it from the source array first.

lesebas commented on 2016-10-04 17:22 (UTC) (edited on 2016-10-04 17:22 (UTC) by lesebas)

Hello, updated to 1.7 and pkgrel corrected

crabvk commented on 2016-09-19 18:59 (UTC)

@lesebas pkgrel starts from 1 btw, thanks for the package :)

Leidge commented on 2016-08-03 03:37 (UTC)

After install, put: sudo serviio -start

zerophase commented on 2016-04-02 01:02 (UTC)

Is Serviio hanging shutdown for anyone else?

zerophase commented on 2016-02-04 07:16 (UTC)

Has anyone else been having issues with Serviio not getting through UFW? I have ports 1900 udp, 8895 tcp, 23423 tcp / udp, and 23424 tcp / udp opened. If turn the firewall off I can connect.

lesebas commented on 2016-01-20 21:12 (UTC)

Updated to 1.6 Be aware that the console dropped to the web interface.

zerophase commented on 2015-11-05 19:06 (UTC)

@lesebas Serviio works fine with the default Java. I just get the JavaEmbeddedFrame window, when I open the Serviio console. There's a fix listed : That involves changing to Oracle's Java. I'm just wondering if there's an equivalent environment variable as "STEAM_FRAME_FORCE_CLOSE=1" for forcing the Embedded frame to close.

lesebas commented on 2015-11-05 09:35 (UTC) (edited on 2015-11-05 09:35 (UTC) by lesebas)

@zerophase For your first question, I don't think so... Did you try to run the service on other machine (if possible)? For the second you don't have to install specific vendor Sun for Java, see wiki on java: ''Packages that need any Java environment should declare dependency on java-runtime, java-runtime-headless or java-environment as usual''

zerophase commented on 2015-11-05 04:20 (UTC)

Serviio has been slowing down shutdown for me. Are there any modification to the service file that could fix this? is there a solution for getting rid of JavaEmbeddedFrame when the console is open, other than installing Sun Java?

m79reed commented on 2015-03-09 07:54 (UTC)

It's better to use: "-Dffmpeg.location=ffmpeg" instead "-Dffmpeg.location=/usr/bin/ffmpeg". See source file: serviio-1.5.1-linux.tar.gz:serviio-1.5.1/bin/, line 57.

lesebas commented on 2015-03-07 11:24 (UTC)

OK package updated with all you suggestions. Let me know if it works for everyone as I didn't test it with other version of java runtine than openjdk.

dront78 commented on 2015-03-07 11:11 (UTC)

pls remove gksu dependence also modified startup to jre support, since no in oracle java8 #!/bin/sh if [ $UID -eq 0 ] then if [[ -f /etc/profile.d/ ]]; then . /etc/profile.d/ elif [[ -f /etc/profile.d/ ]]; then . /etc/profile.d/ fi export PATH=/usr/lib/jvm/java-8-openjdk/jre/bin/:$PATH SERVIIO_HOME="/usr/share/java/serviio" CP="$SERVIIO_HOME/lib/*:$SERVIIO_HOME/config" JAVA_OPTS=" -Djava.awt.headless=true -Dderby.system.home=$SERVIIO_HOME/library -Dserviio.home=$SERVIIO_HOME" java -Xmx384M $JAVA_OPTS -classpath $CP org.serviio.MediaServer "$@" else echo "Must be run as root." fi

nplatis commented on 2015-03-06 20:12 (UTC)

The dependency on 'jre8-openjdk-headless' could be replaced by the more generic 'java-runtime-headless=8'.

axel commented on 2015-03-06 19:40 (UTC)

Ok I have found a solution. I added in /usr/bin/serviio at the end of JAVA_OPTS the location of ffmpeg -Dffmpeg.location=/usr/bin/ffmpeg

axel commented on 2015-03-06 18:58 (UTC)

Version 1.5.1 doesn't scan my files. I checked /var/log/serviio/serviio.log and it is full with java exceptions and messages like those: ERROR [ProcessExecutor] Fatal error in process starting: Cannot run program "lib\ffmpeg.exe": error=2, No such file or directory MetadataExtractionCoordinator] Skipping processing metadata for an unsupported file (*.mp4). Message: Unknown video file type.

lesebas commented on 2015-02-25 20:26 (UTC)

Updated, enjoy.

mortzu commented on 2015-02-25 09:53 (UTC)

Please take over

lesebas commented on 2015-02-12 21:40 (UTC)

@mortzu, please update.

dimitrije commented on 2015-02-03 22:44 (UTC)

Hi, any chance of getting version 1.5? Great work, thanks...

tarasis commented on 2014-10-05 00:08 (UTC)

Not yet. I am to try tomorrow.

lesebas commented on 2014-10-03 11:55 (UTC)

Did you try to recompil the package?

tarasis commented on 2014-10-02 21:20 (UTC)

Running this in a headless environment. However it isn't working. First problem running serviio-console: # serviio-console Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-7-openjdk/jre/lib/amd64/headless/ cannot open shared object file: No such file or directory at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary1( at java.lang.ClassLoader.loadLibrary0( at java.lang.ClassLoader.loadLibrary( at java.lang.Runtime.load0( at java.lang.System.load( at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary1( at java.lang.ClassLoader.loadLibrary0( at java.lang.ClassLoader.loadLibrary( at java.lang.Runtime.loadLibrary0( at java.lang.System.loadLibrary( at at at Method) at java.awt.Toolkit.loadLibraries( at java.awt.Toolkit.<clinit>( at javax.swing.UIManager.getSystemLookAndFeelClassName( at org.serviio.ui.view.swing.SwingHelper.initSwing( at org.serviio.console.ServiioConsole.main( That was solved by install libcups However when I try to run serviio-console next time I get a different error: (doesn't matter if serviio is run first or not) $ sudo serviio-console Exception in thread "Thread-1" java.lang.NullPointerException at org.serviio.console.ServiioConsole$ Any tips?

lesebas commented on 2014-09-16 17:14 (UTC)

Hello, I've modify the PKGBUILD to include a shortcut to launch the console (with root prompt : it adds gksudo as depends). You can download the AUR package here :

prettyvanilla commented on 2014-07-26 22:46 (UTC)

Could you please install the .service-file as 644, not 755? They are not supposed to be executable and journalctl shows warnings about it.

dront78 commented on 2014-04-05 15:12 (UTC)

please support jdk start in /usr/bin/serviio if [ $UID -eq 0 ] then if [[ -f /etc/profile.d/ ]]; then . /etc/profile.d/ fi SERVIIO_HOME="/usr/share/java/serviio"

skremiec commented on 2013-12-22 20:47 (UTC)

Flagged out of date since it has now been updated to 1.4. Just updating the pkgver and md5sums seems to work fine.

commented on 2013-08-14 14:44 (UTC)

Bad tgz MD5SUM, should be f7e00803e272a9e5a186239129de3400

mortzu commented on 2013-06-22 10:39 (UTC)

there is already a .service-file.

commented on 2013-06-16 09:02 (UTC)

Please consider adding a systemd service file. Something like that: seems to work just fine.

mewol commented on 2013-04-02 23:25 (UTC)

Flagged out of date since it has now been updated to 1.2.1. Just updating the pkgver and md5sums seems to work fine.

mortzu commented on 2013-03-05 05:07 (UTC)

why flagging out of date?

commented on 2012-12-20 13:41 (UTC)

Sorry i copy/paste, new pkgbuild: It's my first pkgbuild, i've checked it and think it's ok...

bjo commented on 2012-12-20 13:19 (UTC)

Please remove me from your PKGBUILD, I'm not the maintainer any more.

commented on 2012-09-03 00:19 (UTC)

I found out there is a serviio log file at /var/log/serviio/serviio.log and this is what caught my attention there: "The database directory '/usr/share/java/serviio/library/db' exists. However, it does not contain the expected '' file. Perh aps Derby was brought down in the middle of creating this database. You may want to delete this directory and try creating the database again." So I removed the db directory, restarted serviiod daemon, and run kdesu "serviio-console" through kde alt-f2 and it worked fine. It still does not work through terminal using "sudo serviio-console" but it's ok since it's accessible through alt-f2. So if anyone gets this problem, now there is a solution, hope it helps. =) Thnx for managing the pkgbuild, cheers!

commented on 2012-08-29 08:54 (UTC)

Hi, I get the same output that I pasted bellow. So that same output goes for running under root (su), and running with sudo. Running it without root privileges gives "Must be run as root.".

bjo commented on 2012-08-26 07:19 (UTC)

What happens if you run serviio-console as root(via su) in a kde-terminalwindow?

commented on 2012-08-24 16:05 (UTC)

Hi, I get this on trying to run serviio-console: serviio-console No protocol specified Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable. at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at sun.awt.X11GraphicsEnvironment.access$200( at sun.awt.X11GraphicsEnvironment$ at Method) at sun.awt.X11GraphicsEnvironment.<clinit>( at java.lang.Class.forName0(Native Method) at java.lang.Class.forName( at java.awt.GraphicsEnvironment.createGE( at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment( at sun.awt.X11.XToolkit.<clinit>( at java.lang.Class.forName0(Native Method) at java.lang.Class.forName( at java.awt.Toolkit$ at Method) at java.awt.Toolkit.getDefaultToolkit( at javax.swing.UIManager.getSystemLookAndFeelClassName( at org.serviio.ui.view.swing.SwingHelper.initSwing( at org.serviio.console.ServiioConsole.main( Before that I started the /etc/rc.d/serviiod daemon. I also tried by simply running serviio from console, but nothing helps. When I try to run serviio-console running "kdesu serviio-console" (alt-f2 in KDE), the app runs but says that it couldn't connect serviio server..

bjo commented on 2012-08-04 18:17 (UTC)

@benwbooth: Thx, I changed the path.

benwbooth commented on 2012-08-04 02:15 (UTC)

Hi, I think if the systemd service file is being installed by a package, it should get installed to /usr/lib/systemd/system/ instead of /etc/systemd/system/. AFAIK, /etc/systemd/system/ is only for manually created service files. Thanks!

bjo commented on 2012-08-03 07:02 (UTC)


pro7o13x commented on 2012-08-03 02:18 (UTC)

So you know, the systemd-service file doesn't get named correctly, it ends up as "{pkgname}.service", have to go in and manually change it. Not a big deal, but just an extra step some may not notice.

bjo commented on 2012-07-27 09:33 (UTC)

Thanks for your comments, I changed the CPs and added the systemd-service-file.

benwbooth commented on 2012-07-27 02:51 (UTC)

Here is a systemd unit file for serviio, save it as /etc/systemd/system/serviio.service, then do systemctl enable serviio.service as root [Unit] Description=Serviio [Service] ExecStart=/usr/bin/serviio [Install]

benwbooth commented on 2012-07-27 02:50 (UTC)

This worked for me to get serviio and serviio-console running: edit /usr/bin/serviio, change CP to "$SERVIIO_HOME/lib/*:$SERVIIO_HOME/config" edit /usr/bin/serviio-console, change CP to "$SERVIIO_CONSOLE_HOME/lib/*:$SERVIIO_CONSOLE_HOME/config"

benwbooth commented on 2012-07-27 02:28 (UTC)

Hi, Please add $SERVIIO_HOME/lib/serviio-media-browser.jar to the classpath in /usr/bin/serviio. Thanks!

bjo commented on 2012-04-13 15:28 (UTC)

@jusubu: I added your rc.d-script.

commented on 2012-02-19 20:55 (UTC)

A rc.d script for Serviio I made a while back: Save it as /etc/rc.d/serviiod and make it executable #!/bin/bash . /etc/rc.conf . /etc/rc.d/functions NAME="Serviio Media Server" PID=$(pgrep -f serviio.MediaServer -n) case "$1" in start) stat_busy "Starting $NAME" [ -z "$PID" ] && /usr/bin/serviio & if [ $? -gt 0 -o -n "$PID" ]; then stat_fail else add_daemon serviio stat_done fi ;; stop) stat_busy "Stopping $NAME" [ ! -z "$PID" ] && /usr/bin/serviio -stop &> /dev/null if [ $? -gt 0 ]; then stat_fail else rm_daemon serviio stat_done fi ;; restart) $0 stop sleep 5 $0 start ;; *) echo "usage: $0 {start|stop|restart}" ;; esac exit 0

ilpianista commented on 2012-01-10 22:16 (UTC)

Also an rc script would be nice ;)

ilpianista commented on 2012-01-10 22:15 (UTC)

This SHOULDN'T be run as root. You should create a serviio user using the install scriplet.

smaxer commented on 2012-01-06 11:56 (UTC)

yesterday 0.6.1 has been released.

rp9 commented on 2011-09-23 20:44 (UTC)

0.6 is out

sultanoswing commented on 2011-06-15 11:46 (UTC)

Just to clarify my comment above, serviio will run OK with the included ffmpeg, but certain movie files won't be visible (and hence playable) in the library unless you use the older ffmpeg. Another tip: in order to get serviio to run at startup (for all users), you can enter "serviio &" into your /etc/rc.local file.

sultanoswing commented on 2011-06-15 07:23 (UTC)

In order to properly transcode, the current (0.52) version of serviio requires a slightly older version of ffmpeg than the one provided by Arch. Download the ffmpeg package (version 26303) from the servio homepage and compile and install it yourself. I modified the abs-provided PKGBUILD file (making it refer to the local downloaded source) in order to easily achieve this. This will be fixed in serviio 0.60.