/l3/users/17-12-2012/NT-BSDnet/freebsd1.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 |
|
#sockstat -4
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root sshd 1332 3 tcp4 192.168.13.21:22 192.168.15.101:50239 root sendmail 1241 4 tcp4 127.0.0.1:25 *:* root sshd 1233 4 tcp4 *:22 *:* root xinetd 1083 0 tcp4 *:19 *:* root xinetd 1083 6 tcp4 *:7 *:* root xinetd 1083 8 tcp4 *:23 *:* root syslogd 942 7 udp4 *:514 *:* |
#vim freebsd.mc
--- /tmp/l3-saved-1374.6513.27537 2012-12-21 13:39:14.000000000 +0200 +++ freebsd.mc 2012-12-21 13:40:59.000000000 +0200 @@ -82,7 +82,8 @@ define(`confCW_FILE', `-o /etc/mail/local-host-names') dnl Enable for both IPv4 and IPv6 (optional) -DAEMON_OPTIONS(`Name=IPv4, Family=inet') +dnl DAEMON_OPTIONS(`Name=IPv4, Family=inet') +DAEMON_OPTIONS(`Name=IPv4, Family=inet, Port=smtp, Addr=0.0.0.0') DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O') define(`confBIND_OPTS', `WorkAroundBrokenAAAA') |
#make
|
#/etc/rc.d/sendmail restart
Stopping sendmail. Cannot 'start' sendmail. Set sendmail_enable to YES in /etc/rc.conf or use 'onestart' instead of 'start'. |
#vim /etc/rc.conf
|
#~
Cannot 'restart' sendmail. Set sendmail_enable to YES in /etc/rc.conf or use 'onerestart' instead of 'restart'. sendmail_submit not running? (check /var/run/sendmail.pid). |
#vim /etc/rc.conf
--- /tmp/l3-saved-1374.21477.27378 2012-12-21 13:41:54.000000000 +0200 +++ /etc/rc.conf 2012-12-21 13:42:02.000000000 +0200 @@ -33,5 +33,5 @@ # natd_interface="em0" # named_enable="YES" # named_flags="-u bind" -sandmail_enable="YES" +sendmail_enable="YES" |
#/etc/rc.d/sendmail restart
Stopping sendmail. Starting sendmail. |
#sockstat -4
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root sendmail 1609 4 tcp4 *:25 *:* root sendmail 1609 6 tcp4 *:587 *:* root sshd 1332 3 tcp4 192.168.13.21:22 192.168.15.101:50239 root sshd 1233 4 tcp4 *:22 *:* root xinetd 1083 0 tcp4 *:19 *:* root xinetd 1083 6 tcp4 *:7 *:* root xinetd 1083 8 tcp4 *:23 *:* root syslogd 942 7 udp4 *:514 *:* |
#pwd
/etc/mail |
#ls -l
total 524 -rw-r--r-- 1 root wheel 6818 Feb 18 2011 Makefile -rw-r--r-- 1 root wheel 2905 Feb 18 2011 README -rw-r--r-- 1 root wheel 682 Dec 21 11:22 access -rw-r----- 1 root wheel 65536 Dec 21 13:37 access.db -rw-r--r-- 1 root wheel 634 Feb 18 2011 access.sample -rw-r--r-- 1 root wheel 634 Dec 21 11:19 access~ -rw-r--r-- 1 root wheel 1667 Feb 18 2011 aliases -rw-r----- 1 root wheel 65536 Jul 3 21:25 aliases.db -rw-r--r-- 1 root wheel 58221 Dec 21 13:37 andrey.net.nt.cf ... -rw-r--r-- 1 root wheel 4118 Feb 18 2011 freebsd.mc~ -r--r--r-- 1 root wheel 40751 Feb 18 2011 freebsd.submit.cf -r--r--r-- 1 root wheel 901 Feb 18 2011 freebsd.submit.mc -r--r--r-- 1 root wheel 5657 Feb 18 2011 helpfile -rw-r--r-- 1 root wheel 409 Feb 18 2011 mailer.conf -rw-r--r-- 1 root wheel 253 Feb 18 2011 mailertable.sample -rw-r--r-- 1 root wheel 58276 Feb 18 2011 sendmail.cf -rw-r--r-- 1 root wheel 58276 Dec 21 13:26 sendmail.cf.default -r--r--r-- 1 root wheel 40751 Feb 18 2011 submit.cf -rw-r--r-- 1 root wheel 582 Feb 18 2011 virtusertable.sample |
#vim freebsd.mc
|
#dnl DAEMON_OPTIONS(`Name=IPv4, Family=inet')
|
#vim local-host-names
--- /tmp/l3-saved-1374.3924.2848 2012-12-21 13:45:16.000000000 +0200 +++ local-host-names 2012-12-21 13:45:37.000000000 +0200 @@ -0,0 +1,2 @@ +localhost +andrey.net.nt |
#make
|
#ls -l /usr/share/sendmail
total 2 drwxr-xr-x 11 root wheel 512 Feb 18 2011 cf |
#ls -l /usr/share/sendmail/cf/
total 210 -r--r--r-- 1 root wheel 186902 Feb 18 2011 README drwxr-xr-x 2 root wheel 1024 Feb 18 2011 cf drwxr-xr-x 2 root wheel 512 Feb 18 2011 domain drwxr-xr-x 2 root wheel 2048 Feb 18 2011 feature drwxr-xr-x 2 root wheel 512 Feb 18 2011 hack drwxr-xr-x 2 root wheel 512 Feb 18 2011 m4 drwxr-xr-x 2 root wheel 512 Feb 18 2011 mailer drwxr-xr-x 2 root wheel 1536 Feb 18 2011 ostype -r--r--r-- 1 root wheel 8050 Feb 18 2011 sendmail.schema drwxr-xr-x 2 root wheel 512 Feb 18 2011 sh drwxr-xr-x 2 root wheel 512 Feb 18 2011 siteconfig |
#vi /usr/share/sendmail/cf/domain/
|
#vim freebsd.mc
|
#make
|
#/etc/rc.d/sendmail restart
Stopping sendmail. Starting sendmail. |
#echo 'test message' | mail -s test_subject root@scale.net.nt
|
#echo 'test message' | mail -s test_subject user@andrey
|
#mail -u user
Mail version 8.1 6/6/93. Type ? for help. "/var/mail/user": 1 message 1 new >N 1 root@andrey.net.nt Fri Dec 21 14:02 18/683 "test_subject" & 1 Message 1: From root@andrey.net.nt Fri Dec 21 14:02:15 2012 Date: Fri, 21 Dec 2012 14:02:15 +0200 (EET) From: Charlie Root <root@andrey.net.nt> To: user@andrey.net.nt Subject: test_subject test message & quit "/var/mail/user" complete |
#mailq
/var/spool/mqueue is empty Total requests: 0 |
#echo 'test message' | mail -s test_subject user@evgennt
|
#echo 'test message' | mail -s test_subject rooten.net.nt
|
#mailq
/var/spool/mqueue is empty Total requests: 0 |
#tail -f /var/log/messages
Dec 21 13:34:22 andrey kernel: uhub0: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0 Dec 21 13:34:22 andrey kernel: Root mount waiting for: usbus0 Dec 21 13:34:22 andrey kernel: uhub0: 2 ports with 2 removable, self powered Dec 21 13:34:22 andrey kernel: Root mount waiting for: usbus0 Dec 21 13:34:22 andrey kernel: ugen0.2: <QEMU 0.10.2> at usbus0 Dec 21 13:34:22 andrey kernel: ums0: <Endpoint1 Interrupt Pipe> on usbus0 Dec 21 13:34:22 andrey kernel: ums0: 3 buttons and [Z] coordinates ID=0 Dec 21 13:34:22 andrey kernel: Trying to mount root from ufs:/dev/ad0s1a Dec 21 13:34:22 andrey xinetd[1083]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Dec 21 13:34:22 andrey xinetd[1083]: Started working: 3 available services q ^C |
#tail -f /var/log/sendmail.st
Þ±ËÀÏPØ :q ^C |
#ls -l /var/log/
total 294 -rw------- 1 root wheel 23164 Dec 21 13:34 auth.log -rw------- 1 root wheel 62542 Dec 21 14:00 cron -rw------- 1 root wheel 5164 Dec 19 23:00 cron.0.bz2 -rw------- 1 root wheel 5177 Jul 9 06:00 cron.1.bz2 -rw------- 1 root wheel 5013 Jul 6 13:00 cron.2.bz2 -rw------- 1 root wheel 9496 Dec 21 13:34 debug.log -rw------- 1 root wheel 4627 Dec 21 03:03 dmesg.today -rw------- 1 root wheel 4627 Dec 20 03:03 dmesg.yesterday -rw-r--r-- 1 root wheel 28056 Dec 21 13:34 lastlog ... -rw-r----- 1 root wheel 0 Dec 17 14:00 sendmail.st.0 -rw-r----- 1 root wheel 728 Jul 9 03:01 sendmail.st.1 -rw-r----- 1 root wheel 0 Jul 3 22:00 sendmail.st.2 -rw-r----- 1 root wheel 0 Feb 18 2011 sendmail.st.3 -rw-r--r-- 1 root wheel 1279 Dec 21 12:03 servicelog -rw------- 1 root wheel 3394 Dec 19 03:03 setuid.today -rw------- 1 root wheel 3308 Jul 4 03:01 setuid.yesterday -rw------- 1 root wheel 531 Dec 19 19:00 userlog -rw-r--r-- 1 root wheel 8756 Dec 21 13:34 wtmp -rw------- 1 root wheel 68 Jul 3 21:43 xferlog |
#ls -l /var/log/maillog
-rw-r----- 1 root wheel 6506 Dec 21 14:03 /var/log/maillog |
#tail -f /maillog
Dec 21 14:02:15 andrey sendmail[1860]: qBLC2FIB001860: to=user@andrey.net.nt, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30059, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (qBLC2FaQ001864 Message accepted for delivery) Dec 21 14:02:15 andrey sm-mta[1869]: qBLC2FaQ001864: to=<user@andrey.net.nt>, ctladdr=<root@andrey.net.nt> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30633, relay=local, dsn=2.0.0, stat=Sent Dec 21 14:02:53 andrey sendmail[1889]: qBLC2rHf001889: from=root, size=58, class=0, nrcpts=1, msgid=<201212211202.qBLC2rHf001889@andrey.net.nt>, relay=root@localhost Dec 21 14:02:53 andrey sm-mta[1897]: qBLC2rPB001897: from=<root@andrey.net.nt>, size=373, class=0, nrcpts=1, msgid=<201212211202.qBLC2rHf001889@andrey.net.nt>, proto=ESMTP, daemon=IPv4, relay=localhost.net.nt [127.0.0.1] Dec 21 14:02:53 andrey sendmail[1889]: qBLC2rHf001889: to=user@evgen.net.nt, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30058, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (qBLC2rPB001897 Message accepted for delivery) Dec 21 14:02:55 andrey sm-mta[1899]: qBLC2rPB001897: to=<user@evgen.net.nt>, ctladdr=<root@andrey.net.nt> (0/0), delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=30373, relay=evgen.net.nt. [192.168.13.1], dsn=2.0.0, stat=Sent (qBLA2txM005648 Message accepted for delivery) Dec 21 14:03:02 andrey sendmail[1902]: qBLC320o001902: from=root, size=58, class=0, nrcpts=1, msgid=<201212211203.qBLC320o001902@andrey.net.nt>, relay=root@localhost Dec 21 14:03:02 andrey sm-mta[1910]: qBLC32HU001910: from=<root@andrey.net.nt>, size=373, class=0, nrcpts=1, msgid=<201212211203.qBLC320o001902@andrey.net.nt>, proto=ESMTP, daemon=IPv4, relay=localhost.net.nt [127.0.0.1] Dec 21 14:03:02 andrey sendmail[1902]: qBLC320o001902: to=root@evgen.net.nt, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30058, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (qBLC32HU001910 Message accepted for delivery) Dec 21 14:03:03 andrey sm-mta[1912]: qBLC32HU001910: to=<root@evgen.net.nt>, ctladdr=<root@andrey.net.nt> (0/0), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=30373, relay=evgen.net.nt. [192.168.13.1], dsn=2.0.0, stat=Sent (qBLA34Ks005652 Message accepted for delivery) ^[[A^C |
#tail /var/log/maillog
Dec 21 14:02:15 andrey sendmail[1860]: qBLC2FIB001860: to=user@andrey.net.nt, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30059, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (qBLC2FaQ001864 Message accepted for delivery) Dec 21 14:02:15 andrey sm-mta[1869]: qBLC2FaQ001864: to=<user@andrey.net.nt>, ctladdr=<root@andrey.net.nt> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30633, relay=local, dsn=2.0.0, stat=Sent Dec 21 14:02:53 andrey sendmail[1889]: qBLC2rHf001889: from=root, size=58, class=0, nrcpts=1, msgid=<201212211202.qBLC2rHf001889@andrey.net.nt>, relay=root@localhost Dec 21 14:02:53 andrey sm-mta[1897]: qBLC2rPB001897: from=<root@andrey.net.nt>, size=373, class=0, nrcpts=1, msgid=<201212211202.qBLC2rHf001889@andrey.net.nt>, proto=ESMTP, daemon=IPv4, relay=localhost.net.nt [127.0.0.1] Dec 21 14:02:53 andrey sendmail[1889]: qBLC2rHf001889: to=user@evgen.net.nt, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30058, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (qBLC2rPB001897 Message accepted for delivery) Dec 21 14:02:55 andrey sm-mta[1899]: qBLC2rPB001897: to=<user@evgen.net.nt>, ctladdr=<root@andrey.net.nt> (0/0), delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=30373, relay=evgen.net.nt. [192.168.13.1], dsn=2.0.0, stat=Sent (qBLA2txM005648 Message accepted for delivery) Dec 21 14:03:02 andrey sendmail[1902]: qBLC320o001902: from=root, size=58, class=0, nrcpts=1, msgid=<201212211203.qBLC320o001902@andrey.net.nt>, relay=root@localhost Dec 21 14:03:02 andrey sm-mta[1910]: qBLC32HU001910: from=<root@andrey.net.nt>, size=373, class=0, nrcpts=1, msgid=<201212211203.qBLC320o001902@andrey.net.nt>, proto=ESMTP, daemon=IPv4, relay=localhost.net.nt [127.0.0.1] Dec 21 14:03:02 andrey sendmail[1902]: qBLC320o001902: to=root@evgen.net.nt, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30058, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (qBLC32HU001910 Message accepted for delivery) Dec 21 14:03:03 andrey sm-mta[1912]: qBLC32HU001910: to=<root@evgen.net.nt>, ctladdr=<root@andrey.net.nt> (0/0), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=30373, relay=evgen.net.nt. [192.168.13.1], dsn=2.0.0, stat=Sent (qBLA34Ks005652 Message accepted for delivery) |
#tail 50var/log/maillog
tail: 50: No such file or directory ==> /var/log/maillog <== Dec 21 14:02:15 andrey sendmail[1860]: qBLC2FIB001860: to=user@andrey.net.nt, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30059, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (qBLC2FaQ001864 Message accepted for delivery) Dec 21 14:02:15 andrey sm-mta[1869]: qBLC2FaQ001864: to=<user@andrey.net.nt>, ctladdr=<root@andrey.net.nt> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30633, relay=local, dsn=2.0.0, stat=Sent Dec 21 14:02:53 andrey sendmail[1889]: qBLC2rHf001889: from=root, size=58, class=0, nrcpts=1, msgid=<201212211202.qBLC2rHf001889@andrey.net.nt>, relay=root@localhost Dec 21 14:02:53 andrey sm-mta[1897]: qBLC2rPB001897: from=<root@andrey.net.nt>, size=373, class=0, nrcpts=1, msgid=<201212211202.qBLC2rHf001889@andrey.net.nt>, proto=ESMTP, daemon=IPv4, relay=localhost.net.nt [127.0.0.1] Dec 21 14:02:53 andrey sendmail[1889]: qBLC2rHf001889: to=user@evgen.net.nt, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30058, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (qBLC2rPB001897 Message accepted for delivery) Dec 21 14:02:55 andrey sm-mta[1899]: qBLC2rPB001897: to=<user@evgen.net.nt>, ctladdr=<root@andrey.net.nt> (0/0), delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=30373, relay=evgen.net.nt. [192.168.13.1], dsn=2.0.0, stat=Sent (qBLA2txM005648 Message accepted for delivery) Dec 21 14:03:02 andrey sendmail[1902]: qBLC320o001902: from=root, size=58, class=0, nrcpts=1, msgid=<201212211203.qBLC320o001902@andrey.net.nt>, relay=root@localhost Dec 21 14:03:02 andrey sm-mta[1910]: qBLC32HU001910: from=<root@andrey.net.nt>, size=373, class=0, nrcpts=1, msgid=<201212211203.qBLC320o001902@andrey.net.nt>, proto=ESMTP, daemon=IPv4, relay=localhost.net.nt [127.0.0.1] Dec 21 14:03:02 andrey sendmail[1902]: qBLC320o001902: to=root@evgen.net.nt, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30058, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (qBLC32HU001910 Message accepted for delivery) Dec 21 14:03:03 andrey sm-mta[1912]: qBLC32HU001910: to=<root@evgen.net.nt>, ctladdr=<root@andrey.net.nt> (0/0), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=30373, relay=evgen.net.nt. [192.168.13.1], dsn=2.0.0, stat=Sent (qBLA34Ks005652 Message accepted for delivery) |
#cd /usr/ports/
|
#make search name=clamav
Port: p5-Mail-ClamAV-0.29_1 Path: /usr/ports/mail/p5-Mail-ClamAV Info: Perl extension for the clamav virus scanner Maint: perl@FreeBSD.org B-deps: arc-5.21o_1 arj-3.10.22_4 clamav-0.97 lha-1.14i_6 libltdl-2.2.10 p5-Inline-0.46 p5-Parse-RecDescent-1.965.001 perl-5.10.1_3 unzoo-4.4_2 R-deps: arc-5.21o_1 arj-3.10.22_4 clamav-0.97 lha-1.14i_6 libltdl-2.2.10 p5-Inline-0.46 p5-Parse-RecDescent-1.965.001 perl-5.10.1_3 unzoo-4.4_2 WWW: http://search.cpan.org/dist/Mail-ClamAV/ Port: spmfilter-clamav-0.1.1_1 Path: /usr/ports/mail/spmfilter-clamav Info: ClamAV plugin for spmfilter ... Path: /usr/ports/www/mod_clamav Info: Scans content delivered by the Apache20 proxy module for viruses Maint: tmueko@kommunity.net B-deps: apache-2.2.17_1 apr-ipv6-devrandom-gdbm-db42-1.4.2.1.3.10 arc-5.21o_1 arj-3.10.22_4 clamav-0.97 db42-4.2.52_5 expat-2.0.1_1 gdbm-1.8.3_3 lha-1.14i_6 libiconv-1.13.1_1 libltdl-2.2.10 libtool-2.2.10 pcre-8.12 perl-5.10.1_3 unzoo-4.4_2 R-deps: apache-2.2.17_1 apr-ipv6-devrandom-gdbm-db42-1.4.2.1.3.10 arc-5.21o_1 arj-3.10.22_4 clamav-0.97 db42-4.2.52_5 expat-2.0.1_1 gdbm-1.8.3_3 lha-1.14i_6 libiconv-1.13.1_1 libltdl-2.2.10 pcre-8.12 perl-5.10.1_3 unzoo-4.4_2 WWW: http://software.othello.ch/mod_clamav/ Port: mail/claws-mail-clamav Moved: Date: 2009-02-03 Reason: Has expired: has been broken for more than 6 months |
#^C
|
#cd security/
|
#ls -l clam
clamassassin/ clamav-devel/ clamcour/ clamsmtp/ clamav/ clamav-unofficial-sigs/ clamd-stream-client/ clamtk/ |
#cd clam
clamassassin/ clamav-devel/ clamcour/ clamsmtp/ clamav/ clamav-unofficial-sigs/ clamd-stream-client/ clamtk/ |
#cd clam
clamassassin/ clamav-devel/ clamcour/ clamsmtp/ clamav/ clamav-unofficial-sigs/ clamd-stream-client/ clamtk/ |
#cd clamav
|
#ls -l
total 16 -rw-r--r-- 1 root wheel 6775 Feb 8 2011 Makefile -rw-r--r-- 1 root wheel 132 Feb 8 2011 distinfo drwxr-xr-x 2 root wheel 512 Feb 18 2011 files -rw-r--r-- 1 root wheel 345 Apr 13 2007 pkg-descr -rw-r--r-- 1 root wheel 1330 Apr 12 2010 pkg-plist |
#make install clean
checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking how to run the C preprocessor... cpp checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E ... ===> Cleaning for arc-5.21o_1 ===> Cleaning for arj-3.10.22_4 ===> Cleaning for lha-1.14i_6 ===> Cleaning for unzoo-4.4_2 ===> Cleaning for libtool-2.2.10 ===> Cleaning for autoconf-2.68 ===> Cleaning for help2man-1.38.4 ===> Cleaning for autoconf-wrapper-20101119 ===> Cleaning for p5-Locale-gettext-1.05_3 ===> Cleaning for clamav-0.97 |
#cd
|
#cd /usr/ports/
|
#cd security/
|
#ls -l
total 1836 drwxr-xr-x 3 root wheel 512 Feb 18 2011 ADMsmb drwxr-xr-x 3 root wheel 512 Feb 18 2011 ADMsnmp drwxr-xr-x 3 root wheel 512 Feb 18 2011 IMHear -rw-r--r-- 1 root wheel 23430 Jan 30 2011 Makefile drwxr-xr-x 3 root wheel 512 Feb 18 2011 aafid2 drwxr-xr-x 2 root wheel 512 Feb 18 2011 aescrypt drwxr-xr-x 2 root wheel 512 Feb 18 2011 aespipe drwxr-xr-x 2 root wheel 512 Feb 18 2011 afterglow drwxr-xr-x 3 root wheel 512 Feb 18 2011 aide ... drwxr-xr-x 3 root wheel 512 Feb 18 2011 xyssl drwxr-xr-x 3 root wheel 512 Feb 18 2011 yafic drwxr-xr-x 2 root wheel 512 Feb 18 2011 yapet drwxr-xr-x 2 root wheel 512 Feb 18 2011 yassl drwxr-xr-x 3 root wheel 512 Feb 18 2011 yersinia drwxr-xr-x 3 root wheel 512 Feb 18 2011 zebedee drwxr-xr-x 2 root wheel 512 Feb 18 2011 zenmap drwxr-xr-x 3 root wheel 512 Feb 18 2011 zombiezapper drwxr-xr-x 3 root wheel 512 Feb 18 2011 zxid drwxr-xr-x 2 root wheel 512 Feb 18 2011 zzuf |
#ls -l clam
ls: clam: No such file or directory |
#ls -l clam*
clamassassin: total 6 -rw-r--r-- 1 root wheel 897 Apr 6 2010 Makefile -rw-r--r-- 1 root wheel 210 Apr 26 2007 distinfo -rw-r--r-- 1 root wheel 357 Oct 16 2004 pkg-descr clamav: total 16 -rw-r--r-- 1 root wheel 6775 Feb 8 2011 Makefile -rw-r--r-- 1 root wheel 132 Feb 8 2011 distinfo drwxr-xr-x 2 root wheel 512 Feb 18 2011 files ... -rw-r--r-- 1 root wheel 196 Sep 26 2008 distinfo drwxr-xr-x 2 root wheel 512 Feb 18 2011 files -rw-r--r-- 1 root wheel 631 Jul 9 2007 pkg-descr -rw-r--r-- 1 root wheel 287 Feb 17 2006 pkg-plist clamtk: total 10 -rw-r--r-- 1 root wheel 2118 Oct 13 2010 Makefile -rw-r--r-- 1 root wheel 190 Sep 18 2010 distinfo -rw-r--r-- 1 root wheel 155 Dec 21 2009 pkg-descr -rw-r--r-- 1 root wheel 2014 Sep 18 2010 pkg-plist |
#ls -l clam
clamassassin/ clamav-devel/ clamcour/ clamsmtp/ clamav/ clamav-unofficial-sigs/ clamd-stream-client/ clamtk/ |
#cd ..
|
#pwd
/usr/ports |
#make search name=clamav
Port: p5-Mail-ClamAV-0.29_1 Path: /usr/ports/mail/p5-Mail-ClamAV Info: Perl extension for the clamav virus scanner Maint: perl@FreeBSD.org B-deps: arc-5.21o_1 arj-3.10.22_4 clamav-0.97 lha-1.14i_6 libltdl-2.2.10 p5-Inline-0.46 p5-Parse-RecDescent-1.965.001 perl-5.10.1_3 unzoo-4.4_2 R-deps: arc-5.21o_1 arj-3.10.22_4 clamav-0.97 lha-1.14i_6 libltdl-2.2.10 p5-Inline-0.46 p5-Parse-RecDescent-1.965.001 perl-5.10.1_3 unzoo-4.4_2 WWW: http://search.cpan.org/dist/Mail-ClamAV/ Port: spmfilter-clamav-0.1.1_1 Path: /usr/ports/mail/spmfilter-clamav Info: ClamAV plugin for spmfilter ... Path: /usr/ports/www/mod_clamav Info: Scans content delivered by the Apache20 proxy module for viruses Maint: tmueko@kommunity.net B-deps: apache-2.2.17_1 apr-ipv6-devrandom-gdbm-db42-1.4.2.1.3.10 arc-5.21o_1 arj-3.10.22_4 clamav-0.97 db42-4.2.52_5 expat-2.0.1_1 gdbm-1.8.3_3 lha-1.14i_6 libiconv-1.13.1_1 libltdl-2.2.10 libtool-2.2.10 pcre-8.12 perl-5.10.1_3 unzoo-4.4_2 R-deps: apache-2.2.17_1 apr-ipv6-devrandom-gdbm-db42-1.4.2.1.3.10 arc-5.21o_1 arj-3.10.22_4 clamav-0.97 db42-4.2.52_5 expat-2.0.1_1 gdbm-1.8.3_3 lha-1.14i_6 libiconv-1.13.1_1 libltdl-2.2.10 pcre-8.12 perl-5.10.1_3 unzoo-4.4_2 WWW: http://software.othello.ch/mod_clamav/ Port: mail/claws-mail-clamav Moved: Date: 2009-02-03 Reason: Has expired: has been broken for more than 6 months |
#make search name=clamav-milter
|
#locate
usage: locate [-0Scims] [-l limit] [-d database] pattern ... default database: `/var/db/locate.database' or $LOCATE_PATH |
#locate sendmail
/etc/mail/sendmail.cf /etc/mtree/BSD.sendmail.dist /etc/rc.d/sendmail /etc/rc.sendmail /usr/libexec/sendmail /usr/libexec/sendmail/sendmail /usr/local/share/doc/freebsd/en_US.ISO8859-1/books/handbook/sendmail.html /usr/local/share/doc/freebsd/ru_RU.KOI8-R/books/handbook/sendmail.html /usr/local/share/ri/1.8/system/Net/SMTP/sendmail-i.yaml /usr/ports/mail/mini_sendmail ... /usr/share/sendmail/cf/sh/makeinfo.sh /usr/share/sendmail/cf/siteconfig /usr/share/sendmail/cf/siteconfig/uucp.cogsci.m4 /usr/share/sendmail/cf/siteconfig/uucp.old.arpa.m4 /usr/share/sendmail/cf/siteconfig/uucp.ucbarpa.m4 /usr/share/sendmail/cf/siteconfig/uucp.ucbvax.m4 /var/log/sendmail.st /var/log/sendmail.st.0 /var/log/sendmail.st.1 /var/run/sendmail.pid |
#cd /usr/ports/security/
|
#cd clam
clamassassin/ clamav-devel/ clamcour/ clamsmtp/ clamav/ clamav-unofficial-sigs/ clamd-stream-client/ clamtk/ |
#cd clam
clamassassin/ clamav-devel/ clamcour/ clamsmtp/ clamav/ clamav-unofficial-sigs/ clamd-stream-client/ clamtk/ |
#cd clamav
clamav/ clamav-devel/ clamav-unofficial-sigs/ |
#cd clamav
|
#ls -l
total 16 -rw-r--r-- 1 root wheel 6775 Feb 8 2011 Makefile -rw-r--r-- 1 root wheel 132 Feb 8 2011 distinfo drwxr-xr-x 2 root wheel 512 Feb 18 2011 files -rw-r--r-- 1 root wheel 345 Apr 13 2007 pkg-descr -rw-r--r-- 1 root wheel 1330 Apr 12 2010 pkg-plist |
#make install
===> Vulnerability check disabled, database not found ===> License GPLv2 accepted by the user ===> Found saved configuration for clamav-0.97 ===> Extracting for clamav-0.97 => SHA256 Checksum OK for clamav-0.97.tar.gz. ===> Patching for clamav-0.97 ===> Applying FreeBSD patches for clamav-0.97 ===> clamav-0.97 depends on file: /usr/local/bin/python2.6 - found ===> clamav-0.97 depends on file: /usr/local/include/check.h - found ===> clamav-0.97 depends on executable: gmake - found ... ===> clamav-0.97 is already installed You may wish to ``make deinstall'' and install this port again by ``make reinstall'' to upgrade it properly. If you really wish to overwrite the old port of security/clamav without deleting it first, set the variable "FORCE_PKG_REGISTER" in your environment or the "make install" command line. *** Error code 1 Stop in /usr/ports/security/clamav. *** Error code 1 Stop in /usr/ports/security/clamav. |
#cd /usr/ports/
|
#ls -l
total 23480 -rw-r--r-- 1 root wheel 19 Jul 15 1997 .cvsignore -rw-r--r-- 1 root wheel 57038 Sep 15 2010 CHANGES -rw-r--r-- 1 root wheel 1496 Dec 31 2010 COPYRIGHT -rw-r--r-- 1 root wheel 2742 Feb 2 2011 GIDs -rw-r--r-- 1 root wheel 23038140 Feb 18 2011 INDEX-8 -rw-r--r-- 1 root wheel 9184 Oct 4 2010 KNOBS -rw-r--r-- 1 root wheel 32785 Feb 3 2011 LEGAL -rw-r--r-- 1 root wheel 120932 Feb 4 2011 MOVED -rw-r--r-- 1 root wheel 6018 Dec 18 2009 Makefile ... drwxr-xr-x 2062 root wheel 53248 Feb 18 2011 www drwxr-xr-x 487 root wheel 9728 Feb 18 2011 x11 drwxr-xr-x 64 root wheel 1536 Feb 18 2011 x11-clocks drwxr-xr-x 60 root wheel 2048 Feb 18 2011 x11-drivers drwxr-xr-x 43 root wheel 1024 Feb 18 2011 x11-fm drwxr-xr-x 156 root wheel 3584 Feb 18 2011 x11-fonts drwxr-xr-x 12 root wheel 512 Feb 18 2011 x11-servers drwxr-xr-x 217 root wheel 6656 Feb 18 2011 x11-themes drwxr-xr-x 320 root wheel 7168 Feb 18 2011 x11-toolkits drwxr-xr-x 188 root wheel 4096 Feb 18 2011 x11-wm |
#make search name=squid
Port: squidclamav-5.4 Path: /usr/ports/security/squidclamav Info: Squid interface to ClamAV Maint: llevier@argosnet.com B-deps: ca_root_nss-3.12.6 curl-7.21.3 gettext-0.18.1.1 gmake-3.81_4 libiconv-1.13.1_1 R-deps: ca_root_nss-3.12.6 curl-7.21.3 WWW: http://sourceforge.net/projects/squidclamav/ Port: lightsquid-1.8_2 Path: /usr/ports/www/lightsquid Info: A light and fast web based squid proxy traffic analyser ... R-deps: WWW: http://www.rillion.net/squidview Port: security/squidclam Moved: Date: 2009-02-03 Reason: Has expired: has been broken for more than 6 months Port: www/squid26 Moved: Date: 2009-04-04 Reason: Has expired: The 2.6 series is no longer actively maintained by the Squid developers |
#cd www
|
#ls -l sq
sqstat/ squid30/ squid_radius_auth/ squidpurge/ squidview/ squishdot/ squid/ squid31/ squidguard/ squidstats/ squirm/ |
#ls -l squid
squid/ squid31/ squidguard/ squidstats/ squid30/ squid_radius_auth/ squidpurge/ squidview/ |
#cd id31/
|
#make install clean
lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x Options for squid 3.1.10 x qqqq x x[X] SQUID_KERB_AUTH Install Kerberos authentication helpersx x x x[ ] SQUID_LDAP_AUTH Install LDAP authentication helpers x x x x[X] SQUID_NIS_AUTHH Install NIS/YP authentication helpers x x x x[ ] SQUID_SASL_AUTHLS Install SASL authentication helpers x x x x[ ] SQUID_DNS_HELPER Use the old 'dnsserver' helper x x x x[ ] SQUID_VIA_DB Enable forward/via database x x x x[ ] SQUID_PFI Enable transparent proxying with PF x x ... these network services to be started at boot time. /usr/local/etc/rc.d/squid If there are vulnerabilities in these programs there may be a security risk to the system. FreeBSD makes no guarantee about the security of ports included in the Ports Collection. Please type 'make deinstall' to deinstall the port if this is a concern. For more information, and contact details about the security status of this software, see the following webpage: http://www.squid-cache.org/ ===> Cleaning for squid-3.1.10 |
#ls /usr/local/etc/squid/
cachemgr.conf errors mime.conf.default squid.conf.default cachemgr.conf.default icons msntauth.conf squid.conf.documented errorpage.css mib.txt msntauth.conf.default errorpage.css.default mime.conf squid.conf |
#vim /usr/local/etc/squid/squid.conf
|
# 16
total 24 -rw-r--r-- 1 root wheel 16941 Jan 6 2011 Makefile -rw-r--r-- 1 root wheel 153 Jan 6 2011 distinfo drwxr-xr-x 2 root wheel 512 Feb 18 2011 files -rw-r--r-- 1 root wheel 468 May 2 2010 pkg-descr |
#cd /usr/local/etc/squid/
|
#ls -l
total 306 -r--r--r-- 1 root wheel 419 Dec 21 16:22 cachemgr.conf -r--r--r-- 1 root wheel 419 Dec 21 16:22 cachemgr.conf.default -r--r--r-- 1 root wheel 1547 Dec 21 16:22 errorpage.css -r--r--r-- 1 root wheel 1547 Dec 21 16:22 errorpage.css.default drwxr-xr-x 46 root squid 2560 Dec 21 16:22 errors drwxr-xr-x 2 root squid 1024 Dec 21 16:22 icons -r--r--r-- 1 root wheel 30845 Dec 21 16:22 mib.txt -r--r--r-- 1 root wheel 11651 Dec 21 16:22 mime.conf -r--r--r-- 1 root wheel 11651 Dec 21 16:22 mime.conf.default -r--r--r-- 1 root wheel 421 Dec 21 16:22 msntauth.conf -r--r--r-- 1 root wheel 421 Dec 21 16:22 msntauth.conf.default -r--r--r-- 1 root wheel 2510 Dec 21 16:22 squid.conf -r--r--r-- 1 root wheel 2510 Dec 21 16:22 squid.conf.default -r--r--r-- 1 root wheel 204813 Dec 21 16:22 squid.conf.documented |
#ls -l
total 306 -r--r--r-- 1 root wheel 419 Dec 21 16:22 cachemgr.conf -r--r--r-- 1 root wheel 419 Dec 21 16:22 cachemgr.conf.default -r--r--r-- 1 root wheel 1547 Dec 21 16:22 errorpage.css -r--r--r-- 1 root wheel 1547 Dec 21 16:22 errorpage.css.default drwxr-xr-x 46 root squid 2560 Dec 21 16:22 errors drwxr-xr-x 2 root squid 1024 Dec 21 16:22 icons -r--r--r-- 1 root wheel 30845 Dec 21 16:22 mib.txt -r--r--r-- 1 root wheel 11651 Dec 21 16:22 mime.conf -r--r--r-- 1 root wheel 11651 Dec 21 16:22 mime.conf.default -r--r--r-- 1 root wheel 421 Dec 21 16:22 msntauth.conf -r--r--r-- 1 root wheel 421 Dec 21 16:22 msntauth.conf.default -r--r--r-- 1 root wheel 2510 Dec 21 16:22 squid.conf -r--r--r-- 1 root wheel 2510 Dec 21 16:22 squid.conf.default -r--r--r-- 1 root wheel 204813 Dec 21 16:22 squid.conf.documented |
#vim squid.conf.documented
|
#5716
total 306 -r--r--r-- 1 root wheel 419 Dec 21 16:22 cachemgr.conf -r--r--r-- 1 root wheel 419 Dec 21 16:22 cachemgr.conf.default -r--r--r-- 1 root wheel 1547 Dec 21 16:22 errorpage.css -r--r--r-- 1 root wheel 1547 Dec 21 16:22 errorpage.css.default drwxr-xr-x 46 root squid 2560 Dec 21 16:22 errors drwxr-xr-x 2 root squid 1024 Dec 21 16:22 icons -r--r--r-- 1 root wheel 30845 Dec 21 16:22 mib.txt -r--r--r-- 1 root wheel 11651 Dec 21 16:22 mime.conf -r--r--r-- 1 root wheel 11651 Dec 21 16:22 mime.conf.default -r--r--r-- 1 root wheel 421 Dec 21 16:22 msntauth.conf -r--r--r-- 1 root wheel 421 Dec 21 16:22 msntauth.conf.default -r--r--r-- 1 root wheel 2510 Dec 21 16:22 squid.conf -r--r--r-- 1 root wheel 2510 Dec 21 16:22 squid.conf.default -r--r--r-- 1 root wheel 204813 Dec 21 16:22 squid.conf.documented |
#ls -l
total 306 -r--r--r-- 1 root wheel 419 Dec 21 16:22 cachemgr.conf -r--r--r-- 1 root wheel 419 Dec 21 16:22 cachemgr.conf.default -r--r--r-- 1 root wheel 1547 Dec 21 16:22 errorpage.css -r--r--r-- 1 root wheel 1547 Dec 21 16:22 errorpage.css.default drwxr-xr-x 46 root squid 2560 Dec 21 16:22 errors drwxr-xr-x 2 root squid 1024 Dec 21 16:22 icons -r--r--r-- 1 root wheel 30845 Dec 21 16:22 mib.txt -r--r--r-- 1 root wheel 11651 Dec 21 16:22 mime.conf -r--r--r-- 1 root wheel 11651 Dec 21 16:22 mime.conf.default -r--r--r-- 1 root wheel 421 Dec 21 16:22 msntauth.conf -r--r--r-- 1 root wheel 421 Dec 21 16:22 msntauth.conf.default -r--r--r-- 1 root wheel 2510 Dec 21 16:22 squid.conf -r--r--r-- 1 root wheel 2510 Dec 21 16:22 squid.conf.default -r--r--r-- 1 root wheel 204813 Dec 21 16:22 squid.conf.documented |
#vi squid.conf.documented
|
#ls- l /var/log/
auth.log dmesg.today maillog.2.bz2 messages.0.bz2 sendmail.st setuid.yesterday clamav/ dmesg.yesterday maillog.3.bz2 messages.1.bz2 sendmail.st.0 squid/ cron lastlog maillog.4.bz2 mount.today sendmail.st.1 userlog cron.0.bz2 lpd-errs maillog.5.bz2 mount.yesterday sendmail.st.2 wtmp cron.1.bz2 maillog maillog.6.bz2 pf.today sendmail.st.3 xferlog cron.2.bz2 maillog.0.bz2 maillog.7.bz2 ppp.log servicelog debug.log maillog.1.bz2 messages security setuid.today |
#ls- l /var/log/s
security sendmail.st.0 sendmail.st.2 servicelog setuid.yesterday sendmail.st sendmail.st.1 sendmail.st.3 setuid.today squid/ |
#ls- l /var/log/s
security sendmail.st.0 sendmail.st.2 servicelog setuid.yesterday sendmail.st sendmail.st.1 sendmail.st.3 setuid.today squid/ |
#ls- l /var/log/squid/
l3script: ls-: command not found |
#ls -l
total 62 -rw------- 1 root wheel 8289 Dec 21 13:33 .bash_history -rw-r--r-- 1 root wheel 10 Jul 5 20:49 .bash_profile -rw-r--r-- 1 root wheel 60 Jul 5 20:49 .bashrc -rw-r--r-- 2 root wheel 798 Feb 18 2011 .cshrc -rw------- 1 root wheel 2582 Jul 5 20:49 .history -rw-r--r-- 1 root wheel 155 Feb 18 2011 .k5login -rw-r--r-- 1 root wheel 54 Dec 17 11:07 .l3rc -rw------- 1 root wheel 58 Dec 20 16:29 .lesshst drwxr-xr-x 2 root wheel 7168 Dec 21 17:20 .lilalo -rw-r--r-- 1 root wheel 303 Feb 18 2011 .login -rw------- 1 root wheel 1339 Dec 18 16:18 .lsof_freebsd1 -rw-r--r-- 2 root wheel 265 Feb 18 2011 .profile drwx------ 2 root wheel 512 Dec 19 19:09 .ssh drwxr-xr-x 2 root wheel 512 Jul 3 22:32 .vim -rw------- 1 root wheel 10117 Dec 21 16:32 .viminfo -rw-r--r-- 1 root wheel 2938 Jul 3 22:29 .vimrc -rw-r--r-- 1 root wheel 729 Dec 19 18:46 \ -rw------- 1 root wheel 1160 Dec 21 11:05 mbox |
#cd /usr/ports/www
|
#ls -l
total 4182 drwxr-xr-x 3 root wheel 512 Feb 18 2011 MT -rw-r--r-- 1 root wheel 62045 Feb 5 2011 Makefile drwxr-xr-x 3 root wheel 512 Feb 18 2011 WebMagick drwxr-xr-x 3 root wheel 512 Feb 18 2011 abyssws drwxr-xr-x 3 root wheel 512 Feb 18 2011 ach drwxr-xr-x 3 root wheel 512 Feb 18 2011 adblock drwxr-xr-x 2 root wheel 512 Feb 18 2011 admuser drwxr-xr-x 3 root wheel 512 Feb 18 2011 adzap drwxr-xr-x 3 root wheel 512 Feb 18 2011 amphetadesk ... drwxr-xr-x 2 root wheel 512 Feb 18 2011 zope-xmlmethods drwxr-xr-x 2 root wheel 512 Feb 18 2011 zope-xmlwidgets drwxr-xr-x 2 root wheel 512 Feb 18 2011 zope-zmysqlda drwxr-xr-x 2 root wheel 512 Feb 18 2011 zope-zsyncer drwxr-xr-x 2 root wheel 512 Feb 18 2011 zope-zwiki drwxr-xr-x 3 root wheel 512 Feb 18 2011 zope210 drwxr-xr-x 3 root wheel 512 Feb 18 2011 zope211 drwxr-xr-x 3 root wheel 512 Feb 18 2011 zope28 drwxr-xr-x 3 root wheel 512 Feb 18 2011 zope29 drwxr-xr-x 3 root wheel 512 Feb 18 2011 zope3 |
#ls -l squi
squid/ squid31/ squidguard/ squidstats/ squirm/ squid30/ squid_radius_auth/ squidpurge/ squidview/ squishdot/ |
#ls -l squi
squid/ squid31/ squidguard/ squidstats/ squirm/ squid30/ squid_radius_auth/ squidpurge/ squidview/ squishdot/ |
#ls
MT p5-HTTP-Cookies-iCab Makefile p5-HTTP-Cookies-w3m WebMagick p5-HTTP-DAV abyssws p5-HTTP-Daemon-SSL ach p5-HTTP-Engine adblock p5-HTTP-Engine-Middleware admuser p5-HTTP-Exception adzap p5-HTTP-GHTTP amphetadesk p5-HTTP-HeaderParser-XS analog p5-HTTP-Headers-Fast ... p5-HTML-WikiConverter-Socialtext zope-xmlwidgets p5-HTML-WikiConverter-TikiWiki zope-zmysqlda p5-HTML-WikiConverter-UseMod zope-zsyncer p5-HTML-WikiConverter-WakkaWiki zope-zwiki p5-HTML-WikiConverter-WikkaWiki zope210 p5-HTTP-Async zope211 p5-HTTP-Body zope28 p5-HTTP-BrowserDetect zope29 p5-HTTP-Cache-Transparent zope3 p5-HTTP-Cookies-Mozilla |
#cd squi
squid/ squid31/ squidguard/ squidstats/ squirm/ squid30/ squid_radius_auth/ squidpurge/ squidview/ squishdot/ |
#cd squid3
squid30/ squid31/ |
#cd squid31
|
#ls -l
total 24 -rw-r--r-- 1 root wheel 16941 Jan 6 2011 Makefile -rw-r--r-- 1 root wheel 153 Jan 6 2011 distinfo drwxr-xr-x 2 root wheel 512 Feb 18 2011 files -rw-r--r-- 1 root wheel 468 May 2 2010 pkg-descr |
#vi Makefile
|
#ls -l
total 306 -r--r--r-- 1 root wheel 419 Dec 21 16:22 cachemgr.conf -r--r--r-- 1 root wheel 419 Dec 21 16:22 cachemgr.conf.default -r--r--r-- 1 root wheel 1547 Dec 21 16:22 errorpage.css -r--r--r-- 1 root wheel 1547 Dec 21 16:22 errorpage.css.default drwxr-xr-x 46 root squid 2560 Dec 21 16:22 errors drwxr-xr-x 2 root squid 1024 Dec 21 16:22 icons -r--r--r-- 1 root wheel 30845 Dec 21 16:22 mib.txt -r--r--r-- 1 root wheel 11651 Dec 21 16:22 mime.conf -r--r--r-- 1 root wheel 11651 Dec 21 16:22 mime.conf.default -r--r--r-- 1 root wheel 421 Dec 21 16:22 msntauth.conf -r--r--r-- 1 root wheel 421 Dec 21 16:22 msntauth.conf.default -r--r--r-- 1 root wheel 2510 Dec 21 16:22 squid.conf -r--r--r-- 1 root wheel 2510 Dec 21 16:22 squid.conf.default -r--r--r-- 1 root wheel 204813 Dec 21 16:22 squid.conf.documented |
#vim squid.conf
--- /tmp/l3-saved-1374.8959.11791 2012-12-21 17:28:54.000000000 +0200 +++ squid.conf 2012-12-21 17:37:29.000000000 +0200 @@ -70,6 +70,8 @@ # Leave coredumps in the first cache dir coredump_dir /var/squid/cache +cache_dir ufs /var/spool/squid 100 2 10 + # Add any of your own refresh_pattern entries above these. refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 |
#/usr/local/etc/rc.d/squid restart
Cannot 'restart' squid. Set squid_enable to YES in /etc/rc.conf or use 'onerestart' instead of 'restart'. |
Время первой команды журнала | 12:38:02 2012-12-21 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 16:37:29 2012-12-21 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 3.96 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.78 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.61 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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