Журнал лабораторных работ

Содержание

Журнал

Четверг (04/26/12)

/dev/pts/0
08:07:35
#reboot

/dev/pts/0
08:08:41
#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:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (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)
08:08:47
#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:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (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)
08:09:15
#dmesg
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 2.6.32-5-686 (Debian 2.6.32-41squeeze2) (dannf@debian.org) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Mon Mar 26 05:20:33 UTC 2012
[    0.000000] KERNEL supported cpus:
[    0.000000]   Intel GenuineIntel
[    0.000000]   AMD AuthenticAMD
[    0.000000]   NSC Geode by NSC
[    0.000000]   Cyrix CyrixInstead
[    0.000000]   Centaur CentaurHauls
[    0.000000]   Transmeta GenuineTMx86
...
[   11.821409] Bluetooth: RFCOMM ver 1.11
[   18.441135] CPU0 attaching NULL sched-domain.
[   18.441138] CPU1 attaching NULL sched-domain.
[   18.464056] CPU0 attaching sched-domain:
[   18.464059]  domain 0: span 0-1 level MC
[   18.464061]   groups: group c3403778 cpus 0 group c3503778 cpus 1
[   18.464067] CPU1 attaching sched-domain:
[   18.464069]  domain 0: span 0-1 level MC
[   18.464071]   groups: group c3503778 cpus 1 group c3403778 cpus 0
[   19.152012] eth0: no IPv6 routers present
08:12:56
#dmesg | less
08:16:40
#dmesg | grep pri

08:16:47
#dmesg | grep dig

08:16:49
#dmesg | grep pci
[    0.161132] ACPI: bus type pci registered
[    0.178437] pci 0000:00:02.0: reg 10 32bit mmio: [0xf0100000-0xf017ffff]
[    0.178441] pci 0000:00:02.0: reg 14 io port: [0x1230-0x1237]
[    0.178445] pci 0000:00:02.0: reg 18 32bit mmio pref: [0xe0000000-0xefffffff]
[    0.178449] pci 0000:00:02.0: reg 1c 32bit mmio: [0xf0000000-0xf00fffff]
[    0.178486] pci 0000:00:03.0: reg 10 64bit mmio: [0xf01a6900-0xf01a690f]
[    0.178509] pci 0000:00:03.0: PME# supported from D0 D3hot D3cold
[    0.178512] pci 0000:00:03.0: PME# disabled
[    0.178534] pci 0000:00:03.2: reg 10 io port: [0x1238-0x123f]
[    0.178539] pci 0000:00:03.2: reg 14 io port: [0x1270-0x1273]
...
[    0.246584] pci_bus 0000:30: resource 1 mem: [0xf0600000-0xf07fffff]
[    0.246587] pci_bus 0000:30: resource 2 pref mem [0xf0800000-0xf09fffff]
[    0.246589] pci_bus 0000:07: resource 3 io:  [0x00-0xffff]
[    0.246591] pci_bus 0000:07: resource 4 mem: [0x000000-0xffffffff]
[    0.247385] pci 0000:00:02.0: Boot video device
[    0.453786] pcieport 0000:00:1c.0: irq 24 for MSI/MSI-X
[    0.453794] pcieport 0000:00:1c.0: setting latency timer to 64
[    0.453891] pcieport 0000:00:1c.1: irq 25 for MSI/MSI-X
[    0.453898] pcieport 0000:00:1c.1: setting latency timer to 64
[    5.341593] input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1b.0/input/input5
08:16:53
#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:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (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)
прошла 31 минута
/dev/pts/0
08:48:21
#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:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (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)
07:0b.0 Ethernet controller: Digium, Inc. Wildcard TE122 single-span T1/E1/J1 card (rev 11)
08:48:23
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux1 (pid = 1383)
...
    -- Executing [1002@local:3] Monitor("SIP/1005-0000006d", "wav,1005-1002-2012-04-26-12_22_47,m") in new stack
    -- Executing [1002@local:4] Dial("SIP/1005-0000006d", "SIP/1002,30,tT") in new stack
  == Using SIP RTP CoS mark 5
  == Using SIP VRTP CoS mark 6
    -- Called 1002
    -- SIP/1002-0000006e is ringing
  == Spawn extension (local, 1002, 4) exited non-zero on 'SIP/1005-0000006d'
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
прошло >2 часов
11:25:50
#cd /etc/asterisk/

11:26:58
#chown asterisk:asterisk out-call.conf

11:27:10
#cp -p out-call.conf /var/spool/asterisk/outgoing/

11:27:26
#ls -l /var/spool/asterisk/outgoing/
total 0
11:28:25
#ls -l /var/spool/asterisk/outgoing/
total 0
11:29:45
#dahdi_genconf

прошло >2 часов
14:05:42
#dahdi_genconf

14:10:09
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux1 (pid = 3935)
...
     27            gr-all                     default                         In Service
     28            gr-all                     default                         In Service
     29            gr-all                     default                         In Service
     30            gr-all                     default                         In Service
     31            gr-all                     default                         In Service
[Apr 26 15:14:34] WARNING[4014]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Apr 26 15:14:38] WARNING[4014]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available!  Using Primary channel 16 as D-channel anyway!
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
14:14:39
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux1 (pid = 3935)
...
    -- merging incls/swits/igpats from old(ael-dundi-e164-canonical) to new(ael-dundi-e164-canonical) context, registrar = pbx_config
    -- Time to scan old dialplan and merge leftovers back into the new: 0.000690 sec
    -- Time to restore hints and swap in new dialplan: 0.000001 sec
    -- Time to delete the old dialplan: 0.000072 sec
    -- Total time merge_contexts_delete: 0.000763 sec
[Apr 26 15:16:14] WARNING[4014]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Apr 26 15:16:18] WARNING[4014]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available!  Using Primary channel 16 as D-channel anyway!
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
14:16:19
#/init.d/dahdi restart
bash: /init.d/dahdi: No such file or directory
14:16:32
#/etc/init.d/dahdi restart
Unloading DAHDI hardware modules: ERROR: Module dahdi_echocan_oslec is in use
ERROR: Module wcte12xp is in use
ERROR: Module wcte12xp is in use
ERROR: Module dahdi_voicebus is in use by wcte12xp
ERROR: Module dahdi is in use by dahdi_echocan_oslec,wcte12xp,dahdi_voicebus
ERROR: Module dahdi_echocan_oslec is in use
ERROR: Module echo is in use by dahdi_echocan_oslec
error
Loading DAHDI hardware modules:
Running dahdi_cfg: done.
14:16:38
#modprobe wcte12xp

14:16:53
#/etc/init.d/dahdi restart
Unloading DAHDI hardware modules: ERROR: Module dahdi_echocan_oslec is in use
ERROR: Module wcte12xp is in use
ERROR: Module wcte12xp is in use
ERROR: Module dahdi_voicebus is in use by wcte12xp
ERROR: Module dahdi is in use by dahdi_echocan_oslec,wcte12xp,dahdi_voicebus
ERROR: Module dahdi_echocan_oslec is in use
ERROR: Module echo is in use by dahdi_echocan_oslec
error
Loading DAHDI hardware modules:
Running dahdi_cfg: done.
14:16:57
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
14:17:07
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux1 (pid = 4272)
...
    -- Reloading module 'res_adsi.so' (ADSI Resource)
    -- Reloading module 'app_queue.so' (True Call Queueing)
  == Parsing '/etc/asterisk/unistim.conf': [Apr 26 15:18:43] NOTICE[4319]: app_queue.c:5650 reload_queue_rules: queuerules.conf has not changed since it was last loaded. Not taking any action.
  == Found
    -- Reloading module 'app_voicemail.so' (Comedian Mail (Voicemail System))
[Apr 26 15:18:45] WARNING[4332]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Apr 26 15:18:49] WARNING[4332]: chan_dahdi.c:4160 pri_find_dchan: No D-channels available!  Using Primary channel 16 as D-channel anyway!
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
14:18:50
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
14:19:52
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
14:19:54
#^C

прошло 23 минуты
14:43:18
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
14:43:28
#^C

