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

Содержание

Журнал

Вторник (04/24/12)

/dev/pts/4
16:02:59
#ls /var/lib/asterisk/astdb
/var/lib/asterisk/astdb
16:05:24
#cat table.txt
6002 380661234502
6003 380661234503
6004 380661234504
6005 380661234505
16:06:50
#pwd
/tmp
16:08:06
#asterisk -rx "database get mobile 6002"
Value: 380661234502

Среда (04/25/12)

08:41:49
#ssh linux5
ssh: connect to host linux5 port 22: No route to host
08:41:54
#ssh linux5.unix.nt
ssh: connect to host linux5.unix.nt port 22: No route to host
08:41:58
#€
bash: €: command not found
08:45:26
#€
bash: €: command not found
08:46:07
#Â

08:46:10
#stty sane

08:46:12
#Âssh linux5.unix.nt
The authenticity of host 'linux5.unix.nt (192.168.50.1)' can't be established.
RSA key fingerprint is 04:93:5b:b5:f1:59:3c:0c:38:37:bb:d2:f9:55:28:6b.
Are you sure you want to continue connecting (yes/no)? no
Host key verification failed.
08:50:07
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-8577.23405.4437	2012-04-25 09:50:13.000000000 +0300
+++ /etc/asterisk/extensions.conf	2012-04-25 09:52:55.000000000 +0300
@@ -25,6 +25,9 @@
 exten => 8400,n,SayDigits(${new_number})
 exten => 8400,n,Read(answer,/var/tmp/asterisk/message03)
 exten => 8400,n,GotoIf($[${answer}=1]?start)
+
+$[ ${var} = 1    ]?context1,8500,start:end
+
 exten => 8400,n,Set(DB(mobile/${CALLERID(num)})=${new_number})
 exten => 8400,n,Playback(/var/tmp/asterisk/message04)
 
прошло 10 минут
09:01:02
#history | grep sox | less
09:04:41
#vim /etc/samba/smb.conf
09:05:12
#/etc/init.d/samba restart
Stopping Samba daemons: nmbd smbd.
Starting Samba daemons: nmbd smbd.
09:05:20
#history | greb sox
bash: greb: команда не найдена
09:06:22
#history | grab sox
bash: grab: команда не найдена
09:06:30
#history | gr
grep                  groupmod              grub-mkfont
grmid                 groups                grub-mkimage
grmid-4.4             growisofs             grub-mkpasswd-pbkdf2
grmiregistry          grpck                 grub-mkrelpath
grmiregistry-4.4      grpconv               grub-mkrescue
groff                 grpunconv             grub-probe
grog                  grub-bin2h            grub-reboot
grops                 grub-editenv          grub-script-check
grotty                grub-install          grub-set-default
groupadd              grub-mkconfig         grub-setup
groupdel              grub-mkdevicemap
09:06:30
#history | gr
grep                  groupmod              grub-mkfont
grmid                 groups                grub-mkimage
grmid-4.4             growisofs             grub-mkpasswd-pbkdf2
grmiregistry          grpck                 grub-mkrelpath
grmiregistry-4.4      grpconv               grub-mkrescue
groff                 grpunconv             grub-probe
grog                  grub-bin2h            grub-reboot
grops                 grub-editenv          grub-script-check
grotty                grub-install          grub-set-default
groupadd              grub-mkconfig         grub-setup
groupdel              grub-mkdevicemap
09:06:30
#history | grep sox
  341  apt-get install libsox-fmt-mp3 sox
  387  history | greb sox
  388  history | grab sox
  389  history | grep sox
09:06:41
#ls /var/lib/asterisk/moh/

09:12:14
#ssh linux1
The authenticity of host 'linux1 (192.168.10.1)' can't be established.
RSA key fingerprint is 1c:10:13:1e:42:34:91:26:d6:05:1c:89:28:1e:3b:95.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'linux1' (RSA) to the list of known hosts.
root@linux1's password:
Linux linux1 2.6.39-bpo.2-686-pae #1 SMP Thu Aug 4 11:02:22 UTC 2011 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Apr 24 11:55:18 2012 from note.unix.nt
root@linux1:~# ls /var/lib/asterisk/moh/
222.gsm
root@linux1:~# exit
logout
Connection to linux1 closed.
09:12:45
#vim /etc/asterisk/musiconhold.conf
--- /tmp/l3-saved-8577.1177.28945	2012-04-25 10:13:00.000000000 +0300
+++ /etc/asterisk/musiconhold.conf	2012-04-25 10:13:23.000000000 +0300
@@ -44,7 +44,7 @@
 
 [default]
 mode=files
-directory=moh
+directory=/var/lib/asterisk/moh
 ;
 ;[native-random]
 ;mode=files
