/l3/users/kos/nt-VOIP/linux6.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 |
|
#scp -r 192.168.50.1:/home/user/Music /home/user/Music/
![]() root@192.168.50.1's password: Vova.mp3 100% 70KB 69.8KB/s 00:00 jsmailo.mp3 100% 848KB 848.1KB/s 00:00 |
#scp -r 192.168.50.1:/home/user/Music /home/user/Music/
root@192.168.50.1's password: Vova.mp3 100% 70KB 69.8KB/s 00:00 jsmailo.mp3 100% 848KB 848.1KB/s 00:00 |
#sox -t mp3 Vova.mp3 -t gsm -cl -r800 Vova.gsm rate -ql
![]() sox FAIL sox: Channels value `l' is not a positive integer |
#sox -t mp3 Vova.mp3 -t gsm -cl -r800 Vova.gsm rate -ql
![]() sox FAIL sox: Channels value `l' is not a positive integer |
#sox -t mp3 Vova.mp3 -t gsm -c1 -r800 Vova.gsm rate -ql
![]() sox WARN formats: gsm can't encode at 800Hz; using 8000Hz sox WARN rate: rate clipped 5 samples; decrease volume? sox WARN dither: dither clipped 5 samples; decrease volume? |
#sox -t mp3 Vova.mp3 -t gsm -c1 -r800 Vova.gsm rate -ql
sox WARN formats: gsm can't encode at 800Hz; using 8000Hz sox WARN rate: rate clipped 5 samples; decrease volume? sox WARN dither: dither clipped 5 samples; decrease volume? |
#/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. |
#asterisk -rvvvvv
![]() Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux6 (pid = 17054) Verbosity was 0 and is now 5 linux6*CLI> moh show No such command 'moh show' (type 'core show help moh show' for other possible commands) linux6*CLI> moh No such command 'moh' (type 'core show help moh' for other possible commands) linux6*CLI> quit Executing last minute cleanups |
#asterisk -rvvvvv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux6 (pid = 17054) Verbosity was 0 and is now 5 linux6*CLI> moh show No such command 'moh show' (type 'core show help moh show' for other possible commands) linux6*CLI> moh No such command 'moh' (type 'core show help moh' for other possible commands) linux6*CLI> quit Executing last minute cleanups |
#vim /etc/asterisk/musiconhold.conf
--- /tmp/l3-saved-3748.1227.26076 2011-10-19 12:02:33.000000000 +0300 +++ /etc/asterisk/musiconhold.conf 2011-10-19 12:03:10.000000000 +0300 @@ -44,7 +44,7 @@ [default] mode=files -directory=moh +directory=/var/lib/asterisk/moh ; ;[native-random] ;mode=files |
#mv jsmailo.gsm /var/lib/asterisk/moh2
![]() mv: cannot stat `jsmailo.gsm': No such file or directory |
#mv jsmailo.gsm /var/lib/asterisk/moh2
![]() mv: cannot stat `jsmailo.gsm': No such file or directory |
#~
![]() ;mode=files ;directory=moh ;sort=alpha ; Sort the files in alphabetical order. If this option is ; ; not specified, the sort order is undefined. ; ========= ; Other (non-native) playback methods ; ========= [class2] mode=files directory=/var/lib/asterisk/moh2 ... ;application=/usr/bin/mpg123 -q -r 8000 -f 8192 -b 2048 --mono -s ;[ulawstream] ;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 "/etc/asterisk/musiconhold.conf" 88L, 2795C written |
#~
; ; Music on Hold -- Sample Configuration ; ; decrease consumable cpu cycles and memory [general] ; disabled by default ;cachertclasses=yes ; use 1 instance of moh class for all users who are using it, ; valid mode options: ; files -- read files from a directory in any Asterisk supported ; media format ; quietmp3 -- default ... mode=files directory=/var/lib/asterisk/moh ; ;[native-random] ;mode=files ;directory=moh ;digit=# ; If this option is set for a class, then when callers are ; ; listening to music on hold, they can press this digit, and ; ; they will switch to listening to this music class. ;sort=random ; Sort the files in random order |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3748.7234.19295 2011-10-19 12:27:08.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-10-19 12:29:59.000000000 +0300 @@ -8,7 +8,7 @@ exten => s,1,Set(CALLFILENAME=${EPOCH}-${STRFTIME(${EPOCH},Europe/Kiev,"%Y-%m-%d-%H-%M-%S")}-${MACRO_EXTEN}-${CALLERID(num)}) exten => s,n,MixMonitor(wav,${CALLFILENAME}) -exten => s,n,GotoIf($[[ "${CALLERID(num):0:2}" != "22" ]?dial) +exten => s,n,GotoIf($[ "${CALLERID(num):0:2}" != "22" ]?dial) exten => s,n,SetMusicOnHold(class2) exten => s,n(dial),Dial(${ARG1},10) @@ -21,7 +21,7 @@ exten => _228X,n,Hangup exten => 2297,1,VoicemailMain() - + exten => 2298,1,Record(/var/lib/asterisk/sounds/recorded-voice:gsm,2) exten => 2298,n,Playback(/var/lib/asterisk/sounds/recorded-voice) |
#sox -t mp3 jsmailo.mp3 -t gsm -c1 -r8000 gsmailo.gsm rate -ql
![]() sox WARN rate: rate clipped 992 samples; decrease volume? sox WARN dither: dither clipped 879 samples; decrease volume? |
#sox -t mp3 jsmailo.mp3 -t gsm -c1 -r8000 gsmailo.gsm rate -ql
sox WARN rate: rate clipped 992 samples; decrease volume? sox WARN dither: dither clipped 879 samples; decrease volume? |
#include => local
![]() Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux6 (pid = 17223) Verbosity is at least 2 linux6*CLI> moh show class No such command 'moh show class' (type 'core show help moh show class' for other possible commands) linux6*CLI> moh show classes Class: default Mode: files Directory: /var/lib/asterisk/moh linux6*CLI> quit Executing last minute cleanups |
#include => local
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux6 (pid = 17223) Verbosity is at least 2 linux6*CLI> moh show class No such command 'moh show class' (type 'core show help moh show class' for other possible commands) linux6*CLI> moh show classes Class: default Mode: files Directory: /var/lib/asterisk/moh linux6*CLI> quit Executing last minute cleanups |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-3748.31669.25317 2011-10-19 13:57:37.000000000 +0300 +++ /etc/asterisk/sip.conf 2011-10-19 13:58:13.000000000 +0300 @@ -23,6 +23,7 @@ secret=1234 host=dynamic language=de +videosupport=yes [tbs] context=gr4 |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-3748.14177.25991 2011-10-19 13:58:31.000000000 +0300 +++ /etc/asterisk/sip.conf 2011-10-19 13:58:57.000000000 +0300 @@ -6,6 +6,7 @@ tcpbindaddr=0.0.0.0 srvlookup=yes canreinvite=no +videosupport=yes register => bat:1234@192.168.50.1/tbs @@ -23,7 +24,6 @@ secret=1234 host=dynamic language=de -videosupport=yes [tbs] context=gr4 |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-3748.2769.14356 2011-10-19 14:11:10.000000000 +0300 +++ /etc/asterisk/sip.conf 2011-10-19 14:12:22.000000000 +0300 @@ -17,13 +17,16 @@ host=dynamic language=ru mailbox=2201@default +callgroup=1 +pickupgroup=1 [2202] context=gr3 type=friend secret=1234 host=dynamic -language=de +language=ru +callgroup=1 [tbs] context=gr4 |
#/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. |
#; example: Queue(dave,t,,,45)
![]() ; even if there is more than one available member ready to take ; calls until the head caller is connected with the member they ; were trying to get to. The next waiting caller in line then ; becomes the head caller, and they are then connected with the ; next available member and all available members and waiting callers ; waits while this happens. The new behavior, enabled by setting ; autofill=yes makes sure that when the waiting callers are connecting ; with available members in a parallel fashion until there are ; no more available members or no more waiting callers. This is ; probably more along the lines of how a queue should work and ... ;member => Agent/@1 ; Any agent in group 1 ;member => Agent/:1,1 ; Any agent in group 1, wait for first ; available, but consider with penalty 500,0-1 Bot [queue1]at oldest change 500,0-1 Bot [queue1] strategy=ringall member => SIP/2201 member => SIP/2202 "/etc/asterisk/queues.conf" 505L, 22516C written |
#; example: Queue(dave,t,,,45)
; ; Note that a timeout to fail out of a queue may be passed as part of ; an application call from extensions.conf: ; Queue(queuename,[options],[optionalurl],[announceoverride],[timeout]) ; shared_lastcall will make the lastcall and calls received be the same in ; members logged in more than one queue. ; This is useful to make the queue respect the wrapuptime of another queue ; for a shared member ; shared_lastcall=no ... ;member => Agent/@1 ; Any agent in group 1 ;member => Agent/:1,1 ; Any agent in group 1, wait for first ; available, but consider with penalty 500,0-1 Bot [queue1]at oldest change 500,0-1 Bot [queue1] strategy=ringall member => SIP/2201 member => SIP/2202 "/etc/asterisk/queues.conf" 505L, 22516C written |
#/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. |
#vim /etc/asterisk/queues.conf
--- /tmp/l3-saved-3748.23160.32758 2011-10-19 14:50:31.000000000 +0300 +++ /etc/asterisk/queues.conf 2011-10-19 14:52:12.000000000 +0300 @@ -515,6 +515,9 @@ [queue1] strategy=ringall -member => SIP/2201 -member => SIP/2202 +;member => SIP/2201 +;member => SIP/2202 + +member => Agent/1 +member => Agent/2 |
#vim /etc/asterisk/agents.conf
--- /tmp/l3-saved-3748.30866.16226 2011-10-19 14:52:29.000000000 +0300 +++ /etc/asterisk/agents.conf 2011-10-19 14:53:07.000000000 +0300 @@ -111,3 +111,5 @@ ; ;agent => 1001,4321,Mark Spencer ;agent => 1002,4321,Will Meadows +agent => 1,1234, Agent 1 +agent => 2,1234, Agent 2 |
#vim /etc/asterisk/features.conf
--- /tmp/l3-saved-3748.4072.20288 2011-10-19 15:11:28.000000000 +0300 +++ /etc/asterisk/features.conf 2011-10-19 15:13:15.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! |
#apt-get install dandi-source
![]() Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package dandi-source |
#apt-get install dandi-source
![]() Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package dandi-source |
#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. 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 (11.2 MB/s) Selecting previously deselected package dahdi-source. (Reading database ... 116068 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) ... |
#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. 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 (11.2 MB/s) Selecting previously deselected package dahdi-source. (Reading database ... 116068 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) ... |
#apt-cache search dahdi source
![]() dahdi-source - DAHDI telephony interface - source code for kernel driver |
#apt-cache search dahdi source
dahdi-source - DAHDI telephony interface - source code for kernel driver |
#m-a a-i
![]() build-essential is already the newest version. The following packages were automatically installed and are no longer required: mysql-common libmysqlclient16 Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Done! download Reading package lists... Done Building dependency tree Reading state information... Done ... The following extra packages will be installed: kbuild The following NEW packages will be installed: kbuild virtualbox-ose-source 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 1,173 kB of archives. After this operation, 2,916 kB of additional disk space will be used. Get:1 http://10.0.35.1/debian/ squeeze/main kbuild i386 1:0.1.98svn2318-8 [701 kB] Get:2 http://10.0.35.1/debian/ squeeze/main virtualbox-ose-source all 3.2.10-dfsg-1 [473 kB] Fetched 1,173 kB in 0s (1,501 kB/s) |
#m-a a-i
![]() âââââââââââââââââââââ⤠Updating cached package data âââââââââââââââââââââââ â .. â â â â â â 100% â â â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ Updated infos about 40 packages Getting source for kernel version: 2.6.39-bpo.2-686-pae apt-get install linux-headers-2.6.39-bpo.2-686-pae ... Fetched 1,173 kB in 0s (1,501 kB/s) Selecting previously deselected package kbuild. (Reading database ... 124492 files and directories currently installed.) Unpacking kbuild (from .../kbuild_1%3a0.1.98svn2318-8_i386.deb) ... Selecting previously deselected package virtualbox-ose-source. Unpacking virtualbox-ose-source (from .../virtualbox-ose-source_3.2.10-dfsg-1_all.deb) ... Processing triggers for man-db ... Setting up kbuild (1:0.1.98svn2318-8) ... Setting up virtualbox-ose-source (3.2.10-dfsg-1) ... download |
#vim /etc/apt/sources.list
--- /tmp/l3-saved-3748.1775.21864 2011-10-19 16:16:47.000000000 +0300 +++ /etc/apt/sources.list 2011-10-19 16:17:37.000000000 +0300 @@ -13,3 +13,4 @@ # squeeze-updates, previously known as 'volatile' deb http://10.0.35.1:9999/debian/ squeeze-updates main contrib non-free deb-src http://10.0.35.1:9999/debian/ squeeze-updates main contrib non-free +deb http://backports.debian.org/debian-backports squeeze-backports main |
#lspci | grep -i ethernet
![]() 00:19.0 Ethernet controller: Intel Corporation 82578DC Gigabit Network Connection (rev 06) 03:00.0 Ethernet controller: Digium, Inc. Wildcard TDM410 4-port analog card (rev 11) |
#lspci | grep -i ethernet
00:19.0 Ethernet controller: Intel Corporation 82578DC Gigabit Network Connection (rev 06) 03:00.0 Ethernet controller: Digium, Inc. Wildcard TDM410 4-port analog card (rev 11) |
#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-38) ... |
#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-38) ... |
### END /etc/grub.d/41_custom ###
![]() eth2 Link encap:Ethernet HWaddr 70:71:bc:09:3a:ec inet addr:192.168.60.1 Bcast:192.168.60.255 Mask:255.255.255.0 inet6 addr: fe80::7271:bcff:fe09:3aec/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:205 errors:0 dropped:0 overruns:0 frame:0 TX packets:303 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:77873 (76.0 KiB) TX bytes:42115 (41.1 KiB) Interrupt:20 Memory:f0600000-f0620000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:21 errors:0 dropped:0 overruns:0 frame:0 TX packets:21 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1359 (1.3 KiB) TX bytes:1359 (1.3 KiB) |
### END /etc/grub.d/41_custom ###
eth2 Link encap:Ethernet HWaddr 70:71:bc:09:3a:ec inet addr:192.168.60.1 Bcast:192.168.60.255 Mask:255.255.255.0 inet6 addr: fe80::7271:bcff:fe09:3aec/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:205 errors:0 dropped:0 overruns:0 frame:0 TX packets:303 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:77873 (76.0 KiB) TX bytes:42115 (41.1 KiB) Interrupt:20 Memory:f0600000-f0620000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:21 errors:0 dropped:0 overruns:0 frame:0 TX packets:21 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1359 (1.3 KiB) TX bytes:1359 (1.3 KiB) |
#ping 192.168
![]() PING 192.168 (192.0.0.168) 56(84) bytes of data. ^C --- 192.168 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1008ms |
#ping 192.168
![]() PING 192.168 (192.0.0.168) 56(84) bytes of data. ^C --- 192.168 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1008ms |
#ping 192.168.50.1
PING 192.168.50.1 (192.168.50.1) 56(84) bytes of data. 64 bytes from 192.168.50.1: icmp_req=1 ttl=63 time=0.207 ms 64 bytes from 192.168.50.1: icmp_req=2 ttl=63 time=0.272 ms ^C --- 192.168.50.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.207/0.239/0.272/0.036 ms |
Время первой команды журнала | 10:52:02 2011-10-19 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:36:09 2011-10-19 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 15.84 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.85 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.59 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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