[GT540 Optimus Android Development] Danzano:
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 root@localhost:/# 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.