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

Содержание

Журнал

Понедельник (11/18/13)

/dev/pts/1
13:20:23
#l3-agent

13:20:39
#date
Mon Nov 18 14:20:45 EET 2013
13:20:45
#date
Mon Nov 18 14:31:49 EET 2013
прошло 11 минут
13:31:49
#dpkg -l | wc -l
1457
прошло 11 минут
13:42:58
#. /etc/bash completion
l3script: /etc/bash: No such file or directory
13:49:13
#. /etc/bash_completion

13:49:57
#apt-get install asterisk
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  asterisk-config asterisk-core-sounds-en asterisk-core-sounds-en-gsm
  asterisk-modules asterisk-moh-opsound-gsm asterisk-voicemail autopoint
  debhelper freetds-common gettext git git-man html2text intltool-debian
  libcurl3 liberror-perl libgettextpo0 libiksemel3 libmail-sendmail-perl
  libodbc1 libpq5 libradiusclient-ng2 libresample1 libsaclm3 libsaevt3
  libsensors4 libsnmp-base libsnmp15 libsox-fmt-alsa libsox-fmt-base libsox2
...
Failed to fetch http://192.168.15.254:9999/debian/pool/main/libm/libmail-sendmail-perl/libmail-sendmail-perl_0.79.16-1_all.deb  Connection failed
Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/libsox2_14.4.0-3_amd64.deb  Connection failed
Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/libsox-fmt-alsa_14.4.0-3_amd64.deb  Connection failed
Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/libsox-fmt-base_14.4.0-3_amd64.deb  Connection failed
Failed to fetch http://192.168.15.254:9999/debian/pool/main/m/module-assistant/module-assistant_0.11.4_all.deb  Connection failed
Failed to fetch http://192.168.15.254:9999/debian/pool/main/r/rsync/rsync_3.0.9-4_amd64.deb  Connection failed
Failed to fetch http://192.168.15.254:9999/debian/pool/main/s/sox/sox_14.4.0-3_amd64.deb  Connection failed
Failed to fetch http://192.168.15.254:9999/debian/pool/main/v/vpb-driver/vpb-driver-source_4.2.55-1_all.deb  Connection failed
Failed to fetch http://192.168.15.254:9999/debian/pool/main/a/asterisk-moh-opsound/asterisk-moh-opsound-gsm_2.03-1_all.deb  Connection failed
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
13:56:32
#dpkg -L asterisk
/.
/usr
/usr/share
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/asterisk
/usr/share/doc
/usr/share/doc/asterisk
/usr/share/doc/asterisk/NEWS.Debian.gz
/usr/share/doc/asterisk/changelog.gz
...
/etc/init.d/asterisk
/etc/asterisk
/etc/logrotate.d
/etc/logrotate.d/asterisk
/etc/default
/etc/default/asterisk
/usr/share/asterisk/sounds/custom
/usr/share/asterisk/sounds/recordings
/usr/share/man/man8/rasterisk.8.gz
/usr/sbin/rasterisk
прошло 24 минуты
14:20:47
#dpkg -L asterisk | less
14:26:18
#ls /etc/init.d/asterisk
/etc/init.d/asterisk
прошло 30 минут
14:56:30
#/etc/init.d/asterisk start
Asterisk PBX is already running. Use restart.
14:56:47
#asterisk -r
Asterisk 1.8.13.1~dfsg-3+deb7u1, Copyright (C) 1999 - 2012 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.
=========================================================================
Connected to Asterisk 1.8.13.1~dfsg-3+deb7u1 currently running on linux3 (pid = 833)
linux3*CLI> mv /etc/asterisk/sip.conf /etc/asterisk/sip.conf.SAVE
No such command 'mv /etc/asterisk/sip.conf /etc/asterisk/sip.conf.SAVE' (type 'core show help mv /etc/asterisk/sip.conf' for other possible commands)
linux3*CLI> mv /etc/asterisk/sip.conf /etc/asterisk/sip.conf.SAVE
No such command 'mv /etc/asterisk/sip.conf /etc/asterisk/sip.conf.SAVE' (type 'core show help mv /etc/asterisk/sip.conf' for other possible commands)
linux3*CLI> mv /etc/asterisk/sip.conf /etc/asterisk/sip.conf.SAVE
No such command 'mv /etc/asterisk/sip.conf /etc/asterisk/sip.conf.SAVE' (type 'core show help mv /etc/asterisk/sip.conf' for other possible commands)
linux3*CLI> mv /etc/asterisk/sip.conf /etc/asterisk/sip.conf.SAVE
No such command 'mv /etc/asterisk/sip.conf /etc/asterisk/sip.conf.SAVE' (type 'core show help mv /etc/asterisk/sip.conf' for other possible commands)
linux3*CLI> quit
прошло 56 минут
15:53:14
#vim mv /etc/asterisk/sip.conf
--- /dev/null	2013-11-18 12:44:02.018836189 +0200
+++ mv	2013-11-18 16:56:31.341719975 +0200
@@ -0,0 +1,11 @@
+[1301]                                                                        |
+                                                                              |
+type=friend                                                                   |
+secret=1234                                                                   |
+host=dynamic                                                                  |
+
+[1302]
+
+type=friend
+secret=1234
+host=dynamic
15:56:31
#cat /etc/asterisk/sip.conf
cat: /etc/asterisk/sip.conf: No such file or directory
15:56:49
#vim /etc/asterisk/sip.conf
--- /dev/null	2013-11-18 12:44:02.018836189 +0200
+++ /etc/asterisk/sip.conf	2013-11-18 17:01:54.825725441 +0200
@@ -0,0 +1,9 @@
+[general]
+
+context=default
+
+[1301]
+type=friend
+secret=1234
+host=dynamic
+
16:01:54
#cat /etc/asterisk/sip.conf
[general]
context=default
[1301]
type=friend
secret=1234
host=dynamic
16:02:17
#asterisk -r
Asterisk 1.8.13.1~dfsg-3+deb7u1, Copyright (C) 1999 - 2012 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.
=========================================================================
Connected to Asterisk 1.8.13.1~dfsg-3+deb7u1 currently running on linux3 (pid = 833)
linux3*CLI> sip reload
linux3*CLI> sip show peers
Name/username              Host                                    Dyn Forcerport ACL Port     Status
1301                       (Unspecified)                            D   N             0        Unmonitored
1 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 1 offline]
linux3*CLI> quit
16:03:25
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3+deb7u1, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg-3+deb7u1 currently running on linux3 (pid = 833)
Verbosity was 0 and is now 3
    -- Registered SIP '1301' at 192.168.15.212:5060
