LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux Programs and Files: accessible by any installed distro? (https://www.linuxquestions.org/questions/linux-newbie-8/linux-programs-and-files-accessible-by-any-installed-distro-314798/)

hanzj 04-19-2005 04:07 AM

Linux Programs and Files: accessible by any installed distro?
 
Hello,
One one computer, I am planning on playing around with various distros to see which I like. Are Linux Programs inter-accessible by the various distros? For example, if I use Mandrake to download Firefox browser, can Firefox also be used in the other installed distros?

And what about for files (text files, spreadsheets, office documents) created in one distro? Can they be accessed by any distro?

jax8 04-19-2005 04:17 AM

everything is interchangeable unless you use source packages for installation. If you download .tar.gz files and compile yourself you should be fine. However compiling yourself can be a pain in the arse, so you might like to use .rpm's or .deb file instead. I think firefox will install on any system much like the java development kit, just download the installer (think it's a .bin file)

hanzj 04-19-2005 04:30 AM

Jax8,
Thanks for your post, though I'm sorry but I have only a faint idea of what you wrote. The part that I understand is that there are various ways of installing Distros. And your post seems to say that installing with Linux is not like with Windows, where you just double-click the downloaded setup file and keep clicking "next."

reddazz 04-19-2005 04:31 AM

If you mean using the same config files etc, then thats not recommended at all because different distros can put things in different places and you can end up screwing up your system. As for applications, I don't think its possible to run an application thats installed on one distro on another unless you are running your distros on different computers, and accessing the other computer using ssh or something similar. You can use the same home directory but that can still cause you problems.

hanzj 04-19-2005 04:34 AM

I'm planning on trying out various distros on one computer.

reddazz mentioned that it's not possible to run an application in various distros but Jax8 thinks otherwise.

Which is it? I am confused.:confused:

jax8 04-19-2005 04:46 AM

I was talking about installing a system and then installing all the program onto it.

Format that system

Then install a new system and install the programs on that system.

and so on.

If you want to install a program only once and keep your home directory between each distribution you will have troubles.

And yes there are different ways of installing programs on linux, in fact there are many different ways for many different distribution. The easiest is to install via a package management system which windows has where you can click on a setup file and it will install for you. Linux has similar systems such as .rpm (SUSE, redhat, fedora and many more) or .deb (debain) and others. The only was you can be sure that an application will install on all linux distrubutions is to download the source code (the code that the program is written in) and then compiling it yourself using gcc (C compiler). Some files are smart and will install with their own installer, I think firefox has one of these installers and you can tell if it is because it will have a .bin extension

theYinYeti 04-19-2005 04:49 AM

What you want to do can be done, but IMHO, it seems to me, that you don't have the required knowledge.
Please don't take it bad, I say this to save you a lot of trouble. Indeed, installing software in Linux is not as it is in Windows.

But I don't want to discourage you either. Learning is accessible to all, including you and me. So if you've got the will, here are a few tips:
- Linux is based on the Unix phylosophy, where each program is installed under a standard prefix-path.
- Unix, hence Linux, permits either remote exports or local hard-disk partitions, to be "linked to" (we say mounted) anywhere on the filesystem (especially on places corresponding to well-known prefixes).
- Any binary can be executed, so long as access rights are OK (uid, gid), it is in the PATH (or full path is given), and this binary finds its needed libraries at the expected place (or if you're lucky, using ld -> /etc/ld.so.conf).

Good luck.
Yves.

hanzj 04-19-2005 05:03 AM

Quote:

Originally posted by theYinYeti
- Linux permits either remote exports or local hard-disk partitions, to be "linked to" (we say mounted) anywhere on the filesystem (especially on places corresponding to well-known prefixes).
So each distro must get its own partition?

theYinYeti 04-19-2005 05:33 AM

No. For example, you could have:
/dev/hda1: swap
/dev/hda2: Mandrake
/dev/hda3: Debian
/dev/hda4: your programs...

When you boot Mandrake, Mandrake would be configured to mount /dev/hda2 as "/", and /dev/hda4 as "/usr/local".
When you boot Debian, Debian would be configured to mount /dev/hda3 as "/", and /dev/hda4 as "/usr/local".

From each distribution's point of view, the /usr/local directory is its own, but in fact it is mounted there. It could even be mounted there from a remote server!

The problem is that binaries living in /usr/local/bin will probably need a number of software libraries. Some of them may be in /usr/local/lib, maybe. But most libraries will instead be looked for in /usr/lib, and those depend on what you install with each single distribution, because /usr/lib is not shared.

Of course, you could try and share /usr/lib too, but appart from /usr/local, and /opt, or a place of your own (or /home too), sharing directories and using a package manager don't live together well.

In fact, the more directories you share, the closer you are to the "thin client" model. But with this model, all clients share almost everything, and there's no point in trying different distributions for running as a thin client.

HTH.
Yves.

enemorales 04-19-2005 05:59 AM

You can have Windows 98 and/or Windows ME and/or Windows XP in the same computer, but: would you make them share the "C:\Program Files" folder? Certainly you could try to do so, and maybe it could work, but likely you will run in a lot of troubles it you try it. On the other hand, you wouldn't expect too many problems if they share "My Documents", as the important thing for documents are the applications: as long as you have your spreadsheet program installed in all your Windows, you will be able to open the files and work with them, without major (if any) difficulties.

Well... the same applies for different Linux distributions!

Hope this makes things clearer for you.

EDIT: Some misstypings.

pingu 04-19-2005 06:46 AM

I use one partition mounted on /usr/local in all distros, and some apps can be installed there and run from any distro.
Now only one kind works like this with no problem at all: the commercial ones. This includes all games I bought, OpenOffice, AcrobatReader and Opera. Sylpheed is an exception, it also works perfectly.
Commercial distributors make sure they deliver everything needed, and obviously puts the libraries in installation directory.
Trying to get anything else to work like this will give you problems. Problems that might be possible to solve if you have the knowledge (or try hard to solve it and you'll get the knowledge needed! ;) )
I also use one /home, this is really trickier because of differences in config-files as reddazz mentioned. Don't try it - at least not without a backup and plenty of time! In the worst case, you'll be unable to use the computer until problem is fixed.


All times are GMT -5. The time now is 04:15 PM.