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

Содержание

Журнал

Четверг (10/28/10)

/dev/pts/2
10:24:08
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk.
10:24:17
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk.
/dev/pts/0
10:25:46
# strategy = ringall
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
=========================================================================
Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux12 (pid = 4445)
Verbosity was 0 and is now 1
linux12*CLI> set verbose 99
Verbosity was 1 and is now 99
The 'set verbose' command is deprecated and will be removed in a future release. Please use 'core set verbose' instead.
    -- Executing [2281@group3:1] Queue("SIP/2202-0a0c1f00", "queue1") in new stack
[Oct 28 11:26:18] WARNING[4507]: app_queue.c:3930 queue_exec: Unable to join queue 'queue1'
  == Auto fallthrough, channel 'SIP/2202-0a0c1f00' status is 'UNKNOWN'
linux12*CLI> quit
Executing last minute cleanups
Asterisk cleanly ending (0).
/dev/pts/2
10:33:00
# strategy = ringall
.ICE-unix/                message-91.gsm            message-95.gsm
l3-saved-3232.16189.2818  message-92.gsm            message-96.gsm
lost+found/               message-93.gsm            v258999/
memories.mp3              message-94.gsm            .X11-unix/
10:33:00
#cp /tmp/memories.mp3 /var/lib/asterisk/moh/

10:33:39
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk.
10:33:58
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk.
10:34:12
#ls /var/lib/
apt/                 exim4/               samba/
aptitude/            gconf/               sendmail/
aspell/              hal/                 snmp/
asterisk/            initramfs-tools/     tex-common/
bind/                initscripts/         ucf/
dbus/                libuuid/             urandom/
defoma/              logrotate/           usbutils/
dhcp3/               misc/                vim/
dictionaries-common/ mlocate/             x11/
dpkg/                nfs/                 xkb/
10:34:12
#ls /var/lib/
apt/                 exim4/               samba/
aptitude/            gconf/               sendmail/
aspell/              hal/                 snmp/
asterisk/            initramfs-tools/     tex-common/
bind/                initscripts/         ucf/
dbus/                libuuid/             urandom/
defoma/              logrotate/           usbutils/
dhcp3/               misc/                vim/
dictionaries-common/ mlocate/             x11/
dpkg/                nfs/                 xkb/
10:34:12
#ls /var/lib/
apt/                 exim4/               samba/
aptitude/            gconf/               sendmail/
aspell/              hal/                 snmp/
asterisk/            initramfs-tools/     tex-common/
bind/                initscripts/         ucf/
dbus/                libuuid/             urandom/
defoma/              logrotate/           usbutils/
dhcp3/               misc/                vim/
dictionaries-common/ mlocate/             x11/
dpkg/                nfs/                 xkb/
10:34:12
#ls /var/lib/as
aspell/   asterisk/
10:34:12
#ls /var/lib/as
aspell/   asterisk/
10:34:12
#ls /var/lib/asterisk/moh/
memories.mp3
10:36:02
#ls -lah /var/lib/asterisk/moh/
total 8.1M
drwxr-xr-x 2 asterisk asterisk 4.0K 2010-10-28 11:33 .
drwxr-xr-x 4 asterisk asterisk 4.0K 2010-10-25 16:53 ..
-rw-r--r-- 1 root     root     8.1M 2010-10-28 11:33 memories.mp3
10:36:06
#cmowh asterisk /var/lib/asterisk/moh/memories.mp3
bash: cmowh: command not found
10:36:27
#chown asterisk /var/lib/asterisk/moh/memories.mp3

10:36:54
#chmod 777 /var/lib/asterisk/moh/memories.mp3

10:37:30
#asterisk -rcv
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
=========================================================================
Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux12 (pid = 4850)
Verbosity was 0 and is now 1
[Oct 28 11:38:06] WARNING[4899]: file.c:602 ast_openstream_full: File /var/lib/asterisk/moh/memories does not exist in any format
[Oct 28 11:38:06] WARNING[4899]: res_musiconhold.c:265 ast_moh_files_next: Unable to open file '/var/lib/asterisk/moh/memories': No such file or directory
[Oct 28 11:38:13] NOTICE[4899]: res_monitor.c:339 ast_monitor_stop: monitor executing ( nice -n 19 sox -m "/var/spool/asterisk/monitor/voice-2201-2101-1288255080-in.wav" "/var/spool/asterisk/monitor/voice-2201-2101-1288255080-out.wav" "/var/spool/asterisk/monitor/voice-2201-2101-1288255080.wav"  && rm -f "/var/spool/asterisk/monitor/voice-2201-2101-1288255080-"* ) &
Executing last minute cleanups
linux12*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
Asterisk cleanly ending (0).
/dev/pts/0
10:39:02
#asterisk -rcv
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
=========================================================================
Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux12 (pid = 4950)
Verbosity was 0 and is now 1
linux12*CLI> moh show files
Class: default
        File: /var/lib/asterisk/moh/memories
