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

Содержание

Журнал

Среда (04/10/13)

/dev/pts/1
08:39:40
#ssh root@192.168.30.1
^C
/dev/pts/0
08:39:40
#ssh root@192.168.30.1
^C
/dev/pts/1
08:39:54
#ping 192.168.30.1
PING 192.168.30.1 (192.168.30.1) 56(84) bytes of data.
64 bytes from 192.168.30.1: icmp_req=1 ttl=63 time=0.263 ms
^C
--- 192.168.30.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.263/0.263/0.263/0.000 ms
/dev/pts/0
08:39:54
#ping 192.168.30.1
PING 192.168.30.1 (192.168.30.1) 56(84) bytes of data.
64 bytes from 192.168.30.1: icmp_req=1 ttl=63 time=0.263 ms
^C
--- 192.168.30.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.263/0.263/0.263/0.000 ms
/dev/pts/1
08:49:47
#{EXTEN},10,wW))
  GNU nano 2.2.4          File: /etc/asterisk/sip.conf                Modified
[general]mic
context=defaulte big brother"
register=>harare:1234@192.168.30.1/gweru
register=>harare:1234@192.168.10.1/boston
register=>harare:1234@192.168.60.1/minsk
[1402]
;SIP-peernd
[1401]=1234
context=gr_all
[gweru]iendarare big brother"
type=friendcountry
secret=1234c
host=dynamicare
username=harare
canreinvite=nore laptop"
context=gr_all
[boston]amic
^G Get Help  ^O WriteOut  ^R Read File ^Y Prev Page ^K Cut Text  ^C Cur Pos
^X Exit      ^J Justify   ^W Where Is  ^V Next Page ^U UnCut Text^T To Spell
/dev/pts/0
08:49:47
#{EXTEN},10,wW))
  GNU nano 2.2.4          File: /etc/asterisk/sip.conf                Modified
[general]mic
context=defaulte big brother"
register=>harare:1234@192.168.30.1/gweru
register=>harare:1234@192.168.10.1/boston
register=>harare:1234@192.168.60.1/minsk
[1402]
;SIP-peernd
[1401]=1234
context=gr_all
[gweru]iendarare big brother"
type=friendcountry
secret=1234c
host=dynamicare
username=harare
canreinvite=nore laptop"
context=gr_all
[boston]amic
^G Get Help  ^O WriteOut  ^R Read File ^Y Prev Page ^K Cut Text  ^C Cur Pos
^X Exit      ^J Justify   ^W Where Is  ^V Next Page ^U UnCut Text^T To Spell
/dev/pts/1
08:51:41
#host=dynamicll
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1290)
linux4*CLI> sip reload
linux4*CLI> dialplan reload
Dialplan reloaded.
[Apr 10 09:51:54] WARNING[2264]: pbx_config.c:1588 pbx_load_config: ==!!== Unknown directive: include> at line 58 -- IGNORING!!!
[Apr 10 09:51:54] WARNING[2264]: pbx.c:9553 ast_context_verify_includes: Context 'gr_all' tries to include nonexistent context 'local'
[Apr 10 09:51:54] WARNING[2264]: pbx.c:9553 ast_context_verify_includes: Context 'gr_city' tries to include nonexistent context 'local'
[Apr 10 09:51:54] WARNING[2264]: pbx.c:9553 ast_context_verify_includes: Context 'gr_country' tries to include nonexistent context 'local'
linux4*CLI> quit
/dev/pts/0
08:51:41
#host=dynamicll
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1290)
linux4*CLI> sip reload
linux4*CLI> dialplan reload
Dialplan reloaded.
[Apr 10 09:51:54] WARNING[2264]: pbx_config.c:1588 pbx_load_config: ==!!== Unknown directive: include> at line 58 -- IGNORING!!!
[Apr 10 09:51:54] WARNING[2264]: pbx.c:9553 ast_context_verify_includes: Context 'gr_all' tries to include nonexistent context 'local'
[Apr 10 09:51:54] WARNING[2264]: pbx.c:9553 ast_context_verify_includes: Context 'gr_city' tries to include nonexistent context 'local'
[Apr 10 09:51:54] WARNING[2264]: pbx.c:9553 ast_context_verify_includes: Context 'gr_country' tries to include nonexistent context 'local'
linux4*CLI> quit
/dev/pts/1
08:52:31
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1876.29020.27160	2013-04-10 09:52:44.000000000 +0300
+++ /etc/asterisk/extensions.conf	2013-04-10 09:53:53.000000000 +0300
@@ -28,8 +28,8 @@
 ;exten=>_16XX,1,Dial(SIP/minsk/${EXTEN})
 ;exten=>_2XXX,1,Dial(SIP/minsk/${EXTEN})
 