linux3*CLI> sip show peers
Name/username              Host                                    Dyn Forcerport ACL Port     Status
1301/1301                  192.168.15.212                           D   N             5060     Unmonitored
1 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 0 offline]
linux3*CLI> quit
Executing last minute cleanups
прошло 17 минут
16:20:30
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3+deb7u1, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg-3+deb7u1 currently running on linux3 (pid = 833)
Verbosity is at least 3
linux3*CLI> quit
Executing last minute cleanups
16:24:33
#vim /etc/asterisk/extensions.conf
--- /dev/null	2013-11-18 12:44:02.018836189 +0200
+++ /etc/asterisk/extensions.conf	2013-11-18 17:31:21.813755299 +0200
@@ -0,0 +1,4 @@
+[default]                                                                     |
+                                                                              |
+exten => 4000,1,Answer                                                        |
+exten => 4000,2,Playback(demo-thanks) 
16:31:21
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-26358.16795.15574	2013-11-18 17:37:08.241761153 +0200
+++ /etc/asterisk/extensions.conf	2013-11-18 17:39:05.821763140 +0200
@@ -1,4 +1,4 @@
 [default]                                                                     |
                                                                               |
 exten => 4000,1,Answer                                                        |
-exten => 4000,2,Playback(demo-thanks) 
+exten => 4000,n,Playback(demo-thanks) 
16:39:05
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-26358.7258.6282	2013-11-18 17:41:17.433765364 +0200
+++ /etc/asterisk/extensions.conf	2013-11-18 17:42:44.977766849 +0200
@@ -1,4 +1,4 @@
-[default]                                                                     |
-                                                                              |
-exten => 4000,1,Answer                                                        |
-exten => 4000,n,Playback(demo-thanks) 
+[default]
+
+exten => 4000,1,Answer
+exten => 4000,n,Playback(demo-thanks)
16:42:45
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-26358.3972.18439	2013-11-18 17:57:10.157781463 +0200
+++ /etc/asterisk/extensions.conf	2013-11-18 18:03:53.405788277 +0200
@@ -2,3 +2,8 @@
 
 exten => 4000,1,Answer
 exten => 4000,n,Playback(demo-thanks)
+exten => 1301,1,Dial(SIP/1301)
+exten => 1302,1,Dial(SIP/1302)
+
+exten => _13XX,1,Dial(SIP/${EXTEN})
+exten => _44XX,1,Dial(SIP/13${EXTEN:2})
прошло 28 минут
17:10:53
#init 0

Вторник (11/19/13)

/dev/pts/2
08:11:11
#dpkg_reconfigure tzdata
l3script: dpkg_reconfigure: command not found
08:12:25
#dpkg-reconfigure tzdata
     │                           Belfast        ▒                         │
     │                           Belgrade       ▒                         │
     │                           Berlin         ▒                         │
     │                           Bratislava     ▒                         │
     │                           Brussels       ▒                         │
     │                           Bucharest      ▒                         │
     │                           Budapest       ▮                         │
     │                           Büsingen       ▒                         │
     │                           Chisinau       ▒                         │
     │                           Copenhagen     ▒                         │
...
     │                           Luxembourg     ▒                         │
     │                           Madrid         ↓                         │
     │                                                                    │
     │                                                                    │
     │                 <Ok>                     <Cancel>                  │
     │                                                                    │
     └────────────────────────────────────────────────────────────────────┘
Current default time zone: 'Europe/Kiev'
Local time is now:      Tue Nov 19 09:12:48 EET 2013.
Universal Time is now:  Tue Nov 19 07:12:48 UTC 2013.
08:12:48
#l3-agent
l3-agent is already running: pid=3682; pidfile=/root/.lilalo/l3-agent.pid
прошло 36 минут
08:49:17
#mc
прошло >3 часов
/dev/pts/1
12:38:55
#l3agent
l3script: l3agent: command not found
12:38:59
#l3-agent
l3-agent is already running: pid=3682; pidfile=/root/.lilalo/l3-agent.pid
12:39:04
#mc
прошло 19 минут
12:59:03
#l3-agent
l3-agent is already running: pid=3682; pidfile=/root/.lilalo/l3-agent.pid
12:59:08
#mc
прошло 20 минут
/dev/pts/4
13:19:24
#mkdir -p /var/tmp/asterisk/records/

