[Guide]Running BackTrack5(Ubuntu Lucid v10.04) On Your ET4G!!!

Search This thread

KingOfThaJungle

Senior Member
Oct 4, 2011
864
687
New York, NY
-Found this little gem posted in this thread, located under the AT&T Samsung Galaxy S II Android Development Forum. So I decided to installed it on my phone and SURPRISE SURPRISE, turns out it works great on our Epic Touch 4G too :p!
-Anyways, you can follow the instructions which I've quoted right below, and they are also found in the link above. This installation/setup takes all but 5-10minutes if not less!!! Hardest part, if you wanna call it that(its really just the longest part), is downloading the required files. Once you've downloaded all 10 7zip files into a single location, just open ONE OF THEM and extract it by double clicking it and then dragging the bt.img file to your computer. AND you only have to do this to ONE of the downloaded files, no need to open each of them and drag out the bt.img 10 different times, BUT you do need to have all 10 of them copied into the same folder in order for the full image to extract correctly!
-Also, the instructions stated to run the following command:
Code:
su
cd /sdcard/bt
sh installbt.sh
startbt
bt
but they were made for the AT&T version, so on our phones you need to either:
a)copy the bt folder off of /sdcard/external_sd to /sdcard instead; or
b)use the following commands instead:
Code:
su
[B]cd /sdcard/external_sd/bt[/B]
sh installbt.sh
startbt
bt
-If you make use of it, please be sure to thank the originator of it, anantshri, on his thread here, and DooMLoRD on his thread here for assisting in porting it over from the Xperia10 to the SGSII! Good things!
4sm98j.jpg

\\----[ 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):

shell.png



in GUI:

gui.jpeg


phone + BT5 GUI:

phone.jpg




[ 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
    uilaunch.jpeg

    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)
    vnc.jpeg

    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

icon8.gif



ENJOY!
 
Last edited:

KingOfThaJungle

Senior Member
Oct 4, 2011
864
687
New York, NY
does injection and/or wep hacking works?

Unfortunately it does not...I know the main purpose running BackTrack is being able to use its Networking Security Tools, but it is based on Ubuntu Lucid, v10.04 LTS, so you're still able to run a fully functional operating system on your mobile phone! ATM its more of a novelty than a practicality but Im hoping they find a way to turn the tables soon ;)!
 
Last edited:
  • Like
Reactions: >MR.T

donnyevo4g

Senior Member
Jun 25, 2010
179
32
West Caldwell
Question the 10 files that you say to download they can not be extracted? i tryed or am i doing it wrong and when i run commands it fails at bt and says chroot cant execute bin/bash no such file or directory help please!
 

KingOfThaJungle

Senior Member
Oct 4, 2011
864
687
New York, NY
can you still txt and make calls with this?? looks awesome tho

It side loads it, so you still get all your notifications and phone calls, and if you just hit the home button it'll take you back to the android OS, it doesn't NOT replace it

Question the 10 files that you say to download they can not be extracted? i tryed or am i doing it wrong and when i run commands it fails at bt and says chroot cant execute bin/bash no such file or directory help please!

They ALL have to be downloaded into the same location before you can successful extract it. ie, if you have bt.7z.001 - bt.7z.009 and are missing bt.7z.010, it will not work....did you download and flash the zip? There's more steps than just extracting the bt image(10 7zip files), also just a heads up, when flashing the zip make sure to clear both cache and dalvik, or you may get an installation error...let me know if you need additional help
 

donnyevo4g

Senior Member
Jun 25, 2010
179
32
West Caldwell
all ten of the files i downloaded and put into a folder called bt and i flashed the zip and did not get any error message i have 7zip on my pc and it does not even give me the option to extract what am i doing wrong when i right click on the files and go to properties the file type is not a unzippable file
 

KingOfThaJungle

Senior Member
Oct 4, 2011
864
687
New York, NY
all ten of the files i downloaded and put into a folder called bt and i flashed the zip and did not get any error message i have 7zip on my pc and it does not even give me the option to extract what am i doing wrong when i right click on the files and go to properties the file type is not a unzippable file

Gotcha! wasn't really sure what kind of error you were having but if that is it, all you need to do is double click on any one of the files, I used the bt.7z.001, and when it opens, just drag the bt.img file to your desktop, and let it extract! Its not really a zip so thats why it doesn't have an option to extract it in the menu but again just double click on anyone of them and you'll be all good broda!
 

donnyevo4g

Senior Member
Jun 25, 2010
179
32
West Caldwell
ok i got the one file to extract but the others wont now what do i do once i have that image file do i put it in the bt folder and then run commands?
 

KingOfThaJungle

Senior Member
Oct 4, 2011
864
687
New York, NY
ok i got the one file to extract but the others wont now what do i do once i have that image file do i put it in the bt folder and then run commands?

