Re: EGD and PRNGD
From: Max Gregis (mgregis_at_sorint.it)
Date: 05/08/03
- Previous message: Michael Martinez: "sftplogging patch updates"
- In reply to: Debra.Talley_at_VerizonWireless.com: "EGD and PRNGD"
- Next in thread: Joseph Kattner: "Re: EGD and PRNGD"
- Reply: Joseph Kattner: "Re: EGD and PRNGD"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 08 May 2003 10:28:11 +0200 To: Debra.Talley@VerizonWireless.com
Hi Debra,
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
make
make test
make install
# mkdir -p /opt/prngd/bin
# mkdir -p /opt/prngd/etc
# gzcat prngd-0.9.25.tar.gz | tar xf -
# cd prngd-0.9.25
# 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
# mkdir /var/spool/prngd
Now execute PRNGD daemon as follows:
# /opt/prngd/bin/prngd /var/spool/prngd/pool
you can create PRNGD startup script:
# cd /etc/init.d
# vi prngd
#!/bin/sh
pid=`/usr/bin/ps -e | /usr/bin/grep prngd | /usr/bin/sed -e 's/^ *//' -e 's/ .*//'`
case $1 in
'start')
/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
# ln -s /etc/init.d/prngd /etc/rc1.d/K30prngd
# ln -s /etc/init.d/prngd /etc/rc2.d/S20prngd
# ln -s /etc/init.d/prngd /etc/rcS.d/K30prngd
You can verify prngd functionality with EGD PRNGD:
# /usr/local/bin/egc.pl /var/spool/prngd/pool get
10211 bits of entropy in pool
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.00
DTVc> *** 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
DTVc> DebraT
- Previous message: Michael Martinez: "sftplogging patch updates"
- In reply to: Debra.Talley_at_VerizonWireless.com: "EGD and PRNGD"
- Next in thread: Joseph Kattner: "Re: EGD and PRNGD"
- Reply: Joseph Kattner: "Re: EGD and PRNGD"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|