[Oct 28 11:39:59] NOTICE[4999]: pbx.c:1892 pbx_extension_helper: No such label 'answer' in extension 's' in context 'macro-answer-with-monitor'
[Oct 28 11:39:59] WARNING[4999]: pbx.c:6424 ast_parseable_goto: Priority 'answer' must be a number > 0, or valid label
[Oct 28 11:39:59] NOTICE[4999]: res_monitor.c:339 ast_monitor_stop: monitor executing ( nice -n 19 sox -m "/var/spool/asterisk/monitor/voice-2201-2101-1288255188-in.wav" "/var/spool/asterisk/monitor/voice-2201-2101-1288255188-out.wav" "/var/spool/asterisk/monitor/voice-2201-2101-1288255188.wav"  && rm -f "/var/spool/asterisk/monitor/voice-2201-2101-1288255188-"* ) &
linux12*CLI> quit
Executing last minute cleanups
Asterisk cleanly ending (0).
/dev/pts/2
10:39:06
#vi /etc/asterisk/asterisk.conf
/dev/pts/0
10:42:35
#sox -t mp3 /tmp/memories.mp3 -r 8000 -c1 -t gsm /tmp/mem
sox soxio: Can't open input file `/tmp/memories.mp3': unknown file type `mp3'
10:42:36
#sox -t mp3 /tmp/memories.mp3 -r 8000 -c1 -t gsm /tmp/mem
sox soxio: Can't open input file `/tmp/memories.mp3': unknown file type `mp3'
10:42:44
#scp root@192.168.108.1:/var/lib/asterisk/moh/m* /var/lib/as
/var/lib/aspell/    /var/lib/asterisk/
10:42:44
#scp root@192.168.108.1:/var/lib/asterisk/moh/m* /var/lib/asterisk/moh/
root@192.168.108.1's password:
scp: /var/lib/asterisk/moh/m*: No such file or directory
10:44:44
#scp root@192.168.106.1:/var/lib/asterisk/moh/m* /var/lib/asterisk/moh/
The authenticity of host '192.168.106.1 (192.168.106.1)' can't be established.
RSA key fingerprint is 21:08:fc:f2:2c:c6:25:07:10:4f:31:f9:f6:82:9a:9f.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.106.1' (RSA) to the list of known hosts.
root@192.168.106.1's password:
memories.gsm                                                 100%  338KB 337.8KB/s   00:00
10:45:29
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk.
10:45:55
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk.
/dev/pts/2
10:49:25
#asterisk -rcv
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
=========================================================================
...
Dialplan reloaded.
[Oct 28 11:49:33] WARNING[5245]: pbx.c:4702 add_pri: Unable to register extension '2280', priority 1 in 'local', already in use
linux12*CLI> set verbose 99
Verbosity was 1 and is now 99
The 'set verbose' command is deprecated and will be removed in a future release. Please use 'core set verbose' instead.
    -- Executing [2201@group1:1] SetMusicOnHold("SIP/mn-09184bb0", "default") in new stack
  == Auto fallthrough, channel 'SIP/mn-09184bb0' status is 'UNKNOWN'
set verbose 9quit
Executing last minute cleanups
Asterisk cleanly ending (0).
10:50:41
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3768.25091.11840	2010-10-28 11:50:44.000000000 +0300
+++ /etc/asterisk/extensions.conf	2010-10-28 11:55:22.000000000 +0300
@@ -63,11 +63,11 @@
 
 
 [local]
-exten =>2201,1,SetMusicOnhold(default)
 exten =>2281,1,Queue(queue1)
 exten =>2280,1,Dial(SIP/2202&SIP/2203)
 exten =>2280,1,Dial(SIP/2202&SIP/2203)
-exten => _22XX,1,Macro(answer-with-monitor,${EXTEN})
+exten =>_22XX,1,SetMusicOnhold(default)
+exten => _22XX,n,Macro(answer-with-monitor,${EXTEN})
 exten => 2296,1,VoiceMailMain()
 exten => 2298,1,Record(/tmp/warning1:ulaw,,3)
 ;exten => 2297,1,Playback(/tmp/warning1)
10:55:22
#asterisk -rcv
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 [s@macro-answer-with-monitor:8] VoiceMail("SIP/mn-091821c8", "2201@default") in new stack
    -- <SIP/mn-091821c8> Playing 'vm-intro' (language 'en')
  == Spawn extension (macro-answer-with-monitor, s, 8) exited non-zero on 'SIP/mn-091821c8' in macro 'answer-with-monitor'
  == Spawn extension (macro-answer-with-monitor, s, 8) exited non-zero on 'SIP/mn-091821c8'
    -- Executing [h@macro-answer-with-monitor:1] StopMonitor("SIP/mn-091821c8", "") in new stack
[Oct 28 11:55:53] NOTICE[5279]: res_monitor.c:339 ast_monitor_stop: monitor executing ( nice -n 19 sox -m "/var/spool/asterisk/monitor/voice-2201-2101-1288256142-in.wav" "/var/spool/asterisk/monitor/voice-2201-2101-1288256142-out.wav" "/var/spool/asterisk/monitor/voice-2201-2101-1288256142.wav"  && rm -f "/var/spool/asterisk/monitor/voice-2201-2101-1288256142-"* ) &
    -- Executing [h@macro-answer-with-monitor:2] System("SIP/mn-091821c8", "lame /var/spool/asterisk/monitor/voice-2201-2101-1288256142.wav /var/spool/asterisk/monitor/voice-2201-2101-1288256142.mp3") in new stack
linux12*CLI> quit
Executing last minute cleanups
Asterisk cleanly ending (0).
10:58:05
#vi /etc/asterisk/mu
10:58:05
#vi /etc/asterisk/musiconhold.conf
--- /tmp/l3-saved-3768.22591.28481	2010-10-28 12:07:59.000000000 +0300
+++ /etc/asterisk/sip.conf	2010-10-28 12:11:52.000000000 +0300
@@ -18,7 +18,10 @@
 callerid="Andrey_2201"
 context=group1                 ; group1 context for incoming calls
 ;canreinvite=no
