Журнал лабораторных работ

Содержание

Журнал

Четверг (11/30/06)

/dev/ttyp9
22:10:18
$su -
Password:
l3-agent is already running: pid=24590; pidfile=/root/.lilalo/l3-agent.pid
22:10:24
#pkg_add -r mutt
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/Latest/mutt.tbz... Done.
pkg_add: package 'mutt-1.4.2.2' or its older version already installed
22:10:57
#vim /local/etc/clamd.conf
/dev/ttyp3
22:14:57
#clamscan -r -l testoutput.txt
/usr/ports/security/clamav/work/clamav-0.87/clamd/Makefile.in: OK
/usr/ports/security/clamav/work/clamav-0.87/clamd/options.c: OK
/usr/ports/security/clamav/work/clamav-0.87/clamd/options.h: OK
/usr/ports/security/clamav/work/clamav-0.87/clamd/clamd.c: OK
/usr/ports/security/clamav/work/clamav-0.87/clamd/defaults.h: OK
/usr/ports/security/clamav/work/clamav-0.87/clamd/tcpserver.c: OK
/usr/ports/security/clamav/work/clamav-0.87/clamd/tcpserver.h: OK
/usr/ports/security/clamav/work/clamav-0.87/clamd/localserver.c: OK
/usr/ports/security/clamav/work/clamav-0.87/clamd/localserver.h: OK
/usr/ports/security/clamav/work/clamav-0.87/clamd/session.c: OK
...
/usr/ports/security/clamav/work/clamav-0.87/libclamav.pc: OK
/usr/ports/security/clamav/work/clamav-0.87/clamav-config.h: OK
/usr/ports/security/clamav/work/clamav-0.87/stamp-h1: OK
/usr/ports/security/clamav/work/.extract_done.clamav-0.87._usr_local: Empty file
/usr/ports/security/clamav/work/.patch_done.clamav-0.87._usr_local: Empty file
/usr/ports/security/clamav/work/.configure_done.clamav-0.87._usr_local: Empty file
/usr/ports/security/clamav/work/.build_done.clamav-0.87._usr_local: Empty file
/usr/ports/security/clamav/work/pkg-install: OK
/usr/ports/security/clamav/work/pkg-deinstall: OK
/usr/ports/security/clamav/work/clamav-clamd.sh: OK
22:18:02
#vim /etc/rc.conf
/dev/ttyp9
22:19:13
#chown -R mailnull:mailnull /var/run/clamav/

22:19:27
#chown -R mailnull:mailnull /var/log/clamav/

22:19:36
#touch /var/log/clamav/freshclam.log

22:19:51
#chown clamav:clamav /var/log/clamav/freshclam.log

22:20:14
#freshclam
ClamAV update process started at Thu Nov 30 20:20:19 2006
/dev/ttyp3
22:20:47
#cd

22:20:49
#vim .vimrc
22:21:05
#vim /etc/rc.conf
22:21:18
#cd /usr/ports/mail/p5-Mail-SpamAssassin
ClamAV update process started at Thu Nov 30 20:20:19 2006
22:21:35
#makstall
=> Attempting to fetch from ftp://ftp.bora.net/pub/CPAN/modules/by-module/Mail/.
fetch: ftp://ftp.bora.net/pub/CPAN/modules/by-module/Mail/MailTools-1.67.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from ftp://ftp.mirrorservice.org/sites/ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module/Mail/.
fetch: ftp://ftp.mirrorservice.org/sites/ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module/Mail/MailTools-1.67.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from ftp://bioinfo.weizmann.ac.il/pub/software/perl/CPAN/modules/by-module/Mail/.
fetch: ftp://bioinfo.weizmann.ac.il/pub/software/perl/CPAN/modules/by-module/Mail/MailTools-1.67.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from ftp://csociety-ftp.ecn.purdue.edu/pub/CPAN/modules/by-module/Mail/.
fetch: ftp://csociety-ftp.ecn.purdue.edu/pub/CPAN/modules/by-module/Mail/MailTools-1.67.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from ftp://ftp.isu.net.sa/pub/CPAN/modules/by-module/Mail/.
^Cfetch: transfer interrupted
/dev/ttyp9
22:22:35
#cd /usr/ports/mail/mimedefang

