Go Back   Android Forums > Android Phones > Samsung Galaxy Prevail > Galaxy Prevail - All Things Root
Gamers - Check out our new sister sites!
Nintendo Wii U!    |    OUYA - $99 Android System!

Like Tree5Likes
  • 3 Post By The~Skater~187
  • 1 Post By kristopher5823
  • 1 Post By Zenwafer

test: Reply
 
LinkBack Thread Tools
Old June 28th, 2012, 03:02 PM   #1 (permalink)
Senior Member
Thread Author (OP)
 
The~Skater~187's Avatar
 
Join Date: Oct 2011
Location: Connecticut
Gender: Male
Posts: 1,322
 
Device(s): Prevail}HoneyBread6 /K.K.2.5 w/Ubuntu(chroot) Marquee}MegaTron/Hyper 2.2 w/Ubuntu(chroot) N7}AOKP
Carrier: Your Mom

Thanks: 402
Thanked 434 Times in 255 Posts
theskaterdad187@gmail.com
Default [TUT] Installing Ubuntu For ARM On {GB} Galaxy Prevail In chroot Enviroment Using Windows 7

This is a modified version of the Tutorial found here:
http://androlinux.com/android-ubuntu-development/how-to-install-ubuntu-on-android/

I had to do things a bit different to get it to work correctly.

Custom Kernels using /data to sd/ext WILL NOT WORK! The /data/local directory MUST be on the internal data partition.

These are the few things you will need to install Ubuntu in chroot on your Galaxy Prevail:

-Rooted device
-Busybox 1.19.4(I used this version for testing so I know it works)
-Android VNCServer(free)
-Android Terminal Emulator(free)
-Access to a computer w/ adb
-Samsung USB drivers
-At least a 4gb of free space on your SD card(fat partition)
-KoumaKernel_2.5 or Stock Kernel
(I reccomend Kouma Kernel. The overclock makes a big difference and MUST be in SSM mode or DEFAULT)


Ok here we go:

-First, download the following Ubuntu.zip file (from a preferred mirror), unzip and copy over the whole ubuntu directory to the SD card of your Android smartphone/tablet device:

Download AndroidUbuntu/ubuntu.zip at DownloadAndroidROM.com

(Turn USB storage ON then copy over the Ubuntu folder to the root directory of your SD card.)

1) Again, make sure you have your Android smartphone/tablet “rooted”!

2) You must have Android SDK installed or have access to adb.exe.


3) Make sure your Android phone/tablet is in debugging mode. Go to Settings->Applications->Development and make sure USB Debugging is checked ON.

4) Connect your Android device to your computer via USB cable and set the USB mode to “Just Charge”.


5) Your Android device should be recognized as “ADB Device” under Device Manager. If not, install appropriate drivers.

6) Open up a command prompt by typing “cmd” under Start->Search programs and files.

7) Browse to your SDK directory where you installed the Android SDK or adb.exe:

8) Type “adb devices” to double-check your Android device is recognized.

9) Type “adb shell” to enter the Android shell.
Then type “su” to enter super user mode, then type “cd /sdcard” and “cd ubuntu” to enter the ubuntu directory in your SD card of your Android device.

10) Next, type “sh ubuntu.sh” to run the script which will basically get your Ubuntu image ready to run on your Android smartphone/tablet.
If you get error messages, don’t worry and keep going.