-;[local]
-;exten =>_14XX,1,Dial(SIP/${EXTEN})
+[local]
+exten =>_14XX,1,Dial(SIP/${EXTEN})
 
 [national]
 exten=>_13XX,1,Dial(SIP/gweru/${EXTEN})
/dev/pts/0
08:52:31
#nano /etc/asterisk/extensions.conf
/dev/pts/1
08:54:13
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1876.27406.7903	2013-04-10 09:54:15.000000000 +0300
+++ /etc/asterisk/extensions.conf	2013-04-10 09:55:05.000000000 +0300
@@ -55,4 +55,4 @@
 include=>international
 
 [gr_ua]
-include>=ua
+include=>ua
/dev/pts/0
08:54:13
#nano /etc/asterisk/extensions.conf
/dev/pts/1
08:55:34
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1876.32733.11956	2013-04-10 09:55:36.000000000 +0300
+++ /etc/asterisk/extensions.conf	2013-04-10 09:55:52.000000000 +0300
@@ -53,6 +53,7 @@
 include=>national
 include=>local
 include=>international
+include=>ua
 
 [gr_ua]
 include=>ua
/dev/pts/0
08:55:34
#nano /etc/asterisk/extensions.conf
/dev/pts/1
08:56:25
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1876.22649.2003	2013-04-10 09:56:29.000000000 +0300
+++ /etc/asterisk/extensions.conf	2013-04-10 09:56:49.000000000 +0300
@@ -39,7 +39,7 @@
 exten=>_2[123]XX,1,Dial(SIP/minsk/${EXTEN})
 
 [ua]
-exten=>_+380XXXXXXXXX,1,Dial(SIP/minsk/${EXTEN})
+exten=>_380XXXXXXXXX,1,Dial(SIP/minsk/${EXTEN})
 
 [gr_country]
 include=>local
/dev/pts/0
08:56:25
#nano /etc/asterisk/extensions.conf
09:01:44
#nano /etc/asterisk/extensions.conf
/dev/pts/1
09:01:44
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1876.13423.25576	2013-04-10 10:02:15.000000000 +0300
+++ /etc/asterisk/extensions.conf	2013-04-10 10:05:08.000000000 +0300
@@ -10,11 +10,11 @@
 exten=>_82XX,1,Playback(/var/tmp/message/$(EXTEN:2})
 exten=>8300,1,Voicemailmain()
 
-exten=>_14XX,1,Answer
+;exten=>_14XX,1,Answer
 ;exten=>_14XX,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH})
 ;exten=>_14XX,n,Monitor(wav,${CALLFILENAME},m)
-exten=>_14XX,n,Dial(SIP/${EXTEN},10,wW)
-exten=>_14XX,n,Voicemail(${EXTEN}@default)
+;exten=>_14XX,n,Dial(SIP/${EXTEN},10,wW)
+;exten=>_14XX,n,Voicemail(${EXTEN}@default)
 
 
 
@@ -29,7 +29,16 @@
 ;exten=>_2XXX,1,Dial(SIP/minsk/${EXTEN})
 
 [local]
-exten =>_14XX,1,Dial(SIP/${EXTEN})
+;exten =>_14XX,1,Dial(SIP/${EXTEN})
+
+exten=>_14XX,1,Answer
+;exten=>_14XX,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH})
+;exten=>_14XX,n,Monitor(wav,${CALLFILENAME},m)
+exten=>_14XX,n,Dial(SIP/${EXTEN},10,wW)
+exten=>_14XX,n,Voicemail(${EXTEN}@default)
+
+
+
 
 [national]
 exten=>_13XX,1,Dial(SIP/gweru/${EXTEN})
прошло 25 минут
09:26:52
#cd /var/log/asterisk/cdr-csv/

/dev/pts/0
09:26:52
#cd /var/log/asterisk/cdr-csv/

/dev/pts/1
09:26:59
#ls
Master.csv
/dev/pts/0
09:26:59
#ls
Master.csv
/dev/pts/1
09:27:00
#nano master.csv
/dev/pts/0
09:27:00
#nano master.csv
прошло 14 минут
/dev/pts/1
09:41:45
#[general]mic

/dev/pts/0
09:41:45
#[general]mic

