yashsingh1/xdaforums huggingface dataset:
[XPERIA X10 Android Development] jase81:
hey dude ive done want you have said but keep getting these errors =

cannot create /data/local :directory nonexistant

setting localhost on /etc/hosts

cannot create /data/local :directory nonexistant

brought to you by nexusonehacks.net and the open source commuity

enhanced by https:/code.google.com/p/android-cruft/

customized by anant shrivastava http://annantshri.info

chroot: cant change root directory

:no such file or directory

:not found

:not found

what have i done wrong lol
[XPERIA X10 Android Development] anantshri:
these steps are to be performed as Superuser so you need to be rooted and use su before starting the command.
[XPERIA X10 Android Development] jase81:
yep am rooted n su allowed , still the same errors dude :o
[XPERIA X10 Android Development] anantshri:
Just wait for 1 hr or so, I am in a process of bundling all the scripts in one package and will share the same with all of you.
[XPERIA X10 Android Development] anantshri:
All,

I have updated the scripts a little and also uploaded a single package for the work.

123 step for setup also included.

Please check.

also do report if you find any issues in the same.
[XPERIA X10 Android Development] kozxmartt:
Hi... when i do tuxcmd, it says can't execute /bin/bash no such file or directory.

What should I do?
[XPERIA X10 Android Development] RaDi:
By me :

you :

WoW fast :D

what i can say ?! just you forced me to say thank you and reply here !

its very fast esay gr8 , what ever you want u will fined .!

but a small Q. how i can run it after the 1st time ?

thanx bro >

MAN your a machine
[XPERIA X10 Android Development] anantshri:
Ohk once you have done 'starttux'..

you can gain shell again anytime by typing 'tuxcmd' after going su on terminal

also keep in mind its chroot and hence will be available till you reboot

once you have rebooted your machine all you need to do is starttux and say no for advance configuration.

then you get the shell.I hope you got the point.

also Meego right now is a far fetched way coz i am no where close to understanding the boot sequence and how i can modify it for myself.

lets see how much time i need to get this done.
[XPERIA X10 Android Development] Meikrekel:
Ubuntu 2D netbook interface

Hey, I've searched for a while and have a suggestion. I don't have time to test your ubuntu at the current moment. Could you try out the following thing:

sudo apt-get install netbook-launcher-efl

This will install the 2d netbook interface that came with ubuntu 10.04. It should work a lot nicer on touchscreens than LXDE;)

EDIT:

Sorry had the wrong code, changed it to sudo apt-get install netbook-launcher-efl, which is the wright code
[XPERIA X10 Android Development] DooMLoRD:
suggestion for mounting /data & /system partitions

@anantshri

there are various partition layouts (MTD device blocks are different) for X10... so /system partition might not be at /dev/block/mtdblock3 for some X10 models (X10HD has confirmed different partition layout and some others have a different layout)...

from xRecovery:

use the following workaround to avoid any such issues:

for remounting /system partition use:

mount -o remount,rw -t yaffs2 `mount | busybox grep /system | busybox awk '{print $1}'` /system

for remounting /data partition use:

mount -o remount,rw -t yaffs2 `mount | busybox grep '/data yaffs2' | busybox awk '{print $1}'` /data
[XPERIA X10 Android Development] anantshri:
That looks like something i can try....

alas need to wait for some time as my Phone right now is on 2G network and i am away from my wifi network.

need to wait till i get either 3G or wifi.

or if anyone has any better option to download 270 MB on my phone.
[XPERIA X10 Android Development] OmegaRED^:
This is.. awesome.

Please work on improving this more. :)
[XPERIA X10 Android Development] DooMLoRD:
have u tried using GScipt Lite for executing the scripts instead of using terminal emulator/connectbot

u can also create shortcuts for those scripts!!!
[XPERIA X10 Android Development] anantshri:
I tried once however consider it my ignorance or i have not yet explored it all.. most of my scripts need user input however Gscript runs a script and i find any option to give inputs.
[XPERIA X10 Android Development] DooMLoRD:
yes u are right Gscript doesnt allow userinput...

i have jsut d/led the ubuntu.img.bz2 file... will start testing this...
[XPERIA X10 Android Development] anantshri:
Now the actual test begins... would be waiting for your tips and suggestions on how to improve the script ....
[XPERIA X10 Android Development] RaDi:
now i get root@localhost:~#

but how to enter ubuntu?
[XPERIA X10 Android Development] anantshri:
This means you are in ubuntu now.

however if you are talking about the gui mode.

id you used my zip file for setup did you executed config on root@localhost:~# prompt

