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.
Install EPEL from http://www.unixmen.com/install-epel-repository-centos-rhel-7/ rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm rpm -Uvh http://li.nux.ro/download/nux/dextop/el6/x86_64/nux-dextop-release-0-2.el6.nux.noarch.rpm
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.
DO IT AT YOUR OWN RISK.
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.