5,606,465 Members 33,478 Now Online
XDA Developers Android and Mobile Development Forum

[DEV] BACKTRACK 5 on SGS2 (chroot) [UPDATED: 12/July/2011]

Tip us?
 
DooMLoRD
Old
(Last edited by DooMLoRD; 5th February 2012 at 04:24 PM.)
#1  
DooMLoRD's Avatar
Recognized Developer - OP
Thanks Meter 34394
Posts: 12,276
Join Date: Jul 2010
Location: Noida
Angry [DEV] BACKTRACK 5 on SGS2 (chroot) [UPDATED: 12/July/2011]

\\----[ Announcement ]----//

[12/July/2011] Updated with new package (bt5_sgs2_shell_scripts_v2.zip) containing shell scripts & busybox

//----[ Announcement ]----\\



hi guys DooMLoRD & anantshri present to u:

BACKTRACK 5 on SGS2


all the work was done by anantshri, i mostly assisted by testing it on my SGS2 and modding it slightly so that it will work properly for SGS2... dont forget to thank him!

i will try n keep it short and simple...

for more details u can read the original thread at X10 sub-forums...

[DEV] BACKTRACK 5 on Xperia X10 chroot


[ Screenshots ]


on startup (shell):




in GUI:



phone + BT5 GUI:





[ Requirements ]


[ How To : File Setup ]

u need to do this only once
  1. download the files from the links provided in this thread
  2. extract the files using 7zip to a temporary folder (needs 3.3GB free on that drive)
  3. connect ur SGS2 to PC and mount USB storage
  4. create a folder named 'bt' (without quotes) in the root of ur sdcard and copy the bt.img in that folder
  5. also place the file bt5_sgs2_shell_scripts_v2.zip in root of sdcard, this file has to be flashed via recovery
  6. once u verify that the above is correct then un-mount usb storage
  7. reboot into recovery and flash the file bt5_sgs2_shell_scripts_v2.zip stored in root of sdcard (or if u are using CWM app then just select the file for flashing and the app will do the rest )
  8. once ur phone reboots into OS just check the /sdcard/bt folder
  9. final directory structure should look like this:
    • /sdcard/bt/bt
    • /sdcard/bt/bt.img
    • /sdcard/bt/installbt.sh
    • /sdcard/bt/startbt
    • /sdcard/bt/stopbt
  10. once u verify that the above is correct then u can proceed


[ How To : Launch BT ]
  1. start Terminal Emulator app on ur SGS2 and enter the following commands step by step (accept/allow any SuperUser request/popup that u may receive)
    • su
    • cd /sdcard/bt
    • sh installbt.sh
    • startbt
    • bt
  2. now u are in BackTrack5 shell

  3. to launch GUI (vncserver) enter the following command
    • ui

    now note the number N shown localhost:N
    e.g. as u can see from the above image that "New 'X' desktop is localhost:1", so N=1
    the vncserver is running at (5900 + N, N=1 ; so server port is 5901)

  4. now launch androidVNC app on phone and fill in the detials as follows
    • Nick : bt
    • Address : 127.0.0.1
    • Port : 5901
    • Password : 12345678
    • Username : <leave it blank>
    • Color Format : 24-bit color (4 bpp)

    inside vnc window select input mode (i personally recommend the following)
    • TouchPad (here your screen works like a big touchpad use it to navigate mouse.)
  5. and then press connect... now u are in BackTrack GUI!

  6. if u want to exit/close BT5 then u need to follow these steps:
    • close the androidVNC app (Menu -> Disconnect)
    • go back into Terminal Emulator app and enter the following commands
      u should be at this shell root@localhost:~#
      • killui
      • exit
    • now u will get back to this shell> #
    • now enter the following commands to stop bt and exit
      • stopbt
      • exit
      • exit
    • u can now exit the Terminal Emulator app
    • i would also recommend that u reboot ur phone


[ Important Info ]

root password is 12345678



