/l3/users/clint/nt-bsdnet/fbsd1.unix.nt/user :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 |
|
$su -
Password: l3-agent is already running: pid=24590; pidfile=/root/.lilalo/l3-agent.pid |
#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 |
#vim /local/etc/clamd.conf
|
#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 |
#vim /etc/rc.conf
|
#chown -R mailnull:mailnull /var/log/clamav/
|
#touch /var/log/clamav/freshclam.log
|
#chown clamav:clamav /var/log/clamav/freshclam.log
|
#freshclam
ClamAV update process started at Thu Nov 30 20:20:19 2006 |
#vim .vimrc
|
#vim /etc/rc.conf
|
#cd /usr/ports/mail/p5-Mail-SpamAssassin
ClamAV update process started at Thu Nov 30 20:20:19 2006 |
#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 |
#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 |
#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 |
$su -
Password: l3-agent is already running: pid=24590; pidfile=/root/.lilalo/l3-agent.pid |
#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: |
#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 |
#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 |
#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. |
#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 |
#cd -
/usr/ports/mail/mimedefang |
#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 |
#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 |
#vim /usr/local/bin/mimedefang.pl
|
#ls -/ /usr/X11R6/lib/X11/fonts/TTF/
ls: illegal option -- / usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwx1] [file ...] |
#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 |
#ls -l /usr/X11R6/lib/X11/fonts/TTF/ | less
|
#du -sh /usr/X11R6/lib/X11/fonts/TTF/
43M /usr/X11R6/lib/X11/fonts/TTF/ |
#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"; |
#vi /usr/local/etc/clamd.conf
|
#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. |
#cd
|
#vi /usr/local/etc/mail/spamassassin/
|
#vi /usr/local/etc/mail/spamassassin/
|
#vi /usr/local/
|
#vi /usr/local/etc/mimedefang/mimedefang-filter
|
#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 |
#vim /etc/rc.conf
|
#/etc/rc.d/clea
cleanvar cleartmp |
#/usr/local/etc/rc.d/clamav-
clamav-clamd.sh clamav-freshclam.sh |
#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: ******************************************************** |
#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 |
#make uninstall
make: don't know how to make uninstall. Stop |
#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' |
#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 |
#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 |
#less /var/log/clamav/clamd.log
|
#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 |
#vi /etc/mail/ns.sergey.unix.nt.mc
|
#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 |
#vim /etc/mail/ns.sergey.unix.nt.mc
|
#vim /etc/mail/ns.sergey.unix.nt.mc
|
#make
make: no target to make. |
#cd /etc/mail
|
#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 |
#cp ns.sergey.unix.nt.cf sendmail.cf
|
#/etc/rc.d/sendmail restart
Stopping sendmail. Starting sendmail. WARNING: Xmimedefang: local socket name /var/spool/MIMEDefang/mimedefang.sock missing |
#sh r/local/etc/rc.d/mimedefang.sh start
Starting mimedefang-multiplexor: [ OK ] Starting mimedefang: [ OK ] |
#/etc/rc.d/sendmail restart
Stopping sendmail. Starting sendmail. |
#less /var/log/clamav/clamd.log
|
$evolution
(evolution:3177): Gtk-WARNING **: cannot open display: |
$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 |
$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 |
$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. |
$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. |
#vim /usr/local/etc/mimedefang/sa-mimedefang.cf
|
#vim /local/etc/mimedefang/mimedefang-filter
|
#vim /local/etc/mimedefang/mimedefang-filter
|
#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 ] |
#vim /usr/local/etc/mimedefang/sa-mimedefang.cf
|
#vim /usr/local/etc/mimedefang/sa-mimedefang.cf
|
#vim /usr/local/etc/mimedefang/sa-mimedefang.cf
|
#less /var/log/maillog
|
#less /var/log/maillog
|
#less /var/log/maillog
|
#less /var/log/maillog
|
#cd /usr/ports/mail/mailgraph
|
#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 |
#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 |
#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 |
#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 |
$su -
Password: Removing stale pidfile |
#vim /etc/rc.conf
|
#vim /etc/rc.conf
|
#vim /etc/rc.conf
|
#chgrp www /var/log/maillog
|
#chgrp www /var/log/maillog
|
#chgrp www /var/log/maillog
|
#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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ 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 |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008