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

Содержание

Журнал

Среда (12/09/09)

/dev/tty1
09:15:32
#apt-cache search asterisk
asterisk - Open Source Private Branch Exchange (PBX)
asterisk-chan-capi - Common ISDN API 2.0 implementation for Asterisk
asterisk-config - Configuration files for Asterisk
asterisk-dbg - Debugging symbols for Asterisk
asterisk-dev - Development files for Asterisk
asterisk-doc - Source code documentation for Asterisk
asterisk-h323 - H.323 protocol support for Asterisk
asterisk-mp3 - MP3 format support (format_mp3) for the Asterisk PBX
asterisk-mysql - MySQL support for the Asterisk PBX (cdr mainly)
asterisk-oh323 - H.323 protocol support for Asterisk
...
asterisk-prompt-it - Italian voice prompts for the Asterisk PBX
asterisk-prompt-se - Swedish voice prompts for Asterisk
asterisk-sounds-extra - Additional sound files for the Asterisk PBX
asterisk-sounds-main - Core Sound files for Asterisk (English)
destar - management interface for the Asterisk PBX
iaxmodem - software modem with IAX2 connectivity
libasterisk-agi-perl - Collections of Perl modules to be used with Asterisk PBX AGI
libiax-dev - implementation of the Inter-Asterisk eXchange protocol (devel)
libiax0 - implementation of the Inter-Asterisk eXchange protocol
python-asterisk - Asterisk Manager API interface module for Python
09:16:04
#apt-cache search asterisk | grep less

09:16:15
#apt-get install asteris

09:16:35
#. /etc/bash_completion

09:16:42
#apt-get install asterisk
asterisk                          asterisk-oh323
asterisk-1.4                      asterisk-ooh323c
asterisk-bristuff                 asterisk-prompt-de
asterisk-chan-capi                asterisk-prompt-es
asterisk-classic                  asterisk-prompt-es-co
asterisk-config                   asterisk-prompt-fr
asterisk-config-custom            asterisk-prompt-fr-armelle
asterisk-dbg                      asterisk-prompt-fr-proformatique
asterisk-dev                      asterisk-prompt-it
asterisk-doc                      asterisk-prompt-se
asterisk-h323                     asterisk-sounds-extra
asterisk-mp3                      asterisk-sounds-main
asterisk-mysql
/dev/tty2
09:17:50
#. /etc/bash_completion

09:17:57
#apt-cache search sox
acorn-fdisk - Partition editor for Acorn/RISC OS machines
cplay - A front-end for various audio players
dclock - Digital clock for the X Window System with flexible display
grandfatherclock - a clock that tolls time acoustically
kismet - Wireless 802.11b monitoring tool
libsox-dev - Development files for the SoX library
libsox-fmt-all - All SoX format libraries
libsox-fmt-alsa - SoX alsa format I/O library
libsox-fmt-ao - SoX Libao format I/O library
libsox-fmt-base - Minimal set of SoX format libraries
libsox-fmt-ffmpeg - SoX ffmpeg format library
libsox-fmt-flac - SoX FLAC format library
libsox-fmt-gsm - SoX GSM format library
libsox-fmt-mp3 - SoX MP3 format library
libsox-fmt-ogg - SoX OGG Vorbis format library
libsox-fmt-oss - SoX OSS format I/O library
libsox-fmt-sndfile - SoX libsndfile format library
libsox0 - SoX library
saydate - speaks the current date through your sound card
sox - Swiss army knife of sound processing
/dev/tty1
09:19:21
#cd /etc/asterisk/

09:19:39
#mv sip.conf{,.SAVED}

09:19:52
#mv extensions.conf{,.SAVED}

09:19:56
#touch sip.conf extensions.conf

