General NAS-Central Forums

Welcome to the NAS community
It is currently Wed Nov 22, 2017 8:58 am

All times are UTC




Post new topic Reply to topic  [ 150 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10
Author Message
PostPosted: Wed Mar 16, 2016 5:06 pm 
Offline

Joined: Tue Mar 15, 2016 9:24 pm
Posts: 3
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:
#!/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:
/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 :/


Top
 Profile  
 
PostPosted: Wed Mar 16, 2016 5:29 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2310
Felino41 wrote:
Is there anything in the post you linked me to that I´m not seeing?
Yes :arrow:
Quote:
slacker -UAa br2:serviio/serviio

Install latest serviio 1.6 release package, which contains autostart script.


Top
 Profile  
 
PostPosted: Thu Mar 17, 2016 8:18 am 
Offline

Joined: Tue Mar 15, 2016 9:24 pm
Posts: 3
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 :)


Top
 Profile  
 
PostPosted: Thu Mar 17, 2016 10:23 am 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2310
Well, I'm not thrilled with new serviio web console too. Windows serviio client was much faster and better.


Top
 Profile  
 
PostPosted: Sat Feb 18, 2017 10:40 am 
Offline

Joined: Sat Jan 26, 2013 10:08 am
Posts: 25
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:
java -version
command not found


I start messing with $PATH and finished with:
Code:
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:
----------------------
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)


Top
 Profile  
 
PostPosted: Mon Feb 20, 2017 7:14 am 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2310
Revert all changes you have done back and paste output of:
Code:
ls -laR /ffp/opt/java


Top
 Profile  
 
PostPosted: Tue Feb 21, 2017 1:13 pm 
Offline

Joined: Sat Jan 26, 2013 10:08 am
Posts: 25
barmalej2 wrote:
Revert all changes you have done back and paste output of:
Code:
ls -laR /ffp/opt/java


Hi,
Sorry for delay, here is txt output: https://dropfile.to/DqKo1eh


Top
 Profile  
 
PostPosted: Tue Feb 21, 2017 1:39 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2310
These are steps to install/upgrade serviio on ffp0.7-armv5 (root priviledges is requirement).

# Remove old java installation directory:
Code:
rm -rf /ffp/opt/java

# Create funpkg cache dir for br2 repo if it not exists and install new slapt-get package manager:
Code:
[ -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:
slapt-get -u
slapt-get --upgrade

# Restart sshd daemon service after upgrading:
Code:
sh /ffp/start/sshd.sh restart

# Install serviio package with all required dependencies:
Code:
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:
oraclejava install /path/to/dir/ejdk-8u*-linux-arm-sflt.tar.gz

# Test java
Code:
java -version

# Start serviio daemon service:
Code:
sh /ffp/start/serviio.sh start

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


If you are getting unexpected error(s) on any step, then stop and report here.


Top
 Profile  
 
PostPosted: Wed Feb 22, 2017 8:24 pm 
Offline

Joined: Sat Jan 26, 2013 10:08 am
Posts: 25
barmalej2 wrote:
These are steps to install/upgrade serviio on ffp0.7-armv5 (root priviledges is requirement).
# Test java
Code:
java -version

# Start serviio daemon service:
Code:
sh /ffp/start/serviio.sh start

# Enable autostart (if everything works as expected):
Code:
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)?


Top
 Profile  
 
PostPosted: Wed Feb 22, 2017 9:32 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2310
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:
Quote:
http://Your.Nas.Lan.Ip:23423/console

http://serviio.org/component/content/article/10-uncategorised/5-getting-started


Top
 Profile  
 
PostPosted: Fri Feb 24, 2017 8:41 pm 
Offline

Joined: Sat Jan 26, 2013 10:08 am
Posts: 25
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:
Quote:
http://Your.Nas.Lan.Ip:23423/console

http://serviio.org/component/content/article/10-uncategorised/5-getting-started


I did:
Code:
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 :)


Top
 Profile  
 
PostPosted: Fri Feb 24, 2017 9:22 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2310
Show me output of:
Code:
slapt-get --show serviio
and
Code:
md5sum /ffp/start/serviio.sh


Top
 Profile  
 
PostPosted: Fri Feb 24, 2017 9:52 pm 
Offline

Joined: Sat Jan 26, 2013 10:08 am
Posts: 25
barmalej2 wrote:
Show me output of:
Code:
slapt-get --show serviio
and
Code:
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


Top
 Profile  
 
PostPosted: Fri Feb 24, 2017 10:11 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2310
Interesting. For comparison mine output:
Code:
slapt-get --show serviio
Quote:
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?


Top
 Profile  
 
PostPosted: Fri Feb 24, 2017 11:01 pm 
Offline

Joined: Sat Jan 26, 2013 10:08 am
Posts: 25
barmalej2 wrote:
Interesting. For comparison mine output:
Code:
slapt-get --show serviio
Quote:
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:
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 150 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10

All times are UTC


Who is online

Users browsing this forum: No registered users and 70 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group