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

Содержание

Журнал

Четверг (03/18/10)

/dev/pts/8
17:59:42
#ls -l ~/.lilalo/
total 44348
-rw-r--r-- 1 root root      302 2010-03-15 17:40 11369259401357331213-1268660105_1268667602_root_.bashrc.diff
-rw-r--r-- 1 root root     5050 2010-03-15 17:40 11369259401357331213-1268660105.info
-rw-r--r-- 1 root root   730495 2010-03-15 17:40 11369259401357331213-1268660105.script
-rw-r--r-- 1 root root     5756 2010-03-15 15:33 1165912459107616586-1268659669.info
-rw-r--r-- 1 root root     6967 2010-03-15 15:33 1165912459107616586-1268659669.script
-rw-r--r-- 1 root root     8012 2010-03-15 17:42 1172720032585014097-1268667772.info
-rw-r--r-- 1 root root      151 2010-03-15 17:42 1172720032585014097-1268667772.script
-rw-r--r-- 1 root root      277 2010-03-18 18:10 1184209361527622245-1268923607_1268928571_etc_asterisk_extensions.conf.diff
-rw-r--r-- 1 root root        0 2010-03-18 18:11 1184209361527622245-1268923607_1268928711_etc_asterisk_extensions.conf.diff
...
-rw-r--r-- 1 root root   320927 2010-03-16 18:36 887220275242553292-1268731809.script
-rw-r--r-- 1 root root      763 2010-03-18 16:25 951517352414315649-1268921263_1268921314_etc_asterisk_extensions.conf.diff
-rw-r--r-- 1 root root      283 2010-03-18 16:28 951517352414315649-1268921263_1268922330_etc_asterisk_sip.conf.diff
-rw-r--r-- 1 root root      380 2010-03-18 16:34 951517352414315649-1268921263_1268922489_etc_asterisk_extensions.conf.diff
-rw-r--r-- 1 root root        0 2010-03-18 16:45 951517352414315649-1268921263_1268923486_etc_zaptel.conf.diff
-rw-r--r-- 1 root root    17223 2010-03-18 16:45 951517352414315649-1268921263.info
-rw-r--r-- 1 root root   298034 2010-03-18 16:45 951517352414315649-1268921263.script
-rw-r--r-- 1 root root        4 2010-03-18 16:46 l3-agent.pid
-rw-r--r-- 1 root root     7709 2010-03-15 14:32 l3bashrc
-rwxr-xr-x 1 root root      234 2010-03-15 14:32 l3prompt
18:08:37
#ls -l ~/.lilalo/ | less
/dev/pts/6
18:13:42
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk.
18:13:50
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk.
18:13:53
#date
Fri Mar 19 09:16:51 EET 2010

Пятница (03/19/10)

/dev/pts/2
08:29:01
#htop

08:29:31
# 2 [||||||||||||||||||||||||||||||||||||||||||||||||100.0%] Load average: 0.97 1.08 1.08

08:29:32
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
    -- Executing [839125@world:1] Answer("SIP/602-081828c8", "") in new stack
    -- Executing [839125@world:2] Dial("SIP/602-081828c8", "SIP/khr/9125|30") in new stack
    -- Called khr/9125
    -- SIP/khr-0819f0e0 is making progress passing it to SIP/602-081828c8
  == Spawn extension (world, 839125, 2) exited non-zero on 'SIP/602-081828c8'
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/4
08:30:41
#{EXTEN}@default) ; оставляем голосовое сообщение
;
; Configuration file for MeetMe simple conference rooms for Asterisk of course.
;
; This configuration file is read every time you call app meetme()
                        ; when feeding audio frames from non-Zap channels
                        ; into the conference; larger numbers will allow
                        ; for the conference to 'de-jitter' audio that arrives
[general]               ; at different timing than the conference's timing
                        ; source, but can also allow for latency in hearing
