How To Install And Run VLC On CentOS 6/7 As Root

VLC media player (commonly known as VLC) is a portable, free and open-source, cross-platform media player and streaming media server written by the VideoLAN project. VLC media player supports many audio and video compression methods and file formats, including DVD-Video, video CD and streaming protocols. It is able to stream media over computer networks and to transcode multimedia files.
The default distribution of VLC includes a large number of free decoding and encoding libraries, avoiding the need for finding/calibrating proprietary plugins. Many of VLC’s codecs are provided by the libavcodec library from the FFmpeg project, but it uses mainly its own muxer and demuxers and its own protocols implementations. It also gained distinction as the first player to support playback of encrypted DVDs on Linux and OS X by using the libdvdcss DVD decryption library.
For EL7:

Install  EPEL   from
rpm -Uvh

For EL6:

rpm -Uvh
rpm -Uvh


yum update
yum  install vlc

There are not so many ways to make VLC Player work as root, and I have found this way is very easy and fast to make VLC Player Work as root.
Let me make one thing more clear that VLC is not only media player it can do so many things and Running VLC as root is very very risky. So think many times before you run VLC as root.
I have only tested that VLC can open using root user, have not tested other features. So take a note of this.
Before starting it let me tell you that please take a backup of original VLC file so you can recover if anything worst.
Perform following steps to Run VLC Player as root
1) Install Hexedit Package for your System
[root@vps ~]# yum install hexedit
2) Now Execute Following command take backup of Original VLC Command :-
[root@vps ~]# cp -p /usr/bin/vlc /usr/bin/vlc_original_bin
3) Now Open /usr/bin/vlc into hexeditor, Execute Following command :-
[root@vps ~]# hexedit /usr/bin/vlc
4) Now Press “TAB” Key.
5) Now Press “CTRL + s” to search ASCII String.
6) In Search Box, Now Type “geteuid” and Replace it with “getppid”
7) Now Press “CTRL + x” to Save the file.
8) That’s it. Now You can Open VLC using Command and From Menu too.


Leave a Reply

Your email address will not be published. Required fields are marked *