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

Содержание

Журнал

Понедельник (06/20/11)

/dev/tty3
14:25:54
#ls
bin  boot  dev  etc  home  initrd.img  lib  lib32  lib64  lost+found  media  mnt  opt  proc  root  sbin  selinux  srv  sys  tmp  usr  var  vmlinuz
14:25:55
#cd tmp

14:25:58
#ls
mc-root  sip.conf
14:26:00
#vim sip.conf
--- /tmp/l3-saved-5749.13182.6192	2011-06-20 15:26:07.000000000 +0300
+++ sip.conf	2011-06-20 15:35:52.000000000 +0300
@@ -3,36 +3,14 @@
 allowoverlap=no                 
 udpbindaddr=0.0.0.0             
 tcpenable=no                    
-tcpbindaddr=0.0.0.0             
-				
-				
-				
-				
+tcpbindaddr=0.0.0.0            				
 srvlookup=yes                   
 				
 				
 				
-				
-				
-[authentication]
-[basic-options](!)                
-        dtmfmode=rfc2833
-        context=from-office
-        type=friend
-[natted-phone](!,basic-options)   
-        nat=yes
-        directmedia=no
-        host=dynamic
-[public-phone](!,basic-options)   
-        nat=no
-        directmedia=yes
-[my-codecs](!)                    
-        disallow=all
-        allow=ilbc
-        allow=g729
-        allow=gsm
-        allow=g723
-        allow=ulaw
-[ulaw-phone](!)                   
-        disallow=all
-        allow=ulaw
+[2201]				
+type=friend				
+secret=password
+host=dynamic
+user=2201
+
14:35:52
#service asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
14:36:10
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux6 (pid = 5863)
Verbosity was 0 and is now 3
linux6*CLI> exit
Executing last minute cleanups
14:38:10
#cd ..

14:38:23
#cd ..

14:38:23
#cp /tmp/sip.conf /etc/asterisk/sip.conf

14:38:51
#cd /etc/asterisk/

14:39:02
#ls
adsi.conf           cdr_adaptive_odbc.conf   cli_aliases.conf      enum.conf               func_odbc.conf    logger.conf       muted.conf              res_odbc.conf    skinny.conf       vpb.conf
adtranvofr.conf     cdr.conf                 cli.conf              extconfig.conf          gtalk.conf        manager.conf      osp.conf                res_pgsql.conf   sla.conf
agents.conf         cdr_custom.conf          cli_permissions.conf  extensions.ael          h323.conf         manager.d         oss.conf                res_snmp.conf    smdi.conf
ais.conf            cdr_manager.conf         codecs.conf           extensions.conf         http.conf         meetme.conf       phone.conf              rpt.conf         telcordia-1.adsi
alarmreceiver.conf  cdr_odbc.conf            console.conf          extensions.lua          iax.conf          mgcp.conf         phoneprov.conf          rtp.conf         udptl.conf
alsa.conf           cdr_pgsql.conf           dbsep.conf            extensions_minivm.conf  iaxprov.conf      minivm.conf       queuerules.conf         say.conf         unistim.conf
amd.conf            cdr_sqlite3_custom.conf  dnsmgr.conf           features.conf           indications.conf  misdn.conf        queues.conf             sip.conf         usbradio.conf
asterisk.adsi       cdr_tds.conf             dsp.conf              festival.conf           jabber.conf       modules.conf      res_config_sqlite.conf  sip.conf.SAVE    users.conf
asterisk.conf       chan_dahdi.conf          dundi.conf            followme.conf           jingle.conf       musiconhold.conf  res_ldap.conf           sip_notify.conf  voicemail.conf
14:39:03
#vim sip.conf
14:39:20
#~
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
14:39:26
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux6 (pid = 5999)
Verbosity was 0 and is now 3
linux6*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
2201                       (Unspecified)    D          5060     Unmonitored
1 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 0 offline]
linux6*CLI> exit
Executing last minute cleanups
14:42:40
#links
14:42:43
#w3a
bash: w3a: команда не найдена
14:42:48
#ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0f:fe:7e:b8:53
          inet addr:192.168.106.1  Bcast:192.168.106.255  Mask:255.255.255.0
          inet6 addr: fe80::20f:feff:fe7e:b853/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:28317 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16728 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:33190387 (31.6 MiB)  TX bytes:1286968 (1.2 MiB)
          Memory:f0180000-f01a0000
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:560 (560.0 B)  TX bytes:560 (560.0 B)
14:46:41
#asterisk
Asterisk already running on /var/run/asterisk/asterisk.ctl.  Use 'asterisk -r' to connect.
14:47:37
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux6 (pid = 5999)
...
2201                       (Unspecified)    D          5060     Unmonitored
1 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 0 offline]
  == Using SIP RTP CoS mark 5