;audiobuffers=32        ; the audio from the speaker. Minimum value is 2,
...
~
~
~
~
~
~
~
~
~
"/etc/asterisk/meetme.conf" 27L, 938C                                                                         5,0-1         All
08:30:47
#[ ]
exten => 4002,n,Playback(/tmp/sys-info)
exten => 4002,n,Hangup
exten => 4003,1,Answer
exten => 4003,n,Wait(1)ns.conf" 151L, 4354C
exten => 4003,n,System(/usr/local/bin/say-sys-info df)
exten => 4003,n,Wait(1)
exten => 4003,n,Playback(/tmp/sys-info)
exten => 4003,n,Hangup
exten => _41XX,1,Answer
exten => _41XX,n,Wait(1)
...
exten => _41XX,n,Hangup()
exten => _6XX,1,Answer
exten => _6XX,n,Set(ENV(CALLERID)=${CALLERID(all)})
exten => _6XX,n,Dial(SIP/${EXTEN},30,m)                                 ; позвонить
exten => _6XX,n,System(/usr/local/bin/notify ${EXTEN})                  ; выполнить скрипт
exten => _6XX,n,GotoIf($["{DIALSTATUS}" == "BUSY"]?busy:unavail)        ; если занято то
exten => _6XX,n,Set(CALLERFNAME=${EXTEN}-${STRFTIME(${EPOCH},Europe/Kiev,%Y-%m-%d-%H:%M:%S)})   ; уставновить переменную
exten => _6XX,n,(busy),Playback(vm-isunavail)                           ; ложим трубку если нет
;exten => _6XX,n,Monitor(wav,/tmp/${CALLERFNAME},m)                     ; пишем.разговор(отключил потомучто не было musiconhold)
exten => _6XX,n,Hangup()                                                ; то
08:32:24
#{EXTEN}@default) ; оставляем голосовое сообщение
exten => _3XX,1,Answer                                                  ;-------------
exten => _3XX,n,Set(CALLERID(name)="${CALLERID(name)}(ODESSA)")         ;
exten => _3XX,n,Dial(SIP/khr/${EXTEN},30)                               ; харьков
exten => _3XX,n,Playback(vm-isunavail)                                  ;-------------
exten => _4XX,1,Answer                                                  ;-------------
exten => _4XX,n,Set(CALLERID(name)="${CALLERID(name)}(ODESSA)")         ;
exten => _4XX,n,Dial(SIP/kv/${EXTEN},30)                                ; киев
[world]
include => local
include => company
...
exten => 9,1,Goto(,s,1)
[secretar]
[        ]
exten => s,1,Answer
exten => s,n,Background(/menu/secretar.info.menu)
exten => 0,1,Goto(Menu,s,bigmenu)
exten => 9,1,Goto(,s,1)
exten => 2,n,Goto(,s,1)                                                                                       150,0-1       99%
exten => 0,1,Goto(Menu,s,bigmenu)
exten => 9,1,Goto(,s,1)
/dev/tty2
08:38:24
#reboot
Broadcast message from root@linux2 (pts/12) (Fri Mar 19 09:38:31 2010):
The system is going down for reboot NOW!
08:38:41
#exit
exit
Connection to 192.168.15.2 closed by remote host.
Connection to 192.168.15.2 closed.
08:39:56
#ssh
ssh          ssh-add      ssh-agent    ssh-argv0    ssh-copy-id  sshd         ssh-keygen   ssh-keyscan  ssh-vulnkey
08:39:56
#ssh 192.168.15.2
root@192.168.15.2's password:
Linux linux2 2.6.26-2-686 #1 SMP Tue Mar 9 17:35:51 UTC 2010 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Mar 19 09:40:26 2010 from 192.168.16.3
l3-agent is already running: pid=3120; pidfile=/root/.lilalo/l3-agent.pid
08:40:39
#screen -x
08:44:40
#reboot
Broadcast message from root@linux2 (pts/3) (Fri Mar 19 09:44:46 2010):
The system is going down for reboot NOW!
08:45:00
#ssh 192.168.15.2
root@192.168.15.2's password:
Linux linux2 2.6.26-2-686 #1 SMP Tue Mar 9 17:35:51 UTC 2010 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Mar 19 09:46:32 2010 from 192.168.16.3
l3-agent is already running: pid=3180; pidfile=/root/.lilalo/l3-agent.pid
08:48:20
#lsmod | grep zap
zaptel                185060  3 wctdm24xxp
crc_ccitt               2080  1 zaptel
08:48:31
#screen -x
прошло 24 минуты
09:12:50
#ssh 192.168.15.2
root@192.168.15.2's password:
Linux linux2 2.6.26-2-686 #1 SMP Tue Mar 9 17:35:51 UTC 2010 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Mar 19 09:51:44 2010 from 192.168.17.4
Removing stale pidfile
09:15:14
#screen -x
/dev/pts/8
09:21:06
#screen -x
/dev/pts/6
09:21:08
#apt-get install minicom
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  lrzsz
The following NEW packages will be installed:
  lrzsz minicom
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 417kB of archives.
After this operation, 1434kB of additional disk space will be used.
...
Get:2 http://ftp.ua.debian.org lenny/main minicom 2.3-1 [317kB]
Fetched 417kB in 0s (717kB/s)
Selecting previously deselected package lrzsz.
(Reading database ... 48728 files and directories currently installed.)
Unpacking lrzsz (from .../lrzsz_0.12.21-4.1_i386.deb) ...
Selecting previously deselected package minicom.
Unpacking minicom (from .../minicom_2.3-1_i386.deb) ...
Processing triggers for man-db ...
Setting up lrzsz (0.12.21-4.1) ...
Setting up minicom (2.3-1) ...
/dev/pts/10
09:21:15
#screen -x
/dev/pts/12
09:21:54
#screen -x
прошло 74 минуты
/dev/tty3
10:36:22
#ssh 192.168.16.3
The authenticity of host '192.168.16.3 (192.168.16.3)' can't be established.
RSA key fingerprint is 3d:ee:d1:8b:9b:a1:a7:d9:a9:c1:8a:52:ea:e4:ca:e4.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.16.3' (RSA) to the list of known hosts.
root@192.168.16.3's password:
Linux linux3.unix.nt 2.6.26-2-686 #1 SMP Tue Mar 9 17:35:51 UTC 2010 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Mar 19 11:36:41 2010 from linux2.unix.nt
l3-agent is already running: pid=6043; pidfile=/root/.lilalo/l3-agent.pid
10:36:53
#screen -x
прошло 72 минуты
11:49:51
#ssh 192.168.16.3
 root@192.168.16.3's password:
Linux linux3.unix.nt 2.6.26-2-686 #1 SMP Tue Mar 9 17:35:51 UTC 2010 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Mar 19 12:51:17 2010 from linux2.unix.nt
l3-agent is already running: pid=2796; pidfile=/root/.lilalo/l3-agent.pid
11:51:25
#screen -x
прошло 76 минут
/dev/pts/4
13:07:38
#lsmod | grep z
Module                  Size  Used by
ztdummy                 3056  0
zaptel                185060  3 ztdummy
crc_ccitt               2080  1 zaptel
13:07:47
#rmmod ztdummy

13:07:59
#lsmod | grep z
Module                  Size  Used by
zaptel                185060  2
crc_ccitt               2080  1 zaptel
13:08:01
#vim /etc/zaptel.conf
13:09:59
#vim /etc/zaptel.conf
13:10:08
#vim /etc/zaptel.conf
13:10:11
#ps aux| grep "zaptel.conf"
root      9004  0.0  0.1  34636  6412 pts/5    Tl   14:08   0:00 /usr/bin/vim /etc/zaptel.conf
root      9050  0.0  0.0   3116   724 pts/5    R+   14:10   0:00 grep zaptel.conf
13:10:30
#kill 9004

