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

Содержание

Журнал

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

/dev/pts/3
12:49:33
#vim /etc/asterisk/sip.conf
12:55:15
#asterisk -rv
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.
=========================================================================
Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian4 (pid = 2508)
Verbosity is at least 1
debian4*CLI> dialplan reload
Dialplan reloaded.
debian4*CLI> quit
Executing last minute cleanups
12:56:16
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3924.31998.6124	2014-11-25 13:56:26.129955522 +0200
+++ /etc/asterisk/extensions.conf	2014-11-25 13:57:00.853955931 +0200
@@ -7,4 +7,4 @@
 
 exten => _82XX,1,Playback(/var/tmp/asterisk/record${EXTEN:2})
 
-exten => _2[12]XX,1,Dial(SIP/atlanta/${EXTEN})
+exten => _22XX,1,Dial(SIP/atlanta/${EXTEN})
12:57:00
#asterisk -rv
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.
=========================================================================
Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian4 (pid = 2508)
Verbosity is at least 1
debian4*CLI> dialplan reload
Dialplan reloaded.
[Nov 25 13:57:40] ERROR[2801]: netsock2.c:263 ast_sockaddr_resolve: getaddrinfo("dinamic", "(null)", ...): No address associated with hostname
[Nov 25 13:57:40] WARNING[2801]: chan_sip.c:10108 set_destination: Can't find address for host 'dinamic'
debian4*CLI> quit
Executing last minute cleanups
прошло 10 минут
13:07:39
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3924.26501.25565	2014-11-25 14:07:42.553963526 +0200
+++ /etc/asterisk/extensions.conf	2014-11-25 14:18:02.057970859 +0200
@@ -9,4 +9,8 @@
 
 exten => _22XX,1,Dial(SIP/atlanta/${EXTEN})
 
+exten => _11XX,1,Dial(SIP/kiev/${EXTEN})
+
+exten => _32XX,1<Dial(SIP/london/${EXTEN})
+
 exten => _
прошло 11 минут
13:19:27
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3924.26356.19586	2014-11-25 14:19:30.161971901 +0200
+++ /etc/asterisk/extensions.conf	2014-11-25 14:19:50.213972137 +0200
@@ -11,6 +11,6 @@
 
 exten => _11XX,1,Dial(SIP/kiev/${EXTEN})
 
-exten => _32XX,1<Dial(SIP/london/${EXTEN})
+exten => _32XX,1,Dial(SIP/london/${EXTEN})
 
 exten => _
13:20:09
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3924.6434.12922	2014-11-25 14:20:12.121972399 +0200
+++ /etc/asterisk/extensions.conf	2014-11-25 14:23:15.841974572 +0200
@@ -9,8 +9,8 @@
 
 exten => _22XX,1,Dial(SIP/atlanta/${EXTEN})
 
-exten => _11XX,1,Dial(SIP/kiev/${EXTEN})
+exten => _1XXX,1,Dial(SIP/kiev/${EXTEN})
 
-exten => _32XX,1,Dial(SIP/london/${EXTEN})
+exten => _3XXX,1,Dial(SIP/london/${EXTEN})
 
-exten => _
+exten => _23XX,1,Dial(SIP/kiev/${EXTEN})
прошло 47 минут
14:07:38
#vim /etc/asterisk/extensions.conf
прошло 14 минут
14:22:22
#[ ]

14:30:05
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3924.8829.31662	2014-11-25 15:30:07.878022054 +0200
+++ /etc/asterisk/extensions.conf	2014-11-25 15:34:26.346025113 +0200
@@ -14,3 +14,28 @@
 exten => _3XXX,1,Dial(SIP/london/${EXTEN})
 
 exten => _23XX,1,Dial(SIP/kiev/${EXTEN})
+
+[gr1]
+
+includ => internal
+includ => local
+includ => national
+includ => international
+
+[gr2]
+
+includ => internal
+includ => local
+includ => national
+ 
+[gr3]
+
+includ => internal
+includ => local
+
+[gr41]
+
+includ => local
+includ => national
+includ => international
+
14:34:26
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-3924.2242.27504	2014-11-25 15:34:29.762025156 +0200
+++ /etc/asterisk/sip.conf	2014-11-25 15:38:40.266028123 +0200
@@ -1,5 +1,5 @@
 [general]
-context=
+context=default
 qualify=yes
 
 register => ny:1234@192.168.50.1/atlanta
@@ -10,17 +10,19 @@
 type=friend
 host=dinamic
 quality=yes
-
+contex=gr1
 
 [2101](phone)
 type=friend
 secret=1234
 host=dynamic
+contex=gr1
 
 [2102](phone)
 type=friend
 secret=1234
 host=dynamic
+contex=gr3
 
 [2103](phone)
 secret=1234
@@ -31,19 +33,21 @@
 host=dynamic
 secret=1234
 directmedia=no
