Wednesday, June 8, 2011

Run Chromium & VLC as Root on Backtrack 5 GNOME/KDE


To simply install Chromium on Backtrack 5,

apt-get install chromium-browser

However, developers of google chrome have not allowed root privileges. If you try to run it on backtrack, you will get an error,

Chromium can not be run as root
Please start Chromium as a normal user. If you have previously run Chromium as root, you will need to change the ownership of your profile directory.


To fix this, better say, to run chrome with root privileges, we need to hex edit the binary file, chromium-browser
cd /usr/lib/chromium-browser
hexedit chromium-browser

Klik gambar untuk resolusi penuh
You are presented with the above screen. Quite complicated, isintit? It allowsyou to edit data in both hexadecimal mode and in ascii mode. Its a very good  and useful tool.
Now we switch to ascii by pressing [TAB]

[tab]

Notice that cursor shifted to the right pane from the middle pane. Now you can edit in ascii. To undo any change you might accidentally make, press backspace.

ctrl+s to search for  geteuid

Klik gambar untuk resolusi penuh
Now, modify the geteuid to getppid

Klik gambar untuk resolusi penuh
Now, ctrl+X to exit saving changes.
And, google chrome now runs with root privileges.

To run vlc, follow similar operation on /usr/bin/vlc

Have fun ! :D

No comments:

Post a Comment