[NTLUG:Discuss] Java - Firefox Plugin

Kenneth Loafman kenneth at loafman.com
Sat Nov 22 11:07:51 CST 2008


The only problem I see with this script is that if there are more than
one ns7/libjavaplugin_oji.so files in the system, e.g. one extracted
from a tar file and one installed.

Fix is:
    pluginPath=`locate ns7/libjavaplugin_oji.so | head 1`

Or maybe just punt if there are more than one located.  Of course, this
assumes that locate is running, which may not be active on recent Ubuntu
systems.

...Ken

Dennis Kaptain wrote:
> This works on MY installation of Fedora 8, Your mileage may vary -
> If anyone can improve on this, please do. I'm always ready to learn a new trick or two.
> Dennis K
> 
> 
> 
> #!/bin/bash
> 
> # this program creates a symbolic link for firefox to find the java plugin
> # use this when you upgrade to a new version of firefox and java won't work
> 
> # user MUST be root
> if [ `id -u` = 0 ]; then 
>    ver=`rpm -q firefox | cut -d '-' -f 2`        # firefox version
>    dir=/usr/lib/firefox-$ver/plugins             # firefox plugin path
>    pluginPath=`locate ns7/libjavaplugin_oji.so`  # java plugin path
>    ln -s $pluginPath $dir/libjavaplugin_oji.so   # make the link
> else
>    echo Error: You MUST be root to run this command!
> fi
> 
> 
> 
> 
> ----- Mensaje original ----
>> De: Randall Weyers <Rwweyers2 at tx.rr.com>
>> Para: trryhend at gmail.com; NTLUG Discussion List <discuss at ntlug.org>
>> Enviado: sábado, 22 de noviembre, 2008 7:32:05
>> Asunto: Re: [NTLUG:Discuss] Java - Firefox Plugin
>>
>> Why not create a simple script that makes that link for your clients and
>> send it to them
>>
>>
> 
> 
>       ¡Todo sobre Amor y Sexo!
> La guía completa para tu vida en Mujer de Hoy.                       
> http://mx.mujer.yahoo.com/
> 
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
> 




More information about the Discuss mailing list