[Jun 20 15:50:01] NOTICE[6043]: chan_sip.c:20281 handle_request_invite: Call from '2201' to extension '2202' rejected because extension not found in context 'default'.
linux6*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
2201                       (Unspecified)    D          5060     Unmonitored
1 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 0 offline]
linux6*CLI> exit
Executing last minute cleanups
14:50:54
#[2201]
context=default
allowoverlap=no
udpbindaddr=0.0.0.0
tcpenable=no
[2201]daddr=0.0.0.0
[2201]
type=friendes
secret=password
[2202]
type=friend
...
~
~
~
~
~
~
~
~
~
"sip.conf" 21L, 351C записано
14:51:52
#servise asterisk restart
bash: servise: команда не найдена
14:52:00
#service asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
14:53:05
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux6 (pid = 6158)
...
[Jun 20 15:53:19] NOTICE[6202]: chan_sip.c:20281 handle_request_invite: Call from '2201' to extension '2201' rejected because extension not found in context 'default'.
  == Using SIP RTP CoS mark 5
[Jun 20 15:53:36] NOTICE[6202]: chan_sip.c:20281 handle_request_invite: Call from '2201' to extension '2202' rejected because extension not found in context 'default'.
linux6*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
2201                       (Unspecified)    D          5060     Unmonitored
2202                       (Unspecified)    D          5060     Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
linux6*CLI> exit
Executing last minute cleanups
14:54:48
#cd /etc/dhcp/dhc
dhclient.conf           dhclient-enter-hooks.d/ dhclient-exit-hooks.d/  dhcpd.conf
14:54:48
#cd /etc/dhcp/

14:55:11
#vim dhcpd.conf
--- /tmp/l3-saved-5749.3859.19270	2011-06-20 15:55:16.000000000 +0300
+++ dhcpd.conf	2011-06-20 15:56:25.000000000 +0300
@@ -34,7 +34,7 @@
 
 subnet 192.168.106.0 netmask 255.255.255.0 {
   range 192.168.106.200 192.168.106.250;
- #option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
+ option routers 192.168.106.253;
 }
 
 # This declaration allows BOOTP clients to get dynamic addresses,
14:56:25
#/etc/init
init.d/          initramfs-tools/
14:56:25
#/etc/init
init.d/          initramfs-tools/
14:56:25
#/etc/init.d/isc-dhcp-server restsrt
Usage: /etc/init.d/isc-dhcp-server {start|stop|restart|force-reload|status}
14:56:52
#/etc/init.d/isc-dhcp-server restart
Stopping ISC DHCP server: dhcpd.
Starting ISC DHCP server: dhcpd.
14:57:04
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux6 (pid = 6158)
...
[Jun 20 16:07:08] NOTICE[6202]: chan_sip.c:20281 handle_request_invite: Call from '2201' to extension '2202' rejected because extension not found in context 'default'.
  == Using SIP RTP CoS mark 5
[Jun 20 16:07:22] NOTICE[6202]: chan_sip.c:20281 handle_request_invite: Call from '2202' to extension '0' rejected because extension not found in context 'default'.
linux6*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
2201/2201                  192.168.106.200  D          5060     Unmonitored
2202/2202                  192.168.106.201  D          55976    Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
linux6*CLI> exit
Executing last minute cleanups
прошло 11 минут
15:08:04
#~
dhclient.conf  dhclient-enter-hooks.d  dhclient-exit-hooks.d  dhcpd.conf
15:08:06
#cd /etc/asterisk/

