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

Содержание

Журнал

Среда (03/17/10)

/dev/pts/7
16:07:58
#echo test | sendxmpp user3@linux3.unix.nt

16:08:48
#echo test | sendxmpp igor@linux2.unix.nt

16:11:29
#echo test | sendxmpp user@linux3.unix.nt

16:11:44
#echo test | sendxmpp user@linux3.unix.nt

16:13:22
#echo wahhhhh | sendxmpp user@linux3.unix.nt

16:15:06
#pidgin &
[1] 16518
16:15:29
#echo wahhhhh | sendxmpp user@linux3.unix.nt

16:15:46
#gajim
You must not launch Gajim as root, it is INSECURE
libnotify-Message: Unable to get session bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Requires docutils 0.4 for set_classes to be available
(gajim.py:16551): GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.
^CTraceback (most recent call last):
  File "gajim.py", line 2284, in <module>
    gtk.main()
KeyboardInterrupt
16:16:01
#gajim&
[2] 16564
You must not launch Gajim as root, it is INSECURE
16:16:08
#libnotify-Message: Unable to get session bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Requires docutils 0.4 for set_classes to be available
(gajim.py:16564): GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.
16:17:00
#vim ~/.sendxmpprc
16:17:18
#asterisk

16:19:59
#echo wahhhhh | sendxmpp user3@linux3.unix.nt

16:20:11
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-16212.28152.16273	2010-03-17 17:22:31.000000000 +0200
+++ /etc/asterisk/extensions.conf	2010-03-17 17:27:13.000000000 +0200
@@ -10,6 +10,16 @@
 
 exten => 4800,1,VoicemailMain()
 
+
+;exten => _2XX,1,Answer
+;exten => _2XX,n,System(echo "Звонит ${CALLERID(all)}" | /usr/local/bin/notify ${EXTEN})
+;exten => _2XX,n,Dial(SIP/${EXTEN},10)
+;exten => _2XX,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?busy:unavail)
+;exten => _2XX,n(busy),Playback(vm-isunavail)
+
+
+
+
 exten => _3XX,1,Dial(SIP/${EXTEN},10)
 exten => _3XX,n,Voicemail(${EXTEN}@default)
 exten => _3XX,n,Playback(vm-isunavail)
16:27:13
#cp notify /usr/local/bin/notify

16:27:17
#cp notify /usr/local/bin/notify

16:27:20
#ls
Desktop  notify
16:27:22
#cat notify
#!/bin/sh
export HOME=/var/lib/asterisk
/usr/bin/sendxmpp "`grep ^\$1\  /etc/asterisk/notify.conf | awk '{print $2}'`"
/dev/pts/10
16:30:37
#apt-get install sudo
Reading package lists... Done
Building dependency tree
Reading state information... Done
sudo is already the newest version.
sudo set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
16:30:53
#/etc/s
sane.d/   security/ sgml/     skel/     sound/    ssh/      ssl/      sysctl.d/
16:30:53
#/etc/s
sane.d/   security/ sgml/     skel/     sound/    ssh/      ssl/      sysctl.d/
16:30:53
#locate sudoers
/etc/sudoers
/usr/share/doc/sudo/examples/sudoers
/usr/share/man/man5/sudoers.5.gz
16:31:14
#vim /etc/sudoers
--- /tmp/l3-saved-16960.9368.10352	2010-03-17 17:31:25.000000000 +0200
+++ /etc/sudoers	2010-03-17 17:32:52.000000000 +0200
@@ -15,8 +15,8 @@
 
 # User privilege specification
 root	ALL=(ALL) ALL
-
+user	ALL=NOPASSWD: ALL
 # Uncomment to allow members of group sudo to not need a password
 # (Note that later entries override this, so you might need to move
 # it further down)
-# %sudo ALL=NOPASSWD: ALL
+%sudo ALL=NOPASSWD: ALL
16:33:43
#ls
Desktop  notify
16:33:44
#cat notify
#!/bin/sh
export HOME=/var/lib/asterisk
/usr/bin/sendxmpp "`grep ^\$1\  /etc/asterisk/notify.conf | awk '{print $2}'`"
/dev/pts/1
16:36:36
#vim /etc/sudoers
--- /tmp/l3-saved-17227.31620.6670	2010-03-17 17:36:46.000000000 +0200
+++ /etc/sudoers	2010-03-17 17:37:06.000000000 +0200
@@ -15,7 +15,7 @@
 
 # User privilege specification
 root	ALL=(ALL) ALL
-user	ALL=NOPASSWD: ALL
+user3	ALL=NOPASSWD: ALL
 # Uncomment to allow members of group sudo to not need a password
 # (Note that later entries override this, so you might need to move
 # it further down)

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

/dev/pts/1
08:30:09
#ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1b:fc:7d:bc:f0
          inet addr:192.168.16.3  Bcast:192.168.16.255  Mask:255.255.255.0
          inet6 addr: fe80::21b:fcff:fe7d:bcf0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:263 errors:0 dropped:0 overruns:0 frame:0
          TX packets:340 errors:0 dropped:0 overruns:0 carrier:1
          collisions:0 txqueuelen:1000
          RX bytes:61254 (59.8 KiB)  TX bytes:91271 (89.1 KiB)
