Get VLC to work under root without compiling
When downloading VLC media player in BT5, it won't start. This is because you cannot run it under root. This is annoying since BT5 is standard root. Anyway, I have found a way to get it running without having to install it from source with the enable run as root as suffix.
Credit: Net_Spy
First install from vlc from the repo's.
Use a hex editor to edit /usr/bin/vlc
Look for
Code:
geteuid._libc_start_main
and change it into
Code:
getppid._libc_start_main
Save and you are done. It works perfectly on my BT5 G32.
Re: Get VLC to work under root without compiling
This didn't work for me for some reason.
Re: Get VLC to work under root without compiling
What are you using ? 32b or 64b ? Gnome or KDE ?
I hope it's clear that you have to install vlc from repo's first ?
Re: Get VLC to work under root without compiling
Running VLC as root is not a good idea (especially if you have it installed to HD)
That being said I couldn't get vlc-wrapper to work
So I can confirm this works
Or use mplayer and xine
Re: Get VLC to work under root without compiling
I am using 32b KDE. And yes, I did download it from the repo first. That was like.. a question you would ask a windows user. Well, except the fact winblows doesn't have a repository.
Re: Get VLC to work under root without compiling
Ok after using GHex on it, it worked like a charm :) Thank you very much
Re: Get VLC to work under root without compiling
Re: Get VLC to work under root without compiling
Vlc worked for me 2,..thanks!!!!!! then how solutions for chromium????????
Re: Get VLC to work under root without compiling
Re: Get VLC to work under root without compiling
Thank you very much cgelici for the hex mod to VLC and to Azkrath for the tip about GHex. Everything worked fine for BT5 Gnome 32-bit version however the search string to modify in /usr/bin/vlc was "geteuid._libc_start_main" not "geteuid._libc_start_man" as stated in cgelici's instructions. Just do a search for "geteuid" (without the quotes) as it is the only instance and follow the mod. This may help some people who are having problems.
Thanks again for the assistance as I was starting to pull hair out...and I really can't afford that. Have an OUTSTANDING day!