-mailbox=2201 
+mailbox=2201
+callgroup=1
+pickupgroup=1
+ 
 
 [2202]
 type=friend
@@ -27,6 +30,8 @@
 callerid="Andrey's_Softphone 2202"
 context=group3               ; group1 context for incoming calls
 ;canreinvite=no
+callgroup=1
+pickupgroup=1
 
 [2203]
 type=friend
10:59:19
#apt-get install mpg123
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libmpg123-0
Suggested packages:
  libartsc0 libaudio2 libaudiofile0 libesd0 libesd-alsa0 libjack0 libpulse0
The following NEW packages will be installed:
  libmpg123-0 mpg123
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
...
Get:2 http://ftp.ua.debian.org lenny/main mpg123 1.4.3-4lenny1 [129kB]
Fetched 475kB in 1s (403kB/s)
Selecting previously deselected package libmpg123-0.
(Reading database ... 45407 files and directories currently installed.)
Unpacking libmpg123-0 (from .../libmpg123-0_1.4.3-4lenny1_i386.deb) ...
Selecting previously deselected package mpg123.
Unpacking mpg123 (from .../mpg123_1.4.3-4lenny1_i386.deb) ...
Processing triggers for man-db ...
Setting up libmpg123-0 (1.4.3-4lenny1) ...
Setting up mpg123 (1.4.3-4lenny1) ...
11:00:55
#man mpg123
11:01:10
#mpg123 /var/lib/as
aspell/   asterisk/
11:01:10
#mpg123 /var/lib/asterisk/moh/memories.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
Directory: /var/lib/asterisk/moh/
Playing MPEG stream 1 of 1: memories.mp3 ...
Title:   Memories                        Artist: David Guetta Feat. Kid Cudi
Comment:  00001B55 0000181E 000074B4 0000783B 0002B3F9 00004020 00008000 00008000 0000157F 0000035B
Album:   One Love
Year:    2009                            Genre:  Dance
MPEG 1.0 layer III, 320 kbit/s, 44100 Hz joint-stereo
^C
[0:07] Decoding of memories.mp3 finished.
прошло 28 минут
/dev/pts/4
11:29:51
#asterisk -rcv
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
=========================================================================
...
  == Spawn extension (macro-answer-with-monitor, s, 4) exited non-zero on 'SIP/mn-09180578'
    -- Executing [h@macro-answer-with-monitor:1] StopMonitor("SIP/mn-09180578", "") in new stack
[Oct 28 12:31:22] NOTICE[5757]: res_monitor.c:339 ast_monitor_stop: monitor executing ( nice -n 19 sox -m "/var/spool/asterisk/monitor/voice-2201-2101-1288258217-in.wav" "/var/spool/asterisk/monitor/voice-2201-2101-1288258217-out.wav" "/var/spool/asterisk/monitor/voice-2201-2101-1288258217.wav"  && rm -f "/var/spool/asterisk/monitor/voice-2201-2101-1288258217-"* ) &
    -- Executing [h@macro-answer-with-monitor:2] System("SIP/mn-09180578", "lame /var/spool/asterisk/monitor/voice-2201-2101-1288258217.wav /var/spool/asterisk/monitor/voice-2201-2101-1288258217.mp3") in new stack
    -- Saved useragent "Cisco-CP7960G/7.5" for peer 2201
    -- Saved useragent "Cisco-CP7960G/7.5" for peer 2204
    -- Saved useragent "Cisco-CP7960G/7.5" for peer 2205
linux12*CLI> quit
Executing last minute cleanups
Asterisk cleanly ending (0).
11:34:34
#apt-get install festival
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  esound-clients esound-common festlex-cmu festlex-poslex festvox-kallpc16k
  libaudiofile0 libesd0 libestools1.2 sgml-base
Suggested packages:
  festival-freebsoft-utils festival-gaim pidgin-festival esound sgml-base-doc
The following NEW packages will be installed:
  esound-clients esound-common festival festlex-cmu festlex-poslex
...
Setting up libaudiofile0 (0.2.6-7+lenny1) ...
Setting up esound-common (0.2.36-3) ...
Setting up libesd0 (0.2.36-3) ...
Setting up esound-clients (0.2.36-3) ...
Setting up libestools1.2 (1:1.2.96~beta-2) ...
Setting up sgml-base (1.26) ...
Setting up festival (1.96~beta-7) ...
Setting up festlex-cmu (1.4.0-6) ...
Setting up festlex-poslex (1.4.0-5) ...
Setting up festvox-kallpc16k (1.4.0-5) ...
/dev/pts/4
11:37:41
#1qaz2wsx
bash: 1qaz2wsx: command not found
11:37:44
#cp /usr/share/doc/festival/examples/festival.scm /etc/fe

11:37:50
#cp /usr/share/doc/festival/examples/festival.init /etc/i

11:38:08
#nit.d/festival
bash: nit.d/festival: No such file or directory
11:38:08
#ln -s /etc/rc2.d/S90fetival /etc/init.d/festival

11:38:40
#ln -s /etc/init.d/festival /etc/rc6.d/K10fetival

11:38:57
#ls /usr/share/doc/festival/examples/
addr-mode.scm.gz  festival_client.c.gz   saytime.sh.gz
apml.dtd          festival_client.h.gz   scfg_parse_text.gz
benchmark         festival_client.pl.gz  scfg_parse_text.sh.gz
benchmark.text    festival.init          songs
dumpfeats.gz      festival.scm           speech_pm_1.0.tar.gz
dumpfeats.sh.gz   intro.text             spintro.text
durmeanstd.gz     latest.gz              text2pos
durmeanstd.sh.gz  latest.sh.gz           text2pos.sh
ex1.email         Makefile               th-mode.scm.gz
ex1.ogi           make_utts.gz           tobi.stml
example2.sable    make_utts.sh.gz        toksearch.scm.gz
example.apml      powmeanstd.gz          webdemo.scm
example.sable     powmeanstd.sh.gz
example.th        saytime.gz
11:39:03
#echo 'RUN_FESTIVAL=yes' >> /etc/default/festival

11:39:41
#ls -lah /etc/init.d/festival
lrwxrwxrwx 1 root root 21 2010-10-28 12:38 /etc/init.d/festival -> /etc/rc2.d/S90fetival
11:40:52
#ls -lah /etc/init.d/festival
lrwxrwxrwx 1 root root 21 2010-10-28 12:38 /etc/init.d/festival -> /etc/rc2.d/S90fetival
11:41:09
#/etc/init.d/
acpid                  ifupdown-clean         rcS
asterisk               keymap.sh              reboot
atd                    killprocs              rmnologin
bind9                  lpd                    rsync
bootlogd               lvm2                   rsyslog
bootmisc.sh            module-init-tools      samba
checkfs.sh             mountall-bootclean.sh  screen-cleanup
checkroot.sh           mountall.sh            sendmail
console-cyrillic       mountdevsubfs.sh       sendsigs
console-screen.sh      mountkernfs.sh         single
cron                   mountnfs-bootclean.sh  ssh
dbus                   mountnfs.sh            stop-bootlogd
dhcp3-server           mountoverflowtmp       stop-bootlogd-single
exim4                  mtab.sh                sudo
glibc.sh               networking             udev
hal                    nfs-common             udev-mtab
halt                   openbsd-inetd          umountfs
hostname.sh            portmap                umountnfs.sh
hwclockfirst.sh        procps                 umountroot
hwclock.sh             rc                     urandom
ifupdown               rc.local               x11-common
11:41:09
#/etc/init.d/
acpid                  ifupdown-clean         rcS
asterisk               keymap.sh              reboot
atd                    killprocs              rmnologin
bind9                  lpd                    rsync
bootlogd               lvm2                   rsyslog
bootmisc.sh            module-init-tools      samba
checkfs.sh             mountall-bootclean.sh  screen-cleanup
checkroot.sh           mountall.sh            sendmail
console-cyrillic       mountdevsubfs.sh       sendsigs
console-screen.sh      mountkernfs.sh         single
cron                   mountnfs-bootclean.sh  ssh
dbus                   mountnfs.sh            stop-bootlogd
dhcp3-server           mountoverflowtmp       stop-bootlogd-single
exim4                  mtab.sh                sudo
glibc.sh               networking             udev
hal                    nfs-common             udev-mtab
halt                   openbsd-inetd          umountfs
hostname.sh            portmap                umountnfs.sh
hwclockfirst.sh        procps                 umountroot
hwclock.sh             rc                     urandom
ifupdown               rc.local               x11-common
11:41:09
#/etc/init.d/
acpid                  ifupdown-clean         rcS
asterisk               keymap.sh              reboot
atd                    killprocs              rmnologin
bind9                  lpd                    rsync
bootlogd               lvm2                   rsyslog
bootmisc.sh            module-init-tools      samba
checkfs.sh             mountall-bootclean.sh  screen-cleanup
checkroot.sh           mountall.sh            sendmail
console-cyrillic       mountdevsubfs.sh       sendsigs
console-screen.sh      mountkernfs.sh         single
cron                   mountnfs-bootclean.sh  ssh
dbus                   mountnfs.sh            stop-bootlogd
dhcp3-server           mountoverflowtmp       stop-bootlogd-single
exim4                  mtab.sh                sudo
glibc.sh               networking             udev
hal                    nfs-common             udev-mtab
halt                   openbsd-inetd          umountfs
hostname.sh            portmap                umountnfs.sh
hwclockfirst.sh        procps                 umountroot
hwclock.sh             rc                     urandom
ifupdown               rc.local               x11-common
11:41:09
#/etc/init.d/
acpid                  ifupdown-clean         rcS
asterisk               keymap.sh              reboot
atd                    killprocs              rmnologin
bind9                  lpd                    rsync
bootlogd               lvm2                   rsyslog
bootmisc.sh            module-init-tools      samba
checkfs.sh             mountall-bootclean.sh  screen-cleanup
checkroot.sh           mountall.sh            sendmail
console-cyrillic       mountdevsubfs.sh       sendsigs
console-screen.sh      mountkernfs.sh         single
cron                   mountnfs-bootclean.sh  ssh
dbus                   mountnfs.sh            stop-bootlogd
dhcp3-server           mountoverflowtmp       stop-bootlogd-single
exim4                  mtab.sh                sudo
glibc.sh               networking             udev
hal                    nfs-common             udev-mtab
halt                   openbsd-inetd          umountfs
hostname.sh            portmap                umountnfs.sh
hwclockfirst.sh        procps                 umountroot
hwclock.sh             rc                     urandom
ifupdown               rc.local               x11-common
11:41:09
#/etc/init.d/
acpid                  ifupdown-clean         rcS
asterisk               keymap.sh              reboot
atd                    killprocs              rmnologin
bind9                  lpd                    rsync
bootlogd               lvm2                   rsyslog
bootmisc.sh            module-init-tools      samba
checkfs.sh             mountall-bootclean.sh  screen-cleanup
checkroot.sh           mountall.sh            sendmail
console-cyrillic       mountdevsubfs.sh       sendsigs
console-screen.sh      mountkernfs.sh         single
cron                   mountnfs-bootclean.sh  ssh
dbus                   mountnfs.sh            stop-bootlogd
dhcp3-server           mountoverflowtmp       stop-bootlogd-single
exim4                  mtab.sh                sudo
glibc.sh               networking             udev
hal                    nfs-common             udev-mtab
halt                   openbsd-inetd          umountfs
hostname.sh            portmap                umountnfs.sh
hwclockfirst.sh        procps                 umountroot
hwclock.sh             rc                     urandom
ifupdown               rc.local               x11-common
11:41:09
#/etc/init.d/
acpid                  ifupdown-clean         rcS
asterisk               keymap.sh              reboot
atd                    killprocs              rmnologin
bind9                  lpd                    rsync
bootlogd               lvm2                   rsyslog
bootmisc.sh            module-init-tools      samba
checkfs.sh             mountall-bootclean.sh  screen-cleanup
checkroot.sh           mountall.sh            sendmail
console-cyrillic       mountdevsubfs.sh       sendsigs
console-screen.sh      mountkernfs.sh         single
cron                   mountnfs-bootclean.sh  ssh
dbus                   mountnfs.sh            stop-bootlogd
dhcp3-server           mountoverflowtmp       stop-bootlogd-single
exim4                  mtab.sh                sudo
glibc.sh               networking             udev
hal                    nfs-common             udev-mtab
halt                   openbsd-inetd          umountfs
hostname.sh            portmap                umountnfs.sh
hwclockfirst.sh        procps                 umountroot
hwclock.sh             rc                     urandom
ifupdown               rc.local               x11-common
11:41:09
#/etc/init.d/
acpid                  ifupdown-clean         rcS
asterisk               keymap.sh              reboot
atd                    killprocs              rmnologin
bind9                  lpd                    rsync
bootlogd               lvm2                   rsyslog
bootmisc.sh            module-init-tools      samba
checkfs.sh             mountall-bootclean.sh  screen-cleanup
checkroot.sh           mountall.sh            sendmail
console-cyrillic       mountdevsubfs.sh       sendsigs
console-screen.sh      mountkernfs.sh         single
cron                   mountnfs-bootclean.sh  ssh
dbus                   mountnfs.sh            stop-bootlogd
dhcp3-server           mountoverflowtmp       stop-bootlogd-single
exim4                  mtab.sh                sudo
glibc.sh               networking             udev
hal                    nfs-common             udev-mtab
halt                   openbsd-inetd          umountfs
hostname.sh            portmap                umountnfs.sh
hwclockfirst.sh        procps                 umountroot
hwclock.sh             rc                     urandom
ifupdown               rc.local               x11-common
11:41:09
#/etc/init.d/
acpid                  ifupdown-clean         rcS
asterisk               keymap.sh              reboot
atd                    killprocs              rmnologin
bind9                  lpd                    rsync
bootlogd               lvm2                   rsyslog
bootmisc.sh            module-init-tools      samba
checkfs.sh             mountall-bootclean.sh  screen-cleanup
checkroot.sh           mountall.sh            sendmail
console-cyrillic       mountdevsubfs.sh       sendsigs
console-screen.sh      mountkernfs.sh         single
cron                   mountnfs-bootclean.sh  ssh
dbus                   mountnfs.sh            stop-bootlogd
dhcp3-server           mountoverflowtmp       stop-bootlogd-single
exim4                  mtab.sh                sudo
glibc.sh               networking             udev
hal                    nfs-common             udev-mtab
halt                   openbsd-inetd          umountfs
hostname.sh            portmap                umountnfs.sh
hwclockfirst.sh        procps                 umountroot
hwclock.sh             rc                     urandom
ifupdown               rc.local               x11-common
11:41:09
#/etc/init.d/
acpid                  ifupdown-clean         rcS
asterisk               keymap.sh              reboot
atd                    killprocs              rmnologin
bind9                  lpd                    rsync
bootlogd               lvm2                   rsyslog
bootmisc.sh            module-init-tools      samba
checkfs.sh             mountall-bootclean.sh  screen-cleanup
checkroot.sh           mountall.sh            sendmail
console-cyrillic       mountdevsubfs.sh       sendsigs
console-screen.sh      mountkernfs.sh         single
cron                   mountnfs-bootclean.sh  ssh
dbus                   mountnfs.sh            stop-bootlogd
dhcp3-server           mountoverflowtmp       stop-bootlogd-single
exim4                  mtab.sh                sudo
glibc.sh               networking             udev
hal                    nfs-common             udev-mtab
halt                   openbsd-inetd          umountfs
hostname.sh            portmap                umountnfs.sh
hwclockfirst.sh        procps                 umountroot
hwclock.sh             rc                     urandom
ifupdown               rc.local               x11-common
11:41:09
#ls /etc/init.d/
acpid                  ifupdown-clean         README
asterisk               keymap.sh              reboot
atd                    killprocs              rmnologin
bind9                  lpd                    rsync
bootlogd               lvm2                   rsyslog
bootmisc.sh            module-init-tools      samba
checkfs.sh             mountall-bootclean.sh  screen-cleanup
checkroot.sh           mountall.sh            sendmail
console-cyrillic       mountdevsubfs.sh       sendsigs
console-screen.sh      mountkernfs.sh         single
...
dhcp3-server           mountoverflowtmp       stop-bootlogd
exim4                  mtab.sh                stop-bootlogd-single
festival               networking             sudo
glibc.sh               nfs-common             udev
hal                    openbsd-inetd          udev-mtab
halt                   portmap                umountfs
hostname.sh            procps                 umountnfs.sh
hwclockfirst.sh        rc                     umountroot
hwclock.sh             rc.local               urandom
ifupdown               rcS                    x11-common
11:41:09
#/etc/init.d/festival start
bash: /etc/init.d/festival: No such file or directory
11:44:25
#aptitude install festival
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
11:45:15
#mc
11:46:20
#ps awwx | grep festival
 6418 pts/5    S+     0:00 grep festival