09:20:15
#ls
adsi.conf           enum.conf              logger.conf       rpt.conf
adtranvofr.conf     esel.conf              manager.conf      rtp.conf
agents.conf         extconfig.conf         manager.d         say.conf
alarmreceiver.conf  extensions.ael         meetme.conf       sip.conf
alsa.conf           extensions.conf        mgcp.conf         sip.conf.SAVED
amd.conf            extensions.conf.SAVED  misdn.conf        sip_notify.conf
asterisk.adsi       features.conf          modules.conf      skinny.conf
asterisk.conf       festival.conf          musiconhold.conf  sla.conf
cdr.conf            followme.conf          muted.conf        smdi.conf
cdr_custom.conf     func_odbc.conf         osp.conf          telcordia-1.adsi
cdr_manager.conf    gtalk.conf             oss.conf          udptl.conf
cdr_odbc.conf       h323.conf              phone.conf        users.conf
cdr_pgsql.conf      http.conf              privacy.conf      voicemail.conf
cdr_tds.conf        iax.conf               queues.conf       vpb.conf
codecs.conf         iaxprov.conf           res_odbc.conf     watchdog.conf
dnsmgr.conf         indications.conf       res_pgsql.conf    zapata.conf
dundi.conf          jabber.conf            res_snmp.conf
09:20:16
#ls -l
total 428
-rw-r----- 1 asterisk asterisk   140 2009-01-04 21:26 adsi.conf
-rw-r----- 1 asterisk asterisk   840 2009-01-04 21:26 adtranvofr.conf
-rw-r----- 1 asterisk asterisk  2724 2009-01-04 21:26 agents.conf
-rw-r----- 1 asterisk asterisk  2227 2009-01-04 21:26 alarmreceiver.conf
-rw-r----- 1 asterisk asterisk  2675 2009-01-04 21:26 alsa.conf
-rw-r----- 1 asterisk asterisk   767 2009-01-04 21:26 amd.conf
-rw-r----- 1 asterisk asterisk  3260 2009-01-04 21:26 asterisk.adsi
-rw-r----- 1 asterisk asterisk   247 2009-01-04 21:17 asterisk.conf
-rw-r----- 1 asterisk asterisk  7324 2009-01-04 21:26 cdr.conf
...
-rw-r----- 1 asterisk asterisk  4044 2009-01-04 21:26 skinny.conf
-rw-r----- 1 asterisk asterisk  6691 2009-01-04 21:26 sla.conf
-rw-r----- 1 asterisk asterisk  2665 2009-01-04 21:26 smdi.conf
-rw-r----- 1 asterisk asterisk  1384 2009-01-04 21:26 telcordia-1.adsi
-rw-r----- 1 asterisk asterisk   598 2009-01-04 21:26 udptl.conf
-rw-r----- 1 asterisk asterisk  1804 2009-01-04 21:26 users.conf
-rw-r----- 1 asterisk asterisk 11723 2009-01-04 21:26 voicemail.conf
-rw-r----- 1 asterisk asterisk  2772 2009-01-04 21:26 vpb.conf
-rw-r----- 1 asterisk asterisk   393 2009-01-04 21:26 watchdog.conf
-rw-r----- 1 asterisk asterisk 24193 2009-01-04 21:26 zapata.conf
09:20:23
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf': Found
  == Parsing '/etc/asterisk/extconfig.conf': Found
Connected to Asterisk 1.4.21.2~dfsg-3 currently running on debian2 (pid = 8077)
Verbosity was 0 and is now 4
debian2*CLI> dialplan reload
Dialplan reloaded.
  == Parsing '/etc/asterisk/extensions.conf': Found
  == Parsing '/etc/asterisk/users.conf': Found
[Dec  9 10:20:42] WARNING[8266]: pbx.c:4004 ast_merge_contexts_and_delete: Requested contexts didn't get merged
debian2*CLI> quit
Executing last minute cleanups
09:20:54
#apt-get install zaptel
zaptel         zaptel-source
09:20:54
#apt-get install zaptel zaptel-source
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  fxload
The following NEW packages will be installed:
  fxload zaptel zaptel-source
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 1460kB of archives.
After this operation, 2519kB of additional disk space will be used.
...
Unpacking fxload (from .../fxload_0.0.20020411-1.1_i386.deb) ...
Selecting previously deselected package zaptel.
Unpacking zaptel (from .../zaptel_1%3a1.4.11~dfsg-3_i386.deb) ...
Selecting previously deselected package zaptel-source.
Unpacking zaptel-source (from .../zaptel-source_1%3a1.4.11~dfsg-3_all.deb) ...
Processing triggers for man-db ...
Setting up fxload (0.0.20020411-1.1) ...
Setting up zaptel (1:1.4.11~dfsg-3) ...
Zaptel telephony kernel driver: FATAL: Module ztdummy not found.
Setting up zaptel-source (1:1.4.11~dfsg-3) ...
09:21:42
#m
m4                mkdir             mlock             msgcomm
m-a               mke2fs            modinfo           msgconv
mail              mkfifo            modprobe          msgen
mailq             mkfs              module-assistant  msgexec
mailstat          mkfs.bfs          more              msgfilter
mailx             mkfs.cramfs       mount             msgfmt
make              mkfs.ext2         mount.nfs         msggrep
makeinfo          mkfs.ext3         mount.nfs4        msginit
man               mkfs.ext4         mountpoint        msgmerge
mandb             mkfs.ext4dev      mp3-decoder       msgunfmt
manpath           mkfs.minix        mpg123            msguniq
mawk              mkinitramfs       mpg123-alsa       mt
mbchk             mkinitramfs-kpkg  mpg123.bin        mt-gnu
mcookie           mklost+found      mpg123-esd        mtrace
md5sum            mk_modmap         mpg123-nas        munchlist
md5sum.textutils  mknod             mpg123-oss        muted
mesg              mkpasswd          mpg123-oss-i486   mutt
mii-tool          mkswap            msgattrib         mutt_dotlock
mkbimage          mktemp            msgcat            mv
mkboot            mlocate           msgcmp
09:21:42
#m-a
adsi.conf              features.conf          privacy.conf
adtranvofr.conf        festival.conf          queues.conf
agents.conf            followme.conf          res_odbc.conf
alarmreceiver.conf     func_odbc.conf         res_pgsql.conf
alsa.conf              gtalk.conf             res_snmp.conf
amd.conf               h323.conf              rpt.conf
asterisk.adsi          http.conf              rtp.conf
asterisk.conf          iax.conf               say.conf
cdr.conf               iaxprov.conf           sip.conf
cdr_custom.conf        indications.conf       sip.conf.SAVED
...
cdr_tds.conf           manager.d/             smdi.conf
codecs.conf            meetme.conf            telcordia-1.adsi
dnsmgr.conf            mgcp.conf              udptl.conf
dundi.conf             misdn.conf             users.conf
enum.conf              modules.conf           voicemail.conf
esel.conf              musiconhold.conf       vpb.conf
extconfig.conf         muted.conf             watchdog.conf
extensions.ael         osp.conf               zapata.conf
extensions.conf        oss.conf
extensions.conf.SAVED  phone.conf
09:21:42
#m-a a
adsi.conf           alarmreceiver.conf  asterisk.adsi
adtranvofr.conf     alsa.conf           asterisk.conf
agents.conf         amd.conf
09:21:42
#m-a a-i zaptel
  ┌───────────┤ Building zaptel-source, step 1, please wait... ├────────────┐
  ┠                                                                         │
  │                                                                         │
  │                                                                         │
  │                                                                         │
  │                                                                         │
  │                                                                         │
  │                                                                         │
  │                                                                         │
  │                                                                         │
  │                                                                         │
  │                                                                         │
  │                                100%                                   │
  │                                                                         │
  └─────────────────────────────────────────────────────────────────────────┘
