/l3/users/kronas/nt-voip/linux5.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 |
|
#ls /var/spool/asterisk/outgoing/
call-minsk.1202-2219425593786226601.call call-minsk.1302-9670306242443621587.call call-minsk.1401-1146932462379522690.call |
#ls /var/spool/asterisk/outgoing/
call-minsk.1202-2219425593786226601.call call-minsk.1302-9670306242443621587.call |
#cat /var/spool/asterisk/outgoing/call-minsk.1302-9670306242443621587.call
Channel:SIP/minsk/1302 Context:internal Extension:8501 StartRetry: 1425 1 (1365689894) |
#cat /var/spool/asterisk/outgoing/call-minsk.1302-9670306242443621587.call
Channel:SIP/minsk/1302 Context:internal Extension:8501 StartRetry: 1425 1 (1365689894) |
#scp 192.168.70.1:/home/root/call-all.sh ~/
root@192.168.70.1's password: scp: /home/root/call-all.sh: No such file or directory |
#^C
|
#scp 192.168.70.1:/home/user/call-all.sh ~/
root@192.168.70.1's password: scp: /home/user/call-all.sh: No such file or directory |
#ls -l /home/user/call-all.sh
-rw-r--r-- 1 root root 330 Apr 11 17:15 /home/user/call-all.sh |
#scp 192.168.70.1:/home/user/call-all.sh /home/user/
root@192.168.70.1's password: scp: /home/user/call-all.sh: No such file or directory |
#ls -l
total 6864 -rw-r--r-- 1 root root 2339482 Apr 11 10:29 belki.wav -rw-r--r-- 1 root root 4186632 Apr 11 10:30 burunduki.wav -rw-r--r-- 1 root root 330 Apr 11 17:11 call-all.sh -rw-r--r-- 1 root root 189204 Oct 12 13:08 chan_dongle-1.1.r14.tgz -rw-r--r-- 1 root root 5264 Apr 8 16:41 install drwxr-xr-x 2 root root 4096 Apr 11 10:46 text -rw-r--r-- 1 root root 268226 Apr 11 10:25 text1.wav |
#vim call-all.sh
|
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux5 (pid = 1347) linux5*CLI> Disconnected from Asterisk server |
#lsusb
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 002: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub |
#lspci
00:00.0 Host bridge: Intel Corporation 82Q35 Express DRAM Controller (rev 02) 00:02.0 VGA compatible controller: Intel Corporation 82Q35 Express Integrated Graphics Controller (rev 02) 00:03.0 Communication controller: Intel Corporation 82Q35 Express MEI Controller (rev 02) 00:03.2 IDE interface: Intel Corporation 82Q35 Express PT IDER Controller (rev 02) 00:03.3 Serial controller: Intel Corporation 82Q35 Express Serial KT Controller (rev 02) 00:19.0 Ethernet controller: Intel Corporation 82566DM-2 Gigabit Network Connection (rev 02) 00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02) 00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02) 00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02) 00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02) ... 00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02) 00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92) 00:1f.0 ISA bridge: Intel Corporation 82801IO (ICH9DO) LPC Interface Controller (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller (rev 02) 00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller (rev 02) 20:00.0 PCI bridge: Texas Instruments XIO2000(A)/XIO2200(A) PCI Express-to-PCI Bridge (rev 03) 21:08.0 Ethernet controller: Digium, Inc. Wildcard TE121 single-span T1/E1/J1 card (PCI-Express) (rev 11) |
#lsmod | grep dahdi
dahdi_voicebus 44528 1 wcte12xp dahdi 176962 2 wcte12xp,dahdi_voicebus crc_ccitt 12331 1 dahdi |
#lspci
00:00.0 Host bridge: Intel Corporation 82Q35 Express DRAM Controller (rev 02) 00:02.0 VGA compatible controller: Intel Corporation 82Q35 Express Integrated Graphics Controller (rev 02) 00:03.0 Communication controller: Intel Corporation 82Q35 Express MEI Controller (rev 02) 00:03.2 IDE interface: Intel Corporation 82Q35 Express PT IDER Controller (rev 02) 00:03.3 Serial controller: Intel Corporation 82Q35 Express Serial KT Controller (rev 02) 00:19.0 Ethernet controller: Intel Corporation 82566DM-2 Gigabit Network Connection (rev 02) 00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02) 00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02) 00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02) 00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02) ... 00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02) 00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92) 00:1f.0 ISA bridge: Intel Corporation 82801IO (ICH9DO) LPC Interface Controller (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller (rev 02) 00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller (rev 02) 20:00.0 PCI bridge: Texas Instruments XIO2000(A)/XIO2200(A) PCI Express-to-PCI Bridge (rev 03) 21:08.0 Ethernet controller: Digium, Inc. Wildcard TE121 single-span T1/E1/J1 card (PCI-Express) (rev 11) |
#lsmod | less
|
#lsmod
Module Size Used by cpufreq_stats 12711 0 cpufreq_powersave 12422 0 cpufreq_conservative 12987 0 cpufreq_userspace 12520 0 bridge 59326 0 stp 12405 1 bridge rfcomm 31985 0 bnep 17147 2 bluetooth 106783 10 rfcomm,bnep ... uhci_hcd 26153 0 ata_generic 12439 0 ata_piix 25240 3 ehci_hcd 34968 0 floppy 47821 0 libata 124180 2 ata_generic,ata_piix e1000e 112876 0 scsi_mod 134461 5 sg,sr_mod,sd_mod,usb_storage,libata usbcore 103673 7 option,usb_wwan,usbserial,usb_storage,uhci_hcd,ehci_hcd usb_common 12338 1 usbcore |
#lspci
00:00.0 Host bridge: Intel Corporation 82Q35 Express DRAM Controller (rev 02) 00:02.0 VGA compatible controller: Intel Corporation 82Q35 Express Integrated Graphics Controller (rev 02) 00:03.0 Communication controller: Intel Corporation 82Q35 Express MEI Controller (rev 02) 00:03.2 IDE interface: Intel Corporation 82Q35 Express PT IDER Controller (rev 02) 00:03.3 Serial controller: Intel Corporation 82Q35 Express Serial KT Controller (rev 02) 00:19.0 Ethernet controller: Intel Corporation 82566DM-2 Gigabit Network Connection (rev 02) 00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02) 00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02) 00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02) 00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02) ... 00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02) 00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92) 00:1f.0 ISA bridge: Intel Corporation 82801IO (ICH9DO) LPC Interface Controller (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller (rev 02) 00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller (rev 02) 20:00.0 PCI bridge: Texas Instruments XIO2000(A)/XIO2200(A) PCI Express-to-PCI Bridge (rev 03) 21:08.0 Ethernet controller: Digium, Inc. Wildcard TE121 single-span T1/E1/J1 card (PCI-Express) (rev 11) |
#find /sys/ -name \*21:08.0\*
/sys/devices/pci0000:00/0000:00:1c.0/0000:20:00.0/0000:21:08.0 /sys/devices/pci0000:00/0000:00:1c.0/0000:20:00.0/0000:21:08.0/pci:0000:21:08.0 /sys/bus/pci/devices/0000:21:08.0 /sys/bus/pci/drivers/wcte12xp/0000:21:08.0 /sys/bus/dahdi_devices/devices/pci:0000:21:08.0 |
#find /sys -name \*21:08.0\*
/sys/devices/pci0000:00/0000:00:1c.0/0000:20:00.0/0000:21:08.0 /sys/devices/pci0000:00/0000:00:1c.0/0000:20:00.0/0000:21:08.0/pci:0000:21:08.0 /sys/bus/pci/devices/0000:21:08.0 /sys/bus/pci/drivers/wcte12xp/0000:21:08.0 /sys/bus/dahdi_devices/devices/pci:0000:21:08.0 |
#lsmod | grep wcte12xp
wcte12xp 26021 0 dahdi_voicebus 44528 1 wcte12xp dahdi 176962 2 wcte12xp,dahdi_voicebus |
#lspci
00:00.0 Host bridge: Intel Corporation 82Q35 Express DRAM Controller (rev 02) 00:02.0 VGA compatible controller: Intel Corporation 82Q35 Express Integrated Graphics Controller (rev 02) 00:03.0 Communication controller: Intel Corporation 82Q35 Express MEI Controller (rev 02) 00:03.2 IDE interface: Intel Corporation 82Q35 Express PT IDER Controller (rev 02) 00:03.3 Serial controller: Intel Corporation 82Q35 Express Serial KT Controller (rev 02) 00:19.0 Ethernet controller: Intel Corporation 82566DM-2 Gigabit Network Connection (rev 02) 00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02) 00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02) 00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02) 00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02) ... 00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02) 00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92) 00:1f.0 ISA bridge: Intel Corporation 82801IO (ICH9DO) LPC Interface Controller (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller (rev 02) 00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller (rev 02) 20:00.0 PCI bridge: Texas Instruments XIO2000(A)/XIO2200(A) PCI Express-to-PCI Bridge (rev 03) 21:08.0 Ethernet controller: Digium, Inc. Wildcard TE121 single-span T1/E1/J1 card (PCI-Express) (rev 11) |
#find /sys -name \*21:08.0\*
/sys/devices/pci0000:00/0000:00:1c.0/0000:20:00.0/0000:21:08.0 /sys/devices/pci0000:00/0000:00:1c.0/0000:20:00.0/0000:21:08.0/pci:0000:21:08.0 /sys/bus/pci/devices/0000:21:08.0 /sys/bus/pci/drivers/wcte12xp/0000:21:08.0 /sys/bus/dahdi_devices/devices/pci:0000:21:08.0 |
#find /sys -name \*00:19.0\*
/sys/devices/pci0000:00/0000:00:19.0 /sys/bus/pci/devices/0000:00:19.0 /sys/bus/pci/drivers/e1000e/0000:00:19.0 |
#lsmod | grep wcte12xp\
> ^C |
#modinfo wcte12xp | head
filename: /lib/modules/3.2.0-0.bpo.4-686-pae/dahdi/wcte12xp/wcte12xp.ko license: GPL v2 author: Digium Incorporated <support@digium.com> description: Wildcard VoiceBus Digital Card Driver alias: pci:v0000D161d00008001sv*sd*bc*sc*i* alias: pci:v0000D161d00008000sv*sd*bc*sc*i* alias: pci:v0000D161d00000120sv*sd*bc*sc*i* depends: dahdi_voicebus,dahdi vermagic: 3.2.0-0.bpo.4-686-pae SMP mod_unload modversions 686 parm: debug:int |
#lsmod | grep wcte12xp
wcte12xp 26021 0 dahdi_voicebus 44528 1 wcte12xp dahdi 176962 2 wcte12xp,dahdi_voicebus |
#modinfo wcte12xp
filename: /lib/modules/3.2.0-0.bpo.4-686-pae/dahdi/wcte12xp/wcte12xp.ko license: GPL v2 author: Digium Incorporated <support@digium.com> description: Wildcard VoiceBus Digital Card Driver alias: pci:v0000D161d00008001sv*sd*bc*sc*i* alias: pci:v0000D161d00008000sv*sd*bc*sc*i* alias: pci:v0000D161d00000120sv*sd*bc*sc*i* depends: dahdi_voicebus,dahdi vermagic: 3.2.0-0.bpo.4-686-pae SMP mod_unload modversions 686 parm: debug:int ... parm: losalarmdebounce:int parm: aisalarmdebounce:int parm: yelalarmdebounce:int parm: latency:int parm: max_latency:int parm: vpmsupport:int parm: vpmtsisupport:int parm: vpmnlptype:int parm: vpmnlpthresh:int parm: vpmnlpmaxsupp:int |
#modinfo wcte12xp | head -20
filename: /lib/modules/3.2.0-0.bpo.4-686-pae/dahdi/wcte12xp/wcte12xp.ko license: GPL v2 author: Digium Incorporated <support@digium.com> description: Wildcard VoiceBus Digital Card Driver alias: pci:v0000D161d00008001sv*sd*bc*sc*i* alias: pci:v0000D161d00008000sv*sd*bc*sc*i* alias: pci:v0000D161d00000120sv*sd*bc*sc*i* depends: dahdi_voicebus,dahdi vermagic: 3.2.0-0.bpo.4-686-pae SMP mod_unload modversions 686 parm: debug:int parm: t1e1override:int parm: default_linemode:"auto"(default), "e1", or "t1". "auto" will use the value from the hardware jumpers. (charp) parm: j1mode:int parm: alarmdebounce:int parm: losalarmdebounce:int parm: aisalarmdebounce:int parm: yelalarmdebounce:int parm: latency:int parm: max_latency:int parm: vpmsupport:int |
#modinfo wcte12xp | head
filename: /lib/modules/3.2.0-0.bpo.4-686-pae/dahdi/wcte12xp/wcte12xp.ko license: GPL v2 author: Digium Incorporated <support@digium.com> description: Wildcard VoiceBus Digital Card Driver alias: pci:v0000D161d00008001sv*sd*bc*sc*i* alias: pci:v0000D161d00008000sv*sd*bc*sc*i* alias: pci:v0000D161d00000120sv*sd*bc*sc*i* depends: dahdi_voicebus,dahdi vermagic: 3.2.0-0.bpo.4-686-pae SMP mod_unload modversions 686 parm: debug:int |
#dahdi_scan -v
[1] active=yes alarms=RED description=Wildcard TE121 Card 0 name=WCT1/0 manufacturer=Digium devicetype=Wildcard TE121 location=PCI Bus 33 Slot 09 basechan=1 totchans=31 ... port=22,none port=23,none port=24,none port=25,none port=26,none port=27,none port=28,none port=29,none port=30,none port=31,none |
#dpkg -S /lib/modules/3.2.0-0.bpo.4-686-pae/dahdi/wcte12xp/wcte12xp.ko
dpkg: /lib/modules/3.2.0-0.bpo.4-686-pae/dahdi/wcte12xp/wcte12xp.ko not found. |
#dpkg -S /lib/modules/3.2.0-0.bpo.4-686-pae/
build/ modules.alias modules.builtin.bin modules.devname modules.symbols dahdi/ modules.alias.bin modules.dep modules.order modules.symbols.bin kernel/ modules.builtin modules.dep.bin modules.softdep source/ |
#dpkg -S /lib/modules/3.2.0-0.bpo.4-686-pae/kernel/
arch/ crypto/ drivers/ fs/ lib/ mm/ net/ sound/ |
#dpkg -S /lib/modules/3.2.0-0.bpo.4-686-pae/kernel/fs/
9p/ bfs/ coda/ ext2/ gfs2/ jfs/ nfs_common/ qnx4/ udf/ adfs/ binfmt_aout.ko configfs/ ext3/ hfs/ lockd/ nfsd/ quota/ ufs/ affs/ binfmt_misc.ko cramfs/ ext4/ hfsplus/ logfs/ nilfs2/ reiserfs/ xfs/ afs/ btrfs/ dlm/ fat/ isofs/ mbcache.ko nls/ romfs/ aufs/ cachefiles/ ecryptfs/ freevxfs/ jbd/ minix/ ntfs/ squashfs/ autofs4/ ceph/ efs/ fscache/ jbd2/ ncpfs/ ocfs2/ sysv/ befs/ cifs/ exofs/ fuse/ jffs2/ nfs/ omfs/ ubifs/ |
#dpkg -S /lib/modules/3.2.0-0.bpo.4-686-pae/kernel/fs/ext4/ext4.ko
linux-image-3.2.0-0.bpo.4-686-pae: /lib/modules/3.2.0-0.bpo.4-686-pae/kernel/fs/ext4/ext4.ko |
#ls -l /lib/modules/3.2.0-0.bpo.4-686-pae/kernel/fs/ext4/ext4.ko /lib/modules/3.2.0-0.bpo.4-686-pae/dahdi/wcte12xp/wcte12xp.ko
-rw-r--r-- 1 root root 298608 Apr 10 13:55 /lib/modules/3.2.0-0.bpo.4-686-pae/dahdi/wcte12xp/wcte12xp.ko -rw-r--r-- 1 root root 449016 Apr 8 16:32 /lib/modules/3.2.0-0.bpo.4-686-pae/kernel/fs/ext4/ext4.ko |
## 1.6
|
#which dahdi_genconf
/usr/sbin/dahdi_genconf |
#dahdi_genconf
Unrecognized garbage 'Reserved' in WCT1/0/16 |
#ls -l /etc/dahdi/
total 8 -rw-r--r-- 1 root root 459 Apr 12 09:49 system.conf -rw-r--r-- 1 root root 1091 Sep 29 2009 xpp.conf |
#less /etc/dahdi/system.conf
|
#ls -l /etc/dahdi/system.conf
-rw-r--r-- 1 root root 459 Apr 12 09:49 /etc/dahdi/system.conf |
#dahdi_cfg -v
DAHDI Tools Version - 2.2.1.1 DAHDI Version: 2.6.2 Echo Canceller(s): HWEC Configuration ====================== SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) 31 channels to configure. Setting echocan for channel 1 to none Setting echocan for channel 2 to none Setting echocan for channel 3 to none ... Setting echocan for channel 22 to none Setting echocan for channel 23 to none Setting echocan for channel 24 to none Setting echocan for channel 25 to none Setting echocan for channel 26 to none Setting echocan for channel 27 to none Setting echocan for channel 28 to none Setting echocan for channel 29 to none Setting echocan for channel 30 to none Setting echocan for channel 31 to none |
#vim /etc/dahdi/system.conf
|
#cd /usr/src/
chan_dongle-1.1.r14/ linux/ linux-OLDVERSION.1365590910 chan_dongle-1.1.r14.tgz linux-headers-3.2.0-0.bpo.4-686-pae/ modules/ dahdi/ linux-headers-3.2.0-0.bpo.4-common/ vpb-driver.tar.bz2 dahdi.tar.bz2 linux-kbuild-3.2/ |
#/etc/init.d/dahdi restart
Unloading DAHDI hardware modules: done Loading DAHDI hardware modules: No hardware timing source found in /proc/dahdi, loading dahdi_dummy Running dahdi_cfg: . |
#lsmod | grep wcte12xp
|
#rmmod dahdi
|
#modprobe wcte12xp
|
#dahdi_cfg -v
DAHDI Tools Version - 2.2.1.1 DAHDI Version: 2.6.2 Echo Canceller(s): HWEC Configuration ====================== SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) 31 channels to configure. Setting echocan for channel 1 to none Setting echocan for channel 2 to none Setting echocan for channel 3 to none ... Setting echocan for channel 22 to none Setting echocan for channel 23 to none Setting echocan for channel 24 to none Setting echocan for channel 25 to none Setting echocan for channel 26 to none Setting echocan for channel 27 to none Setting echocan for channel 28 to none Setting echocan for channel 29 to none Setting echocan for channel 30 to none Setting echocan for channel 31 to none |
#less /etc/init.d/dahdi
|
#ls /proc/dahdi/
1 |
#less /etc/init.d/dahdi
|
#less /etc/default/d
|
#less /etc/init.d/dahdi
|
#/etc/init.d/dahdi status
### Span 1: WCT1/0 "Wildcard TE121 Card 0" (MASTER) HDB3/CCS/CRC4 RED ClockSource 1 PRI Clear RED 2 PRI Clear RED 3 PRI Clear RED 4 PRI Clear RED 5 PRI Clear RED 6 PRI Clear RED 7 PRI Clear RED 8 PRI Clear RED 9 PRI Clear RED ... 22 PRI Clear RED 23 PRI Clear RED 24 PRI Clear RED 25 PRI Clear RED 26 PRI Clear RED 27 PRI Clear RED 28 PRI Clear RED 29 PRI Clear RED 30 PRI Clear RED 31 PRI Clear RED |
#lsdahdi
### Span 1: WCT1/0 "Wildcard TE121 Card 0" (MASTER) HDB3/CCS/CRC4 RED ClockSource 1 PRI Clear RED 2 PRI Clear RED 3 PRI Clear RED 4 PRI Clear RED 5 PRI Clear RED 6 PRI Clear RED 7 PRI Clear RED 8 PRI Clear RED 9 PRI Clear RED ... 22 PRI Clear RED 23 PRI Clear RED 24 PRI Clear RED 25 PRI Clear RED 26 PRI Clear RED 27 PRI Clear RED 28 PRI Clear RED 29 PRI Clear RED 30 PRI Clear RED 31 PRI Clear RED |
#/etc/init.d/dahdi status
### Span 1: WCT1/0 "Wildcard TE121 Card 0" (MASTER) HDB3/CCS/CRC4 RED ClockSource 1 PRI Clear RED 2 PRI Clear RED 3 PRI Clear RED 4 PRI Clear RED 5 PRI Clear RED 6 PRI Clear RED 7 PRI Clear RED 8 PRI Clear RED 9 PRI Clear RED ... 22 PRI Clear RED 23 PRI Clear RED 24 PRI Clear RED 25 PRI Clear RED 26 PRI Clear RED 27 PRI Clear RED 28 PRI Clear RED 29 PRI Clear RED 30 PRI Clear RED 31 PRI Clear RED |
#less /etc/init.d/dahdi
|
#lsdahdi --help
### Span 1: WCT1/0 "Wildcard TE121 Card 0" (MASTER) HDB3/CCS/CRC4 RED ClockSource 1 PRI Clear RED 2 PRI Clear RED 3 PRI Clear RED 4 PRI Clear RED 5 PRI Clear RED 6 PRI Clear RED 7 PRI Clear RED 8 PRI Clear RED 9 PRI Clear RED ... 22 PRI Clear RED 23 PRI Clear RED 24 PRI Clear RED 25 PRI Clear RED 26 PRI Clear RED 27 PRI Clear RED 28 PRI Clear RED 29 PRI Clear RED 30 PRI Clear RED 31 PRI Clear RED |
#vim /etc/asterisk/chan_dahdi.conf
--- /tmp/l3-saved-2943.14411.28169 2013-04-12 10:08:21.000000000 +0300 +++ /etc/asterisk/chan_dahdi.conf 2013-04-12 10:39:37.000000000 +0300 @@ -65,7 +65,7 @@ ; ni1: Old National ISDN 1 ; qsig: Q.SIG ; -;switchtype=euroisdn +switchtype=euroisdn ; ; Some switches (AT&T especially) require network specific facility IE ; supported values are currently 'none', 'sdn', 'megacom', 'tollfreemegacom', 'accunet' @@ -293,6 +293,9 @@ ; ; outsignalling cannot be changed on a reload. ; + +signalling=pri_cpe + ;signalling=featdmf ; ;outsignalling=featb @@ -570,7 +573,6 @@ ; override a previous non-empty one. The same applies to callgroup and ; pickupgroup as well. ; -group=1 ; ; Ring groups (a.k.a. call groups) and pickup groups. If a phone is ringing ; and it is a member of a group which is one of your pickup groups, then @@ -1222,3 +1224,13 @@ ;[phone-3](phones) ;dahdichan = 3 ;pickupgroup = 3,4 + +context=incoming +group=1 +channel => 1-4 + +context=incoming2 +group=2 +channel => 5-8 + + |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvvvv
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux5 (pid = 3490) ... [Apr 12 10:41:46] NOTICE[3530]: chan_dahdi.c:9480 handle_init_event: Alarm cleared on channel 4 [Apr 12 10:41:46] NOTICE[3530]: chan_dahdi.c:9480 handle_init_event: Alarm cleared on channel 5 [Apr 12 10:41:46] NOTICE[3530]: chan_dahdi.c:9480 handle_init_event: Alarm cleared on channel 6 [Apr 12 10:41:46] NOTICE[3530]: chan_dahdi.c:9480 handle_init_event: Alarm cleared on channel 7 [Apr 12 10:41:46] NOTICE[3530]: chan_dahdi.c:9480 handle_init_event: Alarm cleared on channel 8 [Apr 12 10:41:46] NOTICE[3529]: chan_dahdi.c:12696 pri_dchannel: PRI got event: No more alarm (5) on Primary D-channel of span 1 [Apr 12 10:41:48] WARNING[3529]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! [Apr 12 10:41:52] WARNING[3529]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! linux5*CLI> quit Executing last minute cleanups |
#vim /etc/dahdi/system.conf
--- /tmp/l3-saved-2943.15903.30430 2013-04-12 10:42:00.000000000 +0300 +++ /etc/dahdi/system.conf 2013-04-12 10:42:05.000000000 +0300 @@ -6,7 +6,7 @@ # This file is parsed by the Dahdi Configurator, dahdi_cfg # # Span 1: WCT1/0 "Wildcard TE121 Card 0" (MASTER) -span=1,1,0,ccs,hdb3,crc4 +span=1,0,0,ccs,hdb3,crc4 # termtype: te bchan=1-15,17-31 dchan=16 |
#dahdi_cfg -v
DAHDI Tools Version - 2.2.1.1 DAHDI Version: 2.6.2 Echo Canceller(s): HWEC Configuration ====================== SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) 31 channels to configure. Setting echocan for channel 1 to none Setting echocan for channel 2 to none Setting echocan for channel 3 to none ... Setting echocan for channel 22 to none Setting echocan for channel 23 to none Setting echocan for channel 24 to none Setting echocan for channel 25 to none Setting echocan for channel 26 to none Setting echocan for channel 27 to none Setting echocan for channel 28 to none Setting echocan for channel 29 to none Setting echocan for channel 30 to none Setting echocan for channel 31 to none |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux5 (pid = 3616) Verbosity is at least 4 [Apr 12 10:42:53] WARNING[3655]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available! Using Primary channel 16 as D-channel anyway! ... -- Channel 0/8, span 1 got hangup request, cause 16 == Spawn extension (incoming_pri, 1401, 1) exited non-zero on 'DAHDI/8-1' -- Hungup 'DAHDI/8-1' -- Extension '2101' in context 'incoming_ivr' from '1102' does not exist. Rejecting call on channel 0/4, span 1 -- Remote UNIX connection disconnected -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes linux5*CLI> Disconnected from Asterisk server |
#grep -v '^;' /etc/asterisk/chan_dahdi.conf | less
|
#grep -v '^;' /etc/asterisk/chan_dahdi.conf | sed 's/;.*//' | grep -xv ''
[trunkgroups] [channels] switchtype=euroisdn signalling=pri_cpe usecallerid=yes callwaiting=yes usecallingpres=yes callwaitingcallerid=yes threewaycalling=yes transfer=yes ... echocancel=yes echocancelwhenbridged=yes callgroup=1 pickupgroup=1 context=incoming group=1 channel => 1-4 context=incoming2 group=2 channel => 5-8 |
#grep -v '^;' /etc/asterisk/chan_dahdi.conf | sed 's/;.*//' | grep -xv ' *'
[trunkgroups] [channels] switchtype=euroisdn signalling=pri_cpe usecallerid=yes callwaiting=yes usecallingpres=yes callwaitingcallerid=yes threewaycalling=yes transfer=yes ... echocancel=yes echocancelwhenbridged=yes callgroup=1 pickupgroup=1 context=incoming group=1 channel => 1-4 context=incoming2 group=2 channel => 5-8 |
#cp /etc/asterisk/chan_dahdi.conf{,.ORIG}
|
#cat /etc/asterisk/chan_dahdi.conf.1
[trunkgroups] [channels] switchtype=euroisdn signalling=pri_cpe usecallerid=yes callwaiting=yes usecallingpres=yes callwaitingcallerid=yes threewaycalling=yes transfer=yes ... echocancel=yes echocancelwhenbridged=yes callgroup=1 pickupgroup=1 context=incoming group=1 channel => 1-4 context=incoming2 group=2 channel => 5-8 |
#[ ]
; ; DAHDI Telephony Configuration file ; ; You need to restart Asterisk to re-configure the DAHDI channel ; CLI> module reload chan_dahdi.so ; will reload the configuration file, but not all configuration options ; are re-configured during a reload (signalling, as well as PRI and ; SS7-related settings cannot be changed on a reload). ; ; This file documents many configuration variables. Normally unless you know ... ; ;[phone-3](phones) ;dahdichan = 3 ;pickupgroup = 3,4 context=incoming group=1 channel => 1-4 context=incoming2 group=2 channel => 5-8 |
#dahdi_cfg -v
DAHDI Tools Version - 2.2.1.1 DAHDI Version: 2.6.2 Echo Canceller(s): HWEC Configuration ====================== SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) 31 channels to configure. Setting echocan for channel 1 to none Setting echocan for channel 2 to none Setting echocan for channel 3 to none ... Setting echocan for channel 22 to none Setting echocan for channel 23 to none Setting echocan for channel 24 to none Setting echocan for channel 25 to none Setting echocan for channel 26 to none Setting echocan for channel 27 to none Setting echocan for channel 28 to none Setting echocan for channel 29 to none Setting echocan for channel 30 to none Setting echocan for channel 31 to none |
#less /var/log/asterisk/messages
|
#; Any negative value means 'default'.
; dms100: Nortel DMS100 ; 4ess: AT&T 4ESS ; 5ess: Lucent 5ESS ; euroisdn: EuroISDN (common in Europe) ; ni1: Old National ISDN 1 ; qsig: Q.SIG ; switchtype=euroisdn ; ; Some switches (AT&T especially) require network specific facility IE ... ; ;[phone-3](phones) ;dahdichan = 3 ;pickupgroup = 3,4 context=incoming group=1 channel => 1-4 context=incoming2 group=2 channel => 5-8 |
#;[fax](phones)
# Autogenerated by /usr/sbin/dahdi_genconf on Fri Apr 12 09:49:39 2013 # If you edit this file and execute /usr/sbin/dahdi_genconf again, # your manual changes will be LOST. # Dahdi Configuration File # # This file is parsed by the Dahdi Configurator, dahdi_cfg # # Span 1: WCT1/0 "Wildcard TE121 Card 0" (MASTER) span=1,0,0,ccs,hdb3,crc4 # termtype: te bchan=1-15,17-31 dchan=16 #echocanceller=oslec,1-15,17-31 # Global data loadzone = us defaultzone = us "/etc/dahdi/system.conf" 18L, 460C |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3905.734.23635 2013-04-12 10:56:53.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-12 10:57:42.000000000 +0300 @@ -89,7 +89,8 @@ exten => _23XX,1,Dial(SIP/minsk/${EXTEN}) [international] -exten => _11XX,1,Dial(SIP/minsk/${EXTEN}) +;exten => _11XX,1,Dial(SIP/minsk/${EXTEN}) +exten => _11XX,1,Dial(DAHDI/g1/${EXTEN}) exten => _12XX,1,Dial(SIP/minsk/${EXTEN}) exten => _13XX,1,Dial(SIP/minsk/${EXTEN}) exten => _14XX,1,Dial(SIP/minsk/${EXTEN}) |
#asterisk -rvvvv
Asterisk 1.6.2.9-2+squeeze10, 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+squeeze10 currently running on linux5 (pid = 3616) Verbosity was 3 and is now 4 linux5*CLI> exit Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3905.23821.7273 2013-04-12 10:57:57.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-12 10:58:01.000000000 +0300 @@ -90,7 +90,7 @@ [international] ;exten => _11XX,1,Dial(SIP/minsk/${EXTEN}) -exten => _11XX,1,Dial(DAHDI/g1/${EXTEN}) +exten => _11XX,1,Dial(DAHDI/g2/${EXTEN}) exten => _12XX,1,Dial(SIP/minsk/${EXTEN}) exten => _13XX,1,Dial(SIP/minsk/${EXTEN}) exten => _14XX,1,Dial(SIP/minsk/${EXTEN}) |
#;dahdichan = 2
DAHDI Tools Version - 2.2.1.1 DAHDI Version: 2.6.2 Echo Canceller(s): HWEC Configuration ====================== SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) 31 channels to configure. Setting echocan for channel 1 to none Setting echocan for channel 2 to none Setting echocan for channel 3 to none ... Setting echocan for channel 22 to none Setting echocan for channel 23 to none Setting echocan for channel 24 to none Setting echocan for channel 25 to none Setting echocan for channel 26 to none Setting echocan for channel 27 to none Setting echocan for channel 28 to none Setting echocan for channel 29 to none Setting echocan for channel 30 to none Setting echocan for channel 31 to none |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2218.15491.28623 2013-04-12 11:32:54.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-12 11:34:51.000000000 +0300 @@ -126,5 +126,12 @@ ;include => national ;include => international -[incoming2] +[incoming_ivr] exten => s,1,Goto(menu,s,1) + +[incoming_pri] +include => internal +include => local +include => ukraine +include => national +include => international |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2218.7140.5881 2013-04-12 11:58:24.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-12 11:59:26.000000000 +0300 @@ -135,3 +135,8 @@ include => ukraine include => national include => international + +[incoming_gsm] +include => internal +include => local +include => national |
#channel => 5-8
; dms100: Nortel DMS100 ; 4ess: AT&T 4ESS ; 5ess: Lucent 5ESS ; euroisdn: EuroISDN (common in Europe) ; ni1: Old National ISDN 1 ; qsig: Q.SIG ; switchtype=euroisdn ; ; Some switches (AT&T especially) require network specific facility IE ... ~ ~ "/etc/asterisk/chan_dahdi.conf" 1236L, 47110C written context=incoming2 group=1 channel => 1-4 context=incoming group=2 channel => 5-8 ~ |
#asterisk-r
bash: asterisk-r: command not found |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux5 (pid = 3616) Verbosity is at least 4 linux5*CLI> dahdi restart ... -- Accepting call from '1101' to '1401' on channel 0/8, span 1 -- Executing [1401@incoming_pri:1] Dial("DAHDI/8-1", "SIP/minsk/1401") in new stack == Using SIP RTP CoS mark 5 -- Called minsk/1401 -- SIP/minsk-00000003 answered DAHDI/8-1 -- Channel 0/8, span 1 got hangup request, cause 16 == Spawn extension (incoming_pri, 1401, 1) exited non-zero on 'DAHDI/8-1' -- Hungup 'DAHDI/8-1' -- Extension '2101' in context 'incoming_ivr' from '1102' does not exist. Rejecting call on channel 0/4, span 1 linux5*CLI> exit |
#apt-get install subversion
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: libserf-0-0 libsvn1 Suggested packages: subversion-tools db4.8-util ... (Reading database ... 131042 files and directories currently installed.) Unpacking libserf-0-0 (from .../libserf-0-0_0.3.1-1_i386.deb) ... Selecting previously deselected package libsvn1. Unpacking libsvn1 (from .../libsvn1_1.6.12dfsg-6_i386.deb) ... Selecting previously deselected package subversion. Unpacking subversion (from .../subversion_1.6.12dfsg-6_i386.deb) ... Processing triggers for man-db ... Setting up libserf-0-0 (0.3.1-1) ... Setting up libsvn1 (1.6.12dfsg-6) ... Setting up subversion (1.6.12dfsg-6) ... |
#apt-get install subversion-dev
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package subversion-dev |
[trunkgroups] [channels] switchtype=euroisdn signalling=pri_cpe usecallerid=yes callwaiting=yes usecallingpres=yes callwaitingcallerid=yes threewaycalling=yes transfer=yes canpark=yes cancallforward=yes callreturn=yes echocancel=yes echocancelwhenbridged=yes callgroup=1 pickupgroup=1 context=incoming group=1 channel => 1-4 context=incoming2 group=2 channel => 5-8
Channel:SIP/minsk/1302 Context:internal Extension:8501 StartRetry: 1425 1 (1365689894)
Время первой команды журнала | 16:13:32 2013- 4-11 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 10:50:26 2013- 4-12 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 9.90 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.98 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.74 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.97 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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