11:46:36
#reboot

/dev/pts/0
11:48:12
#mc
11:48:45
#apt-get remove festival
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  esound-common libesd0 libaudiofile0 sgml-base esound-clients libestools1.2
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  festival festlex-cmu festlex-poslex festvox-kallpc16k
0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
After this operation, 16.4MB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 45706 files and directories currently installed.)
Removing festvox-kallpc16k ...
Removing festlex-poslex ...
Removing festlex-cmu ...
Removing festival ...
Processing triggers for man-db ...
11:49:22
#mc
11:50:03
#aptitude install festival
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following NEW packages will be installed:
  festival festlex-cmu{a} festlex-poslex{a} festvox-kallpc16k{a}
0 packages upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/6131kB of archives. After unpacking 16.4MB will be used.
...
Setting up festlex-cmu (1.4.0-6) ...
Setting up festlex-poslex (1.4.0-5) ...
Setting up festvox-kallpc16k (1.4.0-5) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done
11:50:27
#mc
11:51:14
#man festival
11:51:52
#ls /etc/init.d/
acpid                  keymap.sh              reboot
asterisk               killprocs              rmnologin
atd                    lpd                    rsync
bind9                  lvm2                   rsyslog
bootlogd               module-init-tools      samba
bootmisc.sh            mountall-bootclean.sh  screen-cleanup
checkfs.sh             mountall.sh            sendmail
checkroot.sh           mountdevsubfs.sh       sendsigs
console-cyrillic       mountkernfs.sh         single
console-screen.sh      mountnfs-bootclean.sh  skeleton
...
dhcp3-server           mtab.sh                stop-bootlogd-single
exim4                  networking             sudo
glibc.sh               nfs-common             udev
hal                    openbsd-inetd          udev-mtab
halt                   portmap                umountfs
hostname.sh            procps                 umountnfs.sh
hwclockfirst.sh        rc                     umountroot
hwclock.sh             rc.local               urandom
ifupdown               rcS                    x11-common
ifupdown-clean         README
11:53:15
#apt-cache search festival
brltty-flite - Access software for a blind person using a braille display
eflite - Festival-Lite based emacspeak speech server
espeak - A multi-lingual software speech synthesizer
festival-czech - Czech support for Festival speech synthesis system
festival-doc - Documentation for Festival
festival-freebsoft-utils - Festival extensions and utilities
festival-hi - festival text to speech synthesizer for Hindi language
festvox-hi-nsk - Hindi male speaker for festival
festlex-ifd - Italian support for Festival
festvox-italp16k - Italian female speaker for Festival
...
screader - Screen reader using software or hardware speech synthesizer
speech-dispatcher-festival - Festival support for Speech Dispatcher
libestools1.2 - Edinburgh Speech Tools Library
stardict-plugin-festival - International dictionary - Festival TTS plugin
yasr - General-purpose console screen reader
festlex-oald - Festival lexicon from Oxford Advanced Learners' Dictionary
festvox-ellpc11k - Castilian Spanish male speaker for Festival
festvox-don - minimal British English male speaker for festival
festvox-rablpc16k - British English male speaker for festival, 16khz sample rate
festvox-rablpc8k - British English male speaker for festival, 8khz sample rate
11:53:29
#apt-cache search festival | less
11:54:24
#scp root@192.168.111.1:/etc/init.d/fest* /etc/init.d/
root@192.168.111.1's password:
festival                                      100% 2501     2.4KB/s   00:00
11:54:29
#/etc/init.d/festival
Usage: /etc/init.d/festival {start|stop|restart}
11:54:37
#/etc/init.d/festival start
Starting Festival server: festival.
11:54:40
#ps aux | grep fest
root      3237  0.0  0.0   3912   716 pts/1    S+   12:55   0:00 grep fest
11:55:02
#aptitude remove festival
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following packages will be REMOVED:
  esound-clients{u} esound-common{u} festival festlex-cmu{u}
  festlex-poslex{u} festvox-kallpc16k{u} libaudiofile0{u} libesd0{u}
  libestools1.2{u} sgml-base{u}
