Serviio

Petrolhead

Cadet
Joined
Mar 19, 2022
Messages
1
I did a search here but everything Serviio related is old.

Does this mean Serviio is no longer supported.

Reason I ask is I curretnly use and like Serviio on my Windows PC however I want to build a NAS box
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
I believe Serviio was something that had been done by ProtoSD, who hasn't been seen around here in many years. Projects such as that tend to come and go as people and their interests come and go, so it's hard to say. If it is something that be spun up in a FreeBSD jail or a Linux container, it can probably be made to work.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
https://www.freshports.org/net/serviio/ says there's a port... so in a jail:

First, if you don't have one: iocage create -n "serviio" -r 13.0-RELEASE vnet="on" dhcp="on" bpf="yes"

Then connect to it: iocage console serviio

svnlite co https://svn.freebsd.org/ports/head /usr/ports

cd /usr/ports; svnlite update (you would do this again in future together with a pkg upgrade and make install to get updated versions later)

cd /usr/ports/net/serviio/

pkg install `make all-depends-list | cut -d / -f 4,5` (that installs about 390 packages... it takes a while, but much shorter than letting the dependencies compile)

make install

sysrc serviio_enable=YES

service serviio start

You'll have to press "Y" a few times to agree to going ahead during the process.

At the end, it mentions you need to "run the /usr/local/bin/serviio-console (a GUI program) on the same host -- as yourself -- to configure it.".

Instead of that, you should use the web console (see last line below) as it seems they decided not to include that file anywhere.

When I ran it it was also complaining about not being able to find or create a directory for the user settings file, so I'm not sure it is really 100% working.

But indeed after a little googling, it seems I can connect to the web console at http://jail.ip.address:23423/console and get in... best of luck with it.
 
Last edited:

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Reason I ask is I curretnly use and like Serviio on my Windows PC however I want to build a NAS box
Did my writeup above answer the question? Do you have a test setup yet or will you give feedback once you have the NAS running?
 

Rodders

Cadet
Joined
Dec 28, 2022
Messages
4
Did my writeup above answer the question? Do you have a test setup yet or will you give feedback once you have the NAS running?
Hi there - I am just moving over from windows to TrueNAS - have that up and running and the SMB shares working just fine. I would also like to run a media server on the NAS box and came across your post above after some googling. Have tried to get it running in a Release 13.1 IOCAGE; managed to install subversion (not lite) and got the ports bit done but couldn't get the pkg install to work ... am trying again with a Release 13 IOCAGE and will let you know if I get any further ! Thanks for your post as it has certainly got me started !
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
I'm stumped for explaining why subversion lite has been removed from the base jail image, but whatever... there are two methods to update ports (I got that advice from @Patrick M. Hausen in the Photoprism jail thread, so had assumed the way forward he listed would be safe):

pkg install subversion (then y a couple of times)

svn co https://svn.freebsd.org/ports/head /usr/ports

or


pkg install git-tiny (then y a couple of times)

cd /usr

git clone --depth 1 https://git.freebsd.org/ports.git

The git method seemed much faster to me.

After that, it gets much more complicated...

2 pkgs have no compatible option found:

print/py-fonttools3
devel/autoconf-wrapper


After using the git method, I now see that actually it's only 1 package missing - https://pkg.freebsd.org/FreeBSD:13:amd64/latest/All/ffnvcodec-headers-11.1.5.0.pkg

Which you can download and install like this:

fetch https://pkg.freebsd.org/FreeBSD:13:amd64/latest/All/ffnvcodec-headers-11.1.5.0.pkg

pkg install -f ffnvcodec-headers-11.1.5.0.pkg

I'm not the tidiest expert on this stuff, so my workaround to that is:

cd /usr/ports/net/serviio/

make all-depends-list | cut -d / -f 4,5 > depends.txt (EDIT: OMG, now 792 Pkgs!!!)

then ee depends.txt and edit out multimedia/ffnvcodec-headers

cat depends.txt | xargs pkg install -y

make install

sysrc serviio_enable=YES

service serviio start

