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

Содержание

Журнал

Вторник (04/09/13)

/dev/pts/1
14:13:41
#echo hi | mail user@linux7.unix.n
bash: mail: command not found
/dev/pts/0
14:13:41
#echo hi | mail user@linux7.unix.n
bash: mail: command not found
/dev/pts/1
14:14:01
#echo hi | mail user@linux4.unix.n
bash: mail: command not found
/dev/pts/0
14:14:01
#echo hi | mail user@linux4.unix.n
bash: mail: command not found
/dev/pts/1
14:14:06
#apt-get install sensible-mta
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package sensible-mta
/dev/pts/0
14:14:06
#apt-get install sensible-mta
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package sensible-mta
/dev/pts/1
14:15:03
#apt-get install sensible-mda
Reading package lists... Done
Building dependency tree
Reading state information... Done
sensible-mda is already the newest version.
sensible-mda set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 29 not upgraded.
/dev/pts/0
14:15:03
#apt-get install sensible-mda
Reading package lists... Done
Building dependency tree
Reading state information... Done
sensible-mda is already the newest version.
sensible-mda set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 29 not upgraded.
/dev/pts/1
14:15:22
#/etc/init.d/sendmail restart
Restarting Mail Transport Agent (MTA): sendmail.
/dev/pts/0
14:15:22
#/etc/init.d/sendmail restart
Restarting Mail Transport Agent (MTA): sendmail.
/dev/pts/1
14:17:07
#ping linux.nt
ping: unknown host linux.nt
/dev/pts/0
14:17:07
#ping linux.nt
ping: unknown host linux.nt
/dev/pts/1
14:19:59
#tail /var/log/mail.log
Apr  9 15:17:02 linux4 sm-mta[6721]: r39CH12l006721: ruleset=check_rcpt, arg1=<user@linux3.nt>, relay=[192.168.40.100], reject=553 5.1.8 <user@linux3.nt>... Domain of sender address user@linux.nt does not exist
Apr  9 15:17:02 linux4 sm-mta[6721]: r39CH12l006721: from=<user@linux.nt>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=[192.168.40.100]
Apr  9 15:17:02 linux4 sm-mta[6721]: r39CH12m006721: ruleset=check_rcpt, arg1=<user@linux3.nt>, relay=[192.168.40.100], reject=553 5.1.8 <user@linux3.nt>... Domain of sender address user@linux.nt does not exist
Apr  9 15:17:02 linux4 sm-mta[6721]: r39CH12m006721: from=<user@linux.nt>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=[192.168.40.100]
Apr  9 15:17:02 linux4 sm-mta[6721]: r39CH12n006721: ruleset=check_rcpt, arg1=<user@linux5.nt>, relay=[192.168.40.100], reject=553 5.1.8 <user@linux5.nt>... Domain of sender address user@linux.nt does not exist
Apr  9 15:17:04 linux4 sm-mta[6721]: r39CH12n006721: from=<user@linux.nt>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=[192.168.40.100]
Apr  9 15:18:03 linux4 sm-mta[6733]: r39CI1G1006733: ruleset=check_rcpt, arg1=<user@linux3.nt>, relay=[192.168.40.100], reject=553 5.1.8 <user@linux3.nt>... Domain of sender address user@linux.nt does not exist
Apr  9 15:18:05 linux4 sm-mta[6733]: r39CI1G1006733: from=<user@linux.nt>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=[192.168.40.100]
Apr  9 15:19:41 linux4 sm-mta[6744]: r39CJeWG006744: ruleset=check_rcpt, arg1=<user@linux3.unix.nt>, relay=[192.168.40.100], reject=553 5.1.8 <user@linux3.unix.nt>... Domain of sender address user@linux.nt does not exist
Apr  9 15:19:44 linux4 sm-mta[6744]: r39CJeWG006744: from=<user@linux.nt>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=[192.168.40.100]
/dev/pts/0
14:19:59
#tail /var/log/mail.log
Apr  9 15:17:02 linux4 sm-mta[6721]: r39CH12l006721: ruleset=check_rcpt, arg1=<user@linux3.nt>, relay=[192.168.40.100], reject=553 5.1.8 <user@linux3.nt>... Domain of sender address user@linux.nt does not exist
Apr  9 15:17:02 linux4 sm-mta[6721]: r39CH12l006721: from=<user@linux.nt>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=[192.168.40.100]
Apr  9 15:17:02 linux4 sm-mta[6721]: r39CH12m006721: ruleset=check_rcpt, arg1=<user@linux3.nt>, relay=[192.168.40.100], reject=553 5.1.8 <user@linux3.nt>... Domain of sender address user@linux.nt does not exist
Apr  9 15:17:02 linux4 sm-mta[6721]: r39CH12m006721: from=<user@linux.nt>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=[192.168.40.100]
Apr  9 15:17:02 linux4 sm-mta[6721]: r39CH12n006721: ruleset=check_rcpt, arg1=<user@linux5.nt>, relay=[192.168.40.100], reject=553 5.1.8 <user@linux5.nt>... Domain of sender address user@linux.nt does not exist
Apr  9 15:17:04 linux4 sm-mta[6721]: r39CH12n006721: from=<user@linux.nt>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=[192.168.40.100]
Apr  9 15:18:03 linux4 sm-mta[6733]: r39CI1G1006733: ruleset=check_rcpt, arg1=<user@linux3.nt>, relay=[192.168.40.100], reject=553 5.1.8 <user@linux3.nt>... Domain of sender address user@linux.nt does not exist
Apr  9 15:18:05 linux4 sm-mta[6733]: r39CI1G1006733: from=<user@linux.nt>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=[192.168.40.100]
Apr  9 15:19:41 linux4 sm-mta[6744]: r39CJeWG006744: ruleset=check_rcpt, arg1=<user@linux3.unix.nt>, relay=[192.168.40.100], reject=553 5.1.8 <user@linux3.unix.nt>... Domain of sender address user@linux.nt does not exist
Apr  9 15:19:44 linux4 sm-mta[6744]: r39CJeWG006744: from=<user@linux.nt>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=[192.168.40.100]
/dev/pts/1
14:20:02
#tail /var/log/mail.log cat /etc/hosts
==> /var/log/mail.log <==
Apr  9 15:17:02 linux4 sm-mta[6721]: r39CH12l006721: ruleset=check_rcpt, arg1=<user@linux3.nt>, relay=[192.168.40.100], reject=553 5.1.8 <user@linux3.nt>... Domain of sender address user@linux.nt does not exist
Apr  9 15:17:02 linux4 sm-mta[6721]: r39CH12l006721: from=<user@linux.nt>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=[192.168.40.100]
Apr  9 15:17:02 linux4 sm-mta[6721]: r39CH12m006721: ruleset=check_rcpt, arg1=<user@linux3.nt>, relay=[192.168.40.100], reject=553 5.1.8 <user@linux3.nt>... Domain of sender address user@linux.nt does not exist
Apr  9 15:17:02 linux4 sm-mta[6721]: r39CH12m006721: from=<user@linux.nt>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=[192.168.40.100]
Apr  9 15:17:02 linux4 sm-mta[6721]: r39CH12n006721: ruleset=check_rcpt, arg1=<user@linux5.nt>, relay=[192.168.40.100], reject=553 5.1.8 <user@linux5.nt>... Domain of sender address user@linux.nt does not exist
Apr  9 15:17:04 linux4 sm-mta[6721]: r39CH12n006721: from=<user@linux.nt>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=[192.168.40.100]
Apr  9 15:18:03 linux4 sm-mta[6733]: r39CI1G1006733: ruleset=check_rcpt, arg1=<user@linux3.nt>, relay=[192.168.40.100], reject=553 5.1.8 <user@linux3.nt>... Domain of sender address user@linux.nt does not exist
Apr  9 15:18:05 linux4 sm-mta[6733]: r39CI1G1006733: from=<user@linux.nt>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=[192.168.40.100]
Apr  9 15:19:41 linux4 sm-mta[6744]: r39CJeWG006744: ruleset=check_rcpt, arg1=<user@linux3.unix.nt>, relay=[192.168.40.100], reject=553 5.1.8 <user@linux3.unix.nt>... Domain of sender address user@linux.nt does not exist
Apr  9 15:19:44 linux4 sm-mta[6744]: r39CJeWG006744: from=<user@linux.nt>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=[192.168.40.100]
tail: cannot open `cat' for reading: No such file or directory
==> /etc/hosts <==
127.0.0.1       localhost
192.168.40.1    linux4.unix.nt  linux4
# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
/dev/pts/0
14:20:02
#tail /var/log/mail.log cat /etc/hosts
==> /var/log/mail.log <==
Apr  9 15:17:02 linux4 sm-mta[6721]: r39CH12l006721: ruleset=check_rcpt, arg1=<user@linux3.nt>, relay=[192.168.40.100], reject=553 5.1.8 <user@linux3.nt>... Domain of sender address user@linux.nt does not exist
Apr  9 15:17:02 linux4 sm-mta[6721]: r39CH12l006721: from=<user@linux.nt>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=[192.168.40.100]
Apr  9 15:17:02 linux4 sm-mta[6721]: r39CH12m006721: ruleset=check_rcpt, arg1=<user@linux3.nt>, relay=[192.168.40.100], reject=553 5.1.8 <user@linux3.nt>... Domain of sender address user@linux.nt does not exist
Apr  9 15:17:02 linux4 sm-mta[6721]: r39CH12m006721: from=<user@linux.nt>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=[192.168.40.100]
Apr  9 15:17:02 linux4 sm-mta[6721]: r39CH12n006721: ruleset=check_rcpt, arg1=<user@linux5.nt>, relay=[192.168.40.100], reject=553 5.1.8 <user@linux5.nt>... Domain of sender address user@linux.nt does not exist
Apr  9 15:17:04 linux4 sm-mta[6721]: r39CH12n006721: from=<user@linux.nt>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=[192.168.40.100]
Apr  9 15:18:03 linux4 sm-mta[6733]: r39CI1G1006733: ruleset=check_rcpt, arg1=<user@linux3.nt>, relay=[192.168.40.100], reject=553 5.1.8 <user@linux3.nt>... Domain of sender address user@linux.nt does not exist
Apr  9 15:18:05 linux4 sm-mta[6733]: r39CI1G1006733: from=<user@linux.nt>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=[192.168.40.100]
Apr  9 15:19:41 linux4 sm-mta[6744]: r39CJeWG006744: ruleset=check_rcpt, arg1=<user@linux3.unix.nt>, relay=[192.168.40.100], reject=553 5.1.8 <user@linux3.unix.nt>... Domain of sender address user@linux.nt does not exist
Apr  9 15:19:44 linux4 sm-mta[6744]: r39CJeWG006744: from=<user@linux.nt>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=[192.168.40.100]
tail: cannot open `cat' for reading: No such file or directory
==> /etc/hosts <==
127.0.0.1       localhost
192.168.40.1    linux4.unix.nt  linux4
# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
/dev/pts/1
14:21:20
#ls
access           helpfile          sendmail.cf           submit.cf
access.db        local-host-names  sendmail.conf         submit.mc
address.resolve  m4                sendmail.mc           tls
aliases          Makefile          service.switch        trusted-users
aliases.db       peers             service.switch-nodns
databases        sasl              smrsh
/dev/pts/0
14:21:20
#ls
access           helpfile          sendmail.cf           submit.cf
access.db        local-host-names  sendmail.conf         submit.mc
address.resolve  m4                sendmail.mc           tls
aliases          Makefile          service.switch        trusted-users
aliases.db       peers             service.switch-nodns
databases        sasl              smrsh
/dev/pts/1
14:22:25
#divert(-1)dnl
Host linux.nt not found: 3(NXDOMAIN)
/dev/pts/0
14:22:25
#divert(-1)dnl
Host linux.nt not found: 3(NXDOMAIN)
/dev/pts/1
14:22:46
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1821.5095.16133	2013-04-09 15:27:53.000000000 +0300
+++ /etc/asterisk/extensions.conf	2013-04-09 15:28:49.000000000 +0300
@@ -14,7 +14,7 @@
 ;exten=>_14XX,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH})
 ;exten=>_14XX,n,Monitor(wav,${CALLFILENAME},m)
 exten=>_14XX,n,Dial(SIP/${EXTEN},30,wW)
