[HowTo] Serviio 1.3.1 for Zyxel NSA325

Marvell Kirkwood based
Post Reply
Felino41
Posts: 3
Joined: Tue Mar 15, 2016 9:24 pm

Re: [HowTo] Serviio 1.3.1 for Zyxel NSA325

Post by Felino41 » Wed Mar 16, 2016 5:06 pm

I already installed Serviio and everything is working fine it´s just the automatic startup script which doesn`t seem to be working!
Is there anything in the post you linked me to that I´m not seeing?

By now I´ve actually come one step closer by using the following script for starting serviio manually:

Code: Select all

#!/bin/sh

case "$1" in

stop)
      echo "Stop Serviio..."
      "/ffp/opt/serviio/bin/serviio.sh -stop" > /dev/null 2>&1 &
      ;;

start)
      # start Serviio in background mode
      "/ffp/opt/serviio/bin/serviio.sh" > /dev/null 2>&1 &
      echo "Start Serviio..."
      ;;

restart)
      $0 stop
      sleep 1
      $0 start
      ;;

*)
      echo "usage: $0 { start | stop | restart}" >&2
      exit 1
      ;;

esac

I put the script into ffp/start/ but once I reboot the server still doesnt autostart!
It works for starting serviio up if i type in the command manually

Code: Select all

/ffp/start/serviiosh -start
but not on startup. Do you know how to make it work with the new script? There should probably be en EXEC command at the beginning am I right?
Unfortunately I donßt really know alot about linux :/

barmalej2
Posts: 2382
Joined: Sun Apr 29, 2012 5:24 pm

Re: [HowTo] Serviio 1.3.1 for Zyxel NSA325

Post by barmalej2 » Wed Mar 16, 2016 5:29 pm

Felino41 wrote:Is there anything in the post you linked me to that I´m not seeing?
Yes :arrow:
slacker -UAa br2:serviio/serviio
Install latest serviio 1.6 release package, which contains autostart script.

Felino41
Posts: 3
Joined: Tue Mar 15, 2016 9:24 pm

Re: [HowTo] Serviio 1.3.1 for Zyxel NSA325

Post by Felino41 » Thu Mar 17, 2016 8:18 am

Initially I wanted to keep the 1.5.1 version since I didn´t like the new web console in 1.6, but I didn´t get it to work with the startup script after all!
Now I´ve just used the package you made available and everything is working great.
Thank you for your help :)

barmalej2
Posts: 2382
Joined: Sun Apr 29, 2012 5:24 pm

Re: [HowTo] Serviio 1.3.1 for Zyxel NSA325

Post by barmalej2 » Thu Mar 17, 2016 10:23 am

Well, I'm not thrilled with new serviio web console too. Windows serviio client was much faster and better.

tarnak
Posts: 25
Joined: Sat Jan 26, 2013 10:08 am

Re: [HowTo] Serviio 1.3.1 for Zyxel NSA325

Post by tarnak » Sat Feb 18, 2017 10:40 am

Hi Guys ,

I've a problem with setting up java $PATH. I do all as supposed by few quides on nas-central or here:
http://forum.serviio.org/viewtopic.php?f=14&t=8933
http://forum.serviio.org/viewtopic.php?f=14&t=18558

I do all actions, serviio installed (java 7uxx or 8uxx installed) and I've installed java to ffp/opt/java (here are all the bin,lib dirs) but don't have path pointing to java, so command:

Code: Select all

java -version
command not found
I start messing with $PATH and finished with:

Code: Select all

export $PATH
sh: export: `/ffp/sbin:/ffp/bin:/sbin:/bin:/usr/sbin:/usr/bin': not a valid identifier
and don't know what to do :(

Here are definitions on files, which I've changed but nothing happened:

Code: Select all

----------------------
in file ffp/etc/fun_plug.init (after my modification):
PATH=/ffp/sbin:/ffp/bin:/usr/sbin:/sbin:/usr/bin:/bin:/ffp/opt/java:/ffp/opt/java/bin