13:19:48
#chown -R asterisk:asterisk /var/tmp/asterisk/

прошло 92 минуты
14:52:13
#apt-get install asterisk-core-sounds-ru
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  asterisk-core-sounds-ru-gsm
The following NEW packages will be installed:
  asterisk-core-sounds-ru asterisk-core-sounds-ru-gsm
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,078 kB of archives.
After this operation, 2,263 kB of additional disk space will be used.
...
Fetched 2,078 kB in 0s (39.5 MB/s)
Selecting previously unselected package asterisk-core-sounds-ru-gsm.
(Reading database ... 132209 files and directories currently installed.)
Unpacking asterisk-core-sounds-ru-gsm (from .../asterisk-core-sounds-ru-gsm_1.4.22-1_all.deb) ...
Selecting previously unselected package asterisk-core-sounds-ru.
Unpacking asterisk-core-sounds-ru (from .../asterisk-core-sounds-ru_1.4.22-1_all.deb) ...
Setting up asterisk-core-sounds-ru-gsm (1.4.22-1) ...
Setting up asterisk-core-sounds-ru (1.4.22-1) ...
update-alternatives: using /usr/share/asterisk/sounds/ru_RU_f_IvrvoiceRU to provide /usr/share/asterisk/sounds/ru (asterisk-prompt-ru) in auto mode
update-alternatives: using /usr/share/asterisk/sounds/ru_RU_f_IvrvoiceRU to provide /usr/share/asterisk/sounds/ru_RU (asterisk-prompt-ru-ru) in auto mode
прошло 15 минут
15:07:49
#apt-cache search dahdi
asterisk-dahdi - DAHDI devices support for the Asterisk PBX
dahdi-linux - DAHDI telephony interface - Linux userspace parts
dahdi-source - DAHDI telephony interface - source code for kernel driver
dahdi - utilities for using the DAHDI kernel modules
libtonezone-dev - tonezone library (development)
libtonezone2.0 - tonezone library (runtime)
libopenr2-3 - MFC/R2 (telephony) call setup library
libopenr2-bin - MFC/R2 (telephony) call setup library - test programs
libopenr2-dev - MFC/R2 (telephony) call setup library - development headers
yate-dahdi - Dahdi support for YATE
15:08:04
#module-assistant auto-install dahdi
               ┌────────────────────┤ Updating cached package data ├─────────────────────┐
               │ Reading apt-cache output...                                             │
               │                                                                         │
               │                                                                         │
               │                                100%                                     │
               │                                                                         │
               └─────────────────────────────────────────────────────────────────────────┘
