Sunday, June 19, 2011

Run vlc media player as root.

There's an issue in vlc player that it won't run when you are logged in as root. I don't know the reasons, may be its developers have some security concerns.
Anyways, you can make it run as root by following a simple series of steps, assuming that you have already installed it & it's running in case of other users.
Follow these steps:
  • Login as root.
  • Install ghex/khex (Hex editor for Gnome/KDE environment). 
$apt-get install ghex
OR

$apt-get install ghex2
It might be possible that your OS repository don't support ghex version. In that case type apt-get install ghex & hit . In my case it was ghex2.    
It will take some time.
  • After installing, open the vlc binary file /usr/bin/vlc in hex editor.
 $ghex2 /usr/bin/vlc
  • Now, search for the string 'geteuid' inside the binary file. 
 Edit > Find > Type 'geteuid' in right text box & hit 'find next' button. This step might be different for different versions.
  • Once you find the string replace 'geteuid' with 'getppid'. Append the string with caution, an wanted change can crash vlc. Just try to replace 2 characters eu with pp, by just pointing the cursor in insert mode to e & replace it with p, again replace u with p.
  • Now, you can run vlc as root.   








 

3 comments:

  1. Thanks for making such a killer blog. I arrive on here all the time and am floored with the fresh information here! You are great!
    math tutor

    ReplyDelete
  2. This is one of the good articles you can find in the net explaining everything in detail regarding the topic. I thank you for taking your time sharing your thoughts and ideas to a lot of readers out there.
    Sell Home Quick San Antonio

    ReplyDelete
  3. This particular papers fabulous, and My spouse and i enjoy each of the perform that you have placed into this. I’m sure that you will be making a really useful place. I has been additionally pleased. Good perform! 토토인증업체

    ReplyDelete