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

Содержание

Журнал

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

/dev/pts/6
14:43:03
#sterisk -rvvv
language=ru
[1201]
[1201]
[1202]
type=friend
secret=1234
pickupgroup=1
[1202]ynamic
[1202]
context=gr1
...
context=gr4
type=friend
host=dynamic
~
~
~
~
~
~
"/etc/asterisk/sip.conf" 32L, 398C written
14:44:28
#vi /etc/asterisk/sip.conf
--- /tmp/l3-saved-13021.13608.6739	2014-11-26 15:44:59.313910535 +0200
+++ /etc/asterisk/sip.conf	2014-11-26 15:45:48.789911122 +0200
@@ -10,6 +10,7 @@
 context=gr1
 mailbox=1201@default
 language=ru
+callgroup=1
 pickupgroup=1
 
 [1202]
@@ -19,6 +20,7 @@
 context=gr1
 language=de
 mailbox=1202@default
+callgroup=1
 pickupgroup=1
 
 
14:45:48
#vi /etc/asterisk/features.conf
--- /tmp/l3-saved-13021.6781.14618	2014-11-26 15:46:10.565911384 +0200
+++ /etc/asterisk/features.conf	2014-11-26 15:48:24.597912965 +0200
@@ -80,7 +80,7 @@
                                 ; (default is 3 seconds)
 ;xfersound = beep               ; to indicate an attended transfer is complete
 ;xferfailsound = beeperr        ; to indicate a failed transfer
-;pickupexten = *8               ; Configure the pickup extension. (default is *8)
+pickupexten = *8               ; Configure the pickup extension. (default is *8)
 ;pickupsound = beep             ; to indicate a successful pickup (default: no sound)
 ;pickupfailsound = beeperr      ; to indicate that the pickup failed (default: no sound)
 ;featuredigittimeout = 1000     ; Max time (ms) between digits for