-
+contex=gr4
 
 [kiev]
 type=friend
 host=dynamic
 secret=1234
 directmedia=no
+contex=gr4
 
 [london]
 type=friend
 host=dynamic
 secret=1234
 dierctmedia=no
+contex=gr4
 
 
 
14:38:59
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3924.496.27525	2014-11-25 15:39:02.934028388 +0200
+++ /etc/asterisk/extensions.conf	2014-11-25 15:44:11.302032041 +0200
@@ -15,6 +15,28 @@
 
 exten => _23XX,1,Dial(SIP/kiev/${EXTEN})
 
+[local]
+
+exten => _21XX,1,Dial(SIP/${EXTEN})
+
+[national]
+
+exten => _22XX,1,Dial(SIP/atlanta/${EXTEN})
+
+[international]
+
+exten => _1XXX,1,Dial(SIP/kiev/${EXTEN})
+
+exten => _3XXX,1,Dial(SIP/london/${EXTEN})
+
+exten => _23XX,1,Dial(SIP/kiev/${EXTEN})
+
+[internal]
+
+exten => _81XX,1,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm)
+
+exten => _82XX,1,Playback(/var/tmp/asterisk/record${EXTEN:2})
+
 [gr1]
 
 includ => internal
14:48:28
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3924.24628.5977	2014-11-25 15:48:40.678035225 +0200
+++ /etc/asterisk/extensions.conf	2014-11-25 15:49:18.438035677 +0200
@@ -1,5 +1,3 @@
-[default]
-
 
 
 [local]
14:50:09
#qualify=yes
[gr1]
[gr1]
includ => internal
includ => local
includ => national
includ => international
[gr2]
[gr2]
includ => internal
                                                        34,1          44%
[gr3]
[gr3]
includ => internal
includ => local
[gr4]
[gr4]
includ => local
includ => national
includ => international
                                                        48,0-1        Bot
прошло 14 минут
15:04:20
#vim /etc/asterisk/extensions.conf
/dev/pts/7
15:08:06
#less /var/log/messages
15:08:10
#less /var/log/asterisk/messages
15:08:18
#vim /etc/asterisk/sip.conf
15:09:11
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-6610.8058.5461	2014-11-25 16:09:14.162049828 +0200
+++ /etc/asterisk/sip.conf	2014-11-25 16:09:21.058049911 +0200
@@ -33,7 +33,7 @@
 host=dynamic
 secret=1234
 directmedia=no
-contex=gr2
+contex=gr4
 
 [kiev]
 type=friend
15:09:21
#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 debian4 (pid = 2508)
...
  == Using SIP RTP CoS mark 5
[Nov 25 16:09:30] NOTICE[2801]: chan_sip.c:22753 handle_request_invite: Call from 'ny' (192.168.80.1:5060) to extension '2201' rejected because extension not found in context 'default'.
  == Using SIP RTP CoS mark 5
[Nov 25 16:09:32] NOTICE[2801]: chan_sip.c:22753 handle_request_invite: Call from 'ny' (192.168.10.1:5060) to extension '3201' rejected because extension not found in context 'default'.
  == Using SIP RTP CoS mark 5
[Nov 25 16:09:35] NOTICE[2801]: chan_sip.c:22753 handle_request_invite: Call from 'ny' (192.168.10.1:5060) to extension '2201' rejected because extension not found in context 'default'.
  == Using SIP RTP CoS mark 5
[Nov 25 16:09:36] NOTICE[2801]: chan_sip.c:22753 handle_request_invite: Call from 'ny' (192.168.50.1:5060) to extension '2101' rejected because extension not found in context 'default'.
debian4*CLI> quit
Executing last minute cleanups
15:09:42
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-6610.5774.28964	2014-11-25 16:09:44.174050182 +0200
+++ /etc/asterisk/sip.conf	2014-11-25 16:10:15.614050555 +0200
@@ -10,19 +10,19 @@
 type=friend
 host=dinamic
 quality=yes
-contex=gr1
+context=gr1
 
 [2101](phone)
 type=friend
 secret=1234
 host=dynamic
-contex=gr1
+context=gr1
 
 [2102](phone)
 type=friend
 secret=1234
 host=dynamic
-contex=gr3
+context=gr3
 
 [2103](phone)
 secret=1234
@@ -33,21 +33,21 @@
 host=dynamic
 secret=1234
 directmedia=no
-contex=gr4
+context=gr4
 
 [kiev]
 type=friend
 host=dynamic
 secret=1234
 directmedia=no
-contex=gr4
+context=gr4
 
 [london]
 type=friend
 host=dynamic
 secret=1234
 dierctmedia=no
-contex=gr4
+context=gr4
 
 
 
15:10:29
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-6610.1871.23833	2014-11-25 16:10:36.102050792 +0200
+++ /etc/asterisk/extensions.conf	2014-11-25 16:10:50.822050964 +0200
@@ -24,25 +24,25 @@
 
 [gr1]
 