----------------------
in file ffp/etc/profile (after my modification):
# Set the default system $PATH:
PATH=/ffp/bin:/usr/bin:/bin:/ffp/opt/java/bin
if [ $(/ffp/bin/id -u) -eq 0 ]; then
	PATH=/ffp/sbin:/usr/sbin:/sbin:$PATH
fi


----------------------
in file ffp/etc/profile.d/java.sh
export PATH=/ffp/opt/java/bin:$PATH


----------------------
in file /etc/profile 
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/zyxel/sbin:/usr/local/zy-pkgs/bin:/zyxel/htp
export PATH
----------------------
(nsa310s + ffp 0.7)

barmalej2
Posts: 2382
Joined: Sun Apr 29, 2012 5:24 pm

Re: [HowTo] Serviio 1.3.1 for Zyxel NSA325

Post by barmalej2 » Mon Feb 20, 2017 7:14 am

Revert all changes you have done back and paste output of:

Code: Select all

ls -laR /ffp/opt/java

tarnak
Posts: 25
Joined: Sat Jan 26, 2013 10:08 am

Re: [HowTo] Serviio 1.3.1 for Zyxel NSA325

Post by tarnak » Tue Feb 21, 2017 1:13 pm

barmalej2 wrote:Revert all changes you have done back and paste output of:

Code: Select all

ls -laR /ffp/opt/java
Hi,
Sorry for delay, here is txt output: https://dropfile.to/DqKo1eh

barmalej2
Posts: 2382
Joined: Sun Apr 29, 2012 5:24 pm

Re: [HowTo] Serviio 1.3.1 for Zyxel NSA325

Post by barmalej2 » Tue Feb 21, 2017 1:39 pm

These are steps to install/upgrade serviio on ffp0.7-armv5 (root priviledges is requirement).

# Remove old java installation directory:

Code: Select all

rm -rf /ffp/opt/java
# Create funpkg cache dir for br2 repo if it not exists and install new slapt-get package manager:

Code: Select all

[ -d /ffp/funpkg/cache/br2 ] || mkdir -p /ffp/funpkg/cache/br2
cd /ffp/funpkg/cache/br2
/ffp/bin/wget -nv http://downloads.zyxel.nas-central.org/Users/barmalej2/ffp/0.7/arm/packages/slapt-get-0.10.2t-arm-2.txz
funpkg -i slapt-get-0.10.2t-arm-2.txz
# Update slapt-get lists and upgrade core packages:

Code: Select all

slapt-get -u
slapt-get --upgrade
# Restart sshd daemon service after upgrading:

Code: Select all

sh /ffp/start/sshd.sh restart
# Install serviio package with all required dependencies:

Code: Select all

slapt-get -i serviio
# Use Oracle java install helper script to install java runtime enviroment. This script downloads (download feature currently not working due to unavailable public java armv5 download link), configures and installs java automatically. It can upgrade as well. Follow install instructions on screen after running the following command:

Code: Select all

oraclejava install /path/to/dir/ejdk-8u*-linux-arm-sflt.tar.gz
# Test java

Code: Select all

java -version
# Start serviio daemon service:

Code: Select all

sh /ffp/start/serviio.sh start
# Enable autostart (if everything works as expected):

Code: Select all

chmod 755 /ffp/start/serviio.sh
If you are getting unexpected error(s) on any step, then stop and report here.

tarnak
Posts: 25
Joined: Sat Jan 26, 2013 10:08 am

Re: [HowTo] Serviio 1.3.1 for Zyxel NSA325

Post by tarnak » Wed Feb 22, 2017 8:24 pm

barmalej2 wrote:These are steps to install/upgrade serviio on ffp0.7-armv5 (root priviledges is requirement).
# Test java

Code: Select all

java -version
# Start serviio daemon service:

Code: Select all