11) Type “bootubuntu” to enter Ubuntu. (Next time you enter Ubuntu, you just need to type “bootubuntu” from your /sdcard/ubuntu directory, no need to run ubuntu.sh again.


-If you got “root@localhost” at this point, congratulations! This means your Android OS comes with loop device support and Ubuntu is now running “chrooted” on top of your Android OS!!!


-However, if you failed at this point, your Android OS probably doesn’t support loop devices, try installing another ROM or compiling your own kernel with loop device support

-Now what you will want to do it edit your sources.list so you can update and install packages.

-So in terminal type: "cd /etc/apt"-Then type: "cat > sources.list", then hit enter and add these repos:(Enter them one at a time and be sure to hit enter after each)

deb Index of /ubuntu karmic main restricted
deb-src Index of /ubuntu karmic main restricted
deb Index of /ubuntu karmic-updates main restricted
deb-src Index of /ubuntu karmic-updates main restricted
deb Index of /ubuntu karmic universe
deb-src Index of /ubuntu karmic universe
deb Index of /ubuntu karmic-updates universe
deb-src Index of /ubuntu karmic-updates universe
deb Index of /ubuntu karmic multiverse
deb-src Index of /ubuntu karmic multiverse
deb Index of /ubuntu karmic-updates multiverse
deb-src Index of /ubuntu karmic-updates multiverse
deb Index of /ubuntu karmic-security main restricted
deb-src Index of /ubuntu karmic-security main restricted
deb Index of /ubuntu karmic-security universe
deb-src Index of /ubuntu karmic-security universe
deb Index of /ubuntu karmic-security multiverse
deb-src Index of /ubuntu karmic-security multiverse
-Then hit Ctrl D twice to save edited the file. (If using android terminal emulator use: Vol_dn+D)

Now your safe to update and install packages. So your next step is to install the rest of the necessary packages you need for this to work.

-So nowin terminal type:"apt-get update"

-Now in terminal type:“apt-get install openssh-server”

-Once openssh-server install is complete, type:"apt-get install tightvncserver"

-After type:"export LANG=en_US.UTF-8"
(This will ensure that the native language is english)

-Next, we will install LXDE (Lightweight X11 Desktop Environment). Although we can use Ubuntu’s default GNOME, LXDE takes up less memory so our GUI access will be faster. (If you like GNOME, you can skip this step though)

-So in terminal type:"apt-get install lxde"

-Next, let’s setup xstartup file so that when TightVNCServer is started, the LXDE runs instead of GNOME:type “cat > /root/.vnc/xstartup”
Then type:cat > /root/.vnc/xstartup
#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
icewm &
lxsession

Then hit Ctrl+D twice.

-Now, let’s start the TightVNCServer:
Type “export USER=root”, enter
Then: “vncserver -geometry 1024×800", enter
(Here, you can change the resolution settings 1024×800 to the resolution of your liking). You will be prompted to make a view-only password, chose no, then create your desktop access password(remember this, you will need it for VNC connection).

Now your TightVNCServer is ready to accept any incoming connections from your phone or computer. Just point to the correct IP address and use port number 5901 to connect.

-Now on your phone, just download the free app “Android-VNC-Viewer” and set the IP address to “127.0.0.1″ and port number 5901, type in the password you set in terminal to connect.

UbuntuARM.png
Ubuntu Karmic Koala w/GNOME running on HoneyBread6/K.K.2.5(SSM w/swap), 946mhz

I would like to thank AndroLinux for the supplied Ubuntu.img and original Tutorial, and Google for helping me solve the problems that were for preventing me from getting this to work. As well as Kouma for his OC/SSM Kernel & most of all The Prevail Community, for all of the break throughs and work that made this possible on our little phones.

If You'd Like to donate: (Not sure why the link wont display correctly)
https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=FSBHTCE4ZMYEQ&lc=US &currency_code=USD&bn=PP%2dDonationsBF%3abtn_donat e_SM%2egif%3aNonHosted
redgs95, Zenwafer and cvic like this.

__________________
~<Remember Thanks Goes A Long Way>~
187MoD-HoneyBread + Genocide-Kernels
The~Skater~187 is offline  
Last edited by The~Skater~187; March 25th, 2013 at 02:17 PM.
Reply With Quote
The Following 6 Users Say Thank You to The~Skater~187 For This Useful Post:
J6Remy (June 28th, 2012), johnny424 (June 28th, 2012), Lordvincent 90 (June 28th, 2012), ninjarabbit (June 28th, 2012), Wizard59 (September 3rd, 2012), Zenwafer (March 12th, 2013)
Sponsors
Old June 28th, 2012, 03:17 PM   #2 (permalink)
Senior Member
 
Lordvincent 90's Avatar
 
Join Date: Oct 2011
Location: grand rapids,mi
Gender: Male
Posts: 3,505
 
Device(s): galaxy prevail, cm7b5, katokernel0.4-ext, Nexus 7, paranoid andriod, Galaxy rush
Carrier: of the deadly t-virus

Thanks: 944
Thanked 1,591 Times in 1,184 Posts
Default

Nice! Very easy to follow, and straight forward.
Nice write up

Oh, and your dl link didn't parse so...
http://downloadandroidrom.com/file/AndroidUbuntu/ubuntu.zip
(no copy paste on tapatalk, lol. PITA lol )
__________________
Y U NO BE SMARTER
ლ(ಠ益ಠლ)
Lordvincent 90 is offline  
Last edited by Lordvincent 90; June 28th, 2012 at 04:21 PM.
Reply With Quote
The Following User Says Thank You to Lordvincent 90 For This Useful Post:
The~Skater~187 (June 28th, 2012)
Old June 28th, 2012, 03:32 PM   #3 (permalink)
Senior Member
Thread Author (OP)
 
The~Skater~187's Avatar
 
Join Date: Oct 2011
Location: Connecticut
Gender: Male
Posts: 1,322
 
Device(s): Prevail}HoneyBread6 /K.K.2.5 w/Ubuntu(chroot) Marquee}MegaTron/Hyper 2.2 w/Ubuntu(chroot) N7}AOKP
Carrier: Your Mom

