Forum

> > Off Topic > Linux power in Android
ForenübersichtOff Topic-ÜbersichtEinloggen, um zu antworten

Englisch Linux power in Android

13 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Linux power in Android

Geez
GAME BANNED Off Offline

Zitieren
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.

alt Re: Linux power in Android

Flacko
User Off Offline

Zitieren
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?

alt Re: Linux power in Android

Geez
GAME BANNED Off Offline

Zitieren
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.

alt Re: Linux power in Android

Flacko
User Off Offline

Zitieren
user Geez hat geschrieben
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?

alt Re: Linux power in Android

Geez
GAME BANNED Off Offline

Zitieren
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.

alt Re: Linux power in Android

dumbeldor
User Off Offline

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

alt Re: Linux power in Android

Geez
GAME BANNED Off Offline

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

alt Re: Linux power in Android

DannyDeth
User Off Offline

Zitieren
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?

alt Re: Linux power in Android

FlooD
GAME BANNED Off Offline

Zitieren
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)?

alt Re: Linux power in Android

Geez
GAME BANNED Off Offline

Zitieren
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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenOff Topic-ÜbersichtForenübersicht