/dev/pts/1
09:45:25
#[default]
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1290)
linux4*CLI> dialplan reload
Dialplan reloaded.
[Apr 10 10:45:37] WARNING[2619]: pbx.c:7485 add_pri_lockopt: Unable to register extension '1402', priority 1 in 'local', already in use
linux4*CLI> quit
/dev/pts/0
09:45:25
#[default]
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1290)
linux4*CLI> dialplan reload
Dialplan reloaded.
[Apr 10 10:45:37] WARNING[2619]: pbx.c:7485 add_pri_lockopt: Unable to register extension '1402', priority 1 in 'local', already in use
linux4*CLI> quit
/dev/pts/1
09:45:43
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1876.24004.3924	2013-04-10 10:45:44.000000000 +0300
+++ /etc/asterisk/extensions.conf	2013-04-10 10:46:37.000000000 +0300
@@ -37,8 +37,8 @@
 ;exten=>_14XX,n,Dial(SIP/${EXTEN},10,wW)
 ;exten=>_14XX,n,Voicemail(${EXTEN}@default)
 
-exten=>1402,1,Answer
-exten=>1402,1,Dial(SIP/1401&SIP/1301)
+exten=>1405,1,Answer
+exten=>1405,n,Dial(SIP/1401&SIP/1401)
 
 
 [national]
/dev/pts/0
09:45:43
#nano /etc/asterisk/extensions.conf
/dev/pts/1
09:47:20
#nano /etc/asterisk/extensions.conf
/dev/pts/0
09:47:20
#nano /etc/asterisk/extensions.conf
/dev/pts/1
09:53:32
#scp
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
           [-l limit] [-o ssh_option] [-P port] [-S program]
           [[user@]host1:]file1 ... [[user@]host2:]file2
/dev/pts/0
09:53:32
#scp
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
           [-l limit] [-o ssh_option] [-P port] [-S program]
           [[user@]host1:]file1 ... [[user@]host2:]file2
/dev/pts/1
09:53:39
#cd ...
bash: cd: ...: No such file or directory
/dev/pts/0
09:53:39
#cd ...
bash: cd: ...: No such file or directory
/dev/pts/1
09:55:18
#cd /

/dev/pts/0
09:55:18
#cd /

/dev/pts/1
09:55:21
#nano /etc/asterisk/features.conf
--- /tmp/l3-saved-1876.10674.4758	2013-04-10 10:56:19.000000000 +0300
+++ /etc/asterisk/features.conf	2013-04-10 10:57:39.000000000 +0300
@@ -58,10 +58,10 @@
 
 
 [featuremap]
-;blindxfer => #1		; Blind transfer  (default is #) -- Make sure to set the T and/or t option in the Dial() or Queue() app call!
+blindxfer => #1		; Blind transfer  (default is #) -- Make sure to set the T and/or t option in the Dial() or Queue() app call!
 ;disconnect => *0		; Disconnect  (default is *) -- Make sure to set the H and/or h option in the Dial() or Queue() app call!
 automon => *1			; One Touch Record a.k.a. Touch Monitor -- Make sure to set the W and/or w option in the Dial() or Queue() app call!
-;atxfer => *2			; Attended transfer  -- Make sure to set the T and/or t option in the Dial() or Queue()  app call!
+atxfer => *2			; Attended transfer  -- Make sure to set the T and/or t option in the Dial() or Queue()  app call!
 ;parkcall => #72        ; Park call (one step parking)  -- Make sure to set the K and/or k option in the Dial() app call!
 ;automixmon => *3		; One Touch Record a.k.a. Touch MixMonitor -- Make sure to set the X and/or x option in the Dial() or Queue() app call!
 
/dev/pts/0
09:55:21
#nano /etc/asterisk/features.conf
/dev/pts/1
10:00:00
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1290)
linux4*CLI> sip reload
linux4*CLI> dialplan reload
Dialplan reloaded.
[Apr 10 11:00:15] WARNING[2850]: pbx.c:7485 add_pri_lockopt: Unable to register extension '_14XX', priority 1 in 'local', already in use
linux4*CLI> quuit
No such command 'quuit' (type 'core show help quuit' for other possible commands)
linux4*CLI> quit
/dev/pts/0
10:00:00
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1290)
linux4*CLI> sip reload
linux4*CLI> dialplan reload
Dialplan reloaded.
[Apr 10 11:00:15] WARNING[2850]: pbx.c:7485 add_pri_lockopt: Unable to register extension '_14XX', priority 1 in 'local', already in use
linux4*CLI> quuit
No such command 'quuit' (type 'core show help quuit' for other possible commands)
linux4*CLI> quit
/dev/pts/1
10:00:25
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1876.23932.7998	2013-04-10 11:00:27.000000000 +0300
+++ /etc/asterisk/extensions.conf	2013-04-10 11:00:44.000000000 +0300
@@ -29,7 +29,7 @@
 ;exten=>_2XXX,1,Dial(SIP/minsk/${EXTEN})
 
 [local]
