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

Содержание

Журнал

Вторник (11/25/14)

/dev/pts/10
13:18:34
#asterisk -rx "dialplan reload"
Dialplan reloaded.
/dev/pts/11
13:18:50
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
...
  == Everyone is busy/congested at this time (1:0/1/0)
    -- Auto fallthrough, channel 'SIP/2201-0000001e' status is 'CONGESTION'
  == Using SIP RTP CoS mark 5
    -- Executing [2301@default:1] Dial("SIP/2201-00000020", "SIP/ny/2301") in new stack
  == Using SIP RTP CoS mark 5
    -- Called SIP/ny/2301
  == Everyone is busy/congested at this time (1:0/1/0)
    -- Auto fallthrough, channel 'SIP/2201-00000020' status is 'CONGESTION'
debian5*CLI> exit
Executing last minute cleanups
/dev/pts/10
13:18:50
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
...
  == Everyone is busy/congested at this time (1:0/1/0)
    -- Auto fallthrough, channel 'SIP/2201-0000001e' status is 'CONGESTION'
  == Using SIP RTP CoS mark 5
    -- Executing [2301@default:1] Dial("SIP/2201-00000020", "SIP/ny/2301") in new stack
  == Using SIP RTP CoS mark 5
    -- Called SIP/ny/2301
  == Everyone is busy/congested at this time (1:0/1/0)
    -- Auto fallthrough, channel 'SIP/2201-00000020' status is 'CONGESTION'
debian5*CLI> exit
Executing last minute cleanups
/dev/pts/11
13:21:11
#~
[xten =>]2201,3,Dial(SIP/2201)
exten => 2202,1,NoOp(Starting call processing)
                     (               )
exten => 2202,3,Diall(IP/2202)           )
                    l(               )
                     (       ${EXTEN})
exten => _81XX,1,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm)
"/etc/asterisk/extensions.conf" 35L, 1160C
exten => _82XX,1,Playback(/var/tmp/asterisk/record${EXTEN:2})
; using ${EXTEN}
;exten => _22XX,1,NoOp(Starting call processing)
;exten => _22XX,n,NoOp(to extension {EXTEN})
;exten => _22XX,n,Dial(SIP/${EXTEN})
; using same
~
~
~
~
~
-- INSERT --                                                       8,1           All
/dev/pts/10
13:21:11
#~
[xten =>]2201,3,Dial(SIP/2201)
exten => 2202,1,NoOp(Starting call processing)
                     (               )
exten => 2202,3,Diall(IP/2202)           )
                    l(               )
                     (       ${EXTEN})
exten => _81XX,1,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm)
"/etc/asterisk/extensions.conf" 35L, 1160C
exten => _82XX,1,Playback(/var/tmp/asterisk/record${EXTEN:2})
; using ${EXTEN}
;exten => _22XX,1,NoOp(Starting call processing)
;exten => _22XX,n,NoOp(to extension {EXTEN})
;exten => _22XX,n,Dial(SIP/${EXTEN})
; using same
~
~
~
~
~
-- INSERT --                                                       8,1           All
прошло 65 минут
14:26:35
#asterisk -rx "sip reload"

/dev/pts/11
14:26:35
#asterisk -rx "sip reload"

/dev/pts/10
14:30:51
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
...
  == Using SIP RTP CoS mark 5
    -- Executing [2201@gr1:1] NoOp("SIP/ny-00000048", "Starting call processing") in new stack
    -- Executing [2201@gr1:2] NoOp("SIP/ny-00000048", "to extension 2201") in new stack
    -- Executing [2201@gr1:3] Dial("SIP/ny-00000048", "SIP/2201") in new stack
  == Using SIP RTP CoS mark 5
    -- Called SIP/2201
    -- SIP/2201-00000049 is ringing
  == Spawn extension (gr1, 2201, 3) exited non-zero on 'SIP/ny-00000048'
debian5*CLI> exit
Executing last minute cleanups
/dev/pts/1
14:30:51
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
...
  == Using SIP RTP CoS mark 5
    -- Executing [2201@gr1:1] NoOp("SIP/ny-00000048", "Starting call processing") in new stack
    -- Executing [2201@gr1:2] NoOp("SIP/ny-00000048", "to extension 2201") in new stack
    -- Executing [2201@gr1:3] Dial("SIP/ny-00000048", "SIP/2201") in new stack
  == Using SIP RTP CoS mark 5
    -- Called SIP/2201
    -- SIP/2201-00000049 is ringing
  == Spawn extension (gr1, 2201, 3) exited non-zero on 'SIP/ny-00000048'
debian5*CLI> exit
Executing last minute cleanups
прошло 11 минут
/dev/pts/10
14:42:11
#vim /etc/asterisk/extensions.conf
/dev/pts/1
14:42:11
#vim /etc/asterisk/extensions.conf
/dev/pts/3
14:48:55
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-18457.13576.13406	2014-11-25 15:48:59.783722904 +0200
+++ /etc/asterisk/extensions.conf	2014-11-25 15:49:28.703723255 +0200
@@ -41,8 +41,6 @@
 
 ; для транзитных звонков
 [gr4]
