*New 11.3 series Release:
2019-10-05: XigmaNAS 11.3.0.4.6928 - released, 11.2 series are soon unsupported!

*New 12.0 series Release:
2019-10-05: XigmaNAS 12.0.0.4.6928 - released!

*New 11.2 series Release:
2019-09-23: XigmaNAS 11.2.0.4.6881 - released!

We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

[HOWTO] Install UMS (UniversalMediaServer)

Jails with XigmaNAS
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
User avatar
raulfg3
Site Admin
Site Admin
Posts: 4921
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

[HOWTO] Install UMS (UniversalMediaServer)

#1

Post by raulfg3 » 13 Oct 2013 10:18

01.05.2017: UPDATE: please read first recently post of GlenH10: viewtopic.php?p=78266#p78266


This post is based on [HOWTO] Install PS3 Mediaserver because UMS is a fork, you can install PS3 Mediaserver or UMS, without problem.
I write this new [HOWTO] to keep update installation, for reference I use info from:

http://forums.nas4free.org/viewtopic.php?f=55&t=248
http://www.universalmediaserver.com/com ... d=noscript
http://stepbystep.wikkii.com/wiki/PS3Me ... rOnFreeNAS
http://www.homemultimedianetwork.com/Gu ... reeNAS.php
http://www.ps3mediaserver.org/forum/vie ... =3&t=16878
https://bitbucket.org/ntrp/ums_webinterface/wiki/Home


WARNIG:This install is recomended for all N4F install , embeded or full, and install into a jail is the default /prefered method of installing packages in nas4Free to avoid problems.

1 - You need to create a new jail called "ums" using "TheBrig"

Once created, you are ready to install ums:
ums.jpg
First you need to log in your jail:

Code: Select all

jexec ums csh
now you need to install packages:

Code: Select all

pkg_add -v -r openjdk7
#pkg_add -v -r mediainfo
#pkg_add -v -r ffmpeg
#pkg_add -v -r mencoder
#pkg_add -v -r dcraw
pkg_add -v -r flac

Download ums 2.6.5 (latest is 3.0.0.1-a5 but ums-webinterface-1.0.0-a1 do not work, so best to use older version that webinterface works) to /tmp:

Code: Select all

fetch -o /tmp/ums.tgz  http://sourceforge.net/projects/unimediaserver/files/Official%20Releases/Linux/UMS-2.6.5.tgz/download
unpack:

Code: Select all

cd /tmp 
tar xvf ums.tgz
and move to desired finall location:

Code: Select all

mv ums-2.6.5 /usr/local/ums
edir /etc/hosts and add your_IP ums.local

in my case:

Code: Select all

ee /etc/hosts
I add:

Code: Select all

192.168.1.201 ums.local
then create folders inside /mnt to mount your shared files, in my case only need Video folder:

Code: Select all

mkdir /mnt/Video

once done, from thebrig webGUI, edit UMS jail to add to fstab your mount path, in my case:

Code: Select all

/mnt/NAS-A/Video /mnt/NAS-A/Jail/ums/mnt/Video nullfs ro 0 0
you must add

Code: Select all

/bin/sh /usr/local/ums/UMS.sh > null
in User command 0 to be sure that UMS is launched when start your UMS jail[/s]
UMS2.jpg
UMS1.jpg
edit UMS.conf to reflect all your needs

Code: Select all

ee /usr/local/ums/UMS.conf
this is my UMS.conf for comparation pourpouses:
UMS.zip
to install webGUI, you need to install ums_webinterface from: https://bitbucket.org/ntrp/ums_webinterface/wiki/Home

Code: Select all

cd /usr/local/ums/plugins
fetch https://bitbucket.org/ntrp/ums_webinterface/downloads/ums-webinterface-1.0.0-a1.jar
remember to check latest version (can be change in future).

Thanks to Ivan Gueguric Ortolan (ntrp) to this usefull pluggin.

and you are ready to restart your jail from theBrig to start UMS.

if do not work, revise that your shares are mounted in /mnt

or launch UMS by hand:

Code: Select all

jexec ums /bin/sh /usr/local/ums/UMS.sh