-includ => internal
-includ => local
-includ => national
-includ => international
+include => internal
+include => local
+include => national
+include => international
 
 [gr2]
 
-includ => internal
-includ => local
-includ => national
+include => internal
+include => local
+include => national
  
 [gr3]
 
-includ => internal
-includ => local
+include => internal
+include => local
 
 [gr4]
 
-includ => local
-includ => national
-includ => international
+include => local
+include => national
+include => international
 
/dev/pts/3
15:17:10
#vim /etc/asterisk/extensions.conf
прошло 12 минут
15:29:38
#apr-get install sendmail bin
bash: apr-get: command not found
15:30:08
#apr-get install sendmail bin
bash: apr-get: command not found
15:30:14
#apt-get install sendmail bin
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package bin
15:30:30
#apt-get install sendmail bin
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package bin
15:30:44
#apt-get install sendmail-bin
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  sendmail-base sendmail-cf
Suggested packages:
  sendmail-doc logcheck resolvconf sasl2-bin
The following packages will be REMOVED:
  exim4 exim4-base exim4-config exim4-daemon-light
The following NEW packages will be installed:
...
        please investigate.
Warning: These messages were issued while creating sendmail.cf
        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
.
W: Operation was interrupted before it could finish
15:33:32
#apt-get install sendmail-bin
Reading package lists... Done
Building dependency tree
Reading state information... Done
sendmail-bin is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 exim4-base : Depends: exim4-config (>= 4.30) but it is not going to be installed or
                       exim4-config-2
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
15:33:37
#echo debian4.unix.nt >> /etc/mail/local-host-names

