Subject: Re: [suse-axp] netscape only runs as root (and RH incompatibilities)
From: William H. Magill (magill@isc.upenn.edu)
Date: Wed Aug 23 2000 - 08:42:05 PDT
> > The remainning one concerns Nerdscape:
> > I can run it as root (actually also as any other LOCAL user). The
> > weird thing is NIS users can start it, it loads but it does not
> > display :( All other X apps that I have tried (emacs, xterm,
> > gnome,etc.) are working fine.
>
> I've got the same problem. I've tried to fix the reason of this problem
> using strace, but failed. It seems that after fork() one child process
> just dies, but the parent process remains waiting. I haven't find out
> the reason why.
> So I also don't know what to do.
One issue might be with the startup.
Netscape needs an environment under the user's home directory before it can
run. (especially for java.) It's supposed to create it, but sometimes
cannot. That leads to unpredictable behaviour. NIS users might fall into
this category.
Tru64 uses the following script as /usr/bin/X11/netscape to get around the
problem of the missing setup, installed as ugo excutable, it checks the
environment and then launches the "real netscape."
The variable "MOZILLA_HOME" might be the real key.
---------<cut here /usr/bin/X11/netscape>------
#!/bin/sh
#
# This script is intended to be installed at /usr/bin/X11/netscape.
#
# Before running the real netscape binary at /usr/bin/X11/real-netscape,
# the script does the following:
#
# o If the $HOME/.netscape directory does not already exist,
# it creates the netscape default cache and archive directories,
# $HOME/.netscape/cache and $HOME/.netscape/archive.
#
# o It checks to see if the user has a netscape preferences file at
# $HOME/.netscape/preferences.js. If not, the system default netscape
# preferences file is copied into that location, which allows Navigator
# to come up with the Tru64 UNIX Unix home page loaded.
#
# o It sets MOZILLA_HOME to /usr/lib/netscape before executing the
# real netscape binary. Communicator looks at MOZILLA_HOME as a fallback
# or default mechanism for Plug-in, Java Applet, and Nethelp support
# in addition to the existing mechanisms from previous releases.
# See the /usr/lib/netscape/README file for details.
#
set -e
REAL_NETSCAPE=/usr/bin/X11/real-netscape
DEF_PREFS=/usr/doc/netscape/default-netscape-preferences
NLIBDIR=/usr/lib/netscape
INSTDIR=$HOME/.netscape
CACHEDIR=$INSTDIR/cache
ARCHDIR=$INSTDIR/archive
#
# Create $HOME/.netscape cache and archive if needed
#
if [ ! -e $INSTDIR ]; then
mkdir -p $CACHEDIR
mkdir $ARCHDIR
chmod -Rf 700 $INSTDIR
fi
#
# Create default preferences file if needed
#
if [ ! -e $INSTDIR/preferences.js ]; then
if [ -e $DEF_PREFS ]; then
cp -f $DEF_PREFS $INSTDIR/preferences.js
chmod 600 $INSTDIR/preferences.js
fi
fi
#
# Set MOZILLA_HOME to the Netscape installation directory.
#
MOZILLA_HOME=$NLIBDIR
export MOZILLA_HOME
#
# Set MOZILLA_NO_ASYNC_DNS to True.
#
# MOZILLA_NO_ASYNC_DNS=True
# export MOZILLA_NO_ASYNC_DNS
#
# Set NPX_PLUGIN_PATH to the plug-in directory.
# This example sets the NPX_PLUGIN_PATH to the default
# install directory of the Adobe Acrobat viewer plug-in.
#
# ADIR=/usr/local/Acrobat4
# PATH=$PATH:$ADIR/bin
# export PATH
# PCONFIG=alphaosf
# NPX_PLUGIN_PATH=$ADIR/Browsers/$PCONFIG
# export NPX_PLUGIN_PATH
exec $REAL_NETSCAPE -name netscape -no-about-splash -xrm '*nsMotifFSBCdeMode: Tr
ue' -xrm '*menuBar*openRadio.mappedWhenManaged: False' $*
-----------------<cut here>-------------
--
www.tru64unix.compaq.com
www.tru64.org
comp.unix.tru64
T.T.F.N.
William H. Magill Senior Systems Administrator
Information Services and Computing (ISC) University of Pennsylvania
Internet: magill@isc.upenn.edu magill@acm.org
http://www.isc-net.upenn.edu/~magill/
--
To unsubscribe, e-mail: suse-axp-unsubscribe@suse.com
For additional commands, e-mail: suse-axp-help@suse.com
This archive was generated by hypermail 2a22 : Fri Sep 01 2000 - 05:04:01 PDT