13:10:59
#ps aux| grep "zaptel.conf"
root      9004  0.0  0.1  34636  6412 pts/5    Tl   14:08   0:00 /usr/bin/vim /etc/zaptel.conf
root      9066  0.0  0.0   3116   736 pts/5    S+   14:10   0:00 grep zaptel.conf
13:11:13
#kill -9 9004
[2]+  Killed                  /usr/bin/vim "$@"
13:11:17
#ps axw | grep vi
 8725 pts/5    Tl     0:00 /usr/bin/vim /etc/asterisk/extensions.conf
 9089 pts/5    R+     0:00 grep vi
13:11:26
#who
root     tty1         2010-03-18 16:46
root     tty2         2010-03-18 16:47
root     tty3         2010-03-19 11:36
root     pts/2        2010-03-18 18:12 (:pts/0:S.0)
root     pts/4        2010-03-18 18:12 (:pts/0:S.1)
root     pts/6        2010-03-18 18:42 (:pts/0:S.2)
root     pts/8        2010-03-19 10:21 (192.168.15.210)
root     pts/10       2010-03-19 10:21 (192.168.17.4)
root     pts/12       2010-03-19 10:21 (linux2.unix.nt)
13:11:36
#ps axw | grep vi
 8725 pts/5    Tl     0:00 /usr/bin/vim /etc/asterisk/extensions.conf
 9106 pts/5    S+     0:00 grep vi
13:11:56
#ps axw | grep vi
 8725 pts/5    Tl     0:00 /usr/bin/vim /etc/asterisk/extensions.conf
 9115 pts/5    S+     0:00 grep vi
13:11:57
#cat /etc/.zaptel.conf
cat: /etc/.zaptel.conf: No such file or directory
13:13:08
#vim /etc/asterisk/zapata.conf
13:13:33
#ztscan

13:13:38
#ztscan

13:13:38
#ztscan -vvv

13:13:42
#reboot

/dev/pts/0
13:14:50
#screen -x
/dev/tty1
13:14:51
#screen
/dev/pts/5
13:14:54
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
    -- Added extension '0' priority 1 to secretar
    -- Added extension '9' priority 1 to secretar
  == Parsing '/etc/asterisk/users.conf': Found
linux1*CLI>
    -- Got SIP response 603 "Decline" back from 192.168.14.100
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/7
13:14:55
#apt-cache search cdr
asterisk-mysql - MySQL support for the Asterisk PBX (cdr mainly)
bchunk - CD image format conversion from bin/cue to iso/cdr
cdbackup - CD-R(W) backup utility
cdrbq - graphical cd burning frontend
cdrtoaster - Dummy package for cdrbq (rename of package)
cdrdao - records CDs in Disk-At-Once (DAO) mode
gcdmaster - GNOME GUI for cdrdao
cdrecord - Dummy transition package for wodim
cdrkit-doc - Documentation for the cdrkit package suite
genisoimage - Creates ISO-9660 CD-ROM filesystem images
...
prokyon3 - A mp3 and ogg/vorbis manager and tag editor
python-cddb - Python interface to CD-IDs and FreeDB
python-uniconvertor - Universal vector graphics translator
ripit - Textbased audio cd ripper
setcd - Control the behaviour of your cdrom device
udftools - tools for UDF filesystems and DVD/CD-R(W) drives
vcdtools - Creates Video CD (VCD) filesystem images
wav2cdr - Converts wav files into CD-ROM audio file format
win32-loader - Debian-Installer loader for win32
xcdroast - X based CD-writer software
/dev/pts/3
13:14:58
#lsmod | grep z
Module                  Size  Used by
zaptel                185060  3 wct4xxp
crc_ccitt               2080  1 zaptel
13:15:07
#ztcfg -vvv
Zaptel Version: 1.4.11
Echo Canceller: MG2
Configuration
======================
SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)
Channel map:
Channel 01: Clear channel (Default) (Slaves: 01)
Channel 02: Clear channel (Default) (Slaves: 02)
Channel 03: Clear channel (Default) (Slaves: 03)
Channel 04: Clear channel (Default) (Slaves: 04)
...
Channel 08: Clear channel (Default) (Slaves: 08)
Channel 09: Clear channel (Default) (Slaves: 09)
Channel 10: Clear channel (Default) (Slaves: 10)
Channel 11: Clear channel (Default) (Slaves: 11)
Channel 12: Clear channel (Default) (Slaves: 12)
Channel 13: Clear channel (Default) (Slaves: 13)
Channel 14: Clear channel (Default) (Slaves: 14)
Channel 15: Clear channel (Default) (Slaves: 15)
Channel 16: D-channel (Default) (Slaves: 16)
16 channels to configure.
13:15:11
#ztscan
[1]
active=yes
alarms=YEL
description=T2XXP (PCI) Card 0 Span 1
name=TE2/0/1
manufacturer=Digium
devicetype=Wildcard TE220 (4th Gen)
location=Board ID Switch 0
basechan=1
totchans=31
...
basechan=32
totchans=31
irq=17
type=digital-E1
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=HDB3
framing_opts=CCS,CRC4
coding=
framing=
13:15:17
#ztcfg -vvv
Zaptel Version: 1.4.11
Echo Canceller: MG2
Configuration
======================
SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)
Channel map:
Channel 01: Clear channel (Default) (Slaves: 01)
Channel 02: Clear channel (Default) (Slaves: 02)
Channel 03: Clear channel (Default) (Slaves: 03)
Channel 04: Clear channel (Default) (Slaves: 04)
...
Channel 08: Clear channel (Default) (Slaves: 08)
Channel 09: Clear channel (Default) (Slaves: 09)
Channel 10: Clear channel (Default) (Slaves: 10)
Channel 11: Clear channel (Default) (Slaves: 11)
Channel 12: Clear channel (Default) (Slaves: 12)
Channel 13: Clear channel (Default) (Slaves: 13)
Channel 14: Clear channel (Default) (Slaves: 14)
Channel 15: Clear channel (Default) (Slaves: 15)
Channel 16: D-channel (Default) (Slaves: 16)
16 channels to configure.
13:15:21
#vim /etc/asterisk/zapata.conf
--- /tmp/l3-saved-2948.31207.17964	2010-03-19 14:15:37.000000000 +0200
+++ /etc/asterisk/zapata.conf	2010-03-19 14:19:15.000000000 +0200
@@ -47,7 +47,7 @@
 ;
 ; Default context
 ;