-Yup you got it! They way 7z file work is that it evenly breaks a larger file down into multiple smaller .7z files.
-In this example, the bt.img file is about 486MB. So, 9/10 of the bt.7z files are 50MB each and then the 10th file, holding the remain bytes, is 36MB. So once you have them all downloaded into the same location, you can open ANY one of them and drag its content to the hard drive, and it will extract the entire 486MB, using all of the files. And you only have to do this ONCE, you DON'T have to open each of them and drag all of their content out.
-So yea, now copy the bt.img file to the bt folder located in the /sdcard/external_sd folder, and then copy the entire bt folder to the /sdcard folder instead(Im guessing the ATT version doesn't have an external sd card, cuz the cd /sdcard/bt command is for the /sdcard location and not /sdcard/external_sd, which is where flashing the zip places the bt folder). So in the end you're going to use this /sdcard/bt folder and not /sdcard/external_sd/bt...EDITED..and don't quote me on the .7z file sizes from above, not really sure how large they are cuz looking at the file now in my phone its 3.26GB, I was using 50MB for an easy explanation and arguments sake only, thx...and Im actually gonna update OP w/ the step needing to copy the bt folder from the /sdcard/external_sd location to /sdcard instead
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 8
    -Found this little gem posted in this thread, located under the AT&T Samsung Galaxy S II Android Development Forum. So I decided to installed it on my phone and SURPRISE SURPRISE, turns out it works great on our Epic Touch 4G too :p!
    -Anyways, you can follow the instructions which I've quoted right below, and they are also found in the link above. This installation/setup takes all but 5-10minutes if not less!!! Hardest part, if you wanna call it that(its really just the longest part), is downloading the required files. Once you've downloaded all 10 7zip files into a single location, just open ONE OF THEM and extract it by double clicking it and then dragging the bt.img file to your computer. AND you only have to do this to ONE of the downloaded files, no need to open each of them and drag out the bt.img 10 different times, BUT you do need to have all 10 of them copied into the same folder in order for the full image to extract correctly!
    -Also, the instructions stated to run the following command:
    Code:
    su
    cd /sdcard/bt
    sh installbt.sh
    startbt
    bt
    but they were made for the AT&T version, so on our phones you need to either:
    a)copy the bt folder off of /sdcard/external_sd to /sdcard instead; or
    b)use the following commands instead:
    Code:
    su
    [B]cd /sdcard/external_sd/bt[/B]
    sh installbt.sh
    startbt
    bt
    -If you make use of it, please be sure to thank the originator of it, anantshri, on his thread here, and DooMLoRD on his thread here for assisting in porting it over from the Xperia10 to the SGSII! Good things!
    4sm98j.jpg

    \\----[ 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):

    shell.png



    in GUI:

    gui.jpeg


    phone + BT5 GUI:

    phone.jpg




    [ 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
      uilaunch.jpeg

      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)
      vnc.jpeg

      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

    icon8.gif



    ENJOY!
    1
    does injection and/or wep hacking works?

    Unfortunately it does not...I know the main purpose running BackTrack is being able to use its Networking Security Tools, but it is based on Ubuntu Lucid, v10.04 LTS, so you're still able to run a fully functional operating system on your mobile phone! ATM its more of a novelty than a practicality but Im hoping they find a way to turn the tables soon ;)!
    1
    iv done everything up until step how to launch bt and when i start going threw the commands everything goes smooth until i get to bt when i type bt thats when i get the chroot error message other than that i been able to download files extract files flash file in recovery and my sdcard/bt folder final directory does look the way you have it in the thread am i answering your question now or am i still missing somthing lol

    Nope, we're on the same page now man lol....so su, cd /sdcard/bt, sh installbt.sh, and startbt all go through accordingly but then when asked to enter bt to launch, you get that error...hey do me a favor and just check the bt folder and see if you have all five files and if you could, also post up their sizes so I can compare your's to mine(hey now)...especially bt.img, on my phone its 3.3GB..if using MyFiles, going into the app and scroll down to the BT folder, go in, and then long press on bt.img and select details, it should read 3.3GB(3,501,000,000 bytes)
    1
    correct when i bt i get the chroot error and here r the sizes as per section

    sdcard/bt/bt: size 660 bytes

    sdcard/bt/bt.img: size 1.74gb ( i guess thats the problem why is the img smaller then yours)

    sdcard/bt/installbt.sh: size 1.02K

    sdcard/bt/startbt: size 1.12K

    sdcsard/bt/stopbt: size 820 bytes

    ---------- Post added at 03:20 PM ---------- Previous post was at 03:12 PM ----------

    think i got it i ran out of space on my primary sdcard so it only copied some of the image over i just cleared alot of space and am copying the image over now so hopefully it will all go over now then il run commands again and then get back to you

    ---------- Post added at 03:53 PM ---------- Previous post was at 03:20 PM ----------

    YES!!!!!!!!!!! IT WORKED im all set im gonna try and run it now but i got past that error message thanks alot man il make sure to hit the thanks button for you and PM me when you get a chance i want to go over the Ubuntu 11.10 project with you so we can work on it together and get it finished for these good people once again thanks and good work
    1
    Only way i got this working

    was to use curioct's method located here http://xdaforums.com/showthread.php?t=1162662&page=16. "copy busybox to /data/local/tmp/bt (or create a symlink here) make sure it has read write excute perms (chmod 0755 or root explorer)

    copy bt, startbt and stopbt /system/bin make sure they have read write excute perms

    You can do all this with root explorer/browser and dont even need the install script

    then all you need so do in connect is type three commands

    $su
    #bt
    #startbt

    simple if you want to install my scripts which include the path fix and the android file system premounted within Back|track but you don't want this to run from the external sd card simply use a text editor and open the startbt script edit the line that reads :-

    export kit=/sdcard/external_sd/bt

    to read:-
    export kit=/sdcard/bt

    if you have the default ones they point to the internal sd card anyway but last I had them they had an export path bug in them which lead to problems inside back|track

    if you want my advice given the simplicity of these tasks, if you use my scripts I would highly recommend putting a # in front of the three lines that begin:- $bboxpath mount --bind this will comment them out (prevent them from running in the script)

    This will for the time being stop back|track mounting your android internal / external and USB drives thus preventing you acidentally screwing them up from within back|track

    given that this stuff is basic linux command line you might want to consider learning more of it before playing with back|track, just a thought." Hope this helps others..