14:55:16
#vi /etc/asterisk/sip.conf
14:56:17
#include=>international
[ был]пробел после подчёркивания
[       ]
[xten => ]83XX,1,VoiceMailMain(12${EXTEN:2}@default)
[        ]
exten => _801X,1,MeetMe(10${EXTEN:3})
Y-%m-%d-%H:%M:%S")})
exten => _12XX,n,Monitor(wav,${CALLFILENAME},m)
exten => _12XX,n,Dial(SIP/${EXTEN},5)
exten => _12XX,n,VoiceMail(${EXTEN}@default)
exten => _1291,1,NoOp(Conferences for external users)
exten => _1291,n,MeetMe(10${EXTEN:3})
[national]risk/extensions.conf" 55L, 1207C
exten=> _11XX,1,Dial(SIP/kiev/${EXTEN})
exten => _12XX,1,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${STRFTIME(${EPOCH},Europe/Kiev,"%%
[international]
exten=> _[123][123]XX,1,Dial(SIP/kiev/${EXTEN})
[gr1]
include=>internal
include=>local
include=>national
include=>international                                                      15,0-1        Top
14:58:26
#[local]
include=>national
include=>international
[gr2]
include=>internal
include=>local
include=>national
[gr3]
include=>internal
include=>local
[gr4]
include => internal
include => local
include => national
include => international
14:58:43
#~
[       ]
[xten => ]83XX,1,VoiceMailMain(12${EXTEN:2}@default)
[        ]
exten => _801X,1,MeetMe(10${EXTEN:3})
Y-%m-%d-%H:%M:%S")})
exten => _12XX,n,Monitor(wav,${CALLFILENAME},m)
exten => _12XX,n,Dial(SIP/${EXTEN},5)
[local]> _12XX,n,VoiceMail(${EXTEN}@default)
[local]
exten => _1291,1,NoOp(Conferences for external users)
exten => _1291,n,MeetMe(10${EXTEN:3})
[national]risk/extensions.conf" 55L, 1207C
exten=> _11XX,1,Dial(SIP/kiev/${EXTEN})
exten => _12XX,1,Setl(ALLF${EXTEN},30)
[international]
exten=> _[123][123]XX,1,Dial(SIP/kiev/${EXTEN})
[gr1]
include=>internal
include=>local
include=>national
"/etc/asterisk/extensions.conf" 55L, 1208C written
/dev/pts/4
15:01:34
#less /etc/asterisk/extensions.conf
15:01:50
#vim /etc/asterisk/extensions.conf
15:02:09
#include=>international
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 debian2 (pid = 22881)
...
    -- <SIP/1201-000000b6> Playing 'digits/5.gsm' (language 'ru')
    -- Executing [3@menu:5] Playback("SIP/1201-000000b6", "/var/tmp/asterisk/record10") in new stack
    -- <SIP/1201-000000b6> Playing '/var/tmp/asterisk/record10.gsm' (language 'ru')
    -- Auto fallthrough, channel 'SIP/1201-000000b6' status is 'UNKNOWN'
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
debian2*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/6
15:08:00
#vi /etc/asterisk/features.conf
прошло 11 минут
15:19:48
#vi /etc/asterisk/features.conf
15:20:55
#;comebacktoorigin = yes ; Setting this option configures the behavior of call parking
;
; (Note: Leading '0's and any non-numerical characters on parkpos extensions
;  will be ignored.  Parkext on the other hand can be any string.)
;
;[parkinglot_edvina]
;context => edvinapark
;parkext => 799
;parkpos => 800-850
;findslot => next
; Note that the DTMF features listed below only work when two channels have answered and are bb
...
or k option in the Dial() app call!ark call (one step parking)  -- Make sure to set the K and//
 the X and/or x option in the Dial() or Queue() app call! Touch MixMonitor -- Make sure to sett
[applicationmap]
; Note that the DYNAMIC_FEATURES channel variable must be set to use the features
; defined here.  The value of DYNAMIC_FEATURES should be the names of the features
; to allow the channel to use separated by '#'.  For example:               128,0-1       61%
;
;    Set(__DYNAMIC_FEATURES=myfeature1#myfeature2#myfeature3)
;
; (Note: The two leading underscores allow these feature settings to be set on
15:22:03
#[ ]
;
; Sample Call Features (parking, transfer, etc) configuration
;
[general]
;
; Sample Call Features (parking, transfer, etc) configuration
;
                                ; will only access this parking lot. (default is no)
[general]
parkpos => 701-720              ; These need to be numeric, as Asterisk starts from the start position
...
; defined here.  The value of DYNAMIC_FEATURES should be the names of the features
; to allow the channel to use separated by '#'.  For example:#) -- Make sure to set the T and/or t option in the Dial() or Queue() app caa
;
"/etc/asterisk/features.conf" 202L, 13690C written
;    Set(__DYNAMIC_FEATURES=myfeature1#myfeature2#myfeature3)
;
; (Note: The two leading underscores allow these feature settings to be set on
;  on the outbound channels, as well.  Otherwise, only the original channel
;  will have access to these features.)
;
15:27:08
#vi /etc/asterisk/features.conf
15:35:03
#vi /etc/asterisk/extensions.conf
15:39:00
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-13021.18755.7208	2014-11-26 16:39:03.297948932 +0200
+++ /etc/asterisk/extensions.conf	2014-11-26 16:39:45.441949434 +0200
@@ -24,7 +24,7 @@
 
 exten => _12XX,1,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${STRFTIME(${EPOCH},Europe/Kiev,"%Y-%m-%d-%H:%M:%S")})
 exten => _12XX,n,Monitor(wav,${CALLFILENAME},m)
-exten => _12XX,n,Dial(SIP/${EXTEN},30,tT)
+exten => _12XX,n,Dial(SIP/${EXTEN},30,tTkK)
 exten => _12XX,n,VoiceMail(${EXTEN}@default)
 
 
15:43:30
#vi /etc/asterisk/extensions.conf
прошло 14 минут
15:58:12
#vi /etc/asterisk/extensions.conf
16:00:14
#recording
^[[B^[[B^[[B^[[B
quit
^[^[exit
^[quit
^C
16:06:11
#ls /tmp/
music.gsm  orbit-user          pulse-z41qPVTxaHtG   someone-called-8301  tracker-user
music.wav  pulse-c82mH4n1Tooo  someone-called-8300  ssh-PYMiyoHJvHiw
16:06:23
#ls /tmp/someone-called-8301
/tmp/someone-called-8301
16:10:36
#{EXTEN})

16:18:48
#ps aux | grep send
root     10572  0.0  0.0  74624  2968 ?        Ss   Nov25   0:02 sendmail: MTA: accepting connections
root     25082  0.0  0.0   7840   868 pts/7    S+   17:18   0:00 grep send
16:18:58
#ps aux | grep send
root     25146  0.0  0.0  74616  2540 ?        Ss   17:19   0:00 sendmail: MTA: accepting connections
root     25159  0.0  0.0   7836   872 pts/7    S+   17:19   0:00 grep send

Четверг (11/27/14)

08:36:04
#[ ]
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  alsa-base alsa-utils esound-common festlex-cmu festlex-poslex festvox-kallpc16k libaudiofile1 libesd0
  libestools2.1
Suggested packages:
  alsa-oss oss-compat pidgin-festival festival-freebsoft-utils pulseaudio-esound-compat
The following NEW packages will be installed:
  alsa-base alsa-utils esound-common festival festlex-cmu festlex-poslex festvox-kallpc16k libaudiofile1
...
Setting up libaudiofile1:amd64 (0.3.4-2) ...
Setting up esound-common (0.2.41-10) ...
Setting up libesd0:amd64 (0.2.41-10+b1) ...
Setting up libestools2.1:amd64 (1:2.1~release-5) ...
Setting up alsa-utils (1.0.25-4) ...
Setting up festival (1:2.1~release-5.1) ...
Processing triggers for sgml-base ...
Setting up festlex-cmu (1.4.0-6) ...
Setting up festlex-poslex (1.4.0-5) ...
Setting up festvox-kallpc16k (1.4.0-5) ...
прошло 10 минут
08:46:53
#apt-get install festival festvox-ru
Reading package lists... Done
Building dependency tree
Reading state information... Done
festival is already the newest version.
The following NEW packages will be installed:
  festvox-ru
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 196 MB of archives.
After this operation, 247 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://192.168.12.254/debian/ wheezy/main festvox-ru all 0.5-5 [196 MB]
Fetched 196 MB in 1min 29s (2,175 kB/s)
Selecting previously unselected package festvox-ru.
(Reading database ... 142702 files and directories currently installed.)
Unpacking festvox-ru (from .../festvox-ru_0.5-5_all.deb) ...
Setting up festvox-ru (0.5-5) ...
08:49:33
#cat /var/tmp/hello-en.txt
cat: /var/tmp/hello-en.txt: No such file or directory
08:52:21
#vi /var/tmp/hello-en.txt
09:01:24
#cpall /var/tmp/burunduki.txt /var/tmp/
bash: cpall: command not found
09:02:04
#cat /var/tmp/text-en.txt | text2wave > /tmp/text-en.wav
cat: /var/tmp/text-en.txt: No such file or directory
09:02:55
#play /tmp/text-en.wav
play WARN alsa: can't encode 0-bit Unknown or not applicable
/tmp/text-en.wav:
 File Size: 44
  Encoding: Signed PCM
  Channels: 1 @ 16-bit
Samplerate: 16000Hz
Replaygain: off
  Duration: unknown
In:0.00% 00:00:00.00 [00:00:00.00] Out:0     [      |      ]        Clip:0
Done.
09:03:17
#cat /var/tmp/text-ru.txt | text2wave -eval '(voice_msu_ru_nsh_clunits)' > /tmp/text-ru.wav
cat: /var/tmp/text-ru.txt: No such file or directory
09:04:02
#play /tmp/
.ICE-unix/           orbit-user/          pulse-z41qPVTxaHtG/  ssh-PYMiyoHJvHiw/    tracker-user/
music.gsm            plugtmp/             someone-called-8300  text-en.wav          .X0-lock
music.wav            pulse-c82mH4n1Tooo/  someone-called-8301  text-ru.wav          .X11-unix/
09:04:02
#play /tmp/
.ICE-unix/           orbit-user/          pulse-z41qPVTxaHtG/  ssh-PYMiyoHJvHiw/    tracker-user/
music.gsm            plugtmp/             someone-called-8300  text-en.wav          .X0-lock
music.wav            pulse-c82mH4n1Tooo/  someone-called-8301  text-ru.wav          .X11-unix/
09:04:02
#play /tmp/text-ru
play WARN alsa: can't encode 0-bit Unknown or not applicable
play FAIL formats: can't open input file `/tmp/text-ru': No such file or directory
09:04:37
#play /tmp/text-ru.wav
play WARN alsa: can't encode 0-bit Unknown or not applicable
/tmp/text-ru.wav:
 File Size: 44
  Encoding: Signed PCM
  Channels: 1 @ 16-bit
Samplerate: 16000Hz
Replaygain: off
  Duration: unknown
In:0.00% 00:00:00.00 [00:00:00.00] Out:0     [      |      ]        Clip:0
Done.
09:05:45
#play /tmp/hello-en.wav
play WARN alsa: can't encode 0-bit Unknown or not applicable
/tmp/hello-en.wav:
 File Size: 427k      Bit Rate: 256k
  Encoding: Signed PCM
  Channels: 1 @ 16-bit
Samplerate: 16000Hz
Replaygain: off
  Duration: 00:00:13.34
In:100%  00:00:13.34 [00:00:00.00] Out:213k  [      |      ] Hd:1.1 Clip:0
Done.
09:06:22
#play /tmp/hello-en.wav
play WARN alsa: can't encode 0-bit Unknown or not applicable
/tmp/hello-en.wav:
 File Size: 427k      Bit Rate: 256k
  Encoding: Signed PCM
  Channels: 1 @ 16-bit
Samplerate: 16000Hz
Replaygain: off
  Duration: 00:00:13.34
In:100%  00:00:13.34 [00:00:00.00] Out:213k  [      |      ] Hd:1.1 Clip:0
Done.
09:07:03
#play /tmp/hello-en.wav
play WARN alsa: can't encode 0-bit Unknown or not applicable
/tmp/hello-en.wav:
 File Size: 427k      Bit Rate: 256k
  Encoding: Signed PCM
  Channels: 1 @ 16-bit
Samplerate: 16000Hz
Replaygain: off
  Duration: 00:00:13.34
In:100%  00:00:13.34 [00:00:00.00] Out:213k  [      |      ] Hd:1.1 Clip:0
Done.
09:07:38
#play /tmp/hello-en.wav
play WARN alsa: can't encode 0-bit Unknown or not applicable
/tmp/hello-en.wav:
 File Size: 427k      Bit Rate: 256k
  Encoding: Signed PCM
  Channels: 1 @ 16-bit
Samplerate: 16000Hz
Replaygain: off
  Duration: 00:00:13.34
In:100%  00:00:13.34 [00:00:00.00] Out:213k  [      |      ] Hd:1.1 Clip:0
Done.
09:08:00
#apt-get install libasterisk-agi-perl
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  libasterisk-agi-perl
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 42.2 kB of archives.
After this operation, 160 kB of additional disk space will be used.
Get:1 http://192.168.12.254/debian/ wheezy/main libasterisk-agi-perl all 1.01-2 [42.2 kB]
Fetched 42.2 kB in 0s (2,554 kB/s)
Selecting previously unselected package libasterisk-agi-perl.
(Reading database ... 144668 files and directories currently installed.)
Unpacking libasterisk-agi-perl (from .../libasterisk-agi-perl_1.01-2_all.deb) ...
Processing triggers for man-db ...
Setting up libasterisk-agi-perl (1.01-2) ...
09:10:47
#mkdir /var/lib/asterisk/sounds/tts

09:18:40
#chown asterisk:asterisk /var lib/asterisk/sounds/tts
chown: cannot access `lib/asterisk/sounds/tts': No such file or directory
прошло 17 минут
09:35:56
#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 debian2 (pid = 22881)
...
  == Using SIP RTP CoS mark 5
    -- Executing [8404@gr1:1] AGI("SIP/1201-000000a7", "/usr/local/bin/asterisk-festival.pl,/var/tmp/burunduki.txt") in new stack
    -- Launched AGI Script /usr/local/bin/asterisk-festival.pl
    -- AGI Script Executing Application: (Playback) Options: (/var/lib/asterisk/sounds/tts/tts-7726ca6e8145e83a1ac38cadb9e05613)
    -- <SIP/1201-000000a7> Playing '/var/lib/asterisk/sounds/tts/tts-7726ca6e8145e83a1ac38cadb9e05613.slin' (language 'ru')
    -- <SIP/1201-000000a7>AGI Script /usr/local/bin/asterisk-festival.pl completed, returning 4
  == Spawn extension (gr1, 8404, 1) exited non-zero on 'SIP/1201-000000a7'
debian2*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
09:37:59
#cd /tmp/

прошло 25 минут
10:03:09
#ls -la
total 35272
drwxrwxrwt 10 root       root           4096 Nov 27 11:00 .
drwxr-xr-x 23 root       root           4096 Nov 23 12:15 ..
-rw-r--r--  1 root       root         426936 Nov 27 10:05 hello-en.wav
drwxrwxrwt  2 root       root           4096 Nov 25 09:25 .ICE-unix
-rw-r--r--  1 root       root         330165 Nov 26 13:38 music.gsm
-rw-r--r--  1 root       root       35297324 Nov 26 13:38 music.wav
drwx------  2 user       user           4096 Jan  1  1970 orbit-user
drwx------  2 user       user           4096 Nov 27 09:57 plugtmp
drwx------  2 user       user           4096 Nov 25 09:25 pulse-c82mH4n1Tooo
drwx------  2 Debian-gdm Debian-gdm     4096 Nov 25 09:25 pulse-z41qPVTxaHtG
-rw-rw----  1 asterisk   asterisk          0 Nov 26 17:06 someone-called-8300
-rw-rw----  1 asterisk   asterisk          5 Nov 26 17:06 someone-called-8301
drwx------  2 user       user           4096 Nov 25 09:25 ssh-PYMiyoHJvHiw
-rw-r--r--  1 root       root             44 Nov 27 10:02 text-en.wav
-rw-r--r--  1 root       root             44 Nov 27 10:04 text-ru.wav
drwxr-xr-x  2 user       user           4096 Nov 25 09:25 tracker-user
-r--r--r--  1 root       root             11 Nov 25 09:19 .X0-lock
drwxrwxrwt  2 root       root           4096 Nov 25 09:19 .X11-unix
10:03:12
#play t
text-en.wav   text-ru.wav   tracker-user/
10:03:12
#play text-
text-en.wav  text-ru.wav
10:03:12
#play text-en.wav
play WARN alsa: can't encode 0-bit Unknown or not applicable
text-en.wav:
 File Size: 44
  Encoding: Signed PCM
  Channels: 1 @ 16-bit
Samplerate: 16000Hz
Replaygain: off
  Duration: unknown
In:0.00% 00:00:00.00 [00:00:00.00] Out:0     [      |      ]        Clip:0
Done.
10:04:27
#lspci
00:00.0 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Root Complex
00:00.2 IOMMU: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) I/O Memory Management Unit
00:01.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Trinity [Radeon HD 7660D]
00:01.1 Audio device: Advanced Micro Devices [AMD] nee ATI Trinity HDMI Audio Controller
00:10.0 USB controller: Advanced Micro Devices [AMD] FCH USB XHCI Controller (rev 03)
00:10.1 USB controller: Advanced Micro Devices [AMD] FCH USB XHCI Controller (rev 03)
00:11.0 RAID bus controller: Advanced Micro Devices [AMD] FCH SATA Controller [RAID mode] (rev 40)
00:12.0 USB controller: Advanced Micro Devices [AMD] FCH USB OHCI Controller (rev 11)
00:12.2 USB controller: Advanced Micro Devices [AMD] FCH USB EHCI Controller (rev 11)
00:13.0 USB controller: Advanced Micro Devices [AMD] FCH USB OHCI Controller (rev 11)
...
00:14.5 USB controller: Advanced Micro Devices [AMD] FCH USB OHCI Controller (rev 11)
00:15.0 PCI bridge: Advanced Micro Devices [AMD] Hudson PCI to PCI bridge (PCIE port 0)
00:15.2 PCI bridge: Advanced Micro Devices [AMD] Hudson PCI to PCI bridge (PCIE port 2)
00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 0
00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 3
00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 5
03:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5761 Gigabit Ethernet PCIe (rev 10)
10:08:04
#lsmod
Module                  Size  Used by
dahdi                 191056  0
crc_ccitt              12347  1 dahdi
bnep                   17567  2
rfcomm                 33700  0
bluetooth             119455  10 rfcomm,bnep
binfmt_misc            12957  1
nfsd                  216181  2
nfs                   308353  0
nfs_acl                12511  2 nfs,nfsd
...
ahci                   24997  3
libahci                22941  1 ahci
ehci_hcd               40249  0
tg3                   119064  0
libphy                 19057  1 tg3
xhci_hcd               73413  0
libata                140630  2 libahci,ahci
scsi_mod              162321  4 libata,sr_mod,sd_mod,sg
usbcore               128741  5 xhci_hcd,ehci_hcd,ohci_hcd,usbhid
usb_common             12354  1 usbcore
10:11:11
#vi /etc/asterisk/extensions.conf
/dev/pts/8
10:18:57
#screen -x
/dev/pts/10
10:19:19
#alsamixer

10:19:33
#
00:00.0 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Root Complex
00:00.2 IOMMU: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) I/O Memory Management Unit
00:01.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Trinity [Radeon HD 7660D]
00:01.1 Audio device: Advanced Micro Devices [AMD] nee ATI Trinity HDMI Audio Controller
00:10.0 USB controller: Advanced Micro Devices [AMD] FCH USB XHCI Controller (rev 03)
00:10.1 USB controller: Advanced Micro Devices [AMD] FCH USB XHCI Controller (rev 03)
00:11.0 RAID bus controller: Advanced Micro Devices [AMD] FCH SATA Controller [RAID mode] (rev 40)
00:12.0 USB controller: Advanced Micro Devices [AMD] FCH USB OHCI Controller (rev 11)
00:12.2 USB controller: Advanced Micro Devices [AMD] FCH USB EHCI Controller (rev 11)
00:13.0 USB controller: Advanced Micro Devices [AMD] FCH USB OHCI Controller (rev 11)
...
00:14.5 USB controller: Advanced Micro Devices [AMD] FCH USB OHCI Controller (rev 11)
00:15.0 PCI bridge: Advanced Micro Devices [AMD] Hudson PCI to PCI bridge (PCIE port 0)
00:15.2 PCI bridge: Advanced Micro Devices [AMD] Hudson PCI to PCI bridge (PCIE port 2)
00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 0
00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 3
00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices [AMD] Family 15h (Models 10h-1fh) Processor Function 5
03:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5761 Gigabit Ethernet PCIe (rev 10)
/dev/pts/6
10:21:53
#{EXTEN}@default)
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 640 x 400, current 1280 x 1024, maximum 1280 x 1024
default connected 1280x1024+0+0 0mm x 0mm
   1280x1024       0.0*
   1280x960        0.0
   1024x768        0.0
   800x600         0.0
   640x480         0.0
   720x400         0.0
/dev/pts/10
10:21:55
#lsmod | grep snd
snd_hda_codec_hdmi     30824  1
snd_hda_intel          43205  1
snd_hda_codec          78031  2 snd_hda_intel,snd_hda_codec_hdmi
snd_hwdep              13186  1 snd_hda_codec
snd_pcm                68083  3 snd_hda_codec,snd_hda_intel,snd_hda_codec_hdmi
snd_page_alloc         13003  2 snd_pcm,snd_hda_intel
snd_timer              22917  1 snd_pcm
snd                    52893  6 snd_timer,snd_pcm,snd_hwdep,snd_hda_codec,snd_hda_intel,snd_hda_codec_hdmi
soundcore              13065  1 snd
10:23:17
#rmmod snd_hda_intel
Error: Module snd_hda_intel is in use
10:23:31
#rmmod snd_hda_hdmi
Error: Module snd_hda_hdmi is not currently loaded
10:23:37
#rmmod snd_hda_code_hdmi
Error: Module snd_hda_code_hdmi is not currently loaded
10:23:44
#rmmod snd_hda_codec_hdmi
Error: Module snd_hda_codec_hdmi is in use
10:23:48
#alsamixer

/dev/pts/12
10:24:58
#alsamixer
cannot open mixer: No such file or directory
10:25:00
#alsamixer
cannot open mixer: No such file or directory
10:25:20
#less /var/log/messages
10:27:14
## azx_acquire

10:27:16
#lspci | grep Audio
00:01.1 Audio device: Advanced Micro Devices [AMD] nee ATI Trinity HDMI Audio Controller
00:14.2 Audio device: Advanced Micro Devices [AMD] FCH Azalia Controller (rev 01)
10:27:22
#uptime
 11:28:09 up 2 days,  2:11,  8 users,  load average: 2.14, 2.58, 2.59
/dev/pts/6
10:32:25
#grep Record /etc/asterisk/extensions.conf
exten => _81XX,1,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm)
прошло 79 минут
/dev/pts/0
11:51:44
#alsamixer

11:51:58
#less /var/log/messages
/dev/pts/2
11:56:18
#screen
/dev/pts/4
11:56:18
#screen
/dev/pts/6
11:56:36
#play /tmp/music.gsm
play WARN alsa: can't encode 0-bit Unknown or not applicable
play FAIL formats: can't open input file `/tmp/music.gsm': No such file or directory
11:57:18
#play
.aptitude/
asterisk-core-sounds-ru-gsm-current.tar.gz
.asterisk_history
.bash_history
.bash_profile
.bashrc
.cache/
.config/
.dbus/
.gconf/
.l3rc
.lilalo/
Mail/
.profile
.pulse/
.pulse-cookie
.rnd
.ssh/
.viminfo
11:57:18
#play
.aptitude/
asterisk-core-sounds-ru-gsm-current.tar.gz
.asterisk_history
.bash_history
.bash_profile
.bashrc
.cache/
.config/
.dbus/
.gconf/
.l3rc
.lilalo/
Mail/
.profile
.pulse/
.pulse-cookie
.rnd
.ssh/
.viminfo
11:57:18
#play /path/to/a/gsm/file/gsm
play WARN alsa: can't encode 0-bit Unknown or not applicable
play FAIL formats: can't open input file `/path/to/a/gsm/file/gsm': No such file or directory
11:57:45
#play /tmp/
.ICE-unix/          pulse-s5QBhARxCeYi/ .X0-lock
pulse-Eev3SbdyUVjS/ ssh-jh7YzsOiBnnv/   .X11-unix/
pulse-PKdhtXMmr18n/ tracker-user/
11:57:45
#play /var/
backups/ games/   local/   log/     opt/     spool/
cache/   lib/     lock/    mail/    run/     tmp/
11:57:45
#play /var/tmp/
asterisk/      belki.txt      burunduki.txt  hello-en.txt   hello-ru.txt
11:57:45
#play /var/tmp/asterisk/record
record01.gsm  record03.gsm  record05.gsm  record07.gsm  record09.gsm
record02.gsm  record04.gsm  record06.gsm  record08.gsm  record10.gsm
11:57:45
#play /var/tmp/asterisk/record01.gsm
play WARN alsa: can't encode 0-bit Unknown or not applicable
/var/tmp/asterisk/record01.gsm:
 File Size: 8.25k
  Encoding: GSM
  Channels: 1 @ 16-bit
Samplerate: 8000Hz
Replaygain: off
  Duration: unknown
In:0.00% 00:00:05.00 [00:00:00.00] Out:40.0k [      |      ]        Clip:0
Done.
/dev/pts/0
12:04:29
#screen -x
/dev/pts/6
12:04:36
#play /var/tmp/asterisk/record01.gsm
play WARN alsa: can't encode 0-bit Unknown or not applicable
/var/tmp/asterisk/record01.gsm:
 File Size: 8.25k
  Encoding: GSM
  Channels: 1 @ 16-bit
Samplerate: 8000Hz
Replaygain: off
  Duration: unknown
In:0.00% 00:00:05.00 [00:00:00.00] Out:40.0k [      |      ]        Clip:0
Done.
прошло 37 минут
12:41:58
#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 debian2 (pid = 2691)
...
No such command 'databaseget example a' (type 'core show help databaseget example' for other possible commands)
debian2*CLI> dat
data      database
debian2*CLI> data
No such command 'data' (type 'core show help data' for other possible commands)
debian2*CLI> file /var/lib/asterisk/astdb
No such command 'file /var/lib/asterisk/astdb' (type 'core show help file /var/lib/asterisk/astdb' for other possible commands)
debian2*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
12:47:45
#asterisk -rx "database order 10
>
> ^C
12:48:07
#asterisk -rx "database put order 1 9"
Updated database successfully
12:48:58
#asterisk -rx "database order 2 10"
No such command 'database order 2 10' (type 'core show help database order 2' for other possible commands)
12:49:30
#asterisk -rx "database order 10
> ^C
12:49:46
#asterisk -rx "database order 2 10"
No such command 'database order 2 10' (type 'core show help database order 2' for other possible commands)
12:49:47
#asterisk -rx "database order 2 10"
No such command 'database order 2 10' (type 'core show help database order 2' for other possible commands)
12:49:50
#asterisk -rx "database put order 2 10"
Updated database successfully
12:50:19
#asterisk -rx 'database get order 6'
Database entry not found.
12:52:51
#asterisk -rx 'database get order 6'
Value: 9
прошло 11 минут
13:04:27
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3989.28024.1676	2014-11-27 14:04:37.423227401 +0200
+++ /etc/asterisk/extensions.conf	2014-11-27 14:13:14.039238260 +0200
@@ -20,8 +20,12 @@
 exten => 3,n,Playback(/var/tmp/asterisk/record07)
 exten => 3,n,SayDigits(${ORDER})
 
+exten => 3,n,GotoIf($[${DB(order/${ORDER})} = ""]?unknown_order)
 exten => 3,n,Playback(/var/tmp/asterisk/record${DB(order/${ORDER})})
+exten => 3,n,Hangup                                                            |
+exten => 3,n(unknown_order),Playback(/var/tmp/asterisk/record10)
 
+ 
 exten => 4,1,Queue(queue1)
  
 exten => 0,1,Goto(s,start)
прошло 11 минут
13:15:48
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3989.26291.32700	2014-11-27 14:16:14.231242053 +0200
+++ /etc/asterisk/extensions.conf	2014-11-27 14:17:32.951243709 +0200
@@ -20,7 +20,7 @@
 exten => 3,n,Playback(/var/tmp/asterisk/record07)
 exten => 3,n,SayDigits(${ORDER})
 
-exten => 3,n,GotoIf($[${DB(order/${ORDER})} = ""]?unknown_order)
+exten => 3,n,GotoIf($["${DB(order/${ORDER})}" = ""]?unknown_order)
 exten => 3,n,Playback(/var/tmp/asterisk/record${DB(order/${ORDER})})
 exten => 3,n,Hangup                                                            |
 exten => 3,n(unknown_order),Playback(/var/tmp/asterisk/record10)
13:19:20
#vim /etc/asterisk/extensions.conf
13:23:49
#asterisk -rx 'database get order 6'
[menu]
exten => s,1,Answer
exten => s,n,Background(/var/tmp/asterisk/record01)
exten => s,n,WaitExten(1)
exten => s,n,Background(/var/tmp/asterisk/record02)
exten => s,n,WaitExten(3)
exten => s,n,Background(/var/tmp/asterisk/record03)
exten => s,n,WaitExten(3)
exten => s,n,Background(/var/tmp/asterisk/record04)
exten => s,n,Hangup
...
[internal],1,Playback(/var/tmp/asterisk/record06)
include=>parkedcallsen(2)
exten => i,n,Goto(s,start)B(order/${ORDER})}" = ""]?unknown_order)
exten => 3,n,Playback(/var/tmp/asterisk/record${DB(order/${ORDER})})
exten => 3,n,Hangup                                                            |
exten => _81XX,1,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm)
[       ]
[xten =>]_81XX,n,Playback(/var/tmp/asterisk/record${EXTEN:2})
exten => _82XX,1,Playback(/var/tmp/asterisk/record${EXTEN:2})
                                                              2,1           Top
13:27:00
#[menu]
                             vvv
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
...
    -- Executing [3@menu:4] SayDigits("SIP/1201-00000013", "4") in new stack
    -- <SIP/1201-00000013> Playing 'digits/4.gsm' (language 'ru')
    -- Executing [3@menu:5] GotoIf("SIP/1201-00000013", "0?unknown_order") in new stack
    -- Executing [3@menu:6] Playback("SIP/1201-00000013", "/var/tmp/asterisk/record10") in new stack
    -- <SIP/1201-00000013> Playing '/var/tmp/asterisk/record10.gsm' (language 'ru')
[Nov 27 14:27:33] WARNING[5377]: pbx.c:4466 pbx_extension_helper: No application 'Hangup                                                            |' for extension (menu, 3, 7)
  == Spawn extension (menu, 3, 7) exited non-zero on 'SIP/1201-00000013'
debian2*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
13:28:46
#vim /etc/asterisk/extensions.conf

Статистика

Время первой команды журнала14:43:03 2014-11-26
Время последней команды журнала13:28:46 2014-11-27
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, %14.85
Процент синтаксически неверно набранных команд, % 0.99
Суммарное время работы с терминалом *, час 4.53
Количество командных строк в единицу времени, команда/мин 0.37
Частота использования команд
play22|===================| 19.64%
asterisk12|==========| 10.71%
vi12|==========| 10.71%
vim5|====| 4.46%
alsamixer5|====| 4.46%
grep5|====| 4.46%
screen4|===| 3.57%
rmmod4|===| 3.57%
cat3|==| 2.68%
ls3|==| 2.68%
less3|==| 2.68%
international2|=| 1.79%
[2|=| 1.79%
apt-get2|=| 1.79%
text2wave2|=| 1.79%
lsmod2|=| 1.79%
ps2|=| 1.79%
lspci2|=| 1.79%
include=>2|=| 1.79%
mkdir1|| 0.89%
1|| 0.89%
{EXTEN}@default)1|| 0.89%
cpall1|| 0.89%
#1|| 0.89%
cd1|| 0.89%
~1|| 0.89%
{EXTEN})1|| 0.89%
[local]1|| 0.89%
chown1|| 0.89%
Setting1|| 0.89%
sterisk1|| 0.89%
uptime1|| 0.89%
text-ru.wav1|| 0.89%
comebacktoorigin1|| 0.89%
text-en.wav1|| 0.89%
recording1|| 0.89%
[menu]1|| 0.89%
____
*) Интервалы неактивности длительностью 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$