-context=default
+context=world			;--------------!!!!!!!!!!!
 ;
 ; Switchtype:  Only used for PRI.
 ;
@@ -59,7 +59,7 @@
 ; ni1:            Old National ISDN 1
 ; qsig:           Q.SIG
 ;
-switchtype=national
+switchtype=euroisdn		;-----------------------!!!!!!!!!!!!!1111
 ;
 ; Some switches (AT&T especially) require network specific facility IE
 ; supported values are currently 'none', 'sdn', 'megacom', 'tollfreemegacom', 'accunet'
@@ -210,7 +210,7 @@
 ;                 (2-way)
 ; sf_rxtx:        Same as sf_txrx (for our dyslexic friends)
 ;
-signalling=fxo_ls
+signalling=pri_cpe
 ;
 ; If you have an outbound signalling format that is different from format
 ; specified above (but compatible), you can specify outbound signalling format,
@@ -609,10 +609,11 @@
 ; crv => 2:1-2,5-8
 ;
 ;
-;callerid="Green Phone"<(256) 428-6121>
-;channel => 1
+callerid="Odessa inc."<160>
+channel => 1-2
 ;callerid="Black Phone"<(256) 428-6122>
 ;channel => 2
+
 ;callerid="CallerID Phone" <(256) 428-6123>
 ;callerid="CallerID Phone" <(630) 372-1564>
 ;callerid="CallerID Phone" <(256) 704-4666>
13:19:15
#vim /etc/asterisk/extensions.conf
13:19:31
#[local]> 677,n,Goto(Menu,s,1)
;prilocaldialplan=national
;
; PRI callerid prefixes based on the given TON/NPI (dialplan)
; This is especially needed for euroisdn E1-PRIs
;
; sample 1 for Germany
;internationalprefix = 00
;nationalprefix = 0
;localprefix = 0711
;privateprefix = 07115678
...
;channel => 25
;callerid="Megan May" <(256) 428-6132>
;channel => 26
;callerid="Suzy Queue" <(256) 428-6233>
;channel => 27
;callerid="Larry Moe" <(256) 428-6234>
;channel => 28
;
; Sample PRI (CPE) config:  Specify the switchtype, the signalling as either
; pri_cpe or pri_net for CPE or Network termination, and generally you will
13:20:40
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2948.3754.5711	2010-03-19 14:20:41.000000000 +0200
+++ /etc/asterisk/extensions.conf	2010-03-19 14:25:37.000000000 +0200
@@ -1,3 +1,16 @@
+
+[in]
+
+;exten => 501,1,Answer
+
+;exten => _5XX,1,Answer
+;exten => _5XX,n,Dial(SIP/677,30,m)
+
+[out]
+
+;exten => _95XX,1,Answer
+;exten => _95XX,n,Dial(ZAP/G1/${EXTEN:1},30,m)
+
 [local]
 
 ;exten => _1XX,1,Answer
прошло 34 минуты
/dev/pts/9
13:54:41
#screen -x
/dev/pts/3
13:57:08
#zc
zcat  zcmp
13:57:08
#zc
zcat  zcmp
13:57:08
#ztcfg -vvv
Notice: Configuration file is /etc/zaptel.conf
line 1: Only valid fifth arguments are 'yellow' or 'crc4', not 'crc4    ;cisco'
line 6: Channel 1 already configured as 'Clear channel' at line 2
line 6: Channel 2 already configured as 'Clear channel' at line 2
line 6: Channel 3 already configured as 'Clear channel' at line 2
line 6: Channel 4 already configured as 'Clear channel' at line 2
line 6: Channel 5 already configured as 'Clear channel' at line 2
line 6: Channel 6 already configured as 'Clear channel' at line 2
line 6: Channel 7 already configured as 'Clear channel' at line 2
line 6: Channel 8 already configured as 'Clear channel' at line 2
line 6: Channel 9 already configured as 'Clear channel' at line 2
line 6: Channel 10 already configured as 'Clear channel' at line 2
line 6: Channel 11 already configured as 'Clear channel' at line 2
line 6: Channel 12 already configured as 'Clear channel' at line 2
line 6: Channel 13 already configured as 'Clear channel' at line 2
line 6: Channel 14 already configured as 'Clear channel' at line 2
line 6: Channel 15 already configured as 'Clear channel' at line 2
line 7: Channel 16 already configured as 'D-channel' at line 3
17 error(s) detected
13:57:31
#vim /etc/zaptel.conf
--- /tmp/l3-saved-2948.10006.24853	2010-03-19 14:57:46.000000000 +0200
+++ /etc/zaptel.conf	2010-03-19 14:57:53.000000000 +0200
@@ -1,4 +1,4 @@
-span=1,0,0,ccs,hdb3,crc4	;cisco
+span=1,0,0,ccs,hdb3,crc4
 bchan=1-15
 dchan=16
 
13:57:57
#vim /etc/zaptel.conf
--- /tmp/l3-saved-2948.21057.31798	2010-03-19 14:58:15.000000000 +0200
+++ /etc/zaptel.conf	2010-03-19 14:58:43.000000000 +0200
@@ -3,6 +3,6 @@
 dchan=16
 
 span=2,1,0,ccs,hdb3,crc4	
-bchan=1-15
-dchan=16
+bchan=33-47
+dchan=48
 