[ Download Links ]
  1. update.zip package containing shell scripts, busybox (which gets installed to temporary location) [to be flashed via recovery]
    this will not disturb/conflict with busybox of ur ROM/CF-Root kernel

    bt5_sgs2_shell_scripts_v2.zip (~800KB)

  2. main bt.img
    these links are 7zip archives split into 50mb files, u will need to download the following:
    total size: 486MB

    also uploading to mediafire for mirroring...
    Mediafire Folder: http://www.mediafire.com/?f9gk3p3t9wip5

    md5 hashes:

    Code:
     bt.7z.001 f19e769bf42b44867c8bb1d9bb9c5d44
     bt.7z.002 a4dd26a98d2c6925d871fb108fb5fadb
     bt.7z.003 ecca5a5d72c449117b1d3dbc23aeb1a2
     bt.7z.004 8ad487a01e4d149f0247ad9288201f32
     bt.7z.005 adab9cb3778cd8ac89ccc0e21997c3d7
     bt.7z.006 ba6a28de70a1115dc316f45cea508215
     bt.7z.007 f59757e891631607e1a35abadb231b3b
     bt.7z.008 cdb8c28a1fbd03657bb42e8d69f0600b
     bt.7z.009 426d892f872679e3d53d0ebb0376e138
     bt.7z.010 c7d2957bc65340d967b9dd3646d7cb39




ENJOY!
Like my work? Please consider donating via PayPal

Lead Developer of Team UtterChaos & Member of Team ICX

Creator of DooMKernel making those Snapdragons fly higher and faster

Android Devices I use : Sony Xperia Z1, Z, SP, T | WISHLIST: Sony Xperia Z2

Contributions : Generic Android / Xperia X10 / Xperia 2011 devices / Samsung Galaxy S2 / Huawei Ideos X6 / Samsung Galaxy SCL (i9003) / HTC Flyer / Kindle Fire / HTC JetStream / Xperia P, Sola, U / HTC One X / Xperia S / Xperia T, V, TX / Xperia Z, ZL, Tablet Z / Xperia SP / Xperia Z1 / Sony ZU GPe / Xperia Z1 Compact / Xperia Z2, Z2 Tablet / Xperia T2 Ultra

My Apps on Google Play Store | Follow me on Twitter!
The Following 67 Users Say Thank You to DooMLoRD For This Useful Post: [ Click to Expand ]
 
DooMLoRD
Old
(Last edited by DooMLoRD; 11th July 2011 at 02:37 PM.)
#2  
DooMLoRD's Avatar
Recognized Developer - OP
Thanks Meter 34394
Posts: 12,276
Join Date: Jul 2010
Location: Noida
[ Tips n Tricks! ]
  1. if u have ur device (SGS2) connected over wifi u can connect to the BT5 vncserver running on ur phone!! u will just need to connect to
    <ip_address_of_phone>:<portno>



  2. most of the startup/launching commands can be executed even through adb shell
Like my work? Please consider donating via PayPal

Lead Developer of Team UtterChaos & Member of Team ICX

Creator of DooMKernel making those Snapdragons fly higher and faster

Android Devices I use : Sony Xperia Z1, Z, SP, T | WISHLIST: Sony Xperia Z2

Contributions : Generic Android / Xperia X10 / Xperia 2011 devices / Samsung Galaxy S2 / Huawei Ideos X6 / Samsung Galaxy SCL (i9003) / HTC Flyer / Kindle Fire / HTC JetStream / Xperia P, Sola, U / HTC One X / Xperia S / Xperia T, V, TX / Xperia Z, ZL, Tablet Z / Xperia SP / Xperia Z1 / Sony ZU GPe / Xperia Z1 Compact / Xperia Z2, Z2 Tablet / Xperia T2 Ultra

My Apps on Google Play Store | Follow me on Twitter!
The Following 8 Users Say Thank You to DooMLoRD For This Useful Post: [ Click to Expand ]
 
anantshri
Old
(Last edited by anantshri; 12th July 2011 at 04:45 AM.)
#3  
Senior Member
Thanks Meter 316
Posts: 678
Join Date: Feb 2011
Location: Bangalore

 
DONATE TO ME
==== Reserved ===

few pointers as this has been asked many times

1) Monitor Mode will not work till someone tried to compile a custom wifi drivers with monitor mode enables, in that case also firmware should allow it.

2) Those using android-vnc-viewer and facing difficulty in navigation check various input modes.
These 3 works the best for me.
  1. Touch Mouse; D-Pad Pan
  2. Mouse pointer control mode
  3. TouchPad (here your screen works like a big touchpad use it to navigate mouse.)
The Following 6 Users Say Thank You to anantshri For This Useful Post: [ Click to Expand ]
 
bitmaster2000
Old
(Last edited by bitmaster2000; 16th July 2011 at 11:20 AM.)
#4  
bitmaster2000's Avatar
Member
Thanks Meter 7
Posts: 40
Join Date: Jan 2011
Location: Woerden

 
DONATE TO ME
Excellent. I've been wanting to do this.