Thanks: 402
Thanked 434 Times in 255 Posts
theskaterdad187@gmail.com
Default

Quote:
Originally Posted by Lordvincent 90 View Post
Nice! Very easy to follow, and straight forward.
Nice write up

Thanks L.V.
The~Skater~187 is offline  
Reply With Quote
Old June 28th, 2012, 08:41 PM   #4 (permalink)
Member
 
Join Date: Jan 2012
Location: Dahlonega, GA
Posts: 418
 
Device(s): Samsung Galaxy Prevail
Carrier: Not Provided

Thanks: 154
Thanked 177 Times in 97 Posts
Send a message via Yahoo to kristopher5823 Send a message via Skype™ to kristopher5823 Kristopher5823
Default

eh i cant get past the update part lol
__________________
Just Glad to help :....Be nice hit thanks

Donations appreciated but not required
kristopher5823 is offline  
Reply With Quote
Old June 28th, 2012, 08:52 PM   #5 (permalink)
Senior Member
Thread Author (OP)
 
The~Skater~187's Avatar
 
Join Date: Oct 2011
Location: Connecticut
Gender: Male
Posts: 1,322
 
Device(s): Prevail}HoneyBread6 /K.K.2.5 w/Ubuntu(chroot) Marquee}MegaTron/Hyper 2.2 w/Ubuntu(chroot) N7}AOKP
Carrier: Your Mom

Thanks: 402
Thanked 434 Times in 255 Posts
theskaterdad187@gmail.com
Default

Quote:
Originally Posted by kristopher5823 View Post
eh i cant get past the update part lol

What part is giving you problems?
The~Skater~187 is offline  
Reply With Quote
Old June 28th, 2012, 09:18 PM   #6 (permalink)
Member
 
Join Date: Jan 2012
Location: Dahlonega, GA
Posts: 418
 
Device(s): Samsung Galaxy Prevail
Carrier: Not Provided

Thanks: 154
Thanked 177 Times in 97 Posts
Send a message via Yahoo to kristopher5823 Send a message via Skype™ to kristopher5823 Kristopher5823
Default