15:34:31
#vim /etc/mail/sendmail.mc
--- /tmp/l3-saved-3924.17869.28588	2014-11-25 16:35:27.414068446 +0200
+++ /etc/mail/sendmail.mc	2014-11-25 16:37:02.166069572 +0200
@@ -54,9 +54,9 @@
 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=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 DAEMON_OPTIONS(`Family=inet,  Name=MSP-v4, Port=submission, M=Ea, Addr=127.0.0.1')dnl
 dnl #
 dnl # Be somewhat anal in what we allow
 define(`confPRIVACY_FLAGS',dnl
15:37:02
#/etc/init.d/sendmail restart
Restarting Mail Transport Agent (MTA): sendmail.
15:42:57
#~
127.0.1.1       debian4
# The following lines are desirable for IPv6 capable hosts
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"/etc/hosts" 7L, 203C written
15:44:01
#netstat -lnp | grep :25
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      10328/sendmail: MTA
15:45:01
#netstat -lnp | grep :25
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      10328/sendmail: MTA

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

/dev/pts/5
08:33:22
#screen -x
/dev/pts/3
08:35:50
#netstat -lnp | grep :25
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      10328/sendmail: MTA
08:35:56
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3924.30244.32152	2014-11-26 09:53:05.470805323 +0200
+++ /etc/asterisk/extensions.conf	2014-11-26 09:58:50.702809407 +0200
@@ -4,6 +4,10 @@
 
 exten => _21XX,1,Dial(SIP/${EXTEN})
 
+exten => _33XX,1,Dial(SIP/${EXTEN},5)
+
+exten => _33XX,n,VoiceMail(${EXTEN}@default)
+
 [national]
 
 exten => _22XX,1,Dial(SIP/atlanta/${EXTEN})
@@ -22,6 +26,10 @@
 
 exten => _82XX,1,Playback(/var/tmp/asterisk/record${EXTEN:2})
 
+exten => 8001,1,VoiceMailMain()
+
+exten => 8300,1,VoiceMailMain(33
+
 [gr1]
 
 include => internal
прошло 22 минуты
08:58:50
#vim /etc/asterisk/voicemail.conf
--- /tmp/l3-saved-3924.19370.23660	2014-11-26 09:59:09.126809626 +0200
+++ /etc/asterisk/voicemail.conf	2014-11-26 10:00:54.926810878 +0200
@@ -381,7 +381,9 @@
 
 [default]
 
-1234 => 4242,Example Mailbox,root@localhost
+3301 => 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
 ;4310 => -5432,Sales,sales@marko.net
09:00:54
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-3924.23757.13648	2014-11-26 10:01:12.246811085 +0200
+++ /etc/asterisk/sip.conf	2014-11-26 10:02:58.886812348 +0200
@@ -17,15 +17,19 @@
 secret=1234
 host=dynamic
 context=gr1
+mailbox=3301@default
 
 [2102](phone)
 type=friend
 secret=1234
 host=dynamic
 context=gr1
+mailbox=3302@default
 
 [2103](phone)
 secret=1234
+contex=gr3
+mailbox=3303@default
 
 
 [atlanta](phone)
09:02:58
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3924.26120.19655	2014-11-26 10:03:01.446812377 +0200
+++ /etc/asterisk/extensions.conf	2014-11-26 10:06:46.742815043 +0200
@@ -28,7 +28,7 @@
 
 exten => 8001,1,VoiceMailMain()
 
-exten => 8300,1,VoiceMailMain(33
+exten => 8300,1,VoiceMailMain(33${EXTEN:2}@default)
 
 [gr1]
 
09:08:01
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-3924.15507.5683	2014-11-26 10:08:13.626816073 +0200
+++ /etc/asterisk/sip.conf	2014-11-26 10:09:30.806816985 +0200
@@ -17,19 +17,19 @@
 secret=1234
 host=dynamic
 context=gr1
-mailbox=3301@default
+mailbox=2101@default
 
 [2102](phone)
 type=friend
 secret=1234
 host=dynamic
 context=gr1
-mailbox=3302@default
+mailbox=2102@default
 
 [2103](phone)
 secret=1234
 contex=gr3
-mailbox=3303@default
+mailbox=2103@default
 
 
 [atlanta](phone)
09:09:30
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3924.7371.5722	2014-11-26 10:09:33.898817022 +0200
+++ /etc/asterisk/extensions.conf	2014-11-26 10:11:23.198818316 +0200
@@ -4,9 +4,9 @@
 
 exten => _21XX,1,Dial(SIP/${EXTEN})
 
-exten => _33XX,1,Dial(SIP/${EXTEN},5)
+exten => _21XX,1,Dial(SIP/${EXTEN},5)
 
-exten => _33XX,n,VoiceMail(${EXTEN}@default)
+exten => _21XX,n,VoiceMail(${EXTEN}@default)
 
 [national]
 
@@ -28,7 +28,7 @@
 
 exten => 8001,1,VoiceMailMain()
 
-exten => 8300,1,VoiceMailMain(33${EXTEN:2}@default)
+exten => _83XX,1,VoiceMailMain(21${EXTEN:2}@default)
 
 [gr1]
 
09:11:23
#asterisk -rw
asterisk: invalid option -- 'w'
09:12:45
#asterisk -rv
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.
=========================================================================
Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian4 (pid = 2508)
Verbosity is at least 4
debian4*CLI> sip reload
...
    -- Added extension '700' priority 1 to parkedcalls
    -- Registered extension context 'app_queue_gosub_virtual_context'; registrar: app_queue
    -- merging incls/swits/igpats from old(app_queue_gosub_virtual_context) to new(app_queue_gosub_virtual_context) context, registrar = pbx_config
    -- Added extension 's' priority 1 to app_queue_gosub_virtual_context
    -- Time to scan old dialplan and merge leftovers back into the new: 0.001688 sec
    -- Time to restore hints and swap in new dialplan: 0.000006 sec
    -- Time to delete the old dialplan: 0.000085 sec
    -- Total time merge_contexts_delete: 0.001779 sec
debian4*CLI> quit
Executing last minute cleanups
09:13:29
#vim /etc/asterisk/extensions.conf
09:16:28
#asterisk -rv
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.
=========================================================================
Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian4 (pid = 2508)
Verbosity is at least 4
debian4*CLI> dialplan reload
...
    -- Time to delete the old dialplan: 0.000082 sec
    -- Total time merge_contexts_delete: 0.001827 sec
debian4*CLI> sip reload
 Reloading SIP
debian4*CLI> voicemail reload
Reloading voicemail configuration...
  == Parsing '/etc/asterisk/voicemail.conf':   == Found
  == Parsing '/etc/asterisk/users.conf':   == Found
debian4*CLI> quit
Executing last minute cleanups
09:18:11
#vim /etc/asterisk/sip.conf
/dev/pts/7
09:21:11
#screen -x
/dev/pts/3
09:26:22
#vim /etc/asterisk/voicemail.conf
09:29:45
#vim /etc/asterisk/sip.conf
09:35:21
#[local]
context=gr1
[2101](phone)
type=friend
secret=1234
host=dynamic
context=gr1
mailbox=2101@default
[2102](phone)
type=friend
secret=1234
...
mailbox=2103@default
contex=gr3ne)
[atlanta](phone)
host=dynamic
directmedia=no
[kiev](phone)
host=dynamic
directmedia=no
[london](phone)
"/etc/asterisk/sip.conf" 57L, 694C written
09:42:01
#less /var/log/asterisk/messages
09:42:15
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-3924.16336.8246	2014-11-26 10:42:21.090840304 +0200
+++ /etc/asterisk/sip.conf	2014-11-26 10:42:34.058840461 +0200
@@ -8,7 +8,7 @@
 
 [phone](!)
 type=friend
-host=dinamic
+host=dynamic
 quality=yes
 context=gr1
 
09:42:42
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3924.3745.3702	2014-11-26 10:42:47.554840618 +0200
+++ /etc/asterisk/extensions.conf	2014-11-26 10:43:00.610840785 +0200
@@ -2,10 +2,7 @@
 
 [local]
 
-exten => _21XX,1,Dial(SIP/${EXTEN})
-
 exten => _21XX,1,Dial(SIP/${EXTEN},5)
-
 exten => _21XX,n,VoiceMail(${EXTEN}@default)
 
 [national]
09:43:00
#asterisk -rvvv
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 debian4 (pid = 2508)
...
    -- x=2, open writing:  /var/spool/asterisk/voicemail/default/2101/tmp/F4VhzT format: wav, 0x2a943f8
[Nov 26 10:47:30] WARNING[14641]: app.c:855 __ast_play_and_record: No audio available on SIP/2102-00000549??
    -- User hung up
  == Spawn extension (gr1, 2101, 2) exited non-zero on 'SIP/2102-00000549'
  == Using SIP RTP CoS mark 5
    -- Executing [8300@gr1:1] VoiceMailMain("SIP/2101-0000054b", "2100@default") in new stack
    -- <SIP/2101-0000054b> Playing 'vm-login.gsm' (language 'en')
[Nov 26 10:48:03] WARNING[14658]: app_voicemail.c:9799 vm_authenticate: Couldn't read username
debian4*CLI> quit
Executing last minute cleanups
прошло 14 минут
09:57:51
## то есть почту просматриваете под юзером

/dev/pts/10
10:02:28
#top
top - 11:02:36 up 1 day,  1:40,  6 users,  load average: 1.66, 0.94, 0.75
Tasks: 167 total,   5 running, 162 sleeping,   0 stopped,   0 zombie
%Cpu(s): 41.7 us, 11.5 sy,  0.0 ni, 46.7 id,  0.1 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem:  15903488 total,  1376660 used, 14526828 free,   146988 buffers
KiB Swap: 16201724 total,        0 used, 16201724 free,   557196 cached
  PID USER      PR  NI  VIRT  RES  SHR S  %CPU %MEM    TIME+  COMMAND
 4047 root      20   0 51908  14m 1704 R  99.7  0.1 128:41.71 l3-agent
 3891 root      20   0 23908 2076 1020 R  44.9  0.0   0:11.33 screen
 3566 user      20   0 1089m 244m  41m S  11.6  1.6  69:50.26 iceweasel
 3048 root      20   0  243m  86m 7080 S   8.0  0.6   4:02.76 Xorg
...
 2980 root      20   0  129m 5276 2952 S   2.7  0.0   0:25.71 polkitd
14717 root      20   0     0    0    0 S   2.3  0.0   0:00.71 kworker/2:1
 3473 user      20   0  538m  27m  15m S   2.0  0.2   0:19.44 gnome-panel
 3082 root      20   0  188m 4144 2896 S   0.7  0.0   0:05.79 console-kit-dae
  264 root      20   0     0    0    0 S   0.3  0.0   0:03.58 jbd2/sda2-8
 2744 messageb  20   0 30696 1880  884 S   0.3  0.0   0:09.38 dbus-daemon
 2932 root      20   0  154m 5672 4372 S   0.3  0.0   0:05.24 NetworkManager
 3411 user      20   0 30576 1756  760 S   0.3  0.0   0:05.55 dbus-daemon
 3498 user      20   0  235m 9352 7000 S   0.3  0.1   0:00.47 polkit-gnome-au
 3523 user      20   0  522m  14m  10m S   0.3  0.1   0:00.46 nm-applet
/dev/pts/7
10:02:41
#screen -x
/dev/pts/0
10:02:56
#screen -x
10:02:59
#screen
/dev/pts/3
10:05:51
#less /etc/asterisk/extensions.conf
10:08:09
#less /etc/asterisk/voicemail.conf
10:08:52
#echo hello | mutt user

10:08:59
#su - user
---Mutt: (no mailbox) [Msgs:0]---(threads/date)-------------------------(all)---
user@debian4:~$ exit
logout
/dev/pts/6
10:09:06
#su - user
---Mutt: (no mailbox) [Msgs:0]---(threads/date)--------------------------------------------------(all)---
user@debian4:~$ exit
logout
/dev/pts/3
10:09:18
#less /var/log/mail.log
10:09:25
#apt-get install sensibme-mda sendmail
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package sensibme-mda
10:09:33
#apt-get install sensible-mda sendmail
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 exim4-base : Depends: exim4-config (>= 4.30) but it is not going to be installed or
                       exim4-config-2
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
10:09:37
#apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  exim4-config
The following packages will be REMOVED:
  bsd-mailx sendmail-bin
The following NEW packages will be installed:
  exim4-config
...
(Reading database ... 132012 files and directories currently installed.)
Removing bsd-mailx ...
Removing sendmail-bin ...
Processing triggers for man-db ...
Selecting previously unselected package exim4-config.
(Reading database ... 131953 files and directories currently installed.)
Unpacking exim4-config (from .../exim4-config_4.80-7+deb7u1_all.deb) ...
Processing triggers for man-db ...
Setting up exim4-config (4.80-7+deb7u1) ...
grep: /etc/inetd.conf: No such file or directory
10:09:59
#apt-get install sensible-mda sendmail
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
 sendmail : Depends: sendmail-bin but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
10:10:09
#apt-get install sensible-mda sendmail sendmail-bin
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  sendmail-doc rmail sasl2-bin
The following packages will be REMOVED:
  exim4-base exim4-config
The following NEW packages will be installed:
  sendmail sendmail-bin sensible-mda
0 upgraded, 3 newly installed, 2 to remove and 0 not upgraded.
...
/etc/mail/aliases: 13 aliases, longest 10 bytes, 143 bytes total
Warning: These messages were issued while creating sendmail.cf
        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.
Setting up sensible-mda (8.14.4-4) ...
Setting up sendmail (8.14.4-4) ...
10:10:34
#echo hello | mutt user

10:10:42
#apt-cache searche asterisk
E: Invalid operation searche
/dev/pts/6
10:10:46
#su - user
   4 N   Nov 26 Asterisk PBX    ( 180) [PBX]: New message 2 in mailbox 2102
   5 N   Nov 26 Asterisk PBX    ( 349) [PBX]: New message 1 in mailbox 2101
                                (   1)
   6 N   Nov 26 Asterisk PBX    (   1) [PBX]: New message 2 in mailbox 2101
  10 N   Nov 26 root
   7 N   Nov 26 Asterisk PBX    ( 388) [PBX]: New message 3 in mailbox 2102
   8 N   Nov 26 Asterisk PBX    ( 437) [PBX]: New message 1 in mailbox 2101
   9 N   Nov 26 root
---Mutt: /var/mail/user [Msgs:10 New:10 121K]---(threads/date)-----------------------------------(all)---
10 kept, 0 deleted.
user@debian4:~$ exit
logout
прошло 38 минут
/dev/pts/3
10:49:09
#cache searche asterisk
[2102](phone)k/sip.conf" 57L, 694C
type=friend
secret=1234
[phone]namic
[phone]
context=gr1
mailbox=2102@default
[2101]
[2101]
[2103](phone)
...
[2102]x=2103@default
language=ru
[2103]ta](phone)
[2103]
type=friend
language=frc
secret=1234
directmedia=no
context=gr4
"/etc/asterisk/sip.conf" 59L, 729C written
10:50:23
#cache searche asterisk
                     asterisk -rv
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.
=========================================================================
Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian4 (pid = 2508)
Verbosity is at least 4
...
    -- <SIP/2101-00000558> Playing 'vm-Old.gsm' (language 'de')
    -- <SIP/2101-00000558> Playing 'vm-messages.gsm' (language 'de')
    -- <SIP/2101-00000558> Playing 'vm-onefor.gsm' (language 'de')
    -- <SIP/2101-00000558> Playing 'vm-INBOX.gsm' (language 'de')
    -- <SIP/2101-00000558> Playing 'vm-messages.gsm' (language 'de')
    -- <SIP/2101-00000558> Playing 'vm-opts.gsm' (language 'de')
    -- <SIP/2101-00000558> Playing 'vm-helpexit.gsm' (language 'de')
  == Spawn extension (gr1, 8301, 1) exited non-zero on 'SIP/2101-00000558'
debian4*CLI> quit
Executing last minute cleanups
10:56:37
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-15466.2745.6303	2014-11-26 11:56:39.982893079 +0200
+++ /etc/asterisk/sip.conf	2014-11-26 11:56:56.390893275 +0200
@@ -18,7 +18,7 @@
 host=dynamic
 context=gr1
 mailbox=2101@default
-language=de
+language=ru
 
 [2102](phone)
 type=friend
@@ -26,7 +26,7 @@
 host=dynamic
 context=gr1
 mailbox=2102@default
-language=ru
+language=de
 
 [2103](phone)
 secret=1234
11:04:07
#cache searche asterisk
[local]
[local]
exten => _81XX,1,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm)
"/etc/asterisk/extensions.conf" 53L, 795C
[        ]
[xten => ]82XX,1,Playback(/var/tmp/asterisk/record${EXTEN:2})
[             ]
[xten => 8001,],VoiceMailMain()
exten => _83XX,1,VoiceMailMain(21${EXTEN:2}@default)
[        ]
[gr1]    ]
                      d(                      rd${EXTEN:2}:gsm)