13:58:45
#ztcfg -vvv
Zaptel Version: 1.4.11
Echo Canceller: MG2
Configuration
======================
SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 2: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)
Channel map:
Channel 01: Clear channel (Default) (Slaves: 01)
Channel 02: Clear channel (Default) (Slaves: 02)
Channel 03: Clear channel (Default) (Slaves: 03)
...
Channel 40: Clear channel (Default) (Slaves: 40)
Channel 41: Clear channel (Default) (Slaves: 41)
Channel 42: Clear channel (Default) (Slaves: 42)
Channel 43: Clear channel (Default) (Slaves: 43)
Channel 44: Clear channel (Default) (Slaves: 44)
Channel 45: Clear channel (Default) (Slaves: 45)
Channel 46: Clear channel (Default) (Slaves: 46)
Channel 47: Clear channel (Default) (Slaves: 47)
Channel 48: D-channel (Default) (Slaves: 48)
32 channels to configure.
/dev/pts/13
13:58:48
#screen -x
/dev/pts/3
13:58:55
#ztscan
[1]
active=yes
alarms=OK
description=T2XXP (PCI) Card 0 Span 1
name=TE2/0/1
manufacturer=Digium
devicetype=Wildcard TE220 (4th Gen)
location=Board ID Switch 0
basechan=1
totchans=31
...
basechan=32
totchans=31
irq=17
type=digital-E1
syncsrc=2
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=HDB3
framing_opts=CCS,CRC4
coding=HDB3
framing=CCS
13:59:46
#vim /etc/asterisk/zapata.conf
--- /tmp/l3-saved-2948.31539.20501	2010-03-19 15:02:12.000000000 +0200
+++ /etc/asterisk/zapata.conf	2010-03-19 15:05:52.000000000 +0200
@@ -89,7 +89,7 @@
 ;prilocaldialplan=national
 ;
 ; PRI callerid prefixes based on the given TON/NPI (dialplan)
-; This is especially needed for euroisdn E1-PRIs
+;ugnaThis is especially needed for euroisdn E1-PRIs
 ; 
 ; sample 1 for Germany 
 ;internationalprefix = 00
@@ -614,6 +614,12 @@
 ;callerid="Black Phone"<(256) 428-6122>
 ;channel => 2
 
+signalling=pri_net
+callerid="Odessa inc."<500>
+channel => 32-33
+
+
+
 ;callerid="CallerID Phone" <(256) 428-6123>
 ;callerid="CallerID Phone" <(630) 372-1564>
 ;callerid="CallerID Phone" <(256) 704-4666>
14:05:57
#vim /etc/asterisk/zapata.conf
--- /tmp/l3-saved-2948.427.9998	2010-03-19 15:06:06.000000000 +0200
+++ /etc/asterisk/zapata.conf	2010-03-19 15:06:46.000000000 +0200
@@ -615,7 +615,7 @@
 ;channel => 2
 
 signalling=pri_net
-callerid="Odessa inc."<500>
+callerid="XXX"<150>
 channel => 32-33
 
 