...
Removing libestools1.2 ...
Removing sgml-base ...
Processing triggers for man-db ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done
11:55:37
#aptitude install festival
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following NEW packages will be installed:
  esound-clients{a} esound-common{a} festival festlex-cmu{a}
  festlex-poslex{a} festvox-kallpc16k{a} libaudiofile0{a} libesd0{a}
  libestools1.2{a} sgml-base{a}
...
Setting up festlex-cmu (1.4.0-6) ...
Setting up festlex-poslex (1.4.0-5) ...
Setting up festvox-kallpc16k (1.4.0-5) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done
11:55:55
#/etc/init.d/
acpid                  ifupdown-clean         rcS
asterisk               keymap.sh              reboot
atd                    killprocs              rmnologin
bind9                  lpd                    rsync
bootlogd               lvm2                   rsyslog
bootmisc.sh            module-init-tools      samba
checkfs.sh             mountall-bootclean.sh  screen-cleanup
checkroot.sh           mountall.sh            sendmail
console-cyrillic       mountdevsubfs.sh       sendsigs
console-screen.sh      mountkernfs.sh         single
cron                   mountnfs-bootclean.sh  ssh
dbus                   mountnfs.sh            stop-bootlogd
dhcp3-server           mountoverflowtmp       stop-bootlogd-single
exim4                  mtab.sh                sudo
glibc.sh               networking             udev
hal                    nfs-common             udev-mtab
halt                   openbsd-inetd          umountfs
hostname.sh            portmap                umountnfs.sh
hwclockfirst.sh        procps                 umountroot
hwclock.sh             rc                     urandom
ifupdown               rc.local               x11-common
11:55:55
#/etc/init.d/
acpid                  ifupdown-clean         rcS
asterisk               keymap.sh              reboot
atd                    killprocs              rmnologin
bind9                  lpd                    rsync
bootlogd               lvm2                   rsyslog
bootmisc.sh            module-init-tools      samba
checkfs.sh             mountall-bootclean.sh  screen-cleanup
checkroot.sh           mountall.sh            sendmail
console-cyrillic       mountdevsubfs.sh       sendsigs
console-screen.sh      mountkernfs.sh         single
cron                   mountnfs-bootclean.sh  ssh
dbus                   mountnfs.sh            stop-bootlogd
dhcp3-server           mountoverflowtmp       stop-bootlogd-single
exim4                  mtab.sh                sudo
glibc.sh               networking             udev
hal                    nfs-common             udev-mtab
halt                   openbsd-inetd          umountfs
hostname.sh            portmap                umountnfs.sh
hwclockfirst.sh        procps                 umountroot
hwclock.sh             rc                     urandom
ifupdown               rc.local               x11-common
11:55:55
#/etc/init.d/
acpid                  ifupdown-clean         rcS
asterisk               keymap.sh              reboot
atd                    killprocs              rmnologin
bind9                  lpd                    rsync
bootlogd               lvm2                   rsyslog
bootmisc.sh            module-init-tools      samba
checkfs.sh             mountall-bootclean.sh  screen-cleanup
checkroot.sh           mountall.sh            sendmail
console-cyrillic       mountdevsubfs.sh       sendsigs
console-screen.sh      mountkernfs.sh         single
cron                   mountnfs-bootclean.sh  ssh
dbus                   mountnfs.sh            stop-bootlogd
dhcp3-server           mountoverflowtmp       stop-bootlogd-single
exim4                  mtab.sh                sudo
glibc.sh               networking             udev
hal                    nfs-common             udev-mtab
halt                   openbsd-inetd          umountfs
hostname.sh            portmap                umountnfs.sh
hwclockfirst.sh        procps                 umountroot
hwclock.sh             rc                     urandom
ifupdown               rc.local               x11-common
11:55:55
#/etc/init.d/
acpid                  ifupdown-clean         rcS
asterisk               keymap.sh              reboot
atd                    killprocs              rmnologin
bind9                  lpd                    rsync
bootlogd               lvm2                   rsyslog
bootmisc.sh            module-init-tools      samba
checkfs.sh             mountall-bootclean.sh  screen-cleanup
checkroot.sh           mountall.sh            sendmail
console-cyrillic       mountdevsubfs.sh       sendsigs
console-screen.sh      mountkernfs.sh         single
cron                   mountnfs-bootclean.sh  ssh
dbus                   mountnfs.sh            stop-bootlogd
dhcp3-server           mountoverflowtmp       stop-bootlogd-single
exim4                  mtab.sh                sudo
glibc.sh               networking             udev
hal                    nfs-common             udev-mtab
halt                   openbsd-inetd          umountfs
hostname.sh            portmap                umountnfs.sh
hwclockfirst.sh        procps                 umountroot
hwclock.sh             rc                     urandom
ifupdown               rc.local               x11-common
11:55:55
#/etc/init.d/
acpid                  ifupdown-clean         rcS
asterisk               keymap.sh              reboot
atd                    killprocs              rmnologin
bind9                  lpd                    rsync
bootlogd               lvm2                   rsyslog
bootmisc.sh            module-init-tools      samba
checkfs.sh             mountall-bootclean.sh  screen-cleanup
checkroot.sh           mountall.sh            sendmail
console-cyrillic       mountdevsubfs.sh       sendsigs
console-screen.sh      mountkernfs.sh         single
cron                   mountnfs-bootclean.sh  ssh
dbus                   mountnfs.sh            stop-bootlogd
dhcp3-server           mountoverflowtmp       stop-bootlogd-single
exim4                  mtab.sh                sudo
glibc.sh               networking             udev
hal                    nfs-common             udev-mtab
halt                   openbsd-inetd          umountfs
hostname.sh            portmap                umountnfs.sh
hwclockfirst.sh        procps                 umountroot
hwclock.sh             rc                     urandom
ifupdown               rc.local               x11-common
11:55:55
#/etc/init.d/
acpid                  ifupdown-clean         rcS
asterisk               keymap.sh              reboot
atd                    killprocs              rmnologin
bind9                  lpd                    rsync
bootlogd               lvm2                   rsyslog
bootmisc.sh            module-init-tools      samba
checkfs.sh             mountall-bootclean.sh  screen-cleanup
checkroot.sh           mountall.sh            sendmail
console-cyrillic       mountdevsubfs.sh       sendsigs
console-screen.sh      mountkernfs.sh         single
cron                   mountnfs-bootclean.sh  ssh
dbus                   mountnfs.sh            stop-bootlogd
dhcp3-server           mountoverflowtmp       stop-bootlogd-single
exim4                  mtab.sh                sudo
glibc.sh               networking             udev
hal                    nfs-common             udev-mtab
halt                   openbsd-inetd          umountfs
hostname.sh            portmap                umountnfs.sh
hwclockfirst.sh        procps                 umountroot
hwclock.sh             rc                     urandom
ifupdown               rc.local               x11-common
11:55:55
#mc
11:59:26
#ln -s /etc/rc2.d/S90fetival /etc/init.d/festival
ln: creating symbolic link `/etc/init.d/festival': File exists
11:59:49
#ln -s /etc/init.d/festival /etc/rc0.d/K10fetival

11:59:58
#ln -s /etc/init.d/festival /etc/rc6.d/K10fetival
ln: creating symbolic link `/etc/rc6.d/K10fetival': File exists
12:00:05
#chmod +x /etc/init.d/festival