if not now is the good time

root@localhost:# config

this will setup the environment for you.

if this works without fail then you just type ui.

and then use any vnc viewer client on your phone and connect to your ubuntu using localhost:5901 to get full blown gui experiance.

I hope this clears the confusion
[XPERIA X10 Android Development] Meikrekel:
One small question: is any form of internetconnection working (WiFi, 3G, 2G)?
[XPERIA X10 Android Development] anantshri:
It uses your Phone's connection be it Wifi, 3G, 2G....

I have installed all softwares using the same.
[XPERIA X10 Android Development] RaDi:
thanx alot anantshri :0

but when i try ui i get :

/root/bin/ui: line 10:vncserver: command not found

??

itry to go vnc and type :

nickname :Radi

password : ******

addrss : localhost

port:5901

??

try to boot and grt '' VNC connection failed!
[XPERIA X10 Android Development] anantshri:
That's because this image doesn't have a vncserver pre installed.

run config on command prompt of ubuntu

if that fails then run /root/bin/config

this command need to be run on root@localhost~:# prompt

if all fails you need to install xtightvncserver and lxde to get GUI
[XPERIA X10 Android Development] RaDi:
ohh !

my wifi was tarn off when i try config :D
[XPERIA X10 Android Development] DooMLoRD:
dude a lot of this can already be automated

dude a lot of this can already be automated

ubuntu.sh

just add the following code to the end of this file

starttux

-OR-

sh starttux

starttux

30 read -p "Enter 'y|Y|yes|YES|Yes' for advance setup any other for shell" ans
31 case "$ans" in

u can just comment line no. 30 out and replace it by:

ans="y"

this will automatically get into advanced configuration

also u can change the lines

33 sh setup.sh
34 return 0

to

sh setup.sh
tuxcmd
return 0

-OR-

sh setup.sh
sh tuxcmd
return 0

config

02 read -p "Setup System (y/n)?" ans
03 case "$ans" in

u can just comment line no. 02 out and replace it by:

ans="y"

actually this whole command (config) can just be skipped if :-

why do u want to make the user download packages?

07 apt-get install lxde localepurge tightvncserver synaptic

why not jsut install everything and then upload the latest img with the installed packages?

if u use these modifications u will jsut shorten the userinteration to:

now follow this sequence : ubuntu.sh

now your machine is ready for usage

i havent tested it myself but i think this will work!
[XPERIA X10 Android Development] anantshri:
Hi DoomLord,

Thanks for the tips.

I made config file coz i wanted to give freedom to user for selecting its own packages. however gave him a set of packages which he can install if required.

starttux in ubuntu.sh is a valid thing i should have thought.

however regarding the read for y and n all i wanted to give was more user control as setup.sh is a one time process not to be repeated every time coz its actually modifying the img files contents.

same was the case with config coz that also is a one time work.

from next time onwards its just starttux if you have rebooted the phone or else just tuxcmd for shell.

also i am already planing to upload 3-4 diffferent img files

1) LXDE desktop

2) Gnome Desktop

3) Ubuntu netbook remix

4) KDE (if it can actually work)

Note : VNCserver to be installed with default password

however this will take a weeks time do atleast reach a level of testable images.
[XPERIA X10 Android Development] kozxmartt:
It asks me for origin of Keyboard a little while after i type in config. I cannot select any country.
[XPERIA X10 Android Development] DooMLoRD:
its great that u have plans to include so many things!! but for the time being just upload atleast 1 img file with one desktop/window manager and required packages already installed.... so thats easier for users to test this on their devices without much modification...

u can keep the img file u posted here as a base system....

also since the issue of 4gb max file size on a fat32 FS is there... why not just have different img files for different mount points in ubuntu... so u can have a bigger ubuntu system with each mount point img <4gb
[XPERIA X10 Android Development] DooMLoRD:
@anantshri

since X10 doesnt have hardware kb i had to use droid-vnc-server to get this installed during locale/etc

btw do Bluetooth KB+mouse work?
[XPERIA X10 Android Development] DooMLoRD:
just saw the metaexploit image :D

why not BACKTRACK?
[XPERIA X10 Android Development] anantshri:
My Bad I forgot.... I used adbshell to run this part.

Looks like a cool idea let me take some time off tomorrow... have a deadline for a project too..

Bluetooth Mouse Keyboard should work theoretically didn't tried though

Backtrack is not having and ARM port otherwise that would have been here.... slowly slowly trying to bring this as close to backtrack as possible.
[XPERIA X10 Android Development] DooMLoRD:
/root/.vnc is getting created as a FILE not a DIRECTORY