14:08:05
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk.
/dev/pts/5
14:08:05
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
[Mar 19 16:22:58] WARNING[3984]: chan_zap.c:2498 pri_find_dchan: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Mar 19 16:23:03] WARNING[3984]: chan_zap.c:2498 pri_find_dchan: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Mar 19 16:23:08] WARNING[3984]: chan_zap.c:2498 pri_find_dchan: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Mar 19 16:23:13] WARNING[3984]: chan_zap.c:2498 pri_find_dchan: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Mar 19 16:23:18] WARNING[3984]: chan_zap.c:2498 pri_find_dchan: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Mar 19 16:23:23] WARNING[3984]: chan_zap.c:2498 pri_find_dchan: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Mar 19 16:23:28] WARNING[3984]: chan_zap.c:2498 pri_find_dchan: No D-channels available!  Using Primary channel 16 as D-channel anyway!
[Mar 19 16:23:33] WARNING[3984]: chan_zap.c:2498 pri_find_dchan: No D-channels available!  Using Primary channel 16 as D-channel anyway!
linux1*CLI> quit
Executing last minute cleanups
/dev/pts/3
14:08:07
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk.
14:08:11
#tailf /var/log/asterisk/messages
here = 0, tmp->channel = 32, channel = 32
[Mar 19 15:08:11] ERROR[3693] chan_zap.c: Unable to register channel '32-33'
[Mar 19 15:08:11] ERROR[3693] chan_vpb.cc: No Voicetronix cards detected
[Mar 19 15:08:11] NOTICE[3693] pbx_ael.c: Starting AEL load process.
[Mar 19 15:08:11] NOTICE[3693] pbx_ael.c: AEL load process: calculated config file name '/etc/asterisk/extensions.ael'.
[Mar 19 15:08:11] NOTICE[3693] pbx_ael.c: AEL load process: parsed config file name '/etc/asterisk/extensions.ael'.
[Mar 19 15:08:11] NOTICE[3693] pbx_ael.c: AEL load process: checked config file name '/etc/asterisk/extensions.ael'.
[Mar 19 15:08:11] NOTICE[3693] pbx_ael.c: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'.
[Mar 19 15:08:11] NOTICE[3693] pbx_ael.c: AEL load process: merged config file name '/etc/asterisk/extensions.ael'.
[Mar 19 15:08:11] NOTICE[3693] pbx_ael.c: AEL load process: verified config file name '/etc/asterisk/extensions.ael'.
^C
14:08:30
#ztcfg -vvv
Zaptel Version: 1.4.11
Echo Canceller: MG2
Configuration
======================
SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 2: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)
Channel map:
Channel 01: Clear channel (Default) (Slaves: 01)
Channel 02: Clear channel (Default) (Slaves: 02)
Channel 03: Clear channel (Default) (Slaves: 03)
...
Channel 40: Clear channel (Default) (Slaves: 40)
Channel 41: Clear channel (Default) (Slaves: 41)
Channel 42: Clear channel (Default) (Slaves: 42)
Channel 43: Clear channel (Default) (Slaves: 43)
Channel 44: Clear channel (Default) (Slaves: 44)
Channel 45: Clear channel (Default) (Slaves: 45)
Channel 46: Clear channel (Default) (Slaves: 46)
Channel 47: Clear channel (Default) (Slaves: 47)
Channel 48: D-channel (Default) (Slaves: 48)
32 channels to configure.
14:09:19
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk.
14:09:20
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk.
14:09:22
#less /var/log/asterisk/messages
14:10:27
#ztcfvg -vvv
bash: ztcfvg: command not found
14:10:32
#ztcfg -vvv
Zaptel Version: 1.4.11
Echo Canceller: MG2
Configuration
======================
SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 2: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)
Channel map:
Channel 01: Clear channel (Default) (Slaves: 01)
Channel 02: Clear channel (Default) (Slaves: 02)
Channel 03: Clear channel (Default) (Slaves: 03)
...
Channel 41: Clear channel (Default) (Slaves: 41)
Channel 42: Clear channel (Default) (Slaves: 42)
Channel 43: Clear channel (Default) (Slaves: 43)
Channel 44: Clear channel (Default) (Slaves: 44)
Channel 45: Clear channel (Default) (Slaves: 45)
Channel 46: Clear channel (Default) (Slaves: 46)
Channel 47: D-channel (Default) (Slaves: 47)
32 channels to configure.
Changing signalling on channel 32 from Unused to Clear channel
Changing signalling on channel 47 from Clear channel to HDLC with FCS check
14:10:34
#ztcfg -vvv
Zaptel Version: 1.4.11
Echo Canceller: MG2
Configuration
======================
SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 2: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)
Channel map:
Channel 01: Clear channel (Default) (Slaves: 01)
Channel 02: Clear channel (Default) (Slaves: 02)
Channel 03: Clear channel (Default) (Slaves: 03)
...
Channel 39: Clear channel (Default) (Slaves: 39)
Channel 40: Clear channel (Default) (Slaves: 40)
Channel 41: Clear channel (Default) (Slaves: 41)
Channel 42: Clear channel (Default) (Slaves: 42)
Channel 43: Clear channel (Default) (Slaves: 43)
Channel 44: Clear channel (Default) (Slaves: 44)
Channel 45: Clear channel (Default) (Slaves: 45)
Channel 46: Clear channel (Default) (Slaves: 46)
Channel 47: D-channel (Default) (Slaves: 47)
32 channels to configure.
14:11:08
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk.
14:11:09
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk.
14:11:42
#tail -f /var/log/asterisk/messages
[Mar 19 15:11:12] NOTICE[3960] pbx_ael.c: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'.
[Mar 19 15:11:12] NOTICE[3960] pbx_ael.c: AEL load process: merged config file name '/etc/asterisk/extensions.ael'.
[Mar 19 15:11:12] NOTICE[3960] pbx_ael.c: AEL load process: verified config file name '/etc/asterisk/extensions.ael'.
[Mar 19 15:11:14] WARNING[3986] chan_zap.c: Detected alarm on channel 32: Yellow Alarm
[Mar 19 15:11:14] NOTICE[3985] chan_zap.c: PRI got event: Alarm (4) on Primary D-channel of span 2
[Mar 19 15:11:14] WARNING[3986] chan_zap.c: Detected alarm on channel 33: Yellow Alarm
[Mar 19 15:11:14] WARNING[3985] chan_zap.c: No D-channels available!  Using Primary channel 47 as D-channel anyway!
[Mar 19 15:11:14] NOTICE[3986] chan_zap.c: Alarm cleared on channel 32
[Mar 19 15:11:14] NOTICE[3986] chan_zap.c: Alarm cleared on channel 33
[Mar 19 15:11:14] NOTICE[3985] chan_zap.c: PRI got event: No more alarm (5) on Primary D-channel of span 2
^C
14:11:57
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
Overlap Dial: 0
T200 Timer: 1000
T203 Timer: 10000
T305 Timer: 30000
T308 Timer: 4000
T309 Timer: -1
T313 Timer: 4000
N200 Counter: 3
linux1*CLI> quit
Executing last minute cleanups
14:12:26
#tail -f /var/log/asterisk/messages
[Mar 19 15:11:12] NOTICE[3960] pbx_ael.c: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'.
[Mar 19 15:11:12] NOTICE[3960] pbx_ael.c: AEL load process: merged config file name '/etc/asterisk/extensions.ael'.
[Mar 19 15:11:12] NOTICE[3960] pbx_ael.c: AEL load process: verified config file name '/etc/asterisk/extensions.ael'.
[Mar 19 15:11:14] WARNING[3986] chan_zap.c: Detected alarm on channel 32: Yellow Alarm
[Mar 19 15:11:14] NOTICE[3985] chan_zap.c: PRI got event: Alarm (4) on Primary D-channel of span 2
[Mar 19 15:11:14] WARNING[3986] chan_zap.c: Detected alarm on channel 33: Yellow Alarm
[Mar 19 15:11:14] WARNING[3985] chan_zap.c: No D-channels available!  Using Primary channel 47 as D-channel anyway!
[Mar 19 15:11:14] NOTICE[3986] chan_zap.c: Alarm cleared on channel 32
[Mar 19 15:11:14] NOTICE[3986] chan_zap.c: Alarm cleared on channel 33
[Mar 19 15:11:14] NOTICE[3985] chan_zap.c: PRI got event: No more alarm (5) on Primary D-channel of span 2
^C
14:12:39
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2948.17272.12635	2010-03-19 15:12:52.000000000 +0200
+++ /etc/asterisk/extensions.conf	2010-03-19 15:13:38.000000000 +0200
@@ -86,10 +86,10 @@
 exten => 4800,1,Answer
 exten => 4800,n,Dial(SIP/khm/${EXTEN},20)
 
-exten => _3XX,1,Answer							;-------------
-exten => _3XX,n,Set(CALLERID(name)="${CALLERID(name)}(ODESSA)")		;
-exten => _3XX,n,Dial(SIP/khr/${EXTEN},30) 				; харьков
-exten => _3XX,n,Playback(vm-isunavail)					;-------------
+;exten => _3XX,1,Answer							;-------------
+;exten => _3XX,n,Set(CALLERID(name)="${CALLERID(name)}(ODESSA)")		;
+;exten => _3XX,n,Dial(SIP/khr/${EXTEN},30) 				; харьков
+;exten => _3XX,n,Playback(vm-isunavail)					;-------------
 
 exten => _4XX,1,Answer							;-------------
 exten => _4XX,n,Set(CALLERID(name)="${CALLERID(name)}(ODESSA)")		;
