/l3/users/clint/nt-lNet/linux4.linux.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 |
|
#mail
Mail version 8.1.2 01/15/2001. Type ? for help. "/var/mail/root": 1 message 1 unread >U 1 MAILER-DAEMON@loc Thu Sep 21 15:09 65/2494 Returned mail: see transcript for details & & q Saved 1 message in /root/mboxlocaldomain Thu Sep 21 15:09:46 2006 Date: Thu, 21 Sep 2006 15:09:46 +0300 From: Mail Delivery Subsystem <MAILER-DAEMON@localhost.localdomain> To: <root@localhost.localdomain> MIME-Version: 1.0 ... This is a MIME-encapsulated message --k8LC9k9Z013518.1158840586/yellow.sergey.unix.nt The original message was received at Thu, 21 Sep 2006 15:09:42 +0300 from smmsp@localhost [127.0.0.1] ----- The following addresses had permanent fatal errors ----- <user@lav.unix.nt> (reason: 553 5.1.2 <root@localhost.localdomain>... Unrecognized host name localhost.localdomain) ----- Transcript of session follows ----- ... while talking to server2.lav.unix.nt.: >>> MAIL From:<root@localhost.localdomain> SIZE=550 AUTH=<> |
#mail
![]() No mail for root |
#mail user@lav.unix.nt
Sep 21 14:40:49 linux4 sendmail[12432]: k8LBenF0012432: to=user@server2.lav.unix.nt, ctladdr=user (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30053, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k8LBengH012435 Message accepted for delivery) Sep 21 14:40:50 linux4 sm-mta[12438]: k8LBengH012435: to=<user@server2.lav.unix.nt>, ctladdr=<user@yellow.sergey.linux.nt> (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120360, relay=server2.lav.unix.nt. [192.168.15.2], dsn=5.6.0, stat=Data format error Sep 21 14:40:50 linux4 sm-mta[12438]: k8LBengH012435: k8LBeogH012438: DSN: Data format error Sep 21 14:40:50 linux4 sm-mta[12438]: k8LBeogH012438: to=<user@yellow.sergey.linux.nt>, delay=00:00:00, mailer=local, pri=30000, dsn=4.4.3, stat=queued Sep 21 14:42:47 linux4 sendmail[12462]: k8LBglEd012462: from=user, size=291, class=0, nrcpts=1, msgid=<20060921114227.GA12445@localhost.localdomain>, relay=user@localhost Sep 21 14:42:57 linux4 sm-mta[12473]: k8LBgl2Z012473: from=<user@yellow.sergey.linux.nt>, size=495, class=0, nrcpts=1, msgid=<20060921114227.GA12445@localhost.localdomain>, proto=ESMTP, daemon=MSP-v4, relay=user@localhost [127.0.0.1] Sep 21 14:42:57 linux4 sendmail[12462]: k8LBglEd012462: to=user@server2.lav.unix.nt, ctladdr=user (1000/1000), delay=00:00:10, xdelay=00:00:10, mailer=relay, pri=30291, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k8LBgl2Z012473 Message accepted for delivery) Sep 21 14:42:58 linux4 sm-mta[12476]: k8LBgl2Z012473: to=<user@server2.lav.unix.nt>, ctladdr=<user@yellow.sergey.linux.nt> (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120495, relay=server2.lav.unix.nt. [192.168.15.2], dsn=5.6.0, stat=Data format error Sep 21 14:42:58 linux4 sm-mta[12476]: k8LBgl2Z012473: k8LBgw2Z012476: DSN: Data format error Sep 21 14:42:58 linux4 sm-mta[12476]: k8LBgw2Z012476: to=<user@yellow.sergey.linux.nt>, delay=00:00:00, mailer=local, pri=30000, dsn=4.4.3, stat=queued ... Sep 21 15:13:03 linux4 sendmail[13617]: k8LCD33R013617: from=root, size=41, class=0, nrcpts=1, msgid=<200609211213.k8LCD33R013617@yellow.sergey.unix.nt>, relay=root@localhost Sep 21 15:13:03 linux4 sm-mta[13620]: k8LCD3M1013620: from=<root@yellow.sergey.unix.nt>, size=337, class=0, nrcpts=1, msgid=<200609211213.k8LCD33R013617@yellow.sergey.unix.nt>, proto=ESMTP, daemon=MSP-v4, relay=smmsp@localhost [127.0.0.1] Sep 21 15:13:03 linux4 sendmail[13617]: k8LCD33R013617: to=user@lav.unix.nt, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30041, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k8LCD3M1013620 Message accepted for delivery) Sep 21 15:13:04 linux4 sm-mta[13623]: k8LCD3M1013620: to=<user@lav.unix.nt>, ctladdr=<root@yellow.sergey.unix.nt> (0/0), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120337, relay=server2.lav.unix.nt. [192.168.15.2], dsn=5.6.0, stat=Data format error Sep 21 15:13:04 linux4 sm-mta[13623]: k8LCD3M1013620: k8LCD4M1013623: DSN: Data format error Sep 21 15:13:04 linux4 sm-mta[13623]: k8LCD4M1013623: to=<root@yellow.sergey.unix.nt>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30000, dsn=2.0.0, stat=Sent Subject: rerr qwre . Cc: |
#dig @127.0.0.1 lav.unix.nt mx
; <<>> DiG 9.2.4 <<>> @127.0.0.1 lav.unix.nt mx ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61597 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; QUESTION SECTION: ;lav.unix.nt. IN MX ;; ANSWER SECTION: lav.unix.nt. 10373 IN MX 10 server2.lav.unix.nt. ;; AUTHORITY SECTION: lav.unix.nt. 10373 IN NS server2.lav.unix.nt. ;; ADDITIONAL SECTION: server2.lav.unix.nt. 10373 IN A 192.168.15.2 ;; Query time: 18 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Sep 21 15:13:31 2006 ;; MSG SIZE rcvd: 83 |
#dig @127.0.0.1 sergey.unix.nt mx
; <<>> DiG 9.2.4 <<>> @127.0.0.1 sergey.unix.nt mx ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45799 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; QUESTION SECTION: ;sergey.unix.nt. IN MX ;; ANSWER SECTION: sergey.unix.nt. 86400 IN MX 1 yellow.sergey.unix.nt. ;; AUTHORITY SECTION: sergey.unix.nt. 86400 IN NS yellow.sergey.unix.nt. ;; ADDITIONAL SECTION: yellow.sergey.unix.nt. 86400 IN A 192.168.15.4 ;; Query time: 18 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Sep 21 15:14:00 2006 ;; MSG SIZE rcvd: 85 |
#mutt
Оставлено: 1, удалено: 0. |
#mutt
1 + Sep 21 Mail Delivery S ( 47) Returned mail: see transcript for details ---Mutt: /var/mail/root [Msgs:1 2,5K]---(threads/date)-----------------------------------------------------------------------------------------------------------(all)--- Почтовый ящик не изменился. |
#mutt
D+- 1/1: Mail Delivery Subsys Returned mail: see transcript for details Оставлено: 0, удалено: 1. |
#mutt
---Mutt: /var/mail/root [Msgs:0]---(threads/date)----------------------------------------------------------------------------------------------------------------(all)--- Почтовый ящик не изменился. |
#dig debian.unix.nt mx
; <<>> DiG 9.2.4 <<>> debian.unix.nt mx ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 25353 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;debian.unix.nt. IN MX ;; AUTHORITY SECTION: . 10781 IN SOA A.ROOT-SERVERS.NET. NSTLD.VERISIGN-GRS.COM. 2006092001 1800 900 604800 86400 ;; Query time: 17 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Sep 21 15:21:24 2006 ;; MSG SIZE rcvd: 107 |
#dig debian.linux.nt mx
; <<>> DiG 9.2.4 <<>> debian.linux.nt mx ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52060 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; QUESTION SECTION: ;debian.linux.nt. IN MX ;; ANSWER SECTION: debian.linux.nt. 10359 IN MX 1 debian.debian.linux.nt. ;; AUTHORITY SECTION: debian.linux.nt. 10359 IN NS debian.debian.linux.nt. ;; ADDITIONAL SECTION: debian.debian.linux.nt. 10359 IN A 192.168.15.3 ;; Query time: 20 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Sep 21 15:21:34 2006 ;; MSG SIZE rcvd: 86 |
#vi sendmail.mc
105c105 < MASQUERADE_AS(`localhost.localdomain')dnl --- > MASQUERADE_AS(`yellow.sergey.unix.nt')dnl |
#make
Updating databases ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/databases... Updating auth ... sasl2-bin not installed, not configuring sendmail support. To enable sendmail SASL2 support at a later date, invoke "/usr/share/sendmail/update_auth" Creating /etc/mail/relay-domains # Optional file... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... The following file(s) have changed: /etc/mail/sendmail.cf ** ** You should issue `/etc/init.d/sendmail reload` ** ** |
#mail
Mail version 8.1.2 01/15/2001. Type ? for help. "/var/mail/root": 13 messages 13 new >N 1 MAILER-DAEMON@loc Thu Sep 21 15:21 62/2313 Postmaster notify: see transcript for details N 2 MAILER-DAEMON@loc Thu Sep 21 15:21 62/2313 Postmaster notify: see transcript for details N 3 MAILER-DAEMON@loc Thu Sep 21 15:21 62/2313 Postmaster notify: see transcript for details N 4 MAILER-DAEMON@loc Thu Sep 21 15:21 62/2313 Postmaster notify: see transcript for details N 5 MAILER-DAEMON@loc Thu Sep 21 15:21 62/2313 Postmaster notify: see transcript for details N 6 MAILER-DAEMON@loc Thu Sep 21 15:21 62/2313 Postmaster notify: see transcript for details N 7 MAILER-DAEMON@loc Thu Sep 21 15:21 62/2313 Postmaster notify: see transcript for details N 8 MAILER-DAEMON@loc Thu Sep 21 15:21 62/2313 Postmaster notify: see transcript for details N 9 MAILER-DAEMON@loc Thu Sep 21 15:21 62/2313 Postmaster notify: see transcript for details N 10 MAILER-DAEMON@loc Thu Sep 21 15:21 62/2313 Postmaster notify: see transcript for details N 11 MAILER-DAEMON@loc Thu Sep 21 15:21 62/2313 Postmaster notify: see transcript for details N 12 MAILER-DAEMON@loc Thu Sep 21 15:21 62/2310 Postmaster notify: see transcript for details N 13 MAILER-DAEMON@loc Thu Sep 21 15:21 62/2310 Postmaster notify: see transcript for details & q Held 13 messages in /var/mail/root |
#mutt
O - 13/13: Mail Delivery Subsys Postmaster notify: see transcript for details 13 Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details Оставлено: 13, удалено: 0. |
#mutt
2 OD Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details 3 OD Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details 4 OD Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details 5 OD Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details 6 OD Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details 7 OD Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details 8 OD Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details 9 OD Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details 10 OD Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details 11 OD Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details 12 D Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details 12 D Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details 13 Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details 8 O Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details 9 O Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details 10 O Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details 11 O Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details 12 Sep 21 Mail Delivery S ( 46) Postmaster notify: see transcript for details -*-Mutt: /var/mail/root [Msgs:13 Old:11 Del:13 29K]---(threads/date)---------------------------------------------------------------------------------------------(all)--- Оставлено: 0, удалено: 13. |
#make
Updating auth ... sasl2-bin not installed, not configuring sendmail support. To enable sendmail SASL2 support at a later date, invoke "/usr/share/sendmail/update_auth" Creating /etc/mail/relay-domains # Optional file... The following file(s) have changed: /etc/mail/sendmail.cf ** ** You should issue `/etc/init.d/sendmail reload` ** ** |
#make
Updating auth ... sasl2-bin not installed, not configuring sendmail support. To enable sendmail SASL2 support at a later date, invoke "/usr/share/sendmail/update_auth" Creating /etc/mail/relay-domains # Optional file... The following file(s) have changed: /etc/mail/sendmail.cf ** ** You should issue `/etc/init.d/sendmail reload` ** ** |
#/etc/init.d/sendmail restart
Sep 21 14:53:30 linux4 sendmail[12617]: k8LBrTRG012617: from=user, size=480, class=0, nrcpts=1, msgid=<20060921115329.GD12515@localhost.localdomain>, relay=user@localhost Sep 21 14:53:30 linux4 sm-mta[12620]: k8LBrUkG012620: from=<user@yellow.sergey.linux.nt>, size=684, class=0, nrcpts=1, msgid=<20060921115329.GD12515@localhost.localdomain>, proto=ESMTP, daemon=MSP-v4, relay=user@localhost [127.0.0.1] Sep 21 14:53:30 linux4 sendmail[12617]: k8LBrTRG012617: to=user@server2.lav.unix.nt, ctladdr=user (1000/1000), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30480, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k8LBrUkG012620 Message accepted for delivery) Sep 21 14:53:31 linux4 sm-mta[12623]: k8LBrUkG012620: to=<user@server2.lav.unix.nt>, ctladdr=<user@yellow.sergey.linux.nt> (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120684, relay=server2.lav.unix.nt. [192.168.15.2], dsn=5.6.0, stat=Data format error Sep 21 14:53:31 linux4 sm-mta[12623]: k8LBrUkG012620: k8LBrVkG012623: DSN: Data format error Sep 21 14:53:31 linux4 sm-mta[12623]: k8LBrVkG012623: to=<user@yellow.sergey.linux.nt>, delay=00:00:00, mailer=local, pri=30000, dsn=4.4.3, stat=queued Sep 21 14:54:02 linux4 sendmail[12643]: k8LBs211012643: from=user, size=43, class=0, nrcpts=1, msgid=<200609211154.k8LBs211012643@yellow.sergey.linux.nt>, relay=user@localhost Sep 21 14:54:02 linux4 sm-mta[12646]: k8LBs2K7012646: from=<user@yellow.sergey.linux.nt>, size=342, class=0, nrcpts=1, msgid=<200609211154.k8LBs211012643@yellow.sergey.linux.nt>, proto=ESMTP, daemon=MSP-v4, relay=user@localhost [127.0.0.1] Sep 21 14:54:03 linux4 sendmail[12643]: k8LBs211012643: to=user@lav.unix.nt, ctladdr=user (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30043, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k8LBs2K7012646 Message accepted for delivery) Sep 21 14:54:04 linux4 sm-mta[12649]: k8LBs2K7012646: to=<user@lav.unix.nt>, ctladdr=<user@yellow.sergey.linux.nt> (1000/1000), delay=00:00:02, xdelay=00:00:01, mailer=esmtp, pri=120342, relay=server2.lav.unix.nt. [192.168.15.2], dsn=5.6.0, stat=Data format error ... Sep 21 15:22:56 linux4 sm-mta[13914]: k8LCMuvH013914: from=<user@yellow.sergey.unix.nt>, size=354, class=0, nrcpts=2, msgid=<200609211222.k8LCMuEt013911@yellow.sergey.unix.nt>, proto=ESMTP, daemon=MSP-v4, relay=user@localhost [127.0.0.1] Sep 21 15:22:57 linux4 sendmail[13911]: k8LCMuEt013911: to=user@yuriksat.linux.nt,user@debian.linux.nt, ctladdr=user (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=60079, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k8LCMuvH013914 Message accepted for delivery) Sep 21 15:22:58 linux4 sm-mta[13917]: k8LCMuvH013914: to=<user@debian.linux.nt>, ctladdr=<user@yellow.sergey.unix.nt> (1000/1000), delay=00:00:02, xdelay=00:00:01, mailer=esmtp, pri=150354, relay=debian.debian.linux.nt. [192.168.15.3], dsn=2.0.0, stat=Sent (k8LCMxfq010623 Message accepted for delivery) Sep 21 15:22:59 linux4 sm-mta[13917]: k8LCMuvH013914: to=<user@yuriksat.linux.nt>, ctladdr=<user@yellow.sergey.unix.nt> (1000/1000), delay=00:00:03, xdelay=00:00:01, mailer=esmtp, pri=150354, relay=yuriksat.yuriksat.linux.nt. [192.168.15.2], dsn=5.6.0, stat=Data format error Sep 21 15:22:59 linux4 sm-mta[13917]: k8LCMuvH013914: k8LCMxvH013917: DSN: Data format error Sep 21 15:22:59 linux4 sm-mta[13917]: k8LCMxvH013917: to=<user@yellow.sergey.unix.nt>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30000, dsn=2.0.0, stat=Sent Sep 21 15:24:17 linux4 sm-mta[13952]: k8LCOGMB013952: from=<root@localhost.localdomain>, size=545, class=0, nrcpts=1, msgid=<200609211224.k8LCOIDF010722@debian.debian.linux.nt>, proto=ESMTP, daemon=MTA-v4, relay=root@debian.debian.linux.nt [192.168.15.3] Sep 21 15:24:17 linux4 sm-mta[13953]: k8LCOGMB013952: to=<user@sergey.unix.nt>, ctladdr=<root@localhost.localdomain> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30787, dsn=2.0.0, stat=Sent Sep 21 15:27:11 linux4 sm-mta[14215]: starting daemon (8.13.8): SMTP+queueing@00:10:00 Restarting Transport Agent: sendmail. |
#mutt
Оставлено: 1, удалено: 0. |
#dig lav.unix.nt mx
; <<>> DiG 9.2.4 <<>> lav.unix.nt mx ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13835 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; QUESTION SECTION: ;lav.unix.nt. IN MX ;; ANSWER SECTION: lav.unix.nt. 9221 IN MX 10 server2.lav.unix.nt. ;; AUTHORITY SECTION: lav.unix.nt. 9221 IN NS server2.lav.unix.nt. ;; ADDITIONAL SECTION: server2.lav.unix.nt. 9221 IN A 192.168.15.2 ;; Query time: 18 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Sep 21 15:32:43 2006 ;; MSG SIZE rcvd: 83 |
#rndc flush
|
#dig lav.unix.nt mx
; <<>> DiG 9.2.4 <<>> lav.unix.nt mx ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50676 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; QUESTION SECTION: ;lav.unix.nt. IN MX ;; ANSWER SECTION: lav.unix.nt. 9210 IN MX 10 server2.lav.unix.nt. ;; AUTHORITY SECTION: lav.unix.nt. 9210 IN NS server2.lav.unix.nt. ;; ADDITIONAL SECTION: server2.lav.unix.nt. 9210 IN A 192.168.15.2 ;; Query time: 20 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Sep 21 15:32:55 2006 ;; MSG SIZE rcvd: 83 |
#rndc flush
|
#rndc flush
|
#rndc flush
|
#dig lav.unix.nt mx
; <<>> DiG 9.2.4 <<>> lav.unix.nt mx ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5068 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; QUESTION SECTION: ;lav.unix.nt. IN MX ;; ANSWER SECTION: lav.unix.nt. 10800 IN MX 10 server2.lav.unix.nt. ;; AUTHORITY SECTION: lav.unix.nt. 10800 IN NS server2.lav.unix.nt. ;; ADDITIONAL SECTION: server2.lav.unix.nt. 10800 IN A 192.168.15.21 ;; Query time: 23 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Sep 21 15:33:32 2006 ;; MSG SIZE rcvd: 83 |
#ls /home
linux-2.6.15.2.tar.bz2 linux-2.6.16.13.tar.bz2 linux-2.6.16-xen3.0.2-hg9629.patch.gz linux-source-2.6.16.tar.bz2 lost+found user xen-unstable-src.tgz You have new mail in /var/mail/root |
#tar xvjfC /home/linux-2.6.16.13.tar.bz2 /usr/src
linux-2.6.16.13/Documentation/video4linux/README.saa7134 linux-2.6.16.13/Documentation/video4linux/Zoran linux-2.6.16.13/Documentation/video4linux/bttv/ linux-2.6.16.13/Documentation/video4linux/bttv/CONTRIBUTORS linux-2.6.16.13/Documentation/video4linux/bttv/Cards linux-2.6.16.13/Documentation/video4linux/bttv/ICs linux-2.6.16.13/Documentation/video4linux/bttv/Insmod-options linux-2.6.16.13/Documentation/video4linux/bttv/MAKEDEV linux-2.6.16.13/Documentation/video4linux/bttv/Modprobe.conf linux-2.6.16.13/Documentation/video4linux/bttv/Modules.conf ... linux-2.6.16.13/arch/alpha/kernel/sys_titan.c linux-2.6.16.13/arch/alpha/kernel/sys_wildfire.c linux-2.6.16.13/arch/alpha/kernel/systbls.S linux-2.6.16.13/arch/alpha/kernel/time.c linux-2.6.16.13/arch/alpha/kernel/traps.c linux-2.6.16.13/arch/alpha/kernel/vmlinux.lds.S linux-2.6.16.13/arch/alpha/lib/ linux-2.6.16.13/arch/alpha/lib/Makefile linux-2.6.16.13/arch/alpha/lib/callback_srm.S linux-2.6.16.13/arch/alpha/lib/checksum.c |
#cd linux-2.6.1
![]() linux-2.6.15.2 linux-2.6.15.2.tar.bz2 linux-2.6.16.13 |
#cd linux-2.6.16.13/
|
#cd..
![]() bash: cd..: command not found |
#cd ..
|
#ls
linux-2.6.15.2 linux-2.6.15.2.tar.bz2 linux-2.6.16.13 xen-unstable |
#cd -
/usr/src/linux-2.6.16.13 |
#make menuconfig
x x x x Loadable module support ---> x lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x Processor type and features ---> x x Power management options (ACPI, APM) ---> x x Bus options (PCI, PCMCIA, EISA, MCA, ISA) ---> x x Executable file formats ---> x x Networking ---> x x Device Drivers ---> x x ... x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x |
#make && make modules_install && make install
![]() CC [M] fs/reiserfs/hashes.o CC [M] fs/reiserfs/tail_conversion.o CC [M] fs/reiserfs/journal.o CC [M] fs/reiserfs/resize.o CC [M] fs/reiserfs/item_ops.o CC [M] fs/reiserfs/ioctl.o CC [M] fs/reiserfs/procfs.o LD [M] fs/reiserfs/reiserfs.o LD fs/romfs/built-in.o CC [M] fs/romfs/inode.o ... CC [M] fs/xfs/linux-2.6/xfs_aops.o CC [M] fs/xfs/linux-2.6/xfs_buf.o CC [M] fs/xfs/linux-2.6/xfs_file.o CC [M] fs/xfs/linux-2.6/xfs_fs_subr.o CC [M] fs/xfs/linux-2.6/xfs_globals.o CC [M] fs/xfs/linux-2.6/xfs_ioctl.o CC [M] fs/xfs/linux-2.6/xfs_iops.o make[2]: *** [fs/xfs/linux-2.6/xfs_iops.o] Interrupt make[1]: *** [fs/xfs] Interrupt make: *** [fs] Interrupt |
#make clean
CLEAN /usr/src/linux-2.6.16.13 CLEAN arch/i386/kernel CLEAN init CLEAN kernel CLEAN usr CLEAN .tmp_versions |
#cp ../.config .
|
#ls .config
.config |
#reboot
|
#sendmail -bt
WARNING: local host name (;; connection timed out; no servers could be reached) is not qualified; see cf/README: WHO AM I? ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter <ruleset> <address> > interrupt > interrupt > /q Unknown "/" command /q > q No address! > quit No address! |
#sendmail -bv user@server2.lav.unix.nt
user@server2.lav.unix.nt... deliverable: mailer esmtp, host server2.lav.unix.nt., user user@server2.lav.unix.nt |
#sendmail -bv user@lav.unix.nt
user@lav.unix.nt... deliverable: mailer esmtp, host lav.unix.nt., user user@lav.unix.nt |
#tail -f /var/log/mail.log
![]() Sep 21 16:09:31 linux4 sendmail[5313]: gethostbyaddr(192.168.15.45) failed: 1 Sep 21 16:09:31 linux4 sendmail[5313]: gethostbyaddr(10.0.17.1) failed: 1 Sep 21 16:11:08 linux4 sm-mta[5321]: k8LDB7TC005321: from=<user@server2.lav.unix.nt>, size=724, class=0, nrcpts=1, msgid=<20060921131204.GA8513@server2.lav.unix.nt>, proto=ESMTP, daemon=MTA-v4, relay=fbsd1.linux.nt [192.168.15.21] Sep 21 16:11:08 linux4 sm-mta[5322]: k8LDB7TC005321: to=<user@sergey.unix.nt>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30962, dsn=2.0.0, stat=Sent Sep 21 16:11:32 linux4 sendmail[5334]: k8LDBWSS005334: from=user, size=503, class=0, nrcpts=1, msgid=<20060921131132.GA5324@localhost.localdomain>, relay=user@localhost Sep 21 16:11:32 linux4 sm-mta[5337]: k8LDBWYl005337: from=<user@linux4.linux.nt>, size=693, class=0, nrcpts=1, msgid=<20060921131132.GA5324@localhost.localdomain>, proto=ESMTP, daemon=MSP-v4, relay=user@localhost [127.0.0.1] Sep 21 16:11:32 linux4 sendmail[5334]: k8LDBWSS005334: to=user@server2.lav.unix.nt, ctladdr=user (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30503, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k8LDBWYl005337 Message accepted for delivery) Sep 21 16:11:32 linux4 sm-mta[5346]: k8LDBWYl005337: to=<user@server2.lav.unix.nt>, ctladdr=<user@linux4.linux.nt> (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120693, relay=server2.lav.unix.nt. [192.168.15.21], dsn=5.0.0, stat=Service unavailable Sep 21 16:11:32 linux4 sm-mta[5346]: k8LDBWYl005337: k8LDBWYl005346: DSN: Service unavailable Sep 21 16:11:32 linux4 sm-mta[5346]: k8LDBWYl005346: to=<user@linux4.linux.nt>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30000, dsn=2.0.0, stat=Sent |
#cat /etc/mail/local-host-names
localhost linux4.linux.nt sergey.unix.nt yellow.sergey.unix.nt |
#sendmail -d0.1 -bt < /dev/null
Version 8.13.8 Compiled with: DNSMAP LDAPMAP LDAP_REFERRALS LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6 NETUNIX NEWDB NIS NISPLUS PIPELINING SASLv2 SCANF SOCKETMAP STARTTLS USERDB USE_LDAP_INIT XDEBUG ============ SYSTEM IDENTITY (after readcf) ============ (short domain name) $w = linux4 (canonical domain name) $j = ;; connection timed out; no servers could be reached (subdomain name) $m = linux.nt (node name) $k = linux4.linux.nt ======================================================== WARNING: local host name (;; connection timed out; no servers could be reached) is not qualified; see cf/README: WHO AM I? ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter <ruleset> <address> |
#cd /etc/mail
|
#make
Updating databases ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/databases... Updating auth ... sasl2-bin not installed, not configuring sendmail support. To enable sendmail SASL2 support at a later date, invoke "/usr/share/sendmail/update_auth" Creating /etc/mail/relay-domains # Optional file... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... The following file(s) have changed: /etc/mail/sendmail.cf ** ** You should issue `/etc/init.d/sendmail reload` ** ** |
#/etc/init.d/sendmail restart
Restarting Transport Agent: sendmail. |
#vi sendmail.mc
|
#netstat -lnp | grep :110
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 4080/popa3d |
#cd /usr/src/linux-2.6.16.13/
|
#make && make modules_install && make install
drivers/char/stallion.c:1145: warning: `restore_flags' is deprecated (declared at include/linux/interrupt.h:84) drivers/char/stallion.c:1190: warning: `restore_flags' is deprecated (declared at include/linux/interrupt.h:84) drivers/char/stallion.c: In function `stl_getportstats': drivers/char/stallion.c:2899: warning: `save_flags' is deprecated (declared at include/linux/interrupt.h:79) drivers/char/stallion.c:2900: warning: `cli' is deprecated (declared at include/linux/interrupt.h:71) drivers/char/stallion.c:2914: warning: `restore_flags' is deprecated (declared at include/linux/interrupt.h:84) drivers/char/stallion.c: In function `stl_cd1400setport': drivers/char/stallion.c:3448: warning: `save_flags' is deprecated (declared at include/linux/interrupt.h:79) drivers/char/stallion.c:3449: warning: `cli' is deprecated (declared at include/linux/interrupt.h:71) drivers/char/stallion.c:3486: warning: `restore_flags' is deprecated (declared at include/linux/interrupt.h:84) drivers/char/stallion.c: In function `stl_cd1400setsignals': 104 # key= Path to SSL private key file (PEM format) 117,1 2% |
#sendmail -d0.1 -bt < /dev/null
Version 8.13.8 Compiled with: DNSMAP LDAPMAP LDAP_REFERRALS LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6 NETUNIX NEWDB NIS NISPLUS PIPELINING SASLv2 SCANF SOCKETMAP STARTTLS USERDB USE_LDAP_INIT XDEBUG ============ SYSTEM IDENTITY (after readcf) ============ (short domain name) $w = linux4 (canonical domain name) $j = $w.$m (subdomain name) $m = linux.nt (node name) $k = linux4.linux.nt ======================================================== ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter <ruleset> <address> |
#ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:60:08:20:7B:0B inet addr:192.168.15.45 Bcast:192.168.15.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:16 Base address:0xc400 |
#ifconfig eth1 192.168.16.1
|
#iptables -t nat -A POSTROUTING -j MASQUERADE
|
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:76:A1:EF:BB inet addr:192.168.15.4 Bcast:192.168.15.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:39288 errors:0 dropped:0 overruns:0 frame:0 TX packets:43595 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4460332 (4.2 MiB) TX bytes:21699249 (20.6 MiB) Interrupt:17 Base address:0xc000 eth1 Link encap:Ethernet HWaddr 00:60:08:20:7B:0B inet addr:192.168.16.1 Bcast:192.168.16.255 Mask:255.255.255.0 ... inet addr:10.0.17.1 Bcast:10.255.255.255 Mask:255.0.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Interrupt:16 Base address:0xc400 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:2805 errors:0 dropped:0 overruns:0 frame:0 TX packets:2805 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:12551774 (11.9 MiB) TX bytes:12551774 (11.9 MiB) |
#ifconfig eth1:1 down
|
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:76:A1:EF:BB inet addr:192.168.15.4 Bcast:192.168.15.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:39294 errors:0 dropped:0 overruns:0 frame:0 TX packets:43595 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4460692 (4.2 MiB) TX bytes:21699249 (20.6 MiB) Interrupt:17 Base address:0xc000 eth1 Link encap:Ethernet HWaddr 00:60:08:20:7B:0B inet addr:192.168.16.1 Bcast:192.168.16.255 Mask:255.255.255.0 ... collisions:0 txqueuelen:1000 RX bytes:3850 (3.7 KiB) TX bytes:2127 (2.0 KiB) Interrupt:16 Base address:0xc400 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:2805 errors:0 dropped:0 overruns:0 frame:0 TX packets:2805 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:12551774 (11.9 MiB) TX bytes:12551774 (11.9 MiB) |
#ping mail.ru
![]() PING mail.ru (194.67.57.26) 56(84) bytes of data. --- mail.ru ping statistics --- 5 packets transmitted, 0 received, 100% packet loss, time 4014ms |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.16.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 10.0.0.0 192.168.15.254 255.0.0.0 UG 0 0 0 eth0 0.0.0.0 192.168.15.254 0.0.0.0 UG 0 0 0 eth1 0.0.0.0 192.168.15.254 0.0.0.0 UG 0 0 0 eth0 |
#route del default dw 192.168.15.254
![]() Usage: inet_route [-vF] del {-host|-net} Target[/prefix] [gw Gw] [metric M] [[dev] If] inet_route [-vF] add {-host|-net} Target[/prefix] [gw Gw] [metric M] [netmask N] [mss Mss] [window W] [irtt I] [mod] [dyn] [reinstate] [[dev] If] inet_route [-vF] add {-host|-net} Target[/prefix] [metric M] reject inet_route [-FC] flush NOT supported |
#route del default gw 192.168.15.254
|
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.16.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 10.0.0.0 192.168.15.254 255.0.0.0 UG 0 0 0 eth0 0.0.0.0 192.168.15.254 0.0.0.0 UG 0 0 0 eth0 |
#ping mail.ru
PING mail.ru (194.67.57.26) 56(84) bytes of data. 64 bytes from mail.ru (194.67.57.26): icmp_seq=1 ttl=111 time=106 ms 64 bytes from mail.ru (194.67.57.26): icmp_seq=2 ttl=111 time=95.3 ms --- mail.ru ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 95.343/101.021/106.699/5.678 ms |
#cat /proc/cpuinfo
processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 1 model name : Intel(R) Celeron(R) CPU 1.80GHz stepping : 3 cpu MHz : 1800.230 cache size : 128 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm bogomips : 3604.07 |
#apt-get install squid
Reading Package Lists... Done Building Dependency Tree... Done The following extra packages will be installed: squid-common Suggested packages: squidclient squid-cgi logcheck-database resolvconf smbclient winbind The following NEW packages will be installed: squid squid-common 0 upgraded, 2 newly installed, 0 to remove and 945 not upgraded. Need to get 1061kB of archives. ... Выбор ранее не выбранного пакета squid-common. (Чтение базы данных... на данный момент установлено 104428 файлов и каталогов.) Распаковывается пакет squid-common (из файла .../squid-common_2.6.3-1_all.deb)... Выбор ранее не выбранного пакета squid. Распаковывается пакет squid (из файла .../squid_2.6.3-1_i386.deb)... Настраивается пакет squid-common (2.6.3-1) ... Настраивается пакет squid (2.6.3-1) ... Creating squid spool directory structure 2006/09/21 17:04:17| Creating Swap Directories Restarting Squid HTTP proxy: squid. |
#vi /etc/squid/squid.conf
|
#cat /etc/mail/sendmail.mc
dnl --> delete to new line nl # dnl # Be somewhat anal in what we allow define(`confPRIVACY_FLAGS',dnl `needmailhelo,needexpnhelo,needvrfyhelo,restrictqrun,restrictexpand,nobodyreturn,authwarnings')dnl dnl #ndmail: debproto.mc,v 8.13.8 2006-09-01 05:10:48 cowboy Exp $ dnl # Define connection throttling and window length define(`confCONNECTION_RATE_THROTTLE', `15')dnlRights Reserved. define(`confCONNECTION_RATE_WINDOW_SIZE',`10m')dnl dnl #debian/sendmail.mc. Generated from sendmail.mc.in by configure. dnl # Features ... FEATURE(`use_cw_file')dnlFILE_ENV', `')dnl dnl # MAILER_DEFINITIONSns - restrict to servicing LOCALHOST ONLY !!! MAILER(`local')dnldr=' clauses to receive from any interface MAILER(`smtp')dnl to support IPv6, switch the commented/uncommentd lines define(`confDOMAIN_NAME', `$w.$m')dnl dnl DAEMON_OPTIONS(`Family=inet6, Name=MTA-v6, Port=smtp, Addr=::1')dnl DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp')dnl dnl DAEMON_OPTIONS(`Family=inet6, Name=MSP-v6, Port=submission, Addr=::1')dnl DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, Addr=127.0.0.1')dnl --> Ð |
#cat /etc/mail/aliases
# /etc/aliases mailer-daemon: postmaster postmaster: root nobody: root hostmaster: root usenet: root news: root webmaster: root www: root ftp: root abuse: root noc: root security: root #root: user |
#cat /etc/mail/
![]() access m4 service.switch-nodns access.db Makefile smrsh address.resolve peers submit.cf aliases sasl submit.mc aliases.db sendmail.cf tls databases sendmail.conf trusted-users helpfile sendmail.mc local-host-names service.switch |
#cat /etc/mail/*
![]() @rm -f /etc/mail/submit.cf.errors @if [ -f /usr/share/sendmail/cf/feature/msp.m4 ]; then \ m4 /etc/mail/submit.mc > /etc/mail/submit.cf.new \ 2> /etc/mail/submit.cf.errors || true; \ echo "### /etc/mail/submit.mc ###" \ >> /etc/mail/submit.cf.new; \ sed -e 's/^/# /' /etc/mail/submit.mc \ >> /etc/mail/submit.cf.new; \ chown root:smmsp /etc/mail/submit.cf.new; \ chmod 0644 /etc/mail/submit.cf.new; \ ... ##### ##### built by root@linux4.linux.nt on Чтв Сен 21 16:17:30 EEST 2006 ##### in /etc/mail ##### using /usr/share/sendmail/cf/ as configuration include directory ##### ###################################################################### ##### ##### DO NOT EDIT THIS FILE! Only edit the source .mc file. ##### ###################################################################### |
#cat /etc/mail/*
![]() @rm -f /etc/mail/submit.cf.errors @if [ -f /usr/share/sendmail/cf/feature/msp.m4 ]; then \ m4 /etc/mail/submit.mc > /etc/mail/submit.cf.new \ 2> /etc/mail/submit.cf.errors || true; \ echo "### /etc/mail/submit.mc ###" \ >> /etc/mail/submit.cf.new; \ sed -e 's/^/# /' /etc/mail/submit.mc \ >> /etc/mail/submit.cf.new; \ chown root:smmsp /etc/mail/submit.cf.new; \ chmod 0644 /etc/mail/submit.cf.new; \ ... ##### ##### built by root@linux4.linux.nt on Чтв Сен 21 16:17:30 EEST 2006 ##### in /etc/mail ##### using /usr/share/sendmail/cf/ as configuration include directory ##### ###################################################################### ##### ##### DO NOT EDIT THIS FILE! Only edit the source .mc file. ##### ###################################################################### |
#host fishki.net
fishki.net has address 81.169.181.8 fishki.net has address 85.214.36.137 fishki.net has address 85.214.64.109 |
#echo '((81*256*169)*256*181)*256*8)'
((81*256*169)*256*181)*256*8) |
#echo '((81*256*169)*256*181)*256*8)' | bc
(standard_in) 1: parse error |
#echo `((81*256*169)*256*181)*256*8)` | bc
bash: command substitution: line 1: syntax error near unexpected token `*' bash: command substitution: line 1: `(81*256*169) ' |
#echo ((81*256*169)*256*181)*256*8 | bc
![]() bash: syntax error near unexpected token `(' |
#echo '((81*256*169)*256*181)*256*8' | bc
332552472625152 |
#echo '((81*256+169)*256
![]() |
#ping 1370076424
PING 1370076424 (81.169.181.8) 56(84) bytes of data. 64 bytes from 81.169.181.8: icmp_seq=1 ttl=50 time=61.8 ms --- 1370076424 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 61.835/61.835/61.835/0.000 ms |
#[root@linux4:root]# halt
|
#/etc/init.d/squid restart
Restarting Squid HTTP proxy: squidFATAL: Bungled squid.conf line 73: http_port 3128 #ip ---> squid Доступен только на этом адресе Squid Cache (Version 2.6.STABLE3): Terminated abnormally. failed! |
#vi /etc/squid/squid.conf
73c73,74 < http_port 3128 #ip ---> squid Доступен только на этом адресе --- > http_port 3128 > #ip ---> squid Доступен только на этом адресе |
#/etc/init.d/squid restart
Restarting Squid HTTP proxy: squid. |
#netstat -lnp | grep :3128
tcp 0 0 0.0.0.0:3128 0.0.0.0:* LISTEN 9597/(squid) |
#netstat -lnp | grep :3128
tcp 0 0 0.0.0.0:3128 0.0.0.0:* LISTEN 9597/(squid) |
#less /var/log/s
|
access m4 service.switch-nodns access.db Makefile smrsh address.resolve peers submit.cf aliases sasl submit.mc aliases.db sendmail.cf tls databases sendmail.conf trusted-users helpfile sendmail.mc local-host-names service.switch
# /etc/aliases mailer-daemon: postmaster postmaster: root nobody: root hostmaster: root usenet: root news: root webmaster: root www: root ftp: root abuse: root noc: root security: root #root: user
localhost linux4.linux.nt sergey.unix.nt yellow.sergey.unix.nt
dnl --> delete to new line nl # dnl # Be somewhat anal in what we allow define(`confPRIVACY_FLAGS',dnl `needmailhelo,needexpnhelo,needvrfyhelo,restrictqrun,restrictexpand,nobodyreturn,authwarnings')dnl dnl #ndmail: debproto.mc,v 8.13.8 2006-09-01 05:10:48 cowboy Exp $ dnl # Define connection throttling and window length define(`confCONNECTION_RATE_THROTTLE', `15')dnlRights Reserved. define(`confCONNECTION_RATE_WINDOW_SIZE',`10m')dnl dnl #debian/sendmail.mc. Generated from sendmail.mc.in by configure. dnl # Features dnl #dmail.mc prototype config file for building Sendmail 8.13.8 dnl # The access db is the basis for most of sendmail's checking FEATURE(`access_db', , `skip')dnl.6 - 9.0.0, but the generated dnl # file is customized to the version noted above. dnl # The greet_pause feature stops some automail bots - but check the dnl # provided access db for details on excluding localhosts...ystems. FEATURE(`greet_pause', `1000')dnl 1 seconds dnl #you modify this file, you will have to regenerate /etc/mail/sendmail.cf dnl # Delay_checks allows sender<->recipient checkinga one of the following: FEATURE(`delay_checks', `friend', `n')dnl dnl # * `make` dnl # If we get too many bad recipients, slow things down... define(`confBAD_RCPT_THROTTLE',`3')dnlas they will also update other files dnl #t depend upon the contents of this file. dnl # Stop connections that overflow our concurrent and time connection rates FEATURE(`conncontrol', `nodelay', `terminate')dnl FEATURE(`ratecontrol', `nodelay', `terminate')dnl dnl # dnl # If you're on a dialup link, you should enable this - so sendmail-------- dnl # will not bring up the link (it will queue mail for later) dnl define(`confCON_EXPENSIVE',`True')dnl dnl #opyright (c) 1998-2005 Richard Nelson. All Rights Reserved. dnl # Dialup/LAN connection overrides dnl #is file is used to configure Sendmail for use with Debian systems. include(`/etc/mail/m4/dialup.m4')dnl include(`/etc/mail/m4/provider.m4')dnl dnl #de(`/usr/share/sendmail/cf/m4/cf.m4')dnl dnl # Default Mailer setupc, v 8.13.8-2 2006-09-01 05:10:48 cowboy Exp $') dnl MAILER_DEFINITIONS dnl MAILER(`local')dnll dnl MAILER(`smtp')dnld by /etc/mail/sendmail.conf - DO NOT TOUCH HERE undefine(`confHOST_STATUS_DIRECTORY')dnl #DAEMON_HOSTSTATS= dnl # Masquerading options/etc/mail/sendmail.conf - DO NOT TOUCH HERE FEATURE(`always_add_domain')dnl MASQUERADE_AS(`yellow.sergey.unix.nt')dnl FEATURE(`allmasquerade')dnl FEATURE(`masquerade_envelope')dnlIf set, sendmail will do a chroot() dnl # into this directory before writing files. dnl # If *all* your user accounts are under /home then use that define(`confCW_FILE',`-o /etc/mail/local-host-names')dnl/home ! FEATURE(`use_cw_file')dnlFILE_ENV', `')dnl dnl # MAILER_DEFINITIONSns - restrict to servicing LOCALHOST ONLY !!! MAILER(`local')dnldr=' clauses to receive from any interface MAILER(`smtp')dnl to support IPv6, switch the commented/uncommentd lines define(`confDOMAIN_NAME', `$w.$m')dnl dnl DAEMON_OPTIONS(`Family=inet6, Name=MTA-v6, Port=smtp, Addr=::1')dnl DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp')dnl dnl DAEMON_OPTIONS(`Family=inet6, Name=MSP-v6, Port=submission, Addr=::1')dnl DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, Addr=127.0.0.1')dnl --> Ð
processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 1 model name : Intel(R) Celeron(R) CPU 1.80GHz stepping : 3 cpu MHz : 1800.230 cache size : 128 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm bogomips : 3604.07
Время первой команды журнала | 15:12:45 2006- 9-21 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 18:09:01 2006- 9-21 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 96 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 8.33 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.04 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.94 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.54 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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