Updated infos about 1 packages
unpack
The source tarball could not be found!
Package dahdi not installed?
Running "m-a -f get dahdi" may help.
"/usr/share/modass/packages/default.sh" build KVERS=3.2.0-4-amd64 KSRC=/lib/modules/3.2.0-4-amd64/build KDREV=3.2.51-1 kdist_image
find: `/usr/src/modules/dahdi*': No such file or directory
прошло 11 минут
15:19:59
#kill -1 asterisk
l3script: kill: asterisk: arguments must be process or job IDs
прошло 24 минуты
15:44:28
#pkill -1 asterisk

15:51:53
#modprobe dahdi

15:52:07
#pkill -1 asterisk

15:52:22
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3+deb7u1, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg-3+deb7u1 currently running on linux3 (pid = 2647)
Verbosity is at least 3
  == Using SIP RTP CoS mark 5
[Nov 19 16:52:35] WARNING[10742]: pbx.c:4218 pbx_extension_helper: No application 'MeetMe' for extension (gr1, 8500, 1)
  == Spawn extension (gr1, 8500, 1) exited non-zero on 'SIP/1301-00000053'
linux3*CLI> exit
Executing last minute cleanups
15:52:51
#modprobe dahdi

15:52:56
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
15:58:07
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.

Среда (11/20/13)

08:15:14
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3+deb7u1, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg-3+deb7u1 currently running on linux3 (pid = 10868)
...
linux3*CLI> database put order 101 7
Updated database successfully
linux3*CLI> database
No such command 'database' (type 'core show help database' for other possible commands)
linux3*CLI> database show order
/order/100                                        : 6
/order/101                                        : 7
2 results found.
linux3*CLI> quit
Executing last minute cleanups
прошло >7 часов
15:48:24
#for i in `seq 100 200`; do asterisk -rx "database put ord
> er $i $((RANDOM%3+6))";done
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
...
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
15:48:31
#for i in `seq 100 200`; do asterisk -rx "database put ord
                 asterisk -rvvv
er $i $((RANDOM%3+6))";done
Asterisk 1.8.13.1~dfsg-3+deb7u1, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
...
linux3*CLI> database show order
/order/100                                        : 6
/order/101                                        : 7
2 results found.
linux3*CLI> database show order
/order/100                                        : 6
/order/101                                        : 7
2 results found.
linux3*CLI> exit
Executing last minute cleanups
15:50:18
#for i in `seq 100 200`; do asterisk -rx "database put ord
er $i $((RANDOM%3+6))";done
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
...
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
Updated database successfully
15:50:26
#for i in `seq 100 200`; do asterisk -rx "database put ord
                 asterisk -rvvv
er $i $((RANDOM%3+6))";done
Asterisk 1.8.13.1~dfsg-3+deb7u1, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg-3+deb7u1 currently running on linux3 (pid = 10868)
Verbosity is at least 3
linux3*CLI> database show order
/order/100                                        : 6
/order/101                                        : 7
2 results found.
linux3*CLI> exit
Executing last minute cleanups
15:50:50
#for i in `seq 100 200`; do asterisk -rx "database put ord|
> for i in `seq 100 200`; do asterisk -rx "database put ord
er $i $((RANDOM%3+6))";done                                er $i $((RANDOM%3+6))";done
> for i in `seq 100 200`; do asterisk -rx "database put ord|
foexitin `seq 100 200`; do asterisk -rx "database put order $i $((RANDOM%3+6))";done
>
>
> ^C
15:51:54
#ps
  PID TTY          TIME CMD
 5268 pts/5    00:00:00 l3script
17772 pts/5    00:00:00 ps
15:51:57
#for i in `seq 100 200`; do asterisk -rx "database put ord|
for i in `seq 100 200`; do asterisk -rx "database put order $i $((RANDOM%3+6))";done
exit             asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3+deb7u1, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
...
0 database edataes removed.
data      database   deltree "ord
linux3*CLI> data
data      database
linux3*CLI> database
del      deltree  get      put      show     showkey
linux3*CLI> database
del      deltree  get      put      show     showkey
linux3*CLI> quit
Executing last minute cleanups
15:54:41
#mv /var/lib/asterisk/astdb{,.bak}

15:54:52
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
15:55:42
#asterisk -rvvv
Asterisk 1.8.13.1~dfsg-3+deb7u1, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.8.13.1~dfsg-3+deb7u1 currently running on linux3 (pid = 17822)
...
4 sip peers [Monitored: 4 online, 0 offline Unmonitored: 0 online, 0 offline]
linux3*CLI> sip show peers
Name/username              Host                                    Dyn Forcerport ACL Port     Status
1301/1301                  192.168.15.212                           D   N             5060     OK (19 ms)
1302/1302                  192.168.15.204                           D   N             32920    OK (8 ms)
kharkov/donetsk            192.168.15.2                             D   N             5060     OK (1 ms)
kiev/donetsk               192.168.15.1                             D   N             5060     OK (1 ms)
4 sip peers [Monitored: 4 online, 0 offline Unmonitored: 0 online, 0 offline]
linux3*CLI> quit
Executing last minute cleanups

Четверг (11/21/13)

10:04:04
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk.
10:05:40
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk.
прошла 21 минута
10:27:10
#mc
прошло >5 часов
16:01:16
#apt-cache search freerdp
freerdp-dbg - RDP client for Windows Terminal Services (debug)
freerdp-x11 - RDP client for Windows Terminal Services
libfreerdp-dev - RDP client for Windows Terminal Services (development)
libfreerdp-plugins-standard - RDP client for Windows Terminal Services (plugins)
libfreerdp1 - RDP client for Windows Terminal Services (library)

Пятница (11/22/13)

08:40:53
#apt-cache install freerdp
E: Invalid operation install
08:41:28
#apt-get install freerdp
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'freerdp-x11' instead of 'freerdp'
The following extra packages will be installed:
  libfreerdp-plugins-standard libfreerdp1
Suggested packages:
  xfreerdp
The following NEW packages will be installed:
  freerdp-x11 libfreerdp-plugins-standard libfreerdp1
...
(Reading database ... 144761 files and directories currently installed.)
Unpacking libfreerdp1:amd64 (from .../libfreerdp1_1.0.1-1.1+deb7u2_amd64.deb) ...
Selecting previously unselected package libfreerdp-plugins-standard:amd64.
Unpacking libfreerdp-plugins-standard:amd64 (from .../libfreerdp-plugins-standard_1.0.1-1.1+deb7u2_amd64.deb) ...
Selecting previously unselected package freerdp-x11.
Unpacking freerdp-x11 (from .../freerdp-x11_1.0.1-1.1+deb7u2_amd64.deb) ...
Processing triggers for man-db ...
Setting up libfreerdp1:amd64 (1.0.1-1.1+deb7u2) ...
Setting up libfreerdp-plugins-standard:amd64 (1.0.1-1.1+deb7u2) ...
Setting up freerdp-x11 (1.0.1-1.1+deb7u2) ...
08:41:47
#freerdp
l3script: freerdp: command not found
08:41:53
#dpkg -l freerdp
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                 Version         Architecture    Description
+++-====================-===============-===============-==============================================
un  freerdp              <none>                          (no description available)
08:42:26
#dpkg -L freerdp
dpkg-query: package 'freerdp' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
08:42:32
#dpkg -L freerdp-x11
/.
/usr
/usr/bin
/usr/bin/xfreerdp
/usr/share
/usr/share/doc
/usr/share/doc/freerdp-x11
/usr/share/doc/freerdp-x11/changelog.Debian.gz
/usr/share/doc/freerdp-x11/copyright
/usr/share/doc/freerdp-x11/changelog.gz
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/xfreerdp.1.gz
08:42:47
#dpkg -L freerdp-dpg
dpkg-query: package 'freerdp-dpg' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
08:44:14
#dpkg -L freerdp
dpkg-query: package 'freerdp' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
08:44:57
#xfreerdp
missing server name
failed to parse arguments.
08:45:11
#xfreerdp -h
FreeRDP - A Free Remote Desktop Protocol Client
See http://www.freerdp.com for more information
Usage: xfreerdp [options] server:port
  -0: connect to console session
  -a: set color depth in bit, default is 16
  -c: initial working directory
  -D: hide window decorations
  -T: window title
  -d: domain
  -f: fullscreen mode
...
  --disable-menu-animations: disables menu animations
  --disable-theming: disables theming
  --no-rdp: disable Standard RDP encryption
  --no-tls: disable TLS encryption
  --no-nla: disable network level authentication
  --ntlm: force NTLM authentication protocol version (1 or 2)
  --ignore-certificate: ignore verification of logon certificate
  --sec: force protocol security (rdp, tls or nla)
  --secure-checksum: use salted checksums with Standard RDP encryption
  --version: print version information
08:45:19
#xfreerdp 192.168.15.203
connected to 192.168.15.203:3389
creating directory /root/.freerdp/certs
Password:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@           WARNING: CERTIFICATE NAME MISMATCH!           @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The hostname used for this connection (192.168.15.203)
does not match the name given in the certificate:
ALP-Book
A valid certificate for the wrong name should NOT be trusted!
Certificate details:
        Subject: CN = ALP-Book
        Issuer: CN = ALP-Book
        Thumbprint: cd:0d:3d:90:63:ef:88:5d:44:8b:84:d2:8a:b3:2d:a9:58:6a:8a
The above X.509 certificate could not be verified, possibly because you do not have the CA certificate in your certificate store, or the certificate has expired. Please look at the documentation on how to create local certificate store for a private CA.
Do you trust the above certificate? (Y/N) y
SSL_read: Failure in SSL library (protocol error?)
Authentication failure, check credentials.
If credentials are valid, the NTLMSSP implementation may be to blame.
08:46:04
#xfreerdp -h
FreeRDP - A Free Remote Desktop Protocol Client
See http://www.freerdp.com for more information
Usage: xfreerdp [options] server:port
  -0: connect to console session
  -a: set color depth in bit, default is 16
  -c: initial working directory
  -D: hide window decorations
  -T: window title
  -d: domain
  -f: fullscreen mode
...
  --disable-menu-animations: disables menu animations
  --disable-theming: disables theming
  --no-rdp: disable Standard RDP encryption
  --no-tls: disable TLS encryption
  --no-nla: disable network level authentication
  --ntlm: force NTLM authentication protocol version (1 or 2)
  --ignore-certificate: ignore verification of logon certificate
  --sec: force protocol security (rdp, tls or nla)
  --secure-checksum: use salted checksums with Standard RDP encryption
  --version: print version information
08:46:22
#xfreerdp -u master 192.168.5.203
^C
08:47:24
#ps
  PID TTY          TIME CMD
 5268 pts/5    00:00:00 l3script
27149 pts/5    00:00:00 ps
08:47:25
#xfreerdp -u master -0 192.168.5.203
unable to connect to 192.168.5.203:3389
Error: protocol security negotiation failure
08:50:35
#apt-get
apt 0.9.7.9 for amd64 compiled on Jun  4 2013 09:30:58
Usage: apt-get [options] command
       apt-get [options] install|remove pkg1 [pkg2 ...]
       apt-get [options] source pkg1 [pkg2 ...]
apt-get is a simple command line interface for downloading and
installing packages. The most frequently used commands are update
and install.
Commands:
   update - Retrieve new lists of packages
   upgrade - Perform an upgrade
...
  -f  Attempt to correct a system with broken dependencies in place
  -m  Attempt to continue if archives are unlocatable
  -u  Show a list of upgraded packages as well
  -b  Build the source package after fetching it
  -V  Show verbose version numbers
  -c=? Read this configuration file
  -o=? Set an arbitrary configuration option, eg -o dir::cache=/tmp
See the apt-get(8), sources.list(5) and apt.conf(5) manual
pages for more information and options.
                       This APT has Super Cow Powers.
08:51:28
#apt-get remove freerdp
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'freerdp-x11' instead of 'freerdp'
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
08:52:09
#dpkg -L freerdp
dpkg-query: package 'freerdp' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
08:52:32
#dpkg
dpkg: error: need an action option
Type dpkg --help for help about installing and deinstalling packages [*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Options marked [*] produce a lot of output - pipe it through `less' or `more' !
08:52:53
#dpkg --help
Usage: dpkg [<option> ...] <command>
Commands:
  -i|--install       <.deb file name> ... | -R|--recursive <directory> ...
  --unpack           <.deb file name> ... | -R|--recursive <directory> ...
  -A|--record-avail  <.deb file name> ... | -R|--recursive <directory> ...
  --configure        <package> ... | -a|--pending
  --triggers-only    <package> ... | -a|--pending
  -r|--remove        <package> ... | -a|--pending
  -P|--purge         <package> ... | -a|--pending
  --get-selections [<pattern> ...] Get list of selections to stdout.