Done with /usr/src/zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-19lenny2_i386.deb .
dpkg -Ei /usr/src/zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-19lenny2_i386.deb
Selecting previously deselected package zaptel-modules-2.6.26-2-686.
(Reading database ... 35555 files and directories currently installed.)
Unpacking zaptel-modules-2.6.26-2-686 (from .../zaptel-modules-2.6.26-2-686_1.4.11~dfsg-3+2.6.26-19lenny2_i386.deb) ...
Setting up zaptel-modules-2.6.26-2-686 (1:1.4.11~dfsg-3+2.6.26-19lenny2) ...
09:23:52
#ztscan
Unable to open /dev/zap/ctl: No such file or directory
09:23:58
#/etc/init.d/zaptel restart
Zaptel telephony kernel driver: Notice: Configuration file is /etc/zaptel.conf
line 0: Unable to open master device '/dev/zap/ctl'
line 0: Unable to open configuration file '/etc/zaptel.conf'
2 error(s) detected
09:24:11
#ztscan
[1]
active=yes
alarms=UNCONFIGURED
description=ZTDUMMY/1 (source: HRtimer) 1
name=ZTDUMMY/1
manufacturer=
devicetype=Zaptel Dummy Timing Driver
location=
basechan=1
totchans=0
irq=0
09:24:13
#vim sip.conf
--- /tmp/l3-saved-3579.25815.128	2009-12-09 10:24:47.000000000 +0200
+++ sip.conf	2009-12-09 10:27:52.000000000 +0200
@@ -0,0 +1,8 @@
+[general]
+context=default
+
+[301]
+type=friend
+host=dynamic
+secret=123
+callerid="romchiko-mac"
/dev/pts/2
09:27:32
#apt-get install screen
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  screen
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 604kB of archives.
After this operation, 1008kB of additional disk space will be used.
Get:1 http://10.0.35.1 lenny/main screen 4.0.3-11+lenny1 [604kB]
Fetched 604kB in 0s (4935kB/s)
Selecting previously deselected package screen.
(Reading database ... 35598 files and directories currently installed.)
Unpacking screen (from .../screen_4.0.3-11+lenny1_i386.deb) ...
Processing triggers for man-db ...
Setting up screen (4.0.3-11+lenny1) ...
09:27:43
#screen
/dev/pts/4
09:27:47
#cd /etc/asterisk/

/dev/tty1
09:27:52
#screen -x
/dev/pts/4
09:28:05
#vim extensions.conf
--- /tmp/l3-saved-12417.361.19192	2009-12-09 10:28:36.000000000 +0200
+++ extensions.conf	2009-12-09 10:33:44.000000000 +0200
@@ -0,0 +1,5 @@
+[default]
+
+;exten => _3XX,1,Set(CALLERID(number)=2${CALLERID(number)})
+exten => _3XX,n,Dial(SIP/${EXTEN})
+
/dev/pts/6
09:28:54
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
    -- Added extension '300' priority 3 to default
  == Parsing '/etc/asterisk/users.conf': Found
    -- Executing [300@default:1] Answer("SIP/301-0852af30", "") in new stack
    -- Executing [300@default:2] Echo("SIP/301-0852af30", "") in new stack
  == Spawn extension (default, 300, 2) exited non-zero on 'SIP/301-0852af30'
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/4
09:33:44
#vim sip.conf
09:34:52
#callerid="romchiko-ac"
;exten => _3XX,1,Set(CALLERID(number)=2${CALLERID(number)})
exten => 300,1,Answer
exten => 300,n,Wait(2)
exten => 300,1,Ecno
exten => 300,n,Hangup
;exten => 300,n,
exten => 300,n,
~
~
~
~
~
~
~
~
~
~
~
~
~
"extensions.conf" 10L, 211C written
09:36:05
#vim extensions.conf
--- /tmp/l3-saved-12417.11984.2582	2009-12-09 10:36:44.000000000 +0200
+++ extensions.conf	2009-12-09 10:36:58.000000000 +0200
@@ -4,7 +4,7 @@
 exten => _3XX,n,Dial(SIP/${EXTEN})
 
 exten => 300,1,Answer
-exten => 300,n,Wait(2)
-exten => 300,n,Ecno
+;exten => 300,n,Wait(2)
+exten => 300,n,Echo
 exten => 300,n,Hangup
 ;exten => 300,n,
