VLC media player binaries are available in repos but VLC installed from those cannot be run as root. The source code needs to be downloaded, and compiled with certain parameters that will then enable VLC to be run as root too.
1. Download the latest vlc source code tarball from : http://www.videolan.org/vlc/download-sources.html
2 . Extract it:
tar -xvf vlc-x.x.x.tar.bz2
x.x.xrefers to the version you’ve downloaded.
3. Change directory to the source code root
4. Install libraries required to build VLC
For Ubuntu and other debian systems with apt-get:
apt-get build-dep vlc
On Fedora, RHEL, Cent OS and other RPM based systems with yum:
5. Configure the building parameters and also check no errors exist and
all dependencies are fulfilled:
./configure --enable-run-as-root --prefix=/opt/vlc
–enable-run-as-rootis the tweak that does the job
–prefixparameter assigns where the built binaries go, in this case
6. COMPILE :
7. Optionally, clean the files created during compilation.
Configuration and compiling requires some time and patience.
After all steps are complete, vlc is installed in /opt/vlc.
You can run vlc by using ‘vlc’ command.