-exten =>_14XX,1,Dial(SIP/${EXTEN})
+;exten =>_14XX,1,Dial(SIP/${EXTEN})
 
 exten=>_14XX,1,Answer
 ;exten=>_14XX,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH})
/dev/pts/0
10:00:25
#nano /etc/asterisk/extensions.conf
/dev/pts/1
10:06:15
#nano /etc/asterisk/features.conf
/dev/pts/0
10:06:15
#nano /etc/asterisk/features.conf
/dev/pts/1
10:13:11
#nano /etc/asterisk/extensions
/dev/pts/0
10:13:11
#nano /etc/asterisk/extensions
прошло 44 минуты
/dev/pts/1
10:57:46
#apt-cash search dahdi source
bash: apt-cash: command not found
/dev/pts/0
10:57:46
#apt-cash search dahdi source
bash: apt-cash: command not found
/dev/pts/1
10:57:49
#apt-get install urce
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package urce
/dev/pts/0
10:57:49
#apt-get install urce
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package urce
/dev/pts/1
10:58:10
#apt-get install urce
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package urce
/dev/pts/0
10:58:10
#apt-get install urce
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package urce
/dev/pts/1
10:58:21
#apt-get install dahdi-source
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  dahdi-source
0 upgraded, 1 newly installed, 0 to remove and 29 not upgraded.
Need to get 912 kB of archives.
After this operation, 1,044 kB of additional disk space will be used.
Get:1 http://192.168.15.253/debian/ squeeze/main dahdi-source all 1:2.3.0.1+dfsg-2 [912 kB]
Fetched 912 kB in 0s (22.2 MB/s)
Selecting previously deselected package dahdi-source.
(Reading database ... 110182 files and directories currently installed.)
Unpacking dahdi-source (from .../dahdi-source_1%3a2.3.0.1+dfsg-2_all.deb) ...
Setting up dahdi-source (1:2.3.0.1+dfsg-2) ...
/dev/pts/0
10:58:21
#apt-get install dahdi-source
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  dahdi-source
0 upgraded, 1 newly installed, 0 to remove and 29 not upgraded.
Need to get 912 kB of archives.
After this operation, 1,044 kB of additional disk space will be used.
Get:1 http://192.168.15.253/debian/ squeeze/main dahdi-source all 1:2.3.0.1+dfsg-2 [912 kB]
Fetched 912 kB in 0s (22.2 MB/s)
Selecting previously deselected package dahdi-source.
(Reading database ... 110182 files and directories currently installed.)
Unpacking dahdi-source (from .../dahdi-source_1%3a2.3.0.1+dfsg-2_all.deb) ...
Setting up dahdi-source (1:2.3.0.1+dfsg-2) ...
/dev/pts/1
10:58:26
#module-assistant auto-install dahdi

/dev/pts/0
10:58:26
#module-assistant auto-install dahdi

прошло 12 минут
/dev/pts/1
11:10:44
#uname -a
Linux linux4 2.6.39-bpo.2-686-pae #1 SMP Thu Aug 4 11:02:22 UTC 2011 i686 GNU/Linux
/dev/pts/0
11:10:44
#uname -a
Linux linux4 2.6.39-bpo.2-686-pae #1 SMP Thu Aug 4 11:02:22 UTC 2011 i686 GNU/Linux
/dev/pts/1
11:11:28
#apt-get install linux-image-3.2.0-0.bpo.4-686-pae
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  linux-doc-3.2 debian-kernel-handbook
Recommended packages:
  firmware-linux-free
The following NEW packages will be installed:
  linux-image-3.2.0-0.bpo.4-686-pae
0 upgraded, 1 newly installed, 0 to remove and 31 not upgraded.
Need to get 23.0 MB of archives.
After this operation, 90.4 MB of additional disk space will be used.
Get:1 http://192.168.15.253/debian-backports/ squeeze-backports/main linux-image-3.2.0-0.bpo.4-686-pae i386 3.2.41-2~bpo60+1 [23.0 MB]
/dev/pts/0
11:11:28
#apt-get install linux-image-3.2.0-0.bpo.4-686-pae
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  linux-doc-3.2 debian-kernel-handbook
Recommended packages:
  firmware-linux-free
The following NEW packages will be installed:
  linux-image-3.2.0-0.bpo.4-686-pae
0 upgraded, 1 newly installed, 0 to remove and 31 not upgraded.
Need to get 23.0 MB of archives.
After this operation, 90.4 MB of additional disk space will be used.
Get:1 http://192.168.15.253/debian-backports/ squeeze-backports/main linux-image-3.2.0-0.bpo.4-686-pae i386 3.2.41-2~bpo60+1 [23.0 MB]
прошло 18 минут
/dev/pts/2
11:30:02
#apt-get install linux-headers-3.2.0.0.bpo.4-686-pae
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'linux-headers-3.2.0-0.bpo.4-686-pae' for regex 'linux-headers-3.2.0.0.bpo.4-686-pae'
The following extra packages will be installed:
  linux-headers-3.2.0-0.bpo.4-686-pae linux-headers-3.2.0-0.bpo.4-common
  linux-kbuild-3.2
The following NEW packages will be installed:
  linux-headers-3.2.0-0.bpo.4-686-pae linux-headers-3.2.0-0.bpo.4-common
  linux-kbuild-3.2
...
Selecting previously deselected package linux-headers-3.2.0-0.bpo.4-common.
(Reading database ... 113879 files and directories currently installed.)
Unpacking linux-headers-3.2.0-0.bpo.4-common (from .../linux-headers-3.2.0-0.bpo.4-common_3.2.41-2~bpo60+1_i386.deb) ...
Selecting previously deselected package linux-kbuild-3.2.
Unpacking linux-kbuild-3.2 (from .../linux-kbuild-3.2_3.2.1-2~bpo60+1_i386.deb) ...
Selecting previously deselected package linux-headers-3.2.0-0.bpo.4-686-pae.
Unpacking linux-headers-3.2.0-0.bpo.4-686-pae (from .../linux-headers-3.2.0-0.bpo.4-686-pae_3.2.41-2~bpo60+1_i386.deb) ...
Setting up linux-headers-3.2.0-0.bpo.4-common (3.2.41-2~bpo60+1) ...
Setting up linux-kbuild-3.2 (3.2.1-2~bpo60+1) ...
Setting up linux-headers-3.2.0-0.bpo.4-686-pae (3.2.41-2~bpo60+1) ...
/dev/pts/0
11:30:02
#apt-get install linux-headers-3.2.0.0.bpo.4-686-pae
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'linux-headers-3.2.0-0.bpo.4-686-pae' for regex 'linux-headers-3.2.0.0.bpo.4-686-pae'
The following extra packages will be installed:
  linux-headers-3.2.0-0.bpo.4-686-pae linux-headers-3.2.0-0.bpo.4-common
  linux-kbuild-3.2
The following NEW packages will be installed:
  linux-headers-3.2.0-0.bpo.4-686-pae linux-headers-3.2.0-0.bpo.4-common
  linux-kbuild-3.2
...
Selecting previously deselected package linux-headers-3.2.0-0.bpo.4-common.
(Reading database ... 113879 files and directories currently installed.)
Unpacking linux-headers-3.2.0-0.bpo.4-common (from .../linux-headers-3.2.0-0.bpo.4-common_3.2.41-2~bpo60+1_i386.deb) ...
Selecting previously deselected package linux-kbuild-3.2.
Unpacking linux-kbuild-3.2 (from .../linux-kbuild-3.2_3.2.1-2~bpo60+1_i386.deb) ...
Selecting previously deselected package linux-headers-3.2.0-0.bpo.4-686-pae.
Unpacking linux-headers-3.2.0-0.bpo.4-686-pae (from .../linux-headers-3.2.0-0.bpo.4-686-pae_3.2.41-2~bpo60+1_i386.deb) ...
Setting up linux-headers-3.2.0-0.bpo.4-common (3.2.41-2~bpo60+1) ...
Setting up linux-kbuild-3.2 (3.2.1-2~bpo60+1) ...
Setting up linux-headers-3.2.0-0.bpo.4-686-pae (3.2.41-2~bpo60+1) ...
прошло 52 минуты
/dev/pts/2
12:22:14
#nano /etc/asterisk/extensions.conf
/dev/pts/0
12:22:14
#nano /etc/asterisk/extensions.conf
прошло 26 минут
/dev/pts/2
12:48:35
#[default]
bash: module-assistants: command not found
/dev/pts/0
12:48:35
#[default]
bash: module-assistants: command not found
/dev/pts/2
12:49:11
#module-assistants auto-install dahdi\
> ^C
/dev/pts/0
12:49:11
#module-assistants auto-install dahdi\
> ^C
12:50:27
#module-assistants auto-install dahdi
bash: module-assistants: command not found
/dev/pts/2
12:50:27
#module-assistants auto-install dahdi
bash: module-assistants: command not found
12:50:28
#m-a a-i dahdi

