#!/usr/bin/csh -e # # Work is based on knowledge gleaned from many sources and newsgroup postings. # # First: It is recommended that you delete or rename any java_3* files # in ~/.netscape/. These have been associated with spins in 4.0x. # # I set MOZILLA_HOME in my login scripts. Subsequent installs and # updates can then find the native location. # setenv MOZILLA_HOME /usr/local/netscape # # Augment current library path to pick up old libXt. To prepare this, # make a directory 'shlib' in $MOZILLA_HOME. In this directory, selectively # make symlinks to files in /usr/lib/netscape which are optionally # provided by the base system. # #setenv LD_LIBRARY_PATH $MOZILLA_HOME/shlib:$LD_LIBRARY_PATH # # Add more java classes as needed. # #setenv CLASSPATH ~/local/lib/java:$CLASSPATH # # I don't set NPX_PLUGIN_PATH as I prefer Netscape's default paths # for finding plugins. If you run as root, you should probably # make the paths explicit. # #setenv NPX_PLUGIN_PATH $MOZILLA_HOME/plugins # # You can augment nethelp searching with this variable. It doesn't # replace the builtin search paths, just adds another directory. # #setenv NS_NETHELP_PATH ~/local # # Synchronous DNS prevents the address lookup failures. # setenv MOZILLA_NO_ASYNC_DNS True # # FreeBSD people claim removing the license_accepted token on every # session prevents the Java-induced CPU-spin hyperactivity. It also # forces the user to accept/decline the license agreement on every # invocation so I disable it. Note that this doesn't do any file locking. # #sed '/browser\.startup\.license_accepted/d' ~/.netscape/preferences.js >~/.netscape/preferences.js.new #mv ~/.netscape/preferences.js.new ~/.netscape/preferences.js # # If you use CDE and are a software developer or tester, you should # enable unaligned access fixup printing in your login scripts. CDE tends # to disable it. Then, unless you want to do some debugging on Netscape, # you'll want to disable this printing (because NS tends to generate # a lot of unaligned accesses) and set coredumpsize down to 0 so that # it crashes faster. When you want to debug a Netscape problem, comment # these out. # uac p 0 limit coredumpsize 0 # # Try to prevent the 'can't grow stack' crashes unless you want to debug # them. # unlimit stacksize # # If you want to see where netscape gets its libraries, enable the # following variable. # #setenv _RLD_ARGS -v # # Run it. Another rumor is that starting java at command time will # prevent the cpu spins. # exec $MOZILLA_HOME/netscape -no-about-splash $*