Edam (09-20-2011)
Idea to run a full-fledged Linux distro in chroot on Android is not new - there're quite a few blog and forum posts about that (including on tabletroms.com). One typical problem here is that instructions posted in device-specific sections and as pertinent for a specific device. Another problem is that it's still not enough know, niche solution. Many people who'd want to run Linux is skeptical about chroot. I was just like that, until I finally tried it. Well, what I found is that it's very nice, suitable for daily use solution which works NOW. You don't need to wait for someone to hack kernel for your device, you don't need to hope that you would have time for that in a month or two - just start to use it today (as long as your device is rooted). Just small fixes required here and there.
So, to raise awareness of this nice solution and develop and collect features and fixes in one place, suitable for any device, I set up a "ChDistro for Android" project and opening this topic in "General" site section, hoping to catch attention of all interested people across device.
The project is still being set up, but there're already instructions and downloads provided, together with fixes and additional features over common chroot scripts floating around. One reason I also pursued when setting up this project is to do it all in true Open Source manner - so you know how the distro images provide were built, know that they are not altered beyond upstream state (or if they were, how exactly), have source with full history of changes, not some trojanish binaries, etc, etc.
Edam (09-20-2011)
Links to post in device-specific section of setting up chroot environments - all these topic could benefit from ChDistro.
- Gentoo in a chroot (step-by-step instructions) - NotionInk Adam
- Ubuntu in a chroot
Last edited by androq; 09-17-2011 at 03:51 AM. Reason: more links
How full-fledged is it? Does video playback work?
I installed ubuntu in chroot on my Notion Ink Adam tablet once but didn't play around with it enough because I had some problems with the screen resolution.
Thanks.
Annoyed by adverts/tracking/banners?
Adblock Plus (Firefox add-on)
Adblock Plus (Firefox mobile)
Adblock Plus (Filters list)
soren66 (09-18-2011)
Not ultimately full-fledged ;-). Video playback would work, but the whole graphic display is handled via VNC session, which pretty good (at least on 1GHz device) for normal web browsing/doc work, but playback of course will be choppy. But that's the main idea of chroot - you run Linux in parallel with Android, not instead of it. So, you can use Android where it excels (video, games, you PIM data, integration with online services), and Linux distro - for the rest, which includes software development tools, office, and lots of other apps which aren't available on Android or just "toyish" there.
That's typical problem I saw with chroot environments provided on forums - they work and you see that performance is quite good to be usable, but there're myriad of small issues. That poses problems for different types of users: both for those who aren't familiar with Linux interenals, and expect it to "just work" (like Ubuntu nowadays), and for those who're experienced with Linux, but not Android, so don't know what is the best terminal/viewer to use for access, how to workaround issues they may have, etc.I installed ubuntu in chroot on my Notion Ink Adam tablet once but didn't play around with it enough because I had some problems with the screen resolution.
Thanks.
That's exactly why I started the project - to provide environment which would work as seamlessly as possible for everyone. For example, I already patched ConnectBot (terminal app to access Linux console in this case) to work well with external keyboard, which was a common problem (and you need extkbd to do more or less sizable work with Linux).
Regarding screen resolution, that was one of the fixes I did recently - to pre-configure VNC server screen size to match that of physical device, to avoid unneeded scrolling, etc. So far, that was tested exactly on Adam ;-) (may need more work and feedback to make it work across devices).
Some updates: I've been working on elaborating docs beyond Quick Start guide, and tested pre-provided clean-room Ubuntu Jaunty images for issues commonly seen in Ubuntu images of unknown source floating around the net. Some issues are gone (like completely broken X1 keymap), some were investigated and instructions for fixing were described.
First thanks a lot for the project. It would be extremely useful if only I could make it work...
I followed the instructions but I get an error in the bash script: line 31 unexpected "("
Using NI Adam with AC0.3 ROM
Any hint?
Thx
Adam Wifi/3G Pixel Qi - ROM: ICS beta (CM9)
Bookmarks