Friday, October 26, 2018

How to run VLC in root user

Hello linux user whereever you are, here is a simple problem with a simple solution for how to run VLC in root user. But i do not prefer to use this step, because if it prohibited to run as root , that should  have some meaning.
Running VLC using root account will give you some risk, so be carefull :)

Here is the problem


"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)."

First solution
Copy this syntax (CTRL+C) and then paste to your terminal (CTRL+SHIFT+V)

 sed -i 's/geteuid/getppid/' /usr/bin/vlc

Then enter
You dont need sudo if you run your computer as root

or the second solution

gedit /usr/bin/vlc 

search for geteuid and replace it with getppid 
Save file & Exit.

Then VLC can run as root


VLC media player 3.0.4 Vetinari (revision 3.0.4-0-gf615db6332)
[000055957bfae750] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[000055957bfa93a0] main playlist: playlist is empty
QObject::~QObject: Timers cannot be stopped from another thread


There were some solution for running VLC as root, Do on your own risk.

0 comments:

Post a Comment