Quote:
Originally Posted by The~Skater~187 View Post
What part is giving you problems?
01
deb Index of /ubuntu karmic main restricted
02
deb-src Index of /ubuntu karmic main restricted
03
deb Index of /ubuntu karmic-updates main restricted
04
deb-src Index of /ubuntu karmic-updates main restricted
05
deb Index of /ubuntu karmic universe
06
deb-src Index of /ubuntu karmic universe
07
deb Index of /ubuntu karmic-updates universe
08
deb-src Index of /ubuntu karmic-updates universe
09
deb Index of /ubuntu karmic multiverse
10
deb-src Index of /ubuntu karmic multiverse
11
deb Index of /ubuntu karmic-updates multiverse
12
deb-src Index of /ubuntu karmic-updates multiverse
13
deb Index of /ubuntu karmic-security main restricted
14
deb-src Index of /ubuntu karmic-security main restricted
15
deb Index of /ubuntu karmic-security universe
16
deb-src Index of /ubuntu karmic-security universe
17
deb Index of /ubuntu karmic-security multiverse
18
deb-src Index of /ubuntu karmic-security multiverse



this part i am using cmd cause i can just copy and paste ya know and once i add these then try to update get an error saying line 1 doesnt work or somehitng i cant remember for sure i closed it out
kristopher5823 is offline  
Reply With Quote
Old June 28th, 2012, 09:25 PM   #7 (permalink)
Senior Member
Thread Author (OP)
 
The~Skater~187's Avatar
 
Join Date: Oct 2011
Location: Connecticut
Gender: Male
Posts: 1,322
 
Device(s): Prevail}HoneyBread6 /K.K.2.5 w/Ubuntu(chroot) Marquee}MegaTron/Hyper 2.2 w/Ubuntu(chroot) N7}AOKP
Carrier: Your Mom

Thanks: 402
Thanked 434 Times in 255 Posts
theskaterdad187@gmail.com
Default

Quote:
Originally Posted by kristopher5823 View Post
01
deb Index of /ubuntu karmic main restricted
02
deb-src Index of /ubuntu karmic main restricted
03
deb Index of /ubuntu karmic-updates main restricted
04
deb-src Index of /ubuntu karmic-updates main restricted
05
deb Index of /ubuntu karmic universe
06
deb-src Index of /ubuntu karmic universe
07
deb Index of /ubuntu karmic-updates universe
08
deb-src Index of /ubuntu karmic-updates universe
09
deb Index of /ubuntu karmic multiverse
10
deb-src Index of /ubuntu karmic multiverse
11
deb Index of /ubuntu karmic-updates multiverse
12
deb-src Index of /ubuntu karmic-updates multiverse
13
deb Index of /ubuntu karmic-security main restricted
14
deb-src Index of /ubuntu karmic-security main restricted
15
deb Index of /ubuntu karmic-security universe
16
deb-src Index of /ubuntu karmic-security universe
17
deb Index of /ubuntu karmic-security multiverse
18
deb-src Index of /ubuntu karmic-security multiverse



this part i am using cmd cause i can just copy and paste ya know and once i add these then try to update get an error saying line 1 doesnt work or somehitng i cant remember for sure i closed it out
You have to copy and add them one line at a time, plus make sure there is no numbers before the "deb" part of the repository.
The~Skater~187 is offline  
Reply With Quote
The Following User Says Thank You to The~Skater~187 For This Useful Post:
kristopher5823 (June 28th, 2012)
Old June 28th, 2012, 09:40 PM   #8 (permalink)
Member
 
Join Date: Jan 2012
Location: Dahlonega, GA
Posts: 418
 
Device(s): Samsung Galaxy Prevail
Carrier: Not Provided

Thanks: 154
Thanked 177 Times in 97 Posts
Send a message via Yahoo to kristopher5823 Send a message via Skype™ to kristopher5823 Kristopher5823
Default

Quote:
Originally Posted by The~Skater~187 View Post
You have to copy and add them one line at a time, plus make sure there is no numbers before the "deb" part of the repository.
I knew that -_- where is my mind at Thank you
kristopher5823 is offline  
Reply With Quote
Old June 28th, 2012, 09:42 PM   #9 (permalink)
Senior Member
Thread Author (OP)
 