-
+exten=>_14XX,n,Voicemail(${EXTEN}@default)
 
 
 ;exten=>1401,1,Dial(SIP/1401)
/dev/pts/0
14:22:46
#nano /etc/asterisk/extensions.conf
/dev/pts/1
14:29:23
#nano /etc/asterisk/voicemail.conf
--- /tmp/l3-saved-1821.13929.22238	2013-04-09 15:29:25.000000000 +0300
+++ /etc/asterisk/voicemail.conf	2013-04-09 15:32:18.000000000 +0300
@@ -328,7 +328,7 @@
 
 [default]
 
-1234 => 4242,Example Mailbox,root@localhost
+;1234 => 4242,Example Mailbox,root@localhost
 ;4200 => 9855,Mark Spencer,markster@linux-support.net,mypager@digium.com,attach=no|serveremail=myaddy@digium.com|tz=central|maxmsg=10
 ;4300 => 3456,Ben Rigas,ben@american-computer.net
 ;4310 => -5432,Sales,sales@marko.net
@@ -338,6 +338,10 @@
 ;4235 => 1234,Jim Holmes,jim@astricon.ips,,Tz=european
 
 
+1401=>1234,Mailbox 1401,user@linux4.unix.nt
+1402=>1234,MAilbox 1402,user@linux4.unix.net
+
+
 ;
 ; Mailboxes may be organized into multiple contexts for
 ; voicemail virtualhosting
@@ -346,7 +350,7 @@
 [other]
 ;The intro can be customized on a per-context basis
 ;directoryintro=dir-company2
-1234 => 5678,Company2 User,root@localhost
+;1234 => 5678,Company2 User,root@localhost
 
 ; example for our acme compartmentalized company
 ;
@@ -364,3 +368,6 @@
 ;[imapvm]
 ;4324 => 7764,Ellis Redding,red@buxton.us,,imapuser=eredding|imappassword=g3tbusy
 ;4325 => 2392,Andrew Dufresne,andy@dufresne.info,,imapuser=adufresne|imappassword=rockh@mmer
+
+
+
/dev/pts/0
14:29:23
#nano /etc/asterisk/voicemail.conf
/dev/pts/1
14:33:22
#[default]
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1311)
Verbosity is at least 3
linux4*CLI> dialplan reload
...
  == Parsing '/etc/asterisk/voicemail.conf':   == Found
  == Parsing '/etc/asterisk/users.conf':   == Found
  == Using SIP RTP CoS mark 5
    -- Executing [1402@gr_country:1] Answer("SIP/1401-000000a9", "") in new stack
    -- Executing [1402@gr_country:2] Dial("SIP/1401-000000a9", "SIP/1402,30,wW") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 1402
    -- SIP/1402-000000aa is ringing
[Apr  9 15:34:13] NOTICE[6944]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.40.101
linux4*CLI> quit
/dev/pts/0
14:33:22
#[default]
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1311)
Verbosity is at least 3
linux4*CLI> dialplan reload
...
  == Parsing '/etc/asterisk/voicemail.conf':   == Found
  == Parsing '/etc/asterisk/users.conf':   == Found
  == Using SIP RTP CoS mark 5
    -- Executing [1402@gr_country:1] Answer("SIP/1401-000000a9", "") in new stack
    -- Executing [1402@gr_country:2] Dial("SIP/1401-000000a9", "SIP/1402,30,wW") in new stack
  == Using SIP RTP CoS mark 5
    -- Called 1402
    -- SIP/1402-000000aa is ringing
[Apr  9 15:34:13] NOTICE[6944]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.40.101
linux4*CLI> quit
/dev/pts/1
14:34:13
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1821.14967.5460	2013-04-09 15:34:19.000000000 +0300
+++ /etc/asterisk/extensions.conf	2013-04-09 15:34:26.000000000 +0300
@@ -13,7 +13,7 @@
 exten=>_14XX,1,Answer
 ;exten=>_14XX,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH})
 ;exten=>_14XX,n,Monitor(wav,${CALLFILENAME},m)
-exten=>_14XX,n,Dial(SIP/${EXTEN},30,wW)
+exten=>_14XX,n,Dial(SIP/${EXTEN},10,wW)
 exten=>_14XX,n,Voicemail(${EXTEN}@default)
 
 