...
                             Ignore dependencies involving <package>.
  --force-...                Override problems (see --force-help).
  --no-force-...|--refuse-...
                             Stop when problems encountered.
  --abort-after <n>          Abort after encountering <n> errors.
Comparison operators for --compare-versions are:
  lt le eq ne ge gt       (treat empty version as earlier than any version);
  lt-nl le-nl ge-nl gt-nl (treat empty version as later than any version);
  < << <= = >= >> >       (only for compatibility with control file syntax).
Use `dselect' or `aptitude' for user-friendly package management.
прошло 20 минут
09:12:59
#fffff
l3script: fffff: command not found
09:13:01
#dpkg --help
Usage: dpkg [<option> ...] <command>
Commands:
  -i|--install       <.deb file name> ... | -R|--recursive <directory> ...
  --unpack           <.deb file name> ... | -R|--recursive <directory> ...
  -A|--record-avail  <.deb file name> ... | -R|--recursive <directory> ...
  --configure        <package> ... | -a|--pending
  --triggers-only    <package> ... | -a|--pending
  -r|--remove        <package> ... | -a|--pending
  -P|--purge         <package> ... | -a|--pending
  --get-selections [<pattern> ...] Get list of selections to stdout.
...
                             Ignore dependencies involving <package>.
  --force-...                Override problems (see --force-help).
  --no-force-...|--refuse-...
                             Stop when problems encountered.
  --abort-after <n>          Abort after encountering <n> errors.
