yashsingh1/xdaforums huggingface dataset:
[XPERIA X10 Android Development] Meikrekel:
Is fastboot already possible, or is it required that the bootloader is cracked for that? Otherwise this would be nice (and quite fast): http://xdaforums.com/showthread.php?t=631389
[XPERIA X10 Android Development] PoTi_96:
Didn't SE block this feature?

Boot into recovery and so on..?
[XPERIA X10 Android Development] Meikrekel:
There is a flashmode, you can read it here: http://xdaforums.com/showthread.php?t=711907 under step 1 it says:

If you see that you have to connect your X10 in Flashmode now!

Connecting in flashmode is easy:

Shutdown your phone -> Connect USB Cable TO PHONE -> Push and HOLD the Back-Button -> CONNECT USB Cable to PC.

If you see the green LED in the upper right corner you are in Flashmode!

Now quick press ENTER (you have ~5sec until X10 boots up and leaves flashmode)

So I guess it's possible to set it in to flashmode
[XPERIA X10 Android Development] drunken_m:
Hi samaldis!

I've tried to install Debian on my X10, and succeded somewhat. I got it mounted and chrooted, but there is no "apt" in my debootstrapped version... I copied your debootstrap command, got about 125MB in the 700MB image, but no apt. What have I done wrong, or what could I have missed? (I installed a fresh Debian via netinst in VirtualBox, base system + graphical interface + apt-get install debootstrap.)

EDIT: Tomorrow I'll try Ubuntu, seems easier.

BTW: I've updated the startdeb.sh a little, the mounting works with the "fix" from alx5962 (no need for mknod):

#!/system/bin/bash

export PATH=/data/local/bin:/usr/bin:/usr/sbin:/bin:$PATH

if [ ! -d /data/local/mnt ] ; then
mkdir /data/local/mnt
fi

busybox losetup /dev/block/loop2 /sdcard/debian.img
busybox mount /dev/block/loop2 /data/local/mnt

echo "nameserver 4.2.2.2" > /data/local/mnt/etc/resolv.conf

busybox chroot /data/local/mnt

mount -t devpts devpts /dev/pts
mount -t proc proc /proc
mount -t sysfs sysfs /sys
rm -f /etc/mtab
ln -s /proc/mounts /etc/mtab

Also, using "adb shell" is a little faster & easier than using a terminal emulator on the phone. Here is a quick guide to Android SDK which I just wrote: http://619media.hu/blog/?p=287
[XPERIA X10 Android Development] Meikrekel:
Heey, what is the method you use, are you running it at the same time as android and the interface using a vncclient or are you using another method?
[XPERIA X10 Android Development] drunken_m:
Hi Meikrekel!

Like I said, I succeded somewhat :) I got into chroot, mounted pts, proc and sysfs, but nothing more. Since I did not have apt, I couldn't get VNC installed. So Debian was not actually running.

At first I typed everything on the phone in the terminal emulator, but had enough of the small keys, and installed the SDK. I'll try some more tomorrow, 2-3 hours of trying was enough for one day :D
[XPERIA X10 Android Development] Cablekevin:
Get only ADB and run it from CMD, saves you installing the SDK too...
[XPERIA X10 Android Development] drunken_m:
Too late... SDK is installed :) Installed everything, and ALMOST got it working. I have TightVNC up & running and can connect to X -> gray background with the black "X" cursor... and: "No space left on device". NOOOOO FFFUUU! The 750MB .img is to small to have Debian, TightVNC, IceWM and LXDE all in it... Have to expand the IMG and retry... So close, yet so far :( :) :D

...must. do. it. before. sleep.
[XPERIA X10 Android Development] Meikrekel:
I'm looking for a program that let's me choose wether i want to start android or (in my case) ubuntu. Then the performance of ubuntu would be way better because it's not running next to android and your showing the GUI in a normal way, not via VNC. I know this program exists for nexus one so, as soon as the bootloader has been cracked, this might be possible for the x10 as well:D
[XPERIA X10 Android Development] drunken_m:
Not to take your fun, but you won't find such a program. Not until the bootloader is cracked.