/dev/pts/0
14:34:13
#nano /etc/asterisk/extensions.conf
/dev/pts/1
14:37:24
#nano /etc/asterisk/extensions.conf
/dev/pts/0
14:37:24
#nano /etc/asterisk/extensions.conf
/dev/pts/1
14:38:12
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1311)
Verbosity is at least 3
    -- User hung up
  == Spawn extension (gr_country, 1402, 3) exited non-zero on 'SIP/1401-000000ad'
linux4*CLI> quit
Executing last minute cleanups
/dev/pts/0
14:38:12
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1311)
Verbosity is at least 3
    -- User hung up
  == Spawn extension (gr_country, 1402, 3) exited non-zero on 'SIP/1401-000000ad'
linux4*CLI> quit
Executing last minute cleanups
/dev/pts/1
14:38:39
#echo test|mail user@linux4.unix.nt
bash: mail: command not found
/dev/pts/0
14:38:39
#echo test|mail user@linux4.unix.nt
bash: mail: command not found
/dev/pts/1
14:39:10
#echo test|mail user@linux4.unix.nt
bash: mail: command not found
/dev/pts/0
14:39:10
#echo test|mail user@linux4.unix.nt
bash: mail: command not found
/dev/pts/1
14:39:17
#apt-get install sendmail-bin
Reading package lists... Done
Building dependency tree
Reading state information... Done
sendmail-bin is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 29 not upgraded.
/dev/pts/0
14:39:17
#apt-get install sendmail-bin
Reading package lists... Done
Building dependency tree
Reading state information... Done
sendmail-bin is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 29 not upgraded.
/dev/pts/1
14:40:17
#mail
bash: mail: command not found
/dev/pts/0
14:40:17
#mail
bash: mail: command not found
/dev/pts/1
14:40:21
#/usr/bin/mail
bash: /usr/bin/mail: No such file or directory
/dev/pts/0
14:40:21
#/usr/bin/mail
bash: /usr/bin/mail: No such file or directory
/dev/pts/1
14:40:43
#apt-get install mailx
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package mailx is a virtual package provided by:
  mailutils 1:2.1+dfsg1-7
  heirloom-mailx 12.4-2
  bsd-mailx 8.1.2-0.20100314cvs-1
You should explicitly select one to install.
E: Package 'mailx' has no installation candidate
/dev/pts/0
14:40:43
#apt-get install mailx
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package mailx is a virtual package provided by:
  mailutils 1:2.1+dfsg1-7
  heirloom-mailx 12.4-2
  bsd-mailx 8.1.2-0.20100314cvs-1
You should explicitly select one to install.
E: Package 'mailx' has no installation candidate
/dev/pts/1
14:40:58
#apt-get install mailutils
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libgsasl7 libmailutils2 libmysqlclient16 libntlm0 mysql-common
Suggested packages:
  mailutils-mh
The following NEW packages will be installed:
  libgsasl7 libmailutils2 libmysqlclient16 libntlm0 mailutils mysql-common
0 upgraded, 6 newly installed, 0 to remove and 29 not upgraded.
...
Setting up libmysqlclient16 (5.1.49-3) ...
Setting up libmailutils2 (1:2.1+dfsg1-7) ...
Setting up mailutils (1:2.1+dfsg1-7) ...
update-alternatives: using /usr/bin/frm.mailutils to provide /usr/bin/frm (frm) in auto mode.
update-alternatives: using /usr/bin/from.mailutils to provide /usr/bin/from (from) in auto mode.
update-alternatives: using /usr/bin/messages.mailutils to provide /usr/bin/messages (messages) in auto mode.
update-alternatives: using /usr/bin/movemail.mailutils to provide /usr/bin/movemail (movemail) in auto mode.
update-alternatives: using /usr/bin/readmsg.mailutils to provide /usr/bin/readmsg (readmsg) in auto mode.
update-alternatives: using /usr/bin/dotlock.mailutils to provide /usr/bin/dotlock (dotlock) in auto mode.
update-alternatives: using /usr/bin/mail.mailutils to provide /usr/bin/mailx (mailx) in auto mode.
/dev/pts/0
14:40:58
#apt-get install mailutils
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libgsasl7 libmailutils2 libmysqlclient16 libntlm0 mysql-common
Suggested packages:
  mailutils-mh
The following NEW packages will be installed:
  libgsasl7 libmailutils2 libmysqlclient16 libntlm0 mailutils mysql-common
0 upgraded, 6 newly installed, 0 to remove and 29 not upgraded.
...
Setting up libmysqlclient16 (5.1.49-3) ...
Setting up libmailutils2 (1:2.1+dfsg1-7) ...
Setting up mailutils (1:2.1+dfsg1-7) ...
update-alternatives: using /usr/bin/frm.mailutils to provide /usr/bin/frm (frm) in auto mode.
update-alternatives: using /usr/bin/from.mailutils to provide /usr/bin/from (from) in auto mode.
update-alternatives: using /usr/bin/messages.mailutils to provide /usr/bin/messages (messages) in auto mode.
update-alternatives: using /usr/bin/movemail.mailutils to provide /usr/bin/movemail (movemail) in auto mode.
update-alternatives: using /usr/bin/readmsg.mailutils to provide /usr/bin/readmsg (readmsg) in auto mode.
update-alternatives: using /usr/bin/dotlock.mailutils to provide /usr/bin/dotlock (dotlock) in auto mode.
update-alternatives: using /usr/bin/mail.mailutils to provide /usr/bin/mailx (mailx) in auto mode.
/dev/pts/1
14:41:28
#echo test|mail user@linux4.unix.nt