-include => local
-include => national
 include => international
 
 [internal]
/dev/pts/0
14:48:55
#vim /etc/asterisk/extensions.conf
прошло 17 минут
/dev/pts/7
15:05:58
#less /var/log/asterisk/messages
15:06:13
#less /etc/asterisk/extensions.conf
/dev/pts/3
15:06:57
#vim /etc/asterisk/extensions.conf
/dev/pts/0
15:06:57
#vim /etc/asterisk/extensions.conf
/dev/pts/7
15:07:38
#asterisk -rvvvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
...
    -- Auto fallthrough, channel 'SIP/2201-00000060' status is 'CONGESTION'
debian5*CLI> sip show peers
Name/username              Host                                    Dyn Forcerport ACL Port     Status
2201/2201                  192.168.50.100                           D   N             5060     Unmonitored
2202/2202                  192.168.50.101                           D   N             61523    OK (103 ms)
london/atlanta             192.168.80.1                             D   N             5060     OK (1 ms)
ny/atlanta                 192.168.40.1                             D   N             5060     OK (1 ms)
4 sip peers [Monitored: 3 online, 0 offline Unmonitored: 1 online, 0 offline]
debian5*CLI> exit
Executing last minute cleanups
/dev/pts/3
15:17:13
#дls /var/tmp/asterisk/
record00.gsm
/dev/pts/0
15:17:13
#дls /var/tmp/asterisk/
record00.gsm
/dev/pts/3
15:27:00
#play /var/tmp/asterisk/record00.gsm
play WARN alsa: can't encode 0-bit Unknown or not applicable
/var/tmp/asterisk/record00.gsm:
 File Size: 5.05k
  Encoding: GSM
  Channels: 1 @ 16-bit
Samplerate: 8000Hz
Replaygain: off
  Duration: unknown
In:0.00% 00:00:03.06 [00:00:00.00] Out:24.5k [-=====|=====-]        Clip:0
Done.
/dev/pts/0
15:27:00
#play /var/tmp/asterisk/record00.gsm
play WARN alsa: can't encode 0-bit Unknown or not applicable
/var/tmp/asterisk/record00.gsm:
 File Size: 5.05k
  Encoding: GSM
  Channels: 1 @ 16-bit
Samplerate: 8000Hz
Replaygain: off
  Duration: unknown
In:0.00% 00:00:03.06 [00:00:00.00] Out:24.5k [-=====|=====-]        Clip:0
Done.
/dev/pts/3
15:27:16
#play /var/tmp/asterisk/record00.gsm
play WARN alsa: can't encode 0-bit Unknown or not applicable
/var/tmp/asterisk/record00.gsm:
 File Size: 5.05k
  Encoding: GSM
  Channels: 1 @ 16-bit
Samplerate: 8000Hz
Replaygain: off
  Duration: unknown
In:0.00% 00:00:03.06 [00:00:00.00] Out:24.5k [-=====|=====-]        Clip:0
Done.
/dev/pts/0
15:27:16
#play /var/tmp/asterisk/record00.gsm
play WARN alsa: can't encode 0-bit Unknown or not applicable
/var/tmp/asterisk/record00.gsm:
 File Size: 5.05k
  Encoding: GSM
  Channels: 1 @ 16-bit
Samplerate: 8000Hz
Replaygain: off
  Duration: unknown
In:0.00% 00:00:03.06 [00:00:00.00] Out:24.5k [-=====|=====-]        Clip:0
Done.
/dev/pts/3
15:27:49
#play /var/tmp/asterisk/record00.gsm
play WARN alsa: can't encode 0-bit Unknown or not applicable
/var/tmp/asterisk/record00.gsm:
 File Size: 5.05k
  Encoding: GSM
  Channels: 1 @ 16-bit
Samplerate: 8000Hz
Replaygain: off
  Duration: unknown
In:0.00% 00:00:03.06 [00:00:00.00] Out:24.5k [-=====|=====-]        Clip:0
Done.
/dev/pts/0
15:27:49
#play /var/tmp/asterisk/record00.gsm
play WARN alsa: can't encode 0-bit Unknown or not applicable
/var/tmp/asterisk/record00.gsm:
 File Size: 5.05k
  Encoding: GSM
  Channels: 1 @ 16-bit
Samplerate: 8000Hz
Replaygain: off
  Duration: unknown
In:0.00% 00:00:03.06 [00:00:00.00] Out:24.5k [-=====|=====-]        Clip:0
Done.
/dev/pts/3
15:27:55
#play /var/tmp/asterisk/record00.gsm
play WARN alsa: can't encode 0-bit Unknown or not applicable
/var/tmp/asterisk/record00.gsm:
 File Size: 5.05k
  Encoding: GSM
  Channels: 1 @ 16-bit
Samplerate: 8000Hz
Replaygain: off
  Duration: unknown