The~Skater~187's Avatar
 
Join Date: Oct 2011
Location: Connecticut
Gender: Male
Posts: 1,322
 
Device(s): Prevail}HoneyBread6 /K.K.2.5 w/Ubuntu(chroot) Marquee}MegaTron/Hyper 2.2 w/Ubuntu(chroot) N7}AOKP
Carrier: Your Mom

Thanks: 402
Thanked 434 Times in 255 Posts
theskaterdad187@gmail.com
Default

Quote:
Originally Posted by kristopher5823 View Post
I knew that -_- where is my mind at Thank you
I updated the op I added the repos and some extra details to clearify things for everyone else.
The~Skater~187 is offline  
Reply With Quote
Old June 28th, 2012, 10:22 PM   #10 (permalink)
Member
 
Join Date: Jan 2012
Location: Dahlonega, GA
Posts: 418
 
Device(s): Samsung Galaxy Prevail
Carrier: Not Provided

Thanks: 154
Thanked 177 Times in 97 Posts
Send a message via Yahoo to kristopher5823 Send a message via Skype™ to kristopher5823 Kristopher5823
Default

working like a charm ty bro
kristopher5823 is offline  
Reply With Quote
Sponsors
Old June 28th, 2012, 10:32 PM   #11 (permalink)
Senior Member
Thread Author (OP)
 
The~Skater~187's Avatar
 
Join Date: Oct 2011
Location: Connecticut
Gender: Male
Posts: 1,322
 
Device(s): Prevail}HoneyBread6 /K.K.2.5 w/Ubuntu(chroot) Marquee}MegaTron/Hyper 2.2 w/Ubuntu(chroot) N7}AOKP
Carrier: Your Mom

Thanks: 402
Thanked 434 Times in 255 Posts
theskaterdad187@gmail.com
Default

Quote:
Originally Posted by kristopher5823 View Post
working like a charm ty bro

You got it fully booted and loaded through vnc?
The~Skater~187 is offline  
Reply With Quote
Old June 28th, 2012, 11:11 PM   #12 (permalink)
Member
 
Join Date: Jan 2012
Location: Dahlonega, GA
Posts: 418
 
Device(s): Samsung Galaxy Prevail
Carrier: Not Provided

Thanks: 154
Thanked 177 Times in 97 Posts
Send a message via Yahoo to kristopher5823 Send a message via Skype™ to kristopher5823 Kristopher5823
Default

Quote:
Originally Posted by The~Skater~187 View Post
You got it fully booted and loaded through vnc?
Yeah even played a few games lol
The~Skater~187 likes this.
kristopher5823 is offline  
Reply With Quote
Old July 15th, 2012, 01:31 AM   #13 (permalink)
Junior Member
 
redgs95's Avatar
 
Join Date: Dec 2011
Location: Elizabethton, TN
Posts: 35
 
Device(s): Samsung Galaxy Prevail HTC Amaze 4g
Carrier: Not Provided

Thanks: 22
Thanked 4 Times in 4 Posts
Send a message via AIM to redgs95 Send a message via Skype™ to redgs95 redgs95@gmail.com
Default

I will give this a try as soon as I get a larger sd card.....
redgs95 is offline  
Reply With Quote
Old March 12th, 2013, 11:46 PM   #14 (permalink)
Junior Member
 
Zenwafer's Avatar
 
Join Date: Feb 2012
Location: Pennsylvania
Gender: Male
Posts: 66
 
Device(s): Samsung Galaxy Rush (SPH-M830), Samsung Galaxy Prevail *retired* (SPH-M820) CT 3.80 SSM
Carrier: Boost

Thanks: 75
Thanked 29 Times in 22 Posts
Default



Wicked.
The~Skater~187 likes this.
Zenwafer is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Phones > Samsung Galaxy Prevail > Galaxy Prevail - All Things Root
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 04:39 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.