/l3/users/igor-gorbatko/asterisk/debian3.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 |
|
#lspci -v
00:00.0 Host bridge: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02) Subsystem: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface Flags: bus master, fast devsel, latency 0 Memory at f8000000 (32-bit, prefetchable) [size=64M] Capabilities: [e4] Vendor Specific Information <?> Kernel driver in use: agpgart-intel Kernel modules: intel-agp 00:02.0 VGA compatible controller: Intel Corporation 82865G Integrated Graphics Controller (rev 02) (prog-if 00 [VGA controller]) Subsystem: Intel Corporation Desktop Board D865GLC Flags: bus master, fast devsel, latency 0, IRQ 16 ... Capabilities: [dc] Power Management version 2 Kernel driver in use: e1000 Kernel modules: e1000 02:02.0 Ethernet controller: Digium, Inc. Device 8001 (rev 11) Subsystem: Digium, Inc. Device 8001 Flags: bus master, medium devsel, latency 32, IRQ 3 I/O ports at b800 [size=256] Memory at ff8ffc00 (32-bit, non-prefetchable) [size=1K] Expansion ROM at 80000000 [disabled] [size=128K] Capabilities: [c0] Power Management version 2 |
#m-a a-i zaptel
│ │ │ │ │ │ │ │ │ │ │ │ │ 100% │ │ │ └─────────────────────────────────────────────────────────────────────────┘ Done with /usr/src/zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-19lenny2_i386.deb . dpkg -Ei /usr/src/zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-19lenny2_i386.deb Selecting previously deselected package zaptel-modules-2.6.26-2-686. (Reading database ... 53901 files and directories currently installed.) Unpacking zaptel-modules-2.6.26-2-686 (from .../zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-19lenny2_i386.deb) ... Setting up zaptel-modules-2.6.26-2-686 (1:1.4.11~dfsg-3+2.6.26-19lenny2) ... |
#/etc/init.d/zaptel start
![]() Zaptel telephony kernel driver: Notice: Configuration file is /etc/zaptel.conf line 0: Unable to open master device '/dev/zap/ctl' 1 error(s) detected |
#/etc/init.d/zaptel restart
![]() Zaptel telephony kernel driver: ZT_SPANCONFIG failed on span 1: Invalid argument (22) |
#/etc/init.d/zaptel restart
![]() Zaptel telephony kernel driver: ZT_SPANCONFIG failed on span 1: Invalid argument (22) |
#ztcfg -vvv
![]() Zaptel Version: 1.4.11 Echo Canceller: MG2 Configuration ====================== SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) Channel map: Channel 01: Clear channel (Default) (Slaves: 01) Channel 02: Clear channel (Default) (Slaves: 02) Channel 03: Clear channel (Default) (Slaves: 03) Channel 04: Clear channel (Default) (Slaves: 04) ... Channel 09: Clear channel (Default) (Slaves: 09) Channel 10: Clear channel (Default) (Slaves: 10) Channel 11: Clear channel (Default) (Slaves: 11) Channel 12: Clear channel (Default) (Slaves: 12) Channel 13: Clear channel (Default) (Slaves: 13) Channel 14: Clear channel (Default) (Slaves: 14) Channel 15: Clear channel (Default) (Slaves: 15) Channel 16: D-channel (Default) (Slaves: 16) 16 channels to configure. ZT_SPANCONFIG failed on span 1: Invalid argument (22) |
#/etc/init.d/zaptel restart
Zaptel telephony kernel driver: ZT_SPANCONFIG failed on span 1: Invalid argument (22) |
#/etc/init.d/zaptel restart
![]() Zaptel telephony kernel driver: ZT_SPANCONFIG failed on span 1: Invalid argument (22) |
#dmesg
[ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.26-2-686 (Debian 2.6.26-19lenny2) (dannf@debian.org) (gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)) #1 SMP Wed Nov 4 20:45:37 UTC 2009 [ 0.000000] BIOS-provided physical RAM map: [ 0.000000] BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) [ 0.000000] BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) [ 0.000000] BIOS-e820: 00000000000e6000 - 0000000000100000 (reserved) [ 0.000000] BIOS-e820: 0000000000100000 - 000000007ef30000 (usable) [ 0.000000] BIOS-e820: 000000007ef30000 - 000000007ef40000 (ACPI data) [ 0.000000] BIOS-e820: 000000007ef40000 - 000000007eff0000 (ACPI NVS) ... [11256.221502] PCI: Setting latency timer of device 0000:00:1f.5 to 64 [11256.644025] intel8x0_measure_ac97_clock: measured 52018 usecs [11256.644035] intel8x0: clocking to 48000 [94558.547183] Zapata Telephony Interface Registered on major 196 [94558.547195] Zaptel Version: 1.4.11 [94558.547197] Zaptel Echo Canceller: MG2 [94558.551441] ztdummy: Trying to load High Resolution Timer [94558.551454] ztdummy: Initialized High Resolution Timer [94558.551456] ztdummy: Starting High Resolution Timer [94558.551461] ztdummy: High Resolution Timer started, good to go |
#ztscan
[1] active=yes alarms=UNCONFIGURED description=ZTDUMMY/1 (source: HRtimer) 1 name=ZTDUMMY/1 manufacturer= devicetype=Zaptel Dummy Timing Driver location= basechan=1 totchans=0 irq=0 |
#dmesg
[ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.26-2-686 (Debian 2.6.26-19lenny2) (dannf@debian.org) (gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)) #1 SMP Wed Nov 4 20:45:37 UTC 2009 [ 0.000000] BIOS-provided physical RAM map: [ 0.000000] BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) [ 0.000000] BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) [ 0.000000] BIOS-e820: 00000000000e6000 - 0000000000100000 (reserved) [ 0.000000] BIOS-e820: 0000000000100000 - 000000007ef30000 (usable) [ 0.000000] BIOS-e820: 000000007ef30000 - 000000007ef40000 (ACPI data) [ 0.000000] BIOS-e820: 000000007ef40000 - 000000007eff0000 (ACPI NVS) ... [11256.221502] PCI: Setting latency timer of device 0000:00:1f.5 to 64 [11256.644025] intel8x0_measure_ac97_clock: measured 52018 usecs [11256.644035] intel8x0: clocking to 48000 [94558.547183] Zapata Telephony Interface Registered on major 196 [94558.547195] Zaptel Version: 1.4.11 [94558.547197] Zaptel Echo Canceller: MG2 [94558.551441] ztdummy: Trying to load High Resolution Timer [94558.551454] ztdummy: Initialized High Resolution Timer [94558.551456] ztdummy: Starting High Resolution Timer [94558.551461] ztdummy: High Resolution Timer started, good to go |
#/etc/init.d/zaptel restart
![]() Zaptel telephony kernel driver: ZT_SPANCONFIG failed on span 1: Invalid argument (22) |
#mount /dev/
![]() Display all 192 possibilities? (y or n) |
#mount /dev/sd
![]() sda sda1 sda2 sda3 sda5 sda6 sda7 sda8 sdb |
#mount /dev/sda1 /mnt
|
#ls /mnt
bin dev initrd lib opt sbin sys var boot etc initrd.img media proc selinux tmp vmlinuz cdrom home initrd.img.old mnt root srv usr vmlinuz.old |
#less /mnt/etc/zaptel.conf
|
#less /mnt/etc/asterisk/zapata.conf
|
#reboot
|
#ztscan
[1] active=yes alarms=OK description=Wildcard TE122 Card 0 name=WCT1/0 manufacturer=Digium devicetype=Wildcard TE122 location=PCI Bus 02 Slot 03 basechan=1 totchans=31 irq=17 type=digital-E1 syncsrc=0 lbo=0 db (CSU)/0-133 feet (DSX-1) coding_opts=HDB3 framing_opts=CCS,CRC4 coding=HDB3 framing=CCS |
#ztcfg -vvv
Zaptel Version: 1.4.11 Echo Canceller: MG2 Configuration ====================== SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) Channel map: Channel 01: Clear channel (Default) (Slaves: 01) Channel 02: Clear channel (Default) (Slaves: 02) Channel 03: Clear channel (Default) (Slaves: 03) Channel 04: Clear channel (Default) (Slaves: 04) ... Channel 08: Clear channel (Default) (Slaves: 08) Channel 09: Clear channel (Default) (Slaves: 09) Channel 10: Clear channel (Default) (Slaves: 10) Channel 11: Clear channel (Default) (Slaves: 11) Channel 12: Clear channel (Default) (Slaves: 12) Channel 13: Clear channel (Default) (Slaves: 13) Channel 14: Clear channel (Default) (Slaves: 14) Channel 15: Clear channel (Default) (Slaves: 15) Channel 16: D-channel (Default) (Slaves: 16) 16 channels to configure. |
#ssh root@192.168.102.1
root@192.168.102.1's password: Linux debian4 2.6.26-2-686 #1 SMP Wed Aug 19 06:06:52 UTC 2009 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: Mon Dec 7 22:48:29 2009 from 192.168.101.3 l3-agent is already running: pid=3597; pidfile=/root/.lilalo/l3-agent.pid |
#vi /etc/asterisk/zapata.conf
--- /tmp/l3-saved-2641.16002.6599 2009-12-08 04:16:52.000000000 -1000 +++ /etc/asterisk/zapata.conf 2009-12-08 04:20:56.000000000 -1000 @@ -210,7 +210,7 @@ ; (2-way) ; sf_rxtx: Same as sf_txrx (for our dyslexic friends) ; -signalling=fxo_ls +; signalling=fxo_ls ; ; If you have an outbound signalling format that is different from format ; specified above (but compatible), you can specify outbound signalling format, @@ -661,8 +661,8 @@ ; pri_cpe or pri_net for CPE or Network termination, and generally you will ; want to create a single "group" for all channels of the PRI. ; -; switchtype = national -; signalling = pri_cpe +switchtype = euroisdn +signalling = pri_cpe ; group = 2 ; channel => 1-23 @@ -677,6 +677,7 @@ ;dring2=325,95,0 ;dring2context=internal2 ; If no pattern is matched here is where we go. -;context=default -;channel => 1 +context=default +group=1 +channel => 1-2 |
#screen -x
|
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#tail /var/log/messages
Dec 8 04:14:52 debian3 dhcpd: DHCPREQUEST for 192.168.101.102 from 00:1e:68:cd:7f:c8 (IT-NB-Mini) via eth0 Dec 8 04:14:52 debian3 dhcpd: DHCPACK on 192.168.101.102 to 00:1e:68:cd:7f:c8 (IT-NB-Mini) via eth0 Dec 8 04:15:26 debian3 dhcpd: DHCPREQUEST for 192.168.101.100 from 00:0e:a6:20:4c:29 (pc01) via eth0 Dec 8 04:15:26 debian3 dhcpd: DHCPACK on 192.168.101.100 to 00:0e:a6:20:4c:29 (pc01) via eth0 Dec 8 04:17:28 debian3 dhcpd: DHCPREQUEST for 192.168.101.101 (192.168.101.3) from 00:04:13:25:67:21 via eth0 Dec 8 04:17:28 debian3 dhcpd: DHCPACK on 192.168.101.101 to 00:04:13:25:67:21 via eth0 Dec 8 04:19:52 debian3 dhcpd: DHCPREQUEST for 192.168.101.102 from 00:1e:68:cd:7f:c8 (IT-NB-Mini) via eth0 Dec 8 04:19:52 debian3 dhcpd: DHCPACK on 192.168.101.102 to 00:1e:68:cd:7f:c8 (IT-NB-Mini) via eth0 Dec 8 04:20:26 debian3 dhcpd: DHCPREQUEST for 192.168.101.100 from 00:0e:a6:20:4c:29 (pc01) via eth0 Dec 8 04:20:26 debian3 dhcpd: DHCPACK on 192.168.101.100 to 00:0e:a6:20:4c:29 (pc01) via eth0 |
#tail /var/log/asterisk/messages
[Dec 8 04:21:01] NOTICE[3016] res_odbc.c: res_odbc loaded. [Dec 8 04:21:02] ERROR[3016] chan_vpb.cc: No Voicetronix cards detected [Dec 8 04:21:02] NOTICE[3016] pbx_ael.c: Starting AEL load process. [Dec 8 04:21:02] NOTICE[3016] pbx_ael.c: AEL load process: calculated config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:21:02] NOTICE[3016] pbx_ael.c: AEL load process: parsed config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:21:02] NOTICE[3016] pbx_ael.c: AEL load process: checked config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:21:02] NOTICE[3016] pbx_ael.c: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:21:02] NOTICE[3016] pbx_ael.c: AEL load process: merged config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:21:02] NOTICE[3016] pbx_ael.c: AEL load process: verified config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:21:05] WARNING[3027] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway! |
#;spanmap => 4,1,4
Asterisk 1.4.21.2~dfsg-3, 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 ========================================================================= ... [Dec 8 04:23:21] WARNING[3027]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 04:23:26] WARNING[3027]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 04:23:31] WARNING[3027]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 04:23:36] WARNING[3027]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 04:23:41] WARNING[3027]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! debian3*CLI> debian3*CLI> debian3*CLI> debian3*CLI> quit Executing last minute cleanups |
#cat /etc/zaptel.conf
span=1,1,0,ccs,hdb3,crc4 bchan=1-15 dchan=16 |
#tail /var/log/asterisk/messages
[Dec 8 04:24:09] ERROR[3165] chan_zap.c: Signalling requested on channel 16 is ISDN PRI but line is in Unknown signalling 896 signalling [Dec 8 04:24:09] ERROR[3165] chan_zap.c: Unable to register channel '1-2,16' [Dec 8 04:24:09] ERROR[3165] chan_vpb.cc: No Voicetronix cards detected [Dec 8 04:24:09] NOTICE[3165] pbx_ael.c: Starting AEL load process. [Dec 8 04:24:09] NOTICE[3165] pbx_ael.c: AEL load process: calculated config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:24:09] NOTICE[3165] pbx_ael.c: AEL load process: parsed config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:24:09] NOTICE[3165] pbx_ael.c: AEL load process: checked config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:24:09] NOTICE[3165] pbx_ael.c: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:24:09] NOTICE[3165] pbx_ael.c: AEL load process: merged config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:24:09] NOTICE[3165] pbx_ael.c: AEL load process: verified config file name '/etc/asterisk/extensions.ael'. |
#tail /var/log/asterisk/messages
[Dec 8 04:24:33] NOTICE[3268] res_odbc.c: res_odbc loaded. [Dec 8 04:24:33] ERROR[3268] chan_vpb.cc: No Voicetronix cards detected [Dec 8 04:24:33] NOTICE[3268] pbx_ael.c: Starting AEL load process. [Dec 8 04:24:33] NOTICE[3268] pbx_ael.c: AEL load process: calculated config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:24:33] NOTICE[3268] pbx_ael.c: AEL load process: parsed config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:24:33] NOTICE[3268] pbx_ael.c: AEL load process: checked config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:24:33] NOTICE[3268] pbx_ael.c: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:24:33] NOTICE[3268] pbx_ael.c: AEL load process: merged config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:24:33] NOTICE[3268] pbx_ael.c: AEL load process: verified config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:24:37] WARNING[3279] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway! |
#tail /var/log/asterisk/messages
[Dec 8 04:24:42] WARNING[3279] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 04:24:47] WARNING[3279] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 04:24:52] WARNING[3279] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 04:24:57] WARNING[3279] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 04:25:02] WARNING[3279] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 04:25:07] WARNING[3279] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 04:25:12] WARNING[3279] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 04:25:17] WARNING[3279] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 04:25:22] WARNING[3279] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 04:25:27] WARNING[3279] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway! |
#mount /dev/sda1 /mnt
|
#less /mnt/etc/asterisk/zapata.conf
|
#grep -v '^;' /etc/asterisk/zapata.conf
[trunkgroups] [channels] context=default switchtype=national rxwink=300 ; Atlas seems to use long (250ms) winks ; where the ring cadence is changed *after* the callerid spill. usecallerid=yes hidecallerid=no callwaiting=yes usecallingpres=yes ... ; big jumps in/broken timestamps, usually sent from exotic devices ; and programs. Defaults to 1000. ; channel. Two implementations are currently available - "fixed" ; (with size always equals to jbmax-size) and "adaptive" (with ; variable size, actually the new jb of IAX2). Defaults to fixed. switchtype = euroisdn signalling = pri_cpe context=default group=1 channel => 1-3 |
#grep -v '^;' /etc/asterisk/zapata.conf | less
|
#tail /var/log/asterisk/messages
[Dec 8 04:26:48] NOTICE[3488] res_odbc.c: Adding ENV var: INFORMIXDIR=/opt/informix [Dec 8 04:26:48] NOTICE[3488] res_odbc.c: res_odbc loaded. [Dec 8 04:26:48] ERROR[3488] chan_vpb.cc: No Voicetronix cards detected [Dec 8 04:26:48] NOTICE[3488] pbx_ael.c: Starting AEL load process. [Dec 8 04:26:48] NOTICE[3488] pbx_ael.c: AEL load process: calculated config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:26:48] NOTICE[3488] pbx_ael.c: AEL load process: parsed config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:26:48] NOTICE[3488] pbx_ael.c: AEL load process: checked config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:26:48] NOTICE[3488] pbx_ael.c: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:26:48] NOTICE[3488] pbx_ael.c: AEL load process: merged config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:26:48] NOTICE[3488] pbx_ael.c: AEL load process: verified config file name '/etc/asterisk/extensions.ael'. |
#tail /var/log/asterisk/messages
[Dec 8 04:26:48] NOTICE[3488] res_odbc.c: res_odbc loaded. [Dec 8 04:26:48] ERROR[3488] chan_vpb.cc: No Voicetronix cards detected [Dec 8 04:26:48] NOTICE[3488] pbx_ael.c: Starting AEL load process. [Dec 8 04:26:48] NOTICE[3488] pbx_ael.c: AEL load process: calculated config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:26:48] NOTICE[3488] pbx_ael.c: AEL load process: parsed config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:26:48] NOTICE[3488] pbx_ael.c: AEL load process: checked config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:26:48] NOTICE[3488] pbx_ael.c: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:26:48] NOTICE[3488] pbx_ael.c: AEL load process: merged config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:26:48] NOTICE[3488] pbx_ael.c: AEL load process: verified config file name '/etc/asterisk/extensions.ael'. [Dec 8 04:26:52] WARNING[3499] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway! |
#less /var/log/asterisk/messages
|
#less /var/log/asterisk/messages
|
#ssh root@192.168.102.1
root@192.168.102.1's password: Linux debian4 2.6.26-2-686 #1 SMP Wed Aug 19 06:06:52 UTC 2009 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 Dec 8 04:43:12 2009 from 192.168.102.100 l3-agent is already running: pid=2751; pidfile=/root/.lilalo/l3-agent.pid |
#screen -x
|
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#less /var/log/messages
|
#vi /etc/asterisk/zapata.conf
|
#vi /etc/asterisk/zapata.conf
--- /tmp/l3-saved-4086.30390.4290 2009-12-08 05:18:29.000000000 -1000 +++ /etc/asterisk/zapata.conf 2009-12-08 05:18:58.000000000 -1000 @@ -662,7 +662,7 @@ ; want to create a single "group" for all channels of the PRI. ; switchtype = euroisdn -signalling = pri_cpe +signalling = pri_net ; group = 2 ; channel => 1-23 |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#less /var/log/messages
|
#less /var/log/asterisk/messages
|
#less /var/log/asterisk/messages
|
#asterisk
![]() Asterisk already running on /var/run/asterisk/asterisk.ctl. Use 'asterisk -r' to connect. |
#asterisk -rv
Asterisk 1.4.21.2~dfsg-3, 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 ========================================================================= ... [Dec 8 05:23:03] WARNING[4182]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 05:23:08] WARNING[4182]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 05:23:13] WARNING[4182]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 05:23:18] WARNING[4182]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 05:23:23] WARNING[4182]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 05:23:28] WARNING[4182]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 05:23:33] WARNING[4182]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 05:23:38] WARNING[4182]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! debian3*CLI> quit Executing last minute cleanups |
#vi /etc/zaptel.conf
|
#less /mnt/etc/zaptel.conf
|
#less /mnt/etc/asterisk/zapata.conf
|
#cat /etc/zaptel.conf
span=1,1,0,ccs,hdb3,crc4 bchan=1-15,17-31 dchan=16 |
#asterisk -rv
Asterisk 1.4.21.2~dfsg-3, 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 ========================================================================= ... [Dec 8 05:31:25] WARNING[4182]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 05:31:30] WARNING[4182]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 05:31:35] WARNING[4182]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 05:31:40] WARNING[4182]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 05:31:45] WARNING[4182]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 05:31:50] WARNING[4182]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 05:31:55] WARNING[4182]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 8 05:32:00] WARNING[4182]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! debian3*CLI> quit Executing last minute cleanups |
#;callerid="Cortelco 2500" <(256) 428-6126>
[trunkgroups] [channels] context=default rxwink=300 ; Atlas seems to use long (250ms) winks ; where the ring cadence is changed *after* the callerid spill. usecallerid=yes hidecallerid=no callwaiting=yes usecallingpres=yes callwaitingcallerid=yes ... threewaycalling=yes ; and programs. Defaults to 1000. ; channel. Two implementations are currently available - "fixed" ; (with size always equals to jbmax-size) and "adaptive" (with ; variable size, actually the new jb of IAX2). Defaults to fixed. switchtype = euroisdn signalling = pri_pce context=default group=1 channel => 1-2 |
#less /mnt/etc/asterisk/zapata.conf
|
#less /mnt/etc/zaptel.conf
|
#/etc/init.d/zaptel restart
Zaptel telephony kernel driver: zaptel. |
#;
[1] active=yes alarms=OK description=Wildcard TE122 Card 0 name=WCT1/0 manufacturer=Digium devicetype=Wildcard TE122 location=PCI Bus 02 Slot 03 basechan=1 totchans=31 irq=17 type=digital-E1 syncsrc=0 lbo=0 db (CSU)/0-133 feet (DSX-1) coding_opts=HDB3 framing_opts=CCS,CRC4 coding=HDB3 framing=CCS |
#ztcfg
|
#ztcfg -v
Zaptel Version: 1.4.11 Echo Canceller: MG2 Configuration ====================== SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) 31 channels to configure. |
#ztcfg -vv
Zaptel Version: 1.4.11 Echo Canceller: MG2 Configuration ====================== SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) Channel map: Channel 01: Clear channel (Default) (Slaves: 01) Channel 02: Clear channel (Default) (Slaves: 02) Channel 03: Clear channel (Default) (Slaves: 03) Channel 04: Clear channel (Default) (Slaves: 04) ... Channel 23: Clear channel (Default) (Slaves: 23) Channel 24: Clear channel (Default) (Slaves: 24) Channel 25: Clear channel (Default) (Slaves: 25) Channel 26: Clear channel (Default) (Slaves: 26) Channel 27: Clear channel (Default) (Slaves: 27) Channel 28: Clear channel (Default) (Slaves: 28) Channel 29: Clear channel (Default) (Slaves: 29) Channel 30: Clear channel (Default) (Slaves: 30) Channel 31: Clear channel (Default) (Slaves: 31) 31 channels to configure. |
#asterisk -rv
Asterisk 1.4.21.2~dfsg-3, 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 ========================================================================= ... 1 > [ 02 01 7f ] 1 > Unnumbered frame: 1 > SAPI: 00 C/R: 1 EA: 0 > TEI: 000 EA: 1 1 > M3: 3 P/F: 1 M2: 3 11: 3 [ SABME (set asynchronous balanced mode extended) ] > 0 bytes of data quit Executing last minute cleanups |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#/etc/init.d/zaptel restart
Zaptel telephony kernel driver: zaptel. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#less /var/log/asterisk/messages
|
#vi /etc/asterisk/zapata.conf
--- /tmp/l3-saved-3822.10463.996 2009-12-08 06:42:09.000000000 -1000 +++ /etc/asterisk/zapata.conf 2009-12-08 06:42:22.000000000 -1000 @@ -662,7 +662,7 @@ ; want to create a single "group" for all channels of the PRI. ; switchtype = euroisdn -signalling = pri_pce +signalling = pri_cpe ; group = 2 ; channel => 1-23 |
#less /etc/zaptel.conf
|
#ztscan
[1] active=yes alarms=OK description=Wildcard TE122 Card 0 name=WCT1/0 manufacturer=Digium devicetype=Wildcard TE122 location=PCI Bus 02 Slot 03 basechan=1 totchans=31 irq=17 type=digital-E1 syncsrc=0 lbo=0 db (CSU)/0-133 feet (DSX-1) coding_opts=HDB3 framing_opts=CCS,CRC4 coding=HDB3 framing=CCS |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rv
Asterisk 1.4.21.2~dfsg-3, 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 ========================================================================= ... [Dec 9 00:23:05] WARNING[5682]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 9 00:23:10] WARNING[5682]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 9 00:23:15] WARNING[5682]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 9 00:23:20] WARNING[5682]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 9 00:23:25] WARNING[5682]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 9 00:23:30] WARNING[5682]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 9 00:23:35] WARNING[5682]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Dec 9 00:23:40] WARNING[5682]: chan_zap.c:2498 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! debian3*CLI> quit Executing last minute cleanups |
#cat /etc/asterisk/sip.conf
[general] context=default register => poltava:1234@192.168.102.1/kiev ; register => nt:1234@xgu.ru/vpoltava [101] username=phone type=friend host=dynamic secret=123 callerid="gib-snom" ... host=dynamic secret=1234 ; call-limit=1 ; limitonpeers=yes [vpoltava] username=nt nat=yes type=friend host=xgu.ru secret=1234 |
#mpg123
![]() You made some mistake in program usage... let me briefly remind you: High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3 version 1.4.3; written and copyright by Michael Hipp and others free software (LGPL/GPL) without any warranty but with best wishes usage: mpg123 [option(s)] [file(s) | URL(s) | -] supported options [defaults in brackets]: -v increase verbosity level -q quiet (don't print title) -t testmode (no output) -s write to stdout -w <filename> write Output as WAV file -k n skip first n frames [0] -n n decode only n frames [all] ... -2 downsample 1:2 (22 kHz) -4 downsample 1:4 (11 kHz) -d n play every n'th frame only -h n play every frame n times -0 decode channel 0 (left) only -1 decode channel 1 (right) only -m mix both channels (mono) -p p use HTTP proxy p [$HTTP_PROXY] -@ f read filenames/URLs from f -T get realtime priority -z shuffle play (with wildcards) -Z random play -u a HTTP authentication string -E f Equalizer, data from file -C enable control keys --no-gapless not skip junk/padding in mp3s -? this help --version print name + version See the manpage mpg123(1) or call mpg123 with --longhelp for more parameters and information. |
#cd Rondo/
|
#mpg123 rondo_veneziano_-_casanova.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3 version 1.4.3; written and copyright by Michael Hipp and others free software (LGPL/GPL) without any warranty but with best wishes Playing MPEG stream 1 of 1: rondo_veneziano_-_casanova.mp3 ... Title: Casanova Artist: Rondo Veneziano Comment: Album: Casanova Year: 1981 Genre: Classical MPEG 1.0 layer III, 160 kbit/s, 44100 Hz joint-stereo ^C [0:34] Decoding of rondo_veneziano_-_casanova.mp3 finished. |
#ls -l
total 92272 -rwxr-xr-x 1 root root 5910183 2009-12-07 04:31 rondo_veneziano_-_alba_sul_mare.mp3 -rwxr-xr-x 1 root root 3031153 2009-12-07 04:31 rondo_veneziano_-_bettina.mp3 -rwxr-xr-x 1 root root 3794251 2009-12-07 04:31 rondo_veneziano_-_casanova.mp3 -rwxr-xr-x 1 root root 6431397 2009-12-07 04:31 rondo_veneziano_-_cattedrali.mp3 -rwxr-xr-x 1 root root 3921728 2009-12-07 04:32 rondo_veneziano_-_cecilia.mp3 -rwxr-xr-x 1 root root 7317184 2009-12-07 04:32 rondo_veneziano_-_danza_mediterranea.mp3 -rwxr-xr-x 1 root root 4849604 2009-12-07 04:31 rondo_veneziano_-_desiree.mp3 -rwxr-xr-x 1 root root 5126114 2009-12-07 04:31 rondo_veneziano_-_donna_lucrezia.mp3 -rwxr-xr-x 1 root root 3541421 2009-12-07 04:31 rondo_veneziano_-_fantasia_veneziana.mp3 -rwxr-xr-x 1 root root 8809243 2009-12-07 04:31 rondo_veneziano_-_gioco_italiano.mp3 -rwxr-xr-x 1 root root 3523652 2009-12-07 04:31 rondo_veneziano_-_incontro.mp3 -rwxr-xr-x 1 root root 4494335 2009-12-07 04:31 rondo_veneziano_-_interludio.mp3 -rwxr-xr-x 1 root root 3333605 2009-12-07 04:31 rondo_veneziano_-_la_serenissima.mp3 -rwxr-xr-x 1 root root 4457764 2009-12-07 04:31 rondo_veneziano_-_lorientale.mp3 -rwxr-xr-x 1 root root 4973729 2009-12-07 04:31 rondo_veneziano_-_magica.mp3 -rwxr-xr-x 1 root root 2376632 2009-12-07 04:31 rondo_veneziano_-_nostalgia_di_venezia.mp3 -rwxr-xr-x 1 root root 5210026 2009-12-07 04:31 rondo_veneziano_-_re_sole.mp3 -rwxr-xr-x 1 root root 4373699 2009-12-07 04:31 rondo_veneziano_-_torcello.mp3 -rwxr-xr-x 1 root root 8787300 2009-12-07 04:31 rondo_veneziano_-_viaggio_italiano.mp3 |
#mpg123 rondo_veneziano_-_re_sole.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3 version 1.4.3; written and copyright by Michael Hipp and others free software (LGPL/GPL) without any warranty but with best wishes Playing MPEG stream 1 of 1: rondo_veneziano_-_re_sole.mp3 ... Title: Re Sole Artist: Rondo' Veneziano Comment: Electronicmusic.newmail.ru Album: Scaramucce Year: 1982 Genre: Classical MPEG 1.0 layer III, 192 kbit/s, 44100 Hz joint-stereo ^C [0:19] Decoding of rondo_veneziano_-_re_sole.mp3 finished. |
#ls
rondo_veneziano_-_alba_sul_mare.mp3 rondo_veneziano_-_bettina.mp3 rondo_veneziano_-_casanova.mp3 rondo_veneziano_-_cattedrali.mp3 rondo_veneziano_-_cecilia.mp3 rondo_veneziano_-_danza_mediterranea.mp3 rondo_veneziano_-_desiree.mp3 rondo_veneziano_-_donna_lucrezia.mp3 rondo_veneziano_-_fantasia_veneziana.mp3 rondo_veneziano_-_gioco_italiano.mp3 rondo_veneziano_-_incontro.mp3 rondo_veneziano_-_interludio.mp3 rondo_veneziano_-_la_serenissima.mp3 rondo_veneziano_-_lorientale.mp3 rondo_veneziano_-_magica.mp3 rondo_veneziano_-_nostalgia_di_venezia.mp3 rondo_veneziano_-_re_sole.mp3 rondo_veneziano_-_torcello.mp3 rondo_veneziano_-_viaggio_italiano.mp3 |
#mpg123 rondo_veneziano_-_cecilia.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3 version 1.4.3; written and copyright by Michael Hipp and others free software (LGPL/GPL) without any warranty but with best wishes Playing MPEG stream 1 of 1: rondo_veneziano_-_cecilia.mp3 ... Title: Cecilia Artist: Rondo Veneziano Comment: Album: Casanova Year: 1981 Genre: Classical MPEG 1.0 layer III, 160 kbit/s, 44100 Hz joint-stereo ^C [0:10] Decoding of rondo_veneziano_-_cecilia.mp3 finished. |
#top
top - 23:37:40 up 19:34, 6 users, load average: 1.04, 0.79, 0.48 Tasks: 95 total, 2 running, 93 sleeping, 0 stopped, 0 zombie Cpu(s): 52.6%us, 0.2%sy, 0.0%ni, 43.6%id, 0.0%wa, 3.6%hi, 0.0%si, 0.0%st Mem: 2059368k total, 519648k used, 1539720k free, 104028k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 1646620k total, 0k used, 1646620k free, 203676k cached 2605 root 20 0 16344 12m 1508 R 86.6 0.6 654:45.14 l3-agent top - 23:37:52 up 19:34, 6 users, load average: 1.03, 0.80, 0.49 Tasks: 95 total, 2 running, 93 sleeping, 0 stopped, 0 zombie Cpu(s): 98.0%us, 1.0%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.3%hi, 0.7%si, 0.0%st ... Cpu(s): 99.7%us, 0.3%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 2059368k total, 519648k used, 1539720k free, 104036k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 1646620k total, 0k used, 1646620k free, 203688k cached 2605 root 20 0 16344 12m 1508 R 96.4 0.6 654:59.67 l3-agent 150 root 20 0 0 0 0 S 0.0 0.0 0:00.00 pdflush 5667 asterisk -11 0 31356 11m 6884 S 2.0 0.6 0:17.91 asterisk 151 root 20 0 0 0 0 S 0.0 0.0 0:00.76 pdflush 2752 root 19 -1 226m 10m 6596 S 1.3 0.5 3:29.59 Xorg 152 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kswapd0 |
#pkill l3-agent
|
[general] context=default register => poltava:1234@192.168.102.1/kiev ; register => nt:1234@xgu.ru/vpoltava [101] username=phone type=friend host=dynamic secret=123 callerid="gib-snom" [103] type=friend host=dynamic secret=123 callerid="GIB-win" [kiev] type=friend host=dynamic secret=1234 ; call-limit=1 ; limitonpeers=yes [vpoltava] username=nt nat=yes type=friend host=xgu.ru secret=1234
span=1,1,0,ccs,hdb3,crc4 bchan=1-15,17-31 dchan=16
Время первой команды журнала | 14:44:20 2009-12- 8 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 10:37:58 2009-12- 9 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 12.87 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 2.97 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.78 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.61 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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