BTW, I've gotten it to work. Grown the debian.img to 2GB, installed lxde, icewm and xterm. Everything works just fine. It's just extremely slow... If anyone is interested I can share my image with some more refined (& working ;)) scripts.
[XPERIA X10 Android Development] Meikrekel:
I know. So that's why I'm waiting a little more. I'm interested to see it BTW. Can you make a youtube video?

EDIT:

Looks like they got it working =D, I'm not very good with bootloaders and stuff, but I think that they got it working (check the Custom rom: devs only thread)!
[XPERIA X10 Android Development] drunken_m:
Unfortunately they couldn't get it to work, yet... But they're very close.

I'll post a video about running LXDE and IceWM sometime next week.
[XPERIA X10 Android Development] Meikrekel:
I think it would be cool to get something running like debian running the way it runs on the nexus one (some sort of dual-boot method using fastboot) and then make a custom user interface so it works better on phones (now everything is small), something like.... ubuntu netbook remix or KDE plasma for netbook. To bad gnome or KDE would be slow, altough debian + lxde runs very good on a nexus one, so it might be nice to create sometglhink like the interface of ubuntu netbook remix for lxde. Lxlauncher would be a good start I guess?
[XPERIA X10 Android Development] drunken_m:
There are already GUIs optimized for mobiles which run with an X session.