09:14:09
#history | grep sox
  161  apt-cache search mp3 wav sox
  162  apt-cache search mp3 sox
  163  apt-get install libsox-fmt-mp3  sox
  168  #apt-get install libsox-fmt-mp3  sox
  177  sox -t mp3 03_Rosenrot.mp3 -r8000 -c1 -t gsm 03_Rosenrot.mgsm resample
  192* tailsox
  194  history | grep sox | less
  294  history | grep sox | less
  300  history | grep sox
09:14:14
#asterisk -rv
Asterisk 1.6.2.9-2+squeeze4, 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+squeeze4 currently running on linux0 (pid = 8172)
Verbosity is at least 4
linux0*CLI> moh show
No such command 'moh show ' (type 'core show help moh show' for other possible commands)
linux0*CLI> moh show
classes  files
linux0*CLI> moh show files
linux0*CLI> quit
Executing last minute cleanups
09:14:59
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
09:17:47
#ssh linux1
;mode=files
;directory=moh
;sort=alpha     ; Sort the files in alphabetical order.  If this option is
;               ; not specified, the sort order is undefined.
; =========
root@linux1:~#
root@linux1:~#
root@linux1:~# exit
logout
Connection to linux1 closed.
09:23:42
#ssh linux5
root@linux5's password:
09:23:44
#ssh linux3
The authenticity of host 'linux3 (192.168.30.1)' can't be established.
RSA key fingerprint is 28:9a:d6:f1:44:9d:d8:8e:83:84:38:37:eb:88:60:d5.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'linux3' (RSA) to the list of known hosts.
root@linux3's password:
Linux linux3 2.6.39-bpo.2-686-pae #1 SMP Thu Aug 4 11:02:22 UTC 2011 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Apr 24 12:03:42 2012 from note.unix.nt
09:24:42
#vim
09:25:33
#.mp3 -r8000 -t gsm test_moh.gsm resample
exit
Connection to linux3 closed.
09:27:08
#vim /etc/asterisk/musiconhold.conf
09:30:19
#vim /etc/asterisk/musiconhold.conf
--- /tmp/l3-saved-8577.9976.26211	2012-04-25 10:30:28.000000000 +0300
+++ /etc/asterisk/musiconhold.conf	2012-04-25 10:30:42.000000000 +0300
@@ -45,6 +45,9 @@
 [default]
 mode=files
 directory=/var/lib/asterisk/moh
+[class1]
+mode=files
+directory=/var/lib/asterisk/moh.class1
 ;
 ;[native-random]
 ;mode=files
09:30:42
#ls -l /var/lib/asterisk/
total 24
-rw-rw---- 1 asterisk asterisk 8192 Apr 25 10:29 astdb
drwxr-xr-x 2 asterisk asterisk 4096 Apr 25 10:12 moh
drwxr-xr-x 3 asterisk asterisk 4096 Apr 23 12:42 sounds
-rw-r----- 1 asterisk asterisk 8192 Apr 24 13:01 sqlite.db
09:30:54
#chown asterisk:asterisk /var/lib/asterisk/moh.class1

09:31:15
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux0 (pid = 18756)
...
        File: /var/lib/asterisk/moh.class1/222
linux0*CLI> moh show classes
Class: default
        Mode: files
        Directory: /var/lib/asterisk/moh
Class: class1
        Mode: files
        Directory: /var/lib/asterisk/moh.class1
linux0*CLI> quit
Executing last minute cleanups
09:31:49
#hown asterisk:asterisk
;sort=alpha     ; Sort the files in alphabetical order.  If this option is
;               ; not specified, the sort order is undefined.
; =========
; Other (non-native) playback methods
; =========
;[manual]
;mode=custom
;application=/usr/bin/streamplayer 192.168.100.52 888
;format=ulaw
; mpg123 on Solaris does not always exit properly; madplay may be a better
; choice
;[solaris]
;mode=custom
;directory=/var/lib/asterisk/mohmp3
~
~
"/etc/asterisk/musiconhold.conf" 87L, 2800C written
09:37:17
#vim /etc/asterisk/fe
09:37:17
#vim /etc/asterisk/features.conf
--- /tmp/l3-saved-8577.7489.9769	2012-04-25 10:37:42.000000000 +0300
+++ /etc/asterisk/features.conf	2012-04-25 10:39:23.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!
 
09:41:01
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-8577.29992.9629	2012-04-25 10:41:08.000000000 +0300
+++ /etc/asterisk/extensions.conf	2012-04-25 10:41:27.000000000 +0300
@@ -36,7 +36,7 @@
 exten => _60XX,n,Set(CHANNEL(musicclass)=class1)
 exten => _60XX,n,Set(MONITOR_FILENAME=${CALLERID(num)}-${EXTEN}-${STRFTIME(${EPOCH},Europe/Kiev,%Y-%m-%d-%H:%M:%S)})
 exten => _60XX,n,Monitor(wav,${MONITOR_FILENAME})
-exten => _60XX,n,Dial(SIP/${EXTEN},5)
+exten => _60XX,n,Dial(SIP/${EXTEN},5,tT)
 exten => _60XX,n,Dial(SIP/${DB(mobile/${EXTEN})},5)
 exten => _60XX,n,Voicemail(${EXTEN}@default)
 
