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

Содержание

Журнал

Понедельник (11/18/13)

/dev/pts/1
16:32:28
#joe extensions.conf
** Joe's Own Editor v3.7 ** (utf-8) ** Copyright © 2008 **
File extensions.conf saved
16:32:35
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3, 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~dfsg-3 currently running on debian (pid = 4113)
...
[Nov 18 17:38:09] NOTICE[4248]: channel.c:4170 __ast_read: Dropping incompatible voice frame on SIP/3102-00000002 of format ulaw since our native format has changed to 0x80002 (gsm|h263)
  == Spawn extension (default, 4000, 2) exited non-zero on 'SIP/3102-00000002'
  == Using SIP RTP CoS mark 5
    -- Executing [4000@default:1] Answer("SIP/3102-00000003", "") in new stack
    -- Executing [4000@default:2] Playback("SIP/3102-00000003", "demo-thanks") in new stack
    -- <SIP/3102-00000003> Playing 'demo-thanks.gsm' (language 'en')
[Nov 18 17:42:37] NOTICE[4290]: channel.c:4170 __ast_read: Dropping incompatible voice frame on SIP/3102-00000003 of format ulaw since our native format has changed to 0x80002 (gsm|h263)
    -- Auto fallthrough, channel 'SIP/3102-00000003' status is 'UNKNOWN'
debian*CLI> exit
Executing last minute cleanups
прошло 12 минут
16:45:18
#cd /tmp/

16:45:27
#ll
l3script: ll: command not found
16:45:28
#ls
orbit-alex  pulse-gFgQqDh4ajMk  pulse-LCZX9g0ZaqvD  ssh-ytaTz7zUcwH2  tracker-alex
16:45:36
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3, 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~dfsg-3 currently running on debian (pid = 4113)
...
3101/3101                  192.168.15.208                           D   N             5060     Unmonitored
3102/3102                  192.168.15.214                           D   N             64599    Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
debian*CLI> sip show peers
Name/username              Host                                    Dyn Forcerport ACL Port     Status
3101/3101                  192.168.15.208                           D   N             5060     Unmonitored
3102/3102                  192.168.15.214                           D   N             64599    Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
debian*CLI> exit
Executing last minute cleanups
16:50:55
#l3-agent
l3-agent is already running: pid=3419; pidfile=/root/.lilalo/l3-agent.pid
16:51:02
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3, 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~dfsg-3 currently running on debian (pid = 4113)
Verbosity is at least 3
debian*CLI> exit
Executing last minute cleanups
16:56:23
#joe extensions.conf
There is no message buffer
    IW   * Build Log * (Modified)                                                                         Row 1    Col 1    5:56  Ctrl-K H for help
** Joe's Own Editor v3.7 ** (utf-8) ** Copyright © 2008 **
Build command:
New File
No modified files, so no updates needed.                                                          *SHELL*
No messages found
Lose changes to this file (y,n,^C)?
File extensions.conf not saved
16:56:41
#cd /etc/asterisk/

16:56:48
#joe asterisk.conf
;timestamp = yes                ; Same as -T at startup.
;execincludes = yes             ; Support #exec in config files.
;console = yes                  ; Run as console (same as -c at startup).
;highpriority = yes             ; Run realtime priority (same as -p at
                                ; startup).
;initcrypto = yes               ; Initialize crypto keys (same as -i at
                                ; startup).
;nocolor = yes                  ; Disable console colors.
;dontwarn = yes                 ; Disable some warnings.
;dumpcore = yes                 ; Dump core on crash (same as -g at startup).
;languageprefix = yes           ; Use the new sound prefix path syntax.
;internal_timing = yes
;systemname = my_system_name    ; Prefix uniqueid with a system name for
                                ; Global uniqueness issues.
** Joe's Own Editor v3.7 ** (utf-8) ** Copyright © 2008 **
File asterisk.conf not changed so no update needed
16:56:55
#joe extensions.conf
exten => 3101,1,Dial(SIP/3101)thanks)
File extensions.conf saved
17:00:11
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3, 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~dfsg-3 currently running on debian (pid = 4113)
...
    -- 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>
debian*CLI> exit
Executing last minute cleanups
17:02:56
#joe extensions.conf
exten => 3101,1,Dial(SIP/3101)
exten => _33XX,1,Dial(SIP/3101)
File extensions.conf saved
17:04:13
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3, 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~dfsg-3 currently running on debian (pid = 4113)
...
    -- Time to delete the old dialplan: 0.000039 sec
    -- Total time merge_contexts_delete: 0.000967 sec
  == Using SIP RTP CoS mark 5
    -- Executing [3302@default:1] Dial("SIP/3102-00000008", "SIP/3101") in new stack
  == Using SIP RTP CoS mark 5
    -- Called SIP/3101
    -- SIP/3101-00000009 is ringing
  == Spawn extension (default, 3302, 1) exited non-zero on 'SIP/3102-00000008'
