How To Set up X11 on your G1 and computer - G1 Android Development

Using these instructions you will be able to run your phone as an X11 client.
Terminology:
X Server: An X "server" is the display server. It shows the screen that you would see on a remote client.
Basically, this will allow you to run applications on your phone and use your computer monitor and keyboard as the screen/input. This is very useful if you do any development on your phone.
Install Debian on your phone. http://forum.xda-developers.com/forumdisplay.php?f=448
Install Xming Mesa and Xming Portable Putty. http://www.straightrunning.com/XmingNotes/
Start up xming.
Install openssh-server on your phone under Debian: "apt-get install openssh-server".
Set up a Putty connection to your phone. Make sure you have X11 forwarding enabled. Save the settings.
On your phone enable X11Forwarding in your /etc/ssh/sshd_config
Restart your SSH server: "/etc/initd/ssh restart"
Disconnect from Putty and reconnect to your phone with the saved settings.
X should now be working.
I've attached an image of me running emacs, xclock, and xterm on my phone.

That's really neat, though it almost seems like a waste. I mean is there really enough space to get full gtk/qt enviroment? Wouldn't it make more sense to just use screen and vim, or in your case emacs? Though perhaps my thinking is to limited, I guess things accomplished here would translate over to the next android phone. Anyways, I likey. Keep up the work, it is appreciated.

dissonance said:
That's really neat, though it almost seems like a waste. I mean is there really enough space to get full gtk/qt enviroment? Wouldn't it make more sense to just use screen and vim, or in your case emacs? Though perhaps my thinking is to limited, I guess things accomplished here would translate over to the next android phone. Anyways, I likey. Keep up the work, it is appreciated.
Click to expand...
Click to collapse
I have a 16GB sd card. There is plenty of space.

Depending on the speed of the phone, i'd do it. I know ts limited to 300 something mhz if the full 500 was used itd make a good server of some kind. saw a g1 for £185 as much as a small linux pc and it could use 3g as a backup internet connection or something. either way its a great proof of concept. ill try it out when i get home!

Please confirm i uderstand right. This is method to run X applications on phone but viewing their GUI on PC? Right?

hmepas said:
Please confirm i uderstand right. This is method to run X applications on phone but viewing their GUI on PC? Right?
Click to expand...
Click to collapse
That's correct
So it's helpful if you are on a computer with adb and the USB driver for Android installed but you want to use X apps on it, but its not helpful for using X apps directly on your phone and being able to use them on the go...

native android xserver using opengl / gles ?
What about running an XServer on the device, do you know about some opengl / gles X server that can be ported to NDK ? any other tracks are welcome too
Regards

Related

x11 via Xvfb and x11vnc