09:36:58
#shutdown -h now

прошло 30 минут
/dev/tty1
10:07:23
#screen
/dev/pts/1
10:07:28
#cd /etc/asterisk/

10:07:32
#ztscan
[1]
active=yes
alarms=UNCONFIGURED
description=Wildcard TE122 Card 0
name=WCT1/0
manufacturer=Digium
devicetype=Wildcard TE122
location=PCI Bus 03 Slot 01
basechan=1
totchans=31
irq=20
type=digital-E1
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=HDB3
framing_opts=CCS,CRC4
coding=
framing=
10:07:35
#vim sip.conf
--- /tmp/l3-saved-2626.8147.32537	2009-12-09 11:08:03.000000000 +0200
+++ sip.conf	2009-12-09 11:09:06.000000000 +0200
@@ -6,3 +6,9 @@
 host=dynamic
 secret=123
 callerid="romchiko-mac"
+
+[302]
+type=friend
+host=dynamic
+secret=123
+callerid="romchiko-winSoft"
10:09:06
#vim extensions.conf
--- /tmp/l3-saved-2626.2960.32752	2009-12-09 11:13:05.000000000 +0200
+++ extensions.conf	2009-12-09 11:13:35.000000000 +0200
@@ -1,7 +1,7 @@
 [default]
 
 ;exten => _3XX,1,Set(CALLERID(number)=2${CALLERID(number)})
-exten => _3XX,n,Dial(SIP/${EXTEN})
+exten => _3XX,1,Dial(SIP/${EXTEN})
 
 exten => 300,1,Answer
 ;exten => 300,n,Wait(2)
/dev/pts/3
10:09:08
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
debian2*CLI>
debian2*CLI>
debian2*CLI>
debian2*CLI>
debian2*CLI>
debian2*CLI>
debian2*CLI>
debian2*CLI>
debian2*CLI> quit
Executing last minute cleanups
/dev/pts/1
10:14:58
#cd /tmp/

10:15:01
#scp 192.168.101.3:/root/Rondo .
The authenticity of host '192.168.101.3 (192.168.101.3)' can't be established.
RSA key fingerprint is 9f:cb:11:58:16:4c:80:65:e6:fa:8c:e4:04:c8:a6:53.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.101.3' (RSA) to the list of known hosts.
root@192.168.101.3's password:
scp: /root/Rondo: not a regular file
10:15:28
#scp 192.168.101.3:/root/Rondo/* .
\root@192.168.101.3's password:
rondo_veneziano_-_alba_sul_mare.mp3           100% 5772KB   5.6MB/s   00:01
rondo_veneziano_-_bettina.mp3                 100% 2960KB   2.9MB/s   00:00
rondo_veneziano_-_casanova.mp3                100% 3705KB   3.6MB/s   00:00
rondo_veneziano_-_cattedrali.mp3              100% 6281KB   6.1MB/s   00:01
rondo_veneziano_-_cecilia.mp3                 100% 3830KB   3.7MB/s   00:00
rondo_veneziano_-_danza_mediterranea.mp3      100% 7146KB   7.0MB/s   00:01
rondo_veneziano_-_desiree.mp3                 100% 4736KB   4.6MB/s   00:00
rondo_veneziano_-_donna_lucrezia.mp3          100% 5006KB   4.9MB/s   00:01
rondo_veneziano_-_fantasia_veneziana.mp3      100% 3458KB   3.4MB/s   00:00
rondo_veneziano_-_gioco_italiano.mp3          100% 8603KB   8.4MB/s   00:01
rondo_veneziano_-_incontro.mp3                100% 3441KB   3.4MB/s   00:00
rondo_veneziano_-_interludio.mp3              100% 4389KB   4.3MB/s   00:01
rondo_veneziano_-_la_serenissima.mp3          100% 3255KB   3.2MB/s   00:00
rondo_veneziano_-_lorientale.mp3              100% 4353KB   4.3MB/s   00:00
rondo_veneziano_-_magica.mp3                  100% 4857KB   4.7MB/s   00:01
rondo_veneziano_-_nostalgia_di_venezia.mp3    100% 2321KB   2.3MB/s   00:00
rondo_veneziano_-_re_sole.mp3                 100% 5088KB   5.0MB/s   00:00
rondo_veneziano_-_torcello.mp3                100% 4271KB   4.2MB/s   00:01
rondo_veneziano_-_viaggio_italiano.mp3        100% 8581KB   8.4MB/s   00:01
10:15:43
#mpg123 rondo_veneziano_-_torcello.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
        version 1.4.3; written and copyright by Michael Hipp and others
        free software (LGPL/GPL) without any warranty but with best wishes