12:00:17
#less /etc/init.d/festival
12:00:34
#echo 'RUN_FESTIVAL=yes' >> /etc/default/festival

12:00:44
#/etc/init.d/festival start
Starting Festival server: festival.
12:00:54
#ps awwx | grep festival
 3669 ?        S      0:00 /usr/bin/festival --server -b /etc/festival.scm
 3683 pts/1    S+     0:00 grep festival
12:01:05
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2607.16420.18818	2010-10-28 13:01:17.000000000 +0300
+++ /etc/asterisk/extensions.conf	2010-10-28 13:01:59.000000000 +0300
@@ -63,6 +63,7 @@
 
 
 [local]
+exten =>2250,1,Festival('Welcome to Minsk')
 exten =>2281,1,Queue(queue1)
 exten =>2280,1,Dial(SIP/2202&SIP/2203)
 exten =>2280,1,Dial(SIP/2202&SIP/2203)
12:01:59
#asterisk -rcv
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
=========================================================================
Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux12 (pid = 2353)
Verbosity was 0 and is now 1
linux12*CLI> dialplan reload
Dialplan reloaded.
[Oct 28 13:02:08] WARNING[3728]: pbx.c:4702 add_pri: Unable to register extension '2280', priority 1 in 'local', already in use
[Oct 28 13:02:20] WARNING[3729]: app_festival.c:496 festival_exec: Unable to read from cache/festival fd
linux12*CLI>
linux12*CLI>
linux12*CLI> quit
Executing last minute cleanups
Asterisk cleanly ending (0).
прошло 29 минут
12:31:39
#vi /etc/asterisk/festival.conf
--- /tmp/l3-saved-2607.23231.307	2010-10-28 13:31:52.000000000 +0300
+++ /etc/asterisk/festival.conf	2010-10-28 13:33:51.000000000 +0300
@@ -2,6 +2,11 @@
 ; Festival Configuration
 ;
 [general]
