# ./configureEdit defines.h and set "#define SECURE 1" before running "make":
# makeThe binary is created in the source directory; copy it to /opt/bin or /usr/local/bin using cp or mv.
# ./configure # makeI encountered a segfault problem doing this, and traced it to the "new mail" notification code. That code is removed from the ".nomail" version on the Utility CD.
# ./build gso # cp bin/* /opt/bin
# sh Configure --prefix=/opt -DCC=gcc -d ; make ; make installThe installer will offer to install this as /usr/bin/perl; say "Y". Apache complains just a little if you don't have a working perl for administrative purposes; it's good to have even if we don't want it for CGI.
# ./Configure # make
# ./configure --prefix=/opt # make # make installFor logging purposes, I edit /etc/sshd_config and set the FACILITY to LOCAL1.
Disallow logins as root, too. (But first make sure you have a non-root account you can use to log in and run su !)
Edit /etc/syslog.conf to map LOCAL1 and LOCAL2 messages to /var/log/authwarn -- note that all whitespace in syslog.conf must be tabs, not spaces. You must also create the empty log file, e.g. touch /var/log/authwarn because syslog.conf will not create a file that does not exist.
# pkill -HUP syslogd to restart the syslog daemon.
(Solaris 2.6 doesn't have pkill -- use ps -ef | grep syslogd to get the process ID (PID) and then kill -HUP $PID.
You may want to rotate the logs a bit more often than the default, which is once a week. As root:
# export VISUAL=pico # or vi, if you insist
# crontab -e
Pico will open a file that looks like this:
#ident "@(#)root 1.19 98/07/06 SMI" /* SVr4.0 1.1.3.1 */
#
# The root crontab should be used to perform accounting data collection.
#
# The rtc command is run to adjust the real time clock if and when
# daylight savings time changes.
#
10 3 * * 0,4 /etc/cron.d/logchecker
10 3 * * 0 /usr/lib/newsyslog
#15 3 * * 0 /usr/lib/fs/nfs/nfsfind
1 2 * * * [ -x /usr/sbin/rtc ] && /usr/sbin/rtc -c > /dev/null 2>&1
30 3 * * * [ -x /usr/lib/gss/gsscred_clean ] && /usr/lib/gss/gsscred_clean
To run newsyslog every day, change this line:
10 3 * * 0 /usr/lib/newsyslog
to this:
10 3 * * * /usr/lib/newsyslog
Get the source for tcp-wrappers and rpcbind from www.porcupine.org. Edit the Makefile to set FACILITY to LOG_LOCAL2 and CC=gcc, then 'make sunos5'.
Copy libwrap.a to /opt -- we reference it below using the environment variable "WRAP_DIR".
# WRAP_DIR=/opt ; export WRAP_DIR
# make
# cp /usr/sbin/rpcbind /usr/sbin/rpcbind.SUN
# cp rpcbind /usr/sbin
To replace a running rpcbind, stop it with -TERM and use
the -w ("warmstart") option on the replacement:
# kill -TERM {pid of rpcbind}
# /usr/sbin/rpcbind -w
# kill -HUP {pid of new rpcbind} # to toggle verbose logging.
# cd opt
# sh Solaris_JDK_1.2.2_06_sparc.bin
Remove old /usr/bin/java* and symlink all java? to new JDK:
# rm /usr/bin/java?
# cd /opt/Solaris_JDK_1.2.2_06/bin
# for i in java? ; do
> ln -s /opt/Solaris_JDK_1.2.2_06/bin/$i /usr/bin/$i
> done
If a search engine dropped you directly into this document, you should go to the index page to find out what you're reading. This document is a record of a project from 1999-2000 -- it is not a current guide to installing any software product.