Tuesday, September 2, 2008

Re: [BLUG] Amarok



On Tue, Sep 2, 2008 at 12:45 PM, Steven Black <blacks@indiana.edu> wrote:
On Tue, Sep 02, 2008 at 11:17:38AM -0400, Michel Salim wrote:
> On Tue, Sep 2, 2008 at 10:35 AM, Shei, Shing-Shong <shei@cs.indiana.edu> wrote:
> > Make sure that your UID is consistent between these two; i.e., if
> > you create an account foo on both distro's, the UID on both distro's
> > should be the same.  The tricky part is that the program you compiled
> > on distro 1 (and put in /home/foo/bin) might use different shared libraries
> > than the one on distro 2.  In this case, the program can only be run on
> > distro 1 but not distro 2.
> >
> So anything in ~/bin should preferably be architecture-independent
> scripts, or statically-compiled binaries. Of course, that won't help
> you if /home is shared between two different architectures
> (i386/x86_64 and ppc, perhaps)

You can have a totally shared /home with multiple platforms, you just
need to be trickier.

You can use `uname -p` and `uname -o` to get the basic processor and
operating system information. (Though note that you can be x86 and have
a number of potential options for "uname -p". Ex. A distribution which
supports 386's may report i386.)

I would possibly rely on "uname -m". I have never gotten 'uname -p' to show either x86 or i386 on Ubuntu. For some reasons, it just says "unknown".
It's a bug with either Ubuntu or coreutils which noone seems to keen to fix.

My 2 cents,
Thanks,
 -- Abhishek
 

No comments: