Install and run Vlc in Backtrack 5

Hi folks,
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 your 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 error message
"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
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....
This might seem to be a simple question. However what does the :wq do? I have installed VLC and missed that step so it will not work.
ReplyDelete:wq saves and quits the file.
ReplyDelete