09:50:52
#vim /etc/asterisk/extensions.conf
09:51:25
#[local]
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux3 (pid = 1434)
...
Dynamic Feature           Default Current
---------------           ------- -------
(none)
Call parking (Parking lot: default)
------------
Parking extension     :      700
Parking context       :      parkedcalls
Parked call extensions:      701-720
linux3*CLI> quit
Executing last minute cleanups
прошло 37 минут
10:28:43
#exit
exit
Connection to linux3 closed.
10:35:05
#type=friend
exten => 8399,1,Set((language)=ru)
exten => 8399,n,VoiceMailMain()
exten => 8400,1(start),Read(new_number,/var/tmp/asterisk/message01)
exten => 8400,n,Playback(/var/tmp/asterisk/message02)
exten => 8400,n,SayDigits(${new_number})
exten => 8400,n,Read(answer,/var/tmp/asterisk/message03)
exten => 8400,n,GotoIf($[${answer}=1]?start)
exten => 8400,n,Set(DB(mobile/${CALLERID(num)})=${new_number})
exten => _60XX,n,Dial(SIP/${EXTEN},5,tT)
exten => _60XX,n,Dial(SIP/${DB(mobile/${EXTEN})},5))
[local]> _60XX,n,Voicemail(${EXTEN}@default)
exten => 6003,1,Dial(6001&6002)
[national]
[        ]
                                                              32,0-1        45%
10:41:09
#apt-cache search zaptel source
dahdi-source - DAHDI telephony interface - source code for kernel driver
10:41:34
#apt-get install dahdi-source
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  mysql-common libmysqlclient16
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  dahdi-source
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 912 kB of archives.
After this operation, 1,044 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  dahdi-source
Install these packages without verification [y/N]? y
Get:1 http://10.0.35.1/debian/ squeeze/main dahdi-source all 1:2.3.0.1+dfsg-2 [912 kB]
Fetched 912 kB in 0s (10.5 MB/s)
Selecting previously deselected package dahdi-source.
(Reading database ... 130788 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) ...
10:43:19
#uname -a
Linux linux0 2.6.39-bpo.2-686-pae #1 SMP Thu Aug 4 11:02:22 UTC 2011 i686 GNU/Linux
10:43:26
#apt-cache search 2.6.39 kernel headers

10:43:37
#apt-cache search 2.6.39 kernel header

10:43:40
#apt-cache search 2.6.39 kernel
linux-image-2.6.39-bpo.2-686-pae - Linux 2.6.39 for modern PCs
10:43:42
#apt-cache search kernel headers
acerhk-source - Source for the acerhk driver
alsa-source - ALSA driver sources
libatlas-dev - Automatically Tuned Linear Algebra Software, C header files
batman-adv-source - Source for the batman-advanced kernel module
batmand-gateway-dkms - DKMS Source for the batmand-gateway kernel module
batmand-gateway-source - Source for the batmand-gateway kernel module
comedi-source - Comedi kernel module source
dahdi-source - DAHDI telephony interface - source code for kernel driver
gap-dev - GAP computer algebra system, compiler and development files
libglusterfs-dev - GlusterFS development libraries and headers (development files)
...
linux-headers-2.6.32-5-amd64 - Header files for Linux 2.6.32-5-amd64
linux-headers-2.6.32-5-common - Common header files for Linux 2.6.32-5
linux-headers-2.6.32-5-common-openvz - Common header files for Linux 2.6.32-5-openvz
linux-headers-2.6.32-5-common-vserver - Common header files for Linux 2.6.32-5-vserver
linux-headers-2.6.32-5-common-xen - Common header files for Linux 2.6.32-5-xen
linux-headers-2.6.32-5-openvz-686 - Header files for Linux 2.6.32-5-openvz-686
linux-headers-2.6.32-5-vserver-686 - Header files for Linux 2.6.32-5-vserver-686
linux-headers-2.6.32-5-vserver-686-bigmem - Header files for Linux 2.6.32-5-vserver-686-bigmem
linux-headers-2.6.32-5-xen-686 - Header files for Linux 2.6.32-5-xen-686
linux-libc-dev - Linux support headers for userspace development
10:44:07
#apt-get install linux-headers-2.6.32-5-686
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  mysql-common libmysqlclient16
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  cpp-4.3 gcc-4.3 gcc-4.3-base linux-headers-2.6.32-5-common
  linux-kbuild-2.6.32