14:13:38
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2948.25759.32605	2010-03-19 15:13:40.000000000 +0200
+++ /etc/asterisk/extensions.conf	2010-03-19 15:21:46.000000000 +0200
@@ -13,11 +13,11 @@
 
 [local]
 
-;exten => _1XX,1,Answer
-;exten => _1XX,n,Dial(SIP/khm/${EXTEN},20)
+exten => _1XX,1,Answer
+exten => _1XX,n,Dial(ZAP/G1/${EXTEN},20)
 
-exten => _8391XX,1,Answer
-exten => _8391XX,n,Dial(SIP/khr/${EXTEN:2},30)
+;exten => _8391XX,1,Answer
+;exten => _8391XX,n,Dial(SIP/khr/${EXTEN:2},30)
 
 exten => 666,1,Answer
 exten => 666,n,MeetMe(666,MP,666)
@@ -91,6 +91,9 @@
 ;exten => _3XX,n,Dial(SIP/khr/${EXTEN},30) 				; харьков
 ;exten => _3XX,n,Playback(vm-isunavail)					;-------------
 
+exten => _3XX,1,Answer
+exten => _3XX,n,Dial(ZAP/G2/${EXTEN})
+
 exten => _4XX,1,Answer							;-------------
 exten => _4XX,n,Set(CALLERID(name)="${CALLERID(name)}(ODESSA)")		;
 exten => _4XX,n,Dial(SIP/kv/${EXTEN},30) 				; киев
прошло 50 минут
/dev/pts/7
15:03:58
#apt-cache search cdr | grep cdr
asterisk-mysql - MySQL support for the Asterisk PBX (cdr mainly)
bchunk - CD image format conversion from bin/cue to iso/cdr
cdrbq - graphical cd burning frontend
cdrtoaster - Dummy package for cdrbq (rename of package)
cdrdao - records CDs in Disk-At-Once (DAO) mode
gcdmaster - GNOME GUI for cdrdao
cdrecord - Dummy transition package for wodim
cdrkit-doc - Documentation for the cdrkit package suite
cdrw-taper - taper replacement for amanda to support backups to CD-RW or DVD+RW
cue2toc - converts CUE files to cdrdao's TOC format
cdrskin - command line CD/DVD writing tool
setcd - Control the behaviour of your cdrom device
wav2cdr - Converts wav files into CD-ROM audio file format
xcdroast - X based CD-writer software
15:04:03
#apt-cache search cdr | grep aster
asterisk-mysql - MySQL support for the Asterisk PBX (cdr mainly)
cdrtoaster - Dummy package for cdrbq (rename of package)
gcdmaster - GNOME GUI for cdrdao
прошло 14 минут
/dev/pts/3
15:18:25
# {mod_irc, []},
total 432
-rw-r--r--  1 root root  390475 2010-03-19 16:19 asterisk-stat-v2_0_1.tar.gz
drwxr-xr-x  3 root root    4096 2010-03-19 06:25 backups
drwxr-xr-x 11 root root    4096 2010-03-18 09:53 cache
drwxr-xr-x 34 root root    4096 2010-03-18 11:00 lib
drwxrwsr-x  2 root staff   4096 2010-01-25 05:41 local
drwxrwxrwt  3 root root    4096 2010-03-19 14:14 lock
drwxr-xr-x  9 root root    4096 2010-03-19 14:14 log
drwxrwsrwt  2 root mail    4096 2010-03-19 15:59 mail
drwxr-xr-x  2 root root    4096 2010-03-15 11:56 opt
drwxr-xr-x 12 root root    4096 2010-03-19 14:14 run
drwxr-xr-x  9 root root    4096 2010-03-17 11:51 spool
drwxrwxrwt  2 root root    4096 2010-03-15 15:12 tmp
15:19:41
#cd /var/

15:19:51
#tar zxvf ./asterisk-stat-v2_0_1.tar.gz
asterisk-stat-v2/jpgraph_lib/imgdata_balls.inc
asterisk-stat-v2/jpgraph_lib/imgdata_bevels.inc
asterisk-stat-v2/jpgraph_lib/imgdata_diamonds.inc
asterisk-stat-v2/jpgraph_lib/imgdata_pushpins.inc
asterisk-stat-v2/jpgraph_lib/imgdata_squares.inc
asterisk-stat-v2/jpgraph_lib/imgdata_stars.inc
asterisk-stat-v2/jpgraph_lib/jpg-config.inc
asterisk-stat-v2/jpgraph_lib/jpgraph_antispam-digits.php
asterisk-stat-v2/jpgraph_lib/jpgraph_antispam.php
asterisk-stat-v2/jpgraph_lib/jpgraph_bar.php
...
asterisk-stat-v2/info.txt
asterisk-stat-v2/export_csv.php
asterisk-stat-v2/graph_stat.php
asterisk-stat-v2/export_pdf.php
asterisk-stat-v2/cdr.php
asterisk-stat-v2/call-comp.php
asterisk-stat-v2/encrypt.js
asterisk-stat-v2/counter.txt
asterisk-stat-v2/about.php
asterisk-stat-v2/call-log.php
15:20:05
#ls -l asterisk-stat-v2
total 240
-rwxr-xr-x 1  500  500  8460 2005-03-04 19:36 about.php
-rw-rw-r-- 1  500  500 21775 2005-03-02 17:09 call-comp.php
-rw-rw-r-- 1  500  500 23602 2005-03-04 14:53 call-daily-load.php
-rw-rw-r-- 1  500  500 20901 2005-03-04 17:28 call-last-month.php
-rw-rw-r-- 1  500  500 39121 2005-03-02 17:09 call-log.php
-rw-rw-r-- 1  500  500  6088 2005-03-07 12:20 cdr.php
-rwxrwxr-x 1  500  500   131 2005-03-07 21:03 CHANGELOG.txt
-rwxrwxr-x 1  500  500     1 2004-05-06 19:46 counter.txt
drwxr-xr-x 3 root root  4096 2010-03-19 16:20 css
...
-rw-rw-r-- 1  500  500 13801 2005-03-02 17:11 export_pdf.php
-rw-rw-r-- 1  500  500 13453 2005-03-07 12:25 graph_hourdetail.php
-rw-rw-r-- 1  500  500  6774 2005-03-07 21:01 graph_pie.php
-rw-rw-r-- 1  500  500 10926 2005-03-07 21:05 graph_statbar.php
-rw-rw-r-- 1  500  500 11066 2005-03-07 21:00 graph_stat.php
drwxr-xr-x 2 root root  4096 2010-03-19 16:20 images
-rwxrwxr-x 1  500  500   210 2005-02-11 14:36 info.txt
drwxr-xr-x 2 root root  4096 2010-03-19 16:20 jpgraph_lib
drwxr-xr-x 4 root root  4096 2010-03-19 16:20 lib
-rwxr-xr-x 1  500  500  5047 2005-03-04 20:20 wiki.html
15:20:45
#apt-get install apache
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package apache is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package apache has no installation candidate
15:21:03
#apt-get install httpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package httpd is a virtual package provided by:
  lighttpd 1.4.19-5+lenny1
  yaws 1.77-3+lenny1
  webfs 1.21-5.1
  tntnet 1.6.3-3
  thttpd 2.25b-6
  nginx 0.6.32-3+lenny3
