Page 1 of 1
run vlc at startup on ubuntu
Posted: 26 Jan 2007 18:41
by andra_vlc
hello
what about all this:
Running VLC as root is discouraged
It is potentially dangerous, and might not even work properly.
when running vlc with a script at computer startup?
With --daemon switch.
And I use to stop vlc process and launch again using the same script and receiving those warnings. How dangerous it really could be and not work properly?
Posted: 26 Jan 2007 21:25
by xtophe
you should use sudo -u user in your startup script to change the user.
It is bad to run server as root because bad people could gain root access if there is a security hole in the server
Posted: 29 Jan 2007 12:35
by andra_vlc
thanks, I tried it but didn't get it work like it works run as root.
The command line in the batch file is like the following:
sudo -u myuser vlc --ttl 100 -vvv --intf telnet --telnet-password mypswd --daemon --vlm-conf /home/myuser/vlc/public-play.vlc --extraintf logger:http --logfile=/var/log/vlc.log --logmode text --http-host n.n.n.n:nn
myuser is that superuser that is created when installing ubuntu. It has access to the vlm config file and it has rights to in the logfile.
Though it seems that the playlist is not loaded and nothing is going to the log. I can connect to the telnet interface and the http interface.
Re: run vlc at startup on ubuntu
Posted: 08 Jul 2011 00:34
by vodas89
Did you make it finally ?? I have similar problem these days. I would like to start vlc at ubuntu startup. I get thousands errors like host unreachable or cannot make raw udp socket. Process stops after that. I am sure this is not network issue. Have you got some advice ?