Playing MPEG stream 1 of 1: rondo_veneziano_-_torcello.mp3 ...
Title:   Torcello                        Artist: Rondo' Veneziano
Comment: Electronicmusic.newmail.ru      Album:  Fantasia Veneziana
Year:    1986                            Genre:  Classical
MPEG 1.0 layer III, 192 kbit/s, 44100 Hz joint-stereo
^C
[0:07] Decoding of rondo_veneziano_-_torcello.mp3 finished.
10:16:09
#ls -l
total 92272
-rwxr-xr-x 1 root root 5910183 2009-12-09 11:15 rondo_veneziano_-_alba_sul_mare.mp3
-rwxr-xr-x 1 root root 3031153 2009-12-09 11:15 rondo_veneziano_-_bettina.mp3
-rwxr-xr-x 1 root root 3794251 2009-12-09 11:15 rondo_veneziano_-_casanova.mp3
-rwxr-xr-x 1 root root 6431397 2009-12-09 11:15 rondo_veneziano_-_cattedrali.mp3
-rwxr-xr-x 1 root root 3921728 2009-12-09 11:15 rondo_veneziano_-_cecilia.mp3
-rwxr-xr-x 1 root root 7317184 2009-12-09 11:15 rondo_veneziano_-_danza_mediterranea.mp3
-rwxr-xr-x 1 root root 4849604 2009-12-09 11:15 rondo_veneziano_-_desiree.mp3
-rwxr-xr-x 1 root root 5126114 2009-12-09 11:15 rondo_veneziano_-_donna_lucrezia.mp3
-rwxr-xr-x 1 root root 3541421 2009-12-09 11:15 rondo_veneziano_-_fantasia_veneziana.mp3
-rwxr-xr-x 1 root root 8809243 2009-12-09 11:15 rondo_veneziano_-_gioco_italiano.mp3
-rwxr-xr-x 1 root root 3523652 2009-12-09 11:15 rondo_veneziano_-_incontro.mp3
-rwxr-xr-x 1 root root 4494335 2009-12-09 11:15 rondo_veneziano_-_interludio.mp3
-rwxr-xr-x 1 root root 3333605 2009-12-09 11:15 rondo_veneziano_-_la_serenissima.mp3
-rwxr-xr-x 1 root root 4457764 2009-12-09 11:15 rondo_veneziano_-_lorientale.mp3
-rwxr-xr-x 1 root root 4973729 2009-12-09 11:15 rondo_veneziano_-_magica.mp3
-rwxr-xr-x 1 root root 2376632 2009-12-09 11:15 rondo_veneziano_-_nostalgia_di_venezia.mp3
-rwxr-xr-x 1 root root 5210026 2009-12-09 11:15 rondo_veneziano_-_re_sole.mp3
-rwxr-xr-x 1 root root 4373699 2009-12-09 11:15 rondo_veneziano_-_torcello.mp3
-rwxr-xr-x 1 root root 8787300 2009-12-09 11:15 rondo_veneziano_-_viaggio_italiano.mp3
10:16:11
#ls
rondo_veneziano_-_alba_sul_mare.mp3
rondo_veneziano_-_bettina.mp3
rondo_veneziano_-_casanova.mp3
rondo_veneziano_-_cattedrali.mp3
rondo_veneziano_-_cecilia.mp3
rondo_veneziano_-_danza_mediterranea.mp3
rondo_veneziano_-_desiree.mp3
rondo_veneziano_-_donna_lucrezia.mp3
rondo_veneziano_-_fantasia_veneziana.mp3
rondo_veneziano_-_gioco_italiano.mp3
rondo_veneziano_-_incontro.mp3
rondo_veneziano_-_interludio.mp3
rondo_veneziano_-_la_serenissima.mp3
rondo_veneziano_-_lorientale.mp3
rondo_veneziano_-_magica.mp3
rondo_veneziano_-_nostalgia_di_venezia.mp3
rondo_veneziano_-_re_sole.mp3
rondo_veneziano_-_torcello.mp3
rondo_veneziano_-_viaggio_italiano.mp3
10:16:13
#sox rondo_veneziano_-_casanova.mp3 -r 8000 -c1 casanova.gsm

10:20:06
#mv casanova.gsm /usr/share/asterisk/sounds/

10:20:19
#vim
10:20:28
#cd /etc/asterisk/

10:20:33
#vim extensions.conf
--- /tmp/l3-saved-2626.22933.5520	2009-12-09 11:20:36.000000000 +0200
+++ extensions.conf	2009-12-09 11:21:50.000000000 +0200
@@ -8,3 +8,6 @@
 exten => 300,n,Echo
 exten => 300,n,Hangup
 ;exten => 300,n,
+
+exten => 391,1,Wait(2)
+exten => 391,n,Playback(casanova)
10:22:31
#cd /tmp/

10:22:44
#cd /tmp/

10:22:44
#vim extensions.conf
10:24:01
#mv casanova.gsm /usr/share/asterisk/sounds/

10:24:03
#vim sip.co
10:24:38
#~

10:24:40
#cd /etc/asterisk/

10:24:42
#vim sip.conf
--- /tmp/l3-saved-2626.9553.26286	2009-12-09 11:24:46.000000000 +0200
+++ sip.conf	2009-12-09 11:25:55.000000000 +0200
@@ -12,3 +12,9 @@
 host=dynamic
 secret=123
 callerid="romchiko-winSoft"