Suggested packages:
...
Selecting previously deselected package linux-kbuild-2.6.32.
Unpacking linux-kbuild-2.6.32 (from .../linux-kbuild-2.6.32_2.6.32-1_i386.deb) ...
Selecting previously deselected package linux-headers-2.6.32-5-686.
Unpacking linux-headers-2.6.32-5-686 (from .../linux-headers-2.6.32-5-686_2.6.32-41squeeze2_i386.deb) ...
Setting up gcc-4.3-base (4.3.5-4) ...
Setting up cpp-4.3 (4.3.5-4) ...
Setting up gcc-4.3 (4.3.5-4) ...
Setting up linux-headers-2.6.32-5-common (2.6.32-41squeeze2) ...
Setting up linux-kbuild-2.6.32 (2.6.32-1) ...
Setting up linux-headers-2.6.32-5-686 (2.6.32-41squeeze2) ...
10:44:57
#apt-cache search linux image 2.6.32
linux-headers-2.6.32-5-486 - Header files for Linux 2.6.32-5-486
linux-headers-2.6.32-5-686 - Header files for Linux 2.6.32-5-686
linux-headers-2.6.32-5-686-bigmem - Header files for Linux 2.6.32-5-686-bigmem
linux-headers-2.6.32-5-amd64 - Header files for Linux 2.6.32-5-amd64
linux-headers-2.6.32-5-openvz-686 - Header files for Linux 2.6.32-5-openvz-686
linux-headers-2.6.32-5-vserver-686 - Header files for Linux 2.6.32-5-vserver-686
linux-headers-2.6.32-5-vserver-686-bigmem - Header files for Linux 2.6.32-5-vserver-686-bigmem
linux-headers-2.6.32-5-xen-686 - Header files for Linux 2.6.32-5-xen-686
linux-image-2.6.32-5-486 - Linux 2.6.32 for old PCs
linux-image-2.6.32-5-686 - Linux 2.6.32 for modern PCs
linux-image-2.6.32-5-686-bigmem - Linux 2.6.32 for PCs with 4GB+ RAM
linux-image-2.6.32-5-686-bigmem-dbg - Debugging infos for Linux 2.6.32-5-686-bigmem
linux-image-2.6.32-5-amd64 - Linux 2.6.32 for 64-bit PCs
linux-image-2.6.32-5-openvz-686 - Linux 2.6.32 for modern PCs, OpenVZ support
linux-image-2.6.32-5-openvz-686-dbg - Debugging infos for Linux 2.6.32-5-openvz-686
linux-image-2.6.32-5-vserver-686 - Linux 2.6.32 for modern PCs, Linux-VServer support
linux-image-2.6.32-5-vserver-686-bigmem - Linux 2.6.32 for PCs with 4GB+ RAM, Linux-VServer support
linux-image-2.6.32-5-vserver-686-bigmem-dbg - Debugging infos for Linux 2.6.32-5-vserver-686-bigmem
linux-image-2.6.32-5-xen-686 - Linux 2.6.32 for modern PCs, Xen dom0 support
linux-image-2.6.32-5-xen-686-dbg - Debugging infos for Linux 2.6.32-5-xen-686
xen-linux-system-2.6.32-5-xen-686 - Xen system with Linux 2.6.32 on modern PCs (meta-package)
10:45:03
#apt-get install linux-image-2.6.32-5-686
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  mysql-common libmysqlclient16
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  firmware-linux-free
Suggested packages:
  linux-doc-2.6.32 grub lilo
...
run-parts: executing /etc/kernel/postinst.d/update-notifier 2.6.32-5-686 /boot/vmlinuz-2.6.32-5-686
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.32-5-686 /boot/vmlinuz-2.6.32-5-686
Generating grub.cfg ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-2.6.39-bpo.2-686-pae
Found initrd image: /boot/initrd.img-2.6.39-bpo.2-686-pae
Found linux image: /boot/vmlinuz-2.6.32-5-686
Found initrd image: /boot/initrd.img-2.6.32-5-686
done
Setting up firmware-linux-free (2.6.32-41squeeze2) ...
10:48:25
#reboot

/dev/pts/4
10:52:29
#vim /boot/grub/grub.cfg
/dev/pts/5
10:52:29
#vim /boot/grub/grub.cfg
--- /tmp/l3-saved-2754.24702.4041	2012-04-25 11:52:53.000000000 +0300
+++ /boot/grub/grub.cfg	2012-04-25 11:53:02.000000000 +0300
@@ -9,7 +9,7 @@
 if [ -s $prefix/grubenv ]; then
   load_env
 fi
-set default="0"
+set default="2"
 if [ "${prev_saved_entry}" ]; then
   set saved_entry="${prev_saved_entry}"
   save_env saved_entry
10:55:54
#m-a a-i dahdi
               │                                                                         │
               │                                                                         │
               │                                                                         │
               │                                                                         │
               │                                                                         │
               │                                                                         │
               │                                                                         │
               │                                                                         │
               │                                100%                                     │
               │                                                                         │
               └─────────────────────────────────────────────────────────────────────────┘