14:44:12
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux1 (pid = 4579)
...
here = 0, tmp->channel = 1, channel = 1
[Apr 26 16:06:15] ERROR[4836]: chan_dahdi.c:16141 build_channels: Unable to register channel '1-15,17-31'
[Apr 26 16:06:15] WARNING[4836]: chan_dahdi.c:14558 dahdi_restart: Reload channels from dahdi config failed!
    -- Remote UNIX connection disconnected
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
прошло 27 минут
15:11:35
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux1 (pid = 4916)
...
    -- SIP/1005-00000003 is ringing
    -- SIP/1005-00000003 answered DAHDI/31-1
  == Spawn extension (gr-all, 1005, 4) exited non-zero on 'DAHDI/31-1'
    -- Hungup 'DAHDI/31-1'
       > Saved useragent "X-Lite 4 release 4.1 stamp 63214" for peer 1002
    -- Remote UNIX connection disconnected
       > Saved useragent "Cisco-CP7960G/8.0" for peer 1005
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
прошло 65 минут
16:17:24
#apt-get install subversion
subversion        subversion-tools
16:17:24
#apt-get install subversion
subversion        subversion-tools
16:17:24
#apt-get install subversion asterisk-dev
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
...
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 asterisk-dev (1:1.6.2.9-2+squeeze5) ...
Setting up libserf-0-0 (0.3.1-1) ...
Setting up libsvn1 (1.6.12dfsg-6) ...
Setting up subversion (1.6.12dfsg-6) ...
16:17:57
#svn chechout http://datacard.googlecode.com/svn/trunk/datacard-read-only
Unknown command: 'chechout'
Type 'svn help' for usage.
16:27:51
#svn checkout http://datacard.googlecode.com/svn/trunk/datacard-read-only
svn: URL 'http://datacard.googlecode.com/svn/trunk/datacard-read-only' doesn't exist
16:28:02
#svn checkout http://datacard.googlecode.com/svn/trunk/datacard-read-only
svn: URL 'http://datacard.googlecode.com/svn/trunk/datacard-read-only' doesn't exist
16:28:40
#svn checkout http://datacard.googlecode.com/svn/trunk/ datacard-read-only
A    datacard-read-only/at_read.c
A    datacard-read-only/Makefile.in
A    datacard-read-only/TODO.txt
A    datacard-read-only/at_read.h
A    datacard-read-only/cli.c
A    datacard-read-only/channel.c
A    datacard-read-only/manager.c
A    datacard-read-only/dc_config.c
A    datacard-read-only/cli.h
A    datacard-read-only/asteriskforum
...
A    datacard-read-only/config.h.in
A    datacard-read-only/LICENSE.txt
A    datacard-read-only/cpvt.h
A    datacard-read-only/single.c
A    datacard-read-only/memmem.h
A    datacard-read-only/README.txt
A    datacard-read-only/etc
A    datacard-read-only/etc/extensions.conf
A    datacard-read-only/etc/datacard.conf
Checked out revision 203.
16:28:56
#ls
adsi.conf                cli_aliases.conf         extensions_minivm.conf  minivm.conf             rtp.conf
adtranvofr.conf          cli.conf                 features.conf           misdn.conf              say.conf
agents.conf              cli_permissions.conf     festival.conf           modules.conf            sip.conf
ais.conf                 codecs.conf              followme.conf           musiconhold.conf        sip.conf.saved
alarmreceiver.conf       console.conf             func_odbc.conf          muted.conf              sip_notify.conf
alsa.conf                dahdi-channels.conf      gtalk.conf              osp.conf                skinny.conf
amd.conf                 dahdi-channels.conf.bak  h323.conf               oss.conf                sla.conf
asterisk.adsi            datacard-read-only       http.conf               out-call.conf           smdi.conf
asterisk.conf            dbsep.conf               iax.conf                phone.conf              telcordia-1.adsi
cdr_adaptive_odbc.conf   dnsmgr.conf              iaxprov.conf            phoneprov.conf          udptl.conf
cdr.conf                 dsp.conf                 indications.conf        queuerules.conf         unistim.conf
cdr_custom.conf          dundi.conf               jabber.conf             queues.conf             usbradio.conf
cdr_manager.conf         enum.conf                jingle.conf             res_config_sqlite.conf  users.conf
cdr_odbc.conf            extconfig.conf           logger.conf             res_ldap.conf           voicemail.conf
cdr_pgsql.conf           extensions.ael           manager.conf            res_odbc.conf           vpb.conf
cdr_sqlite3_custom.conf  extensions.conf          manager.d               res_pgsql.conf
cdr_tds.conf             extensions.conf.save     meetme.conf             res_snmp.conf
chan_dahdi.conf          extensions.lua           mgcp.conf               rpt.conf
16:29:10
#ls
app.c          at_queue.h       channel.c     COPYRIGHT.txt  export.h     memmem.c      pdu.h         tools
app.h          at_read.c        channel.h     cpvt.c         helpers.c    memmem.h      README.txt
asteriskforum  at_read.h        char_conv.c   cpvt.h         helpers.h    mixbuffer.c   ringbuffer.c
at_command.c   at_response.c    char_conv.h   dc_config.c    INSTALL      mixbuffer.h   ringbuffer.h
at_command.h   at_response.h    cli.c         dc_config.h    LICENSE.txt  mutils.h      single.c
at_parse.c     BUGS             cli.h         dist           Makefile.in  pdiscovery.c  stamp-h.in
at_parse.h     chan_datacard.c  config.h.in   doc            manager.c    pdiscovery.h  test
at_queue.c     chan_datacard.h  configure.in  etc            manager.h    pdu.c         TODO.txt
16:29:12
#.\configure
bash: .configure: command not found
16:29:22
#svn checkout http://datacard.googlecode.com/svn/trunk/
A    trunk/at_read.c
A    trunk/Makefile.in
A    trunk/TODO.txt
A    trunk/at_read.h
A    trunk/cli.c
A    trunk/channel.c
A    trunk/manager.c
A    trunk/dc_config.c
A    trunk/cli.h
A    trunk/asteriskforum
...
A    trunk/config.h.in
A    trunk/LICENSE.txt
A    trunk/cpvt.h
A    trunk/single.c
A    trunk/memmem.h
A    trunk/README.txt
A    trunk/etc
A    trunk/etc/extensions.conf
A    trunk/etc/datacard.conf
Checked out revision 203.
16:30:08
#ls
app.c          at_queue.h       channel.c     COPYRIGHT.txt  export.h     memmem.c      pdu.h         tools
app.h          at_read.c        channel.h     cpvt.c         helpers.c    memmem.h      README.txt    trunk
asteriskforum  at_read.h        char_conv.c   cpvt.h         helpers.h    mixbuffer.c   ringbuffer.c
at_command.c   at_response.c    char_conv.h   dc_config.c    INSTALL      mixbuffer.h   ringbuffer.h
at_command.h   at_response.h    cli.c         dc_config.h    LICENSE.txt  mutils.h      single.c
at_parse.c     BUGS             cli.h         dist           Makefile.in  pdiscovery.c  stamp-h.in
at_parse.h     chan_datacard.c  config.h.in   doc            manager.c    pdiscovery.h  test
at_queue.c     chan_datacard.h  configure.in  etc            manager.h    pdu.c         TODO.txt
16:30:13
#cd trunk/