and restart UMS, once done you can see webGUI on {ums_Jail_IP}:8083

in my example:

Code: Select all

http:/192.168.1.201:8083
8083.jpg
you can check that ums works connecting to {ums_Jail_IP}:5051

in my example:

Code: Select all

http:/192.168.1.201:5011
5001.jpg

PD: umsdaemon for future use:

Code: Select all

#!/bin/sh
### ====================================================================== ###
##                                                                          ##
##  ums start Script  (I reuse old serviio script)                          ##
##                                                                          ##
### ====================================================================== ###

UMS_HOME=/usr/local/ums
UMS_CLASS_PATH="$UMS_HOME/ums.jar"
UMS_PROFILE=$UMS_HOME/UMS.conf


# Find the best max heap size for JAVA ( From kairoh's serviio-webui
# scripts - https://kairo.bitbucket.org/serviio-webui, who references
# Platter's (http://pcloadletter.co.uk/2012/01.15/serviio-syno-paackages
JAVA_MAX_HEAP=512M
RAM=$(dmesg | grep 'real memory'| uniq | awk '{print $4/1048576}')
if [ $RAM -le 128 ]; then
    JAVA_MAX_HEAP=80M
elif [ $RAM -le 256 ]; then
    JAVA_MAX_HEAP=192M
fi

# Setup ums specific properties - 
JAVA_OPTS="-Dfile.encoding=ISO8859_1 -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Djna.nosys=true -Dffmpeg.location=/usr/local/bin/ffmpeg"
JVM_OPTS="-Xmx${JAVA_MAX_HEAP} -Xms20M -XX:+UseParNewGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20"

# A kludge to get the -D... flags to Java, rather than to ums itself:
for o in "$@"
do
   case $o in
   -D*)
      JAVA_OPTS="$JAVA_OPTS $o"
      ;;
   esac
done

# Execute the JVM in the foreground
cd $UMS_HOME
exec java $JVM_OPTS $JAVA_OPTS -classpath "$UMS_CLASS_PATH" net.pms.PMS "$@"
You do not have the required permissions to view the files attached to this post.
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4921
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install UMS (UniversalMediaServer)

#2

Post by raulfg3 » 13 Oct 2013 11:04

12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

tfast500
NewUser
NewUser
Posts: 12
Joined: 30 Aug 2013 22:25
Status: Offline

Re: [HOWTO] Install UMS (UniversalMediaServer)

#3

Post by tfast500 » 19 Oct 2013 22:33

thanks!

Jabberwocky
Starter
Starter
Posts: 16
Joined: 10 Mar 2014 01:47
Status: Offline

Re: [HOWTO] Install UMS (UniversalMediaServer)

#4

Post by Jabberwocky » 10 Mar 2014 02:04

I try to install this in a new JAIL.
Follow all the HOWTO in order...

I have some issues with MEDIAINFO and ZEN lib's
1)

Code: Select all

INFO  2014-03-09 19:57:08.536 [main] Error loading MediaInfo library: Unable to load library 'mediainfo': Shared object "libmediainfo.so" not found, required by "java"
INFO  2014-03-09 19:57:08.536 [main] Make sure you have libmediainfo and libzen installed 
Check for this libs (in "JAIL"\use\local\lib) but I can't see any reference of these files, so I re install MEDIAINFO (#pkg_add -v -r mediainfo) but I still can't see these files.

2)
Also I have an strange error, The server start with the SH comand in terminal (jexec ums /bin/sh /usr/local/ums/UMS.sh), and I can see DLNA only for a few seconds in my devices (ANDROID PHONES), I can browse and play some files OK, but when I exit from the file and return to the "choose" SERVER MENU I can't see any more UMS in server list.
Check the status in terminal, the jail aparently is runing, also check with WebUI and its OK runing. I try with many APP's in the devices and always happend the same.

I try also other version of UMS (include the last one 3.4.2) but with no lucky (yes I know WebUI only works with 2.6.5).

Any body have a tips to solve this please??

Tnxs in advance.

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4921
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install UMS (UniversalMediaServer)

#5