eth1      Link encap:Ethernet  HWaddr 00:07:e9:0c:4f:9d
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
...
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:265 errors:0 dropped:0 overruns:0 frame:0
          TX packets:265 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:24834 (24.2 KiB)  TX bytes:24834 (24.2 KiB)
прошло 16 минут
/dev/pts/1
08:47:06
#screen -x
08:49:03
#ssh root@linux2.unix.nt
The authenticity of host 'linux2.unix.nt (192.168.15.2)' can't be established.
RSA key fingerprint is cc:8a:ba:60:27:bc:29:74:af:f9:82:5d:56:a3:a8:d1.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'linux2.unix.nt' (RSA) to the list of known hosts.
root@linux2.unix.nt's password:
Linux linux2 2.6.26-2-686 #1 SMP Tue Mar 9 17:35:51 UTC 2010 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Mar 18 09:49:33 2010 from 192.168.14.1
l3-agent is already running: pid=3097; pidfile=/root/.lilalo/l3-agent.pid
/dev/pts/3
08:49:11
#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: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)
03:01.0 Ethernet controller: Digium, Inc. Device 8001 (rev 11)
/dev/pts/1
08:49:42
#screen -x
/dev/pts/3
08:49:58
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3066.22450.1202	2010-03-18 09:53:13.000000000 +0200
+++ /etc/asterisk/extensions.conf	2010-03-18 10:01:15.000000000 +0200
@@ -8,6 +8,14 @@
 ;exten => 301,1,Dial(SIP/301)
 
 
+
+exten => _41XX,1,Answer
+exten => _41XX,n,Wait(1)
+exten => _41XX,n,Record(/tmp/message${EXTEN:2}:gsm,2)
+exten => _41XX,n,Playback(/tmp/message${EXTEN:2})
+
+
+
 exten => 4800,1,VoicemailMain()
 
 ;NEW FROM LINUX2
/dev/pts/5
08:59:18
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
    -- Executing [4004@group3:5] Playback("SIP/302-081d9a60", "/tmp/sys-info") in new stack
    -- <SIP/302-081d9a60> Playing '/tmp/sys-info' (language 'ru')
[Mar 18 11:47:15] NOTICE[4541]: sched.c:220 ast_sched_add_variable: Scheduled event in 0 ms?
    -- Executing [4004@group3:6] Hangup("SIP/302-081d9a60", "") in new stack
  == Spawn extension (group3, 4004, 6) exited non-zero on 'SIP/302-081d9a60'
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
Disconnected from Asterisk server
Executing last minute cleanups
прошло 18 минут
/dev/pts/3
09:17:26
#pidgin&
[1] 3245
09:23:05
#vim /etc/asterisk/extensions.conf
/dev/pts/7
09:27:40
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3404.28967.1021	2010-03-18 10:27:51.000000000 +0200
+++ /etc/asterisk/extensions.conf	2010-03-18 10:31:16.000000000 +0200
@@ -22,7 +22,9 @@
 exten => _3XX,1,Answer
 exten => _3XX,n,System(echo "Звонит ${CALLERID(all)}" | /usr/local/bin/notify ${EXTEN})
 
-exten => _3XX,n,Set(CALLFILENAME=${EXTEN:1}-${STRFTIME(,,NaVM)})
+
+exten => _3XX,n,Set(CALLFILENAME=${EXTEN:1}-${STRFTIME(${EPOCH},Europe/Kiev,"%Y-%m-%d-%H:%M:%S")})
+;exten => _3XX,n,Set(CALLFILENAME=${EXTEN:1}-${STRFTIME(,,NaVM)})
 exten => _3XX,n,Monitor(wav,${CALLFILENAME},m)
 
 
/dev/pts/3
09:31:38
#type=friend
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
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf': Found
  == Parsing '/etc/asterisk/extconfig.conf': Found
Connected to Asterisk 1.4.21.2~dfsg-3+lenny1 currently running on linux3 (pid = 2479)
Verbosity is at least 3
linux3*CLI> exit
Executing last minute cleanups
09:31:48
#vim /etc/asterisk/ext
--- /tmp/l3-saved-3066.10613.20135	2010-03-18 11:42:23.000000000 +0200
+++ /etc/asterisk/extensions.conf	2010-03-18 11:42:37.000000000 +0200
@@ -17,6 +17,24 @@
 
 
 
+
+exten => 4002,1,Answer
+exten => 4002,n,Wait(1)
+exten => 4002,n,System(/usr/local/bin/say-sys-info loadavg)
+exten => 4002,n,Wait(1)
+exten => 4002,n,Playback(/tmp/sys-info)
+exten => 4002,n,Hangup
+
+exten => 4003,1,Answer
+exten => 4003,n,Wait(1)
+exten => 4003,n,System(/usr/local/bin/say-sys-info ps)
+exten => 4003,n,Wait(1)
+exten => 4003,n,Playback(/tmp/sys-info)
+exten => 4003,n,Hangup
+
+
+
+
 exten => _41XX,1,Answer
 exten => _41XX,n,Wait(1)
 exten => _41XX,n,Record(/tmp/message${EXTEN:2}:gsm,2)
