Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[ Tutotrial ] Install either Ubuntu or Debian in any Android Phone without any app

OP riddz17

6th September 2012, 09:26 AM   |  #1  
OP Junior Member
Flag kolkata
Thanks Meter: 41
 
23 posts
Join Date:Joined: Jun 2011
More
This is a Tutorial to install either Ubuntu or Debian in any Android mobile without using any app


Quote:


* Installing Ubuntu or Debian Linux does not format your Android OS or change anything to your phone.
The Operating Systems run over the underlying Android OS which continues to function as normal



Choosing your Linux OS:

Quote:

There are few things you must be aware of before installing Ubuntu/Debian on youe Android Phone

Ubuntu does not support earlier ARM CPUs like the ones used in the Motorola Cliq. Samsung Galaxy Fit (ARMv6), Samsung Galaxy Y, etc.


( Reason behind this is , Your Android OS Kernel must support loop devices. Most newer Android smartphones/tablets come with this support so we can mount our Ubuntu image as a loop device. If not, you will either have to build your own kernel with support for loop devices or you can try an aftermarket ROM for your phone as most aftermarket ROMs come with support for it. )

You need at least an ARMv7 CPU like the kind found in the Motorola Droid, Samsung Galaxy S,HTC EVO 3D, Sony Experia Play, etc. most newer phones (Hummingbird, Snapdragon, Tegra2, etc.).So you can Install Ubuntu if you have ARMv7 or newer Processor.

If you have ARMV6 or any other moderate Processor don't be sad, because Debian supports the CPU on practically all Android devices, so if you prefer Debian, or you can't run Ubuntu, choose the Debian download link.

* If you're not sure what CPU your device has, look up your device on http://pdadb.net/, click the link under CPU, and read the line for "Supported Instruction Set(s)".

e.g. : My Phone which is a " Samsung Galaxy Fit" uses ARMV6 Instruction Sets.






Pre-Requirements:

Hardware Required:

an Android Phone

SD Card with more than 2GB of free Space

Android root environment:

Most important! Your Android device should be “rooted” because you need root access to run Ubuntu/Debian off your Android. If your device is not rooted you have to root your device.


Quote:

Linux Operating System:

Download suitable OS from the following Link:



Ubuntu 11.04 (Natty Narwhal)

linux.ubuntu-natty.tar.bz2 Ubuntu 11.04 (Natty)



Ubuntu 11.10 Oneiric Ocelot

linux.ubuntu-oneiric.tar.bz2 Ubuntu 11.10 (Oneiric)





Debian 6.0 Squeeze

linux.debian-squeeze.tar.bz2 Debian 6.0 (Squeeze)

Quote:

Applications Required:

BusyBox Installer



A terminal emulator like Better Terminal Emulator ( Recommended ) or Terminal Emulator.



Optional Apllications:

androidVNC

Or

ConnectBot


Procedure ----------------------------------------------->

Quote:

Step 1:

(Mount the SD card on your computer.)

Extract the .tar.bz2 file you downloaded to your SD card. You should now have a folder named "linux" on the root of your card.

(Unmount the SD card.)

Open Busybox Installer, and install Busybox.

Open Better Terminal Emulator, and install Better Terminal Emulator.




Quote:

Step 2:

Open your terminal emulator. (If using ConnectBot, connect to 'local', not 'ssh'.)

Run the following commands:

Code:
su




( If Prompt for Superuser Request then allow )

Code:
cd /sdcard/linux

sh install.sh




If you don't see any errors, Linux is now installed.




Quote:

Step 3:

Open your terminal emulator.

To start a chroot session


Code:
su

linux




To start the SSH server

Code:
su

linux ssh



You can then use ConnectBot (SSH: user@localhost) on your device, or any SSH client to connect to your device. See Login Information, below.





Quote:

To start a VNC session

( Firest you need androidVNC to be installed , then type the following in terminal )

Quote:


Code:
su

linux vnc




The first time you run VNC, it will prompt you to create a VNC password.



You can then use androidVNC (host: localhost port: 5901), or any VNC client to connect to your device.

Configure The VNC App as follows:






Note: The default desktop environment is icewm. If you wish to replace it, for example, with LXDE:

Run the following as root in Linux:


Code:
apt-get autoremove icewm- lxde+


Secure your Log in Password:

Please remember to change these passwords if you are planning on using the SSH server. Malicious people can do Very Bad things to your device if you don't.

There are two accounts included in the images:

root

Password:cheesecake

user

Password:dessert

After a successful connection to host you will be able to use Ubuntu / Debian in graphical interface just like in your PC ! It will keep your Android OS as it is and just run in the upper layer over it

Quote:

These are some of the screen shots taken from my Samsung Galaxy Fit!






Linux vs Linux Terminal Emulator :

Terminal Emulator only Emulates Linux terminal, but after Linux Installation you can get full features; more than just the limited commands which runs on Android shell rather than Linux Shell.

Please Leave your Feedback and Queries below. Thank You




The Following 33 Users Say Thank You to riddz17 For This Useful Post: [ View ]
10th September 2012, 01:24 AM   |  #2  
G.Galante's Avatar
Senior Member
Flag Italy, Friul!
Thanks Meter: 105
 
201 posts
Join Date:Joined: Jan 2012
More
Quote:
Originally Posted by riddz17

This is a Tutorial to install either Ubuntu or Debian in any Android mobile without using any app

Nice, i have tried for my Galaxy Ace so with ARM V6 too, but the terminal emulator gave me error in the step 3 and 4
The Following User Says Thank You to G.Galante For This Useful Post: [ View ]
25th October 2012, 02:25 PM   |  #3  
Senior Member
Imphal
Thanks Meter: 97
 
1,174 posts
Join Date:Joined: Mar 2009
error not working
12th November 2012, 03:27 PM   |  #4  
Junior Member
Thanks Meter: 2
 
17 posts
Join Date:Joined: Nov 2012
More
I'm getting about a dozen errors in the install process, all of which seem to relate to file permissions.
4th December 2012, 04:32 PM   |  #5  
OP Junior Member
Flag kolkata
Thanks Meter: 41
 
23 posts
Join Date:Joined: Jun 2011
More
Exclamation
Quote:
Originally Posted by G.Galante

Nice, i have tried for my Galaxy Ace so with ARM V6 too, but the terminal emulator gave me error in the step 3 and 4

what kind of error could you please specify??

First of all check is your phone rooted?
The Following User Says Thank You to riddz17 For This Useful Post: [ View ]
5th December 2012, 05:55 PM   |  #6  
swordfish's Avatar
Senior Member
Thanks Meter: 22
 
143 posts
Join Date:Joined: Jul 2012
More
when I type su
sh install.sh
there are many error like dir.. not found help me...

Sent from my HTC Explorer A310e using xda app-developers app
9th December 2012, 07:20 PM   |  #7  
Senior Member
Flag Pittsburgh
Thanks Meter: 17
 
250 posts
Join Date:Joined: Dec 2007
More
Quote:
Originally Posted by sateesh907

when I type su
sh install.sh
there are many error like dir.. not found help me...

Sent from my HTC Explorer A310e using xda app-developers app

worked for me. I tried to install from the microsd card (sdcard-ext) but i got errors. Once i moved the files to the phones memory (sdcard) it worked like a charm.

note: I am using Debian 6.0 Squeeze
Last edited by dantegl36; 9th December 2012 at 07:29 PM.
The Following User Says Thank You to dantegl36 For This Useful Post: [ View ]
13th December 2012, 09:52 AM   |  #8  
Senior Member
Flag Zagreb-Karlsruhe
Thanks Meter: 36
 
165 posts
Join Date:Joined: Dec 2010
More
Sent from my GT-I9000 using Tapatalk 2
Attached Thumbnails
Click image for larger version

Name:	uploadfromtaptalk1355388743434.jpg
Views:	4525
Size:	106.6 KB
ID:	1559597  
14th December 2012, 01:11 AM   |  #9  
Member
Thanks Meter: 12
 
99 posts
Join Date:Joined: Feb 2011
Quote:
Originally Posted by ivke101

Sent from my GT-I9000 using Tapatalk 2

I get the same error. Anyone know how to fix it?
14th December 2012, 04:16 PM   |  #10  
Junior Member
Thanks Meter: 3
 
2 posts
Join Date:Joined: Jun 2012
hey guys
Thanx to the author of this forum on debian on android. I had the same problem you see in the error logs above. the problem is between regular "mount" command and busybox "mount". you need to use the busybox mount. so I added the word busybox infront of every mount word in the script. eg. busybox mount -o , rw /system remount. the alternative is to delete the mount found on /system/bin so that the terminal will use the busybox one automatically on /system/xbin.

The Following 3 Users Say Thank You to mundui007 For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Tags
install ubuntu/debian, linux
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes