|
|||||||||||
|
Re: EGD and PRNGD
From: Max Gregis <mgregis(at)sorint.it>
Date: Thu May 08 2003 - 04:28:11 EDT First of all, if you want to use PRNGD, EGD is OPTIONAL end NOT mandatory on SOlaris 2.6 for compiling EGD you have to do: Take your source files and decompress them gzcat egd-0.8.tar.gz | tar xf - Now, go into EGD dir and:
perl Makefile.PL
# mkdir -p /opt/prngd/bin
# gzcat prngd-0.9.25.tar.gz | tar xf -
# cp -p contrib/Solaris-2.6/prngd.conf.solaris-26 /etc/prngd.conf
vi Makefile Find and Set this variable: DEFS=-DRANDSAVENAME=\"/opt/prngd/etc/prngd-seed\" -DCONFIGFILE=\"/etc/prngd.conf\" Compile PRNGD with these options:
# make CC=gcc CFLAGS="-O3 DSOLARIS" SYSLIBS="-lsocket -lnsl"
If those options don't run, use these:
# make CC=gcc SYSLIBS="-lsocket -lnsl"
Now proceed to PRNGD configuration as follows:
# cp -p prngd /opt/prngd/bin
# cat /var/log/syslog > /opt/prngd/etc/prngd-seed
Now execute PRNGD daemon as follows: # /opt/prngd/bin/prngd /var/spool/prngd/pool
you can create PRNGD startup script:
# cd /etc/init.d
#!/bin/sh
pid=`/usr/bin/ps -e | /usr/bin/grep prngd | /usr/bin/sed -e 's/^ *//' -e 's/ .*//'`
case $1 in
/opt/prngd/bin/prngd /var/spool/prngd/pool
;;
'stop')
if [ "${pid}" != "" ]
then
/usr/bin/kill ${pid}
fi
;;
*)
echo "usage: /etc/init.d/prngd {start|stop}"
;;
esac Now, create links: # ln -s /etc/init.d/prngd /etc/rc0.d/K30prngd
You can verify prngd functionality with EGD PRNGD:
# /usr/local/bin/egc.pl /var/spool/prngd/pool get
Wednesday, May 07, 2003, 6:41:25 AM, you wrote: DTVc> I'm running Solaris 2.6 on a Unix Platform. I've loaded openssh3.5p1 and DTVc> load PRNGD. What I need some info on is, if I'm running with PRNGD do I DTVc> still need EGD? and if so I having problems running the 'make' command when DTVc> trying to configure EGD. The following is the input from the command DTVc> gcc -c -fno-strict-aliasing -I/usr/local/include DTVc> -D_LARGEFILE_SOURCE -D_FILE_Oc DTVc> cc1: Invalid option `-fno-strict-aliasing' DTVc> *** Error code 1 DTVc> make: Fatal error: Command failed for target `SHA1.o' DTVc> Current working directory /opt/egd-0.9/Digest-SHA1-2.00DTVc> *** Error code 1 DTVc> make: Fatal error: Command failed for target `subdirs' DTVc> I want to redirect the default install directory from '/usr/local' to DTVc> '/opt'. Any help would be appreciated.
DTVc> Thanks
This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:58 EDT |
||||||||||
|
|||||||||||