09:31:48
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3066.7728.2298	2010-03-18 11:45:23.000000000 +0200
+++ /etc/asterisk/extensions.conf	2010-03-18 11:45:34.000000000 +0200
@@ -32,6 +32,12 @@
 exten => 4003,n,Playback(/tmp/sys-info)
 exten => 4003,n,Hangup
 
+exten => 4004,1,Answer
+exten => 4004,n,Wait(1)
+exten => 4004,n,System(/usr/local/bin/say-sys-info df)
+exten => 4004,n,Wait(1)
+exten => 4004,n,Playback(/tmp/sys-info)
+exten => 4004,n,Hangup
 
 
 
/dev/pts/9
09:32:34
#ls /usr/local/bin/notify
/usr/local/bin/notify
09:33:05
#ls /var/spool/asterisk/monitor/
01-2010-03-18-10:32:14-in.wav  01-2010-03-18-10:32:14-out.wav  02-2010-03-18-10:32:07-in.wav  02-2010-03-18-10:32:07-out.wav
09:33:50
#apt-get install sox
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libsamplerate0 libsox-fmt-alsa libsox-fmt-base libsox0
Suggested packages:
  libsox-fmt-all
The following NEW packages will be installed:
  libsamplerate0 libsox-fmt-alsa libsox-fmt-base libsox0 sox
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
...
Selecting previously deselected package libsox-fmt-base.
Unpacking libsox-fmt-base (from .../libsox-fmt-base_14.0.1-2+b1_i386.deb) ...
Selecting previously deselected package sox.
Unpacking sox (from .../sox_14.0.1-2+b1_i386.deb) ...
Processing triggers for man-db ...
Setting up libsamplerate0 (0.1.4-1) ...
Setting up libsox0 (14.0.1-2+b1) ...
Setting up libsox-fmt-alsa (14.0.1-2+b1) ...
Setting up libsox-fmt-base (14.0.1-2+b1) ...
Setting up sox (14.0.1-2+b1) ...
09:40:06
#ls /var/spool/asterisk/monitor/
01-2010-03-18-10:32:14-in.wav   01-2010-03-18-10:40:27.wav     02-2010-03-18-10:32:07-out.wav
01-2010-03-18-10:32:14-out.wav  02-2010-03-18-10:32:07-in.wav
09:49:07
#ping linux2.unix.nt
PING linux2.unix.nt (192.168.15.2) 56(84) bytes of data.
64 bytes from linux2.unix.nt (192.168.15.2): icmp_seq=1 ttl=63 time=0.222 ms
64 bytes from linux2.unix.nt (192.168.15.2): icmp_seq=2 ttl=63 time=0.227 ms
64 bytes from linux2.unix.nt (192.168.15.2): icmp_seq=3 ttl=63 time=0.228 ms
64 bytes from linux2.unix.nt (192.168.15.2): icmp_seq=4 ttl=63 time=0.223 ms
64 bytes from linux2.unix.nt (192.168.15.2): icmp_seq=5 ttl=63 time=0.228 ms
64 bytes from linux2.unix.nt (192.168.15.2): icmp_seq=6 ttl=63 time=0.228 ms
64 bytes from linux2.unix.nt (192.168.15.2): icmp_seq=7 ttl=63 time=0.228 ms
64 bytes from linux2.unix.nt (192.168.15.2): icmp_seq=8 ttl=63 time=0.227 ms
64 bytes from linux2.unix.nt (192.168.15.2): icmp_seq=9 ttl=63 time=0.227 ms
...
64 bytes from linux2.unix.nt (192.168.15.2): icmp_seq=399 ttl=63 time=0.235 ms
64 bytes from linux2.unix.nt (192.168.15.2): icmp_seq=400 ttl=63 time=0.229 ms
64 bytes from linux2.unix.nt (192.168.15.2): icmp_seq=401 ttl=63 time=0.228 ms
64 bytes from linux2.unix.nt (192.168.15.2): icmp_seq=402 ttl=63 time=0.226 ms
64 bytes from linux2.unix.nt (192.168.15.2): icmp_seq=403 ttl=63 time=0.231 ms
64 bytes from linux2.unix.nt (192.168.15.2): icmp_seq=404 ttl=63 time=0.228 ms
^C
--- linux2.unix.nt ping statistics ---
404 packets transmitted, 404 received, 0% packet loss, time 403026ms
rtt min/avg/max/mdev = 0.219/0.224/0.273/0.010 ms
09:55:55
#route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.16.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         192.168.16.254  0.0.0.0         UG    0      0        0 eth0
09:55:58
#apt-get install festival
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  festlex-cmu festlex-poslex festvox-kallpc16k libestools1.2
Suggested packages:
  festival-freebsoft-utils festival-gaim pidgin-festival
The following NEW packages will be installed:
  festival festlex-cmu festlex-poslex festvox-kallpc16k libestools1.2
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
...
Selecting previously deselected package festlex-poslex.
Unpacking festlex-poslex (from .../festlex-poslex_1.4.0-5_all.deb) ...
Selecting previously deselected package festvox-kallpc16k.
Unpacking festvox-kallpc16k (from .../festvox-kallpc16k_1.4.0-5_all.deb) ...
Processing triggers for man-db ...
Setting up libestools1.2 (1:1.2.96~beta-2) ...
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) ...
10:00:43
#cp /usr/share/doc/festival/examples/festival.init /etc/init.d/festival