sh /ffp/start/serviio.sh start
# Enable autostart (if everything works as expected):

Code: Select all

chmod 755 /ffp/start/serviio.sh
If you are getting unexpected error(s) on any step, then stop and report here.
Thank you very much. All went perfect.
I was looking serviio 1.1 for windows it's not visible on homepage. After some digging on internet, I've found link:
http://download.serviio.org/releases/se ... -setup.exe

Btw.
Now I've serviio 1.1. I should update to 1.3 or 1.8 in normal way (like described here on forum)?

barmalej2
Posts: 2382
Joined: Sun Apr 29, 2012 5:24 pm

Re: [HowTo] Serviio 1.3.1 for Zyxel NSA325

Post by barmalej2 » Wed Feb 22, 2017 9:32 pm

I don't get your point. Why you need old version of serviio on windows, while you have just installed 1.8 on zyxel?
Windows client is not used to control serviio service on NAS anymore since 1.6 release. Web console serves for that purpose:
http://serviio.org/component/content/ar ... ng-started

tarnak
Posts: 25
Joined: Sat Jan 26, 2013 10:08 am

Re: [HowTo] Serviio 1.3.1 for Zyxel NSA325

Post by tarnak » Fri Feb 24, 2017 8:41 pm

barmalej2 wrote:I don't get your point. Why you need old version of serviio on windows, while you have just installed 1.8 on zyxel?
Windows client is not used to control serviio service on NAS anymore since 1.6 release. Web console serves for that purpose:
http://serviio.org/component/content/ar ... ng-started
I did:

Code: Select all

slapt-get -i serviio
Now I'm not sure if I had serviio installed before or something but I finished with serviio 1.1. I'll check for sure..

UPDATE.
I had serviio 1.1 installed after deleting and slapt install got 1.8. Thanks again :)

barmalej2
Posts: 2382
Joined: Sun Apr 29, 2012 5:24 pm

Re: [HowTo] Serviio 1.3.1 for Zyxel NSA325

Post by barmalej2 » Fri Feb 24, 2017 9:22 pm

Show me output of:

Code: Select all

slapt-get --show serviio
and

Code: Select all

md5sum /ffp/start/serviio.sh

tarnak
Posts: 25
Joined: Sat Jan 26, 2013 10:08 am

Re: [HowTo] Serviio 1.3.1 for Zyxel NSA325

Post by tarnak » Fri Feb 24, 2017 9:52 pm

barmalej2 wrote:Show me output of:

Code: Select all

slapt-get --show serviio
and

Code: Select all

md5sum /ffp/start/serviio.sh

License:custom Serviio-view at http://serviio.org/licence
Version:1.8
Homepage:http://serviio.org/
Package Installed: yes

CHECKSUM:
f311cd06695fee22ebd6440b3d926171 /ffp/start/serviio.sh

barmalej2
Posts: 2382
Joined: Sun Apr 29, 2012 5:24 pm

Re: [HowTo] Serviio 1.3.1 for Zyxel NSA325

Post by barmalej2 » Fri Feb 24, 2017 10:11 pm

Interesting. For comparison mine output:

Code: Select all

slapt-get --show serviio
Package Name: serviio
Package Mirror: http://downloads.zyxel.nas-central.org/ ... /packages/
Package Priority: Preferred
Package Location: ./serviio
Package Version: 1.8-arm-1
Package Size: 23709 K
Package Installed Size: 27130 K
Package Required: dcraw,ffmpeg,lame,libass,rtmpdump,x264,oracle-java8-installer
Package Conflicts:
Package Suggests:
Package MD5 Sum: 9f2323dccab79318fc4c3798caab29c3
Package Description:
Serviio is a free media server. It allows you to stream your media files (music, video or images)
to renderer devices (e.g. a TV set, Bluray player, games console or mobile phone) on your connected
home network.
There is also a paid for Pro edition which further enhances the possibilities of sharing content
in your connected household.
Serviio works with many devices from your connected home (TV, Playstation 3, XBox 360, smart phones,
tablets, etc.). It supports profiles for particular devices so that it can be tuned to maximise the
device's potential and/or minimize lack of media format playback support (via transcoding).
Serviio is based on Java technology and therefore runs on most platforms, including Windows, Mac and
Linux (incl. embedded systems, e.g. NAS).
License:custom Serviio-view at http://serviio.org/licence
Version:1.8
Homepage:http://serviio.org/
Package Installed: yes
Md5sum of serviio start script is OK.
Do the date in /ffp/opt/serviio/log/serviio.log is correct?

