Reading Time: 4 minutes

If you are searching for How to Run VLC as Root in Kali Linux, it means that you are a beginner to Kali Linux and want to enjoy media content as a root user through VLC. Before starting this guide, we would like to advise you that Kali Linux is meant for penetration testing and other professional usages.

For enjoying media content, we would recommend you to use other Linux flavors such as Linux Mint, Ubuntu, or other. If you still want to enjoy media content on Kali Linux as a root user, follow this guide. It will help you in easily running VLC as Root on Kali Linux.

How to Run VLC as Root in Kali Linux

How to Run VLC as Root in Kali Linux?

If you are a non-root user on Kali Linux, you have to just install VLC and start enjoying media content through it. But, Root users will have to modify some settings in order to run VLC as Root.

You can also read: How to Create Root User in Kali Linux in 2021? Best Guide

Installing VLC on Kali Linux

The first thing you have to do is to install VLC in Kali Linux. Follow the given command to install VLC. If you are a non-root user, add sudo before the given command.

apt-get install -y vlc

This command will install VLC on Kali Linux. If you are a non-root user, you will be able to use it without any problem. But, Root users will get a warning and this app will not run.

How to Run VLC as Root in Kali Linux

Running VLC as Root on Kali Linux

You will have to run just a single line of code to run VLC as Root on Kali Linux. You have to just type the given command on your terminal.

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

This code will help you running VLC in Kali Linux as Root. There is also another way to run VLC as Root, but that method is not as simple as the first one.

You can also read: Dual Boot Kali Linux Along with Windows 10

Alternate Way to Run VLC as Root

There is alternate way if you want to know how to Run VLC as Root in Kali Linux:

There is also an alternate way to run VLC as Root. In this method, you will have to edit the binary file of VLC using a hex editor. Follow the given steps for this method.

Type the given command on your terminal to open the binary file of VLC with hexeditor.

hexeditor /usr/bin/vlc

Now, you will see that hexeditor has opened the hex file of VLC. Press Ctrl + W. It will open a search window.

Now, you have to select the “search for text string” option. Now, you have to type geteuid and hit the enter button.

How to Run VLC as Root in Kali Linux
How to Run VLC as Root in Kali Linux

On the new screen, you have to press the Tab button. You have to replace geteuid with getppid. Once you make this change, you will have to save it using Ctrl + X.

How to Run VLC as Root in Kali Linux
How to Run VLC as Root in Kali Linux

These were two different methods to run VLC in Kali Linux as Root. You can also run VLC as Root in other Linux distributions with the help of this guide. But, the installation command will vary as the given command in this article will only work on Debian based or Ubuntu.

After reading How to Run VLC as Root in Kali Linux, you might be interested to know: Dual Boot with Intel Optane in Windows 10 – Kali Linux, Ubuntu, Linux Mint

Conclusion

It was the complete guide on How to Run VLC as Root in Kali Linux. We would conclude this article in the hope that you can now successfully run VLC as Root on Kali Linux or other Linux distributions. Do not forget to share this guide in your Linux users group. You can also subscribe to our free newsletter and enable notifications for the latest updates.

You can also read: Kali Linux Download and Installation

Spread the Love!

Leave a Reply