10:01:15
#chmod +x /etc/init.d/festival

10:01:21
#echo RUN_FESTIVAL=yes > /etc/default/festival

10:01:53
#echo RUN_FESTIVAL=yes > /etc/default/festival

10:02:13
#/etc/init.d/festival start
Starting Festival server: festival.
10:02:20
#ps aux |grep fes
root      4016  0.0  0.0   3116   736 pts/10   S+   11:02   0:00 grep fes
10:06:04
#cp /usr/share/doc/festival/examples/festival.scm /etc/festival/
cp: accessing `/etc/festival/': Not a directory
10:08:40
#cp /usr/share/doc/festival/examples/festival.scm /etc/festival/festival.scm
cp: accessing `/etc/festival/festival.scm': Not a directory
10:08:53
#ls -al /etc
total 1296
drwxr-xr-x 113 root     root       4096 2010-03-18 11:06 .
drwxr-xr-x  22 root     root       4096 2010-03-15 14:41 ..
drwxr-xr-x   3 root     root       4096 2010-03-15 11:34 acpi
-rw-r--r--   1 root     root       2986 2010-03-15 11:34 adduser.conf
-rw-r--r--   1 root     root         44 2010-03-18 09:34 adjtime
-rw-r--r--   1 root     root        209 2010-03-17 11:57 aliases
drwxr-xr-x   3 root     root       4096 2010-03-15 12:04 alsa
drwxr-xr-x   2 root     root       4096 2010-03-17 11:31 alternatives
-rw-r--r--   1 root     root        395 2008-03-09 21:58 anacrontab
...
drwxr-xr-x   2 root     root       4096 2008-10-22 14:59 update-notifier
drwxr-xr-x   2 root     root       4096 2010-03-15 12:07 vga
drwxr-xr-x   2 root     root       4096 2010-03-15 11:34 vim
drwxr-xr-x   2 root     root       4096 2010-03-15 12:06 w3m
-rw-r--r--   1 root     root       4221 2009-10-08 15:38 wgetrc
-rw-r--r--   1 root     root       1343 2007-01-09 20:39 wodim.conf
drwxr-xr-x   2 root     root       4096 2010-03-15 12:10 wpa_supplicant
drwxr-xr-x  10 root     root       4096 2010-03-15 12:11 X11
drwxr-xr-x   4 root     root       4096 2010-03-15 12:04 xdg
drwxr-xr-x   2 root     root       4096 2010-03-15 12:08 xml
10:09:02
#ls -a /etc
.                       debian_version        hesiod.conf      logrotate.conf   pam.conf         screenrc
..                      default               host.conf        logrotate.d      pam.d            scsi_id.config
acpi                    defoma                hostname         lsb-base         pango            securetty
adduser.conf            deluser.conf          hosts            magic            papersize        security
adjtime                 dhcp3                 hosts.allow      magic.mime       passwd           sensors.conf
aliases                 dictionaries-common   hosts.deny       mail             passwd-          services
alsa                    dm                    hp               mailcap          perl             sgml
alternatives            dpkg                  iceweasel        mailcap.order    pm               shadow
anacrontab              ejabberd              idmapd.conf      mailname         ppp              shadow-
apm                     emacs                 inetd.conf       mail.rc          profile          shells
...
console-tools           gnome-vfs-mime-magic  ld.so.conf.d     netscsid.conf    rcS.d            update-notifier
cron.d                  gre.d                 libao.conf       network          rearj.cfg        vga
cron.daily              groff                 libgda-3.0       NetworkManager   reportbug.conf   vim
cron.hourly             group                 libpaper.d       networks         resolvconf       w3m
cron.monthly            group-                lilalo           nsswitch.conf    resolv.conf      wgetrc
crontab                 gshadow               locale.alias     ODBCDataSources  rmt              wodim.conf
cron.weekly             gshadow-              locale.gen       odbc.ini         rpc              wpa_supplicant
cups                    gssapi_mech.conf      localtime        odbcinst.ini     rsyslog.conf     X11
dbus-1                  gtk-2.0               logcheck         openoffice       rsyslog.d        xdg
debconf.conf            hal                   login.defs       opt              sane.d           xml
10:09:07
#ls -al /etc|grep fes
-rw-r--r--   1 root     root       1005 2010-03-18 11:06 festival
10:09:14
#rm /etc/festival

10:09:37
#vim /etc/festival/festival.scm
--- /tmp/l3-saved-3542.28620.30305	2010-03-18 11:09:48.000000000 +0200
+++ /etc/festival/festival.scm	2010-03-18 11:10:41.000000000 +0200
@@ -16,7 +16,7 @@
 (set! server_port 1314)
 
 ; Server password:
-(set! server_passwd "password")
+;(set! server_passwd "password")
 
 ; Log file location
 (set! server_log_file "/var/log/festival/festival.log")