tarnak
Posts: 25
Joined: Sat Jan 26, 2013 10:08 am

Re: [HowTo] Serviio 1.3.1 for Zyxel NSA325

Post by tarnak » Fri Feb 24, 2017 11:01 pm

barmalej2 wrote:Interesting. For comparison mine output:

Code: Select all

slapt-get --show serviio
Package Name: serviio
Package Mirror: http://downloads.zyxel.nas-central.org/ ... /packages/
Package Priority: Preferred
Package Location: ./serviio
Package Version: 1.8-arm-1
Package Size: 23709 K
Package Installed Size: 27130 K
Package Required: dcraw,ffmpeg,lame,libass,rtmpdump,x264,oracle-java8-installer
Package Conflicts:
Package Suggests:
Package MD5 Sum: 9f2323dccab79318fc4c3798caab29c3
Package Description:
Serviio is a free media server. It allows you to stream your media files (music, video or images)
to renderer devices (e.g. a TV set, Bluray player, games console or mobile phone) on your connected
home network.
There is also a paid for Pro edition which further enhances the possibilities of sharing content
in your connected household.
Serviio works with many devices from your connected home (TV, Playstation 3, XBox 360, smart phones,
tablets, etc.). It supports profiles for particular devices so that it can be tuned to maximise the
device's potential and/or minimize lack of media format playback support (via transcoding).
Serviio is based on Java technology and therefore runs on most platforms, including Windows, Mac and
Linux (incl. embedded systems, e.g. NAS).
License:custom Serviio-view at http://serviio.org/licence
Version:1.8
Homepage:http://serviio.org/
Package Installed: yes
Md5sum of serviio start script is OK.
Do the date in /ffp/opt/serviio/log/serviio.log is correct?
You know, I cut off part of that output because I presumed, that you what to know which version of serviio I have. Here is a full info:

Code: Select all

Package Name: serviio
Package Mirror: http://downloads.zyxel.nas-central.org/Users/barmalej2/ffp/0.7/arm/packages/
Package Priority: Preferred
Package Location: ./serviio
Package Version: 1.8-arm-1
Package Size: 23709 K
Package Installed Size: 27130 K
Package Required:   dcraw,ffmpeg,lame,libass,rtmpdump,x264,oracle-java8-installer
Package Conflicts:
Package Suggests:
Package MD5 Sum:  9f2323dccab79318fc4c3798caab29c3
Package Description:
 Serviio is a free media server. It allows you to stream your media files (music, video or images)
 to renderer devices (e.g. a TV set, Bluray player, games console or mobile phone) on your connected
 home network.
 There is also a paid for Pro edition which further enhances the possibilities of sharing content
 in your connected household.
 Serviio works with many devices from your connected home (TV, Playstation 3, XBox 360, smart phones,
 tablets, etc.). It supports profiles for particular devices so that it can be tuned to maximise the
 device's potential and/or minimize lack of media format playback support (via transcoding).
 Serviio is based on Java technology and therefore runs on most platforms, including Windows, Mac and
 Linux (incl. embedded systems, e.g. NAS).
 License:custom Serviio-view at http://serviio.org/licence
 Version:1.8
 Homepage:http://serviio.org/
Package Installed: yes
As I mentioned, I start messing with java & serviio versions, so maybe I've now some mess in packages :D

Post Reply