+
+[fromDeb4]
+type=friend
+host=dynamic
+secret=123
+callerid="romchiko-DEB-4"
10:25:55
#vim sip.conf
10:28:05
#~
;exten => _3XX,1,Set(CALLERID(number)=2${CALLERID(number)})
exten => _2XX,1,Dial(SIP/fromDeb4/${EXTEN})
exten => _r3XX,1,Dial(SIP/${EXTEN})
exten => 300,1,Answer
;exten => 300,n,Wait(2)
exten => 300,n,Echo
~
~
~
~
~
~
~
~
"extensions.conf" 15L, 315C written
10:30:47
#vim extensions.conf
--- /tmp/l3-saved-2626.5135.957	2009-12-09 11:32:25.000000000 +0200
+++ extensions.conf	2009-12-09 11:32:35.000000000 +0200
@@ -4,6 +4,7 @@
 exten => _3XX,1,Dial(SIP/${EXTEN})
 
 exten => _2XX,1,Dial(SIP/fromDeb4/${EXTEN})
+exten => _1XX,n,Dial(SIP/fromDeb4/${EXTEN})
 
 exten => 300,1,Answer
 ;exten => 300,n,Wait(2)
10:32:35
#vim extensions.conf
--- /tmp/l3-saved-2626.23006.10966	2009-12-09 11:32:51.000000000 +0200
+++ extensions.conf	2009-12-09 11:34:50.000000000 +0200
@@ -4,7 +4,7 @@
 exten => _3XX,1,Dial(SIP/${EXTEN})
 
 exten => _2XX,1,Dial(SIP/fromDeb4/${EXTEN})
-exten => _1XX,n,Dial(SIP/fromDeb4/${EXTEN})
+exten => _1XX,1,Dial(SIP/fromDeb4/${EXTEN})
 
 exten => 300,1,Answer
 ;exten => 300,n,Wait(2)
прошла 51 минута
/dev/pts/5
11:24:22
#screen -x
/dev/pts/7
11:24:33
#screen -x
/dev/pts/1
11:24:40
#lspci
00:00.0 Host bridge: Intel Corporation 82P965/G965 Memory Controller Hub (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82G965 Integrated Graphics Controller (rev 02)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev f2)
00:1f.0 ISA bridge: Intel Corporation 82801HB/HR (ICH8/R) LPC Interface Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801H (ICH8 Family) 4 port SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02)
00:1f.5 IDE interface: Intel Corporation 82801H (ICH8 Family) 2 port SATA IDE Controller (rev 02)
01:00.0 IDE interface: JMicron Technologies, Inc. JMB368 IDE controller
02:00.0 Ethernet controller: Attansic Technology Corp. L1 Gigabit Ethernet Adapter (rev b0)
03:00.0 Ethernet controller: Digium, Inc. Device 8001 (rev 11)
11:24:49
#lspci -v
00:00.0 Host bridge: Intel Corporation 82P965/G965 Memory Controller Hub (rev 02)
        Subsystem: ASUSTeK Computer Inc. Device 823b
        Flags: bus master, fast devsel, latency 0
        Capabilities: [e0] Vendor Specific Information <?>
        Kernel driver in use: agpgart-intel
        Kernel modules: intel-agp
00:02.0 VGA compatible controller: Intel Corporation 82G965 Integrated Graphics Controller (rev 02) (prog-if 00 [VGA controller])
        Subsystem: ASUSTeK Computer Inc. Device 823b
        Flags: bus master, fast devsel, latency 0, IRQ 11
        Memory at dfc00000 (32-bit, non-prefetchable) [size=1M]
...
        Kernel modules: atl1
03:00.0 Ethernet controller: Digium, Inc. Device 8001 (rev 11)
        Subsystem: Digium, Inc. Device 8001
        Flags: bus master, medium devsel, latency 64, IRQ 20
        I/O ports at e800 [size=256]
        Memory at dffffc00 (32-bit, non-prefetchable) [size=1K]
        Expansion ROM at 80000000 [disabled] [size=128K]
        Capabilities: [c0] Power Management version 2
        Kernel driver in use: wcte12xp
        Kernel modules: wcte12xp
11:24:55
#lspci -v | grep IRQ
        Flags: bus master, fast devsel, latency 0, IRQ 11
        Flags: bus master, medium devsel, latency 0, IRQ 22
        Flags: bus master, medium devsel, latency 0, IRQ 21
        Flags: bus master, medium devsel, latency 0, IRQ 18
        Flags: bus master, fast devsel, latency 0, IRQ 22
        Flags: bus master, medium devsel, latency 0, IRQ 23
        Flags: bus master, medium devsel, latency 0, IRQ 20
        Flags: bus master, medium devsel, latency 0, IRQ 21
        Flags: bus master, medium devsel, latency 0, IRQ 23
        Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 18
        Flags: medium devsel, IRQ 18
        Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 18
        Flags: bus master, fast devsel, latency 0, IRQ 17
        Flags: bus master, fast devsel, latency 0, IRQ 221
        Flags: bus master, medium devsel, latency 64, IRQ 20
11:25:10
#lspci -v | grep -B3 IRQ
00:02.0 VGA compatible controller: Intel Corporation 82G965 Integrated Graphics Controller (rev 02) (prog-if 00 [VGA controller])
        Subsystem: ASUSTeK Computer Inc. Device 823b
        Flags: bus master, fast devsel, latency 0, IRQ 11
--
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 02) (prog-if 00 [UHCI])
        Subsystem: ASUSTeK Computer Inc. Device 81eb
        Flags: bus master, medium devsel, latency 0, IRQ 22
--
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02) (prog-if 00 [UHCI])
        Subsystem: ASUSTeK Computer Inc. Device 81eb