22:23:31
#make install
===>  Vulnerability check disabled, database not found
=> mimedefang-2.52.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch from http://www.mimedefang.org/static/.
fetch: http://www.mimedefang.org/static/mimedefang-2.52.tar.gz: Forbidden
=> Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/.
mimedefang-2.52.tar.gz                        100% of  296 kB   70 kBps
===>  Extracting for mimedefang-2.52
=> Checksum OK for mimedefang-2.52.tar.gz.
===>   mimedefang-2.52 depends on file: /usr/local/bin/perl5.8.7 - found
===>  Patching for mimedefang-2.52
...
=> Attempting to fetch from ftp://ftp.mirrorservice.org/sites/ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module/Mail/.
fetch: ftp://ftp.mirrorservice.org/sites/ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module/Mail/MailTools-1.67.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from ftp://bioinfo.weizmann.ac.il/pub/software/perl/CPAN/modules/by-module/Mail/.
fetch: ftp://bioinfo.weizmann.ac.il/pub/software/perl/CPAN/modules/by-module/Mail/MailTools-1.67.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from ftp://csociety-ftp.ecn.purdue.edu/pub/CPAN/modules/by-module/Mail/.
fetch: ftp://csociety-ftp.ecn.purdue.edu/pub/CPAN/modules/by-module/Mail/MailTools-1.67.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from ftp://ftp.isu.net.sa/pub/CPAN/modules/by-module/Mail/.
fetch: ftp://ftp.isu.net.sa/pub/CPAN/modules/by-module/Mail/MailTools-1.67.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from ftp://ftp.ucr.ac.cr/pub/Unix/CPAN/modules/by-module/Mail/.
^Cfetch: transfer interrupted
/dev/ttyp3
22:24:16
#make install
===>  Cleaning for p5-Convert-BinHex-1.119
===>  Cleaning for p5-MIME-Base64-3.05
===>  Cleaning for p5-IO-stringy-2.110
===>   p5-Mail-SpamAssassin-3.0.4 depends on file: /usr/local/lib/perl5/site_perl/5.8.7/mach/Net/DNS.pm - found
===>   p5-Mail-SpamAssassin-3.0.4 depends on file: /usr/local/lib/perl5/site_perl/5.8.7/mach/HTML/Parser.pm - found
===>   p5-Mail-SpamAssassin-3.0.4 depends on file: /usr/local/lib/perl5/site_perl/5.8.7/Mail/Internet.pm - not found
===>    Verifying install for /usr/local/lib/perl5/site_perl/5.8.7/Mail/Internet.pm in /usr/ports/mail/p5-Mail-Tools
===>  Vulnerability check disabled, database not found
=> MailTools-1.67.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch from ftp://ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module/Mail/.
...
=> Attempting to fetch from ftp://ftp.mirrorservice.org/sites/ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module/Mail/.
fetch: ftp://ftp.mirrorservice.org/sites/ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module/Mail/MailTools-1.67.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from ftp://bioinfo.weizmann.ac.il/pub/software/perl/CPAN/modules/by-module/Mail/.
fetch: ftp://bioinfo.weizmann.ac.il/pub/software/perl/CPAN/modules/by-module/Mail/MailTools-1.67.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from ftp://csociety-ftp.ecn.purdue.edu/pub/CPAN/modules/by-module/Mail/.
fetch: ftp://csociety-ftp.ecn.purdue.edu/pub/CPAN/modules/by-module/Mail/MailTools-1.67.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from ftp://ftp.isu.net.sa/pub/CPAN/modules/by-module/Mail/.
fetch: ftp://ftp.isu.net.sa/pub/CPAN/modules/by-module/Mail/MailTools-1.67.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from ftp://ftp.ucr.ac.cr/pub/Unix/CPAN/modules/by-module/Mail/.
^Cfetch: transfer interrupted
/dev/ttypc
22:25:26
$su -
Password:
l3-agent is already running: pid=24590; pidfile=/root/.lilalo/l3-agent.pid
22:25:35
#ssh 192.168.15.25
===>  Vulnerability check disabled, database not found
===>  Extracting for mimedefang-2.52
=> Checksum OK for mimedefang-2.52.tar.gz.
===>   mimedefang-2.52 depends on file: /usr/local/bin/perl5.8.7 - found
===>  Patching for mimedefang-2.52
===>   mimedefang-2.52 depends on file: /usr/local/bin/perl5.8.7 - found
===>  Applying FreeBSD patches for mimedefang-2.52
===>   mimedefang-2.52 depends on file: /usr/local/lib/perl5/site_perl/5.8.7/IO/Stringy.pm - found
===>   mimedefang-2.52 depends on file: /usr/local/lib/perl5/site_perl/5.8.7/MIME/Tools.pm - not found
===>    Verifying install for /usr/local/lib/perl5/site_perl/5.8.7/MIME/Tools.pm in /usr/ports/mail/p5-MIME-Tools
...
=> Attempting to fetch from ftp://ftp.dti.ad.jp/pub/lang/CPAN/modules/by-module/Mail/.
fetch: ftp://ftp.dti.ad.jp/pub/lang/CPAN/modules/by-module/Mail/MailTools-1.67.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from ftp://ftp.sunet.se/pub/lang/perl/CPAN/modules/by-module/Mail/.
fetch: ftp://ftp.sunet.se/pub/lang/perl/CPAN/modules/by-module/Mail/MailTools-1.67.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from ftp://mirror.hiwaay.net/CPAN/modules/by-module/Mail/.
fetch: ftp://mirror.hiwaay.net/CPAN/modules/by-module/Mail/MailTools-1.67.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from ftp://ftp.bora.net/pub/CPAN/modules/by-module/Mail/.
fetch: ftp://ftp.bora.net/pub/CPAN/modules/by-module/Mail/MailTools-1.67.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from ftp://ftp.mirrorservice.org/sites/ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module/Mail/.
Password:
/dev/ttyp9
22:26:00
#make clean
===>  Cleaning for p5-Convert-BinHex-1.119
===>  Cleaning for p5-MIME-Base64-3.05
===>  Cleaning for p5-IO-stringy-2.110
===>  Cleaning for p5-Net-DNS-0.53
===>  Cleaning for perl-5.8.7
===>  Cleaning for p5-MIME-Tools-5.417,2
===>  Cleaning for p5-Mail-SpamAssassin-3.0.4
===>  Cleaning for p5-Mail-Tools-1.67
===>  Cleaning for razor-agents-2.72_1
===>  Cleaning for p5-Net-IP-1.23
===>  Cleaning for p5-URI-1.35
===>  Cleaning for p5-Digest-HMAC-1.01
===>  Cleaning for p5-Digest-SHA1-2.10
===>  Cleaning for p5-IO-Socket-SSL-0.97
===>  Cleaning for p5-Net-SSLeay-1.25
===>  Cleaning for p5-HTML-Parser-3.45
===>  Cleaning for p5-HTML-Tagset-3.04
===>  Cleaning for mimedefang-2.52
/dev/ttyp3
22:26:10
#make clean
===>  Cleaning for p5-Net-DNS-0.53
===>  Cleaning for perl-5.8.7
===>  Cleaning for p5-Mail-Tools-1.67
===>  Cleaning for razor-agents-2.72_1
===>  Cleaning for p5-Net-IP-1.23
===>  Cleaning for p5-URI-1.35
===>  Cleaning for p5-Digest-HMAC-1.01
===>  Cleaning for p5-Digest-SHA1-2.10
===>  Cleaning for p5-IO-Socket-SSL-0.97
===>  Cleaning for p5-Net-SSLeay-1.25
===>  Cleaning for p5-HTML-Parser-3.45
===>  Cleaning for p5-HTML-Tagset-3.04
===>  Cleaning for p5-Mail-SpamAssassin-3.0.4
/dev/ttyp9
22:26:12
#cd /usr/ports/distfiles/

