Author Topic: Problem to run VLC from Computing screen  (Read 4276 times)

nite_man

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1019
  • Want to work with LinuxMCE
    • View Profile
    • Smart Home Blog
Problem to run VLC from Computing screen
« on: February 09, 2011, 09:41:35 pm »
Hi,

I need to run VLC from Computing menu to watch online stream. But it doesn't start because it's tried to run under root but it's not allow:
Code: [Select]
VLC is not supposed to be run as root. Sorry.
If you need to use real-time priorities and/or privileged TCP ports
you can use vlc-wrapper (make sure it is Set-UID root and
cannot be run by non-trusted users first).

Does anybody knows how to solve that?

Thanks in advance.
Michael Stepanov,
My setup: http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup
Russian LinuxMCE community: http://linuxmce.ru

Sigg3.net

  • Veteran
  • ***
  • Posts: 64
    • View Profile
Re: Problem to run VLC from Computing screen
« Reply #1 on: February 09, 2011, 10:46:58 pm »
This is not a bug. Believe me, you don't want to run as root unnecessary. They put in this block for a reason.

If you are root, open up a terminal and type login. This will let you login as non-root user and run vlc. If you type logout when you are done, you should be back to root terminal. On my Mint box:
Code: [Select]
T61 ~ # login
T61 login: sigg3
Password:
Last login: Wed Feb  9 22:36:51 CET 2011 on pts/2
sigg3@T61 ~ $ vlc whatever.avi

Please note that mplayer is more well-equipped on the command line than VLC is.

Of course, you can circumvent it through SUID: Bash script running program as a certain user
« Last Edit: February 09, 2011, 10:49:51 pm by Sigg3.net »

nite_man

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1019
  • Want to work with LinuxMCE
    • View Profile
    • Smart Home Blog
Re: Problem to run VLC from Computing screen
« Reply #2 on: February 09, 2011, 11:22:39 pm »
The set SUID is solved problem. Thanks.
Michael Stepanov,
My setup: http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup
Russian LinuxMCE community: http://linuxmce.ru