/dev/pts/0
14:41:28
#echo test|mail user@linux4.unix.nt

/dev/pts/1
14:43:17
#nano /etc/asterisk/voicemail.conf
--- /tmp/l3-saved-1821.5046.8217	2013-04-09 15:43:27.000000000 +0300
+++ /etc/asterisk/voicemail.conf	2013-04-09 15:44:52.000000000 +0300
@@ -339,7 +339,7 @@
 
 
 1401=>1234,Mailbox 1401,user@linux4.unix.nt
-1402=>1234,MAilbox 1402,user@linux4.unix.net
+1402=>1234,MAilbox 1402,user@linux4.unix.nt
 
 
 ;
/dev/pts/0
14:43:17
#nano /etc/asterisk/voicemail.conf
прошла 31 минута
/dev/pts/1
15:14:55
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1821.1203.9038	2013-04-09 16:15:33.000000000 +0300
+++ /etc/asterisk/extensions.conf	2013-04-09 16:16:27.000000000 +0300
@@ -8,7 +8,7 @@
 exten=>_81XX,1,Record(/var/tmp/message/${EXTEN:2}:gsm,1)
 exten=>_81XX,n,Playback(/var/tmp/message/${EXTEN:2})
 exten=>_82XX,1,Playback(/var/tmp/message/$(EXTEN:2})
-
+exten=>8300,1,Voicemailmain()
 
 exten=>_14XX,1,Answer
 ;exten=>_14XX,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH})
@@ -17,6 +17,7 @@
 exten=>_14XX,n,Voicemail(${EXTEN}@default)
 
 
+
 ;exten=>1401,1,Dial(SIP/1401)
 ;exten=>1402,1,Dial(SIP/1402)
 ;exten =>_14XX,1,Dial(SIP/${EXTEN})
/dev/pts/0
15:14:55
#nano /etc/asterisk/extensions.conf
/dev/pts/1
15:16:36
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1311)
...
    -- <SIP/1401-000000b9> Playing 'vm-password.gsm' (language 'en')
    -- <SIP/1401-000000b9> Playing 'vm-youhave.gsm' (language 'en')
    -- <SIP/1401-000000b9> Playing 'vm-no.gsm' (language 'en')
    -- <SIP/1401-000000b9> Playing 'vm-messages.gsm' (language 'en')
    -- <SIP/1401-000000b9> Playing 'vm-opts.gsm' (language 'en')
    -- <SIP/1401-000000b9> Playing 'vm-helpexit.gsm' (language 'en')
    -- <SIP/1401-000000b9> Playing 'vm-opts.gsm' (language 'en')
  == Spawn extension (gr_country, 8300, 1) exited non-zero on 'SIP/1401-000000b9'
linux4*CLI> quit
Executing last minute cleanups
/dev/pts/0
15:16:36
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1311)
...
    -- <SIP/1401-000000b9> Playing 'vm-password.gsm' (language 'en')
    -- <SIP/1401-000000b9> Playing 'vm-youhave.gsm' (language 'en')
    -- <SIP/1401-000000b9> Playing 'vm-no.gsm' (language 'en')
    -- <SIP/1401-000000b9> Playing 'vm-messages.gsm' (language 'en')
    -- <SIP/1401-000000b9> Playing 'vm-opts.gsm' (language 'en')
    -- <SIP/1401-000000b9> Playing 'vm-helpexit.gsm' (language 'en')
    -- <SIP/1401-000000b9> Playing 'vm-opts.gsm' (language 'en')
  == Spawn extension (gr_country, 8300, 1) exited non-zero on 'SIP/1401-000000b9'
linux4*CLI> quit
Executing last minute cleanups
/dev/pts/1
15:20:25
#cd /home/user/

/dev/pts/0
15:20:25
#cd /home/user/

/dev/pts/1
15:22:52
#ls
Desktop  Documents  Downloads  Music  Pictures  Public  Templates  Videos
15:22:52
#cd Downloads/

/dev/pts/0
15:22:52
#ls
Desktop  Documents  Downloads  Music  Pictures  Public  Templates  Videos
15:22:52
#cd Downloads/

/dev/pts/1
15:22:57
#;s
bash: syntax error near unexpected token `;'
/dev/pts/0
15:22:57
#;s
bash: syntax error near unexpected token `;'
15:22:58
#ls
asterisk-core-sounds-ru-gsm-current.tar.gz
/dev/pts/1
15:22:58
#ls
asterisk-core-sounds-ru-gsm-current.tar.gz
15:22:59
#tar asterisk-core-sounds-ru-gsm-current.tar.gz
tar: Old option `g' requires an argument.
Try `tar --help' or `tar --usage' for more information.
/dev/pts/0
15:22:59
#tar asterisk-core-sounds-ru-gsm-current.tar.gz
tar: Old option `g' requires an argument.
Try `tar --help' or `tar --usage' for more information.
/dev/pts/4
15:23:58
#mkdir /usr/share/asterisk/sounds/
Display all 1148 possibilities? (y or n)
15:23:58
#mkdir /usr/share/asterisk/sounds/ru

15:24:28
#cd /usr/share/asterisk/sounds/ru

15:24:29
#tar xfz /home/user/Downloads/asterisk-core-sounds-ru-gsm-current.tar.gz