...
        Subsystem: ASUSTeK Computer Inc. Device 827e
        Flags: bus master, fast devsel, latency 0, IRQ 17
--
02:00.0 Ethernet controller: Attansic Technology Corp. L1 Gigabit Ethernet Adapter (rev b0)
        Subsystem: ASUSTeK Computer Inc. Device 8226
        Flags: bus master, fast devsel, latency 0, IRQ 221
--
03:00.0 Ethernet controller: Digium, Inc. Device 8001 (rev 11)
        Subsystem: Digium, Inc. Device 8001
        Flags: bus master, medium devsel, latency 64, IRQ 20
11:25:16
#apt-get install less
Reading package lists... Done
Building dependency tree
Reading state information... Done
less is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
11:25:46
#lspci -v | grep -B3 IRQ | less
11:26:07
#ztscan
[1]
active=yes
alarms=UNCONFIGURED
description=Wildcard TE122 Card 0
name=WCT1/0
manufacturer=Digium
devicetype=Wildcard TE122
location=PCI Bus 03 Slot 01
basechan=1
totchans=31
irq=20
type=digital-E1
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=HDB3
framing_opts=CCS,CRC4
coding=
framing=
11:26:10
## xgu.ru/wiki/PRI

11:26:50
#vim /etc/zaptel.conf
--- /dev/null	2009-12-09 10:58:13.504317110 +0200
+++ /etc/zaptel.conf	2009-12-09 12:33:46.000000000 +0200
@@ -0,0 +1,4 @@
+span=1,1,0,ccs,hdb3,crc4
+bchan=1-15
+dchan=16
+bchan=17-31
11:33:46
#/etc/init.d/zaptel restart
Zaptel telephony kernel driver: zaptel.
11:34:03
#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 23: Clear channel (Default) (Slaves: 23)
Channel 24: Clear channel (Default) (Slaves: 24)
Channel 25: Clear channel (Default) (Slaves: 25)
Channel 26: Clear channel (Default) (Slaves: 26)
Channel 27: Clear channel (Default) (Slaves: 27)
Channel 28: Clear channel (Default) (Slaves: 28)
Channel 29: Clear channel (Default) (Slaves: 29)
Channel 30: Clear channel (Default) (Slaves: 30)
Channel 31: Clear channel (Default) (Slaves: 31)
31 channels to configure.
11:34:10
#ztcfg -vvv | less
11:34:22
#vim /etc/zaptel.conf
--- /tmp/l3-saved-2626.30771.22788	2009-12-09 12:34:24.000000000 +0200
+++ /etc/zaptel.conf	2009-12-09 12:34:28.000000000 +0200
@@ -1,4 +1,4 @@
-span=1,1,0,ccs,hdb3,crc4
+span=1,0,0,ccs,hdb3,crc4
 bchan=1-15
 dchan=16
 bchan=17-31
11:34:28
#/etc/init.d/zaptel restart
Zaptel telephony kernel driver: zaptel.
11:34:31
#ztcfg -vvv | less
11:35:13
#ztscan
[1]
active=yes
alarms=OK
description=Wildcard TE122 Card 0
name=WCT1/0
manufacturer=Digium
devicetype=Wildcard TE122
location=PCI Bus 03 Slot 01
basechan=1
totchans=31
irq=20
type=digital-E1
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=HDB3
framing_opts=CCS,CRC4
coding=HDB3
framing=CCS
11:35:22
#vim zapata.conf
--- /tmp/l3-saved-2626.25590.19019	2009-12-09 12:35:46.000000000 +0200
+++ zapata.conf	2009-12-09 12:37:29.000000000 +0200
@@ -59,7 +59,7 @@
 ; ni1:            Old National ISDN 1
 ; qsig:           Q.SIG
 ;
-switchtype=national
+switchtype=euroisdn
 ;
 ; 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,
@@ -677,6 +677,7 @@
 ;dring2=325,95,0 
 ;dring2context=internal2 
 ; If no pattern is matched here is where we go.
-;context=default
-;channel => 1 
+context=default
+group=1
+channel => 1 
 
11:37:29
#vim extensions.conf
--- /tmp/l3-saved-2626.31937.5373	2009-12-09 12:37:38.000000000 +0200
+++ extensions.conf	2009-12-09 12:37:55.000000000 +0200
@@ -4,7 +4,7 @@
 exten => _3XX,1,Dial(SIP/${EXTEN})
 
 exten => _2XX,1,Dial(SIP/fromDeb4/${EXTEN})
-exten => _1XX,1,Dial(SIP/fromDeb4/${EXTEN})
+exten => _1XX,1,Dial(ZAP/fromDeb4/${EXTEN})
 
 exten => 300,1,Answer
 ;exten => 300,n,Wait(2)
11:37:56
#vim zapata.conf
--- /tmp/l3-saved-2626.10341.458	2009-12-09 12:38:39.000000000 +0200
+++ zapata.conf	2009-12-09 12:39:00.000000000 +0200
@@ -210,7 +210,7 @@
 ;                 (2-way)
 ; sf_rxtx:        Same as sf_txrx (for our dyslexic friends)
 ;
-signalling=pri_cpe
+signalling=pri_net
 ;
 ; If you have an outbound signalling format that is different from format
 ; specified above (but compatible), you can specify outbound signalling format,