so UI script is giving error...

had to remove the /root/.vnc FILE ;) and then create /root/.vnc as directory and then put the xstartup file there

also KILLUI script needs to be more generic... i was running droid-vnc-server on :1 and the kill script was trying to kill it ;)

better search for the lock file of vnc within ubuntu and then kill that particular desktop...

sleeping now... its early morning here... :D
[XPERIA X10 Android Development] anantshri:
hi All,

need one input,

I downloaded the ubuntu-netbook packages now just one piece of information missing

what do i need to place in xstartup to get my netbook interface running.

its 4:00 AM my Time going to sleep will continue in the evening from where i have left.
[XPERIA X10 Android Development] DooMLoRD:
and it works...

:D

quick tip...

if u guys have ur devices connected to wifi u can access the vncserver of ubuntu on X10 by using TightVNC software on PC, u can enter the address as: <ip_address_of_device>:<port>

<port> would be 1 or 2
[XPERIA X10 Android Development] DooMLoRD:
i noticed that cpu consumption stays at 100% when ubuntu is active... why so?
[XPERIA X10 Android Development] anantshri:
Not sure why... however there is one more confusion.

i have checked back and forth at times you will see 100% inside ubuntu where as normal android assistant shows less %
[XPERIA X10 Android Development] anantshri:
Was trying some stuff last night and finally got this

Will update the steps tonight probably with custom Ubuntu.umg also
[XPERIA X10 Android Development] Meikrekel:
That was indeed the interface that I meant:D:D Good job mate!
[XPERIA X10 Android Development] DooMLoRD:
ah interesting.... which is this interface?
[XPERIA X10 Android Development] anantshri:
netbook launcher 2D specially created for ARM devices..
[XPERIA X10 Android Development] Meikrekel:
It's based on Enlightenment to be exactly. You can install it by typing in the following thing in your terminal:

sudo apt-get install netbook-launcher-efl
[XPERIA X10 Android Development] anantshri:
exactly,

Thanks Meikrekel for correct description.

The trick comes in vnc server xstartup configuration took me nearly 2 hrs to figure it out.

also learned some cool tricks for vnc viewer.

right now @ a different laptop will update the post's with proper details once i log back to my personal Laptop.
[XPERIA X10 Android Development] kozxmartt:
I was getting the error... did what you suggested and now its working :)
[XPERIA X10 Android Development] RaDi:
is there a need for config if i do :

??

cause config take aloot time and i don`t have afast connection now :(
[XPERIA X10 Android Development] RaDi:
hi

in config i am now in step : origin of the keybourd :

i choose a languge the ? i try enter but nothing happend ?!

there is :

<ok> & <cancel>

how to press ok ?
[XPERIA X10 Android Development] Meikrekel:
Type in ok and press enter? Really no idea, you could give it a try:P
[XPERIA X10 Android Development] RaDi:
؟؟؟?????؟:d
[XPERIA X10 Android Development] RaDi:
here i am :
[XPERIA X10 Android Development] DooMLoRD:
before starting this install i recommend u use/install droid-vnc-server before u begin the whole install process so u can connect up to the android device over wifi from PC and use the kb/mouse from ur pc during the install process of ubuntu...
[XPERIA X10 Android Development] Meikrekel:
Have you tried to scroll down all the way down the list? That might get you on the ok button!
[XPERIA X10 Android Development] RaDi:
i try evry methoud but no way ":(

now i`ll try DooMLoRD methoud :)
[XPERIA X10 Android Development] RaDi:
i try to connect with VNC on my PC then i get screen and i can contrual my phone :)

but i try to press on <ok> but nothing happened !

i think because its on terimnal !
[XPERIA X10 Android Development] Meikrekel:
You can't use a mouse in a terminal;) If I were you, I would start pressing every single key that my KB has:P
[XPERIA X10 Android Development] RaDi:
pooof !

ok thank u Meikrekel & DooMLoRD ,

i will wait for anantshri
[XPERIA X10 Android Development] kozxmartt:
I had the same problem before... so what I did was I deleted the Ubuntu folder on the sdcard and copied all the files all over again. It did not give me this problem after that.
[XPERIA X10 Android Development] RaDi:
@kozxmartt

i will try now , thanx

but hve i to rebeet all steps or start from tuxcmd ?
[XPERIA X10 Android Development] RaDi:
ooh man !

i try to delete ubuntu folder and re copy it but now when i try conig i get :

bash: config: command not found !
[XPERIA X10 Android Development] DooMLoRD:
use the KB keys!!!