15:08:12
#ls
adsi.conf           cdr_adaptive_odbc.conf   cli_aliases.conf      enum.conf               func_odbc.conf    logger.conf       muted.conf              res_odbc.conf    skinny.conf       vpb.conf
adtranvofr.conf     cdr.conf                 cli.conf              extconfig.conf          gtalk.conf        manager.conf      osp.conf                res_pgsql.conf   sla.conf
agents.conf         cdr_custom.conf          cli_permissions.conf  extensions.ael          h323.conf         manager.d         oss.conf                res_snmp.conf    smdi.conf
ais.conf            cdr_manager.conf         codecs.conf           extensions.conf         http.conf         meetme.conf       phone.conf              rpt.conf         telcordia-1.adsi
alarmreceiver.conf  cdr_odbc.conf            console.conf          extensions.lua          iax.conf          mgcp.conf         phoneprov.conf          rtp.conf         udptl.conf
alsa.conf           cdr_pgsql.conf           dbsep.conf            extensions_minivm.conf  iaxprov.conf      minivm.conf       queuerules.conf         say.conf         unistim.conf
amd.conf            cdr_sqlite3_custom.conf  dnsmgr.conf           features.conf           indications.conf  misdn.conf        queues.conf             sip.conf         usbradio.conf
asterisk.adsi       cdr_tds.conf             dsp.conf              festival.conf           jabber.conf       modules.conf      res_config_sqlite.conf  sip.conf.SAVE    users.conf
asterisk.conf       chan_dahdi.conf          dundi.conf            followme.conf           jingle.conf       musiconhold.conf  res_ldap.conf           sip_notify.conf  voicemail.conf
15:08:13
#vim sip
15:08:13
#vim sip.conf
/dev/tty4
15:08:58
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux6 (pid = 6158)
Verbosity is at least 3
linux6*CLI> reboot
No such command 'reboot' (type 'core show help reboot' for other possible commands)
linux6*CLI> exit
Executing last minute cleanups
/dev/tty1
15:11:47
#ssh user@192.168.106.253
2402/2402                  192.168.108.28   D          22108    Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
[Jun 20 16:34:00] NOTICE[15037]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe fo2
linux8*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
2401/2401                  192.168.108.200  D          5060     Unmonitored
2402/2402                  192.168.108.28   D          22108    Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
linux8*CLI> sip show registry
Host                           dnsmgr Username       Refresh State                Reg.Time
...
    -- Registered SIP '2401' at 192.168.108.200 port 5060
  == Using SIP RTP CoS mark 5
[Jun 20 15:57:28] NOTICE[15037]: chan_sip.c:20281 handle_request_invite: Call from '2401' to extensio.
[Jun 20 15:58:00] NOTICE[15037]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe fo2
[Jun 20 16:01:00] NOTICE[15037]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe fo2
[Jun 20 16:04:00] NOTICE[15037]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe fo2
[Jun 20 16:07:00] NOTICE[15037]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe fo2
[Jun 20 16:10:00] NOTICE[15037]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe fo2
linux8*CLI>
------------------------------------------------------------------------------------------------------
прошло 23 минуты
/dev/tty2
15:35:32
#vim /etc/asterisk/ext
15:35:32
#vim /etc/asterisk/extensions.conf
15:37:55
#; on bugs.digium.com. We have made good progress in providing something
acpi/         adduser.conf  adjtime       aliases       alternatives/ anacrontab    apache2/      apm/          apt/          asterisk/     at.deny       avahi/
15:37:55
#cd /etc/asterisk/

15:38:11
#ls
adsi.conf           cdr_adaptive_odbc.conf   cli_aliases.conf      enum.conf               func_odbc.conf    logger.conf       muted.conf              res_odbc.conf    skinny.conf       vpb.conf
adtranvofr.conf     cdr.conf                 cli.conf              extconfig.conf          gtalk.conf        manager.conf      osp.conf                res_pgsql.conf   sla.conf
agents.conf         cdr_custom.conf          cli_permissions.conf  extensions.ael          h323.conf         manager.d         oss.conf                res_snmp.conf    smdi.conf
ais.conf            cdr_manager.conf         codecs.conf           extensions.conf         http.conf         meetme.conf       phone.conf              rpt.conf         telcordia-1.adsi
alarmreceiver.conf  cdr_odbc.conf            console.conf          extensions.lua          iax.conf          mgcp.conf         phoneprov.conf          rtp.conf         udptl.conf
alsa.conf           cdr_pgsql.conf           dbsep.conf            extensions_minivm.conf  iaxprov.conf      minivm.conf       queuerules.conf         say.conf         unistim.conf
amd.conf            cdr_sqlite3_custom.conf  dnsmgr.conf           features.conf           indications.conf  misdn.conf        queues.conf             sip.conf         usbradio.conf
asterisk.adsi       cdr_tds.conf             dsp.conf              festival.conf           jabber.conf       modules.conf      res_config_sqlite.conf  sip.conf.SAVE    users.conf
asterisk.conf       chan_dahdi.conf          dundi.conf            followme.conf           jingle.conf       musiconhold.conf  res_ldap.conf           sip_notify.conf  voicemail.conf
15:38:12
#cp extensions.conf extensions.conf.SAVE

