Page 1 of 1
VLC on NAS (Synology)
Posted: 04 Jul 2008 16:18
by klaasvaak
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
Re: VLC on NAS (Synology)
Posted: 16 Oct 2008 15:11
by mobile
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
Re: VLC on NAS (Synology)
Posted: 16 Oct 2008 15:47
by xtophe
Write a script starting vlc and put it in /etc/rc2.d or wherever your distro put the init script
Re: VLC on NAS (Synology)
Posted: 08 Nov 2008 22:40
by klaasvaak
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
Re: VLC on NAS (Synology)
Posted: 20 Nov 2008 20:11
by klaasvaak
Got VLC working, not completely as I would like but still ... it's a start
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
anyone any ideas?
regards, Klaas
Re: VLC on NAS (Synology)
Posted: 21 Nov 2008 16:33
by ivoire
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.
Re: VLC on NAS (Synology)
Posted: 21 Nov 2008 22:14
by klaasvaak
Would it be possible to give me an example of such a script?
many thanks in advance, regards, Klaas
Re: VLC on NAS (Synology)
Posted: 27 Nov 2008 16:37
by ivoire
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
Re: VLC on NAS (Synology)
Posted: 11 Dec 2008 00:33
by www.rzr.online.fr
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