Re: annoyances that i have not mastered

[email protected]
Newsgroups gmane.linux.usability.annoyances
Message-ID <[email protected]>
Brenda -

On Sat, 23 Aug 2003, brenda wrote:

> java has me totally beat.i can d/l and install but i need to do a symlink and 
> cannot get the command right.it is prolly one little space or something 
> beating me but right now it has me beat.

The command to create symlinks, ln, takes the form

ln TARGET LINK_NAME

The LINK_NAME is created as a pointer _to_ TARGET. Think of it working in
nearly the same way as cp.

So to create the appropriate symlinks for Mozilla/Galeon, as root:

cd /path/to/mozilla/plugins/
ln -sf /path/to/java/j2sdk1.4.1/jre/plugin/i386/ns610/libjavaplugin_oji.so libjavaplugin_oji.so
ln -sf /path/to/java/j2sdk1.4.1 java2

On my system, this is

cd /usr/lib/mozilla-1.4/plugins
ln -sf ../../../java/j2sdk1.4.1_03/jre/plugin/i386/ns610/libjavaplugin_oji.so libjavaplugin_oji.so
ln -sf ../../../java/j2sdk1.4.1_03 java2

The full java path is /usr/java/j2sdk1.4.1_03.

.. is the notation for 'parent directory', so ../../../ "cancels out" the
lib/mozilla-1.4/plugins part of the path. You could put '/usr/' in place but
I seem to recall using ../ is safer and/or more efficient.

Finally, the -s paramter to ln creates a symbolic link, -f forces
replacement of any pre-existing TARGET.

> br3n

Best Regards,
Alex.
-- 
Alex Butcher      Brainbench MVP for Internet Security: www.brainbench.com
Bristol, UK                      Need reliable and secure network systems?
PGP/GnuPG ID:0x271fd950                         <http://www.assursys.com/>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.