Done with /usr/src/dahdi-modules-2.6.32-5-686_2.3.0.1+dfsg-2+2.6.32-41squeeze2_i386.deb .
dpkg -Ei /usr/src/dahdi-modules-2.6.32-5-686_2.3.0.1+dfsg-2+2.6.32-41squeeze2_i386.deb
Selecting previously deselected package dahdi-modules-2.6.32-5-686.
(Reading database ... 141786 files and directories currently installed.)
Unpacking dahdi-modules-2.6.32-5-686 (from .../dahdi-modules-2.6.32-5-686_2.3.0.1+dfsg-2+2.6.32-41squeeze2_i386.deb) ...
Setting up dahdi-modules-2.6.32-5-686 (1:2.3.0.1+dfsg-2+2.6.32-41squeeze2) ...
/dev/pts/4
10:55:54
#m-a a-i dahdi
               │                                                                         │
               │                                                                         │
               │                                                                         │
               │                                                                         │
               │                                                                         │
               │                                                                         │
               │                                                                         │
               │                                                                         │
               │                                100%                                     │
               │                                                                         │
               └─────────────────────────────────────────────────────────────────────────┘
Done with /usr/src/dahdi-modules-2.6.32-5-686_2.3.0.1+dfsg-2+2.6.32-41squeeze2_i386.deb .
dpkg -Ei /usr/src/dahdi-modules-2.6.32-5-686_2.3.0.1+dfsg-2+2.6.32-41squeeze2_i386.deb
Selecting previously deselected package dahdi-modules-2.6.32-5-686.
(Reading database ... 141786 files and directories currently installed.)
Unpacking dahdi-modules-2.6.32-5-686 (from .../dahdi-modules-2.6.32-5-686_2.3.0.1+dfsg-2+2.6.32-41squeeze2_i386.deb) ...
Setting up dahdi-modules-2.6.32-5-686 (1:2.3.0.1+dfsg-2+2.6.32-41squeeze2) ...
/dev/pts/5
10:57:14
#vim /etc/asterisk/meetme.conf
--- /tmp/l3-saved-2754.25631.23748	2012-04-25 11:58:18.000000000 +0300
+++ /etc/asterisk/meetme.conf	2012-04-25 11:59:17.000000000 +0300
@@ -43,3 +43,4 @@
 ;
 ;conf => 1234 
 ;conf => 2345,9938
+conf => 1000
/dev/pts/4
10:57:14
#vim /etc/asterisk/meetme.conf
/dev/pts/5
10:59:17
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2754.29262.27007	2012-04-25 11:59:27.000000000 +0300
+++ /etc/asterisk/extensions.conf	2012-04-25 12:00:11.000000000 +0300
@@ -42,6 +42,7 @@
 exten => _60XX,n,Dial(SIP/${DB(mobile/${EXTEN})},5)
 exten => _60XX,n,Voicemail(${EXTEN}@default)
 
+exten => _6100,1,MeetMe(1000)
 
 [national]
 exten => _30XX,1,Dial(SIP/bern/${EXTEN})
/dev/pts/4
10:59:17
#vim /etc/asterisk/extensions.conf
/dev/pts/5
11:03:15
#ssh linux2
The authenticity of host 'linux2 (192.168.20.1)' can't be established.
RSA key fingerprint is d3:60:89:89:09:1f:7a:50:ba:1e:9a:f0:19:62:21:3d.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'linux2' (RSA) to the list of known hosts.
root@linux2's password:
Linux linux2 2.6.32-5-686 #1 SMP Mon Mar 26 05:20:33 UTC 2012 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Apr 24 15:24:08 2012 from note.unix.nt
l3-agent is already running: pid=2230; pidfile=/root/.lilalo/l3-agent.pid
root@linux2:~# exit
logout
Connection to linux2 closed.
/dev/pts/4
11:03:15
#ssh linux2
The authenticity of host 'linux2 (192.168.20.1)' can't be established.
RSA key fingerprint is d3:60:89:89:09:1f:7a:50:ba:1e:9a:f0:19:62:21:3d.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'linux2' (RSA) to the list of known hosts.
root@linux2's password:
Linux linux2 2.6.32-5-686 #1 SMP Mon Mar 26 05:20:33 UTC 2012 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Apr 24 15:24:08 2012 from note.unix.nt
l3-agent is already running: pid=2230; pidfile=/root/.lilalo/l3-agent.pid
root@linux2:~# exit
logout
Connection to linux2 closed.
/dev/pts/5
11:03:26
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux0 (pid = 1755)
...
rtp          say          sip          skinny       sla          sqlite       ss7          stun
timing       transcoder   udptl        ulimit       unistim      voicemail
linux0*CLI> meetme
kick    lock    mute    unlock  unmute  list
linux0*CLI> meetme
kick    lock    mute    unlock  unmute  list
linux0*CLI> meetme list
No active MeetMe conferences.
linux0*CLI> quit
Executing last minute cleanups
/dev/pts/4
11:03:26
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux0 (pid = 1755)
...
rtp          say          sip          skinny       sla          sqlite       ss7          stun
timing       transcoder   udptl        ulimit       unistim      voicemail
linux0*CLI> meetme
kick    lock    mute    unlock  unmute  list
linux0*CLI> meetme
kick    lock    mute    unlock  unmute  list
linux0*CLI> meetme list
No active MeetMe conferences.
linux0*CLI> quit
Executing last minute cleanups
/dev/pts/5
11:05:00
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/4
11:05:00
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/5
11:05:51
#lsmod | less
/dev/pts/4
11:05:51
#lsmod | less
/dev/pts/5
11:06:00
#modprobe dahdi