It seems to not care about missing those 2 pkgs, but maybe that will manifest in some failure somewhere down the road, I don't know. I did find that there were "sort-of equivalents" and did install those, so don't know if it works without them... py39-fonttools autoconf-switch (just thought I'd mention them in case)

No missing pkgs due to the above changes to using git and fetching the missing one.

Then the same advice as before:
At the end, it mentions you need to "run the /usr/local/bin/serviio-console (a GUI program) on the same host -- as yourself -- to configure it.".
Instead of that, you should use the web console (see last line below) as it seems they decided not to include that file anywhere.
When I ran it it was also complaining about not being able to find or create a directory for the user settings file, so I'm not sure it is really 100% working.
But indeed after a little googling, it seems I can connect to the web console at http://jail.ip.address:23423/console and get in... best of luck with it.

i confirm that process works under 13.1
 
Last edited:

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
FreeBSD has entirely moved to git in 2020 (!) for docs and src and March 2021 (!) for ports. I am surprised the SVN checkout still works at all. It might be a completely outdated copy of the tree, though. Stop using SVN, folks. Seriously.
 

Rodders

Cadet
Joined
Dec 28, 2022
Messages
4
FreeBSD has entirely moved to git in 2020 (!) for docs and src and March 2021 (!) for ports. I am surprised the SVN checkout still works at all. It might be a completely outdated copy of the tree, though. Stop using SVN, folks. Seriously.
Doing a little more googling on the topic and saw the same Patrick - deprecated some time ago - they really need to turn it off perhaps eh as son may references still out there ! Have gone with the git method above and working thus far !
 

Rodders

Cadet
Joined
Dec 28, 2022
Messages
4
I'm stumped for explaining why subversion lite has been removed from the base jail image, but whatever... there are two methods to update ports (I got that advice from @Patrick M. Hausen in the Photoprism jail thread, so had assumed the way forward he listed would be safe):

pkg install subversion (then y a couple of times)

svn co https://svn.freebsd.org/ports/head /usr/ports

or

pkg install git (then y a couple of times)

cd /usr

git clone --depth 1 https://git.freebsd.org/ports.git

The git method seemed much faster to me.

After that, it gets much more complicated...

2 pkgs have no compatible option found:

print/py-fonttools3
devel/autoconf-wrapper

I'm not the tidiest expert on this stuff, so my workaround to that is:

cd /usr/ports/net/serviio/

make all-depends-list | cut -d / -f 4,5 > depends.txt

then ee depends.txt and edit out those 2 offending pkgs

cat depends.txt | xargs pkg install -y

make install

sysrc serviio_enable=YES

service serviio start

It seems to not care about missing those 2 pkgs, but maybe that will manifest in some failure somewhere down the road, I don't know. I did find that there were "sort-of equivalents" and did install those, so don't know if it works without them... py39-fonttools autoconf-switch (just thought I'd mention them in case)

Then the same advice as before:
At the end, it mentions you need to "run the /usr/local/bin/serviio-console (a GUI program) on the same host -- as yourself -- to configure it.".
Instead of that, you should use the web console (see last line below) as it seems they decided not to include that file anywhere.
When I ran it it was also complaining about not being able to find or create a directory for the user settings file, so I'm not sure it is really 100% working.
But indeed after a little googling, it seems I can connect to the web console at http://jail.ip.address:23423/console and get in... best of luck with it.

i confirm that process works under 13.1
Thanks again for such swift update - am progressing through the make now - the 2 errors you describe exactly what I ran into so completely consistent - have removed them and working so far ! :)
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
BTW there's a git-tiny package similar to svnlite if you just want to clone a current src/docs/ports tree.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700

Rodders

Cadet
Joined
Dec 28, 2022
Messages
4
Thanks for all of your help @sretalla and @Patrick M. Hausen ! Instructions worked for me. and I have a running serviio instance on my Jail ... just need to connect the mounts now containing the data and devices in the house (e.g. TV) should find it and be able to serve the content up - will let you know how I get on with that bit !

serviio console.png


All up and running now - I had to move my data into a single folder within the storage pool (I only have one pool setup) and could then configure serviio to process my folders (one for Pictures, one for Video and one for Music) and then use the same structure for my SMB shares so can access easily from my Windows devices. Working just fine from what I can see - e.g. TV connects and can see the images / use it via the DNLA service.

I think if you have more than one pool the recommendation is to keep the IOCAGE pool separate to the other pool I have data within - but seems to be working fine with just one mount point on /mnt within the IOCAGE back to the folder where the data is sitting on the same pool.
 
Last edited:
Top