/l3/users/dmitry.z/nt-voip/linux1.unix.nt/root :1 :2 :3 :4 |
|
#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) |
#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) |
#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 |
#dmesg | less
|
#dmesg | grep pri
|
#dmesg | grep dig
|
#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 |
#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) |
#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) |
#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 |
#cd /etc/asterisk/
|
#chown asterisk:asterisk out-call.conf
|
#cp -p out-call.conf /var/spool/asterisk/outgoing/
|
#ls -l /var/spool/asterisk/outgoing/
total 0 |
#ls -l /var/spool/asterisk/outgoing/
total 0 |
#dahdi_genconf
|
#dahdi_genconf
|
#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 |
#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 |
#/init.d/dahdi restart
bash: /init.d/dahdi: No such file or directory |
#/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. |
#modprobe wcte12xp
|
#/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. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#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 |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#^C
|
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#^C
|
#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 |
#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 |
#apt-get install subversion
subversion subversion-tools |
#apt-get install subversion
subversion subversion-tools |
#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) ... |
#svn chechout http://datacard.googlecode.com/svn/trunk/datacard-read-only
Unknown command: 'chechout' Type 'svn help' for usage. |
#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 |
#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 |
#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. |
#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 |
#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 |
#.\configure
bash: .configure: command not found |
#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. |
#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 |
#cd trunk/
|
#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 |
#cd /var/tmp
|
#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. |
#cd datacard-read-only/
|
#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 |
#./configure
configure complete, now type 'make' |
#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 |
#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/ |
#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 |
#less README.txt
|
#cp /etc/datacard.conf /etc/asterisk/
cp: cannot stat `/etc/datacard.conf': No such file or directory |
#ls etc
datacard.conf |
#cp ./etc/datacard.conf /etc/asterisk/
|
#asterist -rvvv
bash: asterist: command not found |
#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 |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#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 ... |
#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 |
#dpkg-reconfigure ej
ejabberd eject |
#dpkg-reconfigure ej
ejabberd eject |
#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. |
#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 ... |
#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. |
#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 |
#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 |
#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}, |
#&pidgin
bash: syntax error near unexpected token `&' |
#./pidgin
bash: ./pidgin: No such file or directory |
#./pidgin $
bash: ./pidgin: No such file or directory |
#pidgin &&
> ^C |
#./pidgin &
[1] 6198 bash: ./pidgin: No such file or directory [1]+ Exit 127 ./pidgin |
#./pidgin &
[1] 6207 bash: ./pidgin: No such file or directory [1]+ Exit 127 ./pidgin |
#pidgin &
[1] 6215 |
#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 |
#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 |
#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) ... |
#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 |
#echo priver | sendxmpp -i /var/lib/asterisk/sendxmpp admin@linux1.unix.nt
cannot read /root/.sendxmpprc: No such file or directory |
#chown root:root /var/lib/asterisk/sendxmpp
chown: cannot access `/var/lib/asterisk/sendxmpp': No such file or directory |
#chown root:root /var/lib/asterisk/sendxmpprc
|
#ejabberdctl register asterisk linux1.unix.nt asterisk
User asterisk@linux1.unix.nt already registered at node ejabberd@linux1 |
#ls -l root
ls: cannot access root: No such file or directory |
#ls -l /root
total 4 -rwxr-xr-x 1 root root 33 Apr 27 10:40 sendxmpprc |
#echo priver | sendxmpp -f /var/lib/asterisk/sendxmpprc admin@linux1.unix.nt
/var/lib/asterisk/sendxmpprc must not be accessible by others |
#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 |
#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 |
#cd /usr
|
#ls
bin games include lib lib64 local sbin share src |
#cd local/
|
#ls
bin etc games include lib man sbin share src |
#cd bin
|
#ls
asterisk-festival.pl check-failed-regs.pl l3-agent l3-config l3script |
#ipt
iptables iptables-multi iptables-save iptunnel iptables-apply iptables-restore iptables-xml |
#ipt
iptables iptables-multi iptables-save iptunnel iptables-apply iptables-restore iptables-xml |
#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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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