/dev/pts/3
11:38:15
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
11:38:32
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/1
11:39:00
#cat /etc/zaptel.conf
span=1,0,0,ccs,hdb3,crc4
bchan=1-15
dchan=16
bchan=17-31
11:39:55
#vim extensions.conf
--- /tmp/l3-saved-2626.10375.14261	2009-12-09 12:41:53.000000000 +0200
+++ extensions.conf	2009-12-09 14:42:46.000000000 +0200
@@ -4,7 +4,10 @@
 exten => _3XX,1,Dial(SIP/${EXTEN})
 
 exten => _2XX,1,Dial(SIP/fromDeb4/${EXTEN})
-exten => _1XX,1,Dial(ZAP/fromDeb4/${EXTEN})
+exten => _1XX,1,Set(CALLERID(all)=ROMAZAVR)
+exten => _1XX,n,Dial(IAX/G1/${EXTEN}
+
+exten => _380XXXXXXXXX,1,Dial(SIP/fromDeb4/${EXTEN})
 
 exten => 300,1,Answer
 ;exten => 300,n,Wait(2)
/dev/pts/9
11:49:40
#ssh 192.168.102.1
The authenticity of host '192.168.102.1 (192.168.102.1)' can't be established.
RSA key fingerprint is e0:02:43:8e:17:2b:14:dd:6c:e6:36:8c:3b:c8:04:74.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.102.1' (RSA) to the list of known hosts.
root@192.168.102.1's password:
Linux debian4 2.6.26-2-686 #1 SMP Wed Aug 19 06:06:52 UTC 2009 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Dec  8 21:45:18 2009 from 192.168.102.101
l3-agent is already running: pid=2751; pidfile=/root/.lilalo/l3-agent.pid
11:49:57
#cd /etc/asterisk/

11:50:02
#vim extensions.conf
11:50:30
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
    -- Starting simple switch on 'Zap/1-1'
    -- Executing [301@default:1] Dial("Zap/1-1", "SIP/poltava/301") in new stack
    -- Called poltava/301
    -- SIP/poltava-08af9068 is making progress passing it to Zap/1-1
    -- SIP/poltava-08af9068 is ringing
    -- SIP/poltava-08af9068 answered Zap/1-1
  == Spawn extension (default, 301, 1) exited non-zero on 'Zap/1-1'
    -- Hungup 'Zap/1-1'
quit
Executing last minute cleanups
11:51:41
#vim extensions.conf
11:52:23
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf': Found
  == Parsing '/etc/asterisk/extconfig.conf': Found
Connected to Asterisk 1.4.21.2~dfsg-3 currently running on debian4 (pid = 4684)
Verbosity is at least 5
debian4*CLI> quit
Executing last minute cleanups
11:52:30
#vim extensions.conf
11:52:58
#vim zapata.conf
11:58:30
#vim extensions.conf
12:01:06
#vim zapata.conf
12:01:23
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
 Destroying channels and reloading zaptel configuration.
  == Parsing '/etc/asterisk/zapata.conf': Found
    -- Registered channel 1, FXO Kewlstart signalling
    -- Automatically generated pseudo channel
  == Parsing '/etc/asterisk/users.conf': Found
    -- Starting simple switch on 'Zap/1-1'
    -- Hungup 'Zap/1-1'
[Dec  9 01:02:36] WARNING[4703]: chan_zap.c:1684 zt_set_hook: zt hook failed: Device or resource busy
debian4*CLI> quit
Executing last minute cleanups
12:02:44
#/etc/init.d/zaptel restart
Zaptel telephony kernel driver: zaptel.

Файлы

  • /etc/zaptel.conf
  • /etc/zaptel.conf
    >
    span=1,0,0,ccs,hdb3,crc4
    bchan=1-15
    dchan=16
    bchan=17-31
    

    Статистика

    Время первой команды журнала09:15:32 2009-12- 9
    Время последней команды журнала12:02:44 2009-12- 9
    Количество командных строк в журнале100
    Процент команд с ненулевым кодом завершения, % 9.00
    Процент синтаксически неверно набранных команд, % 0.00
    Суммарное время работы с терминалом *, час 1.42
    Количество командных строк в единицу времени, команда/мин 1.18
    Частота использования команд
    vim26|========================| 24.30%
    cd9|========| 8.41%
    asterisk6|=====| 5.61%
    apt-get6|=====| 5.61%
    screen5|====| 4.67%
    lspci5|====| 4.67%
    ztscan5|====| 4.67%
    /etc/init.d/zaptel4|===| 3.74%
    grep4|===| 3.74%
    ls4|===| 3.74%
    mv4|===| 3.74%
    m-a3|==| 2.80%
    ztcfg3|==| 2.80%
    less3|==| 2.80%
    apt-cache3|==| 2.80%
    /etc/init.d/asterisk2|=| 1.87%
    scp2|=| 1.87%
    .2|=| 1.87%
    ~2|=| 1.87%
    touch1|| 0.93%
    sox1|| 0.93%
    mpg1231|| 0.93%
    m1|| 0.93%
    #1|| 0.93%
    shutdown1|| 0.93%
    cat1|| 0.93%
    ssh1|| 0.93%
    callerid="romchiko-ac"1|| 0.93%
    ____
    *) Интервалы неактивности длительностью 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$