15:38:55
#ls
adsi.conf           cdr_adaptive_odbc.conf   cli_aliases.conf      enum.conf               followme.conf     jingle.conf   musiconhold.conf        res_ldap.conf   sip_notify.conf   voicemail.conf
adtranvofr.conf     cdr.conf                 cli.conf              extconfig.conf          func_odbc.conf    logger.conf   muted.conf              res_odbc.conf   skinny.conf       vpb.conf
agents.conf         cdr_custom.conf          cli_permissions.conf  extensions.ael          gtalk.conf        manager.conf  osp.conf                res_pgsql.conf  sla.conf
ais.conf            cdr_manager.conf         codecs.conf           extensions.conf         h323.conf         manager.d     oss.conf                res_snmp.conf   smdi.conf
alarmreceiver.conf  cdr_odbc.conf            console.conf          extensions.conf.SAVE    http.conf         meetme.conf   phone.conf              rpt.conf        telcordia-1.adsi
alsa.conf           cdr_pgsql.conf           dbsep.conf            extensions.lua          iax.conf          mgcp.conf     phoneprov.conf          rtp.conf        udptl.conf
amd.conf            cdr_sqlite3_custom.conf  dnsmgr.conf           extensions_minivm.conf  iaxprov.conf      minivm.conf   queuerules.conf         say.conf        unistim.conf
asterisk.adsi       cdr_tds.conf             dsp.conf              features.conf           indications.conf  misdn.conf    queues.conf             sip.conf        usbradio.conf
asterisk.conf       chan_dahdi.conf          dundi.conf            festival.conf           jabber.conf       modules.conf  res_config_sqlite.conf  sip.conf.SAVE   users.conf
15:38:56
#vim extensions.conf
15:40:48
#[time]
adsi.conf           cdr_adaptive_odbc.conf   cli_aliases.conf      enum.conf               followme.conf     jingle.conf   musiconhold.conf        res_ldap.conf   sip_notify.conf   voicemail.conf
adtranvofr.conf     cdr.conf                 cli.conf              extconfig.conf          func_odbc.conf    logger.conf   muted.conf              res_odbc.conf   skinny.conf       vpb.conf
agents.conf         cdr_custom.conf          cli_permissions.conf  extensions.ael          gtalk.conf        manager.conf  osp.conf                res_pgsql.conf  sla.conf
ais.conf            cdr_manager.conf         codecs.conf           extensions.conf         h323.conf         manager.d     oss.conf                res_snmp.conf   smdi.conf
alarmreceiver.conf  cdr_odbc.conf            console.conf          extensions.conf.SAVE    http.conf         meetme.conf   phone.conf              rpt.conf        telcordia-1.adsi
alsa.conf           cdr_pgsql.conf           dbsep.conf            extensions.lua          iax.conf          mgcp.conf     phoneprov.conf          rtp.conf        udptl.conf
amd.conf            cdr_sqlite3_custom.conf  dnsmgr.conf           extensions_minivm.conf  iaxprov.conf      minivm.conf   queuerules.conf         say.conf        unistim.conf
asterisk.adsi       cdr_tds.conf             dsp.conf              features.conf           indications.conf  misdn.conf    queues.conf             sip.conf        usbradio.conf
asterisk.conf       chan_dahdi.conf          dundi.conf            festival.conf           jabber.conf       modules.conf  res_config_sqlite.conf  sip.conf.SAVE   users.conf
15:40:50
#> extensions.conf

15:41:38
#vim ext
15:41:38
#vim extensions.conf
--- /tmp/l3-saved-2041.7779.5198	2011-06-20 16:41:52.000000000 +0300
+++ extensions.conf	2011-06-20 16:43:19.000000000 +0300
@@ -0,0 +1,4 @@
+[default]
+
+exten => 8000,1,Playback(demo-congrats)
+:q
15:43:19
#service asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
15:43:33
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux6 (pid = 2180)
Verbosity was 0 and is now 3
    -- Auto fallthrough, channel 'SIP/2202-00000000' status is 'UNKNOWN'
linux6*CLI> exit
Executing last minute cleanups
15:49:07
#vim extensions.conf
--- /tmp/l3-saved-2041.3407.20631	2011-06-20 16:49:10.000000000 +0300
+++ extensions.conf	2011-06-20 17:02:32.000000000 +0300
@@ -1,4 +1,6 @@
 [default]
 
-exten => 8000,1,Playback(demo-congrats)
-:q
+exten => 8000,1,Wait(1)
+exten => 8000,n,Playback(demo-congrats)
+exten =>_81.,n,Say(${EXTEN})
+
прошло 13 минут
16:02:32
#service asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
16:02:37
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux6 (pid = 2282)
Verbosity was 0 and is now 3
  == Using SIP RTP CoS mark 5
[Jun 20 17:03:05] NOTICE[2326]: chan_sip.c:20281 handle_request_invite: Call from '2201' to extension '81000' rejected because extension not found in context 'default'.
linux6*CLI> exit
Executing last minute cleanups
16:04:18
#vim extensions.conf
--- /tmp/l3-saved-2041.7963.14178	2011-06-20 17:04:21.000000000 +0300
+++ extensions.conf	2011-06-20 17:04:38.000000000 +0300
@@ -2,5 +2,6 @@
 
 exten => 8000,1,Wait(1)
 exten => 8000,n,Playback(demo-congrats)
-exten =>_81.,n,Say(${EXTEN})
+exten => _81.,n,Say(${EXTEN})
+
 
16:04:38
#service asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
16:04:42
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux6 (pid = 2373)
Verbosity was 0 and is now 3
  == Using SIP RTP CoS mark 5
[Jun 20 17:04:51] NOTICE[2417]: chan_sip.c:20281 handle_request_invite: Call from '2201' to extension '8125' rejected because extension not found in context 'default'.
linux6*CLI> exit
Executing last minute cleanups
16:05:11
#vim extensions.conf
--- /tmp/l3-saved-2041.5928.28874	2011-06-20 17:05:14.000000000 +0300
+++ extensions.conf	2011-06-20 17:09:24.000000000 +0300
@@ -3,5 +3,6 @@
 exten => 8000,1,Wait(1)
 exten => 8000,n,Playback(demo-congrats)
 exten => _81.,n,Say(${EXTEN})
+exten => _24XX,1,Dial(SIP/${EXTEN})
 
 
16:09:24
#service asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
16:09:28
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux6 (pid = 2464)
...
  == Using SIP RTP CoS mark 5
[Jun 20 17:12:00] NOTICE[2508]: chan_sip.c:20281 handle_request_invite: Call from '2202' to extension '2201' rejected because extension not found in context 'default'.
    -- Remote UNIX connection
    -- Remote UNIX connection disconnected
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
linux6*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/tty3
16:10:54
#vim /etc/asterisk/ext
16:10:54
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2571.24552.32434	2011-06-20 17:11:20.000000000 +0300
+++ /etc/asterisk/extensions.conf	2011-06-20 17:11:41.000000000 +0300
@@ -2,7 +2,7 @@
 
 exten => 8000,1,Wait(1)
 exten => 8000,n,Playback(demo-congrats)
-exten => _81.,n,Say(${EXTEN})
+
 exten => _24XX,1,Dial(SIP/${EXTEN})
 
 
16:11:41
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2571.28775.6572	2011-06-20 17:11:43.000000000 +0300
+++ /etc/asterisk/extensions.conf	2011-06-20 17:12:36.000000000 +0300
@@ -3,6 +3,7 @@
 exten => 8000,1,Wait(1)
 exten => 8000,n,Playback(demo-congrats)
 
-exten => _24XX,1,Dial(SIP/${EXTEN})
+exten => _22XX,1,Dial(SIP/${EXTEN})
+
 
 
16:12:42
#asterisk -rv .
./                 .aptitude/         .bash_history      .bashrc            .gconf/            .l3rc              .mc/               .ssh/              .w3m/
../                .asterisk_history  .bash_profile      .dbus/             .gconfd/           .lilalo/           .profile           .viminfo
16:12:42
#service asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/tty2
16:13:17
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux6 (pid = 2671)
Verbosity was 0 and is now 3
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
linux6*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/tty3
16:13:17
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-2571.28291.25182	2011-06-20 17:23:29.000000000 +0300
+++ /etc/asterisk/sip.conf	2011-06-20 17:24:26.000000000 +0300
@@ -19,3 +19,9 @@
 secret=password
 host=dynamic
 user=2202
+
+[2203]
+type=friend
+secret=password
+host=dynamic
+user=2203
прошло 11 минут
/dev/tty2
16:24:28
#vim extensions.conf
--- /tmp/l3-saved-2041.27652.2639	2011-06-20 17:31:56.000000000 +0300
+++ extensions.conf	2011-06-20 17:33:57.000000000 +0300
@@ -5,5 +5,7 @@
 
 exten => _22XX,1,Dial(SIP/${EXTEN})
 
+exten => 2203/1/Dial(SIP/2201&SIP/2202,10)
+
 
 
16:33:57
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux6 (pid = 2775)
...
    -- Time to delete the old dialplan: 0.000036 sec
    -- Total time merge_contexts_delete: 0.000415 sec
linux6*CLI> dialplan
add     debug   reload  remove  set     show
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
linux6*CLI> dialplan
Disconnected from Asterisk server
Executing last minute cleanups
16:34:47
#vim extensions.conf
--- /tmp/l3-saved-2041.24801.32095	2011-06-20 17:35:42.000000000 +0300
+++ extensions.conf	2011-06-20 17:36:34.000000000 +0300
@@ -5,7 +5,8 @@
 
 exten => _22XX,1,Dial(SIP/${EXTEN})
 
-exten => 2203/1/Dial(SIP/2201&SIP/2202,10)
+exten => 2203/1/Dial(SIP/2202&SIP/2203ZZ,10)
+
 
 
 
/dev/tty3
16:34:47
#service asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/tty2
16:36:34
#vim extensions.conf
--- /tmp/l3-saved-2041.5555.13102	2011-06-20 17:36:39.000000000 +0300
+++ extensions.conf	2011-06-20 17:37:19.000000000 +0300
@@ -5,7 +5,8 @@
 
 exten => _22XX,1,Dial(SIP/${EXTEN})
 
-exten => 2203/1/Dial(SIP/2202&SIP/2203ZZ,10)
+exten => 2203/1/Dial(SIP/2202&SIP/2203,10)
+
 
 
 
/dev/tty3
16:36:43
#service asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/tty2
16:37:19
#vim extensions.conf
--- /tmp/l3-saved-2041.9832.1205	2011-06-20 17:37:44.000000000 +0300
+++ extensions.conf	2011-06-20 17:37:58.000000000 +0300
@@ -5,7 +5,8 @@
 
 exten => _22XX,1,Dial(SIP/${EXTEN})
 
-exten => 2203/1/Dial(SIP/2202&SIP/2203,10)
+exten => 2203,1,Dial(SIP/2202&SIP/2203,10)
+
 
 
 
/dev/tty3
16:37:21
#service asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.

Вторник (06/21/11)

/dev/tty1
08:19:39
#vim /etc/asterisk/extensions.conf
08:21:20
#vim /etc/asterisk/extensions.conf
/dev/tty2
08:26:42
#ping 192.168.105.1
PING 192.168.105.1 (192.168.105.1) 56(84) bytes of data.
64 bytes from 192.168.105.1: icmp_req=1 ttl=63 time=0.742 ms
64 bytes from 192.168.105.1: icmp_req=2 ttl=63 time=0.777 ms
^C
--- 192.168.105.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.742/0.759/0.777/0.032 ms
08:27:33
#asterisk -rvv
Asterisk 1.6.2.9-2+squeeze2, 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+squeeze2 currently running on linux6 (pid = 1350)
...
[Jun 21 15:44:50] NOTICE[1696]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203
[Jun 21 15:47:53] NOTICE[1696]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203
[Jun 21 15:50:56] NOTICE[1696]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203
[Jun 21 15:53:59] NOTICE[1696]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203
[Jun 21 15:57:02] NOTICE[1696]: chan_sip.c:21599 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2203
Executing last minute cleanups
  == Destroying musiconhold processes
linux6*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/tty1
08:30:26
#exten => 2203,1,Dial
context=default
allowoverlap=no
udpbindaddr=0.0.0.0
register => la:password@192.168.106.1/ny
[2201]daddr=0.0.0.0
type=friend
secret=password
host=dynamic
                   e <2201>"
user=2201
...
~
~
~
~
~
~
~
~
~
"/etc/asterisk/sip.conf" 36L, 586C записано
08:35:59
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-1954.6303.30452	2011-06-21 09:36:35.000000000 +0300
+++ /etc/asterisk/sip.conf	2011-06-21 09:39:19.000000000 +0300
@@ -6,7 +6,7 @@
 tcpbindaddr=0.0.0.0            				
 srvlookup=yes                   
 				
-register => la:password@192.168.106.1/ny
+register => la:password@192.168.105.1/ny
 				
 [2201]				
 type=friend
08:40:55
#vim /etc/asterisk/sip.conf
08:41:51
#[la]
tcpbindaddr=0.0.0.0
srvlookup=yes
register => la:password@192.168.105.1/ny
[2201]
[2201]
[2201]
type=friend
secret=password
[2202]
[2202]ynamic
...
~
~
~
~
~
~
~
~
~
"/etc/asterisk/sip.conf" 38L, 588C записано
08:42:16
#vim /etc/asterisk/sip.conf
08:45:45
#[ ]
exten => 8000,1,Wait(1)
exten => 8000,n,Playback(demo-congrats)
;---------------------------
exten => _21XX,1,Dial(SIP/ny/${EXTEN},10)
exten => _22XX,1,Dial(SIP/${EXTEN})
exten => 2203,1,Dial
~
~
~
~
...
~
~
~
~
~
~
~
~
~
"/etc/asterisk/extensions.conf" 17L, 234C записано
08:48:27
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-1954.833.16082	2011-06-21 09:50:49.000000000 +0300
+++ /etc/asterisk/sip.conf	2011-06-21 09:51:20.000000000 +0300
@@ -35,4 +35,4 @@
 secret=password
 host=dynamic
 username=la
-
+canreinvite=no
08:51:20
#vim /etc/asterisk/sip.conf
прошло 48 минут
09:40:07
#[ny]
[default]
exten => 8000,1,Wait(1)
exten => 8000,n,Playback(demo-congrats)
exten => _22XX,1,Dial(SIP/${EXTEN})
exten => 2203,1,Dial(SIP/2202&SIP/2203,10)
;---------------------------
"/etc/asterisk/extensions.conf" 17L, 234C
09:46:01
#{EXTEN},10)
[internal]
[local]
exten => 8000,n,Playback(demo-congrats)
exten => _22XX,1,Dial(SIP/${EXTEN})
[national]
[international],Dial(SIP/2202&SIP/2203,10)
exten => _31XX,1,Dial(SIP/paris/${EXTEN},10)
;----------------------------------
[gr1]
include => internal
...
~
~
~
~
~
~
~
~
~
"/etc/asterisk/extensions.conf" 37L, 455C записано
09:50:34
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-1954.29835.28631	2011-06-21 10:50:37.000000000 +0300
+++ /etc/asterisk/sip.conf	2011-06-21 10:51:35.000000000 +0300
@@ -14,6 +14,7 @@
 host=dynamic
 user=2201
 callerid="Voip Phone <2201>"
+context=gr2
 
 [2202]
 type=friend
@@ -21,6 +22,8 @@
 host=dynamic
 user=2202
 callerid="SoftPhone <2202>"
+context=gr1
+
 
 [2203]
 type=friend
@@ -28,7 +31,7 @@
 host=dynamic
 user=2203
 callerid="SoftPhone <2203>"
-
+context=gr1
 
 [ny]
 type=friend
09:51:35
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1954.20793.15069	2011-06-21 10:51:59.000000000 +0300
+++ /etc/asterisk/extensions.conf	2011-06-21 10:52:27.000000000 +0300
@@ -33,5 +33,6 @@
 [gr2]
 include => internal
 include => local
+include => national
 
 
09:52:27
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1954.23318.17959	2011-06-21 10:54:15.000000000 +0300
+++ /etc/asterisk/extensions.conf	2011-06-21 10:57:08.000000000 +0300
@@ -36,3 +36,11 @@
 include => national
 
 
+[gr3]
+include => internal
+include => local
+include => national
+include => international
+
+[gr4]
+include => local
09:57:08
#vim /etc/asterisk/sip.conf
прошло 24 минуты
10:21:36
#[ny]
[-------]-------------------
[        ]
[
[national]
[local]
[local]
exten => _21XX,1,Dial(SIP/ny/${EXTEN},10)
[international]
[        ]
[xten => _31XX,1,Dial(SIP/paris/${EXTEN},10)
...
~
~
~
~
~
~
~
~
~
~                                                                                                                                                                                               44,0-1       Весь
10:21:49
#[gr4]
[2201]
type=friend
secret=password
host=dynamic
[2201]201
[2201]
callerid="Voip Phone <2201>"
context=gr2
         r3
[2202]
...
~
~
~
~
~
~
~
~
~
"/etc/asterisk/sip.conf" 42L, 639C записано
10:22:05
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1954.31321.18061	2011-06-21 11:22:33.000000000 +0300
+++ /etc/asterisk/extensions.conf	2011-06-21 11:23:25.000000000 +0300
@@ -21,9 +21,10 @@
 
 [international]
 
-exten => _31XX,1,Dial(SIP/paris/${EXTEN},10)
+exten => _13XX,1,Dial(SIP/paris/${EXTEN},10)
 
-;----------------------------------
+
+;---------------------------------
 
 [gr1]
 include => internal
/dev/tty3
10:28:45
#ssh root@192.168.107.1
The authenticity of host '192.168.107.1 (192.168.107.1)' can't be established.
RSA key fingerprint is 21:3b:a0:c0:17:c5:a0:ee:97:26:6c:52:f6:ca:df:fe.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.107.1' (RSA) to the list of known hosts.
root@192.168.107.1's password:
Linux linux7 2.6.32-5-amd64 #1 SMP Wed May 18 23:13:22 UTC 2011 x86_64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
l3-agent is already running: pid=7887; pidfile=/root/.lilalo/l3-agent.pid
10:29:09
#vim /etc/asterisk/ext
10:29:09
#vim /etc/asterisk/extensions.conf
/dev/tty1
10:31:32
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1954.14253.30464	2011-06-21 11:33:48.000000000 +0300
+++ /etc/asterisk/extensions.conf	2011-06-21 11:36:42.000000000 +0300
@@ -25,7 +25,7 @@
 exten => _3XXX,1,Dial(SIP/ny/${EXTEN},10)
 exten => _22XX,1,Dial(SIP/ny/${EXTEN},10)
 exten => _23XX,1,Dial(SIP/ny/${EXTEN},10)
-
+exten => _24XX,1,Dial(SIP/ny/${EXTEN},10)
 ;---------------------------------
 
 [gr1]

Статистика

Время первой команды журнала14:25:54 2011- 6-20
Время последней команды журнала10:31:32 2011- 6-21
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, % 1.98
Процент синтаксически неверно набранных команд, % 2.97
Суммарное время работы с терминалом *, час 3.58
Количество командных строк в единицу времени, команда/мин 0.47
Частота использования команд
vim36|==================================| 34.95%
asterisk15|==============| 14.56%
service10|=========| 9.71%
cd8|=======| 7.77%
ls6|=====| 5.83%
cp2|=| 1.94%
/etc/init2|=| 1.94%
[ny]2|=| 1.94%
~2|=| 1.94%
/etc/init.d/isc-dhcp-server2|=| 1.94%
ssh2|=| 1.94%
ifconfig1|| 0.97%
ping1|| 0.97%
>1|| 0.97%
[2201]1|| 0.97%
{EXTEN},10)1|| 0.97%
links1|| 0.97%
extensions.conf1|| 0.97%
[time]1|| 0.97%
[1|| 0.97%
servise1|| 0.97%
on1|| 0.97%
w3a1|| 0.97%
[la]1|| 0.97%
exten1|| 0.97%
2203,1,Dial1|| 0.97%
[gr4]1|| 0.97%
____
*) Интервалы неактивности длительностью 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$