Linux Apps


kwartel

Still Fresh
Joined
Dec 11, 2009
Messages
7
One simple Question: Can I install linux apps on the pandora? (Without porting or other stuff)

AWNSER \/\/\/

hobbyman II said:
your question was answered, I assume you don`t understand the ARM?/Linux scene, it's tricky for a new user to understand the differences/ similarities

simple answer, yes!

slightly longer answer, as long as the application has been compiled for Pandora or ARM, yes!

longer answer, most applications (nearly all) for Linux are open source, this makes it relatively simple to compile them for different cpu chips, so as long as the application has been compiled for Pandora or ARM, yes!

long winded simplified answer

Linux on your laptop or desktop PC runs programs written with special instructions for the "brain" inside it, in almost all laptops and desktops this "brain" is called an "x86 architecture cpu", this applies to all devices with Intel/AMD or whatever "brains".

so all the devices you normally use have "brains" that understand a unique set of instructions, these instructions are seen by the "brain" as numbers, all these numbers mean just one thing to that type of "brain", for example "23" may mean "add the next number to the one after it", a huge list of these instruction numbers is what a program IS internally.

to make things easy for us mere mortals, and to save us having to memorise several hundred numbers and what they mean, we have programs that take English-like instructions (for example "print"), and the program then converts "print" into a string of numbers that instruct the "brain" to copy data to the screen so that we see it (printing it), this is what a compiler does.

the Pandora has a "ARM" "brain", this has a different set of instruction numbers to the "x86 brain", so the ARM "brain" may use the "23" mentioned above to mean "copy the number you have in your memory to the memory location pointed to by the following number"

obviously, since the instructions do different things then an x86 program will be garbage to an ARM "brain" and crash or do something evil to the system or whatever.

now Linux programs are mostly open source, that means that the "English" instructions are published openly on the web and you are basically free to copy and use them, so if you have a compiler that can output ARM instructions, then you can put these "English" instructions into the compiler and get a ARM program out of it.

what does this mean for the Pandora?

we can take any open source program in "English" and stick it into a compiler for the Pandora, and we get a working version back that will run on the Pandora, obviously, if the program uses some device or memory the Pandora doesn't have then you need to alter the "English" instructions, so that the program will use less memory or just use the instructions recognised by the Pandoras more compact 3d chip, for example.

people will take popular Linux programs, recompile and modify them for Pandora (1024x768 fullscreen wouldn`t work too well for eg), then release them in a .pnd package for people to install, as these programs are released they will appear on the app store, archives and developer websites, then you just pick what you want and copy it to your SD card, that's it, installed.

some people may not use the .pnd container for their programs, some programs may not be modified to work well with Pandora and scatter themselves across the file system, but they will almost all have some kind of installer, Pandora may also have some kind of GUI package manager, so all you need to do, is look at a list on your Pandora, select a game/application, and click install, then Pandora just downloads it from the repository, and away you go.