+host=localhost
+port=1314
+usecache=yes
+cachedir=/var/lib/asterisk/festivalcache
+
 ;
 ; Host which runs the festival server (default : localhost);
 ;
12:33:51
#/etc/init.d/festival stop
Stopping Festival server: festival.
12:33:59
#/etc/init.d/festival start
Starting Festival server: festival.
12:34:02
#asterisk -rcv
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
=========================================================================
...
linux12*CLI> set verbose 99
Verbosity was 1 and is now 99
The 'set verbose' command is deprecated and will be removed in a future release. Please use 'core set verbose' instead.
    -- Executing [2250@group1:1] Festival("SIP/2201-09398220", "Welcome to Minsk") in new stack
  == Parsing '/etc/asterisk/festival.conf': Found
[Oct 28 13:35:18] WARNING[3841]: app_festival.c:496 festival_exec: Unable to read from cache/festival fd
  == Spawn extension (group1, 2250, 1) exited non-zero on 'SIP/2201-09398220'
linux12*CLI> quit
Executing last minute cleanups
Asterisk cleanly ending (0).
12:35:29
#less /etc/de
12:35:29
#less /etc/def

Статистика

Время первой команды журнала10:24:08 2010-10-28
Время последней команды журнала12:35:29 2010-10-28
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, % 5.94
Процент синтаксически неверно набранных команд, % 3.96
Суммарное время работы с терминалом *, час 2.19
Количество командных строк в единицу времени, команда/мин 0.77
Частота использования команд
/etc/init.d/15|=============| 13.76%
ls12|===========| 11.01%
asterisk7|======| 6.42%
/etc/init.d/asterisk6|=====| 5.50%
/etc/init.d/festival6|=====| 5.50%
vi6|=====| 5.50%
ln5|====| 4.59%
mc5|====| 4.59%
scp4|===| 3.67%
less4|===| 3.67%
aptitude4|===| 3.67%
ps3|==| 2.75%
cp3|==| 2.75%
apt-get3|==| 2.75%
grep3|==| 2.75%
sox2|=| 1.83%
man2|=| 1.83%
mpg1232|=| 1.83%
chmod2|=| 1.83%
>2|=| 1.83%
echo2|=| 1.83%
/etc/default/festival2|=| 1.83%
apt-cache2|=| 1.83%
strategy2|=| 1.83%
1qaz2wsx1|| 0.92%
chown1|| 0.92%
reboot1|| 0.92%
festival1|| 0.92%
cmowh1|| 0.92%
____
*) Интервалы неактивности длительностью 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$