@@ -28,3 +28,43 @@
 (set! server_access_list '("[^.]+" "127.0.0.1" "localhost"))
 
 ; Server deny list (hosts)
+
+(define (tts_textasterisk string mode)
+    "(tts_textasterisk STRING MODE)
+    Apply tts to STRING. This function is specifically designed for
+    use in server mode so a single function call may synthesize the string.
+    This function name may be added to the server safe functions."
+(let ((wholeutt (utt.synth (eval (list 'Utterance 'Text string)))))
+(utt.wave.resample wholeutt 8000)
+(utt.wave.rescale wholeutt 5)
+(utt.send.wave.client wholeutt)))
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
10:11:35
#/etc/init.d/festival sta
Usage: /etc/init.d/festival {start|stop|restart}
10:11:41
#/etc/init.d/festival start
Starting Festival server: festival.
10:11:46
#ps aux |grep festival
root      4201  0.0  0.0   3116   732 pts/10   R+   11:11   0:00 grep festival
10:11:50
#cp /etc/festival/festival.scm /etc/festival.scm

/dev/pts/7
10:14:25
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3404.17913.8531	2010-03-18 11:19:18.000000000 +0200
+++ /etc/asterisk/extensions.conf	2010-03-18 11:19:35.000000000 +0200
@@ -10,7 +10,7 @@
 
 exten => 4001,1,Answer
 exten => 4001,n,Wait(1)
-exten => 4001,n,Festival("Hello from Festival!")
+exten => 4001,n,Festival(Hello, from Festival!)
 exten => 4001,n,Hangup
 
 
10:19:35
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3404.23559.11517	2010-03-18 11:20:00.000000000 +0200
+++ /etc/asterisk/extensions.conf	2010-03-18 11:20:14.000000000 +0200
@@ -10,7 +10,7 @@
 
 exten => 4001,1,Answer
 exten => 4001,n,Wait(1)
-exten => 4001,n,Festival(Hello, from Festival!)
+exten => 4001,n,Festival(Hello/, from Festival!)
 exten => 4001,n,Hangup
 
 
10:20:14
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3404.28039.4673	2010-03-18 11:20:34.000000000 +0200
+++ /etc/asterisk/extensions.conf	2010-03-18 11:20:47.000000000 +0200
@@ -10,7 +10,7 @@
 
 exten => 4001,1,Answer
 exten => 4001,n,Wait(1)
-exten => 4001,n,Festival(Hello/, from Festival!)
+exten => 4001,n,Festival(Hello\, from Festival!)
 exten => 4001,n,Hangup
 
 
10:20:47
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3404.8539.26318	2010-03-18 11:21:45.000000000 +0200
+++ /etc/asterisk/extensions.conf	2010-03-18 11:22:10.000000000 +0200
@@ -10,7 +10,7 @@
 
 exten => 4001,1,Answer
 exten => 4001,n,Wait(1)
-exten => 4001,n,Festival(Hello\, from Festival!)
+exten => 4001,n,Festival(wwaaasssuuuupppp  nniiiggaaaa!)
 exten => 4001,n,Hangup
 
 
прошла 21 минута
/dev/pts/3
10:42:37
#scp
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
           [-l limit] [-o ssh_option] [-P port] [-S program]
           [[user@]host1:]file1 ... [[user@]host2:]file2
10:42:44
#scp root@linux2.unix.nt:/usr/local/bin/say-sys-info
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
           [-l limit] [-o ssh_option] [-P port] [-S program]
           [[user@]host1:]file1 ... [[user@]host2:]file2
10:43:29
#scp root@linux2.unix.nt:/usr/local/bin/say-sys-info /usr/local/bin/say-sys-info
root@linux2.unix.nt's password:
say-sys-info                                                                                    100%  377     0.4KB/s   00:00
10:46:59
#mplayer
bash: mplayer: command not found
прошло 17 минут
11:04:52
#atp-get install mplayer
bash: atp-get: command not found
11:05:00
#apt-get install mplayer
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libfribidi0 libgif4 liblzo2-2 libmpcdec3 libopenal1 libswscale0 libxvmc1 mplayer-skin-blue
Suggested packages:
  mplayer-doc ttf-freefont netselect fping
The following NEW packages will be installed:
  libfribidi0 libgif4 liblzo2-2 libmpcdec3 libopenal1 libswscale0 libxvmc1 mplayer mplayer-skin-blue
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
...
Setting up libgif4 (4.1.6-6) ...
Setting up liblzo2-2 (2.03-1) ...
Setting up libmpcdec3 (1.2.2-1) ...
Setting up libopenal1 (1:1.4.272-2) ...
Setting up libswscale0 (0.svn20080206-18+lenny1) ...
Setting up libxvmc1 (1:1.0.4-2) ...
Setting up mplayer-skin-blue (1.6-2) ...
Setting up mplayer (1.0~rc2-17+lenny3) ...
Configuring mplayer ...done
Processing triggers for menu ...
11:05:16
#apt-get install libsox-fmt-gsm
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  libsox-fmt-gsm
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 34.9kB of archives.
After this operation, 53.2kB of additional disk space will be used.
Get:1 http://ftp2.debian.org.ua lenny/main libsox-fmt-gsm 14.0.1-2+b1 [34.9kB]
Fetched 34.9kB in 0s (215kB/s)
Selecting previously deselected package libsox-fmt-gsm.
(Reading database ... 97175 files and directories currently installed.)
Unpacking libsox-fmt-gsm (from .../libsox-fmt-gsm_14.0.1-2+b1_i386.deb) ...
Setting up libsox-fmt-gsm (14.0.1-2+b1) ...
11:05:29
#ls
Desktop  notify
11:07:30
#ls /usr/lib/
4Suite                               libgio-2.0.so.0.0.0                          libpangomm-1.4.so.1.0.30
ao                                   libgiomm-2.4.so.1                            libpangox-1.0.so.0
apt                                  libgiomm-2.4.so.1.0.25                       libpangox-1.0.so.0.2002.3
arj                                  libgksu                                      libpangoxft-1.0.so.0
aspell                               libgksu1.2                                   libpangoxft-1.0.so.0.2002.3
asterisk                             libgksu1.2.so.0                              libpaper.so.1
avahi                                libgksu1.2.so.0.0.5                          libpaper.so.1.1.2
bonobo                               libgksu2.so.0                                libpathplan.so.4
bonobo-activation                    libgksu2.so.0.0.2                            libpathplan.so.4.0.0
caca                                 libgksuui1.0.so.1                            libpcap.so.0.8
...
libgimpmath-2.0.so.0.400.7           libpanel.so.5.7                              tsclient
libgimpmodule-2.0.so.0               libpanelw.so.5                               update-notifier
libgimpmodule-2.0.so.0.400.7         libpanelw.so.5.7                             valgrind
libgimpthumb-2.0.so.0                libpango-1.0.so.0                            vino
libgimpthumb-2.0.so.0.400.7          libpango-1.0.so.0.2002.3                     w3m
libgimpui-2.0.so.0                   libpangocairo-1.0.so.0                       X11
libgimpui-2.0.so.0.400.7             libpangocairo-1.0.so.0.2002.3                xen
libgimpwidgets-2.0.so.0              libpangoft2-1.0.so.0                         xorg
libgimpwidgets-2.0.so.0.400.7        libpangoft2-1.0.so.0.2002.3                  xulrunner-1.9
libgio-2.0.so.0                      libpangomm-1.4.so.1
11:07:39
#man find
11:07:54
#find / -name="*.wav" -print
find: unknown predicate `-name=*.wav'
11:08:13
#find / -name "*.wav" -print
/usr/lib/openoffice/share/gallery/sounds/beam2.wav
/usr/lib/openoffice/share/gallery/sounds/drama.wav
/usr/lib/openoffice/share/gallery/sounds/soft.wav
/usr/lib/openoffice/share/gallery/sounds/space2.wav
/usr/lib/openoffice/share/gallery/sounds/laser.wav
/usr/lib/openoffice/share/gallery/sounds/kongas.wav
/usr/lib/openoffice/share/gallery/sounds/wallewal.wav
/usr/lib/openoffice/share/gallery/sounds/ups.wav
/usr/lib/openoffice/share/gallery/sounds/cow.wav
/usr/lib/openoffice/share/gallery/sounds/top.wav
...
/usr/share/gajim/data/sounds/connected.wav
/usr/share/gajim/data/sounds/sent.wav
/usr/share/gajim/data/sounds/bounce.wav
/usr/share/gajim/data/sounds/disconnected.wav
/usr/share/gnome-power-manager/gpm-lid-up.wav
/usr/share/gnome-power-manager/gpm-critical-power.wav
/usr/share/gnome-power-manager/gpm-unplugged.wav
/usr/share/gnome-power-manager/gpm-suspend-failure.wav
/usr/share/gnome-power-manager/gpm-lid-down.wav
^C
11:08:46
#mplayer /usr/share/gajim/data/sounds/message
MPlayer 1.0rc2-4.3.2-DFSG-free (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU     E6550  @ 2.33GHz (Family: 6, Model: 15, Stepping: 11)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Creating config file: /root/.mplayer/config
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing /usr/share/gajim/data/sounds/message.
File not found: '/usr/share/gajim/data/sounds/message'
Failed to open /usr/share/gajim/data/sounds/message.
Exiting... (End of file)
11:09:03
#mplayer /usr/share/gajim/data/sounds/message.wav
MPlayer 1.0rc2-4.3.2-DFSG-free (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU     E6550  @ 2.33GHz (Family: 6, Model: 15, Stepping: 11)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing /usr/share/gajim/data/sounds/message.wav.
File not found: '/usr/share/gajim/data/sounds/message.wav'
Failed to open /usr/share/gajim/data/sounds/message.wav.
Exiting... (End of file)
11:10:08
#mplayer /usr/share/gajim/data/sounds/sent.wav
MPlayer 1.0rc2-4.3.2-DFSG-free (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU     E6550  @ 2.33GHz (Family: 6, Model: 15, Stepping: 11)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing /usr/share/gajim/data/sounds/sent.wav.
Audio file file format detected.
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 1 ch, s16le, 705.6 kbit/100.00% (ratio: 88200->88200)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
AO: [alsa] 48000Hz 1ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:   0.5 (00.5) of 0.7 (00.6)  0.4%
Exiting... (End of file)
11:10:26
#scp root@linux2.unix.nt:/tmp/bijou.mp3
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
           [-l limit] [-o ssh_option] [-P port] [-S program]
           [[user@]host1:]file1 ... [[user@]host2:]file2
11:11:04
#scp root@linux2.unix.nt:/tmp/bijou.mp3 ~/bijou.mp3
root@linux2.unix.nt's password:
bijou.mp3                                                                                       100% 5032KB   4.9MB/s   00:00
11:12:35
#cp /tmp/bijou.gsm /var/lib/asterisk/moh/
cp: cannot stat `/tmp/bijou.gsm': No such file or directory
11:14:13
#cp bijou.gsm /var/lib/asterisk/moh/
cp: cannot stat `bijou.gsm': No such file or directory
11:14:21
#cp ~/bijou.gsm /var/lib/asterisk/moh/
cp: cannot stat `/root/bijou.gsm': No such file or directory
11:15:19
#sox -t mp3 ~/bijou.mp3 -r 8000 -c1 -t gsm /tmp/bijou.gsm resample -ql
sox soxio: Can't open input file `/root/bijou.mp3': unknown file type `mp3'
11:17:03
#mplayer ~/bijou.gsm
MPlayer 1.0rc2-4.3.2-DFSG-free (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU     E6550  @ 2.33GHz (Family: 6, Model: 15, Stepping: 11)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing /root/bijou.gsm.
Exiting... (End of file)
11:17:15
#ls ~
bijou.gsm  bijou.mp3  install  proba
11:17:36
#mplayer ~/bijou.gsm
MPlayer 1.0rc2-4.3.2-DFSG-free (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU     E6550  @ 2.33GHz (Family: 6, Model: 15, Stepping: 11)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing /root/bijou.gsm.
Exiting... (End of file)
11:21:36
#play ~/bijou.gsm
Input File     : '/root/bijou.gsm'
Sample Size    : 8-bit (1 byte)
Sample Encoding: GSM
Channels       : 1
Sample Rate    : 8000
Time: 00:06.14 [00:00.00] of 00:00.00 (0.00%) Samples out: 252k  Clips: 0    ^C
Aborted.
11:21:46
#cp ~/bijou.gsm /var/lib/asterisk/moh/

11:22:09
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
/dev/pts/5
11:22:27
#asterisk -rvvv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
    -- Executing [345@group3:1] Answer("SIP/301-081d8428", "") in new stack
    -- Executing [345@group3:2] MeetMe("SIP/301-081d8428", "245|MP|1234") in new stack
  == Parsing '/etc/asterisk/meetme.conf': Found
    -- <SIP/301-081d8428> Playing 'conf-invalid' (language 'ru')
  == Spawn extension (group3, 345, 2) exited non-zero on 'SIP/301-081d8428'
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/3
11:22:27
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3066.31691.25890	2010-03-18 12:25:20.000000000 +0200
+++ /etc/asterisk/extensions.conf	2010-03-18 12:28:04.000000000 +0200
@@ -60,7 +60,7 @@
 exten => _3XX,n,Monitor(wav,${CALLFILENAME},m)
 
 
-exten => _3XX,n,Dial(SIP/${EXTEN},10)
+exten => _3XX,n,Dial(SIP/${EXTEN},10,m)
 exten => _3XX,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?busy:unavail)
 exten => _3XX,n(busy),Playback(vm-isunavail)
 
11:28:04
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-3066.9531.22445	2010-03-18 12:37:56.000000000 +0200
+++ /etc/asterisk/extensions.conf	2010-03-18 12:44:50.000000000 +0200
@@ -77,6 +77,12 @@
 ;exten => _3XX,n,Dial(SIP/${EXTEN},5)
 ;exten => _3XX,n,Playback(vm-isunavail)
 
+
+
+
+
+
+
 [company]
 exten => _6XX,1,Answer 
 exten => _6XX,n,Set(CALLERID(name)="${CALLERID(name)} (KHR)")
/dev/pts/9
11:29:07
#cat /etc/asterisk/musiconhold.conf
;
; Music on Hold -- Sample Configuration
;
; valid mode options:
; files         -- read files from a directory in any Asterisk supported
;                  media format
; quietmp3      -- default
; mp3           -- loud
; mp3nb         -- unbuffered
; quietmp3nb    -- quiet unbuffered
...
;[ulawstream]
;mode=custom
;application=/usr/bin/streamplayer 192.168.100.52 888
;format=ulaw
; mpg123 on Solaris does not always exit properly; madplay may be a better
; choice
;[solaris]
;mode=custom
;directory=/var/lib/asterisk/mohmp3
;application=/site/sw/bin/madplay -Q -o raw:- --mono -R 8000 -a -12
прошло 15 минут
/dev/pts/3
11:44:50
#lsmod
Module                  Size  Used by
i915                   25312  2
drm                    65320  3 i915
ppdev                   6468  0
lp                      8164  0
acpi_cpufreq            6796  1
cpufreq_powersave       1856  0
cpufreq_userspace       3172  0
cpufreq_ondemand        6476  1
cpufreq_conservative     5960  0
...
libata                140448  2 ata_piix,ata_generic
scsi_mod              129548  2 sd_mod,libata
dock                    8304  1 libata
ehci_hcd               28428  0
uhci_hcd               18672  0
usbcore               118192  4 usbhid,ehci_hcd,uhci_hcd
thermal                15228  0
processor              32576  2 acpi_cpufreq,thermal
fan                     4196  0
thermal_sys            10856  3 thermal,processor,fan
прошло >4 часов
/dev/pts/1
15:45:54
#ssh root@linux2.unix.nt
root@linux2.unix.nt's password:
Linux linux2 2.6.26-2-686 #1 SMP Tue Mar 9 17:35:51 UTC 2010 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Mar 18 16:49:35 2010 from 192.168.17.4
l3-agent is already running: pid=3271; pidfile=/root/.lilalo/l3-agent.pid
прошло 14 минут
16:00:47
#screen -x

Файлы

  • /etc/asterisk/musiconhold.conf
  • notify
  • /etc/asterisk/musiconhold.conf
    >
    ;
    ; Music on Hold -- Sample Configuration
    ;
    ; valid mode options:
    ; files         -- read files from a directory in any Asterisk supported
    ;                  media format
    ; quietmp3      -- default
    ; mp3           -- loud
    ; mp3nb         -- unbuffered
    ; quietmp3nb    -- quiet unbuffered
    ; custom        -- run a custom application (See examples below)
    ; =========
    ; File-based (native) music on hold
    ; =========
    ;
    ; This plays files directly from the specified directory, no external
    ; processes are required. Files are played in normal sorting order
    ; (same as a sorted directory listing), and no volume or other
    ; sound adjustments are available. If the file is available in
    ; the same format as the channel's codec, then it will be played
    ; without transcoding (same as Playback would do in the dialplan).
    ; Files can be present in as many formats as you wish, and the
    ; 'best' format will be chosen at playback time.
    ;
    ; NOTE:
    ; If you are not using "autoload" in modules.conf, then you
    ; must ensure that the format modules for any formats you wish
    ; to use are loaded _before_ res_musiconhold. If you do not do
    ; this, res_musiconhold will skip the files it is not able to
    ; understand when it loads.
    ;
    [default]
    mode=files
    directory=/var/lib/asterisk/moh
    ;
    ;[native-random]
    ;mode=files
    ;directory=/var/lib/asterisk/moh
    ;random=yes     ; Play the files in a random order
    ; =========
    ; Other (non-native) playback methods
    ; =========
    ;[manual]
    ;mode=custom
    ; Note that with mode=custom, a directory is not required, such as when reading
    ; from a stream.
    ;directory=/var/lib/asterisk/mohmp3
    ;application=/usr/bin/mpg123 -q -r 8000 -f 8192 -b 2048 --mono -s
    ;[ulawstream]
    ;mode=custom
    ;application=/usr/bin/streamplayer 192.168.100.52 888
    ;format=ulaw
    ; mpg123 on Solaris does not always exit properly; madplay may be a better
    ; choice
    ;[solaris]
    ;mode=custom
    ;directory=/var/lib/asterisk/mohmp3
    ;application=/site/sw/bin/madplay -Q -o raw:- --mono -R 8000 -a -12
    
    notify
    >
    #!/bin/sh
    export HOME=/var/lib/asterisk
    /usr/bin/sendxmpp "`grep ^\$1\  /etc/asterisk/notify.conf | awk '{print $2}'`"
    

    Статистика

    Время первой команды журнала16:07:58 2010- 3-17
    Время последней команды журнала16:00:47 2010- 3-18
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, % 8.91
    Процент синтаксически неверно набранных команд, % 1.98
    Суммарное время работы с терминалом *, час 3.97
    Количество командных строк в единицу времени, команда/мин 0.42
    Частота использования команд
    vim16|==============| 14.16%
    ls11|=========| 9.73%
    cp10|========| 8.85%
    echo9|=======| 7.96%
    sendxmpp7|======| 6.19%
    mplayer6|=====| 5.31%
    apt-get5|====| 4.42%
    scp5|====| 4.42%
    asterisk3|==| 2.65%
    screen3|==| 2.65%
    /etc/init.d/festival3|==| 2.65%
    cat3|==| 2.65%
    grep3|==| 2.65%
    /etc/s2|=| 1.77%
    /etc/default/festival2|=| 1.77%
    find2|=| 1.77%
    ps2|=| 1.77%
    ssh2|=| 1.77%
    ifconfig1|| 0.88%
    man1|| 0.88%
    chmod1|| 0.88%
    /etc/init.d/asterisk1|| 0.88%
    play1|| 0.88%
    rm1|| 0.88%
    gajim1|| 0.88%
    lsmod1|| 0.88%
    pidgin1|| 0.88%
    type=friend1|| 0.88%
    atp-get1|| 0.88%
    sox1|| 0.88%
    gajim&1|| 0.88%
    ping1|| 0.88%
    route1|| 0.88%
    pidgin&1|| 0.88%
    lspci1|| 0.88%
    locate1|| 0.88%
    libnotify-Message:1|| 0.88%
    ____
    *) Интервалы неактивности длительностью 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$