[368] in athena10
Using whichlocker in a command-not-found hook (was Re: Adding software
daemon@ATHENA.MIT.EDU (Timothy G Abbott)
Mon Aug 4 20:09:26 2008
Date: Mon, 4 Aug 2008 20:08:41 -0400 (EDT)
From: Timothy G Abbott <tabbott@MIT.EDU>
To: Geoffrey Thomas <geofft@mit.edu>
cc: Jonathan Reed <jdreed@mit.edu>, Greg Hudson <ghudson@mit.edu>,
athena10@mit.edu
In-Reply-To: <alpine.DEB.1.10.0808041938470.25806@vinegar-pot.mit.edu>
Message-ID: <alpine.DEB.1.10.0808042002290.9491@vinegar-pot.mit.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
I think it is probably not adviseable to have the shell be that dependent
on AFS or to run commands out of the outland locker whenever someone types
the wrong command (since the outland locker advertises relatively sloppy
maintainance and security practices). I think it is possible for those
difficulties to be overcome (I could imagine caching the whichlocker
database on local disk and the whichlocker command in a package), and the
feature would probably be fairly cool if that were the case.
-Tim Abbott
On Mon, 4 Aug 2008, Geoffrey Thomas wrote:
> On Mon, 4 Aug 2008, Jonathan Reed wrote:
>
>> I'm trying to think if there are any scripts or documentation which assume
>> that "acroread" is in the default PATH and that it does something useful.
>> I want to say there are, but I can't think of any beyond Firefox and the
>> OLC stock answers, the former will become moot and the latter is fixable.
>> This feels like a large change, even though it's almost certainly not. I
>> wonder if "acroread" shouldn't stick around as an attachandrun script, but
>> that feels like a hack and will interact poorly with people who do install
>> Acrobat.
>
> One option is to add our own command-not-found hook that runs whichlocker,
> or an official variant that's in the release, as opposed to in a locker
> itself. Just like Ubuntu does
>
> geofft@water-buffalo:~$ zwrite
> The program 'zwrite' is currently not installed. You can install it by
> typing:
> sudo apt-get install zephyr-clients
> -bash: zwrite: command not found
>
> (on a non-Debathena machine), we can have something that does, e.g.,
>
> athena$ acroread
> The program 'acroread' is available in the 'acro' locker. You can add the
> locker by typing
> add acro
> -bash: acroread: command not found
> athena$
>
> This won't help shell scripts the way attachandrun will, but I suspect that's
> not important for programs like acroread, matlab, or other common locker
> software. It will also greatly improve discoverability of the Athena locker
> system in general.
>
> --
> Geoffrey Thomas
> geofft@mit.edu
>