Linux Installer : Easy Way to Install Debian/Ubuntu on Android
Linux Installer can be downloaded here and quick tutorial here. After download Linux Installer from Market,
- lets open it end click menu button end setup,
- then choose Distribution (Debian/Ubuntu) and version (example:Debian Lenny/Squeeze) .
- Then fill File size up to you (default is 500mb, if you will install GUI you should fill it with bigger size)
- Leave another setting to default, then close setting it will see like this:
- Then click create target loop, after that finish click format loop, and mount loop, after that it will see like this:
- Click install in loop and it will download .deb package from repository server and install it, how long time that it need is dependend on your internet connection and your device capability. After installation finish you can run it with terminal. You can use Connecbot terminal or adb shell.
$ linuxchroot
- How to add GUI (LXDE desktop)
first you need to update package
root@Galoula-ARMEL# apt-get update
root@Galoula-ARMEL# apt-get install lxde
- How to show LXDE GUI on Android VNC
- First install Android VNC from market then
- install tightvncserver on Debian/Ubuntu (on Android device not your computer)
root@Galoula-ARMEL# apt-get install tightvncserver
- How to add LXDE profile on tightvncserver lets write:
root@Galoula-ARMEL# echo ‘#!/bin/sh’ >> /root/.vnc/xstartup
root@Galoula-ARMEL# echo ‘xrdb $HOME/.Xresources’ >> /root/.vnc/xstartup
root@Galoula-ARMEL# echo ‘xsetroot -solid grey’ >> /root/.vnc/xstartup
root@Galoula-ARMEL# echo ‘icewm &’ >> /root/.vnc/xstartup
root@Galoula-ARMEL# echo ‘lxsession’ >> /root/.vnc/xstartup
- too start tightvncserver (i use 320×240 aka ldpi device, lets change it depend on your Android Device)
root@Galoula-ARMEL# vncserver -geometry 320×240
(you will be asked password, set it exampe 000000 )
- then open Android VNC and fill it setting like that:
Nickname : linuxchroot
pasword : 000000
Adress : 127.0.0.1
Port : 5901
Username : linuxchroot
- then click connect and lets enjoy that
addition :
u can also install lxde offline , by download lxde pakage and its dependencies on your computer then transfer them to debian armel and on debian armel terminal:
# dpkg -i *.deb to install
but before it , u must get list of lxde dependencies with this (on debian armel terminal):
# apt-get --print-uris --yes install lxde | grep ^\' | cut -d\' -f2 > lxde.txt
Posted on September 10, 2011, in Android, Galaxy Mini, Linux, Ubuntu. Bookmark the permalink. 57 Comments.












