/l3/users/bezha/nt-bsdnet/fbsd6.unix.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 :25 :26 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 :39 :40 :41 :42 :43 :44 :45 :46 :47 :48 :49 :50 :51 :52 :53 :54 :55 :56 :57 :58 :59 :60 :61 :62 :63 :64 :65 :66 :67 :68 :69 :70 :71 :72 :73 :74 :75 :76 :77 :78 :79 :80 :81 :82 :83 :84 :85 :86 :87 :88 :89 :90 :91 :92 :93 :94 :95 :96 :97 :98 :99 :100 |
|
#ps aux |grep mi
user 14473 0,0 1,1 28200 22748 ?? I 14:33 0:00,32 korgac --minii |
#ps aux |grep mi
user 14473 0,0 1,1 28200 22748 ?? I 14:33 0:00,32 korgac --minii |
#ps aux |grep mi
user 14473 0,0 1,1 28200 22748 ?? I 14:33 0:00,32 korgac --minii |
#ps aux |grep mi
user 14473 0,0 1,1 28200 22748 ?? I 14:33 0:00,32 korgac --minii |
#ps aux |grep mime
root 9101 0,0 0,0 1436 772 p4 R+ 16:25 0:00,00 grep mime |
#ps aux |grep mime
root 9101 0,0 0,0 1436 772 p4 R+ 16:25 0:00,00 grep mime |
#ps aux |grep mime
root 9101 0,0 0,0 1436 772 p4 R+ 16:25 0:00,00 grep mime |
#ps aux |grep mime
root 9101 0,0 0,0 1436 772 p4 R+ 16:25 0:00,00 grep mime |
#vi /usr/local/etc/mimedefang/sa-mimedefang.cf
26c26 < required_hits 5 --- > required_hits 1 |
#vi /usr/local/etc/mimedefang/sa-mimedefang.cf
26c26 < required_hits 5 --- > required_hits 1 |
#vi /usr/local/etc/mimedefang/sa-mimedefang.cf
26c26 < required_hits 5 --- > required_hits 1 |
#vi /usr/local/etc/mimedefang/sa-mimedefang.cf
26c26 < required_hits 5 --- > required_hits 1 |
#whoami
root |
#whoami
root |
#whoami
root |
#whoami
root |
#/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 ] |
#/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 ] |
#/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 ] |
#/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 ] |
#vi /etc/hosts
4a5 > 192.168.15.26 bezha.unix.nt. |
#vi /etc/hosts
4a5 > 192.168.15.26 bezha.unix.nt. |
#vi /etc/hosts
4a5 > 192.168.15.26 bezha.unix.nt. |
#vi /etc/hosts
4a5 > 192.168.15.26 bezha.unix.nt. |
#/etc/rc.d/sendmail restart
Stopping sendmail. Stopping sendmail_clientmqueue. Starting sendmail. |
#/etc/rc.d/sendmail restart
Stopping sendmail. Stopping sendmail_clientmqueue. Starting sendmail. |
#/etc/rc.d/sendmail restart
Stopping sendmail. Stopping sendmail_clientmqueue. Starting sendmail. |
#/etc/rc.d/sendmail restart
Stopping sendmail. Stopping sendmail_clientmqueue. Starting sendmail. |
#mail
exit Mail version 8.1 6/6/93. Type ? for help. "/var/mail/root": 13 messages 13 new >N 1 root@bezha.unix.nt Thu Nov 30 09:39 19/672 "privet" N 2 MAILER-DAEMON@bezha. Thu Nov 30 09:39 81/2539 "Returned mail: see tr" N 3 MAILER-DAEMON Thu Nov 30 09:43 67/2199 "Returned mail: see tr" N 4 MAILER-DAEMON@bezha. Thu Nov 30 09:43 81/2535 "Returned mail: see tr" N 5 root@bezha.unix.nt Thu Nov 30 09:44 18/644 "privet" N 6 MAILER-DAEMON@bezha. Thu Nov 30 09:44 81/2533 "Returned mail: see tr" N 7 root@bezha.unix.nt Thu Nov 30 09:44 19/670 "hi" ... From: Charlie Root <root> Message-Id: <200611300939.kAU9dCIN003063@bezha.unix.nt> The original message was received at Thu, 30 Nov 2006 09:39:12 GMT from root@localhost ----- The following addresses had permanent fatal errors ----- bezhi (reason: 550 5.1.1 <bezhi@bezha.unix.nt>... User unknown) (expanded from: bezhi) ot (reason: 550 5.1.1 <ot@bezha.unix.nt>... User unknown) |
#mail
exit Mail version 8.1 6/6/93. Type ? for help. "/var/mail/root": 13 messages 13 new >N 1 root@bezha.unix.nt Thu Nov 30 09:39 19/672 "privet" N 2 MAILER-DAEMON@bezha. Thu Nov 30 09:39 81/2539 "Returned mail: see tr" N 3 MAILER-DAEMON Thu Nov 30 09:43 67/2199 "Returned mail: see tr" N 4 MAILER-DAEMON@bezha. Thu Nov 30 09:43 81/2535 "Returned mail: see tr" N 5 root@bezha.unix.nt Thu Nov 30 09:44 18/644 "privet" N 6 MAILER-DAEMON@bezha. Thu Nov 30 09:44 81/2533 "Returned mail: see tr" N 7 root@bezha.unix.nt Thu Nov 30 09:44 19/670 "hi" ... From: Charlie Root <root> Message-Id: <200611300939.kAU9dCIN003063@bezha.unix.nt> The original message was received at Thu, 30 Nov 2006 09:39:12 GMT from root@localhost ----- The following addresses had permanent fatal errors ----- bezhi (reason: 550 5.1.1 <bezhi@bezha.unix.nt>... User unknown) (expanded from: bezhi) ot (reason: 550 5.1.1 <ot@bezha.unix.nt>... User unknown) |
#mail
exit Mail version 8.1 6/6/93. Type ? for help. "/var/mail/root": 13 messages 13 new >N 1 root@bezha.unix.nt Thu Nov 30 09:39 19/672 "privet" N 2 MAILER-DAEMON@bezha. Thu Nov 30 09:39 81/2539 "Returned mail: see tr" N 3 MAILER-DAEMON Thu Nov 30 09:43 67/2199 "Returned mail: see tr" N 4 MAILER-DAEMON@bezha. Thu Nov 30 09:43 81/2535 "Returned mail: see tr" N 5 root@bezha.unix.nt Thu Nov 30 09:44 18/644 "privet" N 6 MAILER-DAEMON@bezha. Thu Nov 30 09:44 81/2533 "Returned mail: see tr" N 7 root@bezha.unix.nt Thu Nov 30 09:44 19/670 "hi" ... From: Charlie Root <root> Message-Id: <200611300939.kAU9dCIN003063@bezha.unix.nt> The original message was received at Thu, 30 Nov 2006 09:39:12 GMT from root@localhost ----- The following addresses had permanent fatal errors ----- bezhi (reason: 550 5.1.1 <bezhi@bezha.unix.nt>... User unknown) (expanded from: bezhi) ot (reason: 550 5.1.1 <ot@bezha.unix.nt>... User unknown) |
#startx
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 bezha.unix.nt 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov 3 09:36:13 UTC 2005 root@x64.samsco.home:/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, ... f SSL3 RSA EXPORT WITH RC4 40 MD5 g SSL3 RSA EXPORT WITH RC2 CBC 40 MD5 h SSL3 FORTEZZA DMS WITH NULL SHA i SSL3 RSA WITH NULL MD5 j SSL3 RSA FIPS WITH 3DES EDE CBC SHA k SSL3 RSA FIPS WITH DES CBC SHA l SSL3 RSA EXPORT WITH DES CBC SHA (new) m SSL3 RSA EXPORT WITH RC4 56 SHA (new) server_args: not found waiting for X server to shut down FreeFontPath: FPE "/usr/X11R6/lib/X11/fonts/misc" refcount is 2, should be 1; fixing. |
#ps aux |grep cl
root 35 0,0 0,0 0 8 ?? WL 16:34 0:00,81 [swi4: clock s root 1134 0,0 0,0 348 228 p0 R+ 16:40 0:00,00 grep cl |
#ps waux |grep cl
root 35 0,0 0,0 0 8 ?? WL 16:34 0:00,85 [swi4: clock sio] smmsp 540 0,0 0,1 3296 2704 ?? Is 16:34 0:00,00 sendmail: Queue runner@00:30:00 for /var/spool/clientmqueue (sendm root 1141 0,0 0,0 380 252 p0 R+ 16:40 0:00,00 grep cl |
#/usr/local/etc/rc.d/clamav-
clamav-clamd.sh clamav-freshclam.sh clamav-milter.sh |
#/usr/local/etc/rc.d/clamav-clamd.sh start
Starting clamav_clamd. ERROR: Parse error at line 145: Unknown option user. ERROR: Can't open/parse the config file /usr/local/etc/clamd.conf |
#vi /etc/rc.conf
|
#/usr/local/etc/rc.d/clamav-clamd.sh start
Starting clamav_clamd. ERROR: Parse error at line 145: Unknown option user. ERROR: Can't open/parse the config file /usr/local/etc/clamd.conf |
#ls /usr/local/etc/
a2ps-site.cfg ksysguarddrc rsyncd.conf.sample a2ps.cfg lynx.cfg smb.conf.default bonobo-activation lynx.cfg.default snmp cdrecord mail snort.conf cdrecord.sample mimedefang snort.conf-sample clamd.conf openldap threshold.conf clamd.conf.default openslp threshold.conf-sample codepages orbit2rc unicode.map cups orbit2rc.default unicode.map-sample esd.conf pam.d wgetrc esd.conf.default qpopper xdg fam.conf qpopper.config.sample xinetd.conf freshclam.conf rc.d xml2Conf.sh freshclam.conf.default rsyncd.conf xsltConf.sh |
#vi clam.conf
|
#vi /usr/local/etc/clamd.conf
145c145 < user mailnull --- > User mailnull |
#/usr/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: ******************************************************** |
#/etc/rc.d/sendmail restart
Stopping sendmail. Stopping sendmail_clientmqueue. Waiting for PIDS: 540. Starting sendmail. |
#echo HELLO | mail -s hi user@bezha.unix.nt
|
#mail
Mail version 8.1 6/6/93. Type ? for help. "/var/mail/root": 13 messages 13 new >N 1 root@bezha.unix.nt Thu Nov 30 09:39 19/672 "privet" N 2 MAILER-DAEMON@bezha. Thu Nov 30 09:39 81/2539 "Returned mail: see tr" N 3 MAILER-DAEMON Thu Nov 30 09:43 67/2199 "Returned mail: see tr" N 4 MAILER-DAEMON@bezha. Thu Nov 30 09:43 81/2535 "Returned mail: see tr" N 5 root@bezha.unix.nt Thu Nov 30 09:44 18/644 "privet" N 6 MAILER-DAEMON@bezha. Thu Nov 30 09:44 81/2533 "Returned mail: see tr" N 7 root@bezha.unix.nt Thu Nov 30 09:44 19/670 "hi" N 8 MAILER-DAEMON@bezha. Thu Nov 30 09:44 93/2947 "Returned mail: see tr" N 9 root@bezha.unix.nt Thu Nov 30 09:47 19/670 "hi" N 10 MAILER-DAEMON@bezha. Thu Nov 30 09:47 93/2947 "Returned mail: see tr" N 11 MAILER-DAEMON@bezha. Thu Nov 30 09:50 93/2947 "Returned mail: see tr" N 12 MAILER-DAEMON@bezha. Thu Nov 30 09:56 93/2950 "Returned mail: see tr" N 13 MAILER-DAEMON@bezha. Thu Nov 30 09:57 69/2154 "Returned mail: see tr" & ^Z [2]+ Stopped mail |
#echo HELLO | mail -s hi user@bezha.unix.nt
|
#mail
Mail version 8.1 6/6/93. Type ? for help. "/var/mail/root": 13 messages 13 new >N 1 root@bezha.unix.nt Thu Nov 30 09:39 19/672 "privet" N 2 MAILER-DAEMON@bezha. Thu Nov 30 09:39 81/2539 "Returned mail: see tr" N 3 MAILER-DAEMON Thu Nov 30 09:43 67/2199 "Returned mail: see tr" N 4 MAILER-DAEMON@bezha. Thu Nov 30 09:43 81/2535 "Returned mail: see tr" N 5 root@bezha.unix.nt Thu Nov 30 09:44 18/644 "privet" N 6 MAILER-DAEMON@bezha. Thu Nov 30 09:44 81/2533 "Returned mail: see tr" N 7 root@bezha.unix.nt Thu Nov 30 09:44 19/670 "hi" N 8 MAILER-DAEMON@bezha. Thu Nov 30 09:44 93/2947 "Returned mail: see tr" N 9 root@bezha.unix.nt Thu Nov 30 09:47 19/670 "hi" N 10 MAILER-DAEMON@bezha. Thu Nov 30 09:47 93/2947 "Returned mail: see tr" N 11 MAILER-DAEMON@bezha. Thu Nov 30 09:50 93/2947 "Returned mail: see tr" N 12 MAILER-DAEMON@bezha. Thu Nov 30 09:56 93/2950 "Returned mail: see tr" N 13 MAILER-DAEMON@bezha. Thu Nov 30 09:57 69/2154 "Returned mail: see tr" & ^CInterrupt & ^[[A^CInterrupt & ^Z [3]+ Stopped mail |
#tail /var/log/maillog
Nov 30 16:47:05 bezha sm-mta[1306]: kAUGl56J001306: Milter add: header: X-Scanned-By: MIMEDefang 2.52 on 192.168.15.26 Nov 30 16:47:05 bezha sendmail[1300]: kAUGl5WG001300: to=user@bezha.unix.nt, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30042, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (kAUGl56J001306 Message accepted for delivery) Nov 30 16:47:05 bezha sm-mta[1307]: kAUGl56J001306: to=<user@bezha.unix.nt>, ctladdr=<root@bezha.unix.nt> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30645, relay=local, dsn=2.0.0, stat=Sent Nov 30 16:47:13 bezha sendmail[1317]: kAUGlDli001317: from=root, size=42, class=0, nrcpts=1, msgid=<200611301647.kAUGlDli001317@bezha.unix.nt>, relay=root@localhost Nov 30 16:47:13 bezha sm-mta[1323]: kAUGlDjf001323: from=<root@bezha.unix.nt>, size=342, class=0, nrcpts=1, msgid=<200611301647.kAUGlDli001317@bezha.unix.nt>, proto=ESMTP, daemon=IPv4, relay=localhost.bezha.unix.nt [127.0.0.1] Nov 30 16:47:13 bezha mimedefang.pl[635]: MDLOG,kAUGlDjf001323,mail_in,,,<root@bezha.unix.nt>,<user@bezha.unix.nt>,hi Nov 30 16:47:13 bezha sm-mta[1323]: kAUGlDjf001323: Milter delete (noop): header: X-Spam-Score Nov 30 16:47:13 bezha sm-mta[1323]: kAUGlDjf001323: Milter add: header: X-Scanned-By: MIMEDefang 2.52 on 192.168.15.26 Nov 30 16:47:13 bezha sendmail[1317]: kAUGlDli001317: to=user@bezha.unix.nt, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30042, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (kAUGlDjf001323 Message accepted for delivery) Nov 30 16:47:13 bezha sm-mta[1324]: kAUGlDjf001323: to=<user@bezha.unix.nt>, ctladdr=<root@bezha.unix.nt> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30645, relay=local, dsn=2.0.0, stat=Sent |
#echo HELLO | mail -s hi root@bezha.unix.nt
|
#mail
Mail version 8.1 6/6/93. Type ? for help. "/var/mail/root": 14 messages 14 new >N 1 root@bezha.unix.nt Thu Nov 30 09:39 19/672 "privet" N 2 MAILER-DAEMON@bezha. Thu Nov 30 09:39 81/2539 "Returned mail: see tr" N 3 MAILER-DAEMON Thu Nov 30 09:43 67/2199 "Returned mail: see tr" N 4 MAILER-DAEMON@bezha. Thu Nov 30 09:43 81/2535 "Returned mail: see tr" N 5 root@bezha.unix.nt Thu Nov 30 09:44 18/644 "privet" N 6 MAILER-DAEMON@bezha. Thu Nov 30 09:44 81/2533 "Returned mail: see tr" N 7 root@bezha.unix.nt Thu Nov 30 09:44 19/670 "hi" N 8 MAILER-DAEMON@bezha. Thu Nov 30 09:44 93/2947 "Returned mail: see tr" N 9 root@bezha.unix.nt Thu Nov 30 09:47 19/670 "hi" N 10 MAILER-DAEMON@bezha. Thu Nov 30 09:47 93/2947 "Returned mail: see tr" N 11 MAILER-DAEMON@bezha. Thu Nov 30 09:50 93/2947 "Returned mail: see tr" N 12 MAILER-DAEMON@bezha. Thu Nov 30 09:56 93/2950 "Returned mail: see tr" N 13 MAILER-DAEMON@bezha. Thu Nov 30 09:57 69/2154 "Returned mail: see tr" N 14 root@bezha.unix.nt Thu Nov 30 16:49 19/696 "hi" & ^CInterrupt & ^Z [4]+ Stopped mail |
#shutdown -r now
Shutdown NOW! shutdown: [pid 1573] |
#shutdown -r now
Shutdown NOW! shutdown: [pid 808] |
#cd /var/log/clamav/freshclam.log
bash: cd: /var/log/clamav/freshclam.log: Not a directory |
#cd /var/log/clamav/
|
#ls
clamd.log freshclam.log |
#ls -a
. .. clamd.log freshclam.log |
#ls -al
total 10 drwxr-xr-x 2 mailnull mailnull 512 30 ÎÏÑ 16:45 . drwxr-xr-x 3 root wheel 512 30 ÎÏÑ 16:37 .. -rw-r----- 1 root mailnull 2570 30 ÎÏÑ 17:00 clamd.log -rw-r--r-- 1 clamav clamav 1300 30 ÎÏÑ 15:14 freshclam.log |
#startx
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 bezha.unix.nt 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov 3 09:36:13 UTC 2005 root@x64.samsco.home:/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, ... f SSL3 RSA EXPORT WITH RC4 40 MD5 g SSL3 RSA EXPORT WITH RC2 CBC 40 MD5 h SSL3 FORTEZZA DMS WITH NULL SHA i SSL3 RSA WITH NULL MD5 j SSL3 RSA FIPS WITH 3DES EDE CBC SHA k SSL3 RSA FIPS WITH DES CBC SHA l SSL3 RSA EXPORT WITH DES CBC SHA (new) m SSL3 RSA EXPORT WITH RC4 56 SHA (new) server_args: not found waiting for X server to shut down FreeFontPath: FPE "/usr/X11R6/lib/X11/fonts/misc" refcount is 2, should be 1; fixing. |
#mail
Mail version 8.1 6/6/93. Type ? for help. "/var/mail/root": 14 messages 14 new >N 1 root@bezha.unix.nt Thu Nov 30 09:39 19/672 "privet" N 2 MAILER-DAEMON@bezha. Thu Nov 30 09:39 81/2539 "Returned mail: see tr" N 3 MAILER-DAEMON Thu Nov 30 09:43 67/2199 "Returned mail: see tr" N 4 MAILER-DAEMON@bezha. Thu Nov 30 09:43 81/2535 "Returned mail: see tr" N 5 root@bezha.unix.nt Thu Nov 30 09:44 18/644 "privet" N 6 MAILER-DAEMON@bezha. Thu Nov 30 09:44 81/2533 "Returned mail: see tr" N 7 root@bezha.unix.nt Thu Nov 30 09:44 19/670 "hi" N 8 MAILER-DAEMON@bezha. Thu Nov 30 09:44 93/2947 "Returned mail: see tr" ... Message-Id: <200611300950.kAU9oVIr003539@bezha.unix.nt> To: bezha, ot, privet, user@me.unix.nt The original message was received at Thu, 30 Nov 2006 09:50:31 GMT from root@localhost ----- The following addresses had permanent fatal errors ----- bezha (reason: 550 5.1.1 <bezha@bezha.unix.nt>... User unknown) (expanded from: bezha) ot (reason: 550 5.1.1 <ot@bezha.unix.nt>... User unknown) |
#chown mailnull:mailnull var/log/clamav/freshclam.log
chown: var/log/clamav/freshclam.log: No such file or directory |
#chown mailnull:mailnull /var/log/clamav/freshclam.log
|
#shutdown -r now
Shutdown NOW! shutdown: [pid 825] |
#mail
Mail version 8.1 6/6/93. Type ? for help. "/var/mail/root": 11 messages 11 unread >U 1 MAILER-DAEMON Thu Nov 30 09:43 68/2209 "Returned mail: see tr" U 2 MAILER-DAEMON@bezha. Thu Nov 30 09:43 82/2545 "Returned mail: see tr" U 3 root@bezha.unix.nt Thu Nov 30 09:44 19/654 "privet" U 4 MAILER-DAEMON@bezha. Thu Nov 30 09:44 82/2543 "Returned mail: see tr" U 5 root@bezha.unix.nt Thu Nov 30 09:44 20/680 "hi" U 6 MAILER-DAEMON@bezha. Thu Nov 30 09:44 94/2957 "Returned mail: see tr" U 7 root@bezha.unix.nt Thu Nov 30 09:47 20/680 "hi" U 8 MAILER-DAEMON@bezha. Thu Nov 30 09:47 94/2957 "Returned mail: see tr" U 9 MAILER-DAEMON@bezha. Thu Nov 30 09:56 94/2960 "Returned mail: see tr" U 10 MAILER-DAEMON@bezha. Thu Nov 30 09:57 70/2164 "Returned mail: see tr" U 11 root@bezha.unix.nt Thu Nov 30 16:49 20/706 "hi" & q Held 11 messages in /var/mail/root |
#cd /usr/ports/mail/mailgraph/
|
#make install
checking for the pthreads library -llthread... no checking whether pthreads work with -pthread... yes 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 ... rrd_graph_helper.c:340: warning: long int format, time_t arg (arg 3) rrd_graph_helper.c:342: warning: long int format, time_t arg (arg 2) 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=\"ÐÑÔÎÉÃÁ, 1 ÄÅËÁÂÒÑ 2006 Ç. 07:07:40 (UTC)\"" -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 -pedan if /bin/sh /usr/local/bin/libtool15 --tag=CC --mode=compile cc -DHAVE_CONFIG_H -DMAKE_TIMESTAMP=\""ÐÑÔÎÉÃÁ, 1 ÄÅËÁÂÒÑ 2006 Ç. 07:07:43 (UTC)"\" -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_ 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=\"ÐÑÔÎÉÃÁ, 1 ÄÅËÁÂÒÑ 2006 Ç. 07:07:43 (UTC)\"" -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 -pedan cc -DHAVE_CONFIG_H "-DMAKE_TIMESTAMP=\"ÐÑÔÎÉÃÁ, 1 ÄÅËÁÂÒÑ 2006 Ç. 07:07:43 (UTC)\"" -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 -pedan |
#vi /etc/rc.conf
15a16 > mailgraph_enable="YES" |
#chgrp www /var/db/mailgraph/
|
#chgrp www /var/db/mailog/
chgrp: /var/db/mailog/: No such file or directory |
#chgrp www /var/log/maillog
|
#/usr/local/etc/rc.d/mailgraph.sh start
Starting mailgraph. |
#ls /var/db/mailgraph/
mailgraph.pid mailgraph.rrd mailgraph_virus.rrd |
#pkg_add -r appache
Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.0-release/Latest/appache.tbz: File unavailable (e.g., file not found, no access) pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.0-release/Latest/appache.tbz' by URL |
#cd /usr/ports/
|
#make search name-appache
The search target requires a keyword parameter or name parameter, e.g.: "make search key=somekeyword" or "make search name=somekeyword" make: don't know how to make name-appache. Stop |
#make search name=appache
|
#make search name=apache
Maint: nistor@snickers.org B-deps: apache-2.0.54_4 expat-1.95.8_3 libiconv-1.9.2_1 mod_perl2-2.0.1,2 perl-5.8.7 R-deps: apache-2.0.54_4 expat-1.95.8_3 libiconv-1.9.2_1 mod_perl2-2.0.1,2 perl-5.8.7 WWW: http://search.cpan.org/dist/Apache-ParseFormData/ Port: p5-Apache-Peek-1.02 Path: /usr/ports/www/p5-Apache-Peek Info: A data debugging tool for the XS programmer (under mod_perl) Maint: skv@FreeBSD.org B-deps: apache-1.3.33_2 expat-1.95.8_3 mod_perl-1.29_1 p5-Apache-Test-1.26 p5-Authen-SASL-2.09 p5-Compress-Zlib-1.35 p5-Digest-1.10 p5-Digest-MD5-2.33 p5-HTML-Parser-3.45 p5-HTML-Tagset-3.04 p5-MIME-Base64-3.05 p5-Net-1.19,1 p5-PathTools-3.09 p5-Scalar-List-Utils-1.14,1 p5-URI-1.35 p5-libwww-5.803 perl-5.8.7 R-deps: apache-1.3.33_2 expat-1.95.8_3 mod_perl-1.29_1 p5-Apache-Test-1.26 p5-Authen-SASL-2.09 p5-Compress-Zlib-1.35 p5-Digest-1.10 p5-Digest-MD5-2.33 p5-HTML-Parser-3.45 p5-HTML-Tagset-3.04 p5-MIME-Base64-3.05 p5-Net-1.19,1 p5-PathTools-3.09 p5-Scalar-List-Utils-1.14,1 p5-URI-1.35 p5-libwww-5.803 perl-5.8.7 ... B-deps: apache-2.0.54_4 expat-1.95.8_3 gettext-0.14.5 gmake-3.80_2 libiconv-1.9.2_1 libtool-1.5.18 mod_perl2-2.0.1,2 p5-Cache-Cache-1.04_1 p5-Class-Container-0.11 p5-Class-Data-Inheritable-0.02_1 p5-Devel-StackTrace-1.11 p5-Digest-1.10 p5-Digest-MD5-2.33 p5-Digest-SHA1-2.10 p5-Error-0.15 p5-Exception-Class-1.20 p5-ExtUtils-XSBuilder-0.27 p5-HTML-Mason-1.28_2 p5-HTML-Parser-3.45 p5-HTML-Tagset-3.04 R-deps: apache-2.0.54_4 expat-1.95.8_3 gettext-0.14.5 gmake-3.80_2 libiconv-1.9.2_1 libtool-1.5.18 mod_perl2-2.0.1,2 p5-Cache-Cache-1.04_1 p5-Class-Container-0.11 p5-Class-Data-Inheritable-0.02_1 p5-Devel-StackTrace-1.11 p5-Digest-1.10 p5-Digest-MD5-2.33 p5-Digest-SHA1-2.10 p5-Error-0.15 p5-Exception-Class-1.20 p5-ExtUtils-XSBuilder-0.27 p5-HTML-Mason-1.28_2 p5-HTML-Parser-3.45 p5-HTML-Tagset-3.04 WWW: http://search.cpan.org/dist/MasonX-Apache2Handler/ Port: p5-MasonX-Request-WithApacheSession-0.30 Path: /usr/ports/www/p5-MasonX-Request-WithApacheSession Info: An interface to Apache::Session for HTML::Mason Maint: nick@foobar.org B-deps: p5-Apache-Session-1.60 p5-Apache-Session-Wrapper-0.21 p5-Archive-Tar-1.24 p5-Cache-Cache-1.04_1 p5-Class-Container-0.11 p5-Class-Data-Inheritable-0.02_1 p5-Compress-Zlib-1.35 p5-Devel-StackTrace-1.11 p5-Digest-1.10 p5-Digest-MD5-2.33 p5-Digest-SHA1-2.10 p5-Error-0.15 p5-Exception-Class-1.20 p5-ExtUtils-CBuilder-0.12 p5-ExtUtils-ParseXS-2.07 p5-HTML-Mason-1.28_2 p5-HTML-Parser-3.45 p5-HTML- R-deps: p5-Apache-Session-1.60 p5-Apache-Session-Wrapper-0.21 p5-Archive-Tar-1.24 p5-Cache-Cache-1.04_1 p5-Class-Container-0.11 p5-Class-Data-Inheritable-0.02_1 p5-Compress-Zlib-1.35 p5-Devel-StackTrace-1.11 p5-Digest-1.10 p5-Digest-MD5-2.33 p5-Digest-SHA1-2.10 p5-Error-0.15 p5-Exception-Class-1.20 p5-ExtUtils-CBuilder-0.12 p5-ExtUtils-ParseXS-2.07 p5-HTML-Mason-1.28_2 p5-HTML-Parser-3.45 p5-HTML- WWW: |
#pkg_add -r apache
Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.0-release/Latest/apache.tbz: File unavailable (e.g., file not found, no access) pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.0-release/Latest/apache.tbz' by URL |
#cd /usr/ports/www/
|
#ls
rubygem-rails rubygem-redcloth sarg sbox-dtc scout screem script4rss shttpd sidplug simplog ... zope-silvaviews zope-simpleblog zope-soapmethod zope-ttwtype zope-validation zope-xmlmethods zope-xmlwidgets zope-zmysqlda zope-zpt zope-zwiki |
#cd /usr/ports/www/a
abcache/ apache-jserv/ ashe/ admuser/ apache13/ asp2php/ adzap/ apache13+ipv6/ aswedit/ adzap2squirm/ apache13-modperl/ aswiki/ amaya/ apache13-modssl/ august/ amphetadesk/ apache13-modssl+ipv6/ auth_ldap/ amyc/ apache13-ssl/ autoindex/ analog/ apache2/ autoindex2/ aolserver/ apache20/ awstats/ aolserver-openacs-pg/ apache21/ axis/ apache-contrib/ arena/ apache-forrest/ aria/ |
#cd /usr/ports/www/apache21/
|
#make install
checking for ENGINE_load_builtin_engines... yes checking for SSL_set_cert_store... no adding "-I/usr/include" to INCLUDES adding "-L/usr/lib" to LDFLAGS forcing SSL_LIBS to "-lssl -lcrypto" gnome-config: not found forcing MOD_SSL_LDADD to "$(SSL_LIBS)" checking whether Distcache is required... no (default) adding "-export-symbols-regex" to MOD_SSL_LDADD adding "ssl_module" to MOD_SSL_LDADD ... *** Error code 1 Stop in /usr/ports/www/apache21/work/httpd-2.1.4-alpha/srclib/pcre. *** Error code 1 Stop in /usr/ports/www/apache21/work/httpd-2.1.4-alpha/srclib/pcre. *** Error code 1 Stop in /usr/ports/www/apache21/work/httpd-2.1.4-alpha/srclib. *** Error code 1 Stop in /usr/ports/www/apache21/work/httpd-2.1.4-alpha. *** Error code 1 Stop in /usr/ports/www/apache21. |
#ls
Makefile files pkg-plist Makefile.doc pkg-descr work Makefile.modules pkg-install distinfo pkg-message |
#cd ../
|
#ls
rubygem-rails rubygem-redcloth sarg sbox-dtc scout screem script4rss shttpd sidplug simplog ... zope-silvaviews zope-simpleblog zope-soapmethod zope-ttwtype zope-validation zope-xmlmethods zope-xmlwidgets zope-zmysqlda zope-zpt zope-zwiki |
#cd /usr/ports/www/apache
apache-contrib/ apache13+ipv6/ apache13-ssl/ apache-forrest/ apache13-modperl/ apache2/ apache-jserv/ apache13-modssl/ apache20/ apache13/ apache13-modssl+ipv6/ apache21/ |
#cd /usr/ports/www/apache13
|
#ls
Makefile files pkg-descr pkg-message distinfo pkg-deinstall pkg-install pkg-plist |
#make install
./src/helpers/mkdir.sh /usr/local/share/doc/apache mkdir /usr/local/share/doc/apache ./src/helpers/mkdir.sh /usr/local/www/icons mkdir /usr/local/www/icons ./src/helpers/mkdir.sh /usr/local/www/cgi-bin-dist mkdir /usr/local/www/cgi-bin-dist ./src/helpers/mkdir.sh /usr/local/include/apache mkdir /usr/local/include/apache ./src/helpers/mkdir.sh /usr/local/include/apache/xml mkdir /usr/local/include/apache/xml ... This port has installed the following startup scripts which may cause these network services to be started at boot time. /usr/local/etc/rc.d/apache.sh 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://httpd.apache.org/ |
#/usr/local/etc/rc.d/apache.sh start
|
#vi /etc/rc.conf
16a17 > apache_enable="YES" |
#/usr/local/etc/rc.d/apache.sh start
Starting apache. |
#tail -f /var/log/maillog
Dec 1 06:57:03 bezha sm-mta[740]: kB16uxa7000730: to=<user@bezha.unix.nt>, delay=00:00:04, xdelay=00:00:00, mailer=local, pri=32404, relay=local, dsn=2.0.0, stat=Sent Dec 1 06:59:31 bezha mimedefang-multiplexor[628]: Received SIGTERM: Stopping slaves and terminating Dec 1 06:59:31 bezha mimedefang-multiplexor[628]: Slave 1 resource usage: req=0, scans=0, user=1.154, sys=0.095, nswap=0, majflt=0, minflt=5727, maxrss=24728, bi=0, bo=0 Dec 1 06:59:31 bezha mimedefang-multiplexor[628]: Slave 0 resource usage: req=1, scans=1, user=1.240, sys=0.151, nswap=0, majflt=30, minflt=5854, maxrss=25304, bi=411, bo=0 Dec 1 07:00:54 bezha sm-mta[535]: starting daemon (8.13.4): SMTP+queueing@00:30:00 Dec 1 07:00:54 bezha sm-msp-queue[539]: starting daemon (8.13.4): queueing@00:30:00 Dec 1 07:00:57 bezha mimedefang-multiplexor[629]: started; minSlaves=2, maxSlaves=10, maxRequests=500, maxIdleTime=300, busyTimeout=600, clientTimeout=10 Dec 1 07:00:57 bezha mimedefang-multiplexor[629]: Starting slave 0 (pid 632) (1 running): Bringing slaves up to minSlaves (2) Dec 1 07:00:57 bezha mimedefang[642]: Multiplexor alive - entering main loop Dec 1 07:01:00 bezha mimedefang-multiplexor[629]: Starting slave 1 (pid 739) (2 running): Bringing slaves up to minSlaves (2) ^Z [1]+ Stopped tail -f /var/log/maillog |
#vi /usr/local/etc/rc.d/mailgraph.sh
30c30 < mailgraph_flags=${mailgraph_flags:-"--logfile /var/log/maillog --daemon-rrd=/var/db/mailgraph --ignore-localhost --daemon --daemon-pid=${mailgraph_pidfile}"} --- > mailgraph_flags=${mailgraph_flags:-"--logfile /var/log/maillog --daemon-rrd=/var/db/mailgraph --daemon --daemon-pid=${mailgraph_pidfile}"} |
#/usr/local/etc/rc.d/mailgraph.sh restart
Stopping mailgraph. Starting mailgraph. |
#cd /usr/ports/
|
#make search name-squide
The search target requires a keyword parameter or name parameter, e.g.: "make search key=somekeyword" or "make search name=somekeyword" make: don't know how to make name-squide. Stop |
#make search name-squid
The search target requires a keyword parameter or name parameter, e.g.: "make search key=somekeyword" or "make search name=somekeyword" make: don't know how to make name-squid. Stop |
Время первой команды журнала | 18:25:00 2006-11-30 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 09:49:31 2006-12- 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 12.87 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.50 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.12 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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