[linux-guvenlik] Demarc kurulumu.

---------

New Message Reply About this list Date view Thread view Subject view Author view

From: Taner Karagöl (karagol@aselsan.com.tr)
Date: Thu 31 Jan 2002 - 08:15:17 EET


x-gfisavedcharset: iso-8859-9
Content-Type: text/plain;
        charset="iso-8859-9"
Content-Transfer-Encoding: quoted-printable

Demarc Kurarken ald=FD=F0=FDm notlar. Belki i=FEinize yarar.
Burada Demarc eski versiyonunun kurulumu var. Yap=FDlm=FD=FE olan =
hatalarda mevcut bu nedenle i=FEe yarayabilir.
Ek olarak di=F0er =FEeyleri kurarken ald=FD=F0=FDm notlarda mevcut. =
Snort, apache, php, imap gibi.

=DD=FEinize yarayan=FD alabilirsiniz.

=DDyi =E7al=FD=FEmalar.

-- Attached file included as plaintext by Listar --
-- File: demarc-linux install.txt

Slackware Linux 7.1. Kernel is 2.2.17
All Source files are in /root home directory (Before beginning installation, mysql already installed and running)
Tüm kaynak kodları /root altında (kurulum başlamadan önce mysql zaten hazır ve çalışıyor)
--------------------------------------------------

Installing Perl 5.6.1
---------------------
Entering directory /perl-5.6.1

default installation /usr/local/

shell> rm -f config.sh Policy.sh
shell> sh Configure -de
shell> make
shell> make test
shell> make install

it asks for linking previous perl to new? Answer Yes.

OK. If you want delete perl source directory to gain free space.
-----------------------------------------------------------------------

Installing CGI_Module for PERL (This is incorrect version, correct version is 2.273.)
(Bu modül yanlış ve demarc çalışmıyor. Bu nedenle doğru versiyon yeniden kurulmalı: 2.273)
------------------------------
Entering directory /CGI.pm-3.03_01

shell> perl Makefile.PL
shell> make test
shell> make
shell> make install

OK. If you want delete CGI_Module source directory to gain free space.
------------------------------------------------------------------------

Installing DBI_Module for Perl
------------------------------
Entering directory /DBI-1.18

shell> perl Makefile.PL

Asks for optional PlRPC-modules. Not necessary, continue...

shell> make test
shell> make
shell> make install

OK. If you want delete DBI_Module source directory to gain free space.
------------------------------------------------------------------------

Installing Digest:MD5_Module for Perl
------------------------------
Entering directory /Digest-MD5-2.14

shell> perl Makefile.PL
shell> make test
shell> make
shell> make install

OK. If you want delete Digest:MD5_Module source directory to gain free space.
------------------------------------------------------------------------

Installing MySQL_Module for Perl
------------------------------------
Entering directory /Msql-Mysql-modules-1.2216

shell> perl Malefile.PL

[1] for MySQL
[n] for no emulation
[/usr/local/mysql] for MySQL install dir.
[test] for test database
[localhost] for database host address
[root] for username to connect database
[<password>] for user password

"Warning: prerequisite Data::ShowTable failed to load: Can't locate Data/ShowTab.
Note (probably harmless): No library found for -lgz"

This warning message comes because MySQL does not work. I start MySQL end continue

shell> make test

