Sunday 17 June 2012

how to run vlc media player as root on Backtrack/Ubunt


Hi friends,
 Here I m with trick to install and run Vlc media player as root in
Backtrack.
Normally in backtrack  you cant run vlc as root but by using this
trick its possible.

                                


First we need to install vlc media player 
open terminal at hash prompt type this command
 for root users
apt-get install vlc
for non root users
sudo apt-get install vlc
you will be prompted whether to continue or not, be wise and
press y now w8 for few seconds depending upon ur internet speed.
after completion of this command you will be returned to
hash prompt, to check whether it is running or not type vlc at
hash prompt 
vlc
for non-root user it will work but for root user it will return an
"VLC is not supposed to be run as root. Sorry.
If you need to use real-time priorities and/or privileged TCP ports
you can use vlc-wrapper (make sure it is Set-UID root and
cannot be run by non-trusted users first)."

now no need to panic we can resolve this problem with a simple
hack all we need to to do is to open /usr/bin/vlc in any text editor
like vi or vim 
 # vim /usr/bin/vlc
now at this point search geteuid and replace it with getppid 
at editor press ctrl+shift+f and type geteuid 
now click on geteuid press insert key and replace geteuid with
getppid 
press esc key and then type 
:wq and press enter
its all done 
now check whether vlc is working or not just type vlc at hash
prompt 
vlc
and you can see vlc media player comes up....

0 comments:

Post a Comment