Comparison operators for --compare-versions are:
  lt le eq ne ge gt       (treat empty version as earlier than any version);
  lt-nl le-nl ge-nl gt-nl (treat empty version as later than any version);
  < << <= = >= >> >       (only for compatibility with control file syntax).
Use `dselect' or `aptitude' for user-friendly package management.
прошло >3 часов
12:23:47
#mc
12:23:57
#cd /usr/src/

12:24:04
#ls
asterisk-11.6.0.tar.gz                                        linux-headers-3.2.0-4-common
dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.51-1_amd64.deb  linux-kbuild-3.2
dahdi.tar.bz2                                                 linux-OLDVERSION.1384870555
linux                                                         modules
linux-headers-3.2.0-4-amd64                                   vpb-driver.tar.bz2
12:24:05
#ls
asterisk-11.6.0.tar.gz                                        linux-headers-3.2.0-4-common
dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.51-1_amd64.deb  linux-kbuild-3.2
dahdi.tar.bz2                                                 linux-OLDVERSION.1384870555
linux                                                         modules
linux-headers-3.2.0-4-amd64                                   vpb-driver.tar.bz2
12:26:28
#ls -l
total 40336
-rw-r--r-- 1 root root 34767605 Nov 22 13:23 asterisk-11.6.0.tar.gz
-rw-r--r-- 1 root root  5603658 Nov 19 16:19 dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.51-1_amd64.deb
-rw-r--r-- 1 root root   843676 Jan 30  2013 dahdi.tar.bz2
lrwxrwxrwx 1 root root       36 Nov 19 16:15 linux -> /usr/src/linux-headers-3.2.0-4-amd64
drwxr-xr-x 4 root root     4096 Nov 19 16:09 linux-headers-3.2.0-4-amd64
drwxr-xr-x 4 root root     4096 Nov 19 16:09 linux-headers-3.2.0-4-common
lrwxrwxrwx 1 root root       23 Jun 24  2012 linux-kbuild-3.2 -> ../lib/linux-kbuild-3.2
lrwxrwxrwx 1 root root       27 Nov 19 16:09 linux-OLDVERSION.1384870555 -> linux-headers-3.2.0-4-amd64
drwxr-xr-x 3 root root     4096 Jan 30  2013 modules
-rw-r--r-- 1 root root    69129 May  9  2012 vpb-driver.tar.bz2
12:26:31
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk.
12:27:32
#tar xfz asterisk-11.6.0.tar.gz

12:28:07
#ls -l
total 40340
drwxr-xr-x 29 root root     4096 Oct 21 17:51 asterisk-11.6.0
-rw-r--r--  1 root root 34767605 Nov 22 13:23 asterisk-11.6.0.tar.gz
-rw-r--r--  1 root root  5603658 Nov 19 16:19 dahdi-modules-3.2.0-4-amd64_2.6.1+dfsg2-1+3.2.51-1_amd64.deb
-rw-r--r--  1 root root   843676 Jan 30  2013 dahdi.tar.bz2
lrwxrwxrwx  1 root root       36 Nov 19 16:15 linux -> /usr/src/linux-headers-3.2.0-4-amd64
drwxr-xr-x  4 root root     4096 Nov 19 16:09 linux-headers-3.2.0-4-amd64
drwxr-xr-x  4 root root     4096 Nov 19 16:09 linux-headers-3.2.0-4-common
lrwxrwxrwx  1 root root       23 Jun 24  2012 linux-kbuild-3.2 -> ../lib/linux-kbuild-3.2
lrwxrwxrwx  1 root root       27 Nov 19 16:09 linux-OLDVERSION.1384870555 -> linux-headers-3.2.0-4-amd64
drwxr-xr-x  3 root root     4096 Jan 30  2013 modules
-rw-r--r--  1 root root    69129 May  9  2012 vpb-driver.tar.bz2
12:28:10
#cd asterisk-11.6.0