Wow, can this “linux installer” save for Samsung Galaxy Mini Asian Rom??? If you don’t mind, can you show me how to install openbox instead of lxde???
Yes it save for Samsung Galaxy Mini Asian Rom, this app just create linux.loop on sdcard then mount it (linux.loop) on /data/local/mnt/Limux om Android devices, then run it with linuxchroot command
as for as i know to install LXDE it need Openbox as it dependencies, but i dont know to switch desktop manager (LXDE with Openbox) in Linux Installer,
Wih, bisa juga install debian di andro.. coba deuh .. ntr. thank infonya
sama2
i dont got sucess trying it on my motorola defy =(
What kind of error that you got?(sorry for my English)?
http://imageshack.us/photo/my-images/830/screenshot1320848724602.png/
http://imageshack.us/photo/my-images/249/screenshot1320848704414.png/
http://imageshack.us/photo/my-images/31/screenshot1320848692447.png/
i got used the cyanogen mod 7.1 with android 2.3.7 by quarx last nigthly 111109
http://forum.xda-developers.com/showthread.php?t=1033654
btw what distribution and version which you install ? Debian / Ubuntu? version?
i have got error to when i try install Ubuntu Natty, debootstrap error too, it may be similar to your problem, then i install Debian Squeeze and it work without error, i recommend you to try another distribution and version, and i recommend Debian Squueze because i have tried it before and it was succes
btw about :
i dont know much about it, but about debootstrap failed, it can be read on :
http://bebas.ui.ac.id/v17/au/csiro/datamining/debianbook/book.pdf
http://www.debian.org/doc/manuals/debian-reference/ch09.en.html#_chroot_system
on your image there are error statement like this:
can not install into target ‘/data/local/mnt/Linux’ mounted with noexec or nodev
debootstrap: line 425: cant create /data/local/mnt/Linux/test-dev-null:permission denied
may be debootstrap error in line 425 so debootstrap cant create /data/local/mnt/Linux/test-dev-null because “permission denied”
debootstrap is used to create a Debian base system from scratch, without requiring the availability of dpkg or apt. It does this by downloading .deb files from a mirror site, and carefully unpacking them into a directory which can eventually be chrooted into.
about your CM7 motorola Defy kernel, i dont know about it, i do apologize.. but i try this Linux Installer on CM7 too (Galaxy Mini),
i pray that you can succes install it..
now i got updated the linux installer (this only update if my lcd density is 240)
and now i got this error
http://img580.imageshack.us/img580/6163/screenshot1320853050080.png
kernel features is not know because the /proc/config.gz file is not found!
“now i got updated the linux installer (this only update if my lcd density is 240)
and now i got this error
kernel features is not know because the /proc/config.gz file is not found!”
try to backup it with titanium backup then uninstall it, then reinstall it again, i dont know about it, i do apologize
hey man what to enter in the connectbot when opening the first time? i know its a noob question… what to enter “username@hostname” ? please reply
# linuxchroot
it is a command on Android system that will open Debian / Ubuntu shell username@hostname automatically..
Ive tried this with squeeze, however it doesnt show the desktop at all. it shows an x pointer and a grey screen. any ideas?
Have u install lxde ?
yes mate. i installed that and left it installing. it just doesnt show up at all.
also tried with stable and only get a blank background. the gui taskbar does not show
Linux Chroot app dont show GUI, to show its GUI you must use Android VNC app, and in Ubuntu/Debian in linuxchroot you must install tightvncserver to emulate it
tried using vnc and it didnt work. i did every little instruction given. hell i tried it more than once. nothing
when u type
# vncserver -geometry 320×240
are there some error?
nope. no error what so ever
oh and the linux.loop filesize is set to 1000mb, so i know its not a space issue
Ok good luck
,
i need a miracle more than luck man. even with a loop file that size it wont show the gui. its really got me puzzled
oh yeah. one more post. any idea which ubuntu install works best and will actually have the packages i need as none seem to have vnc in the distro.
VNC Ubuntu package?
yeah. it says it cannot find it. will contact the makers of linux installer later
vnc4server for vnc on Ubuntu repo
btw sorry my English is very bad
managed to get it running. i did it a different way for now.
used
# startlxde
#vncserver -geometry (resolution)
i’d like to know how to save that into debian so it runs automatically for vnc client
Wow great
May be by add it to startup
When I put below line
“apt-get install lxde”
I get unable to locate package
I installed Ubuntu Natty
Please help
is it has error messages? what is it (error messages)?
I figured it out, lol. But got another problem
When I connect with VNC I get an empty gray screen and a pointer, but nothing else.
you must run lxde on tightvncserver first , then run VNC Android
nvm I got it XD LOL
I had forgotten to configure tightvcnserver
Thanks !!
Now I want to install LXDE on Ubuntu haha
Ubuntu option can’t find TightVNCServer
any ideas?
actually it does not even install lxde. I tried with Ubuntu-desktop and it seems to install with some errors.
what kind of error it is? what error messages on terminal when you install lxde?
if you dont have tightvncserver before:
# apt-get install tightvncserverIt says that it could not find the package for both of them. It works on Debian, but with Ubuntu it just can’t find the packages.
i had some issue, so i use Debian
may be , there are something in /etc/apt/sources.list to change or fix repository issue and try apt-get update to update repo
I tried several things but nothing.i am going back to debian. I don’t think it is pulling a complete version of ubuntu.
yes i think Debian more stabil , Ubuntu option in Linuxchroot marked with * , isn’t it?
when i used Linux installer first time i use Ubuntu and got packages installation problems , then i used Debian and wasnt find similar problem
$ su# linuxchroot
W: debian squeeze is already mounted. Entering chroot…
I: Executing /etc/init.android/rc_mount.sh
Galoula LinuxInstaller not found or Android Bind is not active!
I: Entering chroot…
I: Executing /etc/init.android/rc_enter.sh
root@Galoula-ARMEL:/# dpkg –configure -a
dpkg: failed to write status database record about ‘module-init-tools’ to ‘/var/lib/dpkg/status’: No space left on device
‘/var/lib/dpkg/status’: No space left on device–> your device is full, try to make more space on your sdcardi have 4gb free on my card already but 533mb on phone memory. Don’t know how to savely delete from internal mem.
samung galaxy tap p1000
‘/var/lib/dpkg/status’: No space left on device:
may be the problem is linux.loop file size, linux.loop is a file which be mounted as / “root” ,
i had similar problem before, when i made linux.loop just 70 MB, it was mean: my / “root” just had 70 MB , and it showed: “No space left on device” altough my internal and sdcard free space is big,
so i tried to make linux.loop file size bigger. that is on settings–>linux.lopp size,
but it will erase linux.loop before,
so try to *backup all deb packages before that, (because they are big size, 50 MB or more,) , then create a new linux.loop bigger, and start again, when Linux Installer start to download deb packages again, try to transfer deb packages that you *backup to /data/local/mnt/linux/var/cache/apt/archieves so debootstrap can make / “root” system from them (deb pacakages backup) ,
the linux.loop size is relative, depending on whatever you will install on it, if you want LXDE , it is less than GNOME,
I am a noob in this. How do we backup the deb n then transfer it back, can u be more specific. Thanks in advance.
when linux.loop is mounted
copy all deb packages from /data/local/mnt/*Linux/var/cache/apt/archives to sdcard
copy with root file explorer or adb shell or others
*Linux maybe Debian or Ubuntu
works amazing on samsung nexus s with rooted android 4.0.3. Thank you for the instructions. The only thing i changed was instead of “>> /root/.vnc/xstartup” I had to do “>> /root/xstartup”, then it worked great. currently running Debian Squeeze on lxde. Again, thank you for the info.
you are welcome
sob ane pas install size loopnya kecil terus ga bisa install vnc.. cara ubah ukuran loopnya gimana ya?supaya ga usaah install dr awal lagi.. pliss.. pake bhs indonesia ya.. hehe aane ga ngerti english
ane juga pernah nanya hal kaya gitu ke pembuat apikasinya, katanya sulit kalo manual soalnya kan pake aplikasi Linux Installer serba otomatis, tinggal klik klik aja, jadi bikin yang baru aja , tapi paket deb yang udah didonlod dibackup dulu, buat dipake pas bikin yang baru lagi bro
pakiet deb nya coba cari cari di /mnt/Linux/ di Android atau semisalnya, nanti ada direktori /var/cache/apt/archives , nah disitu ada paket deb yang uda didonlod buat bikin sistem root Ubuntu/Debian, backup dengan cara copy ke sdcard pake terminal / aplikasi kaya Root Explorer, terus bikin linux.loop yang baru terus nanti pas donlod deb yang baru lagi (pas klik install) , tingal transfer dari backup-an ke /var/cache/apt/archives lagi biar ga donlod paket deb lagi (lumayan lebih dari 50 mb-an)
Pingback: Linux Installer - Android-Hilfe.de
Pingback: Linux Installer auf dem Pro - Erfahrungsberichte - Android-Hilfe.de
Pingback: Linux Installer – eine vollfunktionsfähige LXDE Debian Umgebung unter Android | siyman.de | blogging und GNU/*buntu
Pingback: Ubuntu Running on Galaxy Tab 10.1 Android Tablet! | Androidmarket