/l3/users/igor-public/nt-voip/linux0.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 |
|
#cat table.txt
6002 380661234502 6003 380661234503 6004 380661234504 6005 380661234505 |
#pwd
/tmp |
#asterisk -rx "database get mobile 6002"
Value: 380661234502 |
#ssh linux5
![]() ssh: connect to host linux5 port 22: No route to host |
#ssh linux5.unix.nt
![]() ssh: connect to host linux5.unix.nt port 22: No route to host |
#
![]() bash: : command not found |
#
![]() bash: : command not found |
#Â
![]() |
#stty sane
|
#Â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. |
#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) |
#history | grep sox | less
|
#vim /etc/samba/smb.conf
|
#/etc/init.d/samba restart
Stopping Samba daemons: nmbd smbd. Starting Samba daemons: nmbd smbd. |
#history | greb sox
![]() bash: greb: команда не найдена |
#history | grab sox
![]() bash: grab: команда не найдена |
#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 |
#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 |
#history | grep sox
341 apt-get install libsox-fmt-mp3 sox 387 history | greb sox 388 history | grab sox 389 history | grep sox |
#ls /var/lib/asterisk/moh/
|
#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. |
#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 |
#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 |
#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 |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#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. |
#ssh linux5
![]() root@linux5's password: |
#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 |
#vim
![]() |
#.mp3 -r8000 -t gsm test_moh.gsm resample
exit Connection to linux3 closed. |
#vim /etc/asterisk/musiconhold.conf
|
#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 |
#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 |
#chown asterisk:asterisk /var/lib/asterisk/moh.class1
|
#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 |
#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 |
#vim /etc/asterisk/fe
![]() |
#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! |
#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) |
#vim /etc/asterisk/extensions.conf
|
#[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 |
#exit
exit Connection to linux3 closed. |
#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% |
#apt-cache search zaptel source
dahdi-source - DAHDI telephony interface - source code for kernel driver |
#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) ... |
#uname -a
Linux linux0 2.6.39-bpo.2-686-pae #1 SMP Thu Aug 4 11:02:22 UTC 2011 i686 GNU/Linux |
#apt-cache search 2.6.39 kernel headers
|
#apt-cache search 2.6.39 kernel header
|
#apt-cache search 2.6.39 kernel
linux-image-2.6.39-bpo.2-686-pae - Linux 2.6.39 for modern PCs |
#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 |
#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) ... |
#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) |
#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) ... |
#reboot
|
#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 |
#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) ... |
#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) ... |
#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 |
#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}) |
#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. |
#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. |
#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 |
#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 |
#/etc/init.d/asterisk restart
![]() Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#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 |
#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 |
#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 |
#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 |
#~
![]() 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% |
#~
[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 |
#[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 |
#[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 |
#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 |
#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 |
#;
![]() [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% |
#;
[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% |
#; 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 |
#; 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 |
#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 |
#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 |
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 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ 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 |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008