12:28:20
#ls -l
total 2980
drwxr-xr-x  3 root root    4096 Oct 21 17:51 addons
drwxr-xr-x  2 root root    4096 Oct 21 17:51 agi
drwxr-xr-x  3 root root    4096 Oct 21 17:51 apps
-rw-r--r--  1 root root   38935 Oct 21 17:51 asterisk-11.6.0-summary.html
-rw-r--r--  1 root root   34332 Oct 21 17:51 asterisk-11.6.0-summary.txt
drwxr-xr-x  2 root root    4096 Oct 21 17:51 autoconf
-rwxr-xr-x  1 root root    1041 Jan 13  2012 bootstrap.sh
drwxr-xr-x  2 root root    4096 Oct 21 17:51 bridges
-rw-r--r--  1 root root     294 Apr 15  2013 BSDmakefile
...
drwxr-xr-x  2 root root    4096 Oct 21 17:51 static-http
drwxr-xr-x  2 root root    4096 Oct 21 17:51 tests
-rw-r--r--  1 root root    3871 Jul 16  2012 UPGRADE-10.txt
-rw-r--r--  1 root root    9318 Nov 21  2008 UPGRADE-1.2.txt
-rw-r--r--  1 root root   25890 Aug 18  2009 UPGRADE-1.4.txt
-rw-r--r--  1 root root   13965 May  7  2010 UPGRADE-1.6.txt
-rw-r--r--  1 root root   17779 Sep  6  2012 UPGRADE-1.8.txt
-rw-r--r--  1 root root   13874 Aug 24 00:57 UPGRADE.txt
drwxr-xr-x  3 root root    4096 Oct 21 17:51 utils
-rw-r--r--  1 root root    1723 Aug 14  2008 Zaptel-to-DAHDI.txt
12:28:23
#ls
addons                        channels         include                README-addons.txt
agi                           codecs           install-sh             README-SERIOUSLY.bestpractices.txt
apps                          config.guess     keys                   res
asterisk-11.6.0-summary.html  configs          LICENSE                sample.call
asterisk-11.6.0-summary.txt   config.sub       main                   sounds
autoconf                      configure        Makefile               static-http
bootstrap.sh                  configure.ac     Makefile.moddir_rules  tests
bridges                       contrib          Makefile.rules         UPGRADE-10.txt
BSDmakefile                   COPYING          makeopts.in            UPGRADE-1.2.txt
BUGS                          CREDITS          menuselect             UPGRADE-1.4.txt
build_tools                   default.exports  missing                UPGRADE-1.6.txt
cdr                           doc              mkinstalldirs          UPGRADE-1.8.txt
cel                           formats          pbx                    UPGRADE.txt
ChangeLog                     funcs            phoneprov              utils
CHANGES                       images           README                 Zaptel-to-DAHDI.txt
12:28:24
#./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
...
checking arpa/nameser.h presence... yes
checking for arpa/nameser.h... yes
checking sys/io.h usability... yes
checking sys/io.h presence... yes
checking for sys/io.h... yes
checking for tgetent in -ltermcap... no
checking for tgetent in -ltinfo... no
checking for initscr in -lcurses... no
checking for initscr in -lncurses... no
configure: error: *** termcap support not found (on modern systems, this typically means the ncurses development package is missing)
12:30:01
#apt-get install libncurses5-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libtinfo-dev
Suggested packages:
  ncurses-doc
The following NEW packages will be installed:
  libncurses5-dev libtinfo-dev
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
...
Get:1 http://192.168.15.254/debian/ wheezy/main libtinfo-dev amd64 5.9-10 [105 kB]
Get:2 http://192.168.15.254/debian/ wheezy/main libncurses5-dev amd64 5.9-10 [223 kB]
Fetched 328 kB in 1s (181 kB/s)
Selecting previously unselected package libtinfo-dev:amd64.
(Reading database ... 144808 files and directories currently installed.)
Unpacking libtinfo-dev:amd64 (from .../libtinfo-dev_5.9-10_amd64.deb) ...
Selecting previously unselected package libncurses5-dev.
Unpacking libncurses5-dev (from .../libncurses5-dev_5.9-10_amd64.deb) ...
Setting up libtinfo-dev:amd64 (5.9-10) ...
Setting up libncurses5-dev (5.9-10) ...
12:31:23
#./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
...
checking for initscr in -lcurses... yes
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
checking for initscr in -lncurses... yes
checking for curses.h... (cached) yes
checking for xml2-config... no
configure: *** XML documentation will not be available because the 'libxml2' development package is missing.
configure: *** Please run the 'configure' script with the '--disable-xmldoc' parameter option
configure: *** or install the 'libxml2' development package.
12:31:40
#./configure --disable-xmldoc
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
...
checking for rc_read_config in -lradiusclient-ng... no
checking for cpg_join in -lcpg... no
checking for corosync_cfg_state_track in -lcfg... no
checking for speex_encode in -lspeex... no
checking for speex_preprocess_ctl in -lspeex... no
checking for speex_preprocess_ctl in -lspeexdsp... no
checking for sqlite_exec in -lsqlite... no
checking for sqlite3_open in -lsqlite3... no
configure: WARNING: *** Asterisk now uses SQLite3 for the internal Asterisk database.
configure: WARNING: *** Please install the SQLite3 development package.
12:32:53
#apt-get install libsqlite3-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  sqlite3-doc
The following NEW packages will be installed:
  libsqlite3-dev
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 578 kB of archives.
After this operation, 1,382 kB of additional disk space will be used.
Get:1 http://192.168.15.254/debian/ wheezy/main libsqlite3-dev amd64 3.7.13-1+deb7u1 [578 kB]
Fetched 578 kB in 0s (20.8 MB/s)
Selecting previously unselected package libsqlite3-dev.
(Reading database ... 144856 files and directories currently installed.)
Unpacking libsqlite3-dev (from .../libsqlite3-dev_3.7.13-1+deb7u1_amd64.deb) ...
Setting up libsqlite3-dev (3.7.13-1+deb7u1) ...
12:33:46
#./configure --disable-xmldoc
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
...
 $$$$$                        $$$
  $$$$7.                       $$  (TM)
   $$$$$$$.           .7$$$$$$  $$
     $$$$$$$$$$$$7$$$$$$$$$.$$$$$$
       $$$$$$$$$$$$$$$$.
