[Chroot] Chroot scripts for lg optimus. Run ubuntu ,debian or meego from Android - LG Optimus Black

These are the scripts I have running on my phone to chroot to any image. Simply extract to / sdcard/bt5, copy the image you want to run and rename bt5.img
Then from the terminal run:
su
cd sdcard/bt5
sh bootbt
http://www.multiupload.com/19WPTHNA90
I encourage anyone who wants to upload your own images optimized for the display of the Optimus.

Need rooted phone and busybox installed, running in original firmware with quarsar v3 kernel, no problems.

we can run meego thru this? this is for developing purpose, or does it allow us users to boot OB into another operating system?

what can we do thru using this?dual boot?

of the moment only chroot, of course dual boot is possible

i'm sorry if this sounds noob, but wat does chroot do? I have only heard of multiboot. If i download that file of urs, what can i actually gain from it? thx in advance

nickrule1896 said:
i'm sorry if this sounds noob, but wat does chroot do? I have only heard of multiboot. If i download that file of urs, what can i actually gain from it? thx in advance
Click to expand...
Click to collapse
Chroot 'jails' another linux distro inside your android using the same kernel.
For example I use chroot with my Multimedia HD (Blusens T50, a Emtec Q800's brother) in order to have a debian distro plenty of space (the chroot is a external space to mount into the system) also updatable. Then, I can install in my case an ftp server, a torrent client, etc...
Regards.

From where can we download the images?

In xda exists multiple posts with images for chroot if not in google appear links with how to make your rootfs system in ext2
enviado

wuebas said:
These are the scripts I have running on my phone to chroot to any image. Simply extract to / sdcard/bt5, copy the image you want to run and rename bt5.img
Then from the terminal run:
su
cd sdcard/bt5
sh bootbt
http://www.multiupload.com/19WPTHNA90
I encourage anyone who wants to upload your own images optimized for the display of the Optimus.
Click to expand...
Click to collapse
any instruction to chroot the Megoo on ob ?

u should watch this http://wiki.meego.com/ARM/MSMQSD

of the moment exist on internet one image that load it in terminal mode (no gui) with bash shell, it is similar to ubuntu terminal. Maemo gui is possible install in ubuntu, it is hildon desktop. Since my experience the most usable desktop is lxde running vertical mode 760x1024 with real vnc using virtual keyboard of android and emulated mouse. Backtrack 5 is usable but the image has errors and gnome run slow. other alternative is matchbox desktop for small screens in embeded devices.
To run meego or maemo is necesary config gui and install vncserver.
For other part, meego uses moblin desktop, it is posible install in ubuntu too.

Here i share one rootfs with lxde and backtrack repositories, it is in spanish language; http://www.htcmania.com/showthread.php?t=260402

Related

[HOW-TO] Run Debian Armel on your N1

Hi all!
I want to share the way i have to run Debian on Nexus One
I'm editing my own install of deb-armel and ill upload to everyone but first i need to finish it
By now, we will use a qemu image ready and edit it to your needs
You'll need a SD parted with Amon_RA recovery, few files i'll upload later and some skills with Debian, of course hehe
Partition could be user-alike but i recommend:
Im using a microsdhc 8gb class-2 from my magic
- EXT3: 2gb (nice for install a lot of stuff)
- SWAP: 150MB
- The rest as fat32
You need also a rom with app2sd or mount ETX3 partition under /system/sd, im using Modaco's 1.3
First of all, im working on archlinux but this can be done on windows too using the qemu version for windows
Install qemu on your machine.
NOTE: Also you can start a new installation from 0 using images (iso) and info found on google
Now we will use the following QEMU images:
http://people.debian.org/~aurel32/qemu/armel/
We will download the followings Of course you can choose the small or normal version with X preinstalled (the X version preinstalled is not tested by me and i dont know if works)
debian_lenny_armel_small.qcow2 150M
initrd.img-2.6.26-1-versatile 2.1M
vmlinuz-2.6.26-1-versatile 1.2M
Put they in your home folder or where u want.
Now, lets run it.
Use the following command (run it from the folder you have the downloaded files) :
qemu-system-arm -M versatilepb -kernel vmlinuz-2.6.26-1-versatile -initrd initrd.img-2.6.26-1-versatile -hda debian_lenny_armel_small.qcow2 -append "root=/dev/sda1"
Wait a moment... Debian-armel running under qemu
Here are the configuration by default:
- Keyboard: British English
- Language: English
- Mirror: ftp.uk.debian.org
- Hostname: debian-armel
- Root password: root
- User account: user
- User password: user
Edit the system to fit your needs, im not going to explain how to do this, im asumming you know how to. If u don't, use the debian reference guide:
http://www.debian.org/doc/manuals/debian-reference/
Of course, you'll need to edit basic things as locales, network, ssh preferences, etc...
Edit your system, update, configure packages, etc...
Once edited and configured, quit you virtual machine.
Now, we are going to convert the qemu image to a raw image, mount the fs and copy to your SD
Assuming you still in the same folder as the qcow2 image of debian (for windows, google a little, im sure there are something to do the same):
qemu-img convert -O raw debian_lenny_armel_small.qcow2 debian.raw
With this will obtain the qcow2 converted to a raw file (without touching the original qcow2 file)
Now mount it where u want or follow this steps:
sudo mkdir /media/debian
Before mount, lets see where start the partition on the raw file:
sfdisk -l -uS debian.raw
U will see a list of partions under the raw file, use the first, like this one:
debian.raw1 * 63 20225834 20225772 83 Linux
Now, we know the / starts at 63, mount this partition
sudo mount -o loop,offset=$((63*512)) debian.raw /media/debian
Ok, we have our partition mounted now, lets make a copy in our EXT3 partition on SD.
Use the USB Storage function from android, sd card reader... and mount the EXT3 partition
Once mounted, copy everything from /media/debian to /media/yourSDext3mounted
cd /media/debian
sudo cp -a * /media/yourSDext3mounted/
If everithing works as expected, umount the systems /media/debian/ and /media/yourSDext3mounted or use the Android notif to disconnect the USB storage function
Check if everything is now in the SD EXT3. Open a terminal and adb shell
adb shell
cd /system/sd
ls
U'll see the Debian / extructure and the app & app-private
Of course dont worry about this, u can still using apps2sd and debian at the same time
Now, it's time to boot debian
We need some modded files from the G1 version to boot it:
Download from Megaupload: http://www.megaupload.com/?d=Q67SNOBC
Download from MediaFire: http://www.mediafire.com/?mxgcyk3whdt
Also, files attached to post (rename the extension to tar.gz)
Put the files into your FAT32 SD partition, no in a folder just in "/"
Now, it's time to give it a try
U have two ways:
Open a terminal window in your PC
adb shell
cd /sdcard/
sh installer.sh
sh bootdeb
Or:
Open up a terminal in your N1, like Terminal Emulator on Market
cd /sdcard/
sh installer.sh
sh bootdeb
PROFIT!!!
Enjoy your debian-armel on your N1
For the next chapter, how to run X with VNC Viewer
Bye and thanks for reading!
Looks like Klingon to me.
I have Debian running too now
Nice! Cant wait to try it out!
nice, i've been looking for a n1 debian how-to
Installing debian is pretty much the same as running it on your g1. I had it working the day after I got mine using the g1 instructions.
So, what's the reason or running debian on your phone?
Jst wondering
u
The reason by now is just fun hehe
But, if we can run it natively via fastboot, would be awesome hehe
Sorry for the delay guys, ill do it now, the last night was too late for me 4am here hehe
EDIT: Just give some time more, i going to try it with the Cm 5.0 beta 1
jairuncaloth said:
Installing debian is pretty much the same as running it on your g1. I had it working the day after I got mine using the g1 instructions.
Click to expand...
Click to collapse
I couldnt get chmod or installer.sh from the g1 instructions to work. I tried it both with bacon and modaco 1.3. I skipped the jesusfreak part though so maybe thats why. Anyway seeing confirming instructions would be nice.
Because the g1 files need to be modded first
I have it running it under modaco 1.3 and now im going to try it with the new b1 from cyanogen
Guide ready
Enjoy it!
Hi,
i have one question about debian. Is the network traffic routed trough android, or does debian has direct access to the wlan adapter for monitor mode and aircrack ?
meld0
it's using the same ip and mac, so is shared for both
If there are the apropiate drivers maybe, don't really know
Calling Linux Experts!!! hehe
Is there any way to create a boot.img bootable via fastboot to run the ext3 partition of sdcard with debian?
Driskol said:
Calling Linux Experts!!! hehe
Is there any way to create a boot.img bootable via fastboot to run the ext3 partition of sdcard with debian?
Click to expand...
Click to collapse
sorry for being noob in this matter but, why do i need debian on my phone? what does it give me?
amir
The answer is a choice, Android or a Full Desktop OS with Firefox, Thunderbird, OpenOffice, etc...
When its booting I'm getting an error:
/system/bin/bootdeb: line 61: chroot: command not found
Doing "find / -name chroot" only returns binaries within the debian image.
Any ideas?
Driskol said:
The answer is a choice, Android or a Full Desktop OS with Firefox, Thunderbird, OpenOffice, etc...
Click to expand...
Click to collapse
How well does Firefox run?
Can anyone take some pics or video?
Any instructions for creating and mounting linux as an img file instead of using separate partitions?
tetlee said:
When its booting I'm getting an error:
/system/bin/bootdeb: line 61: chroot: command not found
Doing "find / -name chroot" only returns binaries within the debian image.
Any ideas?
Click to expand...
Click to collapse
Maybe your rom doesn't have Busybox
EDIT: Im going to make a img version tutorial
Of course, this version was without the highmem kernel, now with more ram, more flawlessly

[DEV-ADDON]DS7Ubuntu v1.0 --- Text Based Ubuntu 11.04 running on Dell Streak 7!

First of all, I need to give my thanks to great DevGhostofNet for his excellent work on getting Ubuntu 11.01 running on Xoom. I borrowed his template on this instruction page as I really don't have my template and using this way to show my appreciation to his work.
Second, I figured though I am not big dev by any means, hopefully any time I spent on such things can add some value to owners of either DS7 or Xoom, especially DS7, which really needs any effort on it in addition to testing help.
So I would throw in my two-cent hours/efforts to get this started. I see huge potential in it, though now it is quite WIP, because the non-graphical version is running well but not Gnome sessions.
1.What is working?
Shell Ubuntu 11.04
I modified the installation scripts to mount DS7 partitions correctly and copy some modified script into original image.
2. What is not working?
Gnome Session
I can install necessary components up to a point where the wall paper is loaded, sidebar is loaded but the guest system did not take/register input properly yet.
3. Why we care?
It has huge potential in it. It uses a part of your sdcard to run a guest system, and you can literally install all those great Ubuntu apps in it in future when more dev effort makes this happen.
4. What is the impact to my existing Android OS?
Minimal. The impacts are:
1. there will be ubuntu scripts in /system/bin/
2. Loop7 device will be borrowed while ubuntu is mounted.
3. under /sdcard, there is a folder ubuntu which pretty much contains everything
4. in LOST.DIR of your /sdcard, there may be lots of temp files if you experimented a lot of install/uninstall of this guest system.
If you still want to take a crack now.........
DISCLAIMER: I will not responsible for any bricked device. Please although this experiment won't affect your other files at all, but **** happens all the time, please do backup and understand what you are trying to do before proceed.
[Before Installation:]
1. You should know what you are doing at this step.
2. You have rooted your device already
3. You configured adb and have a terminal apps in your DS7. (Terminal apps can be found in market. Android Terminal seems to work fine)
4. You have a VNC client. (Android-vnc in market seems fine)
[Installation:]
1. Download the DS7Ubuntu files From my post at http://www.OpinionatedFool.com
2. Extract it into /sdcard/ubuntu folder
3. Open a terminal
Code:
su
cd /sdcard/ubuntu
sh ubuntu install
Just click yes when you are asked some questions. This process takes about 5 mins
reboot after installation
NOW after rebooting, you officially are running a text based Ubuntu 11.04
4. Open you terminal
Code:
su
ubuntu start
ubuntu shell
If you are interested to go further, I really encourage to because we need better devs to bring us further. I am willing to try more but it will take longer time as I have been away from Linux for a good 6 years.
5. After you are in Ubuntu Shell environment. you can do
Code:
vi /sbin/installubuntu
6. Inside installubuntu, the following are present:
Code:
#!/bin/sh
/usr/bin/apt-get -y -q update
/usr/bin/apt-get -y -q upgrade
/usr/bin/apt-get -y -q install python-software-properties
#/usr/bin/add-apt-repository ppa:unity-2d-team/unity-2d-daily
/usr/bin/apt-get -y -q update
/usr/bin/apt-get -y -q install tightvncserver xrdp
/usr/bin/apt-get -y -q install ca-certificates desktop-file-utils doc-base eog g
conf-editor gedit ghostscript-x gnome-about gnome-applets gnome-control-center g
nome-media gnome-menus gnome-nettool gnome-panel gnome-session gnome-session-can
berra gnome-system-monitor gnome-system-tools gnome-terminal gnome-themes-select
ed gnome-themes-ubuntu gnome-utils gtk2-engines gtk2-engines-pixbuf gucharmap hu
manity-icon-theme indicator-applet-session inputattach language-selector launchp
ad-integration lftp libgd2-xpm libgnome2-perl libpam-ck-connector libsasl2-modul
es libxp6 nautilus nautilus-sendto notify-osd rarian-compat screen smbclient sof
tware-center synaptic software-properties-gtk ttf-dejavu-core ttf-freefont ubunt
u-artwork ubuntu-extras-keyring ubuntu-sounds unzip update-manager update-notifi
er x-ttcidfont-conf xterm yelp zenity zip maximus
/usr/bin/dpkg-divert --local --rename --add /sbin/initctl
/bin/ln -s /bin/true /sbin/initctl
I am good up to completion of this step in the script above
Code:
/usr/bin/apt-get -y -q install tightvncserver xrdp
Then the following bulk apt-get process will cause issues. The main course is on gconf2 as far as I know.
I tried to install them separately after install gconf2, but it is not stably working.
i.e. sometimes I did install them all correctly, but sometimes I am getting segmentation error, which is annoying and requires wipe ubuntu folder and reinstall ubuntu.
I am too rusty on Linux now that better devs may figure it out easily.
[How to Uninstall it?]
In case you want to get rid of it. Here is how:
Through ADB or Terminal Simulator in your DS7
Code:
adb shell
su
mount -o remount,rw /dev/block/mmcblk3p3 /system
rm /system/bin/ubuntu*
mount -o remount,ro /dev/block/mmcblk3p3 /system
[Next Step]
Install and configure a working copy of Gnome-session on this successfully. Hopefully there will be Kernel Dev to have a Ubuntu kernel specifically for DS7? That will be the best.
We can then
1. Run Apache server and you will access your files through Dell Streak 7 as long as you are tethering in its own LAN. (or a lot more)
2. Run browsers in graphical version of Ubuntu on your DS7 so that you can do whatever with hulu or netflix or anything. Basically you are carrying a freaking DS7 laptop with you. with touch screen and huge mobility
[Notes]
1. pts need to mounted
2. use Unity-2d seems to be better than Unity
3. mtab need to be replace manually with the mtab I included in the zip file
4. kernel is not configured to have shared memory management ...
I'll definitely be following this thread with interest!
native ubuntu would be nicer rather than the crap of chrooted ones, they are just pointless IMHO as the device has to try and manage 2 oses at once, the 7 doesnt realy have the ram to manage that
Any updates on this project ?
Guess not :-(
Quick question to the op
Does wifi work so you can update / install packages?
If so, does it see the wifi cards chipset? I'm looking into getting aircrack-ng set up to tinker with. ( saves me from dragging out my laptop to test security on networks with my job )
Currently I'm using my Mac with kismac which does the job nicely , however, if I can use the ds7 under Ubuntu its one less reason to drag it along.
Can you copy the device information for me or does it act like a LAN card ?
Thanks !!
what is the latest development?
In a few weeks, i will tell my team to look at the cm7.1 things. I hope you will help us? I will send you a pm but remember me
ubuntu
is this still being worked on or attempted? or is there a ubuntu rom out already?
Is this anything like Ubuntu installer...
http://forum.xda-developers.com/showthread.php?t=1390351

Linux, Ubuntu ports etc for gt540

NEW START POST
This page will be for the topic of linux on the gt540 all distros that will support arm-v6 arm-v7 and armel as these will all work with the exemption of arm-v7 which will of course run with some lag.
So far we have ubuntu and debian running but want more variety is best.
Any helps with scripts speed improvements sharing set ups etc is highly appreciated this thread will be open and transperant in its knowledge.
As with the rest of xda i would like for this to be all about joining together to make something great
VERY SLIM DOWN EASY TUTORIAL TO GET YOU GOING
1. First up your on xda so please for the love of god tell me your device is already rooted and you have busybox??? if not very easy download z4root do a permanent root or temporary if your scared of warranty etc second download busybox installer from the android market and install. Mur4iks rom is most popular and supports loop devices not sure about other roms also have debugging turned on you need that for adb.
2. Make sure you have the android sdk windows drivers etc etc or if in ubuntu or linux make sure you have this file setup
/etc/udev/rules.d/99.android.rules
SUBSYSTEM=="usb",ATTRS{idVendor}=="1004",ATTRS{idProduct}=="61b4",MODE="0666"
3. Make sure adb recognizes your phone run
In windows adb devices
linux (sudo) ./adb devices (ubuntu can be fussy)
Any problems at this point consult the almighty google or android development page that has all information for trouble shooting adb and your device
4. Ok so here is where the phone begins and all the code and missing steps and going back etc etc
At this point a strongly suggest a coffee a cup of tea some music or a smoke if you do
5. Now we must download a version of linux that is compatible with our phone as mentioned above armel arm-v6 are preferred
Theres three ways we can do this
1. We can go to androlinux.com if we wish to have a easy to set up ubuntu system
2. We can download linux installer from adroid market and choose an appropriate distro
3. For the more tech savvy download direct and set up the whole base system to custom sizes run custom scripts on boot etc etc if a few people did this it
would however be great as we could have a multitude of gt540 linux flavours
6. There are alot of VNC Viewers out there im not gonna say what ones best as everyones opinion is different on this put simply type vnc in the market have a read look at some screenies and choose one thats right for you as we will need it later. Has to support tightvnc though.
7. The file we downloaded we have to move this unziped to the root of the sd card.
8. If using linux installer from market simply start installing we will catch up with you later on the vnc set up gui etc
9. Ok the file is happily in the sd card root (Yay) Now you need to open a terminal or command thingy in windows cmd.exe everyone sets up the sdk differently so pretty much in ubuntu or linux you need your file path then /platform-tools in windows the same cd into that file
10. Now we are inside that directory test adb so Ubuntu--- "sudo ./adb devices" Windows ---"adb devices"
It should come up with devices attatched 6437946238946 type thing congrats your sweet to go
11. Start adb shell Ubuntu---"sudo ./adb shell" Windows---"adb shell"
12. #su
13. #ls
14. #cd sdcard
15. #ls
16. At this point you should be able to see the name of the distro say ubuntu sooooo
17. #cd ubuntu
18. #sh ubuntu.sh
19.Warnings code blah blah blah
20. #bootubuntu
21. PEOPLE USING LINUX INSTALLER COME BACK
22. You will have something like this #linuxboot
23. If you now get [email protected]:/# or Linux-ARMEL:/# or similar yay we are now running a distro parallel to android in chroot which is awesome!!!!!
At this point feel proud because regardless to gui etc you have linux.
Worst comes to worst recompile kernel again with loop support for the people doing customs and check your code.
24. This is quite possibly the worst part and most time consuming #apt-get update that will take for ever
25. Once that finishes #apt-get install openssh-server once thats done type #passwd and set your passwords etc
26. And then #apt-get install tightvncserver
This will require xxx space and needs to do blah blah blah when given the option Y/n choose Y for all of these
27. Ok in ubuntu if it goes phyco #export LANG=en_US.UTF-8 that will get rid of germain and bring english back debian etc dont worry only seems to be ubuntu
28. LG GT540 came out 600mhz so on any system we want lxde or similar so #apt-get install lxde
29. Now personally i dont run lxde on startup because i like to tinker and i dont mind writting the code in terminal after i boot the system takes all of what five seconds but if you want it to run on start up
cat > /root/.vnc/xstartup
#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
icewm &
lxsession
Then hit Ctrl+D twice and enter to save the file.
30. Now for me after boot i do this
#export USER=root
#vncserver -geometry 1024x800
If your using above you only do this once for me i do it everytime
31. Run #ifconfig to get your ip addy etc
32. This is something i do just to make sure #swapon -s
33. Now the tightvnc server is ready to connect to your phone or computer. Just point to the IP address and use port number 5901 to connect.
THAT SHOULD BE IT ALL SET AND READY TO GO OF COURSE YOU CAN ADJUST HOW YOU LIKE AND DO AS YOU WISH
MANY THANKS TO ANDROLINUX.COM LINUX INSTALLER FROM ANDROID MARKET AND GOOGLE FOR MANY WEB PAGES I VIEWED
IF I USED ANYTHING YOU PIONEERED ITS ONLY SO I CAN SHARE WITH OTHERS AND TAKE THIS TO THE NEXT LEVEL
HAPPY MODDING TO ALL AND I HOPE WE CAN ALL WORK ON THIS AND HELP OUT.
how would you do it?
Ubuntu jaunty supports ARM-V6 Architecture
And all the smaller Linux systems supported Pentium 2 processors slash hardware
Pentium 2 processors started at around 300mhz with smaller caches and buses then our device
Android is based on Linux our cyanogen mod system is based on 2.6.29
So in essence we should be able to port several Ubuntu / Linux flavors to our device and run them through a virtual machine off the SD card using loop device and swap or as a dual boot by flashing the Ubuntu / Linux system to what we know at the moment as the recovery partition
any help we can get to do this is needed anyone and everyone
Sent from my GT540 using XDA App
Ubuntu 8.04 'Hardy heron' is compatible to
Anyone???
Sent from my GT540 using XDA App
Danzano said:
Ubuntu 8.04 'Hardy heron' is compatible to
Anyone???
Sent from my GT540 using XDA App
Click to expand...
Click to collapse
Once i get v2.1 working proberly and uploaded i might look into this
Sent from my GT540 using XDA Premium App
Sweet
Sent from my GT540 using XDA App
Biggest problem ATM is the arm 6 architecture I've downloaded natty and set up my build environment so starting to work on things now properly but regardless I know this project will take time and be frustrating
Sent from my GT540 using XDA App
why don't try debian?
I'm currently using rc1 eyecandy because I have a fetish for nice GUI s
I like what I've heard about debian but looking at screenies it just didn't look like my thing lol tbh it looked like a hollowed out version of Ubuntu
What's the benefits of debian if I did switch?
Sent from my GT540 using XDA App
already available to download for armel -> so i think it would be easier 4 you to port (i think there are no/not so big differences between armel & armv6).
btw debian is the father of ubuntu and their repositories/paths/commands are compatible.
smg72523889 said:
already available to download for armel -> so i think it would be easier 4 you to port (i think there are no/not so big differences between armel & armv6).
btw debian is the father of ubuntu and their repositories/paths/commands are compatible.
Click to expand...
Click to collapse
Repos are not compatible.
Ill look into armel tonight see what I gotta do
Sent from my GT540 using XDA App
Check this!
I got ubuntu with LXDE running. Gnome does work but takes too much memory and long time to load. LXDE is Light fast and Quicker at loading. Here is my video. But it is chrooted (running alongside android and off the sdcard)
Here is the Link
LG GT540 Running Ubuntu
That's why I'm working on x11 etc to see if the GUI. Could be full size yet fast and lighter on hardware less mem 2d no hardware acceleration etc
Sent from my GT540 using XDA App
Debian lenny armel working great its stable and useable with lxde still working on it but its the most promising so far
Sent from my GT540 using XDA App
hey guys this is debian lenny will post pics of ubuntu running same gui later
So far ubuntu seems slower than debian but im trying to get ubuntu to be abit quicker
also im going to start experimenting with triple boot as in adroid then debian lenny on recovery partition and ubuntu through chroot anyone that has any advice would be good also anyways to re compile these so they run quicker would be good to is there anyway to compress etc
oh also wifi etc etc is all working reads system etc etc so is good to use not some pointless project
my vnc server refuse to connect, can anyone help me??
now it's working but, it's all grey in 24bit color.
what is you color mode and resulotion
Danzano said:
hey guys this is debian lenny will post pics of ubuntu running same gui later
So far ubuntu seems slower than debian but im trying to get ubuntu to be abit quicker
also im going to start experimenting with triple boot as in adroid then debian lenny on recovery partition and ubuntu through chroot anyone that has any advice would be good also anyways to re compile these so they run quicker would be good to is there anyway to compress etc
oh also wifi etc etc is all working reads system etc etc so is good to use not some pointless project
Click to expand...
Click to collapse
maybe you could add a guide to the start post on how others can do this
Star post tut would b great nice job!
MY ANDROIDSKY
afpereira said:
my vnc server refuse to connect, can anyone help me??
now it's working but, it's all grey in 24bit color.
what is you color mode and resulotion
Click to expand...
Click to collapse
My vncserver is 24bit colour
Vncserver geometry is 1024x840
Dont know why but that resolution was best for me also if that doesnt work try 1024x800 or 860x480 etc youll find one best for you
Ill post a easy tutorial in start post today so everyone can have
Also im trying to place a linux boot.img on recovery partition but our phones mem wont hold system or data etc would it be possible to create a script where on boot it reads the sd same as hdd for pc ??
If this is possible we can have tri boot if we wanted or atleast dual
Sent from my GT540 using XDA App

[Q] Anybody up for porting Ubuntu?

Since we got a x86 cpu i want to use ubuntu on it, as im from germany i still dont have my I but has anybody tried linux on android?
Adam Outler mentioned something that this would not work...
Btw can somebody tell me what the kernel version is..?
Sorry mods for (possibly) posting in the wrong section :/
//Robert
Sent from my LG-P500 using xda premium
Robbilie said:
Since we got a x86 cpu i want to use ubuntu on it, as im from germany i still dont have my I but has anybody tried linux on android?
Adam Outler mentioned something that this would not work...
Btw can somebody tell me what the kernel version is..?
Sorry mods for (possibly) posting in the wrong section :/
//Robert
Sent from my LG-P500 using xda premium
Click to expand...
Click to collapse
Kernel version is 3.0.8.
If you can install linux distros on the backend of rooted ARM devices it should make sense we could do the same....maybe
Ubuntu on a RAZR I ? Linux x86 apps + windows apps with wine without even recompile? I think this devece needs some love. It can be the next HTC HD2 for shure.
I dont understand the htc comparison
But i have your ideas about no need to recompile and wine in mind too...
But i understand adam because linux for android is compiled for arm achitecture so a usual desktop image would make more sense...
Why is the kernel version so low?!
Sent from my LG-P500 using xda premium
What we need to do
I have a friend with this device, after rooting he reports there is no chroot command from terminal. If so we must:
Compile busybox (with more extensions) for x86 and install it alongside root (or after root)
Make a mountable image from an ubuntu clean install and mount it (probably also needs busybox)
chroot into this mounted image
run a vnc X server on a framebuffer
vnc from android
This is how it is done on other android devices, will attempt to compile and try these instructions out this weekend when I meet him but booting native ubuntu is a much better idea (even better if we can make it receive calls ).
And for what Windows on 4,3 inches display? It dont have hdmi.
Odoslané z GT-P7300 cez Tapatalk 2
The micro usb is acting like hdmi with adapter...
Sent from my LG-P500 using xda premium
Go look up the HTC HD2. It can run Windows Phone 7 and Android dual-booted (with Linux from SDCard), and was originally the last, albeit most powerful, Windows Mobile 6 phone ever made.
Even though it is four years old, there is a massive and vibrant dev community behind it, making it reach the front page of XDA forums.
However, even the venerable HD2 is getting old, with 1GHz processor and half a gig of RAM that was top-of-the-line years ago, and people have looked in vain for some kind of successor. Hopefully, the Razr I, with an unlockable bootloader and Intel processor, will be the one. But that remains for us to do.
pablocrossa said:
I have a friend with this device, after rooting he reports there is no chroot command from terminal. If so we must:
Compile busybox (with more extensions) for x86 and install it alongside root (or after root)
Make a mountable image from an ubuntu clean install and mount it (probably also needs busybox)
chroot into this mounted image
run a vnc X server on a framebuffer
vnc from android
This is how it is done on other android devices, will attempt to compile and try these instructions out this weekend when I meet him but booting native ubuntu is a much better idea (even better if we can make it receive calls ).
Click to expand...
Click to collapse
So I tried this out and there is a chroot-compatible busybox after rooting ("busybox chroot" needs to be called as opposed to "chroot" as there is no properly made link), so anyone with this phone can try (using a PC) install Ubuntu without the grub bootloader using manual partitioning on a single ext3 (I am not sure if ICS supports ext4) partition on a microsd, put into your phone, use a root terminal, mount it, mount the adequate dev, dev/pts, proc and sys partitions and chroot right in. You then might want to install a VNC server in Ubuntu to be able to create a VNC X session in a framebuffer and a VNC client on the android side to VNC into localhost (127.0.0.1), but that should work, I didn't have time to try it this weekend If someone gets stuck post and let us see what happens I cannot wait to see if wine can run desktop Spotify with sound, excited a little hehe.
EDIT: So to make this more understandable you must:
Install Ubuntu (using your computer) to a MicroSD, specifying partitions manually and choosing only a single ext3. Right before clicking install there is a button with something along the lines of "Advanced options", disable the install the bootloader (grub) option.
Insert the MicroSD into the phone and open a root terminal
I don't use Android, maybe it automounts in /media/sdcard or /sdcard, if not you will have to find the device and partition name (probably /dev/mmcblk0p1 or /dev/sdb1) and issue "mount /dev/DEVICEPARTITION /media/sdcard"
mount -t proc proc /media/sdcard/proc
mount -o bind /dev/ /media/sdcard/dev/
mount -t devpts devpts /media/sdcard/dev/pts
busybox chroot /media/sdcard /bin/bash
Now a shell from Ubuntu should open. apt-get update && apt-get install vncserver (maybe the DNS settings must be set in /etc/resolv.conf, not yet sure)
vncserver (or start vncserver, something along those lines)
Now from Android install a VNC viewer and vnc into 127.0.0.1 (or localhost)
That should do it, again if you get stuck post here
i had htc hd2, the most amazing phone in the world. I wanna buy the rarz i for the x86 processor in it. But cpu power without community and developers is nothing :|
Sorry for my bad english.
Yesterday we tried something:
We used dd to put an arch linux image on a micro sd card...
Though my laptop wasnt even able to boot from any sd card, this should work on our phone...
but how to make it boot from the sd card? xD
btw you might have noticed, this will make only linux boot, not android, we dont chroot, may somebody build a simple ubuntu img for complete linux installer?
//Robert
so right now i am trying to chroot into an img file, mounting it and then chrooting it but all i get is:
chroot: can't execute '/system/bin/sh': No such file or directory
whats wrong?
Robbilie said:
The micro usb is acting like hdmi with adapter...
Click to expand...
Click to collapse
Razr i MHL capable???
as far as i know, sadly not no
Ok so finally I got Ubuntu Quetzal running with chroot, still some problems (missing randr extension in vnc) but ill get over this
Hey,
great work. :good:
Good to see there are people with the same ideas. I´ve searched a lot for this thread.
I will also try to get this device for the same reasons when it´s cheaper. Has anybody tried to get Plasma Active or Tizen to run?
I think Active should now be possible through kubuntu Active?
Cheers!
Hi all
At first you can try a application from play store called Linux installer
https://play.google.com/store/apps/details?id=com.zpwebsites.linuxonandroid
Otherwise you can wait some weeks for an nexus 7 Ubuntu port witch looks really interesting.
http://forum.xda-developers.com/showthread.php?t=1957561
Ahhh maybe have a look at the andrinux project here at xda
[/COLOR]Here's the andrinux link
http://forum.xda-developers.com/showthread.php?t=1387105
Sent from my sweet little Blackbox
Robbilie said:
Ok so finally I got Ubuntu Quetzal running with chroot, still some problems (missing randr extension in vnc) but ill get over this
Click to expand...
Click to collapse
thanks for your post on preparing an arch image (I don't have permision to post in devel forum, maybe because I'm a newbie ), It worked well for me although I had to adjust some things such as path and pts mount
I now have a gcc toolchain and a latex distrib on my phone I had never used arch, found it very good
I've also tried some window managers ... the one I find best for the moment is enlightenment in the touchscreen mode, awesome works great as well.
I would also suggest to use Hacker's keyboard instead of stock android, it is a complete keyboard, very usefull when dealing with terminals ... as for VNC viewer, one should recompile android-vnc-viewer with the patches given in Issues 238 and 239 (can't post links either), it's a lot better
I've had a lot of fun, thanks
First, Complete Linux Installer doesnt work because its images are compiled for arm not x86 (i tried )
Secondly, I did a tutorial here http://forum.xda-developers.com/showthread.php?t=1966984
the nexus 7 stuff is interesting and we consider making flashable fastboot for the razr i since we dont have cwm or such you know
i am talking to jordan keyes who recently owned a nexus 7 who probably will try out the ubu stuff and i might get some system info
but i would really prefer a dual boot, capable of booting from sd...
I came across this site today:
http://www.pvsm.ru/wine/10369
translated here
I don't know if this could possibly help you any further but I thought that I might as well post it.

[CHROOT] Running Arch Linux on the RARZ i

Right before the Introduction, I am not responsible for anything you do to you Phone, you are free to do or not to do what I am explaining to you so its on your own risk...
Introduction:
Ok guys so here we are, trying to install a Linux Distro on our awesome x86 Phone...
Damn this doesnt work because our Android is compiled in a different way than ARM Android so we have to wait for better Docs or someone who can get the bootloader to laod a different OS...
But you dont want to wait right?
So here we go, the only alternative:
Chroot into Linux
Description:
Chrooting lets you run annother Linux on top of the currently running Linux (what Android actually is...more or less).
So you mount an existing Linux and simply run it.
What I want to do:
I want to guide you through chrooting and setting up an Arch Linux on your RAZR i.
Requirements:
You need:
A micro SD card (I used a 8GB sized one but 4GB/more than 8 should also work, you just have to adjust some Steps)
An Arch Linux Image (I will give you a link)
(Not required but I will focus on this Platform because I use it myself and it works best, I guess)
A Linux PC running Virtual Box
Tutorial:
First you need an Arch Linux Image. Any other Linux Distro should work fine, but others also take up a lot more Space and Ubuntu for Example has many Problems running in Chroot (because Canonical did some S***).
I used this one:
Arch Linux 2012.10.06
Again, any Version should work fine, just took the latest one
So lets set up our System...
Start Virtual Box and create a new System.
Create a new Hard Drive and size it so it fits onto your micro SD.
I used 5 GB-7.5GB on a 8GB micro SD.
Insert the downloaded ISO FIle into the Virtual Box CD Drive and start your Virtual Machine.
Select the i686 mode (because or CPU is 32bit not 64bit)
If you have the wrong Keyboard Layout Follow this Keyboard Setup Keyboard Config
Next you need to partition the HDD: Partitioning the HDD
Now Install the Base System: Install the Base System
After this follow the next Steps on the Arch WIki (Generate an fstab, Chroot and configure the base system, Set the root password and add a regular user)
DO not reboot because you didnt create a Bootloader (not required for chrooting), instead go to the "Extra" Section and follow all Steps till troubleshooting (DO NOT REBOOT AND DO NOT STARTX this didnt work for, might for you, might not and then you have to cold reboot the VM)
Now you can reboot Again enter the Live System, load your keymap and chroot into the system
You might already install some Packages like a VNC server (pacman -S tightvnc) which will be required for a Graphical User Interface later...
To create the Image you need later, the easiest way for me to pull the Image out of the VM (which has no space for this Image) because the Virtual Box Plugin didnt work for me is sshfs.
I highly recommend to install an ssh server ond the sshfs system into you arch.
If you have done so, mount your PC from inside the VM so you can put the Image on your PC's HDD.
now to create an Image of your Arch theres one command and two ways:
You create an Image of the whole HDD (what I did)
You create an Image of the one Partition
I chose the first because i didnt want to put anything else on my micro SD, I cant confirm that the second way works but it is suppoes to so lets create the Image:
We make use of the Linux command dd, really, REALLY mke sure that you are executing from inside the VM since you can harm your HDD and dont forget the file extension....
First method:
Code:
dd if=/dev/sda of=/location/to/your/PC/HDD/imagefilename.img
The Second method (not confirmed):
Code:
dd if=/dev/sda1 of=/location/to/your/PC/HDD/imagefilename.img
where sda1 should be the partition you want to image...
This might take a loooooooong time
Now you have this Image, put your micro SD into an Adapter and put it into your PC.
Now find out the name of the SD, I used gparted and I found out that the name is sdc (could be sd + letter of alphabet)
Here the Ways split again:
The first Method completly overwrites anything that is on your microSD so make a backup, the second Way is just putting the created .img file onto the micro SD:
Method One:
Code:
dd if=/path/of/the/img/file of=/dev/sdc
Replace sdc with your micro SD letter, if you put in a wrong letter, you might overwrite your HDD so be careful, I am not responsible for what you do...
For me my Phone said, the micro SD is empty or has a wrong FIlesystem (its ext4) but you shouldnt care, we can mount it anyway...
Now copy the FIle mountscript.sh to the internal SD (the FIle is in this Posts Attachements)
Next open up a Terminal and type in:
Code:
cat /proc/partitions
You should get a list of all your Partitions, if you followed my Way, the last one should be your micro SD (look at the size) and called like mmcblk1p1
If you followed the Second Way, you dont need this Step...
Now type in the Terminal:
Code:
busybox sh /mnt/sdcard/mountscript.sh
the busybox in the beginning seemed required for me because our busybox is kinda strange...
You will be guide through a little setup, I hope it is selfexplaining...
When the script ran through successfully your terminal should look like [[email protected] /]#
In the next Post I will guide you through the Setup of the VNC Server
Any questions or something doesnt work? Just tell me
//Robert
Post reserved for VNC Tutorial
You can start by grabbing yourself this App...
Guess I forgot something
Added the mountscript as Attachemenet
did anybody try?
//Robert
this should fix network issues:
https://blog.tuinslak.org/socket-permission-denied
Hai Robbilie, After install with Ubuntu PC & turn off pc & All seem ok & at phone till [[email protected] /]# & open installed VNCwith name DLKS & 192.168.0.9 & port 5900 but cant handshake & also try many similar VNC still the same. Unlike our PC where on>boot>desktop shown & can play ? Pls advice. Thks.
i advice tiger vnc, but the console tells you the vnc server started?
btw its only 5900 when its on display 0 when its on display 1 its 5901 and so on...
the used display is shown in the console...
are you running the vnc from root?
How to run vnc from root? i only start separately,pls advice.Thks
if you have a vnc server installed in the chroot environment you need to run
vncserver -geometry 888x540
this is just to fit the phones resolution
I'm following your instructions for this. They are well written but I can't figure out the part about ssh and sshfs. What do you do for that step?
Is there seriously not an easier way such as opening the vdi image with some program and copying and pasting the files to my Windows desktop and then using something like IMGBurn to create an iso file and then convert it to an img file?
Ubuntu ?
Hello
I just see this old news when i would like to install Linux Mobile , any news about or link ?
http://www.firstpost.com/topic/prod...otorola-razr-i-video-9n_E6aapPSo-51417-1.html
Thanks
EDIT : http://sourceforge.net/projects/mpsdk/

Categories

Resources