Post by raulfg3 » 10 Mar 2014 07:28

Jabberwocky wrote:Also I have an strange error, The server start with the SH comand in terminal (jexec ums /bin/sh /usr/local/ums/UMS.sh), and I can see DLNA only for a few seconds in my devices (ANDROID PHONES), I can browse and play some files OK, but when I exit from the file and return to the "choose" SERVER MENU I can't see any more UMS in server list.
Check the status in terminal, the jail aparently is runing, also check with WebUI and its OK runing. I try with many APP's in the devices and always happend the same.

I try also other version of UMS (include the last one 3.4.2) but with no lucky (yes I know WebUI only works with 2.6.5).
same problem here, I do not use any more because this start problem, sorry do not know how to solve
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

User avatar
MikeMac
Forum Moderator
Forum Moderator
Posts: 498
Joined: 07 Oct 2012 23:12
Location: Moscow, Russia
Contact:
Status: Offline

Re: [HOWTO] Install UMS (UniversalMediaServer)

#6

Post by MikeMac » 10 Mar 2014 20:45

raulfg3 wrote:sorry do not know how to solve
VIMAGE?.. The same for any DLNA in Jail installation...

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4921
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install UMS (UniversalMediaServer)

#7

Post by raulfg3 » 10 Mar 2014 21:18

not only VIMAGE, also fail on start ( i start it from a shell but if i close this shell , daemon dies, and I do not know how to detach ( & do not work)).

by other hand UMS is the only UPnP that do not need cron because it read folders when accesed not store files on a database, and do recode, so really is a good UPnP.
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

Jabberwocky
Starter
Starter
Posts: 16
Joined: 10 Mar 2014 01:47
Status: Offline

Re: [HOWTO] Install UMS (UniversalMediaServer)

#8

Post by Jabberwocky » 11 Mar 2014 01:09

I was the hope that you guys have some answers ;-)
Well I'll try to find answers in UMS forums, I think also that UMS is a good chooise to Upnp.

Tnxs again.
P.D. sorry for my bad english..

fhenning09
NewUser
NewUser
Posts: 11
Joined: 24 Apr 2014 05:38
Status: Offline

Re: [HOWTO] Install UMS (UniversalMediaServer)

#9

Post by fhenning09 » 19 May 2014 23:47

How Do I get UMS to display subs on Samsung Smart Tv's? I understand the question is unique just wondering if anyone has had similar prob and found their own solution?

therevenger30
Starter
Starter
Posts: 41
Joined: 26 Mar 2015 14:49
Status: Offline

Re: [HOWTO] Install UMS (UniversalMediaServer)

#10

Post by therevenger30 » 28 Apr 2015 21:58

Hello,

N4F 9.3.0.2 - Nayla (revision 1391)
TheBrig
UMS-5.1.0-Java7

UMS.sh won't launch at jail's boot with
this

Code: Select all

/bin/sh /usr/local/ums/UMS.sh
and not with

Code: Select all

/bin/sh /usr/local/ums/UMS.sh &
booth are in User command 0.

I have done a

Code: Select all

chmod 755 /usr/local/ums/ums.jar
because after stock install ums.jar was not executable.
But that's dont' change nothings.
If I run manually a

Code: Select all

jexec ums /bin/sh /usr/local/ums/UMS.sh 
into the jail after su - loggin onto
of course ums start, but into ROOT mode, so not using my ums.conf.

Have you an idea at this time to make ums booting automatically ?

Thank a lot.

GlenH10
NewUser
NewUser
Posts: 5
Joined: 30 May 2015 18:23
Status: Offline

Re: [HOWTO] Install UMS (UniversalMediaServer)

#11

Post by GlenH10 » 04 Jul 2015 21:45

In FreeBSD 10.1 (with the Alcatraz fork of TheBrig), pkg_add is no longer supported and you have to use the new package manager to install the packages. pkgng allows you to install packages directly into a jail from the system command line, so you don't have to 'jexec ums csh' first.

The commands to install the required packages are:

