Giter Site home page Giter Site logo

vlc_as_root's Introduction

VLC_as_Root

Run VLC on Linux as Root

By Byron Taaka

For security reasons, VLC does not run on Linux as root by default.
However, if you really need to run VLC when logged in as root.

You can watch this video
or
Follow this 'One-Time' procedure:

  1. check whether VLC can run as root, via Terminal or FileManager

  2. Get the Absolute path to our VLC using the 'which' command:
    which vlc
    in my case and probably Yours, the resulting path is /usr/bin/vlc

  3. Backup the vlc (optional in case you trust yourself)
    cp /usr/bin/vlc /usr/bin/vlc.bkp

  4. Open the vlc with the hexeditor
    hexeditor /usr/bin/vlc

  5. Search for 'geteuid'
    Press ctrl + w to search.
    Once the search dialog is displayed,
    You can press A for text search,
    or
    select 'search for text string' and Press ENTER to search

  6. Replace 'geteuid' with 'getppid'
    Press the tab button to switch from hex to text as it is easier to edit plain text than Hex.

  7. Save & exit.
    Press ctrl + x

We Are Done!

Now You can Enjoy VLC on root.



Undoing Changes:

7. Exit Without Saving

Press ctrl + c to exit the hexeditor without saving the changes you've made to VLC.

8. Restore Original VLC

In case You change your mind about running vlc as root,
replace the getppid with geteuid,
or
Restore the VLC backup with:
cp /usr/bin/vlc.bkp /usr/bin/vlc


Note:

  • Upon upgrading VLC, You will need to ReDo steps 1-6.
  • hexeditor comes preinstalled in most Linux/Unix-Like distributions.
  • All the hexeditor commands / shortcuts used here are displayed at the bottom of the hexeditor screen whenever applicable.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.