/dev/pts/4
11:06:00
#modprobe dahdi

/dev/pts/5
11:06:04
#lsmod | grep dahdi
dahdi                 176034  0
crc_ccitt               1039  1 dahdi
/dev/pts/4
11:06:04
#lsmod | grep dahdi
dahdi                 176034  0
crc_ccitt               1039  1 dahdi
/dev/pts/5
11:06:29
#ssh linux3
root@linux3's password:
Linux linux3 2.6.32-5-686 #1 SMP Mon Mar 26 05:20:33 UTC 2012 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Apr 25 10:50:51 2012 from note.unix.nt
/dev/pts/4
11:06:29
#ssh linux3
root@linux3's password:
Linux linux3 2.6.32-5-686 #1 SMP Mon Mar 26 05:20:33 UTC 2012 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Apr 25 10:50:51 2012 from note.unix.nt
/dev/pts/5
11:16:17
#exit
exit
Connection to linux3 closed.
/dev/pts/4
11:16:17
#exit
exit
Connection to linux3 closed.
/dev/pts/5
11:16:20
#ssh linux5
root@linux5's password:
Linux linux5 2.6.32-5-686 #1 SMP Mon Mar 26 05:20:33 UTC 2012 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Apr 25 10:58:26 2012 from linux4.unix.nt
Removing stale pidfile
/dev/pts/4
11:16:20
#ssh linux5
root@linux5's password:
Linux linux5 2.6.32-5-686 #1 SMP Mon Mar 26 05:20:33 UTC 2012 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Apr 25 10:58:26 2012 from linux4.unix.nt
Removing stale pidfile
/dev/pts/5
11:16:24
#vim /etc/asterisk/extensions.conf
/dev/pts/4
11:16:24
#vim /etc/asterisk/extensions.conf
/dev/pts/5
11:17:55
#[local]
exit
Connection to linux5 closed.
/dev/pts/4
11:17:55
#[local]
exit
Connection to linux5 closed.
/dev/pts/5
11:18:06
#~
exten => _60XX,n,Dial(SIP/${DB(mobile/${EXTEN})},5)
exten => _60XX,n,Set(CHANNEL(musicclass)=class1)
exten => _60XX,n,Voicemail(${EXTEN}@default)
exten => _60XX,n,Set(MONITOR_FILENAME=${CALLERID(num)}-${EXTEN}-${STRFTIME(${EPOCH},Europe/Kiev,%Y-%m-%d-%%
exten => _6100,1,MeetMe(1000)
[national]
exten => _30XX,1,Dial(SIP/bern/${EXTEN})
[international]
exten => _10XX,1,Dial(SIP/bern/${EXTEN})
exten => _20XX,1,Dial(SIP/bern/${EXTEN})
exten => _40XX,1,Dial(SIP/bern/${EXTEN})
exten => _50XX,1,Dial(SIP/bern/${EXTEN})
[gr1]
include => internal                                                                     32,0-1        77%
/dev/pts/4
11:18:06
#~
[internal]
exten => 8001,1,Answer
exten => 8001,n,Record(/var/tmp/asterisk/wrong-number:gsm)
exten => 8002,1,Playback(/var/tmp/asterisk/03_Rosenrot)
exten => _X.,1,Playback(/var/tmp/asterisk/wrong-number)
exten => _81XX,1,Record(/var/tmp/asterisk/message${EXTEN:2}:gsm)
exten => _82XX,1,Playback(/var/tmp/asterisk/message${EXTEN:2}:gsm)
exten => 8300,1,VoiceMailMain()
exten => 8398,1,Set(MYLANG=de)" 65L, 1867C
exten => 8400,n,Playback(/var/tmp/asterisk/message04)
...
[national]
exten => _30XX,1,Dial(SIP/bern/${EXTEN})
                                                                                        32,0-1        77%
[international]
exten => _10XX,1,Dial(SIP/bern/${EXTEN})
exten => _20XX,1,Dial(SIP/bern/${EXTEN})
exten => _40XX,1,Dial(SIP/bern/${EXTEN})
exten => _50XX,1,Dial(SIP/bern/${EXTEN})
[gr1]
include => internal
/dev/pts/5
11:20:26
#[local]
; How many seconds before the scheduled end of the conference should
; the participants be warned?
;endalert=120
;
[rooms]
;
; Usage is conf => confno[,pin][,adminpin]
;
; Note that once a participant has called the conference, a change to the pin
; number done in this file will not take effect until there are no more users
; in the conference and it goes away.  When it is created again, it will have
; the new pin number.
;
;conf => 1234
;conf => 2345,9938
/dev/pts/4
11:20:26
#[local]
;earlyalert=3600
;
; How many seconds before the scheduled end of the conference should
; the participants be warned?
;endalert=120
; How many seconds before the scheduled end of the conference should
; the participants be warned?
;endalert=120
;
[rooms]
;
; Usage is conf => confno[,pin][,adminpin]
;
; Note that once a participant has called the conference, a change to the pin
; number done in this file will not take effect until there are no more users
; in the conference and it goes away.  When it is created again, it will have
; the new pin number.
;
;conf => 1234
;conf => 2345,9938
/dev/pts/5
11:20:36
#conf => 1000
;
; Conferences may be scheduled from realtime?
;schedule=yes
;
; Update realtime when members login/out of the conference
;logmembercount=no
;
; How much earlier than the start time should we allow participants to
"/etc/asterisk/meetme.conf" 46L, 1533C
; join the conference (in seconds)?
;fuzzystart=300
;
; If the participants join too early, how much time should we allow
; to tell them that they've joined too early, rather than telling them
; the conference simply doesn't exist (in seconds)?
;earlyalert=3600
/dev/pts/4
11:20:36
#conf => 1000
;
; Conferences may be scheduled from realtime?
;schedule=yes
;
; Update realtime when members login/out of the conference
;logmembercount=no
;
; How much earlier than the start time should we allow participants to
"/etc/asterisk/meetme.conf" 46L, 1533C
; join the conference (in seconds)?
;fuzzystart=300
;
; If the participants join too early, how much time should we allow
; to tell them that they've joined too early, rather than telling them
; the conference simply doesn't exist (in seconds)?
;earlyalert=3600
/dev/pts/5
11:21:57
#;
[local]
[local]> 6000,1,Playback(demo-thanks)
exten => _60XX,1,Answer
exten => _60XX,n,Set(CHANNEL(musicclass)=class1)
exten => _60XX,n,Set(MONITOR_FILENAME=${CALLERID(num)}-${EXTEN}-${STRFTIME(${EPOCH},Europe/Kiev,%Y-%m-%d-%%
H:%M:%S)})
exten => _60XX,n,Monitor(wav,${MONITOR_FILENAME})
exten => _60XX,n,Dial(SIP/${EXTEN},5,tT)
exten => _60XX,n,Dial(SIP/${DB(mobile/${EXTEN})},5)
exten => _60XX,n,Voicemail(${EXTEN}@default)
exten => _6100,1,MeetMe(1000)
[national]
[        ]
exten => _30XX,1,Dial(SIP/bern/${EXTEN})                                                48,1          52%
/dev/pts/4
11:21:57
#;
[local]
[local]
[local]
[local]> 6000,1,Playback(demo-thanks)
exten => _60XX,1,Answer
exten => _60XX,n,Set(CHANNEL(musicclass)=class1)
exten => _60XX,n,Set(MONITOR_FILENAME=${CALLERID(num)}-${EXTEN}-${STRFTIME(${EPOCH},Europe/Kiev,%Y-%m-%d-%%
H:%M:%S)})
exten => _60XX,n,Monitor(wav,${MONITOR_FILENAME})
exten => _60XX,n,Dial(SIP/${EXTEN},5,tT)
exten => _60XX,n,Dial(SIP/${DB(mobile/${EXTEN})},5)
exten => _60XX,n,Voicemail(${EXTEN}@default)
exten => _6100,1,MeetMe(1000)
exten => 6003,1,Dial(SIP/6001&SIP/6002)                                                 45,1          44%
[national]
[        ]
exten => _30XX,1,Dial(SIP/bern/${EXTEN})                                                48,1          52%
прошло 17 минут
/dev/pts/5
11:39:52
#vim /etc/asterisk/queue
/dev/pts/4
11:39:52
#vim /etc/asterisk/queue
/dev/pts/5
11:39:52
#vim /etc/asterisk/queues.conf
/dev/pts/4
11:39:52
#vim /etc/asterisk/queues.conf
/dev/pts/5
11:44:00
#; timeoutpriority, you are saying that the timeout specified as the argument to the
;
; yes - (empty) for joinempty; penalty,paused,invalid for leavewhenempty
; no - penalty,paused,invalid for joinempty; (empty) for leavewhenempty
; strict - penalty,paused,invalid,unavailable
; loose - penalty,invalid
;
; If this is set to yes, the following manager events will be generated:
; AgentCalled, AgentDump, AgentConnect, AgentComplete; setting this to
; vars also sends all channel variables with the event.
; (may generate some extra manager events, but probably ones you want)
...
~
strategy = ringall
~
1 line less; before #5  12:45:24                                                        504,18        Bot
                02
member => SIP/6001
member => SIP/6001
member => SIP/6002
m                                                                                       507,1         Bot
-- VISUAL LINE --                                                                       507,1         Bot
/dev/pts/4
11:44:00
#; timeoutpriority, you are saying that the timeout specified as the argument to the
;
; yes - (empty) for joinempty; penalty,paused,invalid for leavewhenempty
; no - penalty,paused,invalid for joinempty; (empty) for leavewhenempty
; strict - penalty,paused,invalid,unavailable
; loose - penalty,invalid
;
; If this is set to yes, the following manager events will be generated:
; AgentCalled, AgentDump, AgentConnect, AgentComplete; setting this to
; vars also sends all channel variables with the event.
; (may generate some extra manager events, but probably ones you want)
...
~
strategy = ringall
~
1 line less; before #5  12:45:24                                                        504,18        Bot
                02
member => SIP/6001
member => SIP/6001
member => SIP/6002
m                                                                                       507,1         Bot
-- VISUAL LINE --                                                                       507,1         Bot
/dev/pts/5
11:51:44
#member => SIP/6002
exten => _60XX,1,Answer
exten => _60XX,n,Set(CHANNEL(musicclass)=class1)
H:%M:%S)})
exten => _60XX,n,Set(MONITOR_FILENAME=${CALLERID(num)}-${EXTEN}-${STRFTIME(${EPOCH},Europe/Kiev,%Y-%m-%d-%%
exten => _60XX,n,Monitor(wav,${MONITOR_FILENAME})
exten => _60XX,n,Dial(SIP/${EXTEN},5,tT)
exten => _60XX,n,Dial(SIP/${DB(mobile/${EXTEN})},5)
exten => _60XX,n,Voicemail(${EXTEN}@default)
exten => _6100,1,MeetMe(1000)
[national]
...
exten => _20XX,1,Dial(SIP/bern/${EXTEN})
exten => _40XX,1,Dial(SIP/bern/${EXTEN})
exten => _50XX,1,Dial(SIP/bern/${EXTEN})
[gr1]
include => internal
include => local
include => national
include => international
[gr2]
include => internal
/dev/pts/4
11:51:44
#member => SIP/6002
exten => _X.,1,Playback(/var/tmp/asterisk/wrong-number)
exten => _81XX,1,Record(/var/tmp/asterisk/message${EXTEN:2}:gsm)
exten => _82XX,1,Playback(/var/tmp/asterisk/message${EXTEN:2}:gsm)
exten => _60XX,1,Answer
exten => _60XX,n,Set(CHANNEL(musicclass)=class1)
H:%M:%S)})
exten => _60XX,n,Set(MONITOR_FILENAME=${CALLERID(num)}-${EXTEN}-${STRFTIME(${EPOCH},Europe/Kiev,%Y-%m-%d-%%
exten => _60XX,n,Monitor(wav,${MONITOR_FILENAME})
exten => _60XX,n,Dial(SIP/${EXTEN},5,tT)
exten => _60XX,n,Dial(SIP/${DB(mobile/${EXTEN})},5)
...
exten => _20XX,1,Dial(SIP/bern/${EXTEN})
exten => _40XX,1,Dial(SIP/bern/${EXTEN})
exten => _50XX,1,Dial(SIP/bern/${EXTEN})
[gr1]
include => internal
include => local
include => national
include => international
[gr2]
include => internal

Файлы

  • table.txt
  • table.txt
    >
    6002 380661234502
    6003 380661234503
    6004 380661234504
    6005 380661234505
    

    Статистика

    Время первой команды журнала16:02:59 2012- 4-24
    Время последней команды журнала11:51:44 2012- 4-25
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, % 3.96
    Процент синтаксически неверно набранных команд, % 6.93
    Суммарное время работы с терминалом *, час 2.63
    Количество командных строк в единицу времени, команда/мин 0.64
    Частота использования команд
    vim22|===================| 19.13%
    ssh12|==========| 10.43%
    history7|======| 6.09%
    apt-cache6|=====| 5.22%
    asterisk5|====| 4.35%
    [local]5|====| 4.35%
    grep5|====| 4.35%
    lsmod4|===| 3.48%
    /etc/init.d/asterisk3|==| 2.61%
    apt-get3|==| 2.61%
    ls3|==| 2.61%
    less3|==| 2.61%
    exit3|==| 2.61%
    10002|=| 1.74%
    m-a2|=| 1.74%
    conf2|=| 1.74%
    ~2|=| 1.74%
    gr2|=| 1.74%
    €2|=| 1.74%
    member2|=| 1.74%
    60022|=| 1.74%
    modprobe2|=| 1.74%
    timeoutpriority,2|=| 1.74%
    hown1|| 0.87%
    greb1|| 0.87%
    .mp31|| 0.87%
    reboot1|| 0.87%
    grab1|| 0.87%
    cat1|| 0.87%
    type=friend1|| 0.87%
    pwd1|| 0.87%
    chown1|| 0.87%
    /etc/init.d/samba1|| 0.87%
    Âssh1|| 0.87%
    Â1|| 0.87%
    stty1|| 0.87%
    uname1|| 0.87%
    ____
    *) Интервалы неактивности длительностью 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$