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

Содержание

Журнал

Вторник (04/22/14)

/dev/pts/1
13:01:36
#l3-agent

13:01:43
#ifconfig
eth0      Link encap:Ethernet  HWaddr 2c:27:d7:46:1a:a4
          inet addr:192.168.12.7  Bcast:192.168.12.255  Mask:255.255.255.0
          inet6 addr: fe80::2e27:d7ff:fe46:1aa4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:30563 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3035 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:35932677 (34.2 MiB)  TX bytes:367967 (359.3 KiB)
          Interrupt:20 Memory:fe400000-fe420000
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:60 errors:0 dropped:0 overruns:0 frame:0
          TX packets:60 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3600 (3.5 KiB)  TX bytes:3600 (3.5 KiB)
13:08:09
#date
Tue Apr 22 14:08:15 EEST 2014
13:08:15
#lsb_release
No LSB modules are available.
13:08:28
#uname -a
Linux debian 3.2.0-4-amd64 #1 SMP Debian 3.2.54-2 x86_64 GNU/Linux
13:08:39
#lsb_release ?
Usage: lsb_release [options]
lsb_release: error: No arguments are permitted
13:08:55
#lsb_release --help
Usage: lsb_release [options]
Options:
  -h, --help         show this help message and exit
  -v, --version      show LSB modules this system supports
  -i, --id           show distributor ID
  -d, --description  show description of this distribution
  -r, --release      show release number of this distribution
  -c, --codename     show code name of this distribution
  -a, --all          show all of the above information
  -s, --short        show requested information in short format
13:09:03
#lsb_release -v
No LSB modules are available.
13:09:08
#lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 7.4 (wheezy)
Release:        7.4
Codename:       wheezy
13:09:13
#nano .bashrc
--- /tmp/l3-saved-11921.6617.7573	2014-04-22 14:10:34.041133595 +0300
+++ .bashrc	2014-04-22 14:10:54.825131900 +0300
@@ -17,3 +17,4 @@
 # alias cp='cp -i'
 # alias mv='mv -i'
 [ $0 == l3script ] && . /root/.lilalo/l3bashrc && _l3_start
+. l3script
13:10:54
#~/.bashrc: executed by bash(1) for non-login shells.

прошло 15 минут
13:26:01
#apt-get install asterisk
Unpacking libcurl3:amd64 (from .../libcurl3_7.26.0-1+wheezy9_amd64.deb) ...
Selecting previously unselected package libgettextpo0:amd64.
Unpacking libgettextpo0:amd64 (from .../libgettextpo0_0.18.1.1-9_amd64.deb) ...
Selecting previously unselected package libodbc1:amd64.
Unpacking libodbc1:amd64 (from .../libodbc1_2.2.14p2-5_amd64.deb) ...
Selecting previously unselected package libsensors4:amd64.
Unpacking libsensors4:amd64 (from .../libsensors4_1%3a3.3.2-2+deb7u1_amd64.deb) ...
Selecting previously unselected package freetds-common.
Unpacking freetds-common (from .../freetds-common_0.91-2+deb7u1_all.deb) ...
Selecting previously unselected package libsybdb5:amd64.
...
Setting up libmail-sendmail-perl (0.79.16-1) ...
Setting up libsox2 (14.4.0-3) ...
Setting up libsox-fmt-alsa (14.4.0-3) ...
Setting up libsox-fmt-base (14.4.0-3) ...
Setting up module-assistant (0.11.4) ...
Setting up rsync (3.0.9-4) ...
update-rc.d: using dependency based boot sequencing
Setting up sox (14.4.0-3) ...
Setting up vpb-driver-source (4.2.55-1) ...
Setting up asterisk-moh-opsound-gsm (2.03-1) ...
13:28:12
#dpkg -l sterisk
dpkg-query: no packages found matching sterisk
13:29:01
#dpkg -l asterisk
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  asterisk       1:1.8.13.1~d amd64        Open Source Private Branch Exchan
13:29:11
#dpkg -L asterisk | less
прошло 30 минут
13:59:32
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk.
14:00:09
#ps aux | grep asterisk
root     16959  0.0  0.0   7832   880 pts/2    S+   15:00   0:00 grep asterisk
14:00:46
#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
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
14:02:05
#ls -l /var/run/asterisk/asterisk.ctl
ls: cannot access /var/run/asterisk/asterisk.ctl: No such file or directory
прошло 27 минут
/dev/pts/1
14:29:09
#ls- l /etc/asterisk/sip.conf
l3script: ls-: command not found
14:30:34
#ls - /etc/asterisk/sip.conf
ls: cannot access -: No such file or directory
/etc/asterisk/sip.conf
14:30:42
#ls -l /etc/asterisk/sip.conf
-rw-r----- 1 asterisk asterisk 79163 Jan  4 03:07 /etc/asterisk/sip.conf
14:30:47
#mv /etc/asterisk/sip.conf /etc/asterisk/sip.conf.SEVED

14:34:09
#nano /etc/asterisk/sip.conf
--- /dev/null	2014-04-22 13:06:30.798645062 +0300
+++ /etc/asterisk/sip.conf	2014-04-22 15:44:32.485229217 +0300
@@ -0,0 +1,8 @@
+context=default
+
+; peer
+;3101 - 3199 all my
+[3101]
+type=friend
+secret=1234
+host=dynamic
прошло 10 минут
14:44:32
#context=default
context=default
; peer
;3101 - 3199 all my
[3101]
type=friend
secret=1234
host=dynamic
прошло 10 минут
14:55:11
#[general]
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 debian (pid = 16994)
...
3101                       (Unspecified)                            D   N             0        Unmonitored
1 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 1 offline]
    -- Remote UNIX connection
    -- Remote UNIX connection disconnected
debian*CLI> sip show peers
Name/username              Host                                    Dyn Forcerport ACL Port     Status
3101                       (Unspecified)                            D   N             0        Unmonitored
1 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 1 offline]
debian*CLI> quit
Executing last minute cleanups
прошло 24 минуты
15:19:12
#apt-cash search irs-dhcp-server
l3script: apt-cash: command not found
15:22:04
#apt-cashe search irs-dhcp-server
l3script: apt-cashe: command not found
15:22:15
#apt-cache search irs-dhcp-server

15:22:22
#apt-apt install irs-dhcp-server
l3script: apt-apt: command not found
15:22:36
#apt-get install irs-dhcp-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package irs-dhcp-server
15:22:43
#apt-get install irc-dhcp-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package irc-dhcp-server
15:22:59
#apt-get install isc-dhcp-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  isc-dhcp-server-ldap
The following NEW packages will be installed:
  isc-dhcp-server
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 935 kB of archives.
After this operation, 2,075 kB of additional disk space will be used.
...
Preconfiguring packages ...
Selecting previously unselected package isc-dhcp-server.
(Reading database ... 133062 files and directories currently installed.)
Unpacking isc-dhcp-server (from .../isc-dhcp-server_4.2.2.dfsg.1-5+deb70u6_amd64.deb) ...
Processing triggers for man-db ...
Setting up isc-dhcp-server (4.2.2.dfsg.1-5+deb70u6) ...
Generating /etc/default/isc-dhcp-server...
[FAIL] Starting ISC DHCP server: dhcpd[....] check syslog for diagnostics. ... failed!
 failed!
invoke-rc.d: initscript isc-dhcp-server, action "start" failed.
15:23:42
#apt-get remove isc-dhcp-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  isc-dhcp-server
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 2,075 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 133076 files and directories currently installed.)
Removing isc-dhcp-server ...
[FAIL] Stopping ISC DHCP server: dhcpd failed!
Processing triggers for man-db ...
15:24:39
#ps aux | grep dhscp
root     18810  0.0  0.0   7832   872 pts/0    S+   16:25   0:00 grep dhscp
15:25:51
#ps aux | grep dhcp
root     18819  0.0  0.0   7832   872 pts/0    S+   16:25   0:00 grep dhcp
15:26:00
#grep d
d
d
d
d
d
d
d2
d2
^C
15:34:01
#sterisk -rvvvv
l3script: sterisk: command not found
15:36:48
#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 debian (pid = 16994)
...
    -- Remote UNIX connection
    -- Remote UNIX connection disconnected
    -- Remote UNIX connection
    -- Remote UNIX connection disconnected
    -- Remote UNIX connection
    -- Remote UNIX connection disconnected
    -- Remote UNIX connection
    -- Remote UNIX connection disconnected
debian*CLI> quit
Executing last minute cleanups
прошло 11 минут
15:48:39
#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 debian (pid = 16994)
...
    -- Remote UNIX connection
    -- Remote UNIX connection disconnected
    -- Remote UNIX connection
    -- Remote UNIX connection disconnected
    -- Remote UNIX connection
    -- Remote UNIX connection disconnected
    -- Remote UNIX connection
    -- Remote UNIX connection disconnected
debian*CLI> quit
Executing last minute cleanups
прошло 14 минут
16:03:15
#asterisk -rx "sip show peers"
Name/username              Host                                    Dyn Forcerport ACL Port     Status
3101/3101                  192.168.12.201                           D   N             5060     Unmonitored
3102/3102                  192.168.12.107                           D   N             5060     Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
16:03:31
#asterisk -rx
asterisk: option requires an argument -- 'x'
16:04:50
#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 debian (pid = 16994)
Verbosity is at least 4
    -- Remote UNIX connection
    -- Remote UNIX connection disconnected
  == Using SIP RTP CoS mark 5
[Apr 22 17:09:16] NOTICE[17032]: chan_sip.c:22753 handle_request_invite: Call from '3102' (192.168.12.107:5060) to extension '3101' rejected because extension not found in context 'default'.
debian*CLI> quit
Executing last minute cleanups
16:12:43
#mc /etc/asterisk/extensions.conf /etc/asterisk/extensions.conf.SAVE
прошло 10 минут
16:23:21
#^C

16:23:21
#asterisk -rx 'dial reload'
No such command 'dial reload' (type 'core show help dial reload' for other possible commands)
16:23:51
#asterisk -rx 'core dial reload'
No such command 'core dial reload' (type 'core show help core dial reload' for other possible commands)
16:23:57
#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 debian (pid = 16994)
...
  == Using SIP RTP CoS mark 5
    -- Executing [3102@default:1] Dial("SIP/3101-00000001", "SIP/$3{EXTEN}") in new stack
  == Using SIP RTP CoS mark 5
[Apr 22 17:24:57] ERROR[19228]: netsock2.c:263 ast_sockaddr_resolve: getaddrinfo("$3{EXTEN}", "(null)", ...): No address associated with hostname
[Apr 22 17:24:57] WARNING[19228]: chan_sip.c:5498 create_addr: No such host: $3{EXTEN}
[Apr 22 17:24:57] WARNING[19228]: app_dial.c:2274 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown)
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Auto fallthrough, channel 'SIP/3101-00000001' status is 'CHANUNAVAIL'
debian*CLI> quit
Executing last minute cleanups
16:26:19
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-18007.6529.3008	2014-04-22 17:26:29.917332585 +0300
+++ /etc/asterisk/extensions.conf	2014-04-22 17:26:36.573332697 +0300
@@ -1,4 +1,4 @@
 [default]
 
 ;exten => 3101,1,Dial(SIP/3101)
-exten => _31XX,1,Dial(SIP/$3{EXTEN})
+exten => _31XX,1,Dial(SIP/${EXTEN})
16:29:23
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-18007.30280.9783	2014-04-22 17:29:26.033335561 +0300
+++ /etc/asterisk/extensions.conf	2014-04-22 17:33:50.317340029 +0300
@@ -2,3 +2,5 @@
 
 ;exten => 3101,1,Dial(SIP/3101)
 exten => _31XX,1,Dial(SIP/${EXTEN})
+exten => _31XX,2,Hangup(SIP/${EXTEN})
+
16:33:50
#[default]
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 debian (pid = 16994)
Verbosity is at least 4
debian*CLI> dialplan reload
...
  == Using SIP RTP CoS mark 5
    -- Executing [3101@default:1] Dial("SIP/3102-00000006", "SIP/3101") in new stack
  == Using SIP RTP CoS mark 5
    -- Called SIP/3101
    -- SIP/3101-00000007 is ringing
    -- SIP/3101-00000007 answered SIP/3102-00000006
    -- Remotely bridging SIP/3102-00000006 and SIP/3101-00000007
  == Spawn extension (default, 3101, 1) exited non-zero on 'SIP/3102-00000006'
debian*CLI> quit
Executing last minute cleanups
16:38:55
#netstatn -np
l3script: netstatn: command not found
16:39:05
#netstat -np
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 192.168.12.7:54765      46.4.144.245:18030      TIME_WAIT   -
tcp        0      0 192.168.12.7:22         192.168.12.107:50146    ESTABLISHED 19229/sshd: user [p
tcp        0      0 192.168.12.7:54766      46.4.144.245:18030      TIME_WAIT   -
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags       Type       State         I-Node   PID/Program name    Path
unix  18     [ ]         DGRAM                    10381    2382/rsyslogd       /dev/log
unix  2      [ ]         DGRAM                    53460    16994/asterisk
unix  3      [ ]         STREAM     CONNECTED     51481    19229/sshd: user [p
...
unix  3      [ ]         STREAM     CONNECTED     6561     2833/dbus-daemon    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     10470    2879/bluetoothd
unix  2      [ ]         DGRAM                    10466    2879/bluetoothd
unix  3      [ ]         STREAM     CONNECTED     6532     2833/dbus-daemon
unix  3      [ ]         STREAM     CONNECTED     6531     2833/dbus-daemon
unix  2      [ ]         DGRAM                    10396    2468/acpid
unix  3      [ ]         STREAM     CONNECTED     6367     1949/rpc.idmapd
unix  3      [ ]         STREAM     CONNECTED     6366     1949/rpc.idmapd
unix  3      [ ]         DGRAM                    6223     396/udevd
unix  3      [ ]         DGRAM                    6222     396/udevd
16:39:10
#lf
l3script: lf: command not found

Среда (04/23/14)

/dev/pts/3
08:37:30
#l3-agent
l3-agent is already running: pid=11943; pidfile=/root/.lilalo/l3-agent.pid
08:37:44
##heloo!

08:37:55
#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 debian (pid = 16994)
Verbosity is at least 4
    -- Remote UNIX connection disconnected
debian*CLI> sip sho peers
No such command 'sip sho peers' (type 'core show help sip sho peers' for other possible commands)
debian*CLI> sip show peers
Name/username              Host                                    Dyn Forcerport ACL Port     Status
3101/3101                  192.168.12.201                           D   N             5060     Unmonitored
3102/3102                  (Unspecified)                            D   N             0        Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 1 offline]
debian*CLI> quit
Executing last minute cleanups
08:41:57
#screen -x
/dev/pts/2
08:49:51
#screen -x
08:50:25
#sreen -x
l3script: sreen: command not found
08:51:11
#screen -x
прошло 66 минут
/dev/pts/2
09:57:13
#sc
scanimage                               scrollkeeper-get-content-list
scanin                                  scrollkeeper-get-extended-content-list
scp                                     scrollkeeper-get-index-from-docpath
screen                                  scrollkeeper-get-toc-from-docpath
screendump                              scrollkeeper-get-toc-from-id
script                                  scrollkeeper-install
scriptreplay                            scrollkeeper-preinstall
scrollkeeper-config                     scrollkeeper-rebuilddb
scrollkeeper-extract                    scrollkeeper-uninstall
scrollkeeper-gen-seriesid               scrollkeeper-update
scrollkeeper-get-cl
09:57:13
#sc
scanimage                               scrollkeeper-get-content-list
scanin                                  scrollkeeper-get-extended-content-list
scp                                     scrollkeeper-get-index-from-docpath
screen                                  scrollkeeper-get-toc-from-docpath
screendump                              scrollkeeper-get-toc-from-id
script                                  scrollkeeper-install
scriptreplay                            scrollkeeper-preinstall
scrollkeeper-config                     scrollkeeper-rebuilddb
scrollkeeper-extract                    scrollkeeper-uninstall
scrollkeeper-gen-seriesid               scrollkeeper-update
scrollkeeper-get-cl
09:57:13
#screen
09:57:13
#screen
09:57:13
#screen -x
09:57:28
#asterisk -ex 'sip show peers'
Privilege escalation protection disabled!
See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details.
Asterisk already running on /var/run/asterisk/asterisk.ctl.  Use 'asterisk -r' to connect.
09:58:08
#asterisk -rx 'sip show peers'
Name/username              Host                                    Dyn Forcerport ACL Port     Status
3101/3101                  192.168.12.201                           D   N             5060     Unmonitored
3102/3102                  192.168.12.107                           D   N             33784    Unmonitored
3103                       (Unspecified)                            D   N             0        Unmonitored
3 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 1 offline]
09:58:16
#nano /etc/asterisk/sip.conf
--- /tmp/l3-saved-24029.25624.30628	2014-04-23 11:32:16.094433417 +0300
+++ /etc/asterisk/sip.conf	2014-04-23 11:46:52.090448216 +0300
@@ -1,5 +1,9 @@
 [general]
 context=default
+; canreinvite=0 -old version asterisk
+directmedia=no
+
+register =>havana:1234@192.168.12.8/santiago
 
 ; peer
 ;3101 - 3199 all my
@@ -18,3 +22,8 @@
 secret=1234
 host=dynamic
 
+[santiago]
+type=friend
+secret=1234
+host=dynamic
+username=havana
прошло 48 минут
10:47:06
#^C

10:47:14
#asterisk -rx 'sip reload'

10:47:46
#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 debian (pid = 16994)
Verbosity is at least 4
debian*CLI> sip reload
 Reloading SIP
[Apr 23 11:47:59] WARNING[17032]: chan_sip.c:20720 handle_response_register: Forbidden - wrong password on authentication for REGISTER for 'havana' to '192.168.12.8'
debian*CLI> quit
Executing last minute cleanups
10:49:08
#screen -x
/dev/pts/0
10:49:35
#nano /etc/asterisk/sip.conf
--- /tmp/l3-saved-24351.14989.548	2014-04-23 11:50:07.470451519 +0300
+++ /etc/asterisk/sip.conf	2014-04-23 11:51:32.138452951 +0300
@@ -3,7 +3,7 @@
 ; canreinvite=0 -old version asterisk
 directmedia=no
 
-register =>havana:1234@192.168.12.8/santiago
+register => havana:1234@192.168.12.8/santiago
 
 ; peer
 ;3101 - 3199 all my
10:51:32
#[general]

10:51:34
#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 debian (pid = 16994)
Verbosity is at least 4
debian*CLI> sip reload
...
debian*CLI> sip show peers
Name/username              Host                                    Dyn Forcerport ACL Port     Status
3101/3101                  192.168.12.201                           D   N             5060     Unmonitored
3102/3102                  192.168.12.107                           D   N             33784    Unmonitored
3103                       (Unspecified)                            D   N             0        Unmonitored
santiago/havana            192.168.12.8                             D   N             5060     Unmonitored
4 sip peers [Monitored: 0 online, 0 offline Unmonitored: 3 online, 1 offline]
debian*CLI> sip show peer re
Disconnected from Asterisk server
Executing last minute cleanups
10:54:48
#nano /etc/asterisk/sip.conf
10:56:41
#[general]
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 debian (pid = 16994)
Verbosity is at least 4
debian*CLI> core reload
...
No such command 'show sip peers' (type 'core show help show sip' for other possible commands)
debian*CLI> sip show peers
Name/username              Host                                    Dyn Forcerport ACL Port     Status
3101/3101                  192.168.12.201                           D   N             5060     Unmonitored
3102/3102                  192.168.12.107                           D   N             33784    Unmonitored
3103                       (Unspecified)                            D   N             0        Unmonitored
santiago/havana            192.168.12.8                             D   N             5060     Unmonitored
4 sip peers [Monitored: 0 online, 0 offline Unmonitored: 3 online, 1 offline]
debian*CLI> quit
Executing last minute cleanups
10:59:56
#less /etc/asterisk/sip.conf
11:00:12
#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 debian (pid = 16994)
...
 Reloading SIP
[Apr 23 12:00:19] WARNING[17032]: chan_sip.c:20720 handle_response_register: Forbidden - wrong password on authentication for REGISTER for 'havana' to '192.168.12.8'
debian*CLI> sip reload
 Reloading SIP
debian*CLI>
    -- Remote UNIX connection
    -- Remote UNIX connection disconnected
debian*CLI> sip reload
Disconnected from Asterisk server
Executing last minute cleanups
11:03:12
#nano /etc/asterisk/sip.conf
11:04:12
#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 debian (pid = 16994)
...
debian*CLI> sip show peers
Name/username              Host                                    Dyn Forcerport ACL Port     Status
3101/3101                  192.168.12.201                           D   N             5060     Unmonitored
3102/3102                  192.168.12.107                           D   N             33784    Unmonitored
3103                       (Unspecified)                            D   N             0        Unmonitored
santiago/havana            192.168.12.8                             D   N             5060     Unmonitored
4 sip peers [Monitored: 0 online, 0 offline Unmonitored: 3 online, 1 offline]
debian*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
11:05:34
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-24351.32130.25155	2014-04-23 12:05:48.202467416 +0300
+++ /etc/asterisk/extensions.conf	2014-04-23 12:08:52.570470532 +0300
@@ -2,5 +2,4 @@
 
 ;exten => 3101,1,Dial(SIP/3101)
 exten => _31XX,1,Dial(SIP/${EXTEN})
-exten => _31XX,2,Hangup(SIP/${EXTEN})
-
+exten => _32XX,1,Dial(SIP/santiago/${EXTEN})
11:08:52
#[default]
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 debian (pid = 16994)
Verbosity is at least 4
debian*CLI> sip reload
...
    -- Called SIP/3101
    -- SIP/3101-0000000d is ringing
    -- SIP/3101-0000000d answered SIP/santiago-0000000c
    -- Locally bridging SIP/santiago-0000000c and SIP/3101-0000000d
  == Spawn extension (default, 3101, 1) exited non-zero on 'SIP/santiago-0000000c'
  == Using SIP RTP CoS mark 5
[Apr 23 12:09:44] NOTICE[17032]: chan_sip.c:22753 handle_request_invite: Call from '3101' (192.168.12.201:5060) to extension '3201' rejected because extension not found in context 'default'.
debian*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
11:10:01
#nano /etc/asterisk/extensions.conf
11:10:16
#[default]
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 debian (pid = 16994)
Verbosity is at least 4
debian*CLI> dialplan reload
...
    -- Executing [3201@default:1] Dial("SIP/3101-00000016", "SIP/santiago/3201") in new stack
  == Using SIP RTP CoS mark 5
    -- Called SIP/santiago/3201
    -- SIP/santiago-00000017 is ringing
    -- SIP/santiago-00000017 answered SIP/3101-00000016
    -- Locally bridging SIP/3101-00000016 and SIP/santiago-00000017
  == Spawn extension (default, 3201, 1) exited non-zero on 'SIP/3101-00000016'
debian*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
11:17:03
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-24351.28876.28116	2014-04-23 12:17:08.918478919 +0300
+++ /etc/asterisk/extensions.conf	2014-04-23 12:18:03.394479839 +0300
@@ -3,3 +3,4 @@
 ;exten => 3101,1,Dial(SIP/3101)
 exten => _31XX,1,Dial(SIP/${EXTEN})
 exten => _32XX,1,Dial(SIP/santiago/${EXTEN})
+exten => _12XX,1,Dial(SIP,kiev/${EXTEN})
11:18:03
#[default]

11:20:10
#[general]

11:20:55
#[default]
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 debian (pid = 16994)
Verbosity is at least 4
debian*CLI> dialplan reload
...
Name/username              Host                                    Dyn Forcerport ACL Port     Status
3101/3101                  192.168.12.201                           D   N             5060     Unmonitored
3102/3102                  192.168.12.107                           D   N             33784    Unmonitored
3103                       (Unspecified)                            D   N             0        Unmonitored
kiev/havana                (Unspecified)                            D   N             0        Unmonitored
santiago/havana            192.168.12.8                             D   N             5060     Unmonitored
5 sip peers [Monitored: 0 online, 0 offline Unmonitored: 3 online, 2 offline]
debian*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
11:23:19
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-24351.22430.31206	2014-04-23 12:23:24.010485257 +0300
+++ /etc/asterisk/extensions.conf	2014-04-23 12:23:42.470485568 +0300
@@ -3,4 +3,4 @@
 ;exten => 3101,1,Dial(SIP/3101)
 exten => _31XX,1,Dial(SIP/${EXTEN})
 exten => _32XX,1,Dial(SIP/santiago/${EXTEN})
-exten => _12XX,1,Dial(SIP,kiev/${EXTEN})
+exten => _12XX,1,Dial(SIP/kiev/${EXTEN})
11:23:42
#[default]

11:23:53
#[general]
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 debian (pid = 16994)
Verbosity is at least 4
debian*CLI> dialplan reload
...
kiev/havana                (Unspecified)                            D   N             0        Unmonitored
santiago/havana            192.168.12.8                             D   N             5060     Unmonitored
5 sip peers [Monitored: 0 online, 0 offline Unmonitored: 3 online, 2 offline]
[Apr 23 12:24:41] NOTICE[17032]: chan_sip.c:25030 handle_request_register: Registration from '<sip:vaduz@192.168.12.7>' failed for '192.168.12.9:5060' - Wrong password
    -- Registered SIP 'kiev' at 192.168.12.2:5060
       > Saved useragent "Asterisk PBX 1.8.13.1~dfsg1-3+deb7u3" for peer kiev
[Apr 23 12:24:56] NOTICE[17032]: chan_sip.c:25030 handle_request_register: Registration from '<sip:vaduz@192.168.12.7>' failed for '192.168.12.9:5060' - Wrong password
debian*CLI> dialplan reload
Disconnected from Asterisk server
Executing last minute cleanups
11:25:38
#nano /etc/asterisk/sip.conf
--- /tmp/l3-saved-24351.19630.15968	2014-04-23 12:25:40.946487568 +0300
+++ /etc/asterisk/sip.conf	2014-04-23 12:26:21.742488264 +0300
@@ -33,4 +33,3 @@
 secret=1234
 host=dynamic
 username=havana
-
11:26:21
#[general]

11:26:41
#[default]
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 debian (pid = 16994)
Verbosity is at least 4
debian*CLI> sip reload
...
[Apr 23 13:00:04] NOTICE[17032]: chan_sip.c:22753 handle_request_invite: Call from 'havana' (192.168.12.8:5060) to extension '1101' rejected because extension not found in context 'default'.
  == Using SIP RTP CoS mark 5
    -- Executing [1201@default:1] Dial("SIP/santiago-00000038", "SIP/kiev/1201") in new stack
  == Using SIP RTP CoS mark 5
    -- Called SIP/kiev/1201
    -- SIP/kiev-00000039 is ringing
  == Spawn extension (default, 1201, 1) exited non-zero on 'SIP/santiago-00000038'
debian*CLI> sip show peers
Disconnected from Asterisk server
Executing last minute cleanups
прошло 34 минуты
12:00:48
#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 debian (pid = 16994)
...
    -- Called SIP/kiev/1201
    -- SIP/kiev-0000003b is ringing
  == Spawn extension (default, 1201, 1) exited non-zero on 'SIP/santiago-0000003a'
  == Using SIP RTP CoS mark 5
[Apr 23 13:01:04] NOTICE[17032]: chan_sip.c:22753 handle_request_invite: Call from 'havana' (192.168.12.8:5060) to extension '1101' rejected because extension not found in context 'default'.
  == Using SIP RTP CoS mark 5