I'm trying to get a window manager running under Debian. I'm using Xvfb and x11vnc. So far I've gotten the server up and running but I get a socket error on my vnc viewer after negotiating protocol. Anyone want to help?
Well, the clean way to display a X client on the phone would be IMHO to implement an x server in a windows. kind of like xming or xephyr. Too bad I don't know java
Anyway, using vnc looks like a smart idea. I worry about the performance, though.
I'll give it a try once I have re-installed debian on my ADP1 (trying to install it in a dedicated partition on the sd)
jusplainmike said:
I'm trying to get a window manager running under Debian. I'm using Xvfb and x11vnc. So far I've gotten the server up and running but I get a socket error on my vnc viewer after negotiating protocol. Anyone want to help?
Click to expand...
Click to collapse
Use X over SSH. Man I'll just write up a post.
I think he's trying to achieve X display on the phone, not on his computer.
Yes, I'm trying to get the display on the phone, not having to really on tunneling x11 over ssh.
I'm running a similar setup on my phone, in order to run X apps like xpdf. Works fine. Here's what you need:
In your debian chroot, apt-get install tightvncserver, and run it.
On the android side, run the android VNC viewer and connect to localhost:1 (or whatever display tightvncserver started). You'll get X on your screen.
You can apt-get and run a small window manager like twm if you need one. I generally use it without a window manager, with apps running in full-screen mode. For example, "xpdf -g 1024x768+0+0 some-file.pdf" to view a PDF. (at least until there's a decent PDF viewer for android).
Don't bother trying OpenOffice on it though. Too heavy - I actually tried it.
mod1 said:
I'm running a similar setup on my phone, in order to run X apps like xpdf. Works fine. Here's what you need:
In your debian chroot, apt-get install tightvncserver, and run it.
On the android side, run the android VNC viewer and connect to localhost:1 (or whatever display tightvncserver started). You'll get X on your screen.
You can apt-get and run a small window manager like twm if you need one. I generally use it without a window manager, with apps running in full-screen mode. For example, "xpdf -g 1024x768+0+0 some-file.pdf" to view a PDF. (at least until there's a decent PDF viewer for android).
Don't bother trying OpenOffice on it though. Too heavy - I actually tried it.
Click to expand...
Click to collapse
Are you telling me you got to run x app on the phone?
Yep, that's what I wrote. It was one of the first things I installed on the phone when I bought it. And performance is not as bad as I expected, as long as you don't try to run animation. Reasonable for reading a pdf.
Has anyone else tried this?
I cannot connect with android vnc viewer from my phone and tightvnc server running on debian showing "localhost:/#".
I am not using a password. I am trying to log in on vnc-viewer at 127.0.0.1 and have tried several ports including the default and 23.
mod1 said:
Yep, that's what I wrote. It was one of the first things I installed on the phone when I bought it. And performance is not as bad as I expected, as long as you don't try to run animation. Reasonable for reading a pdf.
Click to expand...
Click to collapse
Will i be abkle to run pidgin?
when i try to run vncserver it tells me that the USER envirioment variable i snot set
For the user variable error.Type su Again by itself before you start vnc. It has to do with now having set user in the enviroment set. I have an image that give you 2 gigs more of free space (uses up storage card) the current one only has 300megs free which limits you drastically and also a fixed script that you won't have to go into su again....
For the guys that can't get vnc working type localhost in the server field only and as for port use 5901... Use a password upon initial setup of vnc. Sorry about spekking errors but I'm half drunk and typing on g1
Okay I set up the password and stuff but when I go to the vnc viewer on the phone it does nto conect and the crash
When I go to vnc-viewer, I can log in but the window I get says--
Xsession:unable to start x session ---- no "/root/.xsession" ...no session managers,
Can someone please help me get this runing, my messenger is [email protected]
Okay I finally got it to run and get a grey screen, when i go t back to termina it is on android terminal not debian so I log back.
Now how to I run pidgin after I install it? just type pidgin?
I finally got pidgin runing!!!!
Rafase282 said:
I finally got pidgin runing!!!!
Click to expand...
Click to collapse
Now *that* would be a good reason to do this
JesusFreke said:
Now *that* would be a good reason to do this
Click to expand...
Click to collapse
I warn you it will be slow and still cant use the sub functions of the buttons form the keyboard to at least I don't know how. I'm trying to take a screenshot with the program from the windows manager, and i use twm
Okay I have tried with twm, vtwm, and icewm
So far I like icewm the most but still have vtwm for back up. It runs fine not as slow as before with twm. I have pidgin runing but still cant figure out how to run the screenshot program that comes with debian.
Can anyone tell me a way to get a screenshot in command line so I can show you the screen and prove that it works?

anyway to work on/crack the iso

this popped up earlier for me
http://www.youtube.com/watch?v=9M6MwNto3MQ
seems pretty neat but their are a few major things thatd i love to see fixed or somehowfixed.
first mouse support and internet working which would then allow apps hopefully.
and then since its a live cd whenever youd reboot the pc or restart all the info wouldnt be saved. any way for this aswell?
just would like this livedroid stuff to evolve like the andriod device has
seems kind of cool but........... this is what the emulator is for in the android SDK.
well i hope that this will eventually lead or get 1 step closer to dualbooting android, say windows/android id really like, especially with access to droid apps
have you seen what ubuntu is working on? a modified kernel to run android apps along side of regular linux. imagine a 10 inch netbook running ubuntu mobile that also runs the same apps as your phone. pretty slick. I think i remember finding it via hackaday.com but i'm sure some googleing will turn it up
I'd love android as a main distro, they need to make it easier to compile C/C++ apps though, currently wrapping them in java slows development in my opinion.
The wrapper for ubuntu looks good but i wouldn't really try it, that's just me though
well im just really trying to figure out some way to get android onto my laptop, either with flashdrive or dual booting. Id love to have windows as one and then android as the other if I had access to the internet and app store, because if im traveling some of the android apps would be very useful and they are alot easier to access and find then searching google with windows.
so any chance of this?
Here you go
http://en.sourceforge.jp/projects/livedroid/downloads/40887/livedroid_alpha.iso/
Created by Japanese developers, a bootable iso image (Live CD) of android for your computer.
Here's a translation of their webpage:
http://translate.google.com/translate?prev=hp&hl=en&js=n&u=http%3A%2F%2Fsourceforge.jp%2Fforum%2Fforum.php%3Fforum_id%3D19230&sl=ja&tl=en&history_state0=
You should be able to open the iso with any iso program such as PowerISO, or Magic ISO, etc, then repack the iso with the same program (I was able to do it in Power ISO) Shouldn't be as difficult as opening a *.img
thanks for the links but thats the same thing I posted in topic. is their anyway to put this onto a USB and have the USB bootable?
I would deff use this IF
-it had internet working
-could save the data (maybe stored onto a flash drive or turned into an actual dual boot along windows etc...)
-and with the internet working I could download apps from market place, If I could dl apps id actually use this sometimes because some of the apps would be very very useful in public with Inet access such as where, or the information apps and itd just be plain fun
so any chance of these coming?
anyone thinking of messing with this?
samrozzi said:
thanks for the links but thats the same thing I posted in topic. is their anyway to put this onto a USB and have the USB bootable?
Click to expand...
Click to collapse
Have you tried googling it? Something along the lines of "how to create a bootable usb drive linux"
Here's one I found that seems to be the most user friendly, I can't verify if it works or not with this android build (although it should.)
http://tombuntu.com/index.php/2008/08/27/create-a-bootable-usb-drive-or-memory-card/
Why not just use a virtual machine, mounting the ISO?
It is not easy to modify android to support many wifi- or lan-devices..
v6tc said:
Why not just use a virtual machine, mounting the ISO?
Click to expand...
Click to collapse
Because this is like when you're installing a fresh version of windows, or restoring.
You need the CD in the cd drive, then restart (as in shut down and start up)
But before it even starts loading windows, it loads the cd instead.
I think some computers can load from a USB drive, check your computer's BIOS
igloo77055 said:
Because this is like when you're installing a fresh version of windows, or restoring.
You need the CD in the cd drive, then restart (as in shut down and start up)
But before it even starts loading windows, it loads the cd instead.
I think some computers can load from a USB drive, check your computer's BIOS
Click to expand...
Click to collapse
That doesn't really answer his question, does it?
I think you could easily mount the iso in e.g. VirtualBox/VMWare and start it virtualized. They seem to have included a standard linux kernel with enough modules
rb2k said:
That doesn't really answer his question, does it?
I think you could easily mount the iso in e.g. VirtualBox/VMWare and start it virtualized. They seem to have included a standard linux kernel with enough modules
Click to expand...
Click to collapse
Sorry, I guess I really didn't know what he was talking about =X
But yeah you are right... hmm that should work, although I've never worked with
a VirtualBox
And in virtualbox.. You could use the "freezing"-function to freeze the state ;-) Only thing to fix is wlan/lan.
Wlan should be easier - the driver is named wlan.ko.
You need to compile a driver.
After playing around with it a bit, it's really only a novelty..
I'm running it on Virtual box.. and it seems rather pointless other then for "demonstrating android." The applications that come on it are, for the most part, inopperable and force close left and right. It doesn't seem like it has any practical use, because the available system memory is stuck at 14mb.
However, if this was developed into an installer, not just a live cd, then I could see it having a lot of potential. once you could utilize system resources it would be worth looking into developing drivers for.
For now it would be impractical and maybe impossible to establish a network connection.

how to make a rom PART 1.5 (w/ and w/out virtualaztion)

THANK YOU JOHAN DE KONING
This will explain how to make your computer fast enough to run ubuntu (a form of Linux). And how to download the android package. This will take up 7 to 8 gb of space.
THIS IS FOR PEOPLE WHO WANT UBUNTU (NOT VIRTUAL AND NOT DUAL IF DON'T WANT TO BE)*This could delete windows if you didn't partion your hard drive right
NOT FOR NOOBS BE WARNED
Go to the ubunutu download page given below and download the 700 mb iso image file. Iso is a cd formatted file u can open it with a zip appclation(but don't). When it is finished I recommand getting a dvd but maybe it could fit on a cd.(*Note that you don't have to burn on to cd u could extract to decktop and run the setup manually.) Burn the ubuntu on to the cd/dvd and than restart your computer with the cd/dvd still in the computer's cd/dvd rom. When the computer goes to a blink screen and asks you if want to boot from cd/dvd press enter. And than from here on follow the instractions.
STEP 1 (CLEAN COMPUTER)
*Note: for performance do this in safe mode.
First we need to make your computer fast as possible. Create a backup just in case you want to back up something. So go to download.com and download Advanced SystemCare Free(7 -10 mb). After you have installed click on the CARE! button to get started. This could depend on your computer usage space the bigger the longer it will take. It will wipe all internet data. If you don't want that to happen just go to maintain windows and click on the Privacy Sweep box to uncheck. Than scan. Than go to utilities and run all the following Disk Check, Disk Cleaner and install Smart defrag. After installing Smart Defrag click start on all the options in this order defrag only, deep optimize, and fast optimize.
STEP 2: RESTART COMPUTER
After restarting go back to System FreeCare and run game booster(install). Click game mode and a pop up will show. Click the button on the left side of the box. Check all boxes but not explore. than go to game mode.
STEP 3: Download virtualbox(68 mb download)
You could have a dual if you want. The download page is http://www.virtualbox.org/wiki/Downloads. Download the correct version. (windows= *VirtualBox 3.0.4 for Windows hosts x86/amd64). than install it.
Install Virtualbox(takes from 5-30 minutes depending on your computer)
Next>accept>next>next>next>yes>install>continue anyway(i got this like 6 times so...)>finish(i think)>cancel>new>Next>name=ubuntu>next>Next>Next>Next>Next>Next>
when u get to the virtual size thing move the bar to 7.5 gb (min). this should be a little extra space. Next>Finish>Next>
STEP 4: Download UBUNTU(700 mb)
DOWNLOAD PAGE http://www.ubuntu.com/getubuntu/download and choose the ftp. than begin downloading. After download save the file to desktop and DON'T DO ANYTHING. go to the VirtualBox and click CD/DVD-ROM. Check the box and also ISO IMAGE FILE after that and mount to that image on the desktop. THAN OK. press CTRL+ALT+DELETE. go to processes and end explore(for speed). Click Start.
PART 2
OK. START by running VirtualBox with the mount on the ISO ubuntu and than click start on the top right hand side. press enter to leave language than enter again to install ubuntu. on the top of the bar it may pause alot so go to machine and resume it. if it total doesn't work just exit and power down and reboot with explore.exe gone and also no windows up and running. and than just follow the instructions to installing it about 1 hour to 2 hours depending. Make sure that it is completely partation to the virtual drive. After like forever when u reach the main desktop go to app... terminal and make sure u knoe your password. Than type
The rest is here http://www.johandekoning.nl/index.php/2009/06/07/building-android-15-build-environment/. How to bulid the enviroment and getting the libs and other tools together. After all that run.
Sudo apt-get autoremove
Sudo apt-get autoclean
Than on Saturday and Sunday I will teach u how to make a rom.
There is a kernel problem with johan's idea I think I know what it is
Was going to wipe one of my computers anyway. This gives me a reason to stop procrastinating! Will give this a try. Waiting for part 2!
I know I will never get into rom making but it is very interesting to read about.
P.S. Make the paypal link a bit bigger, I can't read it
I already turned my back on windows so I run ubuntu so this is useless to me but I am waiting for part 2 so I can learn more about this, prob won't ever use it but it is good to knowhow to
Already running Mint in VB .. runs just great. I am interested in reading the ROM part though
WTF? Why do you need to do all of this crap on your computer to run Ubuntu? If I was going to dual boot with windows I would not use the stuff you listed. Why not just explain how to use it create a ROM and let people figure out how to get Ubuntu on their computer.
this seems more like spam, an advertisement for those products he listed. Any sensible person would not use virtual box to build android from source (problems you run into with the jvm running out of memory).
Besides, Johan already has a well posted blog about this:
http://www.johandekoning.nl/index.php/2009/06/07/building-android-15-build-environment/
but I would really recomend installing ubuntu through the windows installer (wubi) if you're a linux virgin, that way you don't risk anything in your windows partition, it's faster than virtualization, and eventually you'll drop windows once you learn how to use ubuntu at least.
Really, I think this is spam though.
jubeh said:
Really, I think this is spam though.
Click to expand...
Click to collapse
I think you are right. I don't know if "part 2" is ever going to come, or if it will just be a copy/paste from the link you posted.
Wasn't it simpler to just install ubuntu as second os? If someone wants to dedicate himself to developement it would be better to have ubuntu not virtualized
jubeh said:
this seems more like spam, an advertisement for those products he listed. Any sensible person would not use virtual box to build android from source (problems you run into with the jvm running out of memory).
Besides, Johan already has a well posted blog about this:
http://www.johandekoning.nl/index.php/2009/06/07/building-android-15-build-environment/
but I would really recomend installing ubuntu through the windows installer (wubi) if you're a linux virgin, that way you don't risk anything in your windows partition, it's faster than virtualization, and eventually you'll drop windows once you learn how to use ubuntu at least.
Really, I think this is spam though.
Click to expand...
Click to collapse
I am not sure if you have ever tried virtual box but it is quite responsive and seems too run better than wubi. I am sure it depends somewhat on the system a person is running, but with a quad and 4 gb of ram VB runs very well. While I have a dual boot with Ubuntu , I have still found it easier to do my android stuff in it's own virtual space. With a dedicated 75gb I can use it seamlessly with my Windows 7 install. You should try it it really works very well and I have had no memory problems at all and have manged to build from source without any difficulty whatsoever. My Ubuntu install stays clean and I can mess with my virtual Mint install as much as I like without ever affecting my Ubuntu partition.
Personally I have Ubuntu on a Prtition of My portable drive,which means I can boot it up anywhere (so long as the computer can USB Boot). I shall certainly be following the original info. The same guy has posted many good Android Articles.
As for the OP here, he only really needed to post a link, not copy the whole thing.
pixel-painter said:
I am not sure if you have ever tried virtual box but it is quite responsive and seems too run better than wubi. I am sure it depends somewhat on the system a person is running, but with a quad and 4 gb of ram VB runs very well. While I have a dual boot with Ubuntu , I have still found it easier to do my android stuff in it's own virtual space. With a dedicated 75gb I can use it seamlessly with my Windows 7 install. You should try it it really works very well and I have had no memory problems at all and have manged to build from source without any difficulty whatsoever. My Ubuntu install stays clean and I can mess with my virtual Mint install as much as I like without ever affecting my Ubuntu partition.
Click to expand...
Click to collapse
Almost everything runs well with quad processors and 4GB of RAM. Oracle 10g runs well with that hardware. So that isn't saying much.
miketaylor00 said:
Oracle 10g runs well with that hardware. So that isn't saying much.
Click to expand...
Click to collapse
ha! this bit gave me a chuckle.
I freaking hate Oracle. I run a bunch of dbms' & 95% of my headaches come from them.
I prefer dual-booting, personally. I just started messing around with ubuntu (about 6 months maybe) and i love it, after using ubuntu i fully hate Windows Vista and all its sparkly, money-making horse-****. So now i have ubuntu and Windows both running smoothly on a compaq presario f700 laptop, and the only thing i really use my windows partition (i know thats not the correct technical terminology, just pay attention to the story) for is, well, basically just theming, and media storage. I use photoshop, and havent bothered to try using GIMP very much yet, and so i do all my theming (which isnt much really) in windows, which is where i also already have the autosign tools and draw9patch and other such things setup...and then all my music, pictures, whatever are all on my fat32 partition, and can all be accessed from either OS. aside from that, my computer boots into ubuntu by default. so if im using my computer, im doin it the ubuntu way, unless i NEED to use windows, for something like photoshop, and thats about it.
So long story short...(like its not already to late for that) im eagerly awaiting part 2 cuz ive been hitting some roadblocks...hope it helps!
-BMFC
mohsinkhan47 said:
Please donate and help me get a good ubuntu desktop from the case to the motherboard. Please donat.
Click to expand...
Click to collapse
I'll get right on that. Is $500 enough?
miketaylor00 said:
Almost everything runs well with quad processors and 4GB of RAM. Oracle 10g runs well with that hardware. So that isn't saying much.
Click to expand...
Click to collapse
Ok Granted u are right about that and so it should.
But assuming I am not the only person with a quad and 4 gb of RAM, this may work just as well for others too. As as a relative newb with Linux, I can honestly say I have killed a few installations of Linux on my Hard Drive by breaking packages and other things that prevent it from working properly. Sometimes it is easier for me to reinstall the whole thing because I lack the knowledge to fix it.... in comes Virtual Box. I can totally screw it up as much as I want and my Linux partition on my hd remains intact with no errors.
pixel-painter said:
I am not sure if you have ever tried virtual box but it is quite responsive and seems too run better than wubi. I am sure it depends somewhat on the system a person is running, but with a quad and 4 gb of ram VB runs very well. While I have a dual boot with Ubuntu , I have still found it easier to do my android stuff in it's own virtual space. With a dedicated 75gb I can use it seamlessly with my Windows 7 install. You should try it it really works very well and I have had no memory problems at all and have manged to build from source without any difficulty whatsoever. My Ubuntu install stays clean and I can mess with my virtual Mint install as much as I like without ever affecting my Ubuntu partition.
Click to expand...
Click to collapse
I do have virtualbox running on my linux box, my laptop's ubuntu side, and my laptop's win7 side. I also have a third computer that I have loaded with windows vista for the computer illiterate people in my house and a tiny dell mini 9 that I bought god-knows-why.
My main computer (since I can take it anywhere and my linux box i use mainly as a file server) is a gateway fx p-7805u. I won't have you google the specs, it's a 2.27 Ghz core 2 duo, 4 gb of ram, 320 gb main hard drive (plus I tossed a slow 5400 rpm 500 gb hd for files), so yeah, I can run virtualbox, but I mainly use it for running micro-xp on it for whatever else I need it.
I've used vb before like i said even configuring the vm with dual core support but there's no way it's as fast as a native system.
Anyway, wubi is not virtualization. It's an actual, loop-mounted image file/partition that fully utilizes the hardware it runs on. It's exactly the same as running a dual-booted system through partitioning, the only difference is that the ubuntu filesystem exists inside your ntfs partition rather than it's own partition, this has the effect of having a very slight hit on disk performance (much less than virtualization though), but everything else is running natively, even drivers. It's entirely safe for your host file-system and can be removed leaving no residual files anywhere on your system. It's also easy to share files with your host computer (with vb you have to set up a network share and then edit your /etc/init.d/rc.local to have it automount on startup, with wubi, it automatically creates a link to the host filesystem located at /host).
I've had to leave my computer building on vb overnight and then I come back to find that the process is stuck at some dex or java compilation, with an actual running system, this doesn't happen.
Give it a try, it costs nothing.
mohsinkhan47 said:
U guys are evil
Click to expand...
Click to collapse
Wow thanks! I really appreciate your work and considering donating to you. Since you make your paypal link so large, it really inspires me to donate.
Thanks again!
edit: (hope this post isn't considered to be spam like the original post is)
Better if you do
sudo apt-get autoremove --purge
jubeh said:
I do have virtualbox running on my linux box, my laptop's ubuntu side, and my laptop's win7 side. I also have a third computer that I have loaded with windows vista for the computer illiterate people in my house and a tiny dell mini 9 that I bought god-knows-why.
My main computer (since I can take it anywhere and my linux box i use mainly as a file server) is a gateway fx p-7805u. I won't have you google the specs, it's a 2.27 Ghz core 2 duo, 4 gb of ram, 320 gb main hard drive (plus I tossed a slow 5400 rpm 500 gb hd for files), so yeah, I can run virtualbox, but I mainly use it for running micro-xp on it for whatever else I need it.
I've used vb before like i said even configuring the vm with dual core support but there's no way it's as fast as a native system.
Anyway, wubi is not virtualization. It's an actual, loop-mounted image file/partition that fully utilizes the hardware it runs on. It's exactly the same as running a dual-booted system through partitioning, the only difference is that the ubuntu filesystem exists inside your ntfs partition rather than it's own partition, this has the effect of having a very slight hit on disk performance (much less than virtualization though), but everything else is running natively, even drivers. It's entirely safe for your host file-system and can be removed leaving no residual files anywhere on your system. It's also easy to share files with your host computer (with vb you have to set up a network share and then edit your /etc/init.d/rc.local to have it automount on startup, with wubi, it automatically creates a link to the host filesystem located at /host).
I've had to leave my computer building on vb overnight and then I come back to find that the process is stuck at some dex or java compilation, with an actual running system, this doesn't happen.
Give it a try, it costs nothing.
Click to expand...
Click to collapse
Thanks for the info... now I know you have a lot of computers in your household But seriously, I am not trying to put anyone's opinion down here... so there is no need to be quite so elitist I am just pointing out my own experiences with Virtual Box which have been very good. If it doesn't work for you... fine.. but you are suggesting to everyone else that it doesn't work properly or well and I can quite definitively say that yes it does.. and very well too.
I would imagine that your system from what you say may not be powerful enough to handle it as well... so maybe a quad is needed to make it run the way it does for me, I don't profess to know the answer... only that it works great on my system.. it is not slow.... does not have errors and compiles Android source quite easily using Mint Linux (another Debian based Linux Distro for those that are unfamiliar with it)
I don't think I ever mentioned it was as fast as a native system... all I am saying is that it runs well and for a noob it can be run without messing anything else up as it runs in it's own little environment.

[Ubuntu Image] 1st really working simple to install Ubuntu on your phone

This is easier than making a cup of coffee.
Pictures below as attachment couldnt figure how to put the pic here edit figured it out now im just lazy.
you dont have to do it the hard way
Everyone (edit: i thought so at the time)will want this "Fully" (note below) funtioning Ubuntu system
or you can make your own here: http://forum.xda-developers.com/showthread.php?t=913622
I will be maintaning and updating as time permits
Phone has to be rooted: http://forum.xda-developers.com/wiki/index.php?title=HTC_Supersonic/Guides_&_Tutorials
NEW IMAGE 3.5 gigibyte
Lucid base image (only added: lxde and tightvncserver): Zip http://www.megaupload.com/?d=GLMYVCMN User: "dad" Passwd:ffffffff
Remove app2sd and settings- applications- manage applications- sdcard "move all apps to phone" or it will not work!
I suggest you install gnome-panel
I use it and i find no speed differance!
trying to get :upstart services" to work im looking into compiling a kernel with "CONFIG_TMPFS enabled, to initiate a workaround, because "upstart" services wont work in a chroot.
Stock Maverick : http://www.megaupload.com/?d=56AT71WD
Karmic Sucks programs stop opening after some short time, so i gave up.
Tested with: CM7 http://mirror.teamdouche.net/get/supersonic/update-cm-7.0.0-RC1-Supersonic-signed.zip
CM6: http://mirror.teamdouche.net/get/supersonic/update-cm-6.1.2-Supersonic-signed.zip
myn-WarmTwoPointTwo-11-05-2010-RLS-3
Unzip
Copy the "ubuntu" folder to your sd card
Go to market download "Terminal" and android VNC Viewer
Open terminal and type: (without the quotes), "su" then "cd /sdcard/ubuntu"
then "sh ./ubuntu.sh"
then "bootubuntu"
then "vncserver :0 -geometry 1024x800"
Thats it, go to android VNC Viewer and use dad for nickname, "ffffffff" for the password, "localhost", for address, 5900 for the port, Use 24bit veiwing settings, then go.
to shutdown you will have to power off phone and power back on.
Enter in your :"Initial Command",in the settings of Android Terminal:
su
cd /sdcard/ubuntu
sh ./ubuntu.sh
bootubuntu
So everytime you want to start ubuntu just open terminal
to start VNC SERVER automaticly you will have to add to the bottom of your /home/.bashrc file this:
cd /
rm -r -f /tmp
mkdir /tmp
vncserver :0 -geometry 1024x800
Thats it, your off ENJOY
Notes: Its as fully funtioning for myself, cant speak for everyone
This is in Beta stages I am an old Visual Basic dabbler as a hobby, and am not very fluent in the lenux operating system. However this "ubuntu on mobile device" has rekindled a lost desire to program.
I will update changes as i get the time
If anyone would like to contribute their lenux expertese to iron out the bugs, i and so many others would appreciate it
Issues to work on:
:no sound
NOTE: A big kernel level problem is the lack of sound. Most of the kernels we use as a base for our ports are designed for Google Android. Android doesn't use the standard Linux sound System ALSA. An ALSA wrapper for the EVO DSP kernel system must be written.
:Setting up users and groups (used kusers but seemed to slow system a bit, needs kde-common) But is very tolorable, I actually use dolphin. (cant get nautilus to create folders or files (destination read only? u got me)).
:hacked /root/.bashrc for easy login help (when using terminal runs .bashrc. dont know anotherway to start hamachi on login and also vncserver tries to restart)
:keyboard mapping (mapping arrow keys to the abc keyboard it has arrow keys, esc,etc...)
: No way to exit or turn off ubuntu. You have to turn off phone, to turn off ubuntu.
nce in a while the programs refuse to open, it has somthing to do with ?. you have to restart ubuntu again.
I suppose a fluent ubuntu/lenux person could help change usernames and such, using the terminal,set proper permissions and such
Im using CyanogenMod Rom its the only one that works with Hamachi
your rom will most likely work, however networking wont!
Tips:
ownload VNC for your computer and modify your ubuntu desktop on your computer screen (that way i dont need my glasses) (use "ifconfig" to find ip address)
:You can even use VNC to view the build while in qemu emulation, after installing lxde and tightvncserver in the emulation. (watch out for seg faults)
:In terminal, preferances-initial command, enter the "cd /sdcard/ubuntu ...etc ," that way its a one click to login .
:Get "abc keyboard" from market it has the esc, arrow keys etc... ( extra keys only good outside chroot, the "terminal", on your android desktop)
:If your not familiar with ubuntu, you use synaptic package manager to install programs
:When u share over himachi or start smbd, programs will stop opening.
.
Trust me everything i want it use it for seems to be pretty zippy, but just give a little xtra time for programs to load the first time. (Firefox may take 90 sec. to load the first time. After that its a snap)
I Would like to check into this
The no sound issue is getting to me, I may wait for that as that is an essential to my all in one device.
THANKS FOR THE HARD WORK. I LOVE UBUNTU
you really have to try it and tell everyone about it cant believe its not one of the hottest topics
I Would like to check into this
any way to delete this post....didn't mean to submit, came back to send like i didn't send it but ending up sending twice
apologies
Sounds pretty cool, I will defiantly have to give this a try. Question though, is this installing over top of the rom I am currently using. Example I am using the MIUI 1.22, if I install this is this like dual booting or will it just uninstall every time I reboot the phone??
Is it still uploading? I really want to try this!
corybucher said:
Sounds pretty cool, I will defiantly have to give this a try. Question though, is this installing over top of the rom I am currently using. Example I am using the MIUI 1.22, if I install this is this like dual booting or will it just uninstall every time I reboot the phone??
Click to expand...
Click to collapse
This will sit on your sdcard and ride side by side with your android system (you can use your phone at the same time)
IT DOES NOT EFFECT YOUR PHONE IN ANY WAY
wasnt shouting just wanted everyone to see
ioos said:
Is it still uploading? I really want to try this!
Click to expand...
Click to collapse
Download away!
This is awesome! I can't wait to get home and give it a try.
This is gonna be a great weekend. Between this and the flashable ROMs that are starting to roll out for my nook color, I might be sprouting antennae by Monday.
So wep cracking soon...? That's about the only thing I want/need Linux for.
Sent from the void...
wuclan48 said:
So wep cracking soon...? That's about the only thing I want/need Linux for.
Sent from the void...
Click to expand...
Click to collapse
How would one go about this "wep cracking thing"
please explain further
Almost* all WEP and some** WPA wireless passwords can be cracked. IMHO its easiest to do this on a Linux machine (please take note I love all OSs equally!)
*I forget how accurate this is but some WEP keys(like crazy long ones) can cause problems l in cracking, thus being protected (though not by design)
**most wpa specifications are not crackable yet and those that are often have a very stringent set of requirements (off the top of my head: most require someone to be legitimately connected to the access point and very simple passwords with low encryption.
On topic, though, this is sweet. Hope I can get something like this on my galaxy tab too!
EDIT: If you really need to know this (please only for testing... not to mooch people's internet) Google "wep cracking on backtrack"
The short simple answer is you sniff packets that the wireless access points send out and manipulate them to decrypt the key.
EDIT 2: I just realized you are also the guy who made this. Let me answer a few questions.
1) For audio you probably need to find a way to register the hardware with a Linux Audio Mixer. I'm guessing Ubuntu uses ALSA? I'd have to look that up
2) For users, kusers is part of the KDE desktop system. Ubuntu uses GNOME. People generally only use one or the other (unless they're trying to show off). That's probably why it either a) won't work or b) not work well and take up lots of extra space
3) It's Linux, not Lenux (but that's fine I can sense English isn't your first language... it's not mine either, but that's fine ^^)
the download has a "zipx" extension.
I did a little googling and it looks like that is winzips new default compression method, and the only way to open the archive is with winzip, bitzipper, pkzip, or a couple of others. none of the compression utilities I typically use (7zip on Windows, unarchiver on mac) seem to support it.
Edit: sorry if I sound unappreciative, I just think its funny to use a proprietary closed format for distribution of software that is all about open software and formats. I'm currently trying to find something that will open this on the mac without being a scummy trial, or ill just do it on a pc.
Sorry i just used the wizard and made a zip file with winzip 12.1
Quote"Almost* all WEP and some** WPA wireless passwords can be cracked. IMHO its easiest to do this on a Linux machine (please take note I love all OSs equally!)
*I forget how accurate this is but some WEP keys(like crazy long ones) can cause problems l in cracking, thus being protected (though not by design)"
Thanks for the info
laydros said:
the download has a "zipx" extension.
I did a little googling and it looks like that is winzips new default compression method, and the only way to open the archive is with winzip, bitzipper, pkzip, or a couple of others. none of the compression utilities I typically use (7zip on Windows, unarchiver on mac) seem to support it.
Edit: sorry if I sound unappreciative, I just think its funny to use a proprietary closed format for distribution of software that is all about open software and formats. I'm currently trying to find something that will open this on the mac without being a scummy trial, or ill just do it on a pc.
Click to expand...
Click to collapse
shame on me .
Your right im a noob and really know too much about it yet i just like having ubuntu on my phone.
Ill do better next time
People talking about cracking WEP and stuff, this probably doesn't have a driver to put the wireless card to put the card in monitor mode.
laydros said:
the download has a "zipx" extension.
I did a little googling and it looks like that is winzips new default compression method, and the only way to open the archive is with winzip, bitzipper, pkzip, or a couple of others. none of the compression utilities I typically use (7zip on Windows, unarchiver on mac) seem to support it.
Edit: sorry if I sound unappreciative, I just think its funny to use a proprietary closed format for distribution of software that is all about open software and formats. I'm currently trying to find something that will open this on the mac without being a scummy trial, or ill just do it on a pc.
Click to expand...
Click to collapse
Have the same problems, did you happen to find anything to open it with? I searched a little on google myself but all I find is software that needs to be purchased.
Homefix said:
Quote"Almost* all WEP and some** WPA wireless passwords can be cracked. IMHO its easiest to do this on a Linux machine (please take note I love all OSs equally!)
*I forget how accurate this is but some WEP keys(like crazy long ones) can cause problems l in cracking, thus being protected (though not by design)"
Thanks for the info
Click to expand...
Click to collapse
AFAIK, WEP can be easily cracked. WPA or WPA2 though, will require bruteforcing, there is no way around it.
corybucher said:
Have the same problems, did you happen to find anything to open it with? I searched a little on google myself but all I find is software that needs to be purchased.
Click to expand...
Click to collapse
I will repackage it, but it might take 3-4 hrs to upload, sorry.
ill get right on it

ubuntu on gtab, how is it?

i love ubuntu on my laptop but cant play with it much cuz im in photoshop most the time so am mostly in windows. i was wondering how it was on the gtab? and how to apps work with it? i assume no android market? can anyone give me some pros and cons? and how does it work with the touch screen?
Following work done on the vega, I've gotten ubuntu 11.04 running. You have to use the 2.6.32 kernel and touchscreen works. I'm trying to sort out why wireless and sound do not work. The vega folks have made much more headway at this time but they have several linux distros running on the tab.
it sounds very promising, but until the wifi is working, i can't see this as a viable os. What do you think? The lack of connectivity makes the device a stand alone - right?
I have added the driver for a usb ethernet dongle and it works. As time allows, I'm trying to sort out the wireless issue.
Considering how useful ubuntu is, if you can get everything to work with ubuntu, I'm putting ubuntu on as soon as I get the gtab.
I'm not really sure what the point of putting Ubuntu on the GTab is. I suppose there are linux apps that just aren't available in Android, but most of those are the heavy hitting apps that you'd never want to run on the GTab anyway. just trying to figure out what the point is.
There are things you can do with a linux load that android cannot do. And being a risc processor, it can do more in less memory than on a x86 processor. I want to be able to run librioffice on the tab at meetings rather than having to depend on a wireless connection to the cloud.
NMCBR600 said:
There are things you can do with a linux load that android cannot do. And being a risc processor, it can do more in less memory than on a x86 processor. I want to be able to run librioffice on the tab at meetings rather than having to depend on a wireless connection to the cloud.
Click to expand...
Click to collapse
Have you seen the "office" apps available in this forum, that came from the Notion Ink? You can do that with Android. That's kind of my point. The apps exist for the most part... Unless you want to run GIMP or some sort of CAD, which is silly to run on a tablet to start with *I* personally think.
You could theoretically install Eclipse/Android SDK and develop on the tablet.
Support usb modem $ ethernet Android -No, Linux -yes
Support cut/past between pdf and odf docs -- Android No Linux -yes
Ability to use the same linux apps that are on my netbook -- Android -No
Faster program action in linux not inside the java VM in android.
And Google may have several legal issues about stripping out the GPL2 headers out of source code.
If you want android and it's apps, that's fine. There are those of us who want a full OS and apps on our tabs. We'll work to get what we want running the way we want. Try that with an Ipad.
h3llphyre said:
I'm not really sure what the point of putting Ubuntu on the GTab is. I suppose there are linux apps that just aren't available in Android, but most of those are the heavy hitting apps that you'd never want to run on the GTab anyway. just trying to figure out what the point is.
Click to expand...
Click to collapse
Because some of us are considering using the gtab for work. I'm sure most people see it as a toy. I intend to use it for much more than a toy. A full os like ubuntu will get the job done.
unfortunately not a full OS
Look I want Ubuntu as much as anyone and I am starting my own business in Photography so another one for the work aspect...
However, it will be limited and not a full OS at least IMO until Ubuntu on the Gtablet can:
run wine (optional but not necessary) may not even work at all since wine is for windows programs and gtab is arm processor
have Flash for video and the web (would this idea have a chance at working http://forum.xda-developers.com/showthread.php?t=994433)
able to connect--read and hopefully write to CD/DVD (obviously drivers needed)
there are other limitations that we will discover too I am sure but without at least the last two from above, Ubuntu on the Gtablet will not be a full OS, a darn handy mobile one but not a full one IMO!
thanks NMCBR600 for your work on this and jersacct whos version (no touch screen has wireless) I am currently using.
I am greatly hoping NMCBR600 gets wireless going on his so I can get touch going on my tablet. Sorry that I may have ideas of my own and love what the Devs come up with here but I am helpless to do any of this myself because I am not that advanced, wish I was, I wish I was.
doihaveto said:
run wine (optional but not necessary) may not even work at all since wine is for windows programs and gtab is arm processor
Click to expand...
Click to collapse
Actually, I can live without wine. I've never had to use it.
have Flash for video and the web (would this idea have a chance at working http://forum.xda-developers.com/showthread.php?t=994433)
Click to expand...
Click to collapse
No problem, me thinks.
able to connect--read and hopefully write to CD/DVD (obviously drivers needed)
Click to expand...
Click to collapse
USB to external drive.
true about usb external drive but in my photography business I plan to be giving customers who pay for the option a cd/dvd with everything they order on it and so hence the cd/dvd function
and the flash part is there any dev who may happen to read this thread have any ideas to get flash working on arm ubuntu
thanks
Hellburger said:
You could theoretically install Eclipse/Android SDK and develop on the tablet.
Click to expand...
Click to collapse
This is actually something that I would want (Eclipse), so touche.
doihaveto said:
run wine (optional but not necessary) may not even work at all since wine is for windows programs and gtab is arm processor
Click to expand...
Click to collapse
This actually just opened my eyes to a new potential... VMWare has already shown VM's running on Android. Running a Linux VM from within Android would be utterly awesome.
wine will probably never make it to Android, because of the processor architecture issue... well, at least until vendors start shipping x86 tablets that run on recent Android versions (Wind River is working on it)
doihaveto said:
true about usb external drive but in my photography business I plan to be giving customers who pay for the option a cd/dvd with everything they order on it and so hence the cd/dvd function
and the flash part is there any dev who may happen to read this thread have any ideas to get flash working on arm ubuntu
thanks
Click to expand...
Click to collapse
But we're talking about a tablet. They have to keep the thickness around half an inch. So, I suspect that no tablet will ever have an internal cd/dvd drive. Just get an external one and carry that around. DVDs are cheaper than dirt these days anyway.
that us what I mean I have an external usb dvdrw drive but ubuntu on the gtablet will not mount anything off of it in other words it will not read/write off of the usb external drive
I can only hope that support will be able to be added with proper drivers unfortunately I don't know how that works so it won't be coming from me.
With the iso support compiled for the kernel, a linux load will see a cd/dvd. It may need external power as the tab may not provide enough through the usb port.
i have to concur
While android is a great tool for social apps, email, light webbrowsing. It fails at something as simple as copying an address from a website to spread sheet. The programs for linux are far more robust. Actually where is android gimp? The touch screen does not work as a mouse. And the key board is missing things as simple as ctrl left tohighlight

Categories

Resources