16:30:18
#ls
app.c          at_queue.h       channel.c     COPYRIGHT.txt  export.h     memmem.c      pdu.h         tools
app.h          at_read.c        channel.h     cpvt.c         helpers.c    memmem.h      README.txt
asteriskforum  at_read.h        char_conv.c   cpvt.h         helpers.h    mixbuffer.c   ringbuffer.c
at_command.c   at_response.c    char_conv.h   dc_config.c    INSTALL      mixbuffer.h   ringbuffer.h
at_command.h   at_response.h    cli.c         dc_config.h    LICENSE.txt  mutils.h      single.c
at_parse.c     BUGS             cli.h         dist           Makefile.in  pdiscovery.c  stamp-h.in
at_parse.h     chan_datacard.c  config.h.in   doc            manager.c    pdiscovery.h  test
at_queue.c     chan_datacard.h  configure.in  etc            manager.h    pdu.c         TODO.txt
16:30:19
#cd /var/tmp

16:31:59
#svn checkout http://chan-datacard.googlecode.com/svn/trunk/ datacard-read-only
A    datacard-read-only/__helpers.c
A    datacard-read-only/__char_conv.c
A    datacard-read-only/configure
A    datacard-read-only/chan_datacard.h
A    datacard-read-only/Makefile.in
A    datacard-read-only/__cli.c
A    datacard-read-only/COPYRIGHT.txt
A    datacard-read-only/__channel.c
A    datacard-read-only/__manager.c
A    datacard-read-only/__at_fifo_queue.c
...
A    datacard-read-only/__at_response.c
A    datacard-read-only/__ringbuffer.c
A    datacard-read-only/README.txt
A    datacard-read-only/etc
A    datacard-read-only/etc/datacard.conf
A    datacard-read-only/__ringbuffer.h
A    datacard-read-only/chan_datacard.c
A    datacard-read-only/__at_parse.c
A    datacard-read-only/__at_read.c
Checked out revision 191.
16:32:08
#cd datacard-read-only/