pkg -j ums install openjdk (this is the OpenJDK v7 package.)
pkg -j ums install mediainfo
pkg -j ums install ffmpeg
pkg -j ums install mencoder
pkg -j ums install dcraw
pkg -j ums install flac

I installed UMS 5.1.4-Java7 and so far, it's working well.

therevenger30
Starter
Starter
Posts: 41
Joined: 26 Mar 2015 14:49
Status: Offline

Re: [HOWTO] Install UMS (UniversalMediaServer)

#12

Post by therevenger30 » 19 Jul 2015 19:11

I have upgrade to 10.1.0.2 - Prescience (revision 1731) and also to Alcatraz.
I will try again to install UMS.
Thanks a lot.

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4921
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install UMS (UniversalMediaServer)

#13

Post by raulfg3 » 19 Jul 2015 20:05

please post how to start if works for you, I have no problem to update this HOWTo if you document it.
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

User avatar
alexey123
Moderator
Moderator
Posts: 1563
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: [HOWTO] Install UMS (UniversalMediaServer)

#14

Post by alexey123 » 20 Jul 2015 08:35

Hi GlenH10
Please type output command executed under your main Nas4free server

Code: Select all

sockstat | grep :1900
Home11.0.0.4 - Sayyadina (revision 4249)/ x64-embedded on SAPPHIRE Pure Mini E350 / 8G RAM / UPS Ippon Back Power Pro 600
Lab 10.2.0.2 - Prescience (revision 2545) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
New XigmanasXigmaNAS version 11.2.0.4.6026 on x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM
TEST1 11.0.0.4 - Pilingitam (revision 4333) bpi-embedded on Allwinner a20 / 1015MiB RAM

therevenger30
Starter
Starter
Posts: 41
Joined: 26 Mar 2015 14:49
Status: Offline

Re: [HOWTO] Install UMS (UniversalMediaServer)

#15

Post by therevenger30 » 21 Jul 2015 08:38

amha, I have a little problem :mrgreen:

I can't log into my jail !

I have 3 jails, owncloud, ums and medias.

Owncloud and medias are old one's, build with the old The Brig.

ums is build with alcatraz.

I have this pb :

Code: Select all

[root@nas4free /mnt]# jls
   JID  IP Address      Hostname                      Path
     1  192.168.1.111   owncloud.local                /mnt/zpool/jails/owncloud
So jail 2 and 3, ums and media don't appear.
And of course :

Code: Select all

[root@nas4free /mnt]# jexec ums csh
jexec: jail "ums" not found
My jails are here :

Code: Select all