/dev/ttyp3
22:26:16
#make install
=> Attempting to fetch from ftp://ftp.dti.ad.jp/pub/lang/CPAN/modules/by-module/Mail/.
fetch: ftp://ftp.dti.ad.jp/pub/lang/CPAN/modules/by-module/Mail/MailTools-1.67.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from ftp://ftp.sunet.se/pub/lang/perl/CPAN/modules/by-module/Mail/.
fetch: ftp://ftp.sunet.se/pub/lang/perl/CPAN/modules/by-module/Mail/MailTools-1.67.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from ftp://mirror.hiwaay.net/CPAN/modules/by-module/Mail/.
fetch: ftp://mirror.hiwaay.net/CPAN/modules/by-module/Mail/MailTools-1.67.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from ftp://ftp.bora.net/pub/CPAN/modules/by-module/Mail/.
fetch: ftp://ftp.bora.net/pub/CPAN/modules/by-module/Mail/MailTools-1.67.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch from ftp://ftp.mirrorservice.org/sites/ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module/Mail/.
fetch: ftp://ftp.mirrorservice.org/sites/ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module/Mail/MailTools-1.67.tar.gz: File unavailable (e.g., file not found, no access)
...
cp Mail/Address.pm blib/lib/Mail/Address.pm
cp Mail/Mailer/smtp.pm blib/lib/Mail/Mailer/smtp.pm
cp Mail/Mailer/testfile.pm blib/lib/Mail/Mailer/testfile.pm
mkdir blib: No such file or directory at /usr/local/lib/perl5/5.8.7/ExtUtils/Command.pm line 186
*** Error code 2
Stop in /usr/ports/mail/p5-Mail-Tools/work/MailTools-1.67.
*** Error code 1
Stop in /usr/ports/mail/p5-Mail-Tools.
*** Error code 1
Stop in /usr/ports/mail/p5-Mail-SpamAssassin.
/dev/ttyp9
22:26:23
#ls
Digest-HMAC-1.01.tar.gz                 gmp-4.1.4.tar.gz
Digest-SHA1-2.10.tar.gz                 gnome2
HTML-Parser-3.45.tar.gz                 help2man-1.35.1.tar.gz
HTML-Tagset-3.04.tar.gz                 lha-114i.tar.gz
IO-stringy-2.110.tar.gz                 libnet-1.1.2.1.tar.gz
MIME-tools-5.417.tar.gz                 libtool-1.5.18.tar.gz
Mail-SpamAssassin-3.0.4.tar.gz          mimedefang-2.52.tar.gz
Net-DNS-0.53.tar.gz                     nmap-3.81.tar.bz2
Net-IP-1.23.tar.gz                      qpopper4.0.8-ipv6-20050515.diff.gz
apache_1.3.33.tar.gz                    qpopper4.0.8.tar.gz
...
bash                                    unarj-2.65.tgz
bison-1.75.tar.bz2                      unrarsrc-3.4.3.tar.gz
blackbox-0.70.0.tar.gz                  wget-1.10.tar.gz
clamav-0.87.tar.gz                      wget4web-1.0.tar.gz
cvsup-snap-16.1h.tar.gz                 xinetd-2.3.13.tar.gz
ettercap-NG-0.7.3.tar.gz                xorg
ezm3                                    zcrypt29-exportable.zip
firefox-1.0.7-source.tar.bz2            zip23.tar.gz
fluxbox-0.1.14.tar.gz                   zoo-2.10pl1.tar.gz
gettext-1.03.tar.gz
22:26:24
#cd -
/usr/ports/mail/mimedefang
22:26:35
#make install
Manifying blib/man3/Mail::SpamAssassin::Conf::LDAP.3
Manifying blib/man3/Mail::SpamAssassin::PersistentAddrList.3
Manifying blib/man3/Mail::SpamAssassin::Bayes.3
Manifying blib/man3/Mail::SpamAssassin::Plugin::RelayCountry.3
===>  Installing for p5-Mail-SpamAssassin-3.0.4
===>   p5-Mail-SpamAssassin-3.0.4 depends on file: /usr/local/lib/perl5/site_perl/5.8.7/mach/Net/DNS.pm - found
===>   p5-Mail-SpamAssassin-3.0.4 depends on file: /usr/local/lib/perl5/site_perl/5.8.7/mach/HTML/Parser.pm - found
===>   p5-Mail-SpamAssassin-3.0.4 depends on file: /usr/local/lib/perl5/site_perl/5.8.7/Mail/Internet.pm - found
===>   p5-Mail-SpamAssassin-3.0.4 depends on file: /usr/local/bin/perl5.8.7 - found
===>   p5-Mail-SpamAssassin-3.0.4 depends on file: /usr/local/lib/perl5/site_perl/5.8.7/IO/Socket/SSL.pm - not found
...
SSLeay.c: In function `XS_Net__SSLeay_use_certificate_ASN1':
SSLeay.c:2533: warning: cast to pointer from integer of different size
SSLeay.c: In function `XS_Net__SSLeay_use_certificate_file':
SSLeay.c:2552: warning: cast to pointer from integer of different size
SSLeay.c: In function `XS_Net__SSLeay_CTX_use_certificate_file':
SSLeay.c:2571: warning: cast to pointer from integer of different size
SSLeay.c: In function `XS_Net__SSLeay_state_string':
SSLeay.c:2590: warning: cast to pointer from integer of different size
SSLeay.c: In function `XS_Net__SSLeay_rstate_string':
SSLeay.c:2607: warning: cast to pointer from integer of different size
/dev/ttyp3
22:29:22
#make install

/dev/ttyp9
22:35:28
#mimedefang.pl -features | egrep -i '(clam|spamass)'
SpamAssassin                  : yes
Virus:CLAMAV                  : yes (/usr/local/bin/clamscan)
Virus:CLAMD                   : yes (/usr/local/sbin/clamd)
Mail::SpamAssassin            : Version 3.000004
22:35:48
#vim /usr/local/bin/mimedefang.pl
/dev/ttypc
22:36:20
#ls -/ /usr/X11R6/lib/X11/fonts/TTF/
ls: illegal option -- /
usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwx1] [file ...]
22:36:34
#ls -l/usr/X11R6/lib/X11/fonts/TTF/
-rw-r--r--  1 root  wheel     70656 Nov 30 20:33 BERNHC.ttf
-rw-r--r--  1 root  wheel    155528 Nov 30 20:33 BKANT.ttf
-rw-r--r--  1 root  wheel     91592 Nov 30 20:33 BOD_PSTC.ttf
-rw-r--r--  1 root  wheel    160940 Nov 30 20:33 BOOKOS.ttf
-rw-r--r--  1 root  wheel    154576 Nov 30 20:33 BOOKOSB.ttf
-rw-r--r--  1 root  wheel    162460 Nov 30 20:33 BOOKOSBI.ttf
-rw-r--r--  1 root  wheel    161020 Nov 30 20:33 BOOKOSI.ttf
-rw-r--r--  1 root  wheel     40728 Nov 30 20:33 BRITANIC.ttf
-rw-r--r--  1 root  wheel     96880 Nov 30 20:33 BRLNSB.ttf
-rw-r--r--  1 root  wheel     96852 Nov 30 20:33 BRLNSDB.ttf
...
-rw-r--r--  1 root  wheel    123096 Nov 30 20:33 trebucbd.ttf
-rw-r--r--  1 root  wheel    131188 Nov 30 20:33 trebucbi.ttf
-rw-r--r--  1 root  wheel    139288 Nov 30 20:33 trebucit.ttf
-rw-r--r--  1 root  wheel    148624 Nov 30 20:33 tunga.ttf
-rw-r--r--  1 root  wheel    171792 Nov 30 20:33 verdana.ttf
-rw-r--r--  1 root  wheel    137616 Nov 30 20:33 verdanab.ttf
-rw-r--r--  1 root  wheel    155076 Nov 30 20:33 verdanai.ttf
-rw-r--r--  1 root  wheel    154800 Nov 30 20:33 verdanaz.ttf
-rw-r--r--  1 root  wheel    118752 Nov 30 20:33 webdings.ttf
-rw-r--r--  1 root  wheel     81000 Nov 30 20:33 wingding.ttf
22:36:39
#ls -l /usr/X11R6/lib/X11/fonts/TTF/ | less
22:36:49
#du -sh /usr/X11R6/lib/X11/fonts/TTF/
 43M    /usr/X11R6/lib/X11/fonts/TTF/
/dev/ttyp9
22:39:52
#pkg_info -Lx defang | grep / | while read file
> do
> grep /var/run/clamav/clamd $file /dev/null
> done
/usr/local/bin/mimedefang.pl:$ClamdSock  = "/var/run/clamav/clamd";
22:40:08
#vi /usr/local/etc/clamd.conf
22:40:31
#vim/usr/local/etc/clamd.conf
         we
     68 # recommend the local mode.
     69
     70 # Path to a local socket file the daemon will listen on.
     71 # Default: disabled
     72 LocalSocket /var/run/clamav/clamd
     73
     74 # Remove stale socket after unclean shutdown.
     75 # Default: disabled
     76 FixStaleSocket
     77
     59 # Optional path to the global temporary directory.
22:41:00
#cd

22:41:03
#vi /usr/local/etc/mail/spamassassin/
22:41:03
#vi /usr/local/etc/mail/spamassassin/
22:41:03
#vi /usr/local/
22:41:37
#vi /usr/local/etc/mimedefang/mimedefang-filter
22:41:44
#vim/usr/local/etc/mimedefang/mimedefang-filter
        ng. # by mail clients.  They also might slip under the radar of MIMEDefaa
    340     # Deal with malformed MIME.
    343     # If you are worried about this, you should canonicalize all
    341     # Some viruses produce malformed MIME messages that are misinterprett
    344     # e-mail by uncommenting the action_rebuild() line.  This will
        d
    345     # force _all_ messages to be reconstructed as valid MIME.  It will
    347     # by marginal software.  Your call.
    346     # increase the load on your server, and might break messages producee
    348
    349     # action_rebuild();
    350 }
    351
    352 # DO NOT delete the next line, or Perl will complain.
    353 1;
    354
22:43:29
#vim /etc/rc.conf
22:43:54
#/etc/rc.d/clea
cleanvar  cleartmp
22:43:54
#/usr/local/etc/rc.d/clamav-
clamav-clamd.sh      clamav-freshclam.sh
22:43:54
#sh r/local/etc/rc.d/clamav-clamd.sh start
Starting clamav_clamd.
LibClamAV Warning: ********************************************************
LibClamAV Warning: ***  This version of the ClamAV engine is outdated.  ***
LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/faq.html ***
LibClamAV Warning: ********************************************************
LibClamAV Warning: ********************************************************
LibClamAV Warning: ***  This version of the ClamAV engine is outdated.  ***
LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/faq.html ***
LibClamAV Warning: ********************************************************
/dev/ttyp3
22:44:29
#make install

22:44:31
#make clean
===>  Cleaning for p5-Net-DNS-0.53
===>  Cleaning for perl-5.8.7
===>  Cleaning for p5-Mail-Tools-1.67
===>  Cleaning for razor-agents-2.72_1
===>  Cleaning for p5-Net-IP-1.23
===>  Cleaning for p5-URI-1.35
===>  Cleaning for p5-Digest-HMAC-1.01
===>  Cleaning for p5-Digest-SHA1-2.10
===>  Cleaning for p5-IO-Socket-SSL-0.97
===>  Cleaning for p5-Net-SSLeay-1.25
===>  Cleaning for p5-HTML-Parser-3.45
===>  Cleaning for p5-HTML-Tagset-3.04
===>  Cleaning for p5-Mail-SpamAssassin-3.0.4
22:44:38
#make uninstall
make: don't know how to make uninstall. Stop
22:44:44
#make deinstall
===>  Deinstalling for mail/p5-Mail-SpamAssassin
===>   Deinstalling p5-Mail-SpamAssassin-3.0.4
pkg_delete: package 'p5-Mail-SpamAssassin-3.0.4' is required by these other packages
and may not be deinstalled (but I'll delete it anyway):
mimedefang-2.52
To delete spamd user permanently, use 'rmuser spamd'
22:44:51
#make clean
===>  Cleaning for p5-Net-DNS-0.53
===>  Cleaning for perl-5.8.7
===>  Cleaning for p5-Mail-Tools-1.67
===>  Cleaning for razor-agents-2.72_1
===>  Cleaning for p5-Net-IP-1.23
===>  Cleaning for p5-URI-1.35
===>  Cleaning for p5-Digest-HMAC-1.01
===>  Cleaning for p5-Digest-SHA1-2.10
===>  Cleaning for p5-IO-Socket-SSL-0.97
===>  Cleaning for p5-Net-SSLeay-1.25
===>  Cleaning for p5-HTML-Parser-3.45
===>  Cleaning for p5-HTML-Tagset-3.04
===>  Cleaning for p5-Mail-SpamAssassin-3.0.4
22:44:56
#make install
checking for EX__MAX... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
make -f spamc/Makefile spamc/spamc
gcc -DSPAMC_SSL -O2 -fno-strict-aliasing -pipe  -I/usr/include spamc/spamc.c spamc/libspamc.c spamc/utils.c  -o spamc/spamc -rpath=/usr/lib:/usr/local/lib -L/usr/lib -lssl -lcrypto
cp spamc/spamc blib/script/spamc
/usr/local/bin/perl5.8.7 "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/spamc
cp sa-learn blib/script/sa-learn
/usr/local/bin/perl5.8.7 "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/sa-learn
...
*       See /usr/local/share/doc/p5-Mail-SpamAssassin/INSTALL,          *
*       and /usr/local/share/doc/p5-Mail-SpamAssassin/UPGRADE,          *
*       or http://spamassassin.org/dist/INSTALL and                     *
*       http://spamassassin.org/dist/UPGRADE BEFORE enabling            *
*       this version of SpamAssassin for important information          *
*       regarding changes in this version.                              *
*                                                                       *
*************************************************************************
===>   Compressing manual pages for p5-Mail-SpamAssassin-3.0.4
===>   Registering installation for p5-Mail-SpamAssassin-3.0.4
22:45:19
#less /var/log/clamav/clamd.log
/dev/ttyp9
22:46:15
#ls -l /var/run/clamav/
total 2
srwxrwxrwx  1 mailnull  mailnull  0 Nov 30 20:46 clamd
-rw-rw----  1 mailnull  mailnull  5 Nov 30 20:46 clamd.pid
22:46:32
#vi /etc/mail/ns.sergey.unix.nt.mc
22:48:59
#vim/etc/mail/ns.sergey.unix.nt.mc
     76 dnl Dialup users should uncomment and define this appropriately
     77 dnl define(`SMART_HOST', `your.isp.mail.server')
     78
     79 dnl Uncomment the first line to change the location of the default
     80 dnl /etc/mail/local-host-names and comment out the second line.
     81 dnl define(`confCW_FILE', `-o /etc/mail/sendmail.cw')
     82 define(`confCW_FILE', `-o /etc/mail/local-host-names')
     83
     84 MAIL_FILTER(`mimedefang', `S=local:/var/spool/MIMEDefang/mimedefang.sockk
        , [ ]
     84         F=T, T=C:15m;S:4m;R:4m;E:10m')dnl
     85 define(`confINPUT_MAIL_FILTERS', `mimedefang')dnl
      6 dnl Enable for both IPv4 and IPv6 (optional)
"/etc/mail/ns.sergey.unix.nt.mc" 94L, 4286C written
22:49:21
#vim /etc/mail/ns.sergey.unix.nt.mc
22:50:14
#vim /etc/mail/ns.sergey.unix.nt.mc
22:50:42
#make
make: no target to make.
22:50:59
#cd /etc/mail

22:51:03
#make
/usr/bin/m4 -D_CF_DIR_=/usr/share/sendmail/cf/   /usr/share/sendmail/cf/m4/cf.m4 ns.sergey.unix.nt.mc > ns.sergey.unix.nt.cf
/usr/bin/m4 -D_CF_DIR_=/usr/share/sendmail/cf/   /usr/share/sendmail/cf/m4/cf.m4 ns.sergey.unix.nt.submit.mc > ns.sergey.unix.nt.submit.cf
22:51:08
#cp ns.sergey.unix.nt.cf sendmail.cf

22:51:17
#/etc/rc.d/sendmail restart
Stopping sendmail.
Starting sendmail.
WARNING: Xmimedefang: local socket name /var/spool/MIMEDefang/mimedefang.sock missing
22:51:26
#sh r/local/etc/rc.d/mimedefang.sh start
Starting mimedefang-multiplexor:                            [  OK  ]
Starting mimedefang:                                        [  OK  ]
22:51:55
#/etc/rc.d/sendmail restart
Stopping sendmail.
Starting sendmail.
/dev/ttyp3
22:53:16
#less /var/log/clamav/clamd.log
22:56:45
#less /var/log/clamav/clamd.log

Пятница (12/01/06)

/dev/ttyp6
01:16:38
$touch .hushlogin

01:16:49
$evolution
(evolution:3177): Gtk-WARNING **: cannot open display:
/dev/ttyp6
01:17:13
$evolution
runtime error: file /usr/X11R6/share/xml/gnome/xslt/docbook/common/db-label.xsl line 147 element call-template
xsl:call-template : template format.section.label not found
runtime error: file /usr/X11R6/share/xml/gnome/xslt/docbook/common/db-label.xsl line 147 element call-template
xsl:call-template : template format.section.label not found
runtime error: file /usr/X11R6/share/xml/gnome/xslt/docbook/common/db-label.xsl line 147 element call-template
xsl:call-template : template format.section.label not found
runtime error: file /usr/X11R6/share/xml/gnome/xslt/docbook/common/db-label.xsl line 147 element call-template
xsl:call-template : template format.section.label not found
runtime error: file /usr/X11R6/share/xml/gnome/xslt/docbook/common/db-label.xsl line 147 element call-template
xsl:call-template : template format.section.label not found
...
xsl:call-template : template format.section.label not found
runtime error: file /usr/X11R6/share/xml/gnome/xslt/docbook/common/db-label.xsl line 147 element call-template
xsl:call-template : template format.section.label not found
runtime error: file /usr/X11R6/share/xml/gnome/xslt/docbook/common/db-label.xsl line 147 element call-template
xsl:call-template : template format.section.label not found
runtime error: file /usr/X11R6/share/xml/gnome/xslt/docbook/common/db-label.xsl line 147 element call-template
xsl:call-template : template format.section.label not found
runtime error: file /usr/X11R6/share/xml/gnome/xslt/docbook/common/db-label.xsl line 147 element call-template
xsl:call-template : template format.section.label not found
runtime error: file /usr/X11R6/share/xml/gnome/xslt/docbook/common/db-label.xsl line 147 element call-template
01:17:13
$evolution
runtime error: file /usr/X11R6/share/xml/gnome/xslt/docbook/common/db-label.xsl line 147 element call-template
xsl:call-template : template format.section.label not found
runtime error: file /usr/X11R6/share/xml/gnome/xslt/docbook/common/db-label.xsl line 147 element call-template
xsl:call-template : template format.section.label not found
runtime error: file /usr/X11R6/share/xml/gnome/xslt/docbook/common/db-label.xsl line 147 element call-template
xsl:call-template : template format.section.label not found
runtime error: file /usr/X11R6/share/xml/gnome/xslt/docbook/common/db-label.xsl line 147 element call-template
xsl:call-template : template format.section.label not found
runtime error: file /usr/X11R6/share/xml/gnome/xslt/docbook/common/db-label.xsl line 147 element call-template
xsl:call-template : template format.section.label not found
...
xsl:call-template : template format.section.label not found
runtime error: file /usr/X11R6/share/xml/gnome/xslt/docbook/common/db-label.xsl line 147 element call-template
xsl:call-template : template format.section.label not found
runtime error: file /usr/X11R6/share/xml/gnome/xslt/docbook/common/db-label.xsl line 147 element call-template
xsl:call-template : template format.section.label not found
runtime error: file /usr/X11R6/share/xml/gnome/xslt/docbook/common/db-label.xsl line 147 element call-template
xsl:call-template : template format.section.label not found
runtime error: file /usr/X11R6/share/xml/gnome/xslt/docbook/common/db-label.xsl line 147 element call-template
xsl:call-template : template format.section.label not found
runtime error: file /usr/X11R6/share/xml/gnome/xslt/docbook/common/db-label.xsl line 147 element call-template
прошло >10 часов
/dev/ttyv0
11:18:11
$xinit
X Window System Version 6.8.2
Release Date: 9 February 2005
X Protocol Version 11, Revision 0, Release 6.8.2
Build Operating System: FreeBSD 6.0 i386 [ELF]
Current Operating System: FreeBSD ns.sergey.unix.nt 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Wed Nov 29 18:04:05 UTC 2006     root@fbsd1.unix.nt:/usr/obj/usr/src/sys/GENERIC i386
Build Date: 12 October 2005
        Before reporting problems, check http://wiki.X.Org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
...
update flow align
update flow align
update flow align
update flow align
update flow align
update flow align
update flow align
X connection to :0.0 broken (explicit kill or server shutdown).
xinit:  connection to X server lost.
waiting for X server to shut down FreeFontPath: FPE "/usr/X11R6/lib/X11/fonts/misc/" refcount is 2, should be 1; fixing.
прошло 32 минуты
/dev/ttyp1
11:50:49
$su -
Password:
Removing stale pidfile
/dev/ttyp3
11:50:51
$ssh root@m03
The authenticity of host 'fbsd3.unix.nt (192.168.15.23)' can't be established.
DSA key fingerprint is e7:b6:4b:86:94:c2:5d:2a:2a:68:cd:82:ee:38:3c:9f.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'fbsd3.unix.nt' (DSA) to the list of known hosts.
Password:
Last login: Fri Dec  1 07:53:00 2006 from ns.megazone.uni
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.
FreeBSD 6.0-RELEASE (GENERIC) #0: Thu Nov  3 09:36:13 UTC 2005
Welcome to FreeBSD!
...
   along with the mailing lists, can be searched by going to
   http://www.FreeBSD.org/search/.  If the doc distribution has
   been installed, they're also available formatted in /usr/share/doc.
If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questions@FreeBSD.org mailing list.  If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page.  If you are not familiar with manual pages, type `man man'.
You may also use sysinstall(8) to re-enter the installation and
configuration utility.  Edit /etc/motd to change this login announcement.
/dev/ttyp1
11:56:02
#vim /usr/local/etc/mime
11:56:02
#vim /usr/local/etc/mimedefang/sa-mimedefang.cf
11:58:01
#vim /local/etc/mimedefang/mimedefang-filter
11:58:01
#vim /local/etc/mimedefang/mimedefang-filter
12:01:09
#sh /usr/local/etc/rc.d/mimedefang.sh restart
Shutting down mimedefang:                                   [  OK  ]
Shutting down mimedefang-multiplexor:                       [  OK  ]
Waiting for daemons to exit......
Starting mimedefang-multiplexor:                            [  OK  ]
Starting mimedefang:                                        [  OK  ]
12:03:48
#vim /usr/local/etc/mimedefang/sa-mimedefang.cf
12:03:48
#vim /usr/local/etc/mimedefang/sa-mimedefang.cf
12:03:48
#vim /usr/local/etc/mimedefang/sa-mimedefang.cf
12:05:27
#less /var/log/maillog
12:08:24
#less /var/log/maillog
12:08:24
#less /var/log/maillog
12:08:24
#less /var/log/maillog
12:08:37
#cd /usr/ports/mail/mailgraph

12:12:30
#make install
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... -D_THREAD_SAFE
checking for cc_r... cc
checking for perl... /usr/bin/perl
checking for the perl version you are running... 5.8.7
checking for the C compiler perl wants to use to build its modules... cc
checking for cc... /usr/bin/cc
checking Perl Modules to build... perl_piped perl_shared
checking for tclConfig.sh in /usr/lib... no
checking for tclConfig.sh in /usr/local/lib... no
...
rrd_graph_helper.c: In function `rrd_parse_def':
rrd_graph_helper.c:621: warning: long unsigned int format, time_t arg (arg 2)
rrd_graph_helper.c:622: warning: long unsigned int format, time_t arg (arg 2)
 cc -DHAVE_CONFIG_H "-DMAKE_TIMESTAMP=\"Fri Dec  1 10:13:57 UTC 2006\"" -I. -I. -I.. -DRRD_DEFAULT_FONT=\"/usr/local/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf\" -DNUMVERS=1.2011 -I/usr/local/include -I/usr/local/include/libart-2.0 -I/usr/local/include/freetype2 -I/usr/include/libart-2.0 -I/usr/include/freetype2 -D_THREAD_SAFE -O2 -fno-strict-aliasing -pipe -fPIC -DPIC -Wall -pedantic -Wshadow -
if /bin/sh /usr/local/bin/libtool15 --tag=CC --mode=compile cc -DHAVE_CONFIG_H -DMAKE_TIMESTAMP=\""Fri Dec  1 10:14:00 UTC 2006"\" -I. -I. -I..  -DRRD_DEFAULT_FONT=\"/usr/local/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf\" -DNUMVERS=1.2011 -I/usr/local/include -I/usr/local/include/libart-2.0 -I/usr/local/include/freetype2 -I/usr/include/libart-2.0 -I/usr/include/freetype2 -D_THREAD_SAFE  -O2 -fno
then mv -f ".deps/rrd_last.Tpo" ".deps/rrd_last.Plo"; else rm -f ".deps/rrd_last.Tpo"; exit 1; fi
 cc -DHAVE_CONFIG_H "-DMAKE_TIMESTAMP=\"Fri Dec  1 10:14:00 UTC 2006\"" -I. -I. -I.. -DRRD_DEFAULT_FONT=\"/usr/local/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf\" -DNUMVERS=1.2011 -I/usr/local/include -I/usr/local/include/libart-2.0 -I/usr/local/include/freetype2 -I/usr/include/libart-2.0 -I/usr/include/freetype2 -D_THREAD_SAFE -O2 -fno-strict-aliasing -pipe -fPIC -DPIC -Wall -pedantic -Wshadow -
 cc -DHAVE_CONFIG_H "-DMAKE_TIMESTAMP=\"Fri Dec  1 10:14:00 UTC 2006\"" -I. -I. -I.. -DRRD_DEFAULT_FONT=\"/usr/local/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf\" -DNUMVERS=1.2011 -I/usr/local/include -I/usr/local/include/libart-2.0 -I/usr/local/include/freetype2 -I/usr/include/libart-2.0 -I/usr/include/freetype2 -D_THREAD_SAFE -O2 -fno-strict-aliasing -pipe -fPIC -DPIC -Wall -pedantic -Wshadow -
if /bin/sh /usr/local/bin/libtool15 --tag=CC --mode=compile cc -DHAVE_CONFIG_H -DMAKE_TIMESTAMP=\""Fri Dec  1 10:14:01 UTC 2006"\" -I. -I. -I..  -DRRD_DEFAULT_FONT=\"/usr/local/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf\" -DNUMVERS=1.2011 -I/usr/local/include -I/usr/local/include/libart-2.0 -I/usr/local/include/freetype2 -I/usr/include/libart-2.0 -I/usr/include/freetype2 -D_THREAD_SAFE  -O2 -fno
then mv -f ".deps/rrd_first.Tpo" ".deps/rrd_first.Plo"; else rm -f ".deps/rrd_first.Tpo"; exit 1; fi
12:12:30
#make install
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... -D_THREAD_SAFE
checking for cc_r... cc
checking for perl... /usr/bin/perl
checking for the perl version you are running... 5.8.7
checking for the C compiler perl wants to use to build its modules... cc
checking for cc... /usr/bin/cc
checking Perl Modules to build... perl_piped perl_shared
checking for tclConfig.sh in /usr/lib... no
checking for tclConfig.sh in /usr/local/lib... no
...
rrd_graph_helper.c: In function `rrd_parse_def':
rrd_graph_helper.c:621: warning: long unsigned int format, time_t arg (arg 2)
rrd_graph_helper.c:622: warning: long unsigned int format, time_t arg (arg 2)
 cc -DHAVE_CONFIG_H "-DMAKE_TIMESTAMP=\"Fri Dec  1 10:13:57 UTC 2006\"" -I. -I. -I.. -DRRD_DEFAULT_FONT=\"/usr/local/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf\" -DNUMVERS=1.2011 -I/usr/local/include -I/usr/local/include/libart-2.0 -I/usr/local/include/freetype2 -I/usr/include/libart-2.0 -I/usr/include/freetype2 -D_THREAD_SAFE -O2 -fno-strict-aliasing -pipe -fPIC -DPIC -Wall -pedantic -Wshadow -
if /bin/sh /usr/local/bin/libtool15 --tag=CC --mode=compile cc -DHAVE_CONFIG_H -DMAKE_TIMESTAMP=\""Fri Dec  1 10:14:00 UTC 2006"\" -I. -I. -I..  -DRRD_DEFAULT_FONT=\"/usr/local/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf\" -DNUMVERS=1.2011 -I/usr/local/include -I/usr/local/include/libart-2.0 -I/usr/local/include/freetype2 -I/usr/include/libart-2.0 -I/usr/include/freetype2 -D_THREAD_SAFE  -O2 -fno
then mv -f ".deps/rrd_last.Tpo" ".deps/rrd_last.Plo"; else rm -f ".deps/rrd_last.Tpo"; exit 1; fi
 cc -DHAVE_CONFIG_H "-DMAKE_TIMESTAMP=\"Fri Dec  1 10:14:00 UTC 2006\"" -I. -I. -I.. -DRRD_DEFAULT_FONT=\"/usr/local/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf\" -DNUMVERS=1.2011 -I/usr/local/include -I/usr/local/include/libart-2.0 -I/usr/local/include/freetype2 -I/usr/include/libart-2.0 -I/usr/include/freetype2 -D_THREAD_SAFE -O2 -fno-strict-aliasing -pipe -fPIC -DPIC -Wall -pedantic -Wshadow -
 cc -DHAVE_CONFIG_H "-DMAKE_TIMESTAMP=\"Fri Dec  1 10:14:00 UTC 2006\"" -I. -I. -I.. -DRRD_DEFAULT_FONT=\"/usr/local/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf\" -DNUMVERS=1.2011 -I/usr/local/include -I/usr/local/include/libart-2.0 -I/usr/local/include/freetype2 -I/usr/include/libart-2.0 -I/usr/include/freetype2 -D_THREAD_SAFE -O2 -fno-strict-aliasing -pipe -fPIC -DPIC -Wall -pedantic -Wshadow -
if /bin/sh /usr/local/bin/libtool15 --tag=CC --mode=compile cc -DHAVE_CONFIG_H -DMAKE_TIMESTAMP=\""Fri Dec  1 10:14:01 UTC 2006"\" -I. -I. -I..  -DRRD_DEFAULT_FONT=\"/usr/local/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf\" -DNUMVERS=1.2011 -I/usr/local/include -I/usr/local/include/libart-2.0 -I/usr/local/include/freetype2 -I/usr/include/libart-2.0 -I/usr/include/freetype2 -D_THREAD_SAFE  -O2 -fno
then mv -f ".deps/rrd_first.Tpo" ".deps/rrd_first.Plo"; else rm -f ".deps/rrd_first.Tpo"; exit 1; fi
12:12:30
#make install
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... -D_THREAD_SAFE
checking for cc_r... cc
checking for perl... /usr/bin/perl
checking for the perl version you are running... 5.8.7
checking for the C compiler perl wants to use to build its modules... cc
checking for cc... /usr/bin/cc
checking Perl Modules to build... perl_piped perl_shared
checking for tclConfig.sh in /usr/lib... no
checking for tclConfig.sh in /usr/local/lib... no
...
rrd_graph_helper.c: In function `rrd_parse_def':
rrd_graph_helper.c:621: warning: long unsigned int format, time_t arg (arg 2)
rrd_graph_helper.c:622: warning: long unsigned int format, time_t arg (arg 2)
 cc -DHAVE_CONFIG_H "-DMAKE_TIMESTAMP=\"Fri Dec  1 10:13:57 UTC 2006\"" -I. -I. -I.. -DRRD_DEFAULT_FONT=\"/usr/local/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf\" -DNUMVERS=1.2011 -I/usr/local/include -I/usr/local/include/libart-2.0 -I/usr/local/include/freetype2 -I/usr/include/libart-2.0 -I/usr/include/freetype2 -D_THREAD_SAFE -O2 -fno-strict-aliasing -pipe -fPIC -DPIC -Wall -pedantic -Wshadow -
if /bin/sh /usr/local/bin/libtool15 --tag=CC --mode=compile cc -DHAVE_CONFIG_H -DMAKE_TIMESTAMP=\""Fri Dec  1 10:14:00 UTC 2006"\" -I. -I. -I..  -DRRD_DEFAULT_FONT=\"/usr/local/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf\" -DNUMVERS=1.2011 -I/usr/local/include -I/usr/local/include/libart-2.0 -I/usr/local/include/freetype2 -I/usr/include/libart-2.0 -I/usr/include/freetype2 -D_THREAD_SAFE  -O2 -fno
then mv -f ".deps/rrd_last.Tpo" ".deps/rrd_last.Plo"; else rm -f ".deps/rrd_last.Tpo"; exit 1; fi
 cc -DHAVE_CONFIG_H "-DMAKE_TIMESTAMP=\"Fri Dec  1 10:14:00 UTC 2006\"" -I. -I. -I.. -DRRD_DEFAULT_FONT=\"/usr/local/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf\" -DNUMVERS=1.2011 -I/usr/local/include -I/usr/local/include/libart-2.0 -I/usr/local/include/freetype2 -I/usr/include/libart-2.0 -I/usr/include/freetype2 -D_THREAD_SAFE -O2 -fno-strict-aliasing -pipe -fPIC -DPIC -Wall -pedantic -Wshadow -
 cc -DHAVE_CONFIG_H "-DMAKE_TIMESTAMP=\"Fri Dec  1 10:14:00 UTC 2006\"" -I. -I. -I.. -DRRD_DEFAULT_FONT=\"/usr/local/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf\" -DNUMVERS=1.2011 -I/usr/local/include -I/usr/local/include/libart-2.0 -I/usr/local/include/freetype2 -I/usr/include/libart-2.0 -I/usr/include/freetype2 -D_THREAD_SAFE -O2 -fno-strict-aliasing -pipe -fPIC -DPIC -Wall -pedantic -Wshadow -
if /bin/sh /usr/local/bin/libtool15 --tag=CC --mode=compile cc -DHAVE_CONFIG_H -DMAKE_TIMESTAMP=\""Fri Dec  1 10:14:01 UTC 2006"\" -I. -I. -I..  -DRRD_DEFAULT_FONT=\"/usr/local/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf\" -DNUMVERS=1.2011 -I/usr/local/include -I/usr/local/include/libart-2.0 -I/usr/local/include/freetype2 -I/usr/include/libart-2.0 -I/usr/include/freetype2 -D_THREAD_SAFE  -O2 -fno
then mv -f ".deps/rrd_first.Tpo" ".deps/rrd_first.Plo"; else rm -f ".deps/rrd_first.Tpo"; exit 1; fi
12:12:30
#make install
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... -D_THREAD_SAFE
checking for cc_r... cc
checking for perl... /usr/bin/perl
checking for the perl version you are running... 5.8.7
checking for the C compiler perl wants to use to build its modules... cc
checking for cc... /usr/bin/cc
checking Perl Modules to build... perl_piped perl_shared
checking for tclConfig.sh in /usr/lib... no
checking for tclConfig.sh in /usr/local/lib... no
...
rrd_graph_helper.c: In function `rrd_parse_def':
rrd_graph_helper.c:621: warning: long unsigned int format, time_t arg (arg 2)
rrd_graph_helper.c:622: warning: long unsigned int format, time_t arg (arg 2)
 cc -DHAVE_CONFIG_H "-DMAKE_TIMESTAMP=\"Fri Dec  1 10:13:57 UTC 2006\"" -I. -I. -I.. -DRRD_DEFAULT_FONT=\"/usr/local/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf\" -DNUMVERS=1.2011 -I/usr/local/include -I/usr/local/include/libart-2.0 -I/usr/local/include/freetype2 -I/usr/include/libart-2.0 -I/usr/include/freetype2 -D_THREAD_SAFE -O2 -fno-strict-aliasing -pipe -fPIC -DPIC -Wall -pedantic -Wshadow -
if /bin/sh /usr/local/bin/libtool15 --tag=CC --mode=compile cc -DHAVE_CONFIG_H -DMAKE_TIMESTAMP=\""Fri Dec  1 10:14:00 UTC 2006"\" -I. -I. -I..  -DRRD_DEFAULT_FONT=\"/usr/local/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf\" -DNUMVERS=1.2011 -I/usr/local/include -I/usr/local/include/libart-2.0 -I/usr/local/include/freetype2 -I/usr/include/libart-2.0 -I/usr/include/freetype2 -D_THREAD_SAFE  -O2 -fno
then mv -f ".deps/rrd_last.Tpo" ".deps/rrd_last.Plo"; else rm -f ".deps/rrd_last.Tpo"; exit 1; fi
 cc -DHAVE_CONFIG_H "-DMAKE_TIMESTAMP=\"Fri Dec  1 10:14:00 UTC 2006\"" -I. -I. -I.. -DRRD_DEFAULT_FONT=\"/usr/local/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf\" -DNUMVERS=1.2011 -I/usr/local/include -I/usr/local/include/libart-2.0 -I/usr/local/include/freetype2 -I/usr/include/libart-2.0 -I/usr/include/freetype2 -D_THREAD_SAFE -O2 -fno-strict-aliasing -pipe -fPIC -DPIC -Wall -pedantic -Wshadow -
 cc -DHAVE_CONFIG_H "-DMAKE_TIMESTAMP=\"Fri Dec  1 10:14:00 UTC 2006\"" -I. -I. -I.. -DRRD_DEFAULT_FONT=\"/usr/local/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf\" -DNUMVERS=1.2011 -I/usr/local/include -I/usr/local/include/libart-2.0 -I/usr/local/include/freetype2 -I/usr/include/libart-2.0 -I/usr/include/freetype2 -D_THREAD_SAFE -O2 -fno-strict-aliasing -pipe -fPIC -DPIC -Wall -pedantic -Wshadow -
if /bin/sh /usr/local/bin/libtool15 --tag=CC --mode=compile cc -DHAVE_CONFIG_H -DMAKE_TIMESTAMP=\""Fri Dec  1 10:14:01 UTC 2006"\" -I. -I. -I..  -DRRD_DEFAULT_FONT=\"/usr/local/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf\" -DNUMVERS=1.2011 -I/usr/local/include -I/usr/local/include/libart-2.0 -I/usr/local/include/freetype2 -I/usr/include/libart-2.0 -I/usr/include/freetype2 -D_THREAD_SAFE  -O2 -fno
then mv -f ".deps/rrd_first.Tpo" ".deps/rrd_first.Plo"; else rm -f ".deps/rrd_first.Tpo"; exit 1; fi
/dev/ttyp8
12:12:59
$su -
Password:
Removing stale pidfile
12:12:59
$su -
Password:
Removing stale pidfile
12:13:07
#vim /etc/rc.conf
12:13:07
#vim /etc/rc.conf
12:13:07
#vim /etc/rc.conf
12:13:40
#chgrp www /var/log/maillog

12:13:40
#chgrp www /var/log/maillog

12:13:40
#chgrp www /var/log/maillog

12:13:40
#chgrp www /var/log/maillog

Статистика

Время первой команды журнала22:10:18 2006-11-30
Время последней команды журнала12:13:40 2006-12- 1
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, % 8.91
Процент синтаксически неверно набранных команд, % 0.00
Суммарное время работы с терминалом *, час 1.16
Количество командных строк в единицу времени, команда/мин 1.45
Частота использования команд
make19|=================| 17.92%
vim18|================| 16.98%
cd8|=======| 7.55%
less8|=======| 7.55%
vi6|=====| 5.66%
ls5|====| 4.72%
su5|====| 4.72%
chgrp4|===| 3.77%
evolution3|==| 2.83%
chown3|==| 2.83%
sh3|==| 2.83%
touch2|=| 1.89%
/etc/rc.d/sendmail2|=| 1.89%
ssh2|=| 1.89%
/etc/rc.d/clea1|| 0.94%
egrep1|| 0.94%
makstall1|| 0.94%
while1|| 0.94%
cp1|| 0.94%
/usr/local/etc/rc.d/clamav-1|| 0.94%
freshclam1|| 0.94%
xinit1|| 0.94%
pkg_info1|| 0.94%
mimedefang.pl1|| 0.94%
vim/etc/mail/ns.sergey.unix.nt.mc1|| 0.94%
vim/usr/local/etc/clamd.conf1|| 0.94%
grep1|| 0.94%
pkg_add1|| 0.94%
vim/usr/local/etc/mimedefang/mimedefang-filter1|| 0.94%
spamass)'1|| 0.94%
du1|| 0.94%
clamscan1|| 0.94%
____
*) Интервалы неактивности длительностью 30 минут и более не учитываются

Справка

Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
  1. В журнал автоматически попадают все команды, данные в любом терминале системы.

  2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

  3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
    $ l s-l
    bash: l: command not found
    

  4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
    $ test 5 -lt 4
    Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

  5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
    $ find / -name abc
    find: /home/devi-orig/.gnome2: Keine Berechtigung
    find: /home/devi-orig/.gnome2_private: Keine Berechtigung
    find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung
    find: /home/devi-orig/.metacity: Keine Berechtigung
    find: /home/devi-orig/.inkscape: Keine Berechtigung
    ^C
    

  6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
    # id
    uid=0(root) gid=0(root) Gruppen=0(root)
    

  7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
    $ vi ~/.bashrc
    2a3,5
    >    if [ -f /usr/local/etc/bash_completion ]; then
    >         . /usr/local/etc/bash_completion
    >        fi
    

  8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
    $ patch ~/.bashrc
    В данном случае изменения применяются к файлу ~/.bashrc

  9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

    Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

  10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

  11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

  12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

  13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

  14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

    $ whoami
    
    user
    
    $ #^ Интересно, кто я?
    
    в журнале это будет выглядеть так:
    $ whoami
    
    user
    
    Интересно, кто я?

  15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

    $ whoami
    
    user
    
    $ cat > /dev/null #^ Интересно, кто я?
    
    Программа whoami выводит имя пользователя, под которым 
    мы зарегистрировались в системе.
    -
    Она не может ответить на вопрос о нашем назначении 
    в этом мире.
    
    В журнале это будет выглядеть так:
    $ whoami
    user
    
    Интересно, кто я?
    Программа whoami выводит имя пользователя, под которым
    мы зарегистрировались в системе.

    Она не может ответить на вопрос о нашем назначении
    в этом мире.
    Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

  16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

  17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
  18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
  19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
    1
        2
    3   
        4
    
    Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

О программе

LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008

$Id$