as the VNC connection is in portrait mode u may need to press left cursor key instead down key and press right cursor key instead up key... and press ENTER to "press on <ok>"...

thats the way i did and it worked...
[XPERIA X10 Android Development] RaDi:
DooMLoRD

thank you man and relax :D

but how to press KB ?
[XPERIA X10 Android Development] DooMLoRD:
dude i ment that once u connect to the vncserver on ur device/phone from ur PC, u can use the keyboard/mouse of ur PC to control the vncserver desktop on Ubuntu...
[XPERIA X10 Android Development] anantshri:
WE need to use spacebar....

as already said Please use ADB Shell to run this or use vnc server mode as suggested by DoomLord

Thanks for helping all in my absence.

I am working on custom ubuntu.img files. wait for 3-4 hrs more will upload them and give out the link where lxde will be completely preconfigured.
[XPERIA X10 Android Development] RaDi:
after i try to delet then recopy the files , when i try to config i get :

bash: config: command not found

help plz :'(

@anantshri

thanks alot man ! your great , love in linux !

plz fast cause i want to try befor go sleep :D
[XPERIA X10 Android Development] DooMLoRD:
tip to decrease size of files to upload... use 7z (ultra compression LZMA)... it will reduce the file size even further (almost 20% lesser... the ubuntu.img.bz2 u uploaded was around 120MB... i tried 7z compression and it came down to 90mb)
[XPERIA X10 Android Development] anantshri:
config will only be available if you follow all the steps.

also try this alternate command before doing anything else.

root@localhost:~# sh /root/bin/config

hope this solves your problem

if you again face file not found then that means you missed one of the steps.
[XPERIA X10 Android Development] anantshri:
Current progress

Downloading packages as i did a cleanup without storing the packages.

In the mean time some simple VNC related tips.

use VNC Viewer on android to view all VNC connection.

in VNC viewer for better contorl over mouse use the second option which is touchpad mode.

You can send keys like space and enter using send key method of vnc viewer.

TO USE VNC ON YOUR MACHINE

one way is to activate wifi and install vnc server on your android. (suggested by DooMLorD)

another alternative way is using the adb shell, run following commands on your pc/laptop while you are connected to phone

adb forward tcp:5901 tcp:5901

adb forward tcp:5801 tcp:5801

now start any vnc viewer using localhost:5901 and you will get the connection.
[XPERIA X10 Android Development] MrHassell:
Great project! Looking forward to seeing this in flight :-)
[XPERIA X10 Android Development] blisslove:
It's really interestig project. Can I make / accept phone call with that ubuntu?
[XPERIA X10 Android Development] omnikam:
Yeah that would be sweet,phone /Linux in 1
[XPERIA X10 Android Development] Meikrekel:
I have seen something like that a while ago, let's see if I can find it for you;)

EDIT

Here it is: http://www.youtube.com/watch?v=tOPu6DgbOs4&feature=player_embedded#at=405 at around 6.40 he shows how he gets a text message and makes a phone call;)
[XPERIA X10 Android Development] blisslove:
Sweet , hopefully we can ;-)
[XPERIA X10 Android Development] Meikrekel:
Well, the HD2 uses a different way of booting ubuntu, but I think that because we still are running android as well, we should have a phone signal in ubuntu as well. I think it'll work;)
[XPERIA X10 Android Development] anantshri:
Not right now. At this movement we are using chroot method which is no where close to pure ubuntu.

however logically speaking we can still recieve and make calls as android is already running in the background.

video looks cool

few update

a good interesting find / read :

http://androidforums.com/samsung-i7500/81090-debian-dualboot.html

The interesting portion is how he is dual booting.

Spending efforts on this might help us in achieving dual boot

also for those stuck at how to get past the keyboard selection screen i finally figured it out for phone only method.

check the screenshot below.

the key above ALT is tab and that's what we can use followed by spacebar or enter key.
[XPERIA X10 Android Development] Meikrekel:
If I understand well, he made debian to work on top of a modified android kernel?
[XPERIA X10 Android Development] Meikrekel:
I've found another desktop manager that might be very interesting to try: Hildon. It's the desktop manager that maemo uses, so it should work just perfect on our 4-inch screen!

Here's a link: http://en.wikipedia.org/wiki/Hildon

And now that I'm thinking about maemo, you can call with the N900, so it probably has some sort of application that we can use to make phonecalls on ubuntu/debian since maemo is based on debian (correct me if I'm wrong).

