run vlc at startup on ubuntu

*nix specific usage questions
andra_vlc
Blank Cone
Blank Cone
Posts: 22
Joined: 02 Nov 2006 17:08

run vlc at startup on ubuntu

Postby andra_vlc » 26 Jan 2007 18:41

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?

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

Postby xtophe » 26 Jan 2007 21:25

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
Xtophe

andra_vlc
Blank Cone
Blank Cone
Posts: 22
Joined: 02 Nov 2006 17:08

Postby andra_vlc » 29 Jan 2007 12:35

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.

vodas89
New Cone
New Cone
Posts: 9
Joined: 07 Jul 2011 18:29

Re: run vlc at startup on ubuntu

Postby vodas89 » 08 Jul 2011 00:34

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 ?


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

Who is online

Users browsing this forum: No registered users and 17 guests