15:24:39
#ls
agent-alreadyon.gsm              CREDITS-asterisk-core-ru-1.4.23  queue-holdtime.gsm           vm-duration.gsm           vm-passchanged.gsm
agent-incorrect.gsm              demo-abouttotry.gsm              queue-less-than.gsm          vm-enter-num-to-call.gsm  vm-password.gsm
agent-loggedoff.gsm              demo-congrats.gsm                queue-minute.gsm             vm-extension.gsm          vm-pls-try-again.gsm
agent-loginok.gsm                demo-echodone.gsm                queue-minutes.gsm            vm-Family.gsm             vm-press.gsm
agent-newlocation.gsm            demo-echotest.gsm                queue-periodic-announce.gsm  vm-first.gsm              vm-prev.gsm
agent-pass.gsm                   demo-enterkeywords.gsm           queue-quantity1.gsm          vm-for.gsm                vm-reachoper.gsm
agent-user.gsm                   demo-instruct.gsm                queue-quantity2.gsm          vm-forward.gsm            vm-rec-busy.gsm
ascending-2tone.gsm              demo-moreinfo.gsm                queue-reporthold.gsm         vm-forward-multiple.gsm   vm-received.gsm
auth-incorrect.gsm               demo-nogo.gsm                    queue-seconds.gsm            vm-forwardoptions.gsm     vm-rec-name.gsm
auth-thankyou.gsm                demo-nomatch.gsm                 queue-thankyou.gsm           vm-Friends.gsm            vm-record-prepend.gsm
...
conf-roll-callcomplete.gsm       phonetic                         vm-calldiffnum.gsm           vm-no.gsm                 vm-toreply.gsm
conf-thereare.gsm                privacy-incorrect.gsm            vm-changeto.gsm              vm-nomore.gsm             vm-torerecord.gsm
conf-unlockednow.gsm             privacy-prompt.gsm               vm-Cust1.gsm                 vm-nonumber.gsm           vm-undeleted.gsm
conf-unmuted.gsm                 privacy-thankyou.gsm             vm-Cust2.gsm                 vm-num-i-have.gsm         vm-undelete.gsm
conf-usermenu-162.gsm            privacy-unident.gsm              vm-Cust3.gsm                 vm-Old.gsm                vm-unknown-caller.gsm
conf-usermenu.gsm                priv-callee-options.gsm          vm-Cust4.gsm                 vm-onefor-full.gsm        vm-Urgent.gsm
conf-userswilljoin.gsm           priv-callpending.gsm             vm-Cust5.gsm                 vm-onefor.gsm             vm-whichbox.gsm
conf-userwilljoin.gsm            priv-introsaved.gsm              vm-deleted.gsm               vm-options.gsm            vm-Work.gsm
conf-waitforleader.gsm           priv-recordintro.gsm             vm-delete.gsm                vm-opts-full.gsm          vm-youhave.gsm
core-sounds-ru.txt               queue-callswaiting.gsm           vm-dialout.gsm               vm-opts.gsm
/dev/pts/1
15:25:02
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1311)
Verbosity is at least 3
linux4*CLI> quit
/dev/pts/0
15:25:02
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1311)
Verbosity is at least 3
linux4*CLI> quit
/dev/pts/4
15:25:13
#pwd
/usr/share/asterisk/sounds/ru
/dev/pts/1
15:25:36
#nano /etc/asterisk/sip.conf
--- /tmp/l3-saved-1821.25281.32151	2013-04-09 16:25:53.000000000 +0300
+++ /etc/asterisk/sip.conf	2013-04-09 16:26:18.000000000 +0300
@@ -11,6 +11,7 @@
 host=dynamic
 callerid="harare big brother"
 context=gr_country
+language=ru
 
 [1402]
 type=friend
/dev/pts/0
15:25:36
#nano /etc/asterisk/sip.conf
/dev/pts/1
15:26:18
#[general]
Asterisk already running on /var/run/asterisk/asterisk.ctl.  Use 'asterisk -r' to connect.
/dev/pts/0
15:26:18
#[general]
Asterisk already running on /var/run/asterisk/asterisk.ctl.  Use 'asterisk -r' to connect.
/dev/pts/1
15:26:21
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1311)
Verbosity is at least 3
linux4*CLI> sip reload
...
  == Using SIP RTP CoS mark 5
    -- Executing [8300@gr_country:1] VoiceMailMain("SIP/1401-000000bc", "") in new stack
    -- <SIP/1401-000000bc> Playing 'vm-login.gsm' (language 'ru')
[Apr  9 16:27:35] NOTICE[7731]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.40.101
[Apr  9 16:27:38] WARNING[7731]: app_voicemail.c:9070 vm_authenticate: Couldn't read username
  == Using SIP RTP CoS mark 5
    -- Executing [8300@gr_country:1] VoiceMailMain("SIP/1401-000000bd", "") in new stack
    -- <SIP/1401-000000bd> Playing 'vm-login.gsm' (language 'ru')
[Apr  9 16:28:00] WARNING[7732]: app_voicemail.c:9070 vm_authenticate: Couldn't read username
linux4*CLI> quit
/dev/pts/0
15:26:21
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1311)
Verbosity is at least 3
linux4*CLI> sip reload
...
  == Using SIP RTP CoS mark 5
    -- Executing [8300@gr_country:1] VoiceMailMain("SIP/1401-000000bc", "") in new stack
    -- <SIP/1401-000000bc> Playing 'vm-login.gsm' (language 'ru')
