Forum

> > Off Topic > Linux power in Android
Forums overviewOff Topic overviewLog in to reply

English Linux power in Android

13 replies
To the start Previous 1 Next To the start

old Linux power in Android

Geez
GAME BANNED Off Offline

Quote
Probably many of you think Android smartphones as both powerful and limited. You can install many cool apps, but what if you want to e.g. host a webserver or something like that?

Here comes the Linux kernel in Android and cross-compiling. I've managed to compile G++ for ARM phones (nearly every phone). If you have Intel Atom or other x86-based smartphone it's even easier. Just download a linux binary as for PC and go.

To run the apps, use Terminal Emulator. Note it runs in full-speed, cause it isn't emulating x86 - it's native ARM linux.


What can you do with this? Well, I have LightTPD webserver with PHP, cUrl, Midnight Commander and others working great. Going to compile things like MySQL, Python or even maybe X Server & some window manager like IceWM. All of these running fast like on 1GHz PC (my phone is 1GHz), cause it's native.


What do you think about it? Any ideas what to try to compile? Wanna the binaries or screenshoots? Questions/comments? Feel free to post.

old Re: Linux power in Android

Flacko
User Off Offline

Quote
Are you talking about native C++ for android WITHOUT dealing with the NDK? If so, please tell more. Do you need anything else besides the Terminal Emulator and ARM-Linux compiled binaries?

old Re: Linux power in Android

Geez
GAME BANNED Off Offline

Quote
No Eclipse, Android SDK or NDK here.

Compiled G++ for ARMv7 meant I ran my PC with Ubuntu, downloaded G++ sources and compiled it with ARM as target. It's called cross-compiling.

Now I move the result to sdcard, then to my /system/bin. Then I just open Terminal Emulator, type g++ and i get
1
g++: no input files
That means I've got G++ running correctly.

No magic here, just standard linux app. No additional things.

old Re: Linux power in Android

Flacko
User Off Offline

Quote
user Geez has written
Compiled G++ for ARMv7 meant I ran my PC with Ubuntu, downloaded G++ sources and compiled it with ARM as target. It's called cross-compiling.

Ikr.

Have you found a way to run your native programs without Terminal Emulator?

Why not try to compile Lua?

old Re: Linux power in Android

Geez
GAME BANNED Off Offline

Quote
Actually you can try this http://code.google.com/p/android-scripting/ without playing with the console.

If you'd like to see the lighttpd+php, try this http://hex.ro/wp/blog/php-and-lighttpd-for-android/ - a guy has also compiled it. In fact, I have asked him how he did it, so I've started also from it. He explains everything very well and gives direct links to the binaries (in tar or zip as I remember). Make sure you have rooted your phone and busybox installed.

old Re: Linux power in Android

dumbeldor
User Off Offline

Quote
good info bro realy awsome if i can host my linux server through android mobiles it would be more great frull to me.

old Re: Linux power in Android

Geez
GAME BANNED Off Offline

Quote
But notice you'll have to go outside your carrier network if you use one. The same goes to WLAN.

old Re: Linux power in Android

DannyDeth
User Off Offline

Quote
I am interested in running C on Android, I recently bought a tablet and would like to do a video streaming application from my PC to my tablet, but I hate Java with a passion and am considerably faster in C. Is Terminal Emulator available on the Google store-thing?

old Re: Linux power in Android

FlooD
GAME BANNED Off Offline

Quote
but can it run crysis?
jk

seems interesting.
what libc are you using? bionic or did you get glibc working too?

do you know of any low-level way to communicate with the hardware (especially the touchscreen and the display)?

old Re: Linux power in Android

Geez
GAME BANNED Off Offline

Quote
I use standard glibc from Debian ARM. I run it in chroot and have the shell in Terminal Emulator. To connect with GUI I run VNC server and connect with VNC client on localhost.

Dunno about low-level communication. I use VNC client with USB mouse support and it works great
To the start Previous 1 Next To the start
Log in to replyOff Topic overviewForums overview