<thebrig>
		<rootfolder>/mnt/zpool/jails/</rootfolder>
		<template>/mnt/zpool/jails/template/</template>
		<basejail>
			<folder>/mnt/zpool/jails/basejail/</folder>
		</basejail>
		<update>
			<cmd>bin/host</cmd>
			<cmd>bin/comm</cmd>
			<cmd>bin/join</cmd>
			<cmd>bin/lam</cmd>
			<cmd>bin/look</cmd>
			<cmd>bin/bspatch</cmd>
			<cmd>bin/openssl</cmd>
			<cmd>libexec/make_index</cmd>
			<cmd>libexec/phttpget</cmd>
		</update>
		<updatecron/>
		<template_ver>9.3-RELEASE-p17</template_ver>
		<gl_statfs>1</gl_statfs>
		<content>
			<uuid>eb2edb44-456f-446b-84b2-7438bcda4b7b</uuid>
			<enable/>
			<jailno>1</jailno>
			<jailname>owncloud</jailname>
			<jail_type>full</jail_type>
			<param>allow.mount.devfs</param>
			<param>allow.mount</param>
			<jailpath>/mnt/zpool/jails/owncloud/</jailpath>
			<allowedip>bge1|192.168.1.111/24</allowedip>
			<epair_a_ip>/</epair_a_ip>
			<epair_a_mask>/</epair_a_mask>
			<epair_b_ip>/</epair_b_ip>
			<epair_b_mask>/</epair_b_mask>
			<if>bge0</if>
			<rule/>
			<jail_mount/>
			<statfs>1</statfs>
			<devfs_enable/>
			<cmd>afterstart_for_jail|0|/bin/sh /usr/local/etc/rc.d/lighttpd onestart</cmd>
			<exec_start>/bin/sh /etc/rc</exec_start>
			<exec_stop>/bin/sh /etc/rc.shutdown</exec_stop>
			<desc/>
			<base_ver>10.1-RELEASE</base_ver>
			<fib/>
		</content>
		<content>
			<uuid>5b953f94-42fd-4486-a889-9aa8144f65f2</uuid>
			<enable/>
			<jailno>2</jailno>
			<jailname>ums</jailname>
			<jail_type>full</jail_type>
			<param>allow.mount</param>
			<param>allow.mount.devfs</param>
			<jailpath>/mnt/zpool/jails/ums/</jailpath>
			<allowedip>bge1|192.168.1.111/24</allowedip>
			<epair_a_ip>192.168.1.251</epair_a_ip>
			<epair_a_mask>24</epair_a_mask>
			<epair_b_ip>192.168.1.252</epair_b_ip>
			<epair_b_mask>24</epair_b_mask>
			<if>bge0</if>
			<rule/>
			<jail_mount/>
			<statfs>2</statfs>
			<auxparam>/mnt/zpool/multimedia /mnt/zpool/jails/medias/mnt/multimedia nullfs ro 0 0</auxparam>
			<cmd/>
			<exec_start>/bin/sh /etc/rc</exec_start>
			<exec_stop>/bin/sh /etc/rc.shutdown</exec_stop>
			<desc/>
			<base_ver>10.1-RELEASE</base_ver>
			<fib/>
		</content>
		<content>
			<uuid>0e0ad3db-7eb5-4ed2-aa56-9f3ab7fbc0da</uuid>
			<enable/>
			<jailno>3</jailno>
			<jailname>medias</jailname>
			<jail_type>full</jail_type>
			<jailpath>/mnt/zpool/jails/medias/</jailpath>
			<devfsrules/>
			<jail_mount/>
			<proc_enable/>
			<auxparam>fdesc	/dev/fd		fdescfs		rw	0	0</auxparam>
			<auxparam>proc	/proc		procfs		rw	0	0</auxparam>
			<auxparam>/mnt/zpool/multimedia /mnt/zpool/jails/medias/mnt/multimedia nullfs ro 0 0</auxparam>
			<exec_start>/bin/sh /etc/rc</exec_start>
			<exec_stop>/bin/sh /etc/rc.shutdown</exec_stop>
			<desc/>
			<base_ver>9.3-RELEASE-p19</base_ver>
			<lib_ver>9.3-RELEASE-p19</lib_ver>
			<src_ver>Not Installed</src_ver>
			<doc_ver>Not Installed</doc_ver>
			<attach_blocking/>
			<force_blocking/>
			<allowedip>bge0|192.168.1.113/24</allowedip>
			<statfs>1</statfs>
		</content>
		<version>0.9</version>
		<thebrig_enable/>
	</thebrig>
So, what's the matter ?

Thank a lot.

therevenger30
Starter
Starter
Posts: 41
Joined: 26 Mar 2015 14:49
Status: Offline

Re: [HOWTO] Install UMS (UniversalMediaServer)

#16

Post by therevenger30 » 15 Aug 2015 22:03

Hi,

Now all works fine to install UMS.
But I don't understand were to write the option

Code: Select all

-I -U root -n UMS
with the new Alcatraz, because the entry filed for OPTION no longer exists.

I have put

Code: Select all

/bin/sh /usr/local/ums/UMS.sh &
onto JAIL COMMAND afterstart_for_jail.

At this time, with

Code: Select all

top
I can see java is running, but not ums.

Thanks you.

therevenger30
Starter
Starter
Posts: 41
Joined: 26 Mar 2015 14:49
Status: Offline

Re: [HOWTO] Install UMS (UniversalMediaServer)

#17

Post by therevenger30 » 07 Sep 2015 21:12

I have understand !

I have launch ums.jar in raw method :

Code: Select all

