LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 07-28-2009, 12:49 PM   #1
n1wil
LQ Newbie
 
Registered: May 2002
Posts: 20

Rep: Reputation: 0
Trying to launch VLC in CLI install upon start


I have an application where I need to have VLC start playing a looped playlist upon system startup. I obviously can't run it as root.

The system has Ubuntu 9.04 install with NO GUI. I would rather not run a GUI on this box as I don't want people interacting with it.

In my application, it is intended to be remotely administered via webmin.

So here goes my question:

When I run the command:
vlc -I http -Z -L --volume 500 /home/john/list.m3u

in a SSH terminal or on the local console when logged into the keyboard, VLC runs just find and the machine outputs sound - no problem.

I'd like to have this done at startup right after the system boots and that's where I'm having the problem. I have tried inserting the command in /etc/rc.local as such:

su username -c 'vlc -I http -Z -L --volume 500 /home/john/list.m3u'

and I would think this should work, but it doesn't. Can anyone help me?

This problem is VERY frustrating!
 
Old 07-29-2009, 06:48 AM   #2
nowonmai
Member
 
Registered: Jun 2003
Posts: 481

Rep: Reputation: 48
If you want to run vlc in console mode, try appending '--intf rc --rc-host localhost:9999' to create a telnet server admin port to control vlc through.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xine or VLC Playing video files after being triggered by a CLI RS-232 input PaulGraham Linux - Software 2 06-21-2009 01:10 PM
VLC, GNUMP3d, streaming from remote cli server properganda Linux - Newbie 1 02-07-2008 09:38 AM
launch script, get PID via cli? sneakyimp Linux - Software 4 08-25-2007 02:03 PM
Vlc Can't Start! firstcobra88 Linux - Software 2 07-14-2005 12:12 AM
VLC does not start Ephracis Linux - Software 0 11-20-2004 12:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 10:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration