Install VLC Player in Linux
Installing VLC is so easy, it is available in official repositories of mainstream Linux distros, just run the following command on your respective Linux distribution.
If you are running your Linux system as root, for example Kali Linux, you’ll get the error below when you try to run VLC.
Alternative Ways to Run VLC as Root User
Run the sed command below to make changes in the VLC binary file, it will replace the geteuid variable (which determines the effective user ID of the calling process) with getppid (which will determine the parent process ID of the calling process).
In this command, ‘s/geteuid/getppid/‘ (regexp=geteuid, replacement=getppid) does the magic.
Alternatively, edit the VLC binary file using a hex-editor such as bless, hexeditor. Then search for geteuid string and replace it with getppid, save the file and exit.
Yet again, another way around this is to download and compile the VLC source code by passing the
--enable-run-as-root
flag to ./configure
and VLC should be able to run as root.
That’s all! You should now run VLC as root user in Linux. To share any thoughts, use the feedback form below.
Thank you
Thank you
No comments