...
  bozohttpd 20060517-6
  boa 0.94.14rc21-3
  apache2-mpm-worker 2.2.9-10+lenny6
  apache2-mpm-prefork 2.2.9-10+lenny6
  apache2-mpm-event 2.2.9-10+lenny6
  apache2-mpm-itk 2.2.6-02-1+lenny2+b2
  aolserver4 4.5.0-16.1
  aolserver4-core 4.5.0-16.1
You should explicitly select one to install.
E: Package httpd has no installation candidate
15:21:18
#apt-get install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  apache2-mpm-worker apache2-utils apache2.2-common libapr1 libaprutil1 libmysqlclient15off mysql-common openssl-blacklist
  ssl-cert
Suggested packages:
  apache2-doc apache2-suexec apache2-suexec-custom
The following NEW packages will be installed:
  apache2 apache2-mpm-worker apache2-utils apache2.2-common libapr1 libaprutil1 libmysqlclient15off mysql-common
...
Enabling module deflate.
Enabling module authz_default.
Enabling module authz_user.
Enabling module authz_groupfile.
Enabling module authn_file.
Enabling module authz_host.
Setting up apache2-mpm-worker (2.2.9-10+lenny6) ...
Starting web server: apache2.
Setting up apache2 (2.2.9-10+lenny6) ...
Setting up ssl-cert (1.0.23) ...
15:21:46
#apt-cache search mysql
ampache-themes - Themes for Ampache
ampache - web-based audio file management system
anymeal - A cookbook database for storing recipes
aolserver4-nsmysql - AOLserver 4 module: module for accessing MySQL databases
libaprutil1 - The Apache Portable Runtime Utility Library
asterisk-mysql - MySQL support for the Asterisk PBX (cdr mainly)
audiolink - makes managing and searching for music easier
auth2db-common - Common configuration files for Auth2db backend and web frontend
auth2db-filters - Auth2db defaults filters pack
auth2db-frontend - Web frontend view for auth2DB log engine
...
libqt4-sql-mysql - Qt 4 MySQL database driver
lighttpd-mod-mysql-vhost - MySQL-based virtual host configuration for lighttpd
mysql-client - MySQL database client (metapackage depending on the latest version)
mysql-client-5.0 - MySQL database client binaries
mysql-common - MySQL database common files
mysql-server - MySQL database server (metapackage depending on the latest version)
mysql-server-5.0 - MySQL database server binaries
openoffice.org-base - OpenOffice.org office suite - database
php5-mysql - MySQL module for php5
php5-sqlite - SQLite module for php5

Файлы

  • /etc/.zaptel.conf
  • /etc/.zaptel.conf
    >
    cat: /etc/.zaptel.conf: No such file or directory
    

    Статистика

    Время первой команды журнала17:59:42 2010- 3-18
    Время последней команды журнала15:21:46 2010- 3-19
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, % 7.92
    Процент синтаксически неверно набранных команд, % 0.99
    Суммарное время работы с терминалом *, час 1.98
    Количество командных строк в единицу времени, команда/мин 0.85
    Частота использования команд
    vim13|===========| 11.11%
    screen12|==========| 10.26%
    grep11|=========| 9.40%
    /etc/init.d/asterisk8|======| 6.84%
    ztcfg7|=====| 5.98%
    ssh6|=====| 5.13%
    ps5|====| 4.27%
    ztscan5|====| 4.27%
    asterisk4|===| 3.42%
    apt-get4|===| 3.42%
    lsmod4|===| 3.42%
    apt-cache4|===| 3.42%
    reboot3|==| 2.56%
    ls3|==| 2.56%
    {EXTEN}@default)2|=| 1.71%
    zc2|=| 1.71%
    оставляем2|=| 1.71%
    tail2|=| 1.71%
    less2|=| 1.71%
    kill2|=| 1.71%
    tailf1|| 0.85%
    cd1|| 0.85%
    [1|| 0.85%
    cat1|| 0.85%
    tar1|| 0.85%
    ztcfvg1|| 0.85%
    677,n,Goto(Menu,s,1)1|| 0.85%
    [local]>1|| 0.85%
    rmmod1|| 0.85%
    100.0%]1|| 0.85%
    who1|| 0.85%
    htop1|| 0.85%
    {mod_irc,1|| 0.85%
    21|| 0.85%
    exit1|| 0.85%
    date1|| 0.85%
    ____
    *) Интервалы неактивности длительностью 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$