For example: OPIE ( http://opie.handhelds.org/gallery/main.php )

Or: GPE ( http://gpe.handhelds.org/ ) - the screenshot gallery does not seem to work ATM, but you can find many pics on Google.
[XPERIA X10 Android Development] Meikrekel:
These projects seem outdated, there last post was in 2007. I've been reading about Meego being ported to the nexus one: http://wiki.meego.com/ARM/MSMQSD, that interface looks awesome. The developer does have one problem, he needs the driver for the graphics card. Now he has some sort of alternative but it is quite slow... Interesting project:)
[XPERIA X10 Android Development] RaDi:
plZ any one tell me where i but those scrpits ??

i am usng windows , and can i install win95 or 98 on it and how ?

thnx AlL
[XPERIA X10 Android Development] drunken_m:
Hi!

You can run - theoretically - run Win95/98 on your X10 with aDosBox - the Android version of DosBox. But I haven't tried that, only saw this video: http://www.youtube.com/watch?v=XEHqKTXpSR0&fmt=22

This topic however is about "running" Debian on the X10. About the scripts: I'll publish them as soon as I can manage to get a little video tutorial together. I've written some very neat scripts, so you basically just need to copy the image to your SD card and run 2-3 scripts in order. Unfortunately I'm working afternoon shift this week (even on Saturday), so I'll only have time to make the video on Sunday or later... Please hold out until then.
[XPERIA X10 Android Development] Meikrekel:
I understand you're using the VNC method, I've used this method to, but it was to slow, but you are using debian (aren't you?), so it might be faster, do you like the speed of it?
[XPERIA X10 Android Development] RaDi:
thanx drunken_m U are the best here !

i saw this video befor but i ask about how ? i have aDosbox on my phone and win95 Img file but whats the scrpit i should write it ?

about linux , ok i`ll wait while u make the video , but u don`t tell me where i should but the scrpits in ?? i have the debian img now but scrpts ??

sorry for my week English . and ur great man bro :)
[XPERIA X10 Android Development] SuperUserMovado:
I have been reading about meego ported to the N1, HTC Desire and Dell Streak. Since the X10 uses the same processor we should be able to do the same. However I am not sure if fastboot works with the Xperia X10, I might give it a go this weekend.
[XPERIA X10 Android Development] RaDi:
can we do like this http://www.android-devs.com/?p=152 ????
[XPERIA X10 Android Development] Meikrekel:
Not yet, since the bootloader isn't cracked yet. As soon as that is done, I think it should be possible
[XPERIA X10 Android Development] drunken_m:
Hi!

@Meikrekel: yes, I'm using the VNC method, and yes it is extremely slow. I don't use it all day, just wanted to see how it works. Tried to fiddle with it, but it was more fun than it was usable... The main problem - beside the slowness - is, that with a resolution of 854*480 LXDE and IceWM have way too small icons. You can see, that they were not intended for mobile use.

@Ahmed radi: I only saw the video. I got stuck with aDosBox at the very beginning, since I could not get the keyboard to show up like on the video. No matter what button I pressed, aDosBox wouldn't move (except for the "Back" button, where I got a "\" and a new line). If somebody could tell me how I get keyboard under aDosBox maybe I could even start the Win95 installer...

@SuperUserMovado & others: fastboot doesn't work yet, since the bootloader has to be cracked. The DEVs use an "usbloader" method (I have no idea what that is) to crack the bootloader and get their images working, but it's still not perfect.

Until the bootloader is cracked we have to be happy with the VNC method... :(
[XPERIA X10 Android Development] Meikrekel:
Doesn't press and hold the option-key (the left one) work? You have to presss it for like 3 seconds
[XPERIA X10 Android Development] RaDi:
drunken_m

in dosbox u have to wait 15 sec then prese menu button and the key pord will work will! i try it by my self !

i have want to ask u what is the wrong with me :

1- copy debian.img to sdcard

2- make startdeb.sh with first scirpt to sd

now run terminal on x10

$su

# cd /sdcard

# chmod 777 ./startdeb.sh

# sh ./startdeb.sh

then when i write (apt-get update) i got a massege :

apt-get: not found

???

what is the proplem and what shoud i do now ??

thanx to all
[XPERIA X10 Android Development] Meikrekel:
You could do it using this tutorial: http://nexusonehacks.net/nexus-one-hacks/how-to-install-ubuntu-on-your-nexus-oneandroid/, take a look at it, it uses ubuntu boot I think it'll work to if you replace the ubuntu.img with a resized debian.img. Than rename debian.img to ubuntu.img and replace some files with the files from xperia-fix.zip (you can find xperia-fix.zip on the third page of this topic;))

I hope it'll work:)
[XPERIA X10 Android Development] RaDi:
Meikrekel

i don`t want ubunto i want dibian ! .

any one tell me whats the wrong !

drunken_m

i use wifi kepord to write in dosbox. try and tell me what happend ?
[XPERIA X10 Android Development] RaDi:
where are u friends????
[XPERIA X10 Android Development] drunken_m:
Hi!

aDosBox: tried pressing the "Options" button (left) for 3sec, 5sec, even 10sec. Nothing happened. If I press & hold the "Menu" button (middle one) I get a popup about the currently running programs, and I can switch between them. I guess that's the Android version of "Alt+Tab"... When I start aDosBox it says: "Welcome to DOSBox v0.73". Which version do you have?

About apt-get: first off: startdeb.sh is bad. Very bad. After the chroot command the mounts will not get done (since you have a new shell). That's why I had to make 2 scripts: the first just mounts the image, the second does everything else. "apt-get" is not found because after chrooting the $PATH is still the one from Android (/system/bin, etc...). You have to set a new $PATH like: export PATH=/bin:/usr/bin:/usr/sbin:$PATH

Also, apt-get won't probaly work for the first time, because it can't resolve the repo's address. I had to edit /etc/apt/sources.list and change ftp.de.debian.org to 141.76.2.4 - sed can help you:

sed s/'ftp.de.debian.org'/'141.76.2.4'/ /etc/apt/sources.list > asd; mv asd /etc/apt/sources.list

Here are my scripts and what to do (I wanted to publish them after I made the video, but what the hell). Steps to start it:

1. You'll need a rooted X10, with Busybox!

2. Copy your Debian to /sdcard/debian.img, copy the scripts from the zip to /sdcard/scripts

3. Open a Terminal/adb shell and become root (su)

4. Mount & Chroot:

sh /sdcard/scripts/startdeb1.sh

5. If it was successful you should see "sh-3.2#" instead of just "#"

6. --FIRST RUN ONLY-- Exit the chroot, copy the rest of the files, and then back into chroot:

exit
cp /sdcard/scripts/startdeb2.sh /data/local/mnt/root/
cp /sdcard/scripts/bashrc /data/local/mnt/root/.bashrc
cp /sdcard/scripts/x* /data/local/mnt/root/.vnc/
chroot /data/local/mnt

7. Inside chroot again:

cd /root
. .bashrc

You should see "localhost" instead of "sh-3.2"

8. Now you have everything set to use apt-get and all other commands available in your Debian installation.

9. Install everything you want (apt-get install tightvncserver lxde icewm xterm). ATTENTION! The 750MB image is too small for LXDE, if you want LXDE you'll need at least a 2GB image! For only IceWM & xterm it's enough.

9. Now run ./startdeb2.sh - each time you restart the phone you'll need the mounts for Debian, so answer "y" to the mounts. Then choose a VNC session.

10. Done.

Any corrections/suggestions are welcome!

@Ahmed radi: please be more patient next time! ;)
[XPERIA X10 Android Development] RaDi:
drunken_m i was true when i Say your the best here !and now ur ginuse !

i do evry thing u Say and all thing done > in the end i write (y) then chose a drive . no thing happend ?

i got this massege:

what i shoud do now ??

dosbox : i use WiFi Keyboard to write on it . and now try to run win95 . have some prop. in it :(
[XPERIA X10 Android Development] drunken_m:
Hi!

(ALL paths are from within chroot, except those which begin with /data/local/mnt)

Let's start with the last error: "tightvncserver : command not found" - did you install tightvncserver with apt-get ("apt-get install tightvncserver")? Is it in your path ("which tightvncserver")? Try to find it: "find / -name tightvncserver" - it should be under /usr/bin/tightvncserver.

Also, before you first run tightvncserver you may have to create the directory ".vnc" ("mkdir -p /root/.vnc/"). And just to be sure do a "chmod -R 777 /root/.vnc". Then you have to copy the files from /sdcard/scripts/x* to /data/local/mnt/root/.vnc/

Check if you have them. Best, if you are already in chroot do an "ls -la /root/.vnc/". You should see at least these files:

- x.icewm

- x.lxde

If even after this tightvncserver won't start look in /root/.vnc/localhost:X.log for possible errors (I had some permission problems). "X" is the number of the started session (for example: localhost:1.log). If you don't want to use VNC anymore and free up you memory, you can kill tightvncserver like this: "tightvncserver -kill :X" ("X" being you session number).

I'll also do a "cleanup" script which stops everything and properly umount's Debian, so you don't have to reboot your phone to get everything out of the memory. But that's coming next week along with the video.
[XPERIA X10 Android Development] RaDi:
i try again and i get :

sorry I am disturbed
[XPERIA X10 Android Development] drunken_m:
Sorry, but I only can repeat myself:

- did you install "tighvncserver"?

- is it in your $PATH variable?

For example: if tightvncserver is installed under /usr/bin/tightvncserver your $PATH should contain /usr/bin - the easiest way to test it is: "which tightvncserver".

- If you get: "tightvncserver is /xxx/xxx" then it's installed and in your $PATH.

- If you get: "No tightvncserver in /bin:/..." you either don't have tightvncserver installed or you have it installed somewhere outside $PATH.
[XPERIA X10 Android Development] RaDi:
i don`t know what is tighvncserver !!

i try find / -name tightvncserver and i get :

??

and whats $PATH ??

i feel iam stuped :S
[XPERIA X10 Android Development] Cablekevin:
Try it with SU infront of your commandline. (you'd be prompted to enter a password)
[XPERIA X10 Android Development] kakekeke:
i wonder out what im doing wrong...

First downloaded the image from the first post, then the Ubuntu files from #25.

Then i go my terminal emulator and type: "sh ./ubuntu.sh" then i get many lines of code, and on the bottom of that: "To enter debian linux console, just type "bootubuntu" "

Then i try bootubuntu, i get no found. ./bootubuntu says "permission denied"
[XPERIA X10 Android Development] Meikrekel:
I`ve had that problem to, I guess You've followed the tutorial of nexusonehacks? Search for that problem in the reactions of nexusonehacks' tutorial, I found the solution there, but can't remember me what it was, sorry for that
[XPERIA X10 Android Development] RaDi:
all done , but ! when i try :

i get :

i try to change

to

i try befor and after i edit it .

now sources is like this :

?????

thanx
[XPERIA X10 Android Development] drunken_m:
Hi!

You're on the right path! :) I checked my sources.list, and it is the same as yours. It should work... :confused: Try to do an:

apt-cache search tightvnc

and see what you get. If you don't see tightvncserver do an update of the sources like this:

apt-get update && apt-get upgrade

And then try to install tightvncserver again (apt-get install tightvncserver).
[XPERIA X10 Android Development] RaDi:
i try the two ways up^^ but i get the same !

so I try apt-get update alone

then apt-get install tightvncserver and its install scsesfly <i think i write it wrong :D ,

then try ./startdeb2.sh then y then a

it want password i write it then nothing happend !

i try agine and i get this :

what shoud i do now ??

thanx ,
[XPERIA X10 Android Development] drunken_m:
That's great! You got TightVNC running! ("startup: 0" says, that it started successful)

Now, you can see if it works, by starting a VNCviewer on your phone and connecting to locahost:5901 like I wrote 2 posts back. If you get a grey screen with a black "X" then it's fine! :)

Of course you will need to install IceWM and Xterm (or LXDE) if you want a desktop. I've written about it also in my previous posts.
[XPERIA X10 Android Development] RaDi:
fainlly ! its run now on my mobile !!

all thanks to the best member in XDA drunken_m !

but the IceWM is very poor ! not like really pc !

i have a qus. :

can we run other linuxs like Xbunto ? i like xbunto :)

thanx aloooot Dr.drunken_m :D :D :D
[XPERIA X10 Android Development] drunken_m:
It's good to hear that it works :)

Well, actually IceWM is 100% like on the PC. Only the screen is smaller, and therefore it's basically useless. The same would go for any Linux distribution or GUI (like Gnome, KDE, XFCE...)

Ubuntu has already been tested and working on the X10 just like Debian. (Which means it's also slow and useless on the "small" screen...). Have a look here for a tutorial:

http://nexusonehacks.net/nexus-one-hacks/how-to-install-ubuntu-on-your-nexus-oneandroid/

(A link for some modified files - which are needed for the X10 - are in this post: http://xdaforums.com/showpost.php?p=7099427&postcount=25)
[XPERIA X10 Android Development] irTim:
Hello, I followed all the steps, however when I type:

sh ./startdeb.sh

I get

: not found

: not found

./startdeb.sh: cannot create data/local/mnt/etc/resol

: error 22

: not found

mount: no such file or directory

mount: no such file or directory

mount: no such file or directory

rm failed for -f, no such file or directory

link failed file exists

Please could someone tell me what I am doing wrong?
[XPERIA X10 Android Development] aosi:
He does anyone knows if it posible install ubuntu netbook on X10?

and how?
[XPERIA X10 Android Development] mookie3three:
fairly certain you can install the netbook gui on any ubuntu version. not sure how but google will tell you.
[XPERIA X10 Android Development] aosi:
hey i installed so now this is a well can i delete ir or uninstall?
[XPERIA X10 Android Development] aosi:
hey i try to do this with my x10a and didnt word sais no exist /bin/bash or error 40 on bootubuntu . i change loop an all u.u i cant installed
[XPERIA X10 Android Development] drunken_m:
Hi!

To uninstall, just delete everything you copied to your SD card (debian.img, stardeb*.sh and the other scripts). Nothing else needed. To make sure you free up all resources, do a reboot BEFORE deleting the files. So, any open images get closed and any VNC sessions get terminated.

To say it short: reboot then delete the files ;)

To your other post: I didn't try Ubuntu, so can't help with that. Sorry!
[XPERIA X10 Android Development] dadaX10:
hello guys,

i had the grey screen with the black curser. but i don't known how to continue.

i want to install ubuntu on my X10.

can you help please
[XPERIA X10 Android Development] ddaemen:
hi all,

i managed to get ubuntu work on my x10, however when i open command with bootubuntu i get following error:

vncserver: geometry 800480 is invalid

how can i solve this as there is an 'x' missing. tried apt-get remove tightvncserver and reinstall it again but does not solve problem.

vnc works fine, but not on desired resolution. when i try vncserver -kill :1 and then vncserver -geometry 800x480 it works fine.
[XPERIA X10 Android Development] :
Damn, Im a Debian fan and I hadn't seen this!

Gonna try. Is there any screeshot?
[XPERIA X10 Android Development] anantshri:
Working good....

thanks for the tutorial... however i have done minor modification by bifurcating the kill and start scripts into two part.

will post my updates soon as soon as i get some time out of my schedule..
[XPERIA X10 Android Development] Mister J:
talk about a bump...
[XPERIA X10 Android Development] Meikrekel:
I'm still interested in making this work in a normal way, like you have a dualboot. Maybe it is possible now we have progress on bypassing the bootloader with kexec (coorect me if I'm wrong). Any expert who knows if it would be possible to do this?
[XPERIA X10 Android Development] speculatrix:
I am trying to get a loopback mount working so I can run debian or ubuntu stuff on my phone

I can do the "losetup" phase - having done any mknod's beforehand, but when I try and mount I always get "Device or resource busy".

This happens after I reboot, and losetup says there's no loopback mounts at all. I am running a very complete busybox on a fully-rooted rom, so I am pretty sure it's not permissions. I have checked /proc/config.gz and "CONFIG_BLK_DEV_LOOP=y" is in there. There are no loop devices mounted if I "mount | grep loop".

I am quite puzzled and frustrated by this. I have read many guides and followed many threads to see why this might be.

I've noticed there's a load of /dev/block/dm-(number) mounts on my phone, could these be conflicting in any way?

If I use "dmesg", I note that the following line appear after the mount commands fail:

[65200.444854] init: untracked pid 24327 exited
[65200.445526] init: untracked pid 24328 exited
[65200.447448] init: untracked pid 24329 exited
[65200.448852] init: untracked pid 24330 exited
[65200.450286] init: untracked pid 24331 exited
[XPERIA X10 Android Development] anantshri:
check my threads in signature.

Backtrack on android and

Ubuntu on android

all those scripts will work seemlessly with ubuntu image also.
[XPERIA X10 Android Development] speculatrix:
thanks, I will take a look.

I have tried other people's scripts, and modified them to add additional debugging, and no joy.

For the moment I simply created a minimal image in a tar ball and copied it over to /data/local/linux and chroot'd into that, and it works.
[XPERIA X10 Android Development] anantshri:
that's the actually concept buddy the difference is that we try to keep a .img file which is nothing but a ext2 partition on file and use loopmounting for it to be available @ /data/local/linux or what ever name you may have.

the only difference i have is i did some simple optimization on code and segregated code in 3 files start stop and cmd so as to allow person to independently work on chroot image without caring about autoclosing of terminal window.
[XPERIA X10 Android Development] Umeaboy:
If I want to use Mageia in my X10i, what do I do?

I've got the all.img ready for mageia from ftp://mirrors.kernel.org/mageia/distrib/1/i586/install/images/

My phone IS rooted.
[XPERIA X10 Android Development] anantshri:
if what you refer to are actually partition images in ext2 file format all you need is to replace the img file from any of my script set with current file and all will be done.
[XPERIA X10 Android Development] Umeaboy:
OK. People in #mageia told me that there's no way that it could work, but I'll try. Any video yet that proves it working?