Back Track is running smoothly on my SGS2 with Lite'ning ROM.
The Following User Says Thank You to bitmaster2000 For This Useful Post: [ Click to Expand ]
 
DooMLoRD
Old
(Last edited by DooMLoRD; 10th July 2011 at 11:16 PM.)
#5  
DooMLoRD's Avatar
Recognized Developer - OP
Thanks Meter 34394
Posts: 12,276
Join Date: Jul 2010
Location: Noida
files uploaded to personal direct download server!

links updated

also uploading to mediafire for mirroring...
http://www.mediafire.com/?f9gk3p3t9wip5

will post these links in few hours!

ENJOY BT5 on ur SGS2
Like my work? Please consider donating via PayPal

Lead Developer of Team UtterChaos & Member of Team ICX

Creator of DooMKernel making those Snapdragons fly higher and faster

Android Devices I use : Sony Xperia Z1, Z, SP, T | WISHLIST: Sony Xperia Z2

Contributions : Generic Android / Xperia X10 / Xperia 2011 devices / Samsung Galaxy S2 / Huawei Ideos X6 / Samsung Galaxy SCL (i9003) / HTC Flyer / Kindle Fire / HTC JetStream / Xperia P, Sola, U / HTC One X / Xperia S / Xperia T, V, TX / Xperia Z, ZL, Tablet Z / Xperia SP / Xperia Z1 / Sony ZU GPe / Xperia Z1 Compact / Xperia Z2, Z2 Tablet / Xperia T2 Ultra

My Apps on Google Play Store | Follow me on Twitter!
The Following 3 Users Say Thank You to DooMLoRD For This Useful Post: [ Click to Expand ]
 
d3sm0nd
Old
#6  
d3sm0nd's Avatar
Senior Member
Thanks Meter 14
Posts: 535
Join Date: Dec 2007
Location: Sofia
Great!! Thank you. Will test and post soon.
HTC TyTN II > HTC Touch Diamond2 > HTC Hero > HTC Desire > Samsung Galaxy S II > Galaxy Nexus > Nexus 4 > HTC One > Nexus 5
The Following User Says Thank You to d3sm0nd For This Useful Post: [ Click to Expand ]
 
piffpaff
Old
#7  
Junior Member
Thanks Meter 1
Posts: 5
Join Date: Sep 2008
i get an error:

here is a problem ith the configuration server (/usr/lib/libgconf2-4/gconf-sanity-check-2 exited with status 256)

any solution?
The Following User Says Thank You to piffpaff For This Useful Post: [ Click to Expand ]
 
DooMLoRD
Old
#8  
DooMLoRD's Avatar
Recognized Developer - OP
Thanks Meter 34394
Posts: 12,276
Join Date: Jul 2010
Location: Noida
Quote:
Originally Posted by piffpaff View Post
i get an error:

here is a problem ith the configuration server (/usr/lib/libgconf2-4/gconf-sanity-check-2 exited with status 256)

any solution?
which files did u try? i have changed anantshri's original images and uploaded working one for SGS2... please download the files from the first post!

if u are still getting that error do let me know...
Like my work? Please consider donating via PayPal

Lead Developer of Team UtterChaos & Member of Team ICX

Creator of DooMKernel making those Snapdragons fly higher and faster

Android Devices I use : Sony Xperia Z1, Z, SP, T | WISHLIST: Sony Xperia Z2

Contributions : Generic Android / Xperia X10 / Xperia 2011 devices / Samsung Galaxy S2 / Huawei Ideos X6 / Samsung Galaxy SCL (i9003) / HTC Flyer / Kindle Fire / HTC JetStream / Xperia P, Sola, U / HTC One X / Xperia S / Xperia T, V, TX / Xperia Z, ZL, Tablet Z / Xperia SP / Xperia Z1 / Sony ZU GPe / Xperia Z1 Compact / Xperia Z2, Z2 Tablet / Xperia T2 Ultra

My Apps on Google Play Store | Follow me on Twitter!
The Following User Says Thank You to DooMLoRD For This Useful Post: [ Click to Expand ]
 
yousif666
Old
#9  
Senior Member
Thanks Meter 6
Posts: 126
Join Date: Apr 2011
Very nice

Thanks alot
 
piffpaff
Old
#10  
Junior Member
Thanks Meter 1
Posts: 5
Join Date: Sep 2008
ok i load the wrong files from other thread.

thx

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes