UBUNTU and/or BACKTRACK on the I9300 (Samsung Galaxy S3)

Search This thread

tiborr

Member
Sep 9, 2007
30
24
============================================================
SAMSUNG GALAXY S3 with UBUNTU
============================================================
So I really wanted to try and use Ubuntu on my Samsung Galaxy S3, cause I already placed an order for the MHL cable so that i can hook it up to my monitor. (and also a docking station). And I think thats just awesome.

Now my plan is to show UBUNTU for android (ubuntu.com) in progress by Canonical that the SAMSUNG GALAXY S3 is the right phone for this.

And beside i think this phone has a lot of potentional.
I even like the idea that in a few months maybe some genius can figure out a dual boot system between "android & windows 8 ARM".

But now I had alot of problems figuring out how to get ubuntu to work on my Samsung Galaxy S3.
So I decide to write a short how-to.

============================================================
HOW-TO
============================================================
Now first of all, credits go to the maker "zacthespack" of the following app "ubuntu installer"
As he suggests please first try the free version and after that buy the paid version since you have more options...

IMPORTANT:
I wrote this thread for the Samsung Galaxy S3 and I will call this further SGS3.

Your SGS3 needs to be rooted and I also installed the OMEGA v4.0 rom.
Since you need a kernel with loop support.
(maybe the insecure kernel with you'll get with the rooting is also good enough, I am not sure)

ALSO
Be sure to have usb debugging on.
138800-android-debug-app-on-phone-2.jpg


Further more:
THIS IS BASED ON VNC VIEWER AND REQUIRES INTERNET PREFERABLE WIFI. THIS IS NOT A FULL EXPERIENCE LIKE ON YOUR COMPUTER. HOWEVER THIS IS A TASTE OF THE FUTURE TO COME.


STEP 1:

So when installed, run the "ubuntu installer" app and it will show you that you need 3 more apps:
- VNC Viewer
- Android Terminal Emulator
- Busybox

STEP 2:

After installing those you can download the ubuntu file.
But not the script!
Now the orginal script is the problem, somehow this script cannot be friends with the SGS 3.

STEP 3:

So I re-wrote the one from "zacthespack"...
ubuntu.sh
click to download.

STEP 4:

This script and the ubuntu file you chose to download (small, medium or large) you put these in to a folder called "Ubuntu" place this folder in your "home map" of your phone. This map is called "SDCARD" not to confuse with your "extSDCARD" which is your external sdcard.

STEP 5:

now run the terminal and type:
Su
cd /sdcard/ubuntu
sh ubuntu.sh

Screenshot_2012-06-09-02-14-44.png


after that you will get alot of text and it will ask you which resolution you want.
Well since the SGS 3 is a 720p phone you type:
1280x720 now you get alot of text again.

Then the terminal will ask the following:
Screenshot_2012-06-09-02-14-52.png

safe this as default? (y/n)

Well "N" which means "no" and "Y" means "yes" ofcourse.
So this means it will remember the resolution etc.

Then you'll get this screen:
Screenshot_2012-06-09-02-15-18.png


sometimes the terminal will ask you to put in a password 2 times
password is : "ubuntu"

proceed to the next step

STEP 6:

go back to your homescreen and open the VNC viewer.
I type following:
Screenshot_2012-06-09-02-15-45.png

Screenshot_2012-06-09-02-15-53.png


click CONNECT... and voila
if you did everything right you will get this:

Screenshot_2012-06-09-02-16-08.png

this is a picture of ubuntu on my phone... so you see it works...

============================================================
Questions:
============================================================

Please on this thread...

and if anyone wants a short movie seeing it actually work, please ask then I will upload this...
 

Attachments

  • Screenshot_2012-06-09-02-14-44.jpg
    Screenshot_2012-06-09-02-14-44.jpg
    37.7 KB · Views: 3,368
  • Screenshot_2012-06-09-02-14-52.jpg
    Screenshot_2012-06-09-02-14-52.jpg
    40.5 KB · Views: 3,145
  • Screenshot_2012-06-09-02-15-18.jpg
    Screenshot_2012-06-09-02-15-18.jpg
    47.3 KB · Views: 3,120
  • Screenshot_2012-06-09-02-15-45.jpg
    Screenshot_2012-06-09-02-15-45.jpg
    28.9 KB · Views: 3,150
  • Screenshot_2012-06-09-02-15-53.jpg
    Screenshot_2012-06-09-02-15-53.jpg
    23.8 KB · Views: 3,076
  • Screenshot_2012-06-09-02-16-08.jpg
    Screenshot_2012-06-09-02-16-08.jpg
    14.2 KB · Views: 3,640
  • 138800-android-debug-app-on-phone-2.jpg
    138800-android-debug-app-on-phone-2.jpg
    28.1 KB · Views: 3,176
Last edited:

tiborr

Member
Sep 9, 2007
30
24
feedback

BTW this is my first how-to thingy...
so if anyone has something to add or some feedback let me know...

Anyone?
How can i keep the picture from disepearing???
 
Last edited:

fylim

Senior Member
Sep 29, 2007
689
72
Auckland
Can the s3 wifI support injection mode in backpack for use with reaver ? That would be awesome.

Sent from my GT-I9300 using XDA
 

Cetin

Senior Member
Nov 6, 2007
245
21
Thank you so much ! This is the only advantage of such a great hardware that ain't needed on a phone.
But as a fully working computer always to go it's great.
I will try later when everything is tested because I'm not developing just using.

Please keep your nice tutorial alive!


Gesendet von meinem GT-I9300 mit Tapatalk 2
 

123shree

Senior Member
Dec 17, 2010
419
122
Mysore, Karnataka
A small problem.

Ok, downloaded and extracted all the ubuntu stuff in /sdcard/ubuntu and also placed your script in the same folder but when i go to the terminal and type sh ubuntu.sh it shows me some errors
Code:
ubuntu.sh[6]:cut: not found
ubuntu.sh[17]: synatx error: 'If' unmatched

here's the screenshot
123shree


Using Omega v4.0
Thank you :)
 
Last edited:
  • Like
Reactions: D1A30LU5

Saull

Member
Aug 14, 2011
28
2
What MHL cable and docking station have you ordered because apparently a working MHL cable is yet to be released?
 

tiborr

Member
Sep 9, 2007
30
24
Ebay friend... now the s3 uses a higher MaH then for example the s2.
So you need to buy a mhl for s3 and not someone who advertises for "mhl for s2, nexus and s3" this wont work.
 
  • Like
Reactions: S7evinK

PauuuuuL

Member
Oct 10, 2010
6
0
Ok, downloaded and extracted all the ubuntu stuff in /sdcard/ubuntu and also placed your script in the same folder but when i go to the terminal and type sh ubuntu.sh it shows me some errors
Code:
ubuntu.sh[6]:cut: not found
ubuntu.sh[17]: synatx error: 'If' unmatched

here's the screenshot
123shree


Using Omega v4.0
Thank you :)

Same Problem Here.
 

tiborr

Member
Sep 9, 2007
30
24
Ok, downloaded and extracted all the ubuntu stuff in /sdcard/ubuntu and also placed your script in the same folder but when i go to the terminal and type sh ubuntu.sh it shows me some errors
Code:
ubuntu.sh[6]:cut: not found
ubuntu.sh[17]: synatx error: 'If' unmatched

here's the screenshot
123shree


Using Omega v4.0
Thank you :)

Do you have usb debugging on?
And do you have busybox installed?
And the busybox i refered to in the how-to other versions of busybox do not seem to work with this.
Did you use my script?
 

jee82

Senior Member
Apr 21, 2010
121
14
Same problem. Didn't install busybox from app, got one from the market.
I also only got this error message:

"ubuntu.sh[17]: synatx error: 'If' unmatched 1"

Usb debugging is enabled.. im running Omega v3
 
Last edited:

tiborr

Member
Sep 9, 2007
30
24
Same problem. Didn't install busybox from app, got one from the market.
I also only got this error message:

"ubuntu.sh[17]: synatx error: 'If' unmatched"

Usb debugging is enabled.. im running Omega v3


I am not familar with this error.
However i would suggest to remove busybox and uninstall the busybox app and VNC viewer. Be sure to use the same as I described.

And I used UBUNTU large image and my script.

If it still does not work.
Please remove all above and the ubuntu installer and image etc..
And try backtrack installer, but then use the script which is supplied with the installer.
This mostly works right away. There is something odd about ubuntu v12.
But you should get it to work, like i did.
 
Last edited:

tcd74

Member
Dec 4, 2011
23
6
Copenhagen
I would just tell, that i run ubuntu on my galaxy s 3 with just the cf kernel. No need to run omega rom, but it maybe runs better with omega if it uses less ram, then stock. I also have the ubuntu image on the external sdcard and i runs alright from there, again it may run faster from the internal SD - so instead of writing cd sdcard/ubuntu i just write cd mnt/extSdCard/ubuntu

Just wanted to tell that it's possible to run with stock rom and from external SD(3,5 GB is alot on the internal SD when i only have the 16GB version)

Sent from my GT-P1010 using xda premium
 
  • Like
Reactions: fbloise

AdinK

Member
Nov 15, 2011
15
7
Brisbane, QLD, Australia
"ubuntu.sh[17]: synatx error: 'If' unmatched" Problem

I think you are receiving this error because the Ubuntu image is inside ubuntu1204-v2-full (or your corresponding folder) not inside /sdcard/Ubuntu. Just move the image from that folder to /sdcard/Ubuntu and it should work.
 

torsrex

Senior Member
Dec 12, 2010
407
86
Same problem here and I have copied the files to the right folder. I'm running stock rom with the insecure kernel and busybox installed using busybox installer.
 

LawlietHD

Member
Jan 1, 2012
26
2
How well does it run on the phone? I wanna do this so i can finally go play some java games on the net xD
 

Top Liked Posts

  • There are no posts matching your filters.
  • 23
    ============================================================
    SAMSUNG GALAXY S3 with UBUNTU
    ============================================================
    So I really wanted to try and use Ubuntu on my Samsung Galaxy S3, cause I already placed an order for the MHL cable so that i can hook it up to my monitor. (and also a docking station). And I think thats just awesome.

    Now my plan is to show UBUNTU for android (ubuntu.com) in progress by Canonical that the SAMSUNG GALAXY S3 is the right phone for this.

    And beside i think this phone has a lot of potentional.
    I even like the idea that in a few months maybe some genius can figure out a dual boot system between "android & windows 8 ARM".

    But now I had alot of problems figuring out how to get ubuntu to work on my Samsung Galaxy S3.
    So I decide to write a short how-to.

    ============================================================
    HOW-TO
    ============================================================
    Now first of all, credits go to the maker "zacthespack" of the following app "ubuntu installer"
    As he suggests please first try the free version and after that buy the paid version since you have more options...

    IMPORTANT:
    I wrote this thread for the Samsung Galaxy S3 and I will call this further SGS3.

    Your SGS3 needs to be rooted and I also installed the OMEGA v4.0 rom.
    Since you need a kernel with loop support.
    (maybe the insecure kernel with you'll get with the rooting is also good enough, I am not sure)

    ALSO
    Be sure to have usb debugging on.
    138800-android-debug-app-on-phone-2.jpg


    Further more:
    THIS IS BASED ON VNC VIEWER AND REQUIRES INTERNET PREFERABLE WIFI. THIS IS NOT A FULL EXPERIENCE LIKE ON YOUR COMPUTER. HOWEVER THIS IS A TASTE OF THE FUTURE TO COME.


    STEP 1:

    So when installed, run the "ubuntu installer" app and it will show you that you need 3 more apps:
    - VNC Viewer
    - Android Terminal Emulator
    - Busybox

    STEP 2:

    After installing those you can download the ubuntu file.
    But not the script!
    Now the orginal script is the problem, somehow this script cannot be friends with the SGS 3.

    STEP 3:

    So I re-wrote the one from "zacthespack"...
    ubuntu.sh
    click to download.

    STEP 4:

    This script and the ubuntu file you chose to download (small, medium or large) you put these in to a folder called "Ubuntu" place this folder in your "home map" of your phone. This map is called "SDCARD" not to confuse with your "extSDCARD" which is your external sdcard.

    STEP 5:

    now run the terminal and type:
    Su
    cd /sdcard/ubuntu
    sh ubuntu.sh

    Screenshot_2012-06-09-02-14-44.png


    after that you will get alot of text and it will ask you which resolution you want.
    Well since the SGS 3 is a 720p phone you type:
    1280x720 now you get alot of text again.

    Then the terminal will ask the following:
    Screenshot_2012-06-09-02-14-52.png

    safe this as default? (y/n)

    Well "N" which means "no" and "Y" means "yes" ofcourse.
    So this means it will remember the resolution etc.

    Then you'll get this screen:
    Screenshot_2012-06-09-02-15-18.png


    sometimes the terminal will ask you to put in a password 2 times
    password is : "ubuntu"

    proceed to the next step

    STEP 6:

    go back to your homescreen and open the VNC viewer.
    I type following:
    Screenshot_2012-06-09-02-15-45.png

    Screenshot_2012-06-09-02-15-53.png


    click CONNECT... and voila
    if you did everything right you will get this:

    Screenshot_2012-06-09-02-16-08.png

    this is a picture of ubuntu on my phone... so you see it works...

    ============================================================
    Questions:
    ============================================================

    Please on this thread...

    and if anyone wants a short movie seeing it actually work, please ask then I will upload this...
    2
    Hi all I had same problem line 17 all I did was to edit the ubuntu.sh file at line 17 looks like this

    if [ -b /dev/block/loop255 ]; then

    change it to this

    if [ -b /dev/block/loop255 ];then

    Just remove the gap between the ; and then
    Then save it and it should work hope this helps it worked for me


    Sent from my GT-I9300 using Tapatalk 2
    1
    A small problem.

    Ok, downloaded and extracted all the ubuntu stuff in /sdcard/ubuntu and also placed your script in the same folder but when i go to the terminal and type sh ubuntu.sh it shows me some errors
    Code:
    ubuntu.sh[6]:cut: not found
    ubuntu.sh[17]: synatx error: 'If' unmatched

    here's the screenshot
    123shree


    Using Omega v4.0
    Thank you :)
    1
    Ebay friend... now the s3 uses a higher MaH then for example the s2.
    So you need to buy a mhl for s3 and not someone who advertises for "mhl for s2, nexus and s3" this wont work.
    1
    I would just tell, that i run ubuntu on my galaxy s 3 with just the cf kernel. No need to run omega rom, but it maybe runs better with omega if it uses less ram, then stock. I also have the ubuntu image on the external sdcard and i runs alright from there, again it may run faster from the internal SD - so instead of writing cd sdcard/ubuntu i just write cd mnt/extSdCard/ubuntu

    Just wanted to tell that it's possible to run with stock rom and from external SD(3,5 GB is alot on the internal SD when i only have the 16GB version)

    Sent from my GT-P1010 using xda premium