/dev/pts/0
12:50:28
#m-a a-i dahdi

/dev/pts/2
12:57:31
#scp linux7:/usr/src/dahdi/dahdi-linux-2.6.2.tar.gz /usr/src
The authenticity of host 'linux7 (192.168.70.1)' can't be established.
RSA key fingerprint is 73:fd:3b:ee:91:b1:73:e4:99:4a:bf:1e:12:f3:c3:8e.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'linux7,192.168.70.1' (RSA) to the list of known hosts.
root@linux7's password:
dahdi-linux-2.6.2.tar.gz                      100% 1686KB   1.7MB/s   00:00
/dev/pts/0
12:57:31
#scp linux7:/usr/src/dahdi/dahdi-linux-2.6.2.tar.gz /usr/src
The authenticity of host 'linux7 (192.168.70.1)' can't be established.
RSA key fingerprint is 73:fd:3b:ee:91:b1:73:e4:99:4a:bf:1e:12:f3:c3:8e.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'linux7,192.168.70.1' (RSA) to the list of known hosts.
root@linux7's password:
dahdi-linux-2.6.2.tar.gz                      100% 1686KB   1.7MB/s   00:00
/dev/pts/2
12:57:43
#cd /usr/src

/dev/pts/0
12:57:43
#cd /usr/src

/dev/pts/2
12:58:04
#tar xfz dahdi-linux-2.6.2.tar.gz

/dev/pts/0
12:58:04
#tar xfz dahdi-linux-2.6.2.tar.gz

12:58:15
#cd dahdi-linux-2.6.2

/dev/pts/2
12:58:15
#cd dahdi-linux-2.6.2

12:58:33
#make -j32
make -C drivers/dahdi/firmware firmware-loaders
make[1]: Entering directory `/usr/src/dahdi-linux-2.6.2/drivers/dahdi/firmware'
Attempting to download dahdi-fwload-vpmadt032-1.25.0.tar.gz
--2013-04-10 13:58:42--  http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fwload-vpmadt032-1.25.0.tar.gz
Resolving downloads.digium.com... 76.164.171.238, 2001:470:e0d4::ee
Connecting to downloads.digium.com|76.164.171.238|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 149360 (146K) [application/x-gzip]
Saving to: “dahdi-fwload-vpmadt032-1.25.0.tar.gz”
100%[======================================>] 149,360     35.6K/s   in 4.1s
...
  LD [M]  /usr/src/dahdi-linux-2.6.2/drivers/dahdi/wcte11xp.ko
  LD [M]  /usr/src/dahdi-linux-2.6.2/drivers/dahdi/wcte12xp/wcte12xp.ko
  LD [M]  /usr/src/dahdi-linux-2.6.2/drivers/dahdi/xpp/xpd_bri.ko
  LD [M]  /usr/src/dahdi-linux-2.6.2/drivers/dahdi/wctc4xxp/wctc4xxp.ko
  LD [M]  /usr/src/dahdi-linux-2.6.2/drivers/dahdi/xpp/xpd_echo.ko
  LD [M]  /usr/src/dahdi-linux-2.6.2/drivers/dahdi/xpp/xpp_usb.ko
  LD [M]  /usr/src/dahdi-linux-2.6.2/drivers/dahdi/xpp/xpd_fxo.ko
  LD [M]  /usr/src/dahdi-linux-2.6.2/drivers/dahdi/xpp/xpd_pri.ko
  LD [M]  /usr/src/dahdi-linux-2.6.2/drivers/dahdi/xpp/xpp.ko
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-0.bpo.4-686-pae'
/dev/pts/0
12:58:33
#make -j32
make -C drivers/dahdi/firmware firmware-loaders
make[1]: Entering directory `/usr/src/dahdi-linux-2.6.2/drivers/dahdi/firmware'
Attempting to download dahdi-fwload-vpmadt032-1.25.0.tar.gz
--2013-04-10 13:58:42--  http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fwload-vpmadt032-1.25.0.tar.gz
Resolving downloads.digium.com... 76.164.171.238, 2001:470:e0d4::ee
Connecting to downloads.digium.com|76.164.171.238|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 149360 (146K) [application/x-gzip]
Saving to: “dahdi-fwload-vpmadt032-1.25.0.tar.gz”
100%[======================================>] 149,360     35.6K/s   in 4.1s
...
  LD [M]  /usr/src/dahdi-linux-2.6.2/drivers/dahdi/wcte11xp.ko
  LD [M]  /usr/src/dahdi-linux-2.6.2/drivers/dahdi/wcte12xp/wcte12xp.ko
  LD [M]  /usr/src/dahdi-linux-2.6.2/drivers/dahdi/xpp/xpd_bri.ko
  LD [M]  /usr/src/dahdi-linux-2.6.2/drivers/dahdi/wctc4xxp/wctc4xxp.ko
  LD [M]  /usr/src/dahdi-linux-2.6.2/drivers/dahdi/xpp/xpd_echo.ko
  LD [M]  /usr/src/dahdi-linux-2.6.2/drivers/dahdi/xpp/xpp_usb.ko
  LD [M]  /usr/src/dahdi-linux-2.6.2/drivers/dahdi/xpp/xpd_fxo.ko
  LD [M]  /usr/src/dahdi-linux-2.6.2/drivers/dahdi/xpp/xpd_pri.ko
  LD [M]  /usr/src/dahdi-linux-2.6.2/drivers/dahdi/xpp/xpp.ko
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-0.bpo.4-686-pae'
/dev/pts/2
12:58:53
#make -j32 install
make -C drivers/dahdi/firmware firmware-loaders
install -d /etc/udev/rules.d
make[1]: Entering directory `/usr/src/dahdi-linux-2.6.2/drivers/dahdi/firmware'
make[1]: Leaving directory `/usr/src/dahdi-linux-2.6.2/drivers/dahdi/firmware'
for hdr in kernel.h user.h fasthdlc.h wctdm_user.h dahdi_config.h; do \
                install -D -m 644 include/dahdi/$hdr /usr/include/dahdi/$hdr; \
        done