16:32:19
#ls
__app.c            __at_response.c  __channel.c    COPYRIGHT.txt  Makefile.in  __ringbuffer.c
__at_fifo_queue.c  __at_send.c      __char_conv.c  etc            __manager.c  __ringbuffer.h
__at_parse.c       chan_datacard.c  __cli.c        __helpers.c    __memmem.c
__at_read.c        chan_datacard.h  configure      LICENSE.txt    README.txt
16:32:20
#./configure
configure complete, now type 'make'
16:32:22
#make
gcc -Wextra -fPIC -DAST_MODULE=\"chan_datacard\" -D_THREAD_SAFE -I. -I/usr/include -O2 -DICONV_CONST="" -D__DEBUG__ -D__MANAGER__ -D__APP__ -c chan_datacard.c
gcc  -shared -Xlinker -x chan_datacard.o  -o chan_datacard.so
chmod 755 chan_datacard.so
16:32:28
#make install
gcc -Wextra -fPIC -DAST_MODULE=\"chan_datacard\" -D_THREAD_SAFE -I. -I/usr/include -O2 -DICONV_CONST="" -D__DEBUG__ -D__MANAGER__ -D__APP__ -c chan_datacard.c
gcc  -shared -Xlinker -x chan_datacard.o  -o chan_datacard.so
chmod 755 chan_datacard.so
install -d                /usr/lib/asterisk/modules/
install -m 755 chan_datacard.so /usr/lib/asterisk/modules/
16:32:33
#ls
__app.c            __at_response.c  chan_datacard.o   __cli.c        __helpers.c  __manager.c     __ringbuffer.h
__at_fifo_queue.c  __at_send.c      chan_datacard.so  configure      LICENSE.txt  __memmem.c
__at_parse.c       chan_datacard.c  __channel.c       COPYRIGHT.txt  Makefile     README.txt
__at_read.c        chan_datacard.h  __char_conv.c     etc            Makefile.in  __ringbuffer.c
16:32:59
#less README.txt
16:34:05
#cp /etc/datacard.conf /etc/asterisk/
cp: cannot stat `/etc/datacard.conf': No such file or directory
16:35:06
#ls etc
datacard.conf
16:35:20
#cp ./etc/datacard.conf /etc/asterisk/

16:38:28
#asterist -rvvv
bash: asterist: command not found
16:38:35
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux1 (pid = 5582)
...
ID           Group State      RSSI Mode Submode Provider Name  Model      Firmware          IMEI             IMSI             Number
datacard0    1     Not connec 0    0    0       NONE                                                                          Unknown
    -- Datacard datacard0 trying to connect on /dev/ttyUSB2...
[Apr 26 17:55:28] WARNING[5601]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB1'
linux1*CLI> datacard show device
Usage: datacard show device <device>
       Shows the state and config of Datacard device.
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
прошло 16 минут
16:55:32
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.

Пятница (04/27/12)

/dev/pts/0
07:05:18
#apt-get install ejabberd
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:
  erlang-asn1 erlang-base erlang-crypto erlang-inets erlang-mnesia erlang-odbc erlang-public-key erlang-runtime-tools
  erlang-ssl erlang-syntax-tools libsctp1 lksctp-tools
Suggested packages:
...
Setting up erlang-inets (1:14.a-dfsg-3squeeze1) ...
Setting up erlang-odbc (1:14.a-dfsg-3squeeze1) ...
Setting up ejabberd (2.1.5-3+squeeze1) ...
adduser: Warning: The home directory `/var/lib/ejabberd' does not belong to the user you are currently creating.
Generating SSL certificate /etc/ejabberd/ejabberd.pem...
Creating config file /etc/ejabberd/ejabberd.cfg with new version
Starting jabber server: ejabberd............................................................ failed.
Setting up libsctp1 (1.0.11+dfsg-1) ...
Setting up lksctp-tools (1.0.11+dfsg-1) ...
Processing triggers for menu ...
прошло 46 минут
07:51:52
#vim /etc/hosts
--- /tmp/l3-saved-2130.13767.19894	2012-04-27 08:52:06.000000000 +0300
+++ /etc/hosts	2012-04-27 08:52:15.000000000 +0300
@@ -1,5 +1,5 @@
 127.0.0.1	localhost
-192.168.15.1	linux1.unix.nt	linux1
+192.168.10.1	linux1.unix.nt	linux1
 
 # The following lines are desirable for IPv6 capable hosts
 ::1     ip6-localhost ip6-loopback
07:52:47
#dpkg-reconfigure ej
ejabberd  eject
07:52:47
#dpkg-reconfigure ej
ejabberd  eject
07:52:47
#dpkg-reconfigure ejabberd
Package configuration
                     ┌──────────────────────────┤ Configuring ejabberd ├──────────────────────────┐
                     │ Please reenter the password for the administrative user for verification.  │
                     │                                                                            │
                     │ The password for the admin account again for verification:                 │
                     │                                                                            │
                     â”********____________________________________________________________________ │
                     │                                                                            │
                     │                                   <Ok>                                     │
                     │                                                                            │
                     └────────────────────────────────────────────────────────────────────────────┘
Replacing config file /etc/ejabberd/ejabberd.cfg with new version
Starting jabber server: ejabberd.
Waiting for ejabberd to register admin user.
Admin user "admin@linux1.unix.nt" is registered successfully.
07:56:25
#apt-get install pidgin
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:
  libmeanwhile1 libpurple-bin libpurple0 libsilc-1.1-2 libsilcclient-1.1-3 libzephyr4 pidgin-data
Suggested packages:
  tk8.4
...
Processing triggers for gconf2 ...
Setting up libmeanwhile1 (1.0.2-3) ...
Setting up pidgin-data (2.7.3-1+squeeze2) ...
Setting up libsilc-1.1-2 (1.1.10-2) ...
Setting up libsilcclient-1.1-3 (1.1.10-2) ...
Setting up libzephyr4 (3.0-1) ...
Setting up libpurple0 (2.7.3-1+squeeze2) ...
Setting up libpurple-bin (2.7.3-1+squeeze2) ...
Setting up pidgin (2.7.3-1+squeeze2) ...
Processing triggers for menu ...
07:58:40
#pidgin
librdf warning - Model does not support contexts
librdf warning - Model does not support contexts
librdf warning - Model does not support contexts
(Pidgin:5658): GVFS-RemoteVolumeMonitor-WARNING **: cannot connect to the session bus: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
(Pidgin:5658): GVFS-RemoteVolumeMonitor-WARNING **: cannot connect to the session bus: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
(Pidgin:5658): GVFS-RemoteVolumeMonitor-WARNING **: cannot connect to the session bus: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
прошло 13 минут
08:12:18
#ping 192.168.30.1
PING 192.168.30.1 (192.168.30.1) 56(84) bytes of data.
64 bytes from 192.168.30.1: icmp_req=1 ttl=63 time=0.567 ms
64 bytes from 192.168.30.1: icmp_req=2 ttl=63 time=0.407 ms
^X^C
--- 192.168.30.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.407/0.487/0.567/0.080 ms
08:13:25
#pidgin
GConf Error: Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details -  1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
GConf Error: Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details -  1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
GConf Error: Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details -  1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout
Cannot connect to server socket err = No such file or directory
...
Cannot connect to server socket
jack server is not running or cannot be started
GConf Error: Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details -  1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
GConf Error: Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details -  1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
прошло 52 минуты
09:05:56
#vim /etc/ejabberd/ejabberd.cfg
--- /tmp/l3-saved-2130.3733.2719	2012-04-27 10:06:12.000000000 +0300
+++ /etc/ejabberd/ejabberd.cfg	2012-04-27 10:06:53.000000000 +0300
@@ -573,7 +573,7 @@
   %%                      ]},
   {mod_last,     []},
   {mod_muc,      [
-		  %%{host, "conference.@HOST@"},
+		  {host, "conference.@HOST@"},
 		  {access, muc},
 		  {access_create, muc},
 		  {access_persistent, muc},
09:08:00
#&pidgin
bash: syntax error near unexpected token `&'
09:08:03
#./pidgin
bash: ./pidgin: No such file or directory
09:08:07
#./pidgin $
bash: ./pidgin: No such file or directory
09:08:15
#pidgin &&
> ^C
09:08:21
#./pidgin &
[1] 6198
bash: ./pidgin: No such file or directory
[1]+  Exit 127                ./pidgin
09:09:34
#./pidgin &
[1] 6207
bash: ./pidgin: No such file or directory
[1]+  Exit 127                ./pidgin
09:09:48
#pidgin &
[1] 6215
09:09:58
#GConf Error: Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the repl
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
GConf Error: Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details -  1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
GConf Error: Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details -  1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
...
jack server is not running or cannot be started
GConf Error: Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details -  1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
pidgin &GConf Error: Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details -  1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
^C
09:16:05
#GConf Error: Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the repl
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
pidgin &&^C
прошло 12 минут
09:28:23
#apt-get install sendxmpp
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:
  libauthen-sasl-perl libdigest-sha1-perl libio-socket-ssl-perl libnet-libidn-perl libnet-ssleay-perl libnet-xmpp-perl
  libxml-stream-perl
Suggested packages:
...
Unpacking sendxmpp (from .../sendxmpp_1.20-1_all.deb) ...
Processing triggers for man-db ...
Setting up libauthen-sasl-perl (2.1500-1) ...
Setting up libdigest-sha1-perl (2.13-1) ...
Setting up libnet-ssleay-perl (1.36-1) ...
Setting up libio-socket-ssl-perl (1.33-1+squeeze1) ...
Setting up libnet-libidn-perl (0.12.ds-1+b1) ...
Setting up libxml-stream-perl (1.23-1) ...
Setting up libnet-xmpp-perl (1.02-1) ...
Setting up sendxmpp (1.20-1) ...
09:33:40
#exho priver | sendxmpp -i /var/lib/asterisk/sendxmpp admin@linux1.unix.nt
bash: exho: command not found
cannot read /root/.sendxmpprc: No such file or directory
09:35:10
#echo priver | sendxmpp -i /var/lib/asterisk/sendxmpp admin@linux1.unix.nt
cannot read /root/.sendxmpprc: No such file or directory
09:35:18
#chown root:root /var/lib/asterisk/sendxmpp
chown: cannot access `/var/lib/asterisk/sendxmpp': No such file or directory
09:35:54
#chown root:root /var/lib/asterisk/sendxmpprc

09:37:16
#ejabberdctl register asterisk linux1.unix.nt asterisk
User asterisk@linux1.unix.nt already registered at node ejabberd@linux1
09:40:29
#ls -l root
ls: cannot access root: No such file or directory
09:40:37
#ls -l /root
total 4
-rwxr-xr-x 1 root root 33 Apr 27 10:40 sendxmpprc
09:41:25
#echo priver | sendxmpp -f /var/lib/asterisk/sendxmpprc admin@linux1.unix.nt
/var/lib/asterisk/sendxmpprc must not be accessible by others
09:42:15
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-2+squeeze4 currently running on linux1 (pid = 1481)
...
    -- Datacard datacard0 trying to connect on /dev/ttyUSB2...
[Apr 27 12:20:55] WARNING[1538]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB2'
    -- Datacard datacard0 trying to connect on /dev/ttyUSB2...
[Apr 27 12:21:10] WARNING[1538]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB2'
[Apr 27 12:21:11] NOTICE[1553]: chan_iax2.c:10843 socket_process: Registration of 'rome' rejected: 'Registration Refused' from: '192.168.20.1'
[Apr 27 12:21:11] NOTICE[1551]: chan_iax2.c:10843 socket_process: Registration of 'rome' rejected: 'Registration Refused' from: '192.168.50.1'
[Apr 27 12:21:11] NOTICE[1557]: chan_iax2.c:10843 socket_process: Registration of 'rome' rejected: 'Registration Refused' from: '192.168.30.1'
linux1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
прошло >2 часов
11:59:57
#tail -f /var/log/asterisk/messages
[Apr 27 12:33:39] WARNING[7182] chan_sip.c: No such host: livorno
[Apr 27 12:33:39] WARNING[7182] app_dial.c: Unable to create channel of type 'SIP' (cause 20 - Unknown)
[Apr 27 12:35:33] WARNING[7171] chan_sip.c: Remote host can't match request CANCEL to call '201f6bd4277458fd63444cde1c197bcb@192.168.10.1'. Giving up.
[Apr 27 12:35:41] WARNING[7209] chan_sip.c: No such host: livorno
[Apr 27 12:35:41] WARNING[7209] app_dial.c: Unable to create channel of type 'SIP' (cause 20 - Unknown)
[Apr 27 12:35:45] WARNING[7210] chan_sip.c: No such host: livorno
[Apr 27 12:35:45] WARNING[7210] app_dial.c: Unable to create channel of type 'SIP' (cause 20 - Unknown)
[Apr 27 12:36:27] NOTICE[7171] chan_sip.c: Registration from '<sip:livorno@192.168.10.1>' failed for '192.168.20.1' - No matching peer found
[Apr 27 12:37:08] WARNING[7175] pbx_config.c: No closing parenthesis found? 'GotoIfTime(9:00-17:00,mon-fri,*,*?queue' at line 115
[Apr 27 12:43:40] NOTICE[7171] chan_sip.c: Registration from '<sip:livorno@192.168.10.1>' failed for '192.168.20.1' - No matching peer found
...
[Apr 27 13:00:45] NOTICE[7171] chan_sip.c: Registration from '<sip:1002@192.168.10.1>' failed for '192.168.10.10' - Wrong password
[Apr 27 13:00:46] NOTICE[7171] chan_sip.c: Registration from '<sip:1002@192.168.10.1>' failed for '192.168.10.10' - Wrong password
[Apr 27 13:00:47] NOTICE[7171] chan_sip.c: Registration from '<sip:1002@192.168.10.1>' failed for '192.168.10.10' - Wrong password
[Apr 27 13:00:48] NOTICE[7171] chan_sip.c: Registration from '<sip:1002@192.168.10.1>' failed for '192.168.10.10' - Wrong password
[Apr 27 13:01:25] NOTICE[7171] chan_sip.c: Registration from '<sip:1002@192.168.10.1>' failed for '192.168.10.10' - Wrong password
[Apr 27 13:01:28] NOTICE[7171] chan_sip.c: Registration from '<sip:1002@192.168.10.1>' failed for '192.168.10.10' - Wrong password
[Apr 27 13:01:30] NOTICE[7171] chan_sip.c: Registration from '<sip:1002@192.168.10.1>' failed for '192.168.10.10' - Wrong password
[Apr 27 13:01:30] NOTICE[7171] chan_sip.c: Registration from '<sip:1002@192.168.10.1>' failed for '192.168.10.10' - Wrong password
[Apr 27 13:01:31] NOTICE[7171] chan_sip.c: Registration from '<sip:1002@192.168.10.1>' failed for '192.168.10.10' - Wrong password
^C
прошло 76 минут
13:16:43
#cd /usr

13:17:15
#ls
bin  games  include  lib  lib64  local  sbin  share  src
13:17:15
#cd local/

13:17:17
#ls
bin  etc  games  include  lib  man  sbin  share  src
13:17:19
#cd bin

13:17:21
#ls
asterisk-festival.pl  check-failed-regs.pl  l3-agent  l3-config  l3script
13:17:22
#ipt
iptables          iptables-multi    iptables-save     iptunnel
iptables-apply    iptables-restore  iptables-xml
13:17:22
#ipt
iptables          iptables-multi    iptables-save     iptunnel
iptables-apply    iptables-restore  iptables-xml
13:17:22
#iptables
iptables v1.4.8: no command specified
Try `iptables -h' or 'iptables --help' for more information.

Статистика

Время первой команды журнала08:07:35 2012- 4-26
Время последней команды журнала13:17:22 2012- 4-27
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, %11.88
Процент синтаксически неверно набранных команд, % 4.95
Суммарное время работы с терминалом *, час 2.93
Количество командных строк в единицу времени, команда/мин 0.57
Частота использования команд
ls14|============| 12.50%
pidgin9|========| 8.04%
asterisk8|=======| 7.14%
cd7|======| 6.25%
apt-get6|=====| 5.36%
svn6|=====| 5.36%
/etc/init.d/asterisk5|====| 4.46%
dmesg5|====| 4.46%
lspci4|===| 3.57%
cp3|==| 2.68%
dpkg-reconfigure3|==| 2.68%
chown3|==| 2.68%
sendxmpp3|==| 2.68%
grep3|==| 2.68%
&2|=| 1.79%
/etc/init.d/dahdi2|=| 1.79%
make2|=| 1.79%
echo2|=| 1.79%
dahdi_genconf2|=| 1.79%
ipt2|=| 1.79%
vim2|=| 1.79%
less2|=| 1.79%
^C2|=| 1.79%
GConf2|=| 1.79%
the2|=| 1.79%
configure1|| 0.89%
asterist1|| 0.89%
.\configure1|| 0.89%
reboot1|| 0.89%
exho1|| 0.89%
ping1|| 0.89%
iptables1|| 0.89%
dahdi1|| 0.89%
tail1|| 0.89%
modprobe1|| 0.89%
ejabberdctl1|| 0.89%
____
*) Интервалы неактивности длительностью 30 минут и более не учитываются

Справка

Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
  1. В журнал автоматически попадают все команды, данные в любом терминале системы.

  2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

  3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
    $ l s-l
    bash: l: command not found
    

  4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
    $ test 5 -lt 4
    Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

  5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
    $ 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
    

  6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
    # id
    uid=0(root) gid=0(root) Gruppen=0(root)
    

  7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
    $ vi ~/.bashrc
    2a3,5
    >    if [ -f /usr/local/etc/bash_completion ]; then
    >         . /usr/local/etc/bash_completion
    >        fi
    

  8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
    $ patch ~/.bashrc
    В данном случае изменения применяются к файлу ~/.bashrc

  9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

    Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

  10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

  11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

  12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

  13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

  14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

    $ whoami
    
    user
    
    $ #^ Интересно, кто я?
    
    в журнале это будет выглядеть так:
    $ whoami
    
    user
    
    Интересно, кто я?

  15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

    $ whoami
    
    user
    
    $ cat > /dev/null #^ Интересно, кто я?
    
    Программа whoami выводит имя пользователя, под которым 
    мы зарегистрировались в системе.
    -
    Она не может ответить на вопрос о нашем назначении 
    в этом мире.
    
    В журнале это будет выглядеть так:
    $ whoami
    user
    
    Интересно, кто я?
    Программа whoami выводит имя пользователя, под которым
    мы зарегистрировались в системе.

    Она не может ответить на вопрос о нашем назначении
    в этом мире.
    Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

  16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

  17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
  18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
  19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
    1
        2
    3   
        4
    
    Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

О программе

LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008

$Id$