java -d64 java -Xmx1024M -Xss2048k -Dfile.encoding=UTF-8 -Djava.net.preferIPv4Stack=true -Djna.nosys=true -jar /usr/local/ums/ums.jar nogui --log-limit=100
return : java error loading library, etc. balblabla.

UMS > dustbin ! I hate this program.

I have buy an android MXQ box with Openelc and KODI, works fine.

[finally resolved to me ]

Northwinds
Starter
Starter
Posts: 22
Joined: 03 Sep 2014 01:51
Status: Offline

Re: [HOWTO] Install UMS (UniversalMediaServer)

#18

Post by Northwinds » 29 Dec 2015 04:44

Hi there
I've been using this "festive" period to try installing this but am having a few issues. Is anyone still watching and replying to this thread?
Thanks.
11.0.0.4.4067
x64-embedded on Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz
Supermicro X7SB4/E with 2x Single-port Gigabit PCI-Express Ethernet Controllers
8GB RAM
6 x Seagate ST4000VN000 4TB NAS HDD

Northwinds
Starter
Starter
Posts: 22
Joined: 03 Sep 2014 01:51
Status: Offline

Re: [HOWTO] Install UMS (UniversalMediaServer)

#19

Post by Northwinds » 29 Dec 2015 14:04

Ok, now after starting the jail manually via the brig and then using
jexec ums /bin/sh /usr/local/ums/UMS.sh
in terminal I finally have access to the page
http://192.168.1.251:5001/console/scan
and it's showing on my samsung bluray -
just no content and I can't use the webgui?
11.0.0.4.4067
x64-embedded on Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz
Supermicro X7SB4/E with 2x Single-port Gigabit PCI-Express Ethernet Controllers
8GB RAM
6 x Seagate ST4000VN000 4TB NAS HDD

Northwinds
Starter
Starter
Posts: 22
Joined: 03 Sep 2014 01:51
Status: Offline

Re: [HOWTO] Install UMS (UniversalMediaServer)

#20

Post by Northwinds » 29 Dec 2015 18:04

Finally went back to the original instructions and modified them with GlenH10's suggestions for 10.1 up:
The commands to install the required packages are:

pkg -j ums install openjdk (this is the OpenJDK v7 package.)
pkg -j ums install mediainfo
pkg -j ums install ffmpeg
pkg -j ums install mencoder
pkg -j ums install dcraw
pkg -j ums install flac
but I'm only using the original UMS 2.65 linked to in the original instructions and now have it working - sort of!

The main issue is starting the server.
I've had to start the jail in thebrig gui (I know this can probably be automated) but then I have to use
jexec ums /bin/sh /usr/local/ums/UMS.sh
in a terminal window to get UMS started and recognised by my samsung bluray and the browser gui.

Did anyone figure a way around this?

Also, GlenH10 mentioned
I installed UMS 5.1.4-Java7 and so far, it's working well.


Am I safe to upgrade and if so how? now that I have the basics working?

Also can I upgrade the GUI too?

Many thanks!
11.0.0.4.4067
x64-embedded on Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz
Supermicro X7SB4/E with 2x Single-port Gigabit PCI-Express Ethernet Controllers
8GB RAM
6 x Seagate ST4000VN000 4TB NAS HDD

thermion
NewUser
NewUser
Posts: 8
Joined: 18 Jan 2013 11:28
Status: Offline

Re: [HOWTO] Install UMS (UniversalMediaServer)

#21

Post by thermion » 14 Jan 2016 16:22

@Northwinds:
The main issue is starting the server.
I've had to start the jail in thebrig gui (I know this can probably be automated) but then I have to use
jexec ums /bin/sh /usr/local/ums/UMS.sh
in a terminal window to get UMS started and recognised by my samsung bluray and the browser gui.
Did anyone figure a way around this?
Yes, I had the same problem, and wasted a lot a time trying to find a clean way to start UMS. I overlooked the obvious - make sure the web interface loaded into /ums/plugins is executable, too! I am now using /bin/sh /usr/local/ums/UMS.sh & as an afterstart_for_jail command. UMS will run directly after boot, if required; and I seem to be able to stop and start from The Brig without any apparent problem.