[Apr 23 13:01:09] NOTICE[17032]: chan_sip.c:22753 handle_request_invite: Call from 'havana' (192.168.12.8:5060) to extension '1101' rejected because extension not found in context 'default'.
debian*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
12:01:44
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-24351.6042.13814	2014-04-23 13:01:47.742524184 +0300
+++ /etc/asterisk/extensions.conf	2014-04-23 13:04:22.926526809 +0300
@@ -3,4 +3,5 @@
 ;exten => 3101,1,Dial(SIP/3101)
 exten => _31XX,1,Dial(SIP/${EXTEN})
 exten => _32XX,1,Dial(SIP/santiago/${EXTEN})
-exten => _12XX,1,Dial(SIP/kiev/${EXTEN})
+exten => _1XXX,1,Dial(SIP/kiev/${EXTEN})
+;exten => _12XX,1,Dial(SIP/kiev/${EXTEN})
12:04:22
#[default]
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 debian (pid = 16994)
Verbosity is at least 4
  == Using SIP RTP CoS mark 5
...
    -- Executing [3201@default:1] Dial("SIP/kiev-00000046", "SIP/santiago/3201") in new stack
  == Using SIP RTP CoS mark 5
    -- Called SIP/santiago/3201
    -- SIP/santiago-00000047 is ringing
    -- SIP/santiago-00000047 answered SIP/kiev-00000046
    -- Locally bridging SIP/kiev-00000046 and SIP/santiago-00000047
  == Spawn extension (default, 3201, 1) exited non-zero on 'SIP/kiev-00000046'
debian*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
12:11:33
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-24351.18225.26096	2014-04-23 13:11:37.386534149 +0300
+++ /etc/asterisk/extensions.conf	2014-04-23 13:12:54.602535455 +0300
@@ -3,5 +3,5 @@
 ;exten => 3101,1,Dial(SIP/3101)
 exten => _31XX,1,Dial(SIP/${EXTEN})
 exten => _32XX,1,Dial(SIP/santiago/${EXTEN})
-exten => _1XXX,1,Dial(SIP/kiev/${EXTEN})
-;exten => _12XX,1,Dial(SIP/kiev/${EXTEN})
+;exten => _1XXX,1,Dial(SIP/kiev/${EXTEN})
+exten => _[12]XXX,1,Dial(SIP/kiev/${EXTEN})

Статистика

Время первой команды журнала13:01:36 2014- 4-22
Время последней команды журнала12:11:33 2014- 4-23
Количество командных строк в журнале100
Процент команд с ненулевым кодом завершения, %17.00
Процент синтаксически неверно набранных команд, % 9.00
Суммарное время работы с терминалом *, час 4.20
Количество командных строк в единицу времени, команда/мин 0.40
Частота использования команд
asterisk18|=================| 17.31%
nano15|==============| 14.42%
[default]8|=======| 7.69%
screen7|======| 6.73%
[general]6|=====| 5.77%
lsb_release5|====| 4.81%
apt-get5|====| 4.81%
grep4|===| 3.85%
dpkg3|==| 2.88%
ls3|==| 2.88%
ps3|==| 2.88%
l3-agent2|=| 1.92%
less2|=| 1.92%
^C2|=| 1.92%
sc2|=| 1.92%
ifconfig1|| 0.96%
lf1|| 0.96%
#heloo!1|| 0.96%
/etc/init.d/asterisk1|| 0.96%
context=default1|| 0.96%
apt-cash1|| 0.96%
sreen1|| 0.96%
netstat1|| 0.96%
apt-cashe1|| 0.96%
mv1|| 0.96%
ls-1|| 0.96%
.bashrc:1|| 0.96%
sterisk1|| 0.96%
netstatn1|| 0.96%
apt-cache1|| 0.96%
date1|| 0.96%
apt-apt1|| 0.96%
mc1|| 0.96%
uname1|| 0.96%
____
*) Интервалы неактивности длительностью 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$