configure: Package configured for:
configure: OS type  : linux-gnu
configure: Host CPU : x86_64
configure: build-cpu:vendor:os: x86_64 : unknown : linux-gnu :
configure: host-cpu:vendor:os: x86_64 : unknown : linux-gnu :

Файлы

  • /etc/asterisk/sip.conf
  • /etc/asterisk/sip.conf
    >
    [general]
    context=default
    [1301]
    type=friend
    secret=1234
    host=dynamic
    

    Статистика

    Время первой команды журнала13:20:23 2013-11-18
    Время последней команды журнала12:33:46 2013-11-22
    Количество командных строк в журнале100
    Процент команд с ненулевым кодом завершения, %23.00
    Процент синтаксически неверно набранных команд, % 4.00
    Суммарное время работы с терминалом *, час 5.41
    Количество командных строк в единицу времени, команда/мин 0.31
    Частота использования команд
    dpkg12|===========| 11.11%
    asterisk7|======| 6.48%
    /etc/init.d/asterisk7|======| 6.48%
    apt-get7|======| 6.48%
    ls7|======| 6.48%
    xfreerdp6|=====| 5.56%
    do6|=====| 5.56%
    for6|=====| 5.56%
    vim6|=====| 5.56%
    mc5|====| 4.63%
    configure4|===| 3.70%
    l3-agent4|===| 3.70%
    apt-cache3|==| 2.78%
    pkill2|=| 1.85%
    cd2|=| 1.85%
    .2|=| 1.85%
    cat2|=| 1.85%
    ps2|=| 1.85%
    modprobe2|=| 1.85%
    date2|=| 1.85%
    mkdir1|| 0.93%
    dpkg-reconfigure1|| 0.93%
    wc1|| 0.93%
    mv1|| 0.93%
    module-assistant1|| 0.93%
    freerdp1|| 0.93%
    l3agent1|| 0.93%
    tar1|| 0.93%
    chown1|| 0.93%
    fffff1|| 0.93%
    less1|| 0.93%
    dpkg_reconfigure1|| 0.93%
    init1|| 0.93%
    kill1|| 0.93%
    ____
    *) Интервалы неактивности длительностью 30 минут и более не учитываются

    Справка

    Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
    1. В журнал автоматически попадают все команды, данные в любом терминале системы.

    2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

    3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
      $ l s-l
      bash: l: command not found
      

    4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
      $ test 5 -lt 4
      Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

    5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
      $ find / -name abc
      find: /home/devi-orig/.gnome2: Keine Berechtigung
      find: /home/devi-orig/.gnome2_private: Keine Berechtigung
      find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung
      find: /home/devi-orig/.metacity: Keine Berechtigung
      find: /home/devi-orig/.inkscape: Keine Berechtigung
      ^C
      

    6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
      # id
      uid=0(root) gid=0(root) Gruppen=0(root)
      

    7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
      $ vi ~/.bashrc
      2a3,5
      >    if [ -f /usr/local/etc/bash_completion ]; then
      >         . /usr/local/etc/bash_completion
      >        fi
      

    8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
      $ patch ~/.bashrc
      В данном случае изменения применяются к файлу ~/.bashrc

    9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

      Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

    10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

    11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

    12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

    13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

    14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

      $ whoami
      
      user
      
      $ #^ Интересно, кто я?
      
      в журнале это будет выглядеть так:
      $ whoami
      
      user
      
      Интересно, кто я?

    15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

      $ whoami
      
      user
      
      $ cat > /dev/null #^ Интересно, кто я?
      
      Программа whoami выводит имя пользователя, под которым 
      мы зарегистрировались в системе.
      -
      Она не может ответить на вопрос о нашем назначении 
      в этом мире.
      
      В журнале это будет выглядеть так:
      $ whoami
      user
      
      Интересно, кто я?
      Программа whoami выводит имя пользователя, под которым
      мы зарегистрировались в системе.

      Она не может ответить на вопрос о нашем назначении
      в этом мире.
      Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

    16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

    17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
    18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
    19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
      1
          2
      3   
          4
      
      Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

    О программе

    LiLaLo (L3) расшифровывается как Live Lab Log.
    Программа разработана для повышения эффективности обучения Unix/Linux-системам.
    (c) Игорь Чубин, 2004-2008

    $Id$