[25527] in Athena Bugs

home help back first fref pref prev next nref lref last post

running infoagents locker Netscape on OpenAFS

daemon@ATHENA.MIT.EDU (Alex T Prengel)
Wed Feb 25 15:52:00 2004

Message-Id: <200402252051.i1PKpc4q008472@dit.mit.edu>
To: bug-infoagents@mit.edu
Date: Wed, 25 Feb 2004 15:51:37 -0500
From: Alex T Prengel <alexp@mit.edu>
cc: alexp@mit.edu
Errors-To: bugs-bounces@mit.edu

Hi,

It would be nice if users running the OpenAFS client could run Netscape
4.78 out of the infoagents locker properly. I can get it to run, but with
a lot of error spewage from several layers of wrapper scripts that have
Athena-isms hard-coded i.e. /usr/athena/bin/perl, /usr/athena/bin/athdir etc.

I have been dealing with this in lockers I maintain myself and have a few
suggestions: 1. I made a small locker afsutil and put the more commonly
used Athena utilities often used in launch scripts there: athdir, machtype,
hesinfo (I'll be glad to add others if needed). I make a symlink to there
from the appropriate arch dir in lockers that have scripts that need these 
i.e. you could put in /mit/infoagents/arch/i386_linux24/bin a link:
athdir -> /afs/athena/software/afsutil/arch/i386_linux24/bin/athdir (etc.)
Only other tricky part is that the directory 
/mit/infoagents/arch/i386_linux24/bin may need to be added explicitly
to the path in the netscape launch script if you invoke it like:
/mit/infoagents/arch/i386_linux24/bin for athdir etc. to be found internally.

2. I remove absolute paths to athdir etc. in scripts, relying on them being
found through the path/symlink as set above.

3. I change the Perl script header to #!/usr/bin/env perl

4. I make sure that wherever i386_rh9 appears, I have a symlink to it
from i386_linux24 (generally this, or the reverse, is already true in
older lockers, but may not be in new ones).

5. I test for OpenAFS being used (by distinction from Athena) by looking
for /etc/athena/reactivate as proof of "Athenaness"; if it's not Athena,
instead of doing "add" or "attach" I use "afslocker" (part of the OpenAFS 
installation), also setting the path if necessary.

Applying these steps (and perhaps a few minor other edits) generally makes
things work fine on OpenAFS; sorry this is long-winded- you may know all this
already but I wasn't sure- it should apply to other applications besides
Netscape.

                                    Alex

home help back first fref pref prev next nref lref last post