debian*CLI> exit
Executing last minute cleanups
17:08:43
#joe extensions.conf
exten => 3101,1,Dial(SIP/3101)
exten => _3301,1,Dial(SIP/31${EXTEN}:2)
File extensions.conf saved
17:10:37
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3, 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~dfsg-3 currently running on debian (pid = 4113)
...
[Nov 18 18:11:47] WARNING[4149]: chan_sip.c:3385 __sip_xmit: sip_xmit of 0x2a8f7b0 (len 830) to 0.4.199.213:2 returned -1: Invalid argument
[Nov 18 18:11:49] WARNING[4149]: chan_sip.c:3385 __sip_xmit: sip_xmit of 0x2a8f7b0 (len 830) to 0.4.199.213:2 returned -1: Invalid argument
[Nov 18 18:11:53] WARNING[4149]: chan_sip.c:3385 __sip_xmit: sip_xmit of 0x2a8f7b0 (len 830) to 0.4.199.213:2 returned -1: Invalid argument
  == Spawn extension (default, 3301, 1) exited non-zero on 'SIP/3102-0000000a'
[Nov 18 18:12:01] WARNING[4149]: chan_sip.c:3385 __sip_xmit: sip_xmit of 0x2a8f7b0 (len 830) to 0.4.199.213:2 returned -1: Invalid argument
[Nov 18 18:12:17] WARNING[4149]: chan_sip.c:3385 __sip_xmit: sip_xmit of 0x2a8f7b0 (len 830) to 0.4.199.213:2 returned -1: Invalid argument
[Nov 18 18:12:17] WARNING[4149]: chan_sip.c:3656 retrans_pkt: Retransmission timeout reached on transmission 0f2bf4b422ff8be97a3dab9041854e7a@192.16.15.7:5060 for seqno 102 (Critical Request) -- See https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions
Packet timed out after 32000ms with no response
debian*CLI> exit
Executing last minute cleanups
17:12:20
#joe extensions.conf
exten => 3101,1,Dial(SIP/3101)
exten => _33XX,1,Dial(SIP/3101)
exten => _33XX,
exten => _3301,1,Dial(SIP/31${EXTEN:2})
exten => _3301,1,Dial(SIP/31${EXTEN}:2)
File extensions.conf saved
17:13:22
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3, 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~dfsg-3 currently running on debian (pid = 4113)
...
    -- Total time merge_contexts_delete: 0.000864 sec
  == Using SIP RTP CoS mark 5
    -- Executing [3301@default:1] Dial("SIP/3102-0000000c", "SIP/3101") in new stack
  == Using SIP RTP CoS mark 5
    -- Called SIP/3101
    -- SIP/3101-0000000d is ringing
  == Spawn extension (default, 3301, 1) exited non-zero on 'SIP/3102-0000000c'
debian*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
17:13:46
#halt

Вторник (11/19/13)

/dev/pts/1
09:21:19
#l3-agent

09:21:22
#asterisk
Asterisk already running on /var/run/asterisk/asterisk.ctl.  Use 'asterisk -r' to connect.
09:22:13
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3, 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~dfsg-3 currently running on debian (pid = 2233)
...
3101/3101                  192.168.15.208                           D   N             5060     Unmonitored
3102/3102                  (Unspecified)                            D   N             0        Unmonitored
kiev/ottawa                (Unspecified)                            D   N             0        Unmonitored
london/ottawa              (Unspecified)                            D   N             0        Unmonitored
montreal/ottawa            (Unspecified)                            D   N             0        Unmonitored
quebec/ottawa              (Unspecified)                            D   N             0        Unmonitored
6 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 5 offline]
debian*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
прошло 35 минут
/dev/pts/3
09:58:05
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3625.3074.2768	2013-11-19 10:59:16.235262509 +0200
+++ /etc/asterisk/extensions.conf	2013-11-19 11:17:09.563250146 +0200
@@ -3,8 +3,29 @@
 exten => 4000,n,Playback(demo-thanks)
 
 exten => 3101,1,Dial(SIP/3101)
+exten => 3102,1,Dial(SIP/3102)
 