include =>81XX,n,Playback(/var/tmp/asterisk/record${EXTEN:2})
exten => _82XX,1,Playback(/var/tmp/asterisk/record${EXTEN:2})
include => local
include => national
include => international
[gr2]
include => internal
include => local
"/etc/asterisk/extensions.conf" 54L, 857C written
прошло 14 минут
11:18:28
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-15466.24001.2475	2014-11-26 12:18:30.726908596 +0200
+++ /etc/asterisk/extensions.conf	2014-11-26 12:20:36.334910094 +0200
@@ -20,6 +20,7 @@
 [internal]
 
 exten => _81XX,1,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm)
+
 exten => _81XX,n,Playback(/var/tmp/asterisk/record${EXTEN:2})
 
 exten => _82XX,1,Playback(/var/tmp/asterisk/record${EXTEN:2})
11:20:36
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-15466.4287.1136	2014-11-26 12:27:54.350915265 +0200
+++ /etc/asterisk/extensions.conf	2014-11-26 12:29:50.942916644 +0200
@@ -2,6 +2,10 @@
 
 [local]
 
+exten => _21XX,n,Set(CALLFILENAME=${EXTEN:1}-${CALLERID(num)}-${STRFTIME(${EPOCH},Europe/Kiev,"%Y-%m-%d-%H:%M:%S")})
+
+exten => _21XX,n,Monitor(wav,${CALLFILENAME},m)
+
 exten => _21XX,1,Dial(SIP/${EXTEN},5)
 exten => _21XX,n,VoiceMail(${EXTEN}@default)
 