At the moment, I am only using UMS to serve photos to TV (Panasonic TX- P42VT30B), which is primarily what I wanted it for. I haven't tried streaming video, or anything else. I couldn't get on with early versions of Serviio; and personally I think UMS renders photos better than Plex did on my system. Detail and colour are as good as they can be, and all images are the right way up. Also, it handles Canon RAW images. Although, for obvious reasons, they take longer to appear.

I am using UMS-5.5 and web interface 2.0.0-a3, with Java 8. No installation, or functional problems; but as noted, I am only using UMS in a very limited way. The latest web interface seems a lot faster and more transparent in use than the earlier version I tried
12.0.0.4 - Reticulus (revision 6766)
x64-embedded on HPN40L (16GB) - 3 x WDC WD20EFRX (2TB) - RAIDZ-1=3TB

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4921
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install UMS (UniversalMediaServer)

#22

Post by raulfg3 » 14 Jan 2016 17:53

thermion wrote:Yes, I had the same problem, and wasted a lot a time trying to find a clean way to start UMS
same here sorry.

when start from shell works if I close this shell UMS stop, so sorry no help for my side.

PD: I actually use minidlna and only test UMS to know it.
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

thermion
NewUser
NewUser
Posts: 8
Joined: 18 Jan 2013 11:28
Status: Offline

Re: [HOWTO] Install UMS (UniversalMediaServer)

#23

Post by thermion » 14 Jan 2016 18:08

Thanks for feedback Raul, and I am sorry to learn it doesn't work for you. I am at a loss to explain - unless one of the many other wild things I did to UMS is still lurking in there. As mentioned, I really like the quality of the rendered image via UMS.
12.0.0.4 - Reticulus (revision 6766)
x64-embedded on HPN40L (16GB) - 3 x WDC WD20EFRX (2TB) - RAIDZ-1=3TB

GlenH10
NewUser
NewUser
Posts: 5
Joined: 30 May 2015 18:23
Status: Offline

Re: [HOWTO] Install UMS (UniversalMediaServer)

#24

Post by GlenH10 » 01 Jun 2017 15:56

I recently upgraded my NAS to NAS4Free 11.0.0.4 and rebuilt my configuration from scratch, so after fiddling with miniDLNA for a while, I decided to install the latest Universal Media Server. I did this a couple of years ago, but people have had questions (which I missed because I forgot to enable email notifications for forum PMs), so here is a walkthrough of how I installed it to update Raul's HOWTO for the latest version of UMS.

Installing Universal Media Server on N4F 11.x

0. If you have already installed TheBrig, skip to step 3.

1. Install OneButtonInstaller

2. Using OneButtonInstaller, install and configure TheBrig
a. Click 'Save' on the Rudimentary Configuration page

b. Go to Extensions->TheBrig->Maintenance->Tarball Management and download the base and lib32 tarballs for the FreeBSD release you want to use.

3. Create a new jail. Call it 'ums'.
a. Give the jail a unique addresses on your LAN.

ex.: 192.168.1.251/24

4. Start your jail and ssh into your server.

5. Install the following (as su):

Code: Select all