+exten => _32XX,1,Answer
+exten => _32XX,n,Dial(SIP/montreal/${EXTEN})
+
+exten => _33XX,1,Answer
+exten => _33XX,n,Dial(SIP/quebec/${EXTEN})
+
+
+exten => _2XXX,1,Answer
+exten => _2XXX,n,Dial(SIP/london/${EXTEN})
+
+exten => _1XXX,1,Answer
+exten => _1XXX,n,Dial(SIP/kiev/${EXTEN})
+
+
+
+
+
+
+
+
+;exten => _33XX,1,Dial(SIP/3101)
+;exten => _3301,1,Dial(SIP/31${EXTEN:2})
 
 
-exten => _33XX,1,Dial(SIP/3101)
-exten => _3301,1,Dial(SIP/31${EXTEN:2})
\ No newline at end of file
/dev/pts/5
09:58:20
#nano /etc/asterisk/sip.cong
/dev/pts/1
10:07:24
#ifconfig
eth0      Link encap:Ethernet  HWaddr 2c:27:d7:46:1a:50
          inet addr:192.168.15.7  Bcast:192.168.15.255  Mask:255.255.255.0
          inet6 addr: fe80::2e27:d7ff:fe46:1a50/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3009 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1282 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:453127 (442.5 KiB)  TX bytes:113717 (111.0 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:48 errors:0 dropped:0 overruns:0 frame:0
          TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2880 (2.8 KiB)  TX bytes:2880 (2.8 KiB)
10:17:20
#asterisk -rvvvvvv
Asterisk 1.8.13.1~dfsg-3, 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~dfsg-3 currently running on debian (pid = 2233)
...
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Auto fallthrough, channel 'SIP/london-00000034' status is 'CHANUNAVAIL'
    -- Registered SIP '3102' at 192.168.15.214:55233
[Nov 19 14:46:48] NOTICE[2501]: chan_sip.c:24850 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 3102
    -- Registered SIP '3102' at 192.168.15.214:55233
[Nov 19 15:23:00] NOTICE[2501]: chan_sip.c:24850 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 3102
debian*CLI> ex
No such command 'ex' (type 'core show help ex' for other possible commands)
debian*CLI> exit
Executing last minute cleanups
прошло >5 часов
/dev/pts/5
15:18:39
#[general]nd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  dahdi-linux fxload
The following NEW packages will be installed:
  dahdi-linux dahdi-source fxload
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,014 kB of archives.
After this operation, 1,357 kB of additional disk space will be used.
...
(Reading database ... 130378 files and directories currently installed.)
Unpacking fxload (from .../fxload_0.0.20081013-1_amd64.deb) ...
Selecting previously unselected package dahdi-linux.
Unpacking dahdi-linux (from .../dahdi-linux_1%3a2.6.1+dfsg2-1_all.deb) ...
Selecting previously unselected package dahdi-source.
Unpacking dahdi-source (from .../dahdi-source_1%3a2.6.1+dfsg2-1_all.deb) ...
Processing triggers for man-db ...
Setting up fxload (0.0.20081013-1) ...
Setting up dahdi-linux (1:2.6.1+dfsg2-1) ...
Setting up dahdi-source (1:2.6.1+dfsg2-1) ...
15:19:11
#ma
macptopbm       mailq           make            manpath
magnifier       mail-touchlock  mako-render     mapfile
mail            mail-unlock     man             mapscrn
mail-lock       mailx           mandb           mawk
15:19:11
#make -auto -autoinstall dahdi
make: invalid option -- 'a'
make: invalid option -- 'u'
Usage: make [options] [target] ...
Options:
  -b, -m                      Ignored for compatibility.
  -B, --always-make           Unconditionally make all targets.
  -C DIRECTORY, --directory=DIRECTORY
                              Change to DIRECTORY before doing anything.
  -d                          Print lots of debugging information.
  --debug[=FLAGS]             Print various types of debugging information.
...
                              Turns off -k.
  -t, --touch                 Touch targets instead of remaking them.
  -v, --version               Print the version number of make and exit.
  -w, --print-directory       Print the current directory.
  --no-print-directory        Turn off -w, even if it was turned on implicitly.
  -W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE
                              Consider FILE to be infinitely new.
  --warn-undefined-variables  Warn when an undefined variable is referenced.
This program built for x86_64-pc-linux-gnu
Report bugs to <bug-make@gnu.org>
15:21:50
#make -auto auto-install dahdi
make: invalid option -- 'a'
make: invalid option -- 'u'
Usage: make [options] [target] ...
Options:
  -b, -m                      Ignored for compatibility.
  -B, --always-make           Unconditionally make all targets.
  -C DIRECTORY, --directory=DIRECTORY
                              Change to DIRECTORY before doing anything.
  -d                          Print lots of debugging information.
  --debug[=FLAGS]             Print various types of debugging information.
...
                              Turns off -k.
  -t, --touch                 Touch targets instead of remaking them.
  -v, --version               Print the version number of make and exit.
  -w, --print-directory       Print the current directory.
  --no-print-directory        Turn off -w, even if it was turned on implicitly.
  -W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE
                              Consider FILE to be infinitely new.
  --warn-undefined-variables  Warn when an undefined variable is referenced.
This program built for x86_64-pc-linux-gnu
Report bugs to <bug-make@gnu.org>
15:22:02
#make -auto auto-install dahdi
make: invalid option -- 'a'
make: invalid option -- 'u'
Usage: make [options] [target] ...
Options:
  -b, -m                      Ignored for compatibility.
  -B, --always-make           Unconditionally make all targets.
  -C DIRECTORY, --directory=DIRECTORY
                              Change to DIRECTORY before doing anything.
  -d                          Print lots of debugging information.
  --debug[=FLAGS]             Print various types of debugging information.
...
                              Turns off -k.
  -t, --touch                 Touch targets instead of remaking them.
  -v, --version               Print the version number of make and exit.
  -w, --print-directory       Print the current directory.
  --no-print-directory        Turn off -w, even if it was turned on implicitly.
  -W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE
                              Consider FILE to be infinitely new.
  --warn-undefined-variables  Warn when an undefined variable is referenced.
This program built for x86_64-pc-linux-gnu
Report bugs to <bug-make@gnu.org>
15:22:04
#make auto auto-install dahdi
make: *** No rule to make target `auto'.  Stop.
15:22:15
#make-auto auto-install dahdi
l3script: make-auto: command not found
15:22:25
#m-a a-i dahid
dahid, what is dahid?
15:22:42
#m-a a-i dahdi
  │                                                                         │
  │                                                                         │
  │                                                                         │
  │                                                                         │
  │                                100%                                     │
  │                                                                         │
  └─────────────────────────────────────────────────────────────────────────┘
Done with /usr/src/dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.51-1_amd64.deb .
dpkg -Ei /usr/src/dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.51-1_amd64.deb
Selecting previously unselected package dahdi-modules-3.2.0-4-amd64.
(Reading database ... 139479 files and directories currently installed.)
Unpacking dahdi-modules-3.2.0-4-amd64 (from .../dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.51-1_amd64.deb) ...
Setting up dahdi-modules-3.2.0-4-amd64 (1:2.6.1+dfsg2-1+3.2.51-1) ...
/dev/pts/1
15:23:38
#joe /etc/asterisk/sip.conf
                                                                      7
[3102]
register => ottawa:1234@192.168.15.8/montreal
type=friend
                                   254/quebec
secret=1234
                                   4/london
host=dynamic
                                   1/kiev
[montreal]
...
username=ottawa
[quebec]
type=friend
secret=1234
host=dynamic
username=ottawa
                                                                                        27
Name of file to save (^C to abort): /etc/asterisk/sip.conf
File /etc/asterisk/sip.conf saved
File /etc/asterisk/sip.conf not changed so no update needed
/dev/pts/5
15:24:18
#asterisk -r
Asterisk 1.8.13.1~dfsg-3, 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~dfsg-3 currently running on debian (pid = 2233)
Verbosity is at least 6
debian*CLI> show peers
...
    -- SIP/montreal-0000003e answered SIP/3101-0000003d
    -- Locally bridging SIP/3101-0000003d and SIP/montreal-0000003e
  == Spawn extension (default, 3202, 2) exited non-zero on 'SIP/3101-0000003d'
debian*CLI> sip reload
 Reloading SIP
  == Parsing '/etc/asterisk/sip.conf':   == Found
  == Parsing '/etc/asterisk/users.conf':   == Found
  == Using SIP CoS mark 4
  == Parsing '/etc/asterisk/sip_notify.conf':   == Found
debian*CLI> exit
прошло 29 минут
/dev/pts/3
15:53:40
#exten => _1XXX,1,Answer
                                          27               4
          1XXX,1,Answer
exten => _1XXX,n,Dial(SIP/kiev/${EXTEN})
;exten => _33XX,1,Dial(SIP/3101)
;exten => _33XX,1,Dial(SIP/3101)
;exten => _3301,1,Dial(SIP/31${EXTEN:2})
                ${EXTEN:2})               6        28      6
exten => 3102,1,Dial(SIP/3102)
exten => _32XX,1,Answer
exten => _32XX,n,Dial(SIP/montreal/${EXTEN})
...
;exten => _3301,1,Dial(SIP/31${EXTEN:2})
;exten => _33XX,1,Dial(SIP/3101)
^KDial(SIP/kiev/${EXTEN})                 22       1       8
[local]
exten => 8101,1,MeetMe(101)
exten => 8101,1,MeetMe(101)
             01              ${EXTEN:2})
;exten => _33XX,1,Dial(SIP/3101)
             01              ${EXTEN:2})
File /etc/asterisk/extensions.conf saved
/dev/pts/5
15:55:27
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/3
15:58:14
#apt
apt-cache                     aptitude-create-state-bundle
apt-cdrom                     aptitude-curses
apt-config                    aptitude-run-state-bundle
apt-extracttemplates          apt-key
apt-ftparchive                apt-mark
apt-get                       apt-sortpkgs
aptitude
15:58:14
#apt-cache search meetmme

/dev/pts/5
15:58:19
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/3
15:59:07
#apt-cache search meetme
asterisk-dahdi - DAHDI devices support for the Asterisk PBX
прошло 23 минуты
/dev/pts/5
16:22:39
#apt-get install mpg123
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libmpg123-0
Suggested packages:
  alsa-utils jackd nas oss-compat oss4-base
The following NEW packages will be installed:
  libmpg123-0 mpg123
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
...
(Reading database ... 139533 files and directories currently installed.)
Unpacking libmpg123-0:amd64 (from .../libmpg123-0_1.14.4-1_amd64.deb) ...
Selecting previously unselected package mpg123.
Unpacking mpg123 (from .../mpg123_1.14.4-1_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for mime-support ...
Setting up libmpg123-0:amd64 (1.14.4-1) ...
Setting up mpg123 (1.14.4-1) ...
update-alternatives: using /usr/bin/mpg123.bin to provide /usr/bin/mpg123 (mpg123) in auto mode
update-alternatives: using /usr/bin/mpg123.bin to provide /usr/bin/mp3-decoder (mp3-decoder) in auto mode
/dev/pts/3
16:22:48
#locate smoke
/home/alex/Downloads/deep_purple_-_smoke_on_the_water_(zaycev.net).mp3
/dev/pts/5
16:23:04
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3, 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~dfsg-3 currently running on debian (pid = 9131)
...
    -- Executing [3201@vip:2] Dial("SIP/3103-0000000e", "SIP/montreal/3201") in new stack
  == Using SIP RTP CoS mark 5
    -- Called SIP/montreal/3201
[Nov 19 18:17:38] NOTICE[11500]: channel.c:4170 __ast_read: Dropping incompatible voice frame on SIP/3103-0000000e of format ulaw since our native format has changed to 0x80002 (gsm|h263)
    -- SIP/montreal-0000000f answered SIP/3103-0000000e
    -- Locally bridging SIP/3103-0000000e and SIP/montreal-0000000f
  == Spawn extension (vip, 3201, 2) exited non-zero on 'SIP/3103-0000000e'
debian*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/3
16:23:12
#cd /home/alex/D
Desktop/   Documents/ Downloads/
16:23:12
#cd /home/alex/Downloads/

16:23:20
#ll
l3script: ll: command not found
16:23:21
#ls
deep_purple_-_smoke_on_the_water_(zaycev.net).mp3
16:24:37
#cd /tmp/

16:24:45
#ls
deep.wav              orbit-alex          ssh-W1UYuHWx1JV5
gnash-cookies.sWJ4cT  pulse-8kzw78VsTjyE  tracker-alex
gnash-cookies.woLayV  pulse-NcuoQX17GXPD
16:25:02
#cd /tmp/
                   play deep.wav
play WARN alsa: can't encode 0-bit Unknown or not applicable
deep.wav:
 File Size: 66.1M     Bit Rate: 1.41M
  Encoding: Signed PCM
  Channels: 2 @ 16-bit
Samplerate: 44100Hz
Replaygain: off
  Duration: 00:06:14.62
In:3.92% 00:00:14.68 [00:05:59.95] Out:647k  [ -====|===-  ] Hd:4.3 Clip:0
Aborted.
16:25:30
#sox -t wav deep.wav -r8000 -cl -t gsm deep.wav
sox FAIL sox: Channels value `l' is not a positive integer
16:26:39
#sox -t wav deep.wav -r8000 -c -t gsm deep.wav
sox FAIL sox: Channels value `-t' is not a positive integer
16:26:46
#sox -t wav deep.wav -r8000 -1 -t gsm deep.wav
sox WARN sox: Option `-1' is deprecated, use `-b 8' instead.
sox WARN formats: gsm can't encode to 8-bit
sox WARN wav: Premature EOF on .wav input file
16:26:49
#ls
deep.wav              orbit-alex          ssh-W1UYuHWx1JV5
gnash-cookies.sWJ4cT  pulse-8kzw78VsTjyE  tracker-alex
gnash-cookies.woLayV  pulse-NcuoQX17GXPD
16:26:52
#sox -t wav deep.wav -r8000 -c1 -t gsm deep.wav
sox FAIL formats: can't open input file `deep.wav': WAVE: RIFF header not found
16:27:04
#sox -t wav /tmp/deep.wav -r8000 -c1 -t gsm deep.wav
sox FAIL formats: can't open input file `/tmp/deep.wav': WAVE: RIFF header not found
16:27:16
#sox -t wav /tmp/deep.wav -r8000 -c1 -t gsm deep.wav
sox FAIL formats: can't open input file `/tmp/deep.wav': WAVE: RIFF header not found
16:28:04
#play deep_purple_-_smoke_on_the_water_\(zaycev.net\).mp3
play WARN alsa: can't encode 0-bit Unknown or not applicable
play FAIL formats: can't open input file `deep_purple_-_smoke_on_the_water_(zaycev.net).mp3': No such file or directory
16:29:57
#file /tmp/deep.wav
/tmp/deep.wav: empty
16:30:16
#ls -l /tmp/deep.wav
-rw-r--r-- 1 root root 0 Nov 19 17:26 /tmp/deep.wav
16:30:21
#rm /tmp/deep.wav

16:30:30
#rm /tmp/deep.wav
\(zaycev.net\).mp3 mpg123 /home/alex/Downloads/deep_purple_-_smoke_on_the_water_\
16:30:53
#rm /tmp/deep.wav
                   sox -t wav /tmp/deep.wav -r8000 -c1 -t gsm deep.wav
sox WARN wav: Premature EOF on .wav input file
16:31:15
#play deep.gsm
play WARN alsa: can't encode 0-bit Unknown or not applicable
deep.gsm:
 File Size: 618k
  Encoding: GSM
  Channels: 1 @ 16-bit
Samplerate: 8000Hz
Replaygain: off
  Duration: unknown
In:0.00% 00:00:32.77 [00:00:00.00] Out:262k  [======|======] Hd:1.5 Clip:0
Aborted.
16:31:53
#top
top - 17:31:55 up  7:12,  5 users,  load average: 0.02, 0.08, 0.11
Tasks: 165 total,   1 running, 164 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.2 us,  0.0 sy,  0.0 ni, 99.7 id,  0.1 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem:  16357056 total,  1505660 used, 14851396 free,   122724 buffers
KiB Swap: 16662524 total,        0 used, 16662524 free,   836232 cached
  PID USER      PR  NI  VIRT  RES  SHR S  %CPU %MEM    TIME+  COMMAND
 3278 alex      20   0  372m  20m  10m S   6.4  0.1   0:18.96 gnome-terminal
 9637 root      20   0     0    0    0 S   6.4  0.0   0:00.15 kworker/0:2
    1 root      20   0 10644  820  688 S   0.0  0.0   0:01.64 init
    2 root      20   0     0    0    0 S   0.0  0.0   0:00.00 kthreadd
...
   16 root      rt   0     0    0    0 S   0.0  0.0   0:00.04 watchdog/2
   17 root      rt   0     0    0    0 S   0.0  0.0   0:00.05 migration/3
   19 root      20   0     0    0    0 S   0.0  0.0   0:00.08 ksoftirqd/3
top - 17:31:58 up  7:12,  5 users,  load average: 0.02, 0.08, 0.11
Tasks: 165 total,   1 running, 164 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.0 us,  0.0 sy,  0.0 ni, 99.5 id,  0.4 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem:  16357056 total,  1504428 used, 14852628 free,   122728 buffers
KiB Swap: 16662524 total,        0 used, 16662524 free,   834156 cached
 2775 root      20   0  142m  14m 5308 S   0.3  0.1   0:46.22 Xorg
 3163 alex      20   0  965m 114m  27m S   0.3  0.7   0:39.46 gnome-shell
16:32:00
#ls /var/lib/as
aspell/   asterisk/
16:32:00
#ls /var/lib/asterisk/moh/

16:32:51
#ls /var/lib/asterisk/moh/

16:32:52
#cp deep.gsm /var/lib/asterisk/moh/deep.gsm

16:33:18
#joe /etc/asterisk/musiconhold.conf
  This plays files directly from the specified directory, no external
; NOTE:
  /var/lib/asterisk.
 [If you are not using "autoload" in modules.conf, then you
 mmust ensure that the format modules for any formats you wish
 dto use are loaded _before_ res_musiconhold. If you do not do
[dthis, res_musiconhold will skip the files it is not able to  callers are
mounderstand when it loads.
di              ; they will switch to listening to this music class.
 sort=random    ; Sort the files in random order
;[native-alphabetical]
;mode=files
;directory=moh
                                           7       29
[default]
mode=files
directory=moh
          /var/lib/asterisk/moh
File /etc/asterisk/musiconhold.conf saved
16:39:27
#joe /etc/asterisk/extensions.conf
Processing '/etc/joe/joerc'...Processing '/etc/joe/ftyperc'...done
done
exten => _2XXX,n,Dial(SIP/london/${EXTEN})
exten => _33XX,1,Answer    01,3,m)
exten => 3102,1,Dial(SIP/31
               n,Dial(SIP/quebec/${EXTEN})
               1,Answer
exten => _1XXX,n,Dial(SIP/kiev/${EXTEN})
exten => _2XXX,1,Answer
               n,Dial(SIP/london/${EXTEN})
exten => _1XXX,1,Answer
               n,Dial(SIP/kiev/${EXTEN})
File /etc/asterisk/extensions.conf saved
16:41:27
#joe /etc/asterisk/extensions.conf
exten => _33XX,1,Answer
 xten => 3101,1,Dial(SIP/3101)
exten => _33XX,n,Dial(SIP/quebec/${EXTEN})
exten => _2XXX,1,Answer
exten => _2XXX,n,Dial(SIP/london/${EXTEN})
exten => _1XXX,1,Answer
exten => _1XXX,n,Dial(SIP/kiev/${EXTEN})
File /etc/asterisk/extensions.conf saved
16:41:46
#joe /etc/asterisk/extensions.conf
;exten => _33XX,1,Dial(SIP/3101)          8
exten => _2XXX,n,Dial(SIP/london/${EXTEN})
exten => 31xx,1,Dial(SIP/${EXTEN},m):2})
               1,Answer
               1,Answer
exten => _1XXX,n,Dial(SIP/kiev/${EXTEN})
exten => _32XX,n,Dial(SIP/montreal/${EXTEN})
               1,Answer
exten => 8101,1,MeetMe(101)
exten => _33XX,n,Dial(SIP/quebec/${EXTEN})
...
            1               1
File /etc/asterisk/extensions.conf saved
[national3102,1,Dial(SIP/3102)
exten => _31xx,1,Dial(SIP/${EXTEN},2)
[national]
               1,Answer
exten => _32XX,n,Dial(SIP/montreal/${EXTEN})
[international]1,Answer
exten => _33XX,n,Dial(SIP/quebec/${EXTEN})
[international]
прошло 46 минут
/dev/pts/1
17:28:37
#b
badblocks             biosdecode            bluez-test-service    bsd-write
baobab                blkid                 bluez-test-telephony  builtin
base64                blockdev              bmptopnm              bunzip2
basename              bluetooth-agent       bmptoppm              busybox
bash                  bluetooth-applet      bogofilter            bzcat
bashbug               bluetoothd            bogofilter-bdb        bzcmp
bccmd                 bluetooth-sendto      bogolexer             bzdiff
bdftopcf              bluetooth-wizard      bogolexer-bdb         bzegrep
bdftruncate           bluez-simple-agent    bogotune              bzexe
bf_compact            bluez-simple-service  bogotune-bdb          bzfgrep
bf_compact-bdb        bluez-test-adapter    bogoupgrade           bzgrep
bf_copy               bluez-test-audio      bogoupgrade-bdb       bzip2
bf_copy-bdb           bluez-test-device     bogoutil              bzip2recover
bf_tar                bluez-test-discovery  bogoutil-bdb          bzless
bf_tar-bdb            bluez-test-input      brasero               bzmore
bg                    bluez-test-manager    break
bind                  bluez-test-network    brushtopbm
bioradtopgm           bluez-test-serial     bsd-from
17:28:37
#b
badblocks             biosdecode            bluez-test-service    bsd-write
baobab                blkid                 bluez-test-telephony  builtin
base64                blockdev              bmptopnm              bunzip2
basename              bluetooth-agent       bmptoppm              busybox
bash                  bluetooth-applet      bogofilter            bzcat
bashbug               bluetoothd            bogofilter-bdb        bzcmp
bccmd                 bluetooth-sendto      bogolexer             bzdiff
bdftopcf              bluetooth-wizard      bogolexer-bdb         bzegrep
bdftruncate           bluez-simple-agent    bogotune              bzexe
bf_compact            bluez-simple-service  bogotune-bdb          bzfgrep
bf_compact-bdb        bluez-test-adapter    bogoupgrade           bzgrep
bf_copy               bluez-test-audio      bogoupgrade-bdb       bzip2
bf_copy-bdb           bluez-test-device     bogoutil              bzip2recover
bf_tar                bluez-test-discovery  bogoutil-bdb          bzless
bf_tar-bdb            bluez-test-input      brasero               bzmore
bg                    bluez-test-manager    break
bind                  bluez-test-network    brushtopbm
bioradtopgm           bluez-test-serial     bsd-from
17:28:37
#bdft
bdftopcf     bdftruncate
17:28:37
#dpkg -L asterisk-modules | sort | less
17:29:29
#dpkg -L asterisk-modules | sort | less
17:30:58
#apt-get cache
E: Invalid operation cache
17:31:15
#apt-get cache
E: Invalid operation cache
17:31:18
#apt-get cache asterisk
E: Invalid operation cache
17:31:23
#apt-get cache asterisk
E: Invalid operation cache
17:31:26
#apt-cache search asterisk
asterisk - Open Source Private Branch Exchange (PBX)
asterisk-config - Configuration files for Asterisk
asterisk-dahdi - DAHDI devices support for the Asterisk PBX
asterisk-dbg - Debugging symbols for Asterisk
asterisk-dev - Development files for Asterisk
asterisk-doc - Source code documentation for Asterisk
asterisk-mobile - Bluetooth phone support for the Asterisk PBX
asterisk-modules - loadable modules for the Asterisk PBX
asterisk-mp3 - MP3 playback support for the Asterisk PBX
asterisk-mysql - MySQL database protocol support for the Asterisk PBX
...
op-panel - switchboard type application for the Asterisk PBX
libopenr2-3 - MFC/R2 (telephony) call setup library
python-asterisk - Asterisk Manager API interface module for Python
libsipwitch-dev - secure peer-to-peer SIP VoIP server - development files
libsipwitch1 - secure peer-to-peer SIP VoIP server - development files
libsipwitch1-dbg - secure peer-to-peer SIP VoIP server - development files
sipwitch - secure peer-to-peer VoIP server for the SIP protocol
sipwitch-cgi - secure peer-to-peer SIP VoIP server - CGI XML-RPC interface
python-starpy - Asterisk (AMI) protocols for Twisted Python
dahdi-modules-3.2.0-4-amd64 - DAHDI modules for Linux (kernel 3.2.0-4-amd64)
17:31:58
#apt-get install asterisk-core-sounds-ru
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  asterisk-core-sounds-ru-gsm
The following NEW packages will be installed:
  asterisk-core-sounds-ru asterisk-core-sounds-ru-gsm
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,078 kB of archives.
After this operation, 2,263 kB of additional disk space will be used.
...
Fetched 2,078 kB in 0s (33.2 MB/s)
Selecting previously unselected package asterisk-core-sounds-ru-gsm.
(Reading database ... 139574 files and directories currently installed.)
Unpacking asterisk-core-sounds-ru-gsm (from .../asterisk-core-sounds-ru-gsm_1.4.22-1_all.deb) ...
Selecting previously unselected package asterisk-core-sounds-ru.
Unpacking asterisk-core-sounds-ru (from .../asterisk-core-sounds-ru_1.4.22-1_all.deb) ...
Setting up asterisk-core-sounds-ru-gsm (1.4.22-1) ...
Setting up asterisk-core-sounds-ru (1.4.22-1) ...
update-alternatives: using /usr/share/asterisk/sounds/ru_RU_f_IvrvoiceRU to provide /usr/share/asterisk/sounds/ru (asterisk-prompt-ru) in auto mode
update-alternatives: using /usr/share/asterisk/sounds/ru_RU_f_IvrvoiceRU to provide /usr/share/asterisk/sounds/ru_RU (asterisk-prompt-ru-ru) in auto mode
/dev/pts/5
17:32:46
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
прошло 37 минут
18:10:16
#mkdir /var/tmp/asterisk/records
mkdir: cannot create directory `/var/tmp/asterisk/records': No such file or directory
18:10:42
#mkdir /var/tmp/asterisk/

18:10:45
#mkdir /var/tmp/asterisk/records

/dev/pts/3
18:12:18
#joe /etc/asterisk/extensions.conf
    I    /etc/asterisk/extensions.conf  Row 8    Col 1    7:12  Ctrl-K H for help
exten => _80XX,2,Record(/var/tmp/asterisk/records/record${EXTEN:2}:gsm)       |
exten => _80XX,3,Playback(/var/tmp/asterisk/records/record${EXTEN:2})
[local]
exten => 3101,1,Dial(SIP/3101)
[local]
exten => 3101,1,Dial(SIP/3101)
exten => 3102,1,Dial(SIP/3102)
exten => _31xx,1,Dial(SIP/${EXTEN},2)
[national]
...
               n,Dial(SIP/montreal/${EXTEN})
File /etc/asterisk/extensions.conf saved
File /etc/asterisk/extensions.conf not changed so no update needed
exten => _33XX,1,Answer
               1,Answer
               n,Dial(SIP/quebec/${EXTEN})
exten => _33XX,n,Dial(SIP/quebec/${EXTEN})
[international]
[international]
exten => _2XXX,1,Answer
/dev/pts/1
18:17:20
#;;
l3script: syntax error near unexpected token `;;'
18:17:22
#ll
l3script: ll: command not found
18:17:23
#ls

18:17:24
#cd ..

18:17:26
#ls
records
18:17:27
#cd ..

18:17:46
#ll
l3script: ll: command not found
18:17:46
#ls
asterisk

Статистика

Время первой команды журнала16:32:28 2013-11-18
Время последней команды журнала18:17:46 2013-11-19
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, %18.81
Процент синтаксически неверно набранных команд, % 7.92
Суммарное время работы с терминалом *, час 2.60
Количество командных строк в единицу времени, команда/мин 0.65
Частота использования команд
joe13|============| 12.38%
asterisk12|===========| 11.43%
ls11|==========| 10.48%
cd8|=======| 7.62%
apt-get6|=====| 5.71%
sox6|=====| 5.71%
make4|===| 3.81%
ll4|===| 3.81%
mkdir3|==| 2.86%
/etc/init.d/asterisk3|==| 2.86%
rm3|==| 2.86%
apt-cache3|==| 2.86%
dpkg2|=| 1.90%
m-a2|=| 1.90%
sort2|=| 1.90%
play2|=| 1.90%
nano2|=| 1.90%
l3-agent2|=| 1.90%
b2|=| 1.90%
less2|=| 1.90%
ifconfig1|| 0.95%
bdft1|| 0.95%
cp1|| 0.95%
make-auto1|| 0.95%
halt1|| 0.95%
top1|| 0.95%
[general]nd1|| 0.95%
locate1|| 0.95%
ma1|| 0.95%
apt1|| 0.95%
file1|| 0.95%
exten1|| 0.95%
_1XXX,1,Answer1|| 0.95%
____
*) Интервалы неактивности длительностью 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$