Man.... It sucks I don't have so much time to test this all out myself. Tomorrow is my last exam, after that, let the party begin:D
[XPERIA X10 Android Development] OmegaRED^:
I am trying to find out a few things a few things.

How complete is this?

will the blue tooth and wifi work?

could i connect a wireless Keyboard?

Having a fully flegged OS at my fingers would rocks.

I'm just wondering how far it will go.
[XPERIA X10 Android Development] anantshri:
YUP exactly buddy... that makes me excited.

just a quick update on this.

hildon is available in ubuntu arm port, we just need some testing on it.

update : my ubuntu image with LXDE interface only cleaned up and configured is just getting ready. (need to extract from my phone and compress + upload)

working on customizing the scripts to avoid the errors encountered so far .

so we will have only 4 files besides ubuntu.img

ubuntu.sh

starttux

stoptux

tuxcmd
[XPERIA X10 Android Development] anantshri:
Relax Buddy.. we have just started 2 days back lets work for few more days a lot more possibilities have opened since first day.

lets see how much we can make it useable.

rightnow practically anything which can work on andriod can work with this as this is using android as base so (not TESTED) do try cliping BT keyboard or mouse set with it. (****** not tested ********) i don't have a BT keyboard or mouse.
[XPERIA X10 Android Development] Neo.:
Please backtrack :(

I'd love to see backtrack running on x10
[XPERIA X10 Android Development] Meikrekel:
I've watched his video, looks like he has some sort of app that makes the phone reboot into debian, so basically it should be something like a code wich you can turn on and off, and makes it possible to boot into something that is placed on the sdcard.

Really simple said:

if code = on:

sh /sdcard/ubuntu/ubuntu.sh

else:

boot android

and that code should be executed before android starts booting..

(I know the actual code would be way way way harder, but this should be a simple model of how it could look like lol)

I really have no idea how the bypassing and all that works but I believe DooMLoRD knows quite a bit about that subject!
[XPERIA X10 Android Development] anantshri:
YES Buddy,

as per my reading and short intro of bypassing given to me by DoomLord this is what is happening here also.

so i am just hoping that possibilities are high for us to get dual boot... lets see how thing go by in coming days.

Backtrack is what i wanted to port however no ARM port of backtrack currently available so slowly slowly we can build this up as a backtrack alternative.

I am having high hopes with NeoPwn too.... someday maybe someday we might be able to port NeoPwn to X10
[XPERIA X10 Android Development] OmegaRED^:
I was just thinking how cool it would be to be able to port all my classic linux games to this.
[XPERIA X10 Android Development] anantshri:
Even before thinking about Porting any game check a large set of applications are already ported for arm.

also the only constrain that remains is not having a physical keyboard.
[XPERIA X10 Android Development] Meikrekel:
There's a solution for that: http://www.dealextreme.com/p/mini-bluetooth-keyboard-for-android-wince-nokia-symbian-s60-cellphones-black-37863

(not really sure if I'm allowed to post a a link to a shop here, if not, please delete it)
[XPERIA X10 Android Development] DooMLoRD:
i had posted this a few weeks back on Z's thread... possible solution for having both recovery and dual boot

i guess may be now we can use it? btw u would need to have EGL & HW libs written for ubuntu to use the qsd8k (snapdragon QSD8250) chipset and get display, especially since u want to skip booting into android altogether...
[XPERIA X10 Android Development] anantshri:
will have to check about the drivers portion for ubnutu

however maemo / meego seems to be having a porting going on for QSD will point to the link once i find it back.

EDIT : http://wiki.meego.com/ARM/MSMQSD <- this is what i was talking about and this is complete mobile os so hoping to get telephony also ....

however the weekdays would be less time for me...

lets see what i can do over the weekend....
[XPERIA X10 Android Development] anantshri:
Update 12 April 2011

ubuntu image preinstalled with LXDE uploaded and linked on first page.

this image and scripts have been cleaned a lot and updated based on simmilar efforts on other platforms...

Note : SDCARD is now properly mounted inside chrooted environment @ /sdcard folder.

@DoomLord,

killui has not yet been updated coz i am not sure if direct kill could have an adverse effect on vncserver.

the command could well be replaced by

kill -KILL `pidof Xtightvnc`
[XPERIA X10 Android Development] DAXGr:
Is this x10 (Armv7) specific?
[XPERIA X10 Android Development] anantshri:
ya the image is ubuntu arm port........ so yes its ARM specific.
[XPERIA X10 Android Development] Meikrekel:
After I've filled in the command: tuxcmd, can I swith to my VNC-viewer or should I execute that UI command?