pkg -j ums install openjdk (this is the OpenJDK v7 package.)
pkg -j ums install ffmpeg
pkg -j ums install mplayer
pkg -j ums install mediainfo
pkg -j ums install mencoder
pkg -j ums install dcraw
pkg -j ums install flac
(Some of these packages may not be necessary; it doesn't hurt to install them all. ffmpeg is required to create thumbnails for your movies for renderers that support this feature. mplayer is called at startup; installing it resolves an error message in the log file.)

6. Log into your jail and install the latest UMS.

Code: Select all

jexec ums csh

fetch -o /tmp/ums.tgz  http://sourceforge.net/projects/unimediaserver/files/Official%20Releases/Linux/UMS-6.6.0-Java7.tgz/download

cd /tmp
tar xvf ums.tgz
mv ums-6.6.0 /usr/local/ums

7. Create a folder in /mnt for your media

Code: Select all

mkdir /mnt/Video

8. Stop your jail, add your media directories to the jail's fstab settings, then restart the jail.

ex.: /mnt/pool_1/files/movies /mnt/pool_1/Extensions/thebrig/ums/mnt/Video nullfs ro 0 0

9. Note that current versions of UMS store their settings at ~/.config/UMS/. UMS runs as root in the jail, so log back into your jail and move the default config files to /root/.config/UMS/.

Code: Select all

mkdir /root/.config/UMS/
mv /usr/local/ums/UMS.conf /root/.config/UMS
mv /usr/local/ums/WEB.conf /root/.config/UMS

10. Edit your UMS.conf file as necessary for your network. UMS will run with the default configuration file.

11. Recent Linux builds of UMS are missing the ffmpeg.webfilters file. Paste the following into your your favorite editor and save it as /root/.config/ffmpeg.webfilters.

Code: Select all

# These are custom rules to fine-tune the behaviour of
# FFmpeg Web Video transcoding with respect to specific urls.  


########################## EXCLUDE ##############################
# urls to be skipped (i.e. passed along to later engines)
#    format:   <regex to match>
#################################################################

EXCLUDE

# unresolved youtube urls
#gdata\.youtube\.com|youtube_gdata

# other unresolved urls
feeds\.feedburner\.com
www\.gameswelt\.de
eurogamer\.net
gametrailers\.com
giantbomb\.com
icanhascheezburger\.com
pcgames\.de
winfuture\.de


########################## OPTIONS ##############################
# urls requiring specific FFmpeg options.
#    format:   <regex to match> | <options to add>
#################################################################

OPTIONS

trailers\.apple\.com | -user-agent QuickTime/7.6.2
# uncomment the rule below if you experience audio problems with endgadget:
#www\.viddler\.com | -target ntsc-dvd


########################## REPLACE ##############################
# urls to be modified (using capture groups).
#    format:   <regex to match> | <replacement regex>
#    example: .*somewhere\.com.* | $0\?somevar=true
#################################################################

REPLACE

# no rules yet

12. Recent Linux builds of UMS include binaries for ffmpeg and tsMuxeR which aren't compatible with FreeBSD. For ffmpeg, delete the versions that UMS installed and replace them with links to the ffmpeg instance that you just installed.

Code: Select all

rm /usr/local/ums/linux/ffmpeg
rm /usr/local/ums/linux/ffmpeg64
ln /usr/local/bin/ffmpeg /usr/local/ums/linux/ffmpeg
ln /usr/local/bin/ffmpeg /usr/local/ums/linux/ffmpeg64
Linking both names to your local copy of ffmpeg ensures that UMS calls one that works on your system; if UMS finds it is running on a 64 bit system (all v11 installs), it's going to call 'ffmpeg64'.

I don't have a solution for tsMuxeR at this time; it's needed for some transcoding tasks, but most stuff will play without it on my TV and BluRay player.

13. Test your installation

Code: Select all

/usr/local/ums/UMS.sh

14. Once you are certain that UMS is running correctly, edit your jail configuration to run UMS at startup. Click 'More' to see the Jail Commands editor, add the following as Type 'afterstart_for_jail':

Code: Select all

/bin/sh /usr/local/ums/UMS.sh & > null    

15. UMS has a web interface at {ums_jail_IP}:9001 and a web console at {ums_jail_IP}:5001.

mniedworok
NewUser
NewUser
Posts: 1
Joined: 23 Nov 2014 11:32
Status: Offline

Re: [HOWTO] Install UMS (UniversalMediaServer)

#25

Post by mniedworok » 20 Dec 2018 09:42

Error loading libzen: Native library (com/sun/jna/freebsd-x86-64/libjnidispatch.so) not found in resource path ([file:/usr/local/ums/update.jar, file:/usr/local/ums/ums.jar])

What can i do to solve this ERROR?

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4921
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install UMS (UniversalMediaServer)

#26

Post by raulfg3 » 20 Dec 2018 11:46

no idea, i use plex for last 2 years, so no experience with new version of UMS.

If still have interest revise BSD Forums about UMS : https://www.universalmediaserver.com/fo ... =8&t=13077

https://www.universalmediaserver.com/fo ... 10&t=13001
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

Post Reply

Return to “Jails”