"Failed 12/14 test scripts, 14.29% okay. 283/290 subtests failed, 2.41% okay.
make[1]: *** [test_dynamic] Error 2
make[1]: Leaving directory `/root/Msql-Mysql-modules-1.2216/mysql'
make: *** [test] Error 2"

As I understand, still I have a problems with MySQL. I checked MySQL. Then running mysql again: shell> sh bin/safe_mysqld --user=mysql &

Turkish:
Bi sürü hata çıktı. Üst satırlarda MySQL'e bağlanamadığını söylüyor. Database'i çalıştırıp tekrar denemek lazım.
MySQL process olarak gözüküyor fakat kill etmiyor. -9 ile kill ettim, process olarak gözükmüyor ama tekrar çalıştırmak istenince bu process zaten var diyor. mysql/data/.pid dosyasının içindeki pid numarasını kill ettim. ve Tekrar çalıştırıyorum.
shell>mysql> sh bin/safe_mysqld --user=mysql &
end-Turkish

continue with test

shell> make test

gives again errors and says test database does nor exist. Create a test database:
./mysql -u root -p
mysql> create database test;
mysql> exit;

continue test

shell> make test
shell> make
shell> make install

OK. If you want delete MySQL_Module source directory to gain free space.
------------------------------------------------------------------------

Installing Apache Web Server
(Apache zaten so destekliyorsa bunu yapmaya gerek yok)
------------------------------------
Entering directory /apache_1.3.20

shell>./configure --enable-module=so
shell>make
shell>make install

Apache may install under /usr/local/apache directory. This is default setting.
start apache by the command /usr/local/apache/bin/apachectl start
test apache by connecting to http://localhost

OK. If you want delete Apache source directory to gain free space.
------------------------------------------------------------------------

Installing PHP4 (not necessary for demarc, skip if you want)
(Demarc için gerekli değil)
-----------------------------------
Entering directory /php-4.0.4pl1

shell>./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs
shell> make
shell> make install

fallow instractions on PHP installation.

OK. If you want delete PHP source directory to gain free space.
------------------------------------------------------------------------

Installing demarc
------------------------------------------
Entering directory /demarc-1.04-02

Check whether all perl modules are correct?

shell> ./check_pms.pl

Perl script says "ready to install demarc"
Create mysql user and db for demarc. Follow instructions on Demarc installation documents.

Shell> ./dm_load_db.pl

Enter Database user,password, db name.

Copy all demarc files under /usr/local/demarc
Copy demarc_c.pl under /usr/local/bin

Edit /usr/local/demarc/dm/demarc file
Edit /usr/local/bin/demarc_c.pl

Edit httpd.conf ( edit FOR REGULAR PERL)
restart httpd

run demarc_c.pl it seems working but syslog says "cant write to /var/log/snort directory"
create /var/log/snort directory and set permissions to write.

run demarc_c.pl ok. working.

test demarc, http://...../dm/demarc but gives internal server error.
Look at httpd_error_log "Funtion CGI::Object::Vars does not exits at ......line 204"

I editted httpd.conf for MOD_PERL
but httpd does not restart because mod_perl doesnt installed
(Demarc install notlarında anlatılan MOD_PERL yöntemi çalışmadı, diğer yöntem regular perl, bu yöntemi sonra deniyorum)

Installing mod_perl for apache (apache source also exists in the same directory)
---------------------------------
Entering directory /mod_perl-1.26

Shell> perl Makefile.PL APACHE_SRC=../apache_1.3.20/src \
DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 APACI_ARGS='--enable-module=so'

Gives the following errors:

----
Checking for LWP::UserAgent......failed
Can't locate LWP/UserAgent.pm in @INC (@INC contains: ./lib /usr/local/lib/perl.

The libwww-perl library is needed to run the test suite. Installation of this library is recommended, but not required.

Checking for HTML::HeadParser....failed Can't locate HTML/HeadParser.pm in @INC (@INC contains: ./lib /usr/local/lib/pe.

The HTML-Parser package is needed (by libwww-perl) to run the test suite. Checking if your kit is complete... ----

Continue

Shell> make Shell> make test

Gives the following errors:

---- Can't locate LWP/UserAgent.pm in @INC (@INC contains: ../blib/lib ../blib/arch .

I still can't find LWP::UserAgent, try: /usr/local/bin/perl -MCPAN -e install LWP ---

Continue

Shell> make install

Take backup of current apache (mevcut apache'nin yedeğinin alın). Then Entering directory ../apache_1.3.20

Shell> make install

Apache web server installed under /usr/local/apache Edit httpd.conf and start apache.

It seems working but http://localhost does not give any output

Mail to info@Demarc.org for problems. They say "mod_perl not necessary, and your CGI.pm seems old version. Install latest version"

I am using the latest CGI.pm (but it is still under development, so I decided to install stable version)

Delete apache and restore backed-up apache.

(info@demarc.org'dan gelen cevap:"mod_perl yöntemini kullanmaya gerek yok. CGI.pm versiyonu eski gibi gözüküyor. En son versiyonu install edin". Yukarda da bahsetmiştim 2.273 versiyonu install edilmeli. Aslında en son versiyonu install etmiştim ama paket hala development sürecinde yani stable değil. Bir sonraki adımda yeni paketi kuruyorum).

I found another CGI-module. Installing CGI-modules (I think that it is not necessary, skip this if you want) ------------------------------- Entering directory /CGI-modules-2.76

Shell> perl Makefile.PL Shell> make Shell> make test Shell> make install

Installing CGI.pm (This is the stable, latest CGI.pm) ------------------------------------ Entering directory /CGI.pm-2.273

Shell> perl Makefile.PL Shell> make Shell> make test Shell> make install

edit http.conf for regular perl and start apache (Demarc install dokümanında anlatılan regular perl yöntemini kullanıyorum)

connect http://localhost/dm/demarc okey, it is working.

I can log-in with anonymous. I cant log-in with default admin/password.

crypt() function does not work. disable crypt() funtion in demarc script.

-------------------------------

Installing Snort ------------------------- Entering directory /snort-1.8

Shell> ./configure --with-mysql=/usr/local/mysql Shell> make Shell> make install

Upgrade demarc version 1.05R2 ------------------------------ Fallow installation documents, but crypt() function still does not work. So disable crypt() functions in demarc script.

--------------------------------------- ---------------------------------------

SquirrelMail Installation

Install openLDAP ------------------ Entering directory /openldap-2.0.15

shell>./configure shell>make depend shell>make shell>make test Bu adım çok gerekli değil. Baya uzun süre bişeyler yapıyo. shell>make install

for more security compile ldap for ssl(openssl) suppor,kerberos support. But firtable install ssl or other required softwares. Read READ.ME for more information

=============================================

========================================================================

install IMAP ------------- slx:linux with shadow password support, no other library

shell> make slx shell> copy library files to nessery directories. Explained in Postaci WebMail document.

==========================================================================

PHP

shell>./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs --with-imap --enable-track-vars --enable-force-cgi-redirect --with-gettext

----------------------------------------------------------------------- Liste üyeliğiniz ile ilgili her türlü işlem için http://liste.linux.org.tr adresindeki web arayüzünü kullanabilirsiniz.

Listeden çıkmak için: 'linux-guvenlik-request@linux.org.tr' adresine, "Konu" kısmında "unsubscribe" yazan bir e-posta gönderiniz. -----------------------------------------------------------------------


New Message Reply About this list Date view Thread view Subject view Author view

---------

Bu arsiv hypermail 2b29 tarafindan uretilmistir.