In:0.00% 00:00:03.06 [00:00:00.00] Out:24.5k [-=====|=====-]        Clip:0
Done.
/dev/pts/0
15:27:55
#play /var/tmp/asterisk/record00.gsm
play WARN alsa: can't encode 0-bit Unknown or not applicable
/var/tmp/asterisk/record00.gsm:
 File Size: 5.05k
  Encoding: GSM
  Channels: 1 @ 16-bit
Samplerate: 8000Hz
Replaygain: off
  Duration: unknown
In:0.00% 00:00:03.06 [00:00:00.00] Out:24.5k [-=====|=====-]        Clip:0
Done.
/dev/pts/3
15:28:00
#фзеapt-get install sendmail-bin
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgadu3 libmozjs24d libmysqlclient18 mysql-common xulrunner-24.0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  sendmail-base sendmail-cf
Suggested packages:
  sendmail-doc logcheck resolvconf sasl2-bin
...
        make sure they are benign before starting sendmail!
Errors in generating sendmail.cf
*** ERROR: FEATURE() should be before MAILER()
*** MAILER(`local') must appear after FEATURE(`always_add_domain')*** ERROR: FEATURE() should be before MAILER()
*** MAILER(`local') must appear after FEATURE(`allmasquerade')*** ERROR: FEATURE() should be before MAILER()
[....] Starting Mail Transport Agent (MTA): sendmail
. ok
(Reading database ... 132084 files and directories currently installed.)
Removing exim4-base ...
Processing triggers for man-db ...
/dev/pts/0
15:28:00
#фзеapt-get install sendmail-bin
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgadu3 libmozjs24d libmysqlclient18 mysql-common xulrunner-24.0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  sendmail-base sendmail-cf
Suggested packages:
  sendmail-doc logcheck resolvconf sasl2-bin
...
        make sure they are benign before starting sendmail!
Errors in generating sendmail.cf
*** ERROR: FEATURE() should be before MAILER()
*** MAILER(`local') must appear after FEATURE(`always_add_domain')*** ERROR: FEATURE() should be before MAILER()
*** MAILER(`local') must appear after FEATURE(`allmasquerade')*** ERROR: FEATURE() should be before MAILER()
[....] Starting Mail Transport Agent (MTA): sendmail
. ok
(Reading database ... 132084 files and directories currently installed.)
Removing exim4-base ...
Processing triggers for man-db ...
/dev/pts/3
15:31:44
#Ñeho debian5.unix.nt >> /etc/mail/local-host-names

/dev/pts/0
15:31:44
#Ñeho debian5.unix.nt >> /etc/mail/local-host-names

/dev/pts/3
15:32:57
#мÑvim /etc/mail/local-host-names
localhost
debian5
debian5.unix.nt
"/etc/mail/local-host-names" 3L, 34C
/dev/pts/0
15:32:57
#мÑvim /etc/mail/local-host-names
localhost
debian5
debian5.unix.nt
"/etc/mail/local-host-names" 3L, 34C
/dev/pts/3
15:34:20
#~
dnl #
dnl # The greet_pause feature stops some automail bots - but check the
dnl # provided access db for details on excluding localhosts...
FEATURE(`greet_pause', `1000')dnl 1 seconds
dnl #
dnl # Delay_checks allows sender<->recipient checking
FEATURE(`delay_checks', `friend', `n')dnl
dnl #
dnl # If we get too many bad recipients, slow things down...
define(`confBAD_RCPT_THROTTLE',`3')dnl
...
dnl # Be somewhat anal in what we allow
dnl DAEMON_OPTIONS(`Family=inet,  Name=MTA-v4, Port=smtp, Addr=127.0.0.1')dnl
define(`confPRIVACY_FLAGS',dnl
dnl DAEMON_OPTIONS(`Family=inet,  Name=MSP-v4, Port=submission, M=Ea, Addr=127.0.0.1')dnlingg
s')dnl
dnl #
dnl # Define connection throttling and window length
define(`confCONNECTION_RATE_THROTTLE', `15')dnl
define(`confCONNECTION_RATE_WINDOW_SIZE',`10m')dnl
"/etc/mail/sendmail.mc" 109L, 4215C written
/dev/pts/0
15:34:20
#~
dnl #
dnl # Daemon options - restrict to servicing LOCALHOST ONLY !!!
dnl # Remove `, Addr=' clauses to receive from any interface
dnl # If you want to support IPv6, switch the commented/uncommentd lines
dnl #
FEATURE(`no_default_msa')dnl
dnl DAEMON_OPTIONS(`Family=inet6, Name=MTA-v6, Port=smtp, Addr=::1')dnl
DAEMON_OPTIONS(`Family=inet,  Name=MTA-v4, Port=smtp, Addr=127.0.0.1')dnl
dnl DAEMON_OPTIONS(`Family=inet6, Name=MSP-v6, Port=submission, M=Ea, Addr=::1')dnl
DAEMON_OPTIONS(`Family=inet,  Name=MSP-v4, Port=submission, M=Ea, Addr=127.0.0.1')dnl
...
dnl # Be somewhat anal in what we allow
dnl DAEMON_OPTIONS(`Family=inet,  Name=MTA-v4, Port=smtp, Addr=127.0.0.1')dnl
define(`confPRIVACY_FLAGS',dnl
dnl DAEMON_OPTIONS(`Family=inet,  Name=MSP-v4, Port=submission, M=Ea, Addr=127.0.0.1')dnlingg
s')dnl
dnl #
dnl # Define connection throttling and window length
define(`confCONNECTION_RATE_THROTTLE', `15')dnl
define(`confCONNECTION_RATE_WINDOW_SIZE',`10m')dnl
"/etc/mail/sendmail.mc" 109L, 4215C written
/dev/pts/3
15:36:32
#grep 'dnl.*127.0.0.1' /etc/mail/sendmail.mc
dnl DAEMON_OPTIONS(`Family=inet,  Name=MTA-v4, Port=smtp, Addr=127.0.0.1')dnl
dnl DAEMON_OPTIONS(`Family=inet,  Name=MSP-v4, Port=submission, M=Ea, Addr=127.0.0.1')dnl
/dev/pts/0
15:36:32
#grep 'dnl.*127.0.0.1' /etc/mail/sendmail.mc
dnl DAEMON_OPTIONS(`Family=inet,  Name=MTA-v4, Port=smtp, Addr=127.0.0.1')dnl
dnl DAEMON_OPTIONS(`Family=inet,  Name=MSP-v4, Port=submission, M=Ea, Addr=127.0.0.1')dnl
/dev/pts/3
15:37:48
#.у/etc/init.d/sendmail restart
[ ok ] Restarting Mail Transport Agent (MTA): sendmail.
/dev/pts/0
15:37:48
#.у/etc/init.d/sendmail restart
[ ok ] Restarting Mail Transport Agent (MTA): sendmail.
/dev/pts/3
15:42:01
#vim /etc/host
/dev/pts/0
15:42:01
#vim /etc/host
/dev/pts/3
15:42:01
#vim /etc/hosts
--- /tmp/l3-saved-18457.31136.11251	2014-11-25 16:42:46.167761094 +0200
+++ /etc/hosts	2014-11-25 16:43:35.691761687 +0200
@@ -1,5 +1,5 @@
 127.0.0.1	localhost
-127.0.1.1	debian5
+127.0.1.1	debian5 debian5.unix.nt
 
 # The following lines are desirable for IPv6 capable hosts
 ::1     localhost ip6-localhost ip6-loopback
/dev/pts/0
15:42:01
#vim /etc/hosts
/dev/pts/3
15:43:35
#/etc/init.d/sendmail restart
[ ok ] Restarting Mail Transport Agent (MTA): sendmail.
/dev/pts/0
15:43:35
#/etc/init.d/sendmail restart
[ ok ] Restarting Mail Transport Agent (MTA): sendmail.

Среда (11/26/14)

/dev/pts/3
08:58:31
#vim /etc/asterisk/voicemail.conf
--- /tmp/l3-saved-18457.24955.30769	2014-11-26 09:58:43.787474613 +0200
+++ /etc/asterisk/voicemail.conf	2014-11-26 10:00:56.271476173 +0200
@@ -381,6 +381,11 @@
 
 [default]
 
+; ящик => пароль,имя юзера (для почты), адрес email
+3302 => 1234,User 1 (3301),user@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
/dev/pts/0
08:58:31
#vim /etc/asterisk/voicemail.conf
/dev/pts/3
09:05:52
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-18457.21989.12013	2014-11-26 10:07:12.907480636 +0200
+++ /etc/asterisk/extensions.conf	2014-11-26 10:07:59.015481195 +0200
@@ -15,7 +15,7 @@
 ;
 exten => 8001,1,VoiceMailMain()
 ;
-exten => 8300,1,VoiceMailMain(33${EXTEN}:2@default)
+exten => 8300,1,VoiceMailMain(22${EXTEN}:2@default)
 
 
 [local]
/dev/pts/0
09:05:52
#vim /etc/asterisk/extensions.conf
/dev/pts/3
09:07:59
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-18457.24601.6856	2014-11-26 10:08:10.735481323 +0200
+++ /etc/asterisk/sip.conf	2014-11-26 10:09:07.007481988 +0200
@@ -42,7 +42,7 @@
 
 [2203](phone)
 context=gr3
-mailbox=2203@default
+mailbox=2201@default
 
 ;[softphone](!)
 ;....
/dev/pts/0
09:07:59
#vim /etc/asterisk/sip.conf
/dev/pts/3
09:09:07
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-18457.29685.28043	2014-11-26 10:09:08.223482007 +0200
+++ /etc/asterisk/extensions.conf	2014-11-26 10:11:56.851483994 +0200
@@ -15,17 +15,15 @@
 ;
 exten => 8001,1,VoiceMailMain()
 ;
-exten => 8300,1,VoiceMailMain(22${EXTEN}:2@default)
+exten => _8300,1,VoiceMailMain(22${EXTEN}:2@default)
 
 
 [local]
-exten => 2201,1,NoOp(Starting call processing)
-exten => 2201,2,NoOp(to extension 2201)
-exten => 2201,3,Dial(SIP/2201)
-
-
+; использование переменной ${EXTEN}
+;exten => _22XX,1,NoOp(Starting call processing)
+;exten => _22XX,n,NoOp(to extension {EXTEN})
+;exten => _22XX,n,Dial(SIP/${EXTEN},5)
 ; если через 5 сек не подняли трубку тогда переходим на голосовую почту
-exten => _22XX,1,Dial(SIP/${EXTEN},5)
 ; включить головую почту, в ящик ${EXTEN}
 exten => _22XX,n,VoiceMail(${EXTEN}@default)
 
@@ -60,10 +58,6 @@
 [gr4]
 include => international
 
-; использование переменной ${EXTEN}
-;exten => _22XX,1,NoOp(Starting call processing)
-;exten => _22XX,n,NoOp(to extension {EXTEN})
-;exten => _22XX,n,Dial(SIP/${EXTEN})
 
 ; использование same
 ;exten => _22XX,1,NoOp(Starting call processing)
/dev/pts/0
09:09:07
#vim /etc/asterisk/extensions.conf
/dev/pts/3
09:11:56
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-18457.29918.10913	2014-11-26 10:11:58.599484019 +0200
+++ /etc/asterisk/sip.conf	2014-11-26 10:12:38.827484493 +0200
@@ -41,7 +41,7 @@
 context=gr1
 
 [2203](phone)
-context=gr3
+context=gr1
 mailbox=2201@default
 
 ;[softphone](!)
/dev/pts/0
09:11:56
#vim /etc/asterisk/sip.conf
/dev/pts/3
09:12:38
#vim /etc/asterisk/voicemail.conf
--- /tmp/l3-saved-18457.13734.19030	2014-11-26 10:13:08.071484843 +0200
+++ /etc/asterisk/voicemail.conf	2014-11-26 10:13:43.391485257 +0200
@@ -382,7 +382,7 @@
 [default]
 
 ; ящик => пароль,имя юзера (для почты), адрес email
-3302 => 1234,User 1 (3301),user@localhost
+2201 => 1234,User 1 (2201),user@localhost
 
 
 
/dev/pts/0
09:12:38
#vim /etc/asterisk/voicemail.conf
/dev/pts/3
09:13:43
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-18457.2535.20883	2014-11-26 10:13:47.699485311 +0200
+++ /etc/asterisk/sip.conf	2014-11-26 10:17:58.019488273 +0200
@@ -36,14 +36,11 @@
 
 [2201](phone)
 context=gr1
+mailbox=2201@default
 
 [2202](phone)
 context=gr1
 
-[2203](phone)
-context=gr1
-mailbox=2201@default
-
 ;[softphone](!)
 ;....
 ;qualify=no
/dev/pts/0
09:13:43
#vim /etc/asterisk/sip.conf
/dev/pts/3
09:17:58
#vim /etc/asterisk/sip.conf
/dev/pts/0
09:17:58
#vim /etc/asterisk/sip.conf
/dev/pts/3
09:20:26
#asterisk -rx "dialplan reload"
Dialplan reloaded.
/dev/pts/0
09:20:26
#asterisk -rx "dialplan reload"
Dialplan reloaded.
/dev/pts/8
09:20:56
#screen -x
/dev/pts/3
09:22:20
#voicemail reload
bash: voicemail: command not found
/dev/pts/0
09:22:20
#voicemail reload
bash: voicemail: command not found
/dev/pts/3
09:22:35
#asterisk -rx "voicemail reload"
Reloading voicemail configuration...
/dev/pts/0
09:22:35
#asterisk -rx "voicemail reload"
Reloading voicemail configuration...
/dev/pts/3
09:22:53
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
...
    -- Executing [2202@gr1:1] NoOp("SIP/2201-00000087", "Starting call processing") in new stack
    -- Executing [2202@gr1:2] NoOp("SIP/2201-00000087", "to extension 2202") in new stack
    -- Executing [2202@gr1:3] Dial("SIP/2201-00000087", "SIP/2202") in new stack
  == Using SIP RTP CoS mark 5
    -- Called SIP/2202
    -- SIP/2202-00000088 is ringing
    -- SIP/2202-00000088 is ringing
  == Spawn extension (gr1, 2202, 3) exited non-zero on 'SIP/2201-00000087'
debian5*CLI> exit
Executing last minute cleanups
/dev/pts/0
09:22:53
#asterisk -rvv
Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 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.8.13.1~dfsg1-3+deb7u3 currently running on debian5 (pid = 13517)
...
    -- Executing [2202@gr1:1] NoOp("SIP/2201-00000087", "Starting call processing") in new stack
    -- Executing [2202@gr1:2] NoOp("SIP/2201-00000087", "to extension 2202") in new stack
    -- Executing [2202@gr1:3] Dial("SIP/2201-00000087", "SIP/2202") in new stack
  == Using SIP RTP CoS mark 5
    -- Called SIP/2202
    -- SIP/2202-00000088 is ringing
    -- SIP/2202-00000088 is ringing
  == Spawn extension (gr1, 2202, 3) exited non-zero on 'SIP/2201-00000087'
debian5*CLI> exit
Executing last minute cleanups
прошло 17 минут
/dev/pts/3
09:40:37
#[ ]
bash: mut: command not found
/dev/pts/0
09:40:37
#[ ]
bash: mut: command not found
/dev/pts/3
09:40:49
#mutt

/dev/pts/0
09:40:49
#mutt

/dev/pts/3
09:46:46
#exi
bash: exi: command not found
/dev/pts/0
09:46:46
#exi
bash: exi: command not found
/dev/pts/3
09:47:43
#w
 10:47:45 up 2 days,  2:04,  6 users,  load average: 0.28, 0.29, 0.28
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
user     tty7     :0               Mon09    2days  7:40   0.28s gdm-session-worker [pam/gdm3]
user     pts/0    :0.0             Tue15    9.00s  0.07s  0.01s mutt
root     pts/4    :pts/11:S.0      Mon10   26:49   0.05s  0.04s script -f -c /bin/bash -q /root/.lilalo//7143311
user     pts/7    :0.0             09:37    1:04m  0.37s  0.30s ssh user@192.168.12.254
root     pts/8    192.168.12.254   10:20   26:49   0.08s  0.00s script -f -c bash -q /root/.lilalo//721017808124
root     pts/3    192.168.12.254   10:47    1.00s  0.06s  0.00s script -f -c bash -q /root/.lilalo//124277113128
09:47:45
#su - user
---Mutt: (no mailbox) [Msgs:0]---(threads/date)----------------------------------------------------------(all)---
user@debian5:~$
user@debian5:~$
user@debian5:~$ exit
logout
09:48:06
#less /etc/asterisk/voicemail.conf
09:48:28
#less /var/log/mail.log
09:48:40
#apt-get install sensible-mda
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgadu3 libmozjs24d xulrunner-24.0
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  sensible-mda
0 upgraded, 1 newly installed, 0 to remove and 15 not upgraded.
Need to get 218 kB of archives.
After this operation, 226 kB of additional disk space will be used.
Get:1 http://192.168.12.254/debian/ wheezy/main sensible-mda amd64 8.14.4-4 [218 kB]
Fetched 218 kB in 0s (11.3 MB/s)
Selecting previously unselected package sensible-mda.
(Reading database ... 132013 files and directories currently installed.)
Unpacking sensible-mda (from .../sensible-mda_8.14.4-4_amd64.deb) ...
Processing triggers for man-db ...
Setting up sensible-mda (8.14.4-4) ...
09:49:08
#less /var/log/mail.log
09:49:14
#su - user
   5 N   Nov 26 root
              1                                                  41:58
-*-Mutt: /var/mail/user [Msgs:5 New:2 30K]---(threads/date)----------------------------------------------(all)---
5 kept, 0 deleted.
user@debian5:~$ exit
logout
прошло 10 минут
/dev/pts/3
09:59:50
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-25685.4033.340	2014-11-26 11:03:08.771520353 +0200
+++ /etc/asterisk/extensions.conf	2014-11-26 11:04:46.035521503 +0200
@@ -17,6 +17,9 @@
 ;
 exten => _8300,1,VoiceMailMain(22${EXTEN}:2@default)
 
+; сразу переход на свой голосовой почтовый ящик
+exten => _83XX,1,VoiceMail(22${EXTEN}:2@default)
+
 
 [local]
 ; использование переменной ${EXTEN}
/dev/pts/0
09:59:50
#vim /etc/asterisk/extensions.conf
/dev/pts/3
10:09:43
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-25685.29390.13433	2014-11-26 11:09:44.791525044 +0200
+++ /etc/asterisk/extensions.conf	2014-11-26 11:09:57.351525192 +0200
@@ -18,7 +18,7 @@
 exten => _8300,1,VoiceMailMain(22${EXTEN}:2@default)
 
 ; сразу переход на свой голосовой почтовый ящик
-exten => _83XX,1,VoiceMail(22${EXTEN}:2@default)
+exten => _83XX,1,VoiceMailMain(22${EXTEN}:2@default)
 
 
 [local]
/dev/pts/0
10:09:43
#vim /etc/asterisk/extensions.conf
прошло 35 минут
/dev/pts/3
10:44:58
#apt-cache search asterisk | grep sound
asterisk-core-sounds-en - asterisk PBX sound files - US English
asterisk-core-sounds-en-g722 - asterisk PBX sound files - en-us/g722
asterisk-core-sounds-en-gsm - asterisk PBX sound files - en-us/gsm
asterisk-core-sounds-en-wav - asterisk PBX sound files - en-us/wav
asterisk-core-sounds-es - asterisk PBX sound files - Spanish
asterisk-core-sounds-es-g722 - asterisk PBX sound files - es-mx/g722
asterisk-core-sounds-es-gsm - asterisk PBX sound files - es-mx/gsm
asterisk-core-sounds-es-wav - asterisk PBX sound files - es-mx/wav
asterisk-core-sounds-fr - asterisk PBX sound files - Canadian French
asterisk-core-sounds-fr-g722 - asterisk PBX sound files - fr-ca/g722
...
asterisk-core-sounds-ru-g722 - asterisk PBX sound files - ru-ru/g722
asterisk-core-sounds-ru-gsm - asterisk PBX sound files - ru-ru/gsm
asterisk-core-sounds-ru-wav - asterisk PBX sound files - ru-ru/wav
asterisk-moh-opsound-g722 - asterisk extra sound files - English/g722
asterisk-moh-opsound-gsm - asterisk extra sound files - English/gsm
asterisk-moh-opsound-wav - asterisk extra sound files - English/wav
asterisk-prompt-it-menardi - asterisk PBX Italian sound files
asterisk-prompt-it-menardi-alaw - asterisk PBX Italian sound files - a-law prompts
asterisk-prompt-it-menardi-gsm - asterisk PBX Italian sound files - gsm prompts
asterisk-prompt-it-menardi-wav - asterisk PBX Italian sound files - wav prompts
/dev/pts/0
10:44:58
#apt-cache search asterisk | grep sound
asterisk-core-sounds-en - asterisk PBX sound files - US English
asterisk-core-sounds-en-g722 - asterisk PBX sound files - en-us/g722
asterisk-core-sounds-en-gsm - asterisk PBX sound files - en-us/gsm
asterisk-core-sounds-en-wav - asterisk PBX sound files - en-us/wav
asterisk-core-sounds-es - asterisk PBX sound files - Spanish
asterisk-core-sounds-es-g722 - asterisk PBX sound files - es-mx/g722
asterisk-core-sounds-es-gsm - asterisk PBX sound files - es-mx/gsm
asterisk-core-sounds-es-wav - asterisk PBX sound files - es-mx/wav
asterisk-core-sounds-fr - asterisk PBX sound files - Canadian French
asterisk-core-sounds-fr-g722 - asterisk PBX sound files - fr-ca/g722
...
asterisk-core-sounds-ru-g722 - asterisk PBX sound files - ru-ru/g722
asterisk-core-sounds-ru-gsm - asterisk PBX sound files - ru-ru/gsm
asterisk-core-sounds-ru-wav - asterisk PBX sound files - ru-ru/wav
asterisk-moh-opsound-g722 - asterisk extra sound files - English/g722
asterisk-moh-opsound-gsm - asterisk extra sound files - English/gsm
asterisk-moh-opsound-wav - asterisk extra sound files - English/wav
asterisk-prompt-it-menardi - asterisk PBX Italian sound files
asterisk-prompt-it-menardi-alaw - asterisk PBX Italian sound files - a-law prompts
asterisk-prompt-it-menardi-gsm - asterisk PBX Italian sound files - gsm prompts
asterisk-prompt-it-menardi-wav - asterisk PBX Italian sound files - wav prompts
/dev/pts/3
10:45:14
#apt-get install asterisk-core-sounds-fr
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgadu3 libmozjs24d xulrunner-24.0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  asterisk-core-sounds-fr-gsm
The following NEW packages will be installed:
  asterisk-core-sounds-fr asterisk-core-sounds-fr-gsm
...
Fetched 2,174 kB in 0s (2,586 kB/s)
Selecting previously unselected package asterisk-core-sounds-fr-gsm.
(Reading database ... 132026 files and directories currently installed.)
Unpacking asterisk-core-sounds-fr-gsm (from .../asterisk-core-sounds-fr-gsm_1.4.22-1_all.deb) ...
Selecting previously unselected package asterisk-core-sounds-fr.
Unpacking asterisk-core-sounds-fr (from .../asterisk-core-sounds-fr_1.4.22-1_all.deb) ...
Setting up asterisk-core-sounds-fr-gsm (1.4.22-1) ...
Setting up asterisk-core-sounds-fr (1.4.22-1) ...
update-alternatives: using /usr/share/asterisk/sounds/fr_CA_f_June to provide /usr/share/asterisk/sounds/fr (asterisk-prompt-fr) in auto mode
update-alternatives: using /usr/share/asterisk/sounds/fr_CA_f_June to provide /usr/share/asterisk/sounds/fr_CA (asterisk-prompt-fr-ca) in auto mode
/dev/pts/0
10:45:14
#apt-get install asterisk-core-sounds-fr
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgadu3 libmozjs24d xulrunner-24.0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  asterisk-core-sounds-fr-gsm
The following NEW packages will be installed:
  asterisk-core-sounds-fr asterisk-core-sounds-fr-gsm
...
Fetched 2,174 kB in 0s (2,586 kB/s)
Selecting previously unselected package asterisk-core-sounds-fr-gsm.
(Reading database ... 132026 files and directories currently installed.)
Unpacking asterisk-core-sounds-fr-gsm (from .../asterisk-core-sounds-fr-gsm_1.4.22-1_all.deb) ...
Selecting previously unselected package asterisk-core-sounds-fr.
Unpacking asterisk-core-sounds-fr (from .../asterisk-core-sounds-fr_1.4.22-1_all.deb) ...
Setting up asterisk-core-sounds-fr-gsm (1.4.22-1) ...
Setting up asterisk-core-sounds-fr (1.4.22-1) ...
update-alternatives: using /usr/share/asterisk/sounds/fr_CA_f_June to provide /usr/share/asterisk/sounds/fr (asterisk-prompt-fr) in auto mode
update-alternatives: using /usr/share/asterisk/sounds/fr_CA_f_June to provide /usr/share/asterisk/sounds/fr_CA (asterisk-prompt-fr-ca) in auto mode
/dev/pts/3
10:46:16
#apt-get install asterisk-core-sounds-it
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package asterisk-core-sounds-it
/dev/pts/0
10:46:16
#apt-get install asterisk-core-sounds-it
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package asterisk-core-sounds-it
прошло 11 минут
10:57:42
#apt-cache search asterisk | grep promt

/dev/pts/3
10:57:42
#apt-cache search asterisk | grep promt

10:58:29
#apt-cache search asterisk | grep prompt
asterisk-prompt-de - German voice prompts for the Asterisk PBX
asterisk-prompt-es-co - Colombian Spanish voice prompts for Asterisk
asterisk-prompt-fr-armelle - French voice prompts for Asterisk by Armelle Desjardins
asterisk-prompt-fr-proformatique - French voice prompts for Asterisk
asterisk-prompt-it - dummy transitional package
asterisk-prompt-it-menardi - asterisk PBX Italian sound files
asterisk-prompt-it-menardi-alaw - asterisk PBX Italian sound files - a-law prompts
asterisk-prompt-it-menardi-gsm - asterisk PBX Italian sound files - gsm prompts
asterisk-prompt-it-menardi-wav - asterisk PBX Italian sound files - wav prompts
asterisk-prompt-se - Swedish voice prompts for Asterisk
/dev/pts/0
10:58:29
#apt-cache search asterisk | grep prompt
asterisk-prompt-de - German voice prompts for the Asterisk PBX
asterisk-prompt-es-co - Colombian Spanish voice prompts for Asterisk
asterisk-prompt-fr-armelle - French voice prompts for Asterisk by Armelle Desjardins
asterisk-prompt-fr-proformatique - French voice prompts for Asterisk
asterisk-prompt-it - dummy transitional package
asterisk-prompt-it-menardi - asterisk PBX Italian sound files
asterisk-prompt-it-menardi-alaw - asterisk PBX Italian sound files - a-law prompts
asterisk-prompt-it-menardi-gsm - asterisk PBX Italian sound files - gsm prompts
asterisk-prompt-it-menardi-wav - asterisk PBX Italian sound files - wav prompts
asterisk-prompt-se - Swedish voice prompts for Asterisk
/dev/pts/3
11:02:36
#cat /tmp/1
cat: /tmp/1: No such file or directory
/dev/pts/0
11:02:36
#cat /tmp/1
cat: /tmp/1: No such file or directory
/dev/pts/3
11:03:17
#wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-core-sounds-ru-gsm-current
--2014-11-26 12:03:26--  http://downloads.asterisk.org/pub/telephony/sounds/asterisk-core-sounds-ru-gsm-current
Resolving downloads.asterisk.org (downloads.asterisk.org)... 76.164.171.238, 2001:470:e0d4::ee
Connecting to downloads.asterisk.org (downloads.asterisk.org)|76.164.171.238|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2050757 (2.0M) [application/x-gzip]
Saving to: `asterisk-core-sounds-ru-gsm-current.1'
100%[==================================================>] 2,050,757   55.0K/s   in 42s
2014-11-26 12:04:08 (48.1 KB/s) - `asterisk-core-sounds-ru-gsm-current.1' saved [2050757/2050757]

Статистика

Время первой команды журнала13:18:34 2014-11-25
Время последней команды журнала11:03:17 2014-11-26
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, %21.78
Процент синтаксически неверно набранных команд, % 5.94
Суммарное время работы с терминалом *, час 2.82
Количество командных строк в единицу времени, команда/мин 0.60
Частота использования команд
vim30|===========================| 27.03%
asterisk14|============| 12.61%
play8|=======| 7.21%
grep8|=======| 7.21%
apt-cache6|=====| 5.41%
less5|====| 4.50%
apt-get5|====| 4.50%
~4|===| 3.60%
.у/etc/init.d/sendmail2|=| 1.80%
/etc/init.d/sendmail2|=| 1.80%
дls2|=| 1.80%
/etc/mail/local-host-names2|=| 1.80%
mutt2|=| 1.80%
фзеapt-get2|=| 1.80%
Ñeho2|=| 1.80%
>2|=| 1.80%
[2|=| 1.80%
exi2|=| 1.80%
voicemail2|=| 1.80%
cat2|=| 1.80%
мÑvim2|=| 1.80%
su2|=| 1.80%
screen1|| 0.90%
wget1|| 0.90%
w1|| 0.90%
____
*) Интервалы неактивности длительностью 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$