make -C drivers/dahdi/firmware hotplug-install DESTDIR= HOTPLUG_FIRMWARE=yes
make -C drivers/dahdi/xpp/firmwares install
build_tools/genudevrules > /etc/udev/rules.d/dahdi.rules
...
Installing dahdi-fw-vpmoct032.bin to hotplug firmware directories
Installing dahdi-fw-te820.bin to hotplug firmware directories
make[1]: Leaving directory `/usr/src/dahdi-linux-2.6.2/drivers/dahdi/firmware'
###################################################
###
### DAHDI installed successfully.
### If you have not done so before, install the package
### dahdi-tools.
###
###################################################
/dev/pts/0
12:58:53
#make -j32 install
make -C drivers/dahdi/firmware firmware-loaders
install -d /etc/udev/rules.d
make[1]: Entering directory `/usr/src/dahdi-linux-2.6.2/drivers/dahdi/firmware'
make[1]: Leaving directory `/usr/src/dahdi-linux-2.6.2/drivers/dahdi/firmware'
for hdr in kernel.h user.h fasthdlc.h wctdm_user.h dahdi_config.h; do \
                install -D -m 644 include/dahdi/$hdr /usr/include/dahdi/$hdr; \
        done
make -C drivers/dahdi/firmware hotplug-install DESTDIR= HOTPLUG_FIRMWARE=yes
make -C drivers/dahdi/xpp/firmwares install
build_tools/genudevrules > /etc/udev/rules.d/dahdi.rules
...
Installing dahdi-fw-vpmoct032.bin to hotplug firmware directories
Installing dahdi-fw-te820.bin to hotplug firmware directories
make[1]: Leaving directory `/usr/src/dahdi-linux-2.6.2/drivers/dahdi/firmware'
###################################################
###
### DAHDI installed successfully.
### If you have not done so before, install the package
### dahdi-tools.
###
###################################################
/dev/pts/2
13:00:12
#depmod -a

/dev/pts/0
13:00:12
#depmod -a

/dev/pts/2
13:01:03
#modprobe dahdi

/dev/pts/0
13:01:03
#modprobe dahdi

/dev/pts/2
13:01:26
#rmod dahdi
bash: rmod: command not found
/dev/pts/0
13:01:26
#rmod dahdi
bash: rmod: command not found
/dev/pts/2
13:02:24
#rmmod dahdi

/dev/pts/0
13:02:24
#rmmod dahdi

