/l3/users/Amel/asterisk/linux4.unix.nt.unix.nt/root :1 :2 :3 :4 :5 |
|
#ai festival
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Уже установлена самая новая версия festival. festival установлен вручную. обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 5 пакетов не обновлено. |
#ln -s /etc/rc2.d/S90festival /etc/init.d/festival
ln: создание символьной ссылки `/etc/init.d/festival': Файл существует |
#ln -s /etc/init.d/festival /etc/rc2.d/S90festival
|
#ln -s /etc/init.d/festival /etc/rc0.d/K10festival
|
#ln -s /etc/init.d/festival /etc/rc9.d/K10festival
ln: создание символьной ссылки `/etc/rc9.d/K10festival': Нет такого файла или каталога |
#chmod +x /etc/init.d/festival
|
#echo "RUN_FESTIVAL=yes" >> /etc/default/festival
|
#less /etc/default/festival
|
#vim /etc/festival.scm
|
#netstat -ln|less
|
#netstat -lnp|grep fest
tcp 0 0 0.0.0.0:1314 0.0.0.0:* LISTEN 5051/festival |
#netstat -lnp|grep fest
tcp 0 0 0.0.0.0:1314 0.0.0.0:* LISTEN 5051/festival |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux4 (pid = 5085) Verbosity was 0 and is now 3 -- Executing [1488@group1:1] Festival("SIP/1401-08e32e30", "Privet mugik!!! Poka mugik!") in new stack == Parsing '/etc/asterisk/festival.conf': Found [Oct 28 12:47:17] WARNING[5127]: app_festival.c:496 festival_exec: Unable to read from cache/festival fd == Spawn extension (group1, 1488, 1) exited non-zero on 'SIP/1401-08e32e30' linux4*CLI> restart now linux4*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux4 (pid = 5130) Verbosity was 0 and is now 3 -- Executing [1488@group1:1] Festival("SIP/1401-08ede3e8", ""Privet mugik!!! Poka mugik!"") in new stack == Parsing '/etc/asterisk/festival.conf': Found [Oct 28 12:49:26] WARNING[5171]: app_festival.c:496 festival_exec: Unable to read from cache/festival fd == Spawn extension (group1, 1488, 1) exited non-zero on 'SIP/1401-08ede3e8' linux4*CLI> restart now linux4*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux4 (pid = 5174) Verbosity was 0 and is now 3 -- Executing [1488@group1:1] Festival("SIP/1401-088f4e48", "Privet mugik!!! Poka mugik!") in new stack == Parsing '/etc/asterisk/festival.conf': Found [Oct 28 12:50:25] WARNING[5215]: app_festival.c:496 festival_exec: Unable to read from cache/festival fd == Spawn extension (group1, 1488, 1) exited non-zero on 'SIP/1401-088f4e48' linux4*CLI> restart now linux4*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux4 (pid = 5216) Verbosity was 0 and is now 3 -- Executing [1488@group1:1] Festival("SIP/1401-09ffd3d8", "Privet mugik!!! Poka mugik!") in new stack == Parsing '/etc/asterisk/festival.conf': Found [Oct 28 12:51:11] WARNING[5258]: app_festival.c:496 festival_exec: Unable to read from cache/festival fd == Spawn extension (group1, 1488, 1) exited non-zero on 'SIP/1401-09ffd3d8' linux4*CLI> restart now linux4*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux4 (pid = 5268) Verbosity was 0 and is now 3 -- Executing [1488@group1:1] Festival("SIP/1401-09e45e48", "Privet mugik!!! Poka mugik!") in new stack == Parsing '/etc/asterisk/festival.conf': Found [Oct 28 12:52:05] WARNING[5309]: app_festival.c:496 festival_exec: Unable to read from cache/festival fd == Spawn extension (group1, 1488, 1) exited non-zero on 'SIP/1401-09e45e48' linux4*CLI> restart now linux4*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#ls -al /var/lib/asterisk/festivalcache
ls: невозможно получить доступ к /var/lib/asterisk/festivalcache: Нет такого файла или каталога |
#chown asterisk:asterisk /var/lib/asterisk/festivalcache
|
#cp /usr/share/festival/festival.scm /etc/
|
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... odbc originate oss pri queue realtime reload remove restart rtcp rtp say send set show sip skinny sla soft stop stun transcoder transfer udptl unload unmute voicemail zap linux4*CLI> restart now linux4*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': Found == Parsing '/etc/asterisk/extconfig.conf': Found Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux4 (pid = 5408) Verbosity was 0 and is now 3 linux4*CLI> restart now linux4*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#as festival russian
|
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#as festival
brltty-flite - Access software for a blind person using a braille display eflite - Festival-Lite based emacspeak speech server espeak - A multi-lingual software speech synthesizer festival-czech - Czech support for Festival speech synthesis system festival-doc - Documentation for Festival festival-freebsoft-utils - Festival extensions and utilities festival-hi - festival text to speech synthesizer for Hindi language festvox-hi-nsk - Hindi male speaker for festival festlex-ifd - Italian support for Festival festvox-italp16k - Italian female speaker for Festival ... kttsd - a Text-to-Speech system for KDE kismet - Wireless 802.11b monitoring tool libperlspeak-perl - Perl Module for text to speech with festival, espeak, cepstral pidgin-festival - pidgin plugin to hear incoming messages using voice synthesis raccess4vbox3 - DTMF support and utilities for vbox3 screader - Screen reader using software or hardware speech synthesizer speech-dispatcher-festival - Festival support for Speech Dispatcher libestools1.2 - Edinburgh Speech Tools Library stardict-plugin-festival - International dictionary - Festival TTS plugin yasr - General-purpose console screen reader |
#ai source
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово E: Не удалось найти пакет source |
#context=group1
register => vn:1234@192.168.101.1/nk register => vn:1234@192.168.102.1/rv register => vn:1234@192.168.103.1/kv "/etc/asterisk/sip.conf" 63L, 1041C [authentication] [1401] type=friend secret=1234 host=dynamic callerid="Alex" |
#syn on
|
#ai sources
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово E: Не удалось найти пакет sources |
#ai saptel-source
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово E: Не удалось найти пакет saptel-source |
#ai saptel-sources
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово E: Не удалось найти пакет saptel-sources |
#ai saptel-source
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово E: Не удалось найти пакет saptel-source |
#ai zaptel-source
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Будут установлены следующие дополнительные пакеты: fxload zaptel НОВЫЕ пакеты, которые будут установлены: fxload zaptel zaptel-source обновлено 0, установлено 3 новых пакетов, для удаления отмечено 0 пакетов, и 5 пакетов не обновлено. Необходимо скачать 1460kБ архивов. После данной операции, объём занятого дискового пространства возрастёт на 2519kB. ... Выбор ранее не выбранного пакета zaptel-source. Распаковывается пакет zaptel-source (из файла .../zaptel-source_1%3a1.4.11~dfsg-3_all.deb)... Обрабатываются триггеры для man-db ... Обрабатываются триггеры для doc-base ... Processing 3 added doc-base file(s)... Registering documents with scrollkeeper... Настраивается пакет fxload (0.0.20020411-1.1) ... Настраивается пакет zaptel (1:1.4.11~dfsg-3) ... Zaptel telephony kernel driver: FATAL: Module ztdummy not found. Настраивается пакет zaptel-source (1:1.4.11~dfsg-3) ... |
#m-a a-i zaptel-source
lqqqqqqqqqqqqqqqСбоÑка zaptel-source, Ñаг 1, подождиÑе...qqqqqqqqqqqqqqqqqk x СбоÑка наÑинаеÑÑÑ... x x x x x x x x x x x x x x x x x ... zttranscode.o wct4xxp/ wctc4xxp/ xpp/ wctdm24xxp/ wcte12xp/" clean m-a install zaptel-source Ð´Ð»Ñ ÑÑÑановка пакеÑа. 100% ÐавеÑÑено Ñ /usr/src/zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-25lenny1_i386.deb . dpkg -Ei /usr/src/zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-25lenny1_i386.deb ÐÑÐ±Ð¾Ñ Ñанее не вÑбÑанного пакеÑа zaptel-modules-2.6.26-2-686. (ЧÑение Ð±Ð°Ð·Ñ Ð´Ð°Ð½Ð½ÑÑ ... на даннÑй Ð¼Ð¾Ð¼ÐµÐ½Ñ ÑÑÑановлено 109672 Ñайлов и каÑалогов.) РаÑпаковÑваеÑÑÑ Ð¿Ð°ÐºÐµÑ zaptel-modules-2.6.26-2-686 (из Ñайла .../zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-25lenny1_i386.deb)... ÐаÑÑÑаиваеÑÑÑ Ð¿Ð°ÐºÐµÑ zaptel-modules-2.6.26-2-686 (1:1.4.11~dfsg-3+2.6.26-25lenny1) ... |
#modprobe -i zaptel
|
#modprobe -l|grep zaptel
/lib/modules/2.6.26-2-686/misc/zaptel.ko |
#lsmod zaptel
Usage: lsmod |
#lsmod |grep zaptel
zaptel 185060 0 crc_ccitt 2080 1 zaptel |
#cat /proc/cpuinfo
processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Intel(R) Celeron(R) CPU 2.50GHz stepping : 9 cpu MHz : 2493.787 cache size : 128 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe up pebs bts cid xtpr bogomips : 4993.13 clflush size : 64 power management: |
#modprobe ztdummy
|
#lsmod |grep ztdummy
ztdummy 3056 0 zaptel 185060 1 ztdummy |
#ls /dev/zap/
channel ctl pseudo timer |
#cp /etc/asterisk/iax.conf{,.orig}
|
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... (none) Call parking ------------ Parking extension : 700 Parking context : parkedcalls Parked call extensions: 701-720 linux4*CLI> restart now linux4*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... [Oct 28 14:41:23] NOTICE[10271]: rtp.c:1285 ast_rtp_read: Unknown RTP codec 126 received from '192.168.104.201' [Oct 28 14:41:23] NOTICE[10271]: rtp.c:1285 ast_rtp_read: Unknown RTP codec 126 received from '192.168.104.201' [Oct 28 14:41:23] NOTICE[10271]: rtp.c:1285 ast_rtp_read: Unknown RTP codec 126 received from '192.168.104.201' == Spawn extension (group1, 1494, 1) exited non-zero on 'SIP/1401-08ff0860' linux4*CLI> restart No such command 'restart' (type 'help restart' for other possible commands) linux4*CLI> restart now linux4*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- <SIP/1401-09457e68> Playing 'conf-invalidpin' (language 'ru') -- <SIP/1401-09457e68> Playing 'conf-getpin' (language 'ru') == Spawn extension (group1, 1494, 1) exited non-zero on 'SIP/1401-09457e68' -- Stopped music on hold on SIP/1402-094542a0 -- Hungup 'Zap/pseudo-302346950' == Spawn extension (group2, 1494, 1) exited non-zero on 'SIP/1402-094542a0' restart now linux4*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Called 1401 -- SIP/1401-09506b68 is ringing -- SIP/1401-09506b68 answered SIP/1402-094f0940 == Spawn extension (macro-answer-with-monitor, s, 5) exited non-zero on 'SIP/1402-094f0940' in macro 'answer-with-monitor' == Spawn extension (macro-answer-with-monitor, s, 5) exited non-zero on 'SIP/1402-094f0940' [Oct 28 15:30:26] NOTICE[10493]: res_monitor.c:339 ast_monitor_stop: monitor executing /usr/local/bin/monitor_exec "/var/spool/asterisk/monitor/voice-1401-1402-1288268991-in.wav" "/var/spool/asterisk/monitor/voice-1401-1402-1288268991-out.wav" "/var/spool/asterisk/monitor/voice-1401-1402-1288268991.wav" & linux4*CLI> restart now linux4*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vim /etc/asterisk/iax.conf
--- /tmp/l3-saved-3513.14268.8296 2010-10-28 15:43:34.000000000 +0300 +++ /etc/asterisk/iax.conf 2010-10-28 15:49:45.000000000 +0300 @@ -1,11 +1,12 @@ [general] context=default ; Default context for incoming calls allowoverlap=no ; Disable overlap dialing support. (Default is yes) -bindport=5060 ; UDP Port to bind to (SIP standard port is 5060) +;bindport=5060 ; UDP Port to bind to (SIP standard port is 5060) bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all) srvlookup=yes ; Enable DNS SRV lookups on outbound calls ;canreinvite=no videosupport=yes +trunk=yes register => vn:1234@192.168.101.1/nk register => vn:1234@192.168.102.1/rv @@ -13,27 +14,6 @@ [authentication] -[1401] -type=friend -secret=1234 -host=dynamic -callerid="Alex" -context=group1 -language=ru -mailbox=1401 -callgroup=1 -pickupgroup=2 - -[1402] -type=friend -secret=1234 -host=dynamic -callerid="Alex X-Lite" -context=group2 -language=ru -mailbox=1402 -callgroup=2 -pickupgroup=1 [nk] type=friend |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... linux4*CLI> iax2 show peers Name/Username Host Mask Port Status kv/vn (Unspecified) (D) 255.255.255.255 0 Unmonitored rv/vn (Unspecified) (D) 255.255.255.255 0 Unmonitored nk/vn (Unspecified) (D) 255.255.255.255 0 Unmonitored 3 iax2 peers [0 online, 0 offline, 3 unmonitored] linux4*CLI> restart now linux4*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vim /etc/asterisk/iax.conf
--- /tmp/l3-saved-3513.12973.7708 2010-10-28 15:50:43.000000000 +0300 +++ /etc/asterisk/iax.conf 2010-10-28 15:51:09.000000000 +0300 @@ -7,6 +7,7 @@ ;canreinvite=no videosupport=yes trunk=yes +authentication=md5 register => vn:1234@192.168.101.1/nk register => vn:1234@192.168.102.1/rv |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... linux4*CLI> iax2 show peers Name/Username Host Mask Port Status kv/vn (Unspecified) (D) 255.255.255.255 0 Unmonitored rv/vn (Unspecified) (D) 255.255.255.255 0 Unmonitored nk/vn (Unspecified) (D) 255.255.255.255 0 Unmonitored 3 iax2 peers [0 online, 0 offline, 3 unmonitored] linux4*CLI> restart now linux4*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#vim /etc/asterisk/iax.conf
--- /tmp/l3-saved-3513.3996.32376 2010-10-28 15:51:31.000000000 +0300 +++ /etc/asterisk/iax.conf 2010-10-28 15:59:19.000000000 +0300 @@ -7,13 +7,13 @@ ;canreinvite=no videosupport=yes trunk=yes -authentication=md5 +;authentication=md5 -register => vn:1234@192.168.101.1/nk -register => vn:1234@192.168.102.1/rv -register => vn:1234@192.168.103.1/kv +register => vn:1234@192.168.101.1 +register => vn:1234@192.168.102.1 +register => vn:1234@192.168.103.1 -[authentication] +;[authentication] [nk] @@ -22,6 +22,8 @@ host=dynamic username=vn context=group3 +trunk=yes +;authentication=md5 [rv] type=friend @@ -29,6 +31,7 @@ host=dynamic username=vn context=group3 +;authentication=md5 [kv] type=friend @@ -36,6 +39,9 @@ host=dynamic username=vn context=group3 +trunk=yes +;auth=md5 +;authentication=md5 ;disallow=all ;allow=gsm ;allow=ulaw |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... Name/Username Host Mask Port Status kv/vn (Unspecified) (D) 255.255.255.255 0 Unmonitored rv/vn (Unspecified) (D) 255.255.255.255 0 Unmonitored nk/vn (Unspecified) (D) 255.255.255.255 0 Unmonitored 3 iax2 peers [0 online, 0 offline, 3 unmonitored] [Oct 28 15:52:34] NOTICE[10729]: chan_sip.c:15642 handle_request_register: Registration from '<sip:kv@192.168.104.1>' failed for '192.168.103.1' - No matching peer found linux4*CLI> restart now linux4*CLI> Disconnected from Asterisk server Executing last minute cleanups |
# 3 allowoverlap=no ; Disable overlap dialing support. (Default
123 ; threshold. 124 ; Resyncing can be disabled by setting this parameter to -1. 125 ; 126 ; maxjitterinterps: the maximum number of interpolation frames the jitterbuff fer 127 ; should return in a row. Since some clients do not send CNG/DTX frames to 128 ; indicate silence, the jitterbuffer will assume silence has begun after 130 ; a long silence. 132 133 jitterbuffer=no 134 forcejitterbuffer=no 135 ;maxjitterbuffer=1000 131 ; returning this many interpolations. This prevents interp135,21 29% 136 ;maxjitterinterps=10 137 ;resyncthreshold=1000 138 139 ;trunkfreq=20 ; How frequently to send trunk msgs (in ms) 141 ; Should we send timestamps for the individual sub-frames within trunk framee s? 140 141,53 30% |
#Pattern not found (press RETURN)
find: unknown predicate `--name' |
#find / -name *leases
/var/lib/dhcp3/dhclient.eth1.leases /var/lib/dhcp3/dhclient.leases /var/lib/dhcp3/dhcpd.leases |
#vim /tmp/call
--- /dev/null 2010-10-28 09:16:19.514564236 +0300 +++ /tmp/call 2010-10-28 17:08:32.000000000 +0300 @@ -0,0 +1,3 @@ +Context:SIP/1401 +Extension:1496 +Context:services |
#chown asterisk:asterisk /tmp/call
|
#cp -p /tmp/call /var/spool/asterisk/outgoing/
|
#ls -l /var/spool/asterisk/outgoing/
итого 4 -rw-r--r-- 1 asterisk asterisk 49 Окт 28 17:08 call |
#~
итого 4 -rw-r--r-- 1 asterisk asterisk 49 Окт 28 17:08 call |
#ls -l /var/spool/asterisk/outgoing/
итого 0 |
#vim /tmp/call
--- /tmp/l3-saved-3513.20031.21989 2010-10-28 17:13:30.000000000 +0300 +++ /tmp/call 2010-10-28 17:13:42.000000000 +0300 @@ -1,3 +1,3 @@ -Context:SIP/1401 +Channel:SIP/1402 Extension:1496 Context:services |
#halt
|
#ls -al /var/spool/asterisk/
dictate/ menu1/ outgoing/ tmp/ meetme/ monitor/ system/ voicemail/ |
#ls -al /var/spool/asterisk/monitor/
итого 1168 drwxr-x--- 2 asterisk asterisk 4096 Окт 28 17:35 . drwxr-x--- 10 asterisk asterisk 4096 Окт 27 17:11 .. -rw-rw---- 1 asterisk asterisk 44928 Окт 28 17:25 voice-1401--1288275858.mp3 -rw-rw---- 1 asterisk asterisk 47016 Окт 28 17:26 voice-1401--1288275912.mp3 -rw-rw---- 1 asterisk asterisk 4104 Окт 27 17:55 voice-1401-1302-1288191350.mp3 -rw-rw---- 1 asterisk asterisk 10008 Окт 28 12:14 voice-1401-1302-1288257267.mp3 -rw-rw---- 1 asterisk asterisk 20952 Окт 28 12:16 voice-1401-1302-1288257339.mp3 -rw-rw---- 1 asterisk asterisk 10872 Окт 28 12:23 voice-1401-1302-1288257808.mp3 -rw-rw---- 1 asterisk asterisk 24408 Окт 28 14:33 voice-1401-1302-1288265587.mp3 ... -rw-rw---- 1 asterisk asterisk 20160 Окт 27 16:25 voice-1402-1401-1288185883.mp3 -rw-rw---- 1 asterisk asterisk 25200 Окт 27 16:32 voice-1402-1401-1288186345.mp3 -rw-rw---- 1 asterisk asterisk 7920 Окт 27 16:34 voice-1402-1401-1288186457.mp3 -rw-rw---- 1 asterisk asterisk 5760 Окт 28 12:17 voice-1402-1401-1288257417.mp3 -rw-rw---- 1 asterisk asterisk 33120 Окт 28 12:34 voice-1402-1401-1288258376.mp3 -rw-rw---- 1 asterisk asterisk 39744 Окт 28 14:28 voice-1402-1401-1288265235.mp3 -rw-rw---- 1 asterisk asterisk 11520 Окт 28 14:29 voice-1402-1401-1288265332.mp3 -rw-rw---- 1 asterisk asterisk 37800 Окт 28 14:30 voice-1402-1401-1288265367.mp3 -rw-rw---- 1 asterisk asterisk 25416 Окт 28 14:31 voice-1402-1401-1288265458.mp3 -rw-rw---- 1 asterisk asterisk 28728 Окт 28 14:32 voice-1402-1401-1288265492.mp3 |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... linux4*CLI> keys show Key Name Type Status Sum freeworlddialup PUBLIC [Loaded] 5efd552d73309f29212331a75f3c701e iaxtel PUBLIC [Loaded] d919b3ef03eb4dc54c8fee86bfeeada1 jnctn PUBLIC [Loaded] d5587bfddfe4d3773c2a1ef05d4bd86c 3 known RSA keys. linux4*CLI> restart now linux4*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#ssh linux8
The authenticity of host 'linux8 (192.168.108.1)' can't be established. RSA key fingerprint is da:4a:92:81:55:fc:a8:1b:fd:c8:e4:7a:2e:68:f0:fa. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'linux8,192.168.108.1' (RSA) to the list of known hosts. root@linux8's password: Linux linux8.unix.nt 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 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: Fri Oct 29 09:51:27 2010 from linux10.unix.nt l3-agent is already running: pid=2242; pidfile=/root/.lilalo/l3-agent.pid |
#lspci
00:00.0 Host bridge: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02) 00:02.0 VGA compatible controller: Intel Corporation 82865G Integrated Graphics Controller (rev 02) 00:03.0 PCI bridge: Intel Corporation 82865G/PE/P PCI to CSA Bridge (rev 02) 00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02) 00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 (rev 02) 00:1d.3 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2) 00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02) 00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801EB (ICH5) SATA Controller (rev 02) 00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02) 00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02) 01:01.0 Ethernet controller: Intel Corporation 82547EI Gigabit Ethernet Controller 02:00.0 Ethernet controller: MYSON Technology Inc SURECOM EP-320X-S 100/10M Ethernet PCI Adapter |
#vim /etc/asterisk/zapata.conf \
|
# 75 ; international: International ISDN
asterisk astgenkey astman |
#astgenkey -n
This script generates an RSA private and public key pair in PEM format for use by Asterisk. You will be asked to enter a passcode for your key multiple times. Please enter the same code each time. The resulting files will need to be moved to /var/lib/asterisk/keys if you want to use them, and any private keys (.key files) will need to be initialized at runtime either by running Asterisk with the '-i' option, or with the 'init keys' command once Asterisk is running. Press ENTER to continue or ^C to cancel. Enter key name: linux4.unix.nt Generating SSL key 'linux4.unix.nt': Generating RSA private key, 1024 bit long modulus ....++++++ ...++++++ e is 65537 (0x10001) writing RSA key Key creation successful. Public key: linux4.unix.nt.pub Private key: linux4.unix.nt.key |
#cp ./
\ .gconf/ linux4.unix.nt.pub 2/ .gconfd/ .metacity/ .bash_history .gksu.lock .mozilla/ .bash_logout .gnome/ .nautilus/ .bash_profile .gnome2/ pbdirectory.txt .bashrc .gnome2_private/ phonetic.txt .config/ .gnupg/ .profile convert.py .gstreamer-0.10/ .recently-used.xbel .dbus/ .gvfs/ ru/ Desktop/ .ICEauthority ru.txt dictate.txt install .ssh/ digits.txt .l3rc .update-notifier/ .dmrc letters.txt .viminfo .evolution/ .lilalo/ .Xauthority followme.txt linux4.unix.nt.key .xsession-errors |
#mkdir /var/lib/asterisk/keys
|
#ls -al /var/lib/asterisk/keys
итого 8 drwxr-xr-x 2 root root 4096 Окт 29 11:04 . drwxr-xr-x 6 asterisk asterisk 4096 Окт 29 11:04 .. |
#ls -al /var/lib/asterisk/
итого 36 drwxr-xr-x 6 asterisk asterisk 4096 Окт 29 11:04 . drwxr-xr-x 48 root root 4096 Окт 26 16:28 .. -rw-rw---- 1 asterisk asterisk 8192 Окт 29 10:23 astdb -rw-r----- 1 asterisk asterisk 911 Окт 27 11:44 dead.letter drwxr-xr-x 2 asterisk asterisk 4096 Окт 28 12:55 festivalcache drwxr-xr-x 2 root root 4096 Окт 29 11:04 keys drwxr-xr-x 2 asterisk asterisk 4096 Окт 28 11:40 moh drwxr-xr-x 3 asterisk asterisk 4096 Окт 25 16:52 sounds |
#chown asterisk:asterisk /var/lib/asterisk/keys/
|
#scp ./linux4.unix.nt.pub linux3:/tmp/
The authenticity of host 'linux3 (192.168.103.1)' can't be established. RSA key fingerprint is d0:3d:36:ae:34:a7:81:c5:fe:05:52:94:83:29:98:11. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'linux3,192.168.103.1' (RSA) to the list of known hosts. root@linux3's password: linux4.unix.nt.pub 100% 272 0.3KB/s 00:00 |
#ls -al /var/lib/asterisk/keys/
итого 16 drwxr-xr-x 2 asterisk asterisk 4096 Окт 29 11:07 . drwxr-xr-x 6 asterisk asterisk 4096 Окт 29 11:04 .. -rw-r--r-- 1 asterisk asterisk 272 Окт 29 11:06 linux3.unix.nt.pub -rw------- 1 asterisk asterisk 887 Окт 29 11:03 linux4.unix.nt.key |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... linux4*CLI> keys show Key Name Type Status Sum freeworlddialup PUBLIC [Loaded] 5efd552d73309f29212331a75f3c701e iaxtel PUBLIC [Loaded] d919b3ef03eb4dc54c8fee86bfeeada1 jnctn PUBLIC [Loaded] d5587bfddfe4d3773c2a1ef05d4bd86c 3 known RSA keys. linux4*CLI> restart now linux4*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#ai ejabberd
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Будут установлены следующие дополнительные пакеты: erlang-base erlang-nox libsctp1 lksctp-tools Предлагаемые пакеты: libunix-syslog-perl erlang-x11 erlang erlang-manpages erlang-doc-html НОВЫЕ пакеты, которые будут установлены: ejabberd erlang-base erlang-nox libsctp1 lksctp-tools обновлено 0, установлено 5 новых пакетов, для удаления отмечено 0 пакетов, и 5 пакетов не обновлено. ... Настраивается пакет erlang-base (1:12.b.3-dfsg-4) ... Searching for services which depend on erlang and should be started...none found. Настраивается пакет erlang-nox (1:12.b.3-dfsg-4) ... Настраивается пакет ejabberd (2.0.1-6+lenny2) ... adduser: Предупреждение: домашний каталог `/var/lib/ejabberd' не принадлежит пользователю, который сейчас создаётся. Generating SSL certificate /etc/ejabberd/ejabberd.pem... Creating config file /etc/ejabberd/ejabberd.cfg with new version Starting jabber server: ejabberd..65.......................................................... failed. Настраивается пакет lksctp-tools (1.0.9.dfsg-1) ... Обрабатываются триггеры для menu ... |
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 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. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Format for call is ulaw -- IAX2/kv-16384 is circuit-busy -- Hungup 'IAX2/kv-16384' == Everyone is busy/congested at this time (1:0/1/0) == Auto fallthrough, channel 'SIP/1401-09f08de8' status is 'CONGESTION' [Oct 29 13:44:51] NOTICE[4060]: chan_iax2.c:8882 __iax2_poke_noanswer: Peer 'kv' is now UNREACHABLE! Time: 11 [Oct 29 13:54:26] NOTICE[4042]: chan_sip.c:16257 sip_poke_noanswer: Peer '1402' is now UNREACHABLE! Last qualify: 15 [Oct 29 13:59:01] NOTICE[4061]: chan_iax2.c:7961 socket_process: Peer 'kv' is now REACHABLE! Time: 13 linux4*CLI> exit Executing last minute cleanups |
#ai pidgin
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово Будут установлены следующие дополнительные пакеты: libgadu3 libhesiod0 libmeanwhile1 libpurple-bin libpurple0 libsasl2-modules libzephyr3 pidgin-data Предлагаемые пакеты: tcl8.4 tk8.4 libsasl2-modules-otp libsasl2-modules-ldap libsasl2-modules-sql libsasl2-modules-gssapi-mit libsasl2-modules-gssapi-heimdal НОВЫЕ пакеты, которые будут установлены: ... Настраивается пакет libgadu3 (1:1.8.0+r592-3) ... Настраивается пакет libmeanwhile1 (1.0.2-3) ... Настраивается пакет pidgin-data (2.4.3-4lenny7) ... Настраивается пакет libhesiod0 (3.0.2-18.3) ... Настраивается пакет libzephyr3 (2.1.20070719.SNAPSHOT-1.2) ... Настраивается пакет libsasl2-modules (2.1.22.dfsg1-23+lenny1) ... Настраивается пакет libpurple0 (2.4.3-4lenny7) ... Настраивается пакет libpurple-bin (2.4.3-4lenny7) ... Настраивается пакет pidgin (2.4.3-4lenny7) ... Обрабатываются триггеры для menu ... |
#dpkg-reconfigure ejabberd
â ÐведиÑе паÑÐ¾Ð»Ñ Ð°Ð´Ð¼Ð¸Ð½Ð¸ÑÑÑаÑоÑа еÑÑ Ñаз Ð´Ð»Ñ Ð¿ÑовеÑки. â â â â ÐовÑоÑнÑй ввод паÑÐ¾Ð»Ñ Ð°Ð´Ð¼Ð¸Ð½Ð¸ÑÑÑаÑоÑа Ð´Ð»Ñ Ð¿ÑовеÑки: â â â â***___________________________________________________ â â â â <Ok> â â â ââââââââââââââââââââââââââââââââââââââââââââââââââââââââ Replacing config file /etc/ejabberd/ejabberd.cfg with new version Starting jabber server: ejabberd...................................... Waiting for ejabberd to register admin user Can't register admin user "user@vn.unix.nt". |
#host vn.unix.nt
vn.unix.nt has address 192.168.104.1 vn.unix.nt has IPv6 address ::1 vn.unix.nt mail is handled by 10 linux4.unix.nt. |
#host vn.unix.nt
vn.unix.nt has address 192.168.104.1 vn.unix.nt has IPv6 address ::1 vn.unix.nt mail is handled by 10 linux4.unix.nt. |
#host vn.unix.nt
vn.unix.nt has address 192.168.104.1 vn.unix.nt has IPv6 address ::1 vn.unix.nt mail is handled by 10 linux4.unix.nt. |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.104.0 * 255.255.255.0 U 0 0 0 eth0 default 192.168.104.254 0.0.0.0 UG 0 0 0 eth0 |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.104.0 * 255.255.255.0 U 0 0 0 eth0 default 192.168.104.254 0.0.0.0 UG 0 0 0 eth0 |
#hots 192.168.104.254
bash: hots: команда не найдена |
#host 192.168.104.254
Host 254.104.168.192.in-addr.arpa. not found: 3(NXDOMAIN) |
processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Intel(R) Celeron(R) CPU 2.50GHz stepping : 9 cpu MHz : 2493.787 cache size : 128 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe up pebs bts cid xtpr bogomips : 4993.13 clflush size : 64 power management:
Время первой команды журнала | 11:34:33 2010-10-28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:27:00 2010-10-29 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 12.87 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.90 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.58 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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