Installing Puresecure on Solaris 8
From:Date: 08/12/02
- Next message: Slade Wilson: "Re: Covering ATM video surveillance camera - no effective defense?"
- Previous message: : "Re: Covering ATM video surveillance camera - no effective defense?"
- Next in thread: Darth Vader: "Re: Installing Puresecure on Solaris 8"
- Reply: Darth Vader: "Re: Installing Puresecure on Solaris 8"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 12 Aug 2002 17:32:33 GMT
** Solaris as a HIDS **
I am not a developer. I did, however, use the steps below to get Puresecure
running on
my Solaris 8 servers. This is certainly not the best way, but it worked for
me.
Please add to this if you know of a better way.
------------------------------------------------------------------
NOTE:
Getting puresecure installed on Solaris was very difficult. I wasn't able to
just change
to the Puresecure install directory and run `./configure' without getting a
number of errors. So,
I had to manually install a number of things.
I've written these directions to outline how I installed Puresecure. If you
have a nice Forte
C compiler, you should skip all the references about gcc, libgcc, and make.
-----------------------------------------------------------------
* Get LATEST version of the following packages from sunfreeware and install
them..
Perl, mysql - for puresecure
lynx, ncftp - for perl -MCPAN...
zlib, ncurses, libgcc - for mysql
gcc - gcc >= 2.95.3 worked for me
{gzip -d packagename.gz}
{pkgadd -d package-name}
{pkginfo}
{pkgrm package-name}
# cd /export/home/steve/sunfreeware
# gzip -d zlib-1.1.4-sol8-sparc-local.gz
# pkgadd -d zlib-1.1.4-sol8-sparc-local
# gzip -d ncurses-5.2-sol8-sparc-local.gz
# pkgadd -d ncurses-5.2-sol8-sparc-local
# gzip -d libgcc-3.1-sol8-sparc-local.gz
# pkgadd -d libgcc-3.1-sol8-sparc-local
# gzip -d ncftp-3.0.1-sol8-sparc-local.gz
# pkgadd -d ncftp-3.0.1-sol8-sparc-local
# gzip -d lynx-2.8.3-sol8-sparc-local.gz
# pkgadd -d lynx-2.8.3-sol8-sparc-local
# gzip -d mysql-3.23.45-sol8-sparc-local.gz
# pkgadd -d mysql-3.23.45-sol8-sparc-local
# gzip -d perl-5.8.0-sol8-sparc-local.gz
# pkgadd -d perl-5.8.0-sol8-sparc-local
# gzip -d gcc-2.95.3-sol8-sparc-local.gz
# pkgadd -d gcc-2.95.3-sol8-sparc-local
MAKE and GCC
* Oddly enough, you want to use the sun version of "make" and not the gnu
version when compilng DBD::mysql
# which make { Should be /usr/ccs/bin/make; if not modify "PATH" in
/.profile such that /usr/ccs/bin is first}
# which gcc { should be /usr/local/bin/gcc }
CONFIGURING MYSQL:
# cd /
# vi .profile
Add this to the "PATH" line: /usr/local/mysql/bin;/usr/local/mysql/libexec
Add this to the "LD_LIBRARY_PATH" line: /usr/local/mysql/lib/mysql
# vi /etc/group {now add a mysql group}
# mkdir /export/home/mysql
# adduser -g mysql -d /export/home/mysql mysql
# passwd mysql
# cp /
# cp .profile /export/home/mysql
# chown -R mysql /export/home/mysql
# chown -R mysql /usr/local/mysql/var
# chgrp -R mysql /usr/local/mysql
{optional} # su - mysql
{optional} mysql> mysqld {this might not work, but it shouldn't complain
about any missing libraries :-) }
{optional} mysql> exit
INSTALLING PERL MODULES
* You want to be sure you are using the latest version of perl which is
most likely installed in /usr/local/bin. Otherwise, adding perl modules
using
`perl -MCPAN ...` will not work properly
# which perl { /usr/bin/perl or /usr/local/bin/perl ? }
# find / -name perl
* If there exists a perl in /usr/local/bin and /usr/bin/, you may wish to
move /usr/bin/perl
{the Sun version} out of the way
# mv /usr/bin/perl /usr/bin/perl.old
# which perl { to be sure you are using the one is /usr/local/bin }
{optional}# perl -v
{optional}# perl -V
{optional}# pkginfo | grep perl
{optional}# pkginfo -l SMCperl
* Open the firewall such that this host can use ftp and www freely
# perl -MCPAN -e 'install DBI'
< answer all the questions >
# perl -MCPAN -e 'install Digest::MD5'
* To install DBD::mysql you'll need to get the sources from search.cpan.org
# cd /export/home/steve
# gzip -d DBD-mysql-2.1017.tar.gz
# tar -xvf DBD-mysql-2.1017.tar
# cd DBD*
# perl Makefile.PL
{optional} # make test
# make install
INSTALLING PURESECURE:
# cd /export/home/steve
# gzip -d puresecure-1.6.tar.gz
# tar -xvf puresecure-1.6.tar
# mkdir /usr/local/puresecure
# mv /export/home/steve/puresecure-1.6/* /usr/local/puresecure
# cd /usr/local/puresecure
# ./configure
* Answer NO to all questions. If everything goes well, it should ask your
for puresecure
username/password and location. Otherwise, carefully review the problem.
# cd /export/home/steve
# gzip -d startup-scripts.tar.gz
# tar -xvf startup-scripts.tar
# cd start*
# cp -rp puresecure.sh /etc/init.d
# cd /etc/rc3.d
# ls -l { Select a SXX number }
# ln -s ../init.d/puresecure.sh S85puresecure
* To avoid startup problems add the LD_LIBRARY_PATH to
/etc/init.d/puresecure.sh
# vi /etc/init.d/puresecure.sh
LD_LIBRARY_PATH=/usr/local/mysql/lib/mysql:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
- Next message: Slade Wilson: "Re: Covering ATM video surveillance camera - no effective defense?"
- Previous message: : "Re: Covering ATM video surveillance camera - no effective defense?"
- Next in thread: Darth Vader: "Re: Installing Puresecure on Solaris 8"
- Reply: Darth Vader: "Re: Installing Puresecure on Solaris 8"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|