VLC on NAS (Synology)

*nix specific usage questions
klaasvaak
Blank Cone
Blank Cone
Posts: 12
Joined: 04 Jul 2008 16:13

VLC on NAS (Synology)

Postby klaasvaak » 04 Jul 2008 16:18

Hi guys,

I’ve got a NAS (Synology DS107+ 128) and I would like to use the VLC as a streaming server to my media player (ShowCenter 200). So I installed VLC with “ipkg”. Now the following problem occurs:

I’m using the http “remote control interface” for handling the VLC on my mediaplayer. However, every time I boot the NAS (linux) I have to start the VLC manually through a telnet session. Is there a way to start VLC as soon as the NAS boots?

many thanks & regards, Klaas

mobile
New Cone
New Cone
Posts: 7
Joined: 27 Aug 2007 15:47

Re: VLC on NAS (Synology)

Postby mobile » 16 Oct 2008 15:11

Unfortunetly I have no answer for you but I desperate ( looking for more than a year )like to know how you install the vlc on your ds107+

Thanks

xtophe
Big Cone-huna
Big Cone-huna
Posts: 1209
Joined: 24 Nov 2003 10:12
Location: Bristol, England

Re: VLC on NAS (Synology)

Postby xtophe » 16 Oct 2008 15:47

Write a script starting vlc and put it in /etc/rc2.d or wherever your distro put the init script
Xtophe

klaasvaak
Blank Cone
Blank Cone
Posts: 12
Joined: 04 Jul 2008 16:13

Re: VLC on NAS (Synology)

Postby klaasvaak » 08 Nov 2008 22:40

Hi Xtophe,

Thanks for your reply and the tip; still got another problem with getting the VLC working on my DS (see here). Any clues?

regards, Klaas

klaasvaak
Blank Cone
Blank Cone
Posts: 12
Joined: 04 Jul 2008 16:13

Re: VLC on NAS (Synology)

Postby klaasvaak » 20 Nov 2008 20:11

Got VLC working, not completely as I would like but still ... it's a start :D

Xophe wrote:
Write a script starting vlc and put it in /etc/rc2.d or wherever your distro put the init script
Euh ... I don't have a clue how to do this :roll: anyone any ideas?

regards, Klaas

ivoire
Cone that earned his stripes
Cone that earned his stripes
Posts: 413
Joined: 20 Aug 2008 11:29
VLC version: trunk
Operating System: linux (debian sid)
Contact:

Re: VLC on NAS (Synology)

Postby ivoire » 21 Nov 2008 16:33

You have to write a script to launch vlc and put it in the init scripts of you'r distribution. In debian for example, these scripts are in /etc/init.d/ and each of them take as argument start/stop/restart These script start and stop some daemons.
One way for you is to launch vlc by using one of these scripts.
An other way is to add to the crontab an instruction "@reboot" that will start vlc as a daemon.

klaasvaak
Blank Cone
Blank Cone
Posts: 12
Joined: 04 Jul 2008 16:13

Re: VLC on NAS (Synology)

Postby klaasvaak » 21 Nov 2008 22:14

Would it be possible to give me an example of such a script?

many thanks in advance, regards, Klaas

ivoire
Cone that earned his stripes
Cone that earned his stripes
Posts: 413
Joined: 20 Aug 2008 11:29
VLC version: trunk
Operating System: linux (debian sid)
Contact:

Re: VLC on NAS (Synology)

Postby ivoire » 27 Nov 2008 16:37

This is an exmple of the script we use to start/stop our vlc. This script isn't really beautifull but it's working...

VLC_SH=path_to_the_vlc_launch_script

case "$1" in

start)
echo -n "Starting VLC:"
if [ -x $VLC_SH ]
then
if [ $UID == 0 ]
then
su simple_user -c "$VLC_SH"
elif [ $UID == 1000 ]
then
$VLC_SH
fi
echo "Done"
else
echo "Not found."
fi
;;

stop)
echo -n "Stopping VLC:"
killall -9 vlc > /dev/null || true
echo "Done"
;;

restart)
$0 stop
$0 start
;;

*) echo "Usage: /etc/init.d/videolan {start|stop|restart}"
;;

esac

www.rzr.online.fr
New Cone
New Cone
Posts: 7
Joined: 10 Dec 2008 23:38
Operating System: linux
Location: fr/35/rennes
Contact:

Re: VLC on NAS (Synology)

Postby www.rzr.online.fr » 11 Dec 2008 00:33

Hi, I managed to get it working on my NAS :
http://rzr.online.fr/q/raid

but it fails on mp3 files mpg are fine...

--
http://rzr.online.fr/q/vlc
http://rzr.online.fr/q/vlc
http://rzr.online.fr/q/raid
http://rzr.online.fr/q/codec
http://go.cur.lv/files# files to be shared or email me


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 30 guests