/dev/pts/2
13:02:29
#nano /etc/asterisk/meetme.conf
--- /tmp/l3-saved-2245.9829.19141	2013-04-10 14:02:59.000000000 +0300
+++ /etc/asterisk/meetme.conf	2013-04-10 14:03:49.000000000 +0300
@@ -41,5 +41,7 @@
 ; in the conference and it goes away.  When it is created again, it will have
 ; the new pin number.
 ;
-;conf => 1234 
+conf => 1234 
 ;conf => 2345,9938
+
+
/dev/pts/0
13:02:29
#nano /etc/asterisk/meetme.conf
/dev/pts/2
13:04:57
#[default]00,1,Voicemailmain()
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1664)
linux4*CLI> dialplan reload
Dialplan reloaded.
linux4*CLI> quit
/dev/pts/0
13:04:57
#[default]00,1,Voicemailmain()
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1664)
linux4*CLI> dialplan reload
Dialplan reloaded.
linux4*CLI> quit
/dev/pts/2
13:05:23
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1664)
linux4*CLI> module reload
app_amd.so            app_followme.so       app_meetme.so
...
rtp                   udptl                 plc
linux4*CLI> module reload ap
app_amd.so        app_followme.so   app_meetme.so     app_minivm.so
app_playback.so   app_voicemail.so  app_queue.so
linux4*CLI> module reload app_m
app_meetme.so  app_minivm.so
linux4*CLI> module reload app_meetme.so
[Apr 10 14:05:51] NOTICE[5890]: app_meetme.c:6438 load_config: A reload of the SLA configuration has been requested and will be completed when the system is idle.
[Apr 10 14:06:21] WARNING[5891]: app_meetme.c:1097 build_conf: Unable to open pseudo device
linux4*CLI> quit
/dev/pts/0
13:05:23
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 1664)
linux4*CLI> module reload
app_amd.so            app_followme.so       app_meetme.so
...
rtp                   udptl                 plc
linux4*CLI> module reload ap
app_amd.so        app_followme.so   app_meetme.so     app_minivm.so
app_playback.so   app_voicemail.so  app_queue.so
linux4*CLI> module reload app_m
app_meetme.so  app_minivm.so
linux4*CLI> module reload app_meetme.so
[Apr 10 14:05:51] NOTICE[5890]: app_meetme.c:6438 load_config: A reload of the SLA configuration has been requested and will be completed when the system is idle.
[Apr 10 14:06:21] WARNING[5891]: app_meetme.c:1097 build_conf: Unable to open pseudo device
linux4*CLI> quit
/dev/pts/2
13:06:28
#nano /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2245.11402.21620	2013-04-10 14:06:31.000000000 +0300
+++ /etc/asterisk/extensions.conf	2013-04-10 14:06:43.000000000 +0300
@@ -9,7 +9,7 @@
 exten=>_81XX,n,Playback(/var/tmp/message/${EXTEN:2})
 exten=>_82XX,1,Playback(/var/tmp/message/$(EXTEN:2})
 exten=>8300,1,Voicemailmain()
-exten=8301,1,Meetme(1234)
+exten=>8301,1,Meetme(1234)
 
 ;exten=>_14XX,1,Answer
 ;exten=>_14XX,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH})

Статистика

Время первой команды журнала08:39:40 2013- 4-10
Время последней команды журнала13:06:28 2013- 4-10
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, %20.79
Процент синтаксически неверно набранных команд, % 7.92
Суммарное время работы с терминалом *, час 2.83
Количество командных строк в единицу времени, команда/мин 0.59
Частота использования команд
nano29|============================| 28.71%
cd10|=========| 9.90%
apt-get10|=========| 9.90%
asterisk4|===| 3.96%
module-assistants4|===| 3.96%
make4|===| 3.96%
scp4|===| 3.96%
[default]4|===| 3.96%
m-a2|=| 1.98%
ping2|=| 1.98%
host=dynamicll2|=| 1.98%
apt-cash2|=| 1.98%
[general]mic2|=| 1.98%
rmmod2|=| 1.98%
modprobe2|=| 1.98%
rmod2|=| 1.98%
ls2|=| 1.98%
ssh2|=| 1.98%
module-assistant2|=| 1.98%
[default]00,1,Voicemailmain()2|=| 1.98%
depmod2|=| 1.98%
uname2|=| 1.98%
{EXTEN},10,wW))2|=| 1.98%
tar2|=| 1.98%
____
*) Интервалы неактивности длительностью 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$