прошло 10 минут
11:30:59
#vim /etc/asterisk/extensions.conf
11:32:59
#[gr1]

11:33:37
#cache searche asterisk
[local]
},Europe/Kiev,"%Y-%m-%d-%H:%M:%S")})
exten => _21XX,n,Set(CALLFILENAME=${EXTEN:1}-${CALLERID(num)}-${STRFTIME(${EPOCHH
exten => _21XX,n,Monitor(wav,${CALLFILENAME},m)
exten => _21XX,1,Dial(SIP/${EXTEN},5)
exten => _21XX,n,VoiceMail(${EXTEN}@default)
[national]
"/etc/asterisk/extensions.conf" 59L, 1025C
exten => _22XX,1,Dial(SIP/atlanta/${EXTEN})
[local]
...
exten => _81XX,n,Playback(/var/tmp/asterisk/record${EXTEN:2})
exten => _82XX,1,Playback(/var/tmp/asterisk/record${EXTEN:2})
exten => 8001,1,VoiceMailMain()
exten => _83XX,1,VoiceMailMain(21${EXTEN:2}@default)
"/etc/asterisk/extensions.conf" 59L, 1025C written
[gr1]
include => internal
include => local
include => national
include => international
11:35:10
#ls /var/spool/asterisk/monitor
102-2101-2014-11-26-12:34:51.wav
прошло 36 минут
12:11:38
#ls /var/spool/asterisk/monitor
102-2101-2014-11-26-12:34:51.wav  2101-2102-2014-11-26-13:15:26.wav
12:15:39
#apt-get install mpg123
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libmpg123-0
Suggested packages:
  alsa-utils jackd nas oss-compat oss4-base
The following NEW packages will be installed:
  libmpg123-0 mpg123
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
...
(Reading database ... 133164 files and directories currently installed.)
Unpacking libmpg123-0:amd64 (from .../libmpg123-0_1.14.4-1_amd64.deb) ...
Selecting previously unselected package mpg123.
Unpacking mpg123 (from .../mpg123_1.14.4-1_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for mime-support ...
Setting up libmpg123-0:amd64 (1.14.4-1) ...
Setting up mpg123 (1.14.4-1) ...
update-alternatives: using /usr/bin/mpg123.bin to provide /usr/bin/mpg123 (mpg123) in auto mode
update-alternatives: using /usr/bin/mpg123.bin to provide /usr/bin/mp3-decoder (mp3-decoder) in auto mode
прошла 21 минута
12:37:29
#apt-get install mpg123

12:40:28
#"/home/user/Downloads/nightwish.mp3
exten => _3XXX,1,Dial(SIP/london/${EXTEN})
exten => _23XX,1,Dial(SIP/kiev/${EXTEN})
"/etc/asterisk/extensions.conf" 59L, 1023C
[internal]
exten => _81XX,1,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm)
exten => _81XX,n,Playback(/var/tmp/asterisk/record${EXTEN:2})
exten => _82XX,1,Playback(/var/tmp/asterisk/record${EXTEN:2})
exten => 8001,1,VoiceMailMain()
exten => _83XX,1,VoiceMailMain(21${EXTEN:2}@default)
[gr1]
include => internal
include => local
include => national
12:49:00
#include => international

12:49:18
#asterisk -rv
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.
=========================================================================
Connected to Asterisk 1.8.13.1~dfsg1-3+deb7u3 currently running on debian4 (pid = 2508)
Verbosity is at least 4
debian4*CLI> re
realtime  reload
debian4*CLI> quit
Executing last minute cleanups
12:50:30
#vim /etc/asterisk/musiconhold.conf
--- /tmp/l3-saved-15466.2009.31012	2014-11-26 13:51:03.938974322 +0200
+++ /etc/asterisk/musiconhold.conf	2014-11-26 13:55:08.378977214 +0200
@@ -44,7 +44,7 @@
 
 [default]
 mode=files
-directory=moh
+directory=/var/lib/asterisk/moh
 ;
 ;[native-random]
 ;mode=files
12:57:43
#vim /etc/asterisk/musiconhold.conf
13:07:21
#m-a = module-assistant
Starting the Dialog UI...
13:09:36
#a-i = auto-install
bash: a-i: command not found
13:09:57
#m-a = module-assistant
Starting the Dialog UI...
13:11:55
#m-a a-i dahdi
  ┌────────────────────┤ Updating cached package data ├─────────────────────┐
  │ Reading apt-cache output...                                             │
  │                                                                         │
  │                                                                         │
  │                                100%                                     │
  │                                                                         │
  └─────────────────────────────────────────────────────────────────────────┘
  ┌───────────────┤ Building dahdi, step 2, please wait... ├────────────────┐
  â”m-a install dahdi                                                         │
  │                                                                         │
...
  │                                                                         │
  │                                100%                                     │
  │                                                                         │
  └─────────────────────────────────────────────────────────────────────────┘
Done with /usr/src/dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.63-2+deb7u1_amd64.deb .
dpkg -Ei /usr/src/dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.63-2+deb7u1_amd64.deb
Selecting previously unselected package dahdi-modules-3.2.0-4-amd64.
(Reading database ... 142315 files and directories currently installed.)
Unpacking dahdi-modules-3.2.0-4-amd64 (from .../dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.63-2+deb7u1_amd64.deb) ...
Setting up dahdi-modules-3.2.0-4-amd64 (1:2.6.1+dfsg2-1+3.2.63-2+deb7u1) ...
13:13:59
#modprobe dahdi

13:14:33
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
13:14:56
#"/home/user/Downloads/nightwish.mp3
[local]
[local]
exten => _23XX,1,Dial(SIP/kiev/${EXTEN})
"/etc/asterisk/extensions.conf" 59L, 1023C
[internal]
[xten => ]81XX,1,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm)
[        ]
[xten => _81XX]n,Playback(/var/tmp/asterisk/record${EXTEN:2})
[             ]
exten => _82XX,1,Playback(/var/tmp/asterisk/record${EXTEN:2})
[xten => ]001,1,VoiceMailMain()
[        ]
exten => _801X,1,MeetMe(10${EXTEN:3})
exten => _83XX,1,VoiceMailMain(21${EXTEN:2}@default)
[gr1]
include => internal
include => local
"/etc/asterisk/extensions.conf" 61L, 1062C written
13:17:41
#vim /etc/asterisk/meetme.conf
--- /tmp/l3-saved-15466.29282.19645	2014-11-26 14:17:49.418993322 +0200
+++ /etc/asterisk/meetme.conf	2014-11-26 14:20:04.258994918 +0200
@@ -43,3 +43,19 @@
 ;
 ;conf => 1234
 ;conf => 2345,9938
+
+conf => 100
+conf => 101 
+conf => 102 
+conf => 103 
+conf => 104
+
+conf => 105,1234
+conf => 106,1234  
+conf => 107,1234  
+conf => 108,1234  
+conf => 109,1234  
+ 
+
+
+

Статистика

Время первой команды журнала12:49:33 2014-11-25
Время последней команды журнала13:17:41 2014-11-26
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, % 9.90
Процент синтаксически неверно набранных команд, % 2.97
Суммарное время работы с терминалом *, час 5.62
Количество командных строк в единицу времени, команда/мин 0.30
Частота использования команд
vim36|=================================| 33.03%
apt-get11|==========| 10.09%
asterisk8|=======| 7.34%
less6|=====| 5.50%
screen5|====| 4.59%
cache4|===| 3.67%
m-a3|==| 2.75%
echo3|==| 2.75%
netstat3|==| 2.75%
grep3|==| 2.75%
su3|==| 2.75%
mutt2|=| 1.83%
apr-get2|=| 1.83%
nightwish.mp32|=| 1.83%
ls2|=| 1.83%
international1|| 0.92%
/etc/init.d/sendmail1|| 0.92%
/etc/mail/local-host-names1|| 0.92%
top1|| 0.92%
[local]1|| 0.92%
[gr1]1|| 0.92%
/etc/init.d/asterisk1|| 0.92%
#1|| 0.92%
>1|| 0.92%
qualify=yes1|| 0.92%
[1|| 0.92%
modprobe1|| 0.92%
~1|| 0.92%
a-i1|| 0.92%
include1|| 0.92%
apt-cache1|| 0.92%
____
*) Интервалы неактивности длительностью 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$