[Apr  9 16:27:35] NOTICE[7731]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.40.101
[Apr  9 16:27:38] WARNING[7731]: app_voicemail.c:9070 vm_authenticate: Couldn't read username
  == Using SIP RTP CoS mark 5
    -- Executing [8300@gr_country:1] VoiceMailMain("SIP/1401-000000bd", "") in new stack
    -- <SIP/1401-000000bd> Playing 'vm-login.gsm' (language 'ru')
[Apr  9 16:28:00] WARNING[7732]: app_voicemail.c:9070 vm_authenticate: Couldn't read username
linux4*CLI> quit
/dev/pts/1
15:28:11
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1311)
Verbosity is at least 3
  == Using SIP RTP CoS mark 5
    -- Executing [8300@gr_country:1] VoiceMailMain("SIP/1401-000000be", "") in new stack
    -- <SIP/1401-000000be> Playing 'vm-login.gsm' (language 'ru')
    -- <SIP/1401-000000be> Playing 'vm-password.gsm' (language 'ru')
    -- <SIP/1401-000000be> Playing 'vm-youhave.gsm' (language 'ru')
    -- <SIP/1401-000000be> Playing 'digits/7.gsm' (language 'ru')
[Apr  9 16:29:34] WARNING[7816]: file.c:650 ast_openstream_full: File vm-newx does not exist in any format
[Apr  9 16:29:34] WARNING[7816]: file.c:953 ast_streamfile: Unable to open vm-newx (format 0x4 (ulaw)): No such file or directory
  == Spawn extension (gr_country, 8300, 1) exited non-zero on 'SIP/1401-000000be'
linux4*CLI> quit
/dev/pts/0
15:28:11
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1311)
Verbosity is at least 3
  == Using SIP RTP CoS mark 5
    -- Executing [8300@gr_country:1] VoiceMailMain("SIP/1401-000000be", "") in new stack
    -- <SIP/1401-000000be> Playing 'vm-login.gsm' (language 'ru')
    -- <SIP/1401-000000be> Playing 'vm-password.gsm' (language 'ru')
    -- <SIP/1401-000000be> Playing 'vm-youhave.gsm' (language 'ru')
    -- <SIP/1401-000000be> Playing 'digits/7.gsm' (language 'ru')
[Apr  9 16:29:34] WARNING[7816]: file.c:650 ast_openstream_full: File vm-newx does not exist in any format
[Apr  9 16:29:34] WARNING[7816]: file.c:953 ast_streamfile: Unable to open vm-newx (format 0x4 (ulaw)): No such file or directory
  == Spawn extension (gr_country, 8300, 1) exited non-zero on 'SIP/1401-000000be'
linux4*CLI> quit
/dev/pts/4
15:29:21
#ls -l | less
15:29:47
#dpkg -l asterisk
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                           Version                        Description
+++-==============================-==============================-============================================================================
ii  asterisk                       1:1.6.2.9-2+squeeze10          Open Source Private Branch Exchange (PBX)
/dev/pts/1
15:39:16
#rm -rf /usr/share/asterisk/sounds/ru

/dev/pts/0
15:39:16
#rm -rf /usr/share/asterisk/sounds/ru

/dev/pts/1
15:40:21
#mkdir /usr/share/asterisk/sounds/ru

/dev/pts/0
15:40:21
#mkdir /usr/share/asterisk/sounds/ru

/dev/pts/1
15:40:47
#rmdir /usr/share/asterisk/sounds/ru

/dev/pts/0
15:40:47
#rmdir /usr/share/asterisk/sounds/ru

/dev/pts/1
15:44:12
#ls
1-for-am-2-for-pm.gsm
1-yes-2-no.gsm
abandon-all-hope.gsm
abandons.gsm
academic-support.gsm
access-code.gsm
access-denied.gsm
access-granted.gsm
accessible-through-system.gsm
account-balance-is.gsm
...
your.gsm
your-msg-has-been-saved.gsm
your-msg-is-too-short.gsm
your-notifications.gsm
your-req-notification.gsm
your-temp-greeting.gsm
you-seem-impatient.gsm
you-sound-cute.gsm
you-wish-to-join.gsm
zip-code.gsm
/dev/pts/0
15:44:12
#ls
1-for-am-2-for-pm.gsm
1-yes-2-no.gsm
abandon-all-hope.gsm
abandons.gsm
academic-support.gsm
access-code.gsm
access-denied.gsm
access-granted.gsm
accessible-through-system.gsm
account-balance-is.gsm
...
your.gsm
your-msg-has-been-saved.gsm
your-msg-is-too-short.gsm
your-notifications.gsm
your-req-notification.gsm
your-temp-greeting.gsm
you-seem-impatient.gsm
you-sound-cute.gsm
you-wish-to-join.gsm
zip-code.gsm
/dev/pts/1
15:44:13
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1311)
Verbosity is at least 3
[Apr  9 16:46:08] NOTICE[1336]: chan_sip.c:11726 sip_reg_timeout:    -- Registration for 'harare@192.168.30.1' timed out, trying again (Attempt #1)
...
  == Spawn extension (gr_country, 8300, 1) exited non-zero on 'SIP/1401-000000c6'
  == Using SIP RTP CoS mark 5
    -- Executing [1301@gr_country:1] Dial("SIP/minsk-000000c7", "SIP/gweru/1301") in new stack
  == Using SIP RTP CoS mark 5
    -- Called gweru/1301
    -- SIP/gweru-000000c8 is ringing
    -- SIP/gweru-000000c8 answered SIP/minsk-000000c7
    -- Packet2Packet bridging SIP/minsk-000000c7 and SIP/gweru-000000c8
  == Spawn extension (gr_country, 1301, 1) exited non-zero on 'SIP/minsk-000000c7'
linux4*CLI> quit
/dev/pts/0
15:44:13
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1311)
Verbosity is at least 3
[Apr  9 16:46:08] NOTICE[1336]: chan_sip.c:11726 sip_reg_timeout:    -- Registration for 'harare@192.168.30.1' timed out, trying again (Attempt #1)
...
  == Spawn extension (gr_country, 8300, 1) exited non-zero on 'SIP/1401-000000c6'
  == Using SIP RTP CoS mark 5
    -- Executing [1301@gr_country:1] Dial("SIP/minsk-000000c7", "SIP/gweru/1301") in new stack
  == Using SIP RTP CoS mark 5
    -- Called gweru/1301
    -- SIP/gweru-000000c8 is ringing
    -- SIP/gweru-000000c8 answered SIP/minsk-000000c7
    -- Packet2Packet bridging SIP/minsk-000000c7 and SIP/gweru-000000c8
  == Spawn extension (gr_country, 1301, 1) exited non-zero on 'SIP/minsk-000000c7'
linux4*CLI> quit
/dev/pts/4
15:47:03
#less /var/log/asterisk/
15:47:03
#less /var/log/asterisk/event_log
15:47:10
#less /var/log/asterisk/messages
15:48:21
#cd /usr/share/asterisk/
agi-bin/       conf/          documentation/ firmware/      keys/          moh/           sounds/        static-http/
15:48:21
#cd /usr/share/asterisk/sounds/ru/

15:48:31
#ln -s vm-
Display all 113 possibilities? (y or n)
15:48:31
#ln -s vm-
Display all 113 possibilities? (y or n)
vm-advopts.gsm            vm-from.gsm               vm-msginstruct.gsm        vm-rec-busy.gsm           vm-then-pound.gsm
vm-and.gsm                vm-from-phonenumber.gsm   vm-msgsaved.gsm           vm-received.gsm           vm-theperson.gsm
vm-calldiffnum.gsm        vm-goodbye.gsm            vm-newpassword.gsm        vm-rec-name.gsm           vm-tmpexists.gsm
vm-changeto.gsm           vm-helpexit.gsm           vm-newuser.gsm            vm-record-prepend.gsm     vm-tocallback.gsm
vm-Cust1.gsm              vm-INBOX.gsm              vm-next.gsm               vm-rec-temp.gsm           vm-tocallnum.gsm
vm-Cust2.gsm              vm-incorrect.gsm          vm-nobodyavail.gsm        vm-rec-unv.gsm            vm-tocancel.gsm
vm-Cust3.gsm              vm-incorrect-mailbox.gsm  vm-nobox.gsm              vm-reenterpassword.gsm    vm-tocancelmsg.gsm
vm-Cust4.gsm              vm-instructions.gsm       vm-no.gsm                 vm-repeat.gsm             vm-toenternumber.gsm
vm-Cust5.gsm              vm-intro.gsm              vm-nomore.gsm             vm-review.gsm             vm-toforward.gsm
...
vm-enter-num-to-call.gsm  vm-last.gsm               vm-onefor.gsm             vm-savefolder.gsm         vm-torerecord.gsm
vm-extension.gsm          vm-leavemsg.gsm           vm-options.gsm            vm-savemessage.gsm        vm-undeleted.gsm
vm-Family.gsm             vm-login.gsm              vm-opts-full.gsm          vm-saveoper.gsm           vm-undelete.gsm
vm-first.gsm              vm-mailboxfull.gsm        vm-opts.gsm               vm-sorry.gsm              vm-unknown-caller.gsm
vm-for.gsm                vm-marked-nonurgent.gsm   vm-passchanged.gsm        vm-star-cancel.gsm        vm-Urgent.gsm
vm-forward.gsm            vm-marked-urgent.gsm      vm-password.gsm           vm-starmain.gsm           vm-whichbox.gsm
vm-forward-multiple.gsm   vm-message.gsm            vm-pls-try-again.gsm      vm-tempgreetactive.gsm    vm-Work.gsm
vm-forwardoptions.gsm     vm-messages.gsm           vm-press.gsm              vm-tempgreeting2.gsm      vm-youhave.gsm
vm-Friends.gsm            vm-minutes.gsm            vm-prev.gsm               vm-tempgreeting.gsm
vm-from-extension.gsm     vm-mismatch.gsm           vm-reachoper.gsm          vm-tempremoved.gsm

Статистика

Время первой команды журнала14:13:41 2013- 4- 9
Время последней команды журнала15:48:31 2013- 4- 9
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, %19.80
Процент синтаксически неверно набранных команд, %11.88
Суммарное время работы с терминалом *, час 1.05
Количество командных строк в единицу времени, команда/мин 1.60
Частота использования команд
nano14|============| 12.50%
mail14|============| 12.50%
asterisk12|==========| 10.71%
echo10|========| 8.93%
apt-get10|========| 8.93%
ls10|========| 8.93%
cd7|======| 6.25%
mkdir4|===| 3.57%
tail4|===| 3.57%
less4|===| 3.57%
tar3|==| 2.68%
/etc/init.d/sendmail2|=| 1.79%
ping2|=| 1.79%
s2|=| 1.79%
rm2|=| 1.79%
[general]2|=| 1.79%
rmdir2|=| 1.79%
ln2|=| 1.79%
[default]2|=| 1.79%
divert(-1)dnl2|=| 1.79%
dpkg1|| 0.89%
pwd1|| 0.89%
____
*) Интервалы неактивности длительностью 30 минут и более не учитываются

Справка

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

О программе

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

$Id$