hope that explains it somewhat, seems a bit in depth, but like all simple questions, it doesn`t have a simple answer.
thank you, this should be pinned! The perfect noob explanation!
 
Last edited by a moderator:
If they're for PC (x86) then no, you can't. If they're for ARM Linux then.. maybe.
 
Its not that easy. For console apps, sure mostly. For GUI apps, well probably a lot of them will work since the Pandora has a pretty high res. But if it wants a really high res display.. maybe it'll just compile and run, but maybe it'll be crampy? Most apps should 'port' prett yeasilyt (recompile and be something), but some will need some serious 'porting' (aclimatizing an app to the target platform.) "port" is a very wide word -- just recompiling an app is considered a port, but rewriting half the apps UI to fit or better useful on a target platform is also 'a port'.

Most things will port easily, some may need some porting; hows that? :)

jeff
 
Most of Linux apps are free (open source). That means apps can be compiled for x86, arm and other architectures. That's why we have lots of GNU ports for ARM.
So if your app is not proprietary, most likely it will work on Pandora.
 
kwartel said:
One simple Question: Can I install linux apps on the pandora? (Without porting or other stuff)
Porting is inherent in moving from native x86 code to native ARM code.
If you have a Python script or Java bytecode, you won't need to port anything, but C code will need to be re-compiled, and assembler will need to be re-written.

Luckily, as everyone said, most Linux stuff is open-source and not very architecture-dependent, so the most common applications are already ported.
 
Last edited by a moderator:
kwartel said:
One simple Question: Can I install linux apps on the pandora? (Without porting or other stuff)
Should be easier if the "apps" you're talking about come from the Angstrom Linux repositories, for example, because that distro targets ARM-based hardware.

If you mean going to a random project's page and downloading a pre-compiled .deb or .rpm, you're probably out of luck because those are compiled against desktop/laptop hardware 99% of the time. The Pandora uses a very different style of CPU from those machines so the source code often needs to be specifically compiled for it.
 
Last edited by a moderator:
I think everyone is missing something very important.
The simple answer to the simple question is "it's not that simple".
A lot of programs will just work. A lot more simply need to be recompiled from source. A lot of those that need to be recompiled already have been, so there's no fear there. A lot will need some adjusting to use different libraries (for instance, we don't have OpenGL, only OpenGLES, so anything that uses OpenGL will need to be changed in some ways). A lot of programs (notably emulators) rely heavily on x86 specific instructions, and are unlikely to be ported, or will be only at great difficulty (fortunately there's a large selection of emulators already written). Finally, there's a lot of programs that are binary only: we have no access to the source code whatsoever, so they're quite unlikely to ever run.
The best way to answer the question is to ask "exactly which programs do you want to use?" and we tick off each one by one that will run, can run, or won't run.
 
Hopefully what we'll start to see is applications start to get ported and wrapped as PNDs (with proper attribution of course) and put up on the Pandora App store(whatever it's called).

a
 
The only thing i truly care that gets ported to pandora easily (recompile) is

Google Chrome

so i can keep getting the latest version
 
emcp said:
The only thing i truly care that gets ported to pandora easily (recompile) is

Google Chrome

so i can keep getting the latest version
Hmm, I haven't tried Google Chrome yet. I think I'm too stuck in my ways with Firefox to switch though. If Firefox does something really stupid I might switch. Well, or Google has to do something really awesome.

aliking said:
Hopefully what we'll start to see is applications start to get ported and wrapped as PNDs (with proper attribution of course) and put up on the Pandora App store(whatever it's called).
I just hope people obey software licenses and supply source code for ports if it calls for it. All this porting is good for Ångström and every other Linux on ARM.

Of course if licenses aren't obeyed the FSF might sue some people. It's sad but in this world you even have to take legal action to keep free code free.
 
Last edited by a moderator:
Don't use Google Chrome, they don't respect your privacy: http://www.theregister.co.uk/2009/12/07/schmidt_on_privacy/
 
Chromium is the open-source bit, it should be ported easily enough.
However, I actually moved back to Firefox.
Firefox 3.5 isn't as fast as Chrome, but it fixed the problems that 3.0 had for me, and it has all my adblock extensions and opens tabs the way I like and doesn't randomly fail to load a page.
 
lulzfish said:
Chromium is the open-source bit, it should be ported easily enough.
However, I actually moved back to Firefox.
Firefox 3.5 isn't as fast as Chrome, but it fixed the problems that 3.0 had for me, and it has all my adblock extensions and opens tabs the way I like and doesn't randomly fail to load a page.
Yeah, I was reading that their Chrome ad-block equivalent doesn't work, and why should it, Google makes all it's money off of ads. This is the reason that I'll never use it, I see ads in print, on TV, hear it on the radio, see bill boards along the road, I can't go to a public place without ads being in my face, but using the internet with Firefox that has the ad-block extension at least I can have some peace.
 
Last edited by a moderator:
second exodous said:
lulzfish said:
Chromium is the open-source bit, it should be ported easily enough.
However, I actually moved back to Firefox.
Firefox 3.5 isn't as fast as Chrome, but it fixed the problems that 3.0 had for me, and it has all my adblock extensions and opens tabs the way I like and doesn't randomly fail to load a page.
Yeah, I was reading that their Chrome ad-block equivalent doesn't work, and why should it, Google makes all it's money off of ads. This is the reason that I'll never use it, I see ads in print, on TV, hear it on the radio, see bill boards along the road, I can't go to a public place without ads being in my face, but using the internet with Firefox that has the ad-block extension at least I can have some peace.

Chrome doesn't have an ad blocker, just a pop-up blocker. The new Chrome beta has extension support, and a few ad blocking extensions have been released.
 
Last edited by a moderator:
Vorporeal said:
second exodous said:
lulzfish said:
Chromium is the open-source bit, it should be ported easily enough.
However, I actually moved back to Firefox.
Firefox 3.5 isn't as fast as Chrome, but it fixed the problems that 3.0 had for me, and it has all my adblock extensions and opens tabs the way I like and doesn't randomly fail to load a page.
Yeah, I was reading that their Chrome ad-block equivalent doesn't work, and why should it, Google makes all it's money off of ads. This is the reason that I'll never use it, I see ads in print, on TV, hear it on the radio, see bill boards along the road, I can't go to a public place without ads being in my face, but using the internet with Firefox that has the ad-block extension at least I can have some peace.

Chrome doesn't have an ad blocker, just a pop-up blocker. The new Chrome beta has extension support, and a few ad blocking extensions have been released.
Yeah, I read that they don't work though, that's what I'm saying. Here is the link.

But Adblocking has to be as good as it is on Firefox before I switch. Speed really means nothing to me, I could care less how fast it starts up because I open it once every time I turn my computer on. Rendering speed also doesn't mean much to me because it's only a fraction of a second between the fastest and slowest browsers anyway.

I also use lots of other plug-ins that Chrome would have to have.
 
Last edited by a moderator:
It's getting off-topic

Thanks for the info.
From what I get:
It's possible, but only if they for arm an those are rare. When they are for x84 and open-source, you should just recompile it and test it. It MAYBE works. If not a more drastic form of porting needs to be applied.

Please comfirm if this is right.

(Sorry if my English is bad)
 
You could use this as a starting point:
http://www.angstrom-distribution.org/
as the Pandora runs Angström.
When you click on "Package Browser" you'll find what will have the highest chance to run.
 
second exodous said:
Yeah, I read that they don't work though, that's what I'm saying. Here is the link.

But Adblocking has to be as good as it is on Firefox before I switch. Speed really means nothing to me, I could care less how fast it starts up because I open it once every time I turn my computer on. Rendering speed also doesn't mean much to me because it's only a fraction of a second between the fastest and slowest browsers anyway.

I also use lots of other plug-ins that Chrome would have to have.
Well, there's AdBlock+ for Chrome, it just hasn't been uploaded into the standard extension repository yet, because it's pretty beta.
You can still install it from here:
http://www.chromeextensions.org/appearance-functioning/adblock/

(And Google isn't like Firefox who say "You have to upload an extension to the central repository in order to get updates etc etc". Google allows 3rd party sites to host extensions with the same rights as themselves)

Oh and rendering speed *does* make a difference. You don't notice it until you get used to it, but it's really nice with the page moving *at the same time* as you move the friggin scroll bar and all. And it's not only the rendering speed; the whole engine is much faster as well (just look on PeaceKeeper or something)

I'd say at least try it for a while. You'll notice, as I did, that most extensions you currently depend on actually just are in your way, and that there are much more efficient ways of browsing with the features of Chromium/Chrome.
 
Last edited by a moderator:
Back
Top