Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
keenerb
Old
(Last edited by keenerb; 18th October 2010 at 03:59 AM.)
#1  
Senior Member - OP
Thanks Meter 1
Posts: 205
Join Date: Jan 2008
Default [GUIDE] Chrooting into a Debian environment works fine

http://modmymobile.com/forums/403-mo...root-cliq.html

These basic instructions work, although I havent done anything beyond mounting /system rw, mounting debian partition, and chrooting into it.

I had to change the remount command to use /dev/mmcblk0p25, and to mount /dev/vold/179:34 instead of 179:2 for the debian environment.

No big surprise that it works, this seems to be pretty easy to do on just about any rooted android device.

*edit*

OK, it looks great. Got dropbear running, ssh'd in with connectbot, everything is just peachy.

Started a VNC server, and can connect to the local debian chroot and run Iceweasel (although its somewhat slow.)

Pretty sweet.

*/edit*
 
funkeee
Old
(Last edited by Mikey; 18th October 2010 at 01:48 PM.)
#2  
funkeee's Avatar
Senior Member
Thanks Meter 13
Posts: 292
Join Date: May 2010
Nnnnyem


 
keenerb
Old
#3  
Senior Member - OP
Thanks Meter 1
Posts: 205
Join Date: Jan 2008
I'm not exactly certain what that post meant, but I'll clarify what "debian chroot" means on an Android device.

Android, being a Linux-based device that runs a reasonably standard Linux kernel, is capable of executing native ARM binaries from other linux distributions like Debian or Ubuntu.

However, the problem (well, one of many) is that typically NONE of the necessary libraries are installed with the Android OS.

The chroot solves that problem (and others), and allows the android phone to run native ARM Debian apps directly on the phone, like an SSH server, VNC server, nmap, etc. etc.

Basically it's a novelty for most users, but I do use it quite a bit.
 
bled82
Old
#4  
Senior Member
Thanks Meter 8
Posts: 272
Join Date: Nov 2009
Location: Dallas
Quote:
Originally Posted by keenerb View Post
http://modmymobile.com/forums/403-mo...root-cliq.html

These basic instructions work, although I havent done anything beyond mounting /system rw, mounting debian partition, and chrooting into it.

I had to change the remount command to use /dev/mmcblk0p25, and to mount /dev/vold/179:34 instead of 179:2 for the debian environment.

No big surprise that it works, this seems to be pretty easy to do on just about any rooted android device.

*edit*

OK, it looks great. Got dropbear running, ssh'd in with connectbot, everything is just peachy.

Started a VNC server, and can connect to the local debian chroot and run Iceweasel (although its somewhat slow.)

Pretty sweet.

*/edit*
Would you be able to right up a step by step for some reason this is not working for me . im getting errors when i run the ubuntu setup , i tried following the nexus one setup and i also tried a few others , so was wondering what the exact steps you did where also im running the rom off my sdcard the modded thmed one from the dev forum .
 
khaosxiii
Old
#5  
khaosxiii's Avatar
Senior Member
Thanks Meter 0
Posts: 105
Join Date: Feb 2009
Has anyone attempted to run airsnort or equivilant on deb chroot? (Would the installed wifi driver be sufficient or compat?- wonder if the radio can be permisquious)

Cool beanz

Sent from my T-Mobile G2 using XDA App
HTC Magic
256 Swap/512 EXT4 Class 6 8GB
2.22.23.02 Radio
1.33.2005 SPL

HTC Vision
ClockworkMod 2.5.1.2
Virtuous v0.9.0

Saumsung Admire
Rooted 2.3.4
 
keenerb
Old
#6  
Senior Member - OP
Thanks Meter 1
Posts: 205
Join Date: Jan 2008
Quote:
Originally Posted by khaosxiii View Post
Has anyone attempted to run airsnort or equivilant on deb chroot? (Would the installed wifi driver be sufficient or compat?- wonder if the radio can be permisquious)

Cool beanz

Sent from my T-Mobile G2 using XDA App
It looks like it can be put into promiscuous mode.

localhost:/home/xxx# iwconfig eth0 mode monitor
Error for wireless request "Set Mode" (8B06) :
SET failed on device eth0 ; Invalid argument.

localhost:/home/xxx# iwconfig rmnet0 mode monitor
Error for wireless request "Set Mode" (8B06) :
SET failed on device rmnet0 ; Operation not supported.

localhost:/home/xxx# ifconfig eth0 promisc
localhost:/home/xxx# ifconfig eth0
eth0 Link encap:Ethernet HWaddr XXX
inet6 addr: XXX/64 Scope:Link
UP BROADCAST PROMISC MULTICAST MTU:1500 Metric:1
RX packets:103 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5974 (5.8 KiB) TX bytes:984 (984.0 B)


localhost:/home/xxx# ifconfig rmnet0 promisc
localhost:/home/xxx# ifconfig rmnet0
rmnet0 Link encap:Ethernet HWaddr XXXX
inet addr:XXX Bcast:XXX Mask:255.255.255.252
inet6 addr: XXX/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:6697 errors:0 dropped:0 overruns:0 frame:0
TX packets:5909 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6159009 (5.8 MiB) TX bytes:855324 (835.2 KiB)
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
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

Go to top of page...

XDA PORTAL POSTS

One Stop Guide Shop for the Newbie and Dev

It’s been well established that XDA-Developers isthedestination for resources relating to … more

What Happened at Google I/O 2013 – XDA Developer TV

Unless you just emerged from a deep, dark, dank cavern under the Earth, you know … more

Forums Added for the LG Optimus G Pro and Sony Xperia Tablet Z

Not too long ago, we talked about how Sony was continuing its AOSP efforts on … more

Permanent Screen Off for the Visually Impaired

Most of us take the simple act of waking up our devices and having a quick glance at the … more