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

Содержание

Журнал

Понедельник (04/08/13)

/dev/pts/2
14:34:51
#cat /etc/default/isc-dhcp-server
# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/isc-dhcp-server by the maintainer scripts
#
# This is a POSIX shell fragment
#
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
#       Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES=""
14:34:58
#vim /etc/default/isc-dhcp-server
--- /tmp/l3-saved-7721.30745.27850	2013-04-08 15:35:09.000000000 +0300
+++ /etc/default/isc-dhcp-server	2013-04-08 15:35:13.000000000 +0300
@@ -8,4 +8,4 @@
 
 # On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
 #	Separate multiple interfaces with spaces, e.g. "eth0 eth1".
-INTERFACES=""
+INTERFACES="eth0"
14:35:13
#echo syn on >> ~/.vimrc

14:43:02
#~

14:43:40
#ps aux | grep dhcp
root      8203  0.0  0.0   4092  1808 ?        Ss   15:43   0:00 /usr/sbin/dhcpd -q eth0
root      8215  0.0  0.0   3352   740 pts/3    S+   15:43   0:00 grep dhcp
прошло 24 минуты
/dev/pts/2
15:07:53
#apt-cache search asterisk
asterisk-mobile - bluetooth mobile devices support for Asterisk
asterisk-mp3 - MP3 format support (format_mp3) for the Asterisk PBX
asterisk-mysql - MySQL support for the Asterisk PBX (cdr mainly)
asterisk-ooh323c - H.323 protocol support for Asterisk (ooh323c stack)
asterisk-chan-capi - Common ISDN API 2.0 implementation for Asterisk
asterisk-core-sounds-en-g722 - asterisk PBX sound files - English/g722
asterisk-core-sounds-en-gsm - asterisk PBX sound files - English/gsm
asterisk-core-sounds-en-wav - asterisk PBX sound files - English/wav
asterisk-core-sounds-es-g722 - asterisk PBX sound files - Spanish/g722
asterisk-core-sounds-es-gsm - asterisk PBX sound files - Spanish/gsm
...
asterisk - Open Source Private Branch Exchange (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
iaxmodem - software modem with IAX2 connectivity
libasterisk-agi-perl - Collections of Perl modules to be used with Asterisk PBX AGI
libnetsds-perl - Service Delivery Suite framework
op-panel - switchboard type application for the Asterisk PBX
libopenr2-3 - MFC/R2 (telephony) call setup library
python-asterisk - Asterisk Manager API interface module for Python
15:07:59
#apt-cache show asterisk-h323
Package: asterisk-h323
Priority: optional
Section: comm
Installed-Size: 848
Maintainer: Debian VoIP Team <pkg-voip-maintainers@lists.alioth.debian.org>
Architecture: i386
Source: asterisk
Version: 1:1.6.2.9-2+squeeze10
Depends: asterisk, libc6 (>= 2.3.6-6~), libexpat1 (>= 1.95.8), libgcc1 (>= 1:4.1.1), libldap-2.4-2 (>= 2.4.7), libopenh323-1.18.0 (>= 1.18.0~) | libopenh323-1.18.0-develop (>= 1.18.0~), libpt-1.10.10 (>= 1.10.10~), libsasl2-2, libsdl1.2debian (>= 1.2.10-1), libssl0.9.8 (>= 0.9.8m-1), libstdc++6 (>= 4.4.0)
Filename: pool/main/a/asterisk/asterisk-h323_1.6.2.9-2+squeeze10_i386.deb
...
 the official H.323 chanel driver.
 .
 This is one of many H.323 channel implementations for Asterisk with others
 being chan_oh323 and chan_ooh323c, distributed by Debian as asterisk-oh323 and
 asterisk-ooh323c, respectively.
 .
 For more information about the Asterisk PBX, have a look at the Asterisk
 package.
Homepage: http://www.asterisk.org/
Tag: protocol::voip, role::dummy, special::obsolete, works-with::audio
15:08:46
#apt-cache search mysql dev
libapq1-dev - A pluggable Ada 95 Binding to various database systems (development)
bibus - bibliographic database
collectd-core - statistics collection and monitoring daemon (core system)
libeigenbase-farrago-java - Java framework for constructing RDBMS services
eikazo - graphical frontend for SANE designed for mass-scanning
emma - extendable MySQL managing assistant
gambas2-gb-db-mysql - The MySQL driver for the Gambas database component
libglpk0 - linear programming kit with integer (MIP) support
libghc6-hsql-mysql-dev - MySQL driver of the HSQL library for GHC6
libghc6-hdbc-dev - Haskell Database Connectivity, GHC6 package
...
tora-dbg - A graphical toolkit for database developers and administrators - debugging symbols
tora - A graphical toolkit for database developers and administrators
zabbix-proxy-mysql - network monitoring solution - proxy (using MySQL)
zabbix-proxy-pgsql - network monitoring solution - proxy (using PostgreSQL)
zabbix-server-mysql - network monitoring solution - server (using MySQL)
libmysqlclient-dev - MySQL database development files
libmysqld-dev - MySQL embedded database development files
libmysqld-pic - MySQL database development files
php5-mysql - MySQL module for php5
php5-sqlite - SQLite module for php5
15:15:17
#apt-get install asterisk asterisk-config asterisk-sounds-main asterisk-sounds-extra
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  autopoint dahdi dahdi-linux debhelper freetds-common fxload gettext git html2text intltool-debian libc-client2007e libcorosync4 libcurl3
  liberror-perl libgmime-2.0-2a libiksemel3 libmail-sendmail-perl libopenais3 libopenr2-3 libpq5 libpri1.4 libradiusclient-ng2 libresample1
  libsox-fmt-alsa libsox-fmt-base libsox1b libspandsp2 libsqlite0 libss7-1 libssh2-1 libsybdb5 libsys-hostname-long-perl libtonezone2.0
  libunistring0 libvpb0 mlock module-assistant odbcinst odbcinst1debian2 po-debconf rsync sox unixodbc vpb-driver-source
Suggested packages:
  asterisk-doc asterisk-dev asterisk-h323 dh-make gettext-doc git-doc git-arch git-cvs git-svn git-email git-daemon-run git-gui gitk gitweb
...
Setting up unixodbc (2.2.14p2-1) ...
Setting up asterisk (1:1.6.2.9-2+squeeze10) ...
Adding system user for Asterisk
Adding user `asterisk' to group `dialout' ...
Adding user asterisk to group dialout
Done.
Adding user `asterisk' to group `audio' ...
Adding user asterisk to group audio
Done.
Starting Asterisk PBX: asterisk.
15:17:25
#apt-get install asterisk asterisk-config asterisk-sounds-main asterisk-sounds-extra^C

15:17:55
#dpkg -L asterisk | less
15:19:59
#ls -l /var/log/asterisk/
total 16
drwxr-xr-x 2 asterisk asterisk 4096 Jan 17 18:44 cdr-csv
drwxr-xr-x 2 asterisk asterisk 4096 Jan 17 18:44 cdr-custom
-rw-rw---- 1 asterisk asterisk    0 Apr  8 16:17 event_log
-rw-rw---- 1 asterisk asterisk 2655 Apr  8 16:17 messages
-rw-rw---- 1 asterisk asterisk   38 Apr  8 16:17 queue_log
15:23:13
#ls -l /usr/lib/asterisk/modules/app_*
-rw-r--r-- 1 root root  33748 Jan 17 18:44 /usr/lib/asterisk/modules/app_adsiprog.so
-rw-r--r-- 1 root root  18492 Jan 17 18:44 /usr/lib/asterisk/modules/app_alarmreceiver.so
-rw-r--r-- 1 root root  14512 Jan 17 18:44 /usr/lib/asterisk/modules/app_amd.so
-rw-r--r-- 1 root root   9048 Jan 17 18:44 /usr/lib/asterisk/modules/app_authenticate.so
-rw-r--r-- 1 root root   4368 Jan 17 18:44 /usr/lib/asterisk/modules/app_cdr.so
-rw-r--r-- 1 root root   6648 Jan 17 18:44 /usr/lib/asterisk/modules/app_chanisavail.so
-rw-r--r-- 1 root root   5884 Jan 17 18:44 /usr/lib/asterisk/modules/app_channelredirect.so
-rw-r--r-- 1 root root  22564 Jan 17 18:44 /usr/lib/asterisk/modules/app_chanspy.so
-rw-r--r-- 1 root root  15928 Jan 17 18:44 /usr/lib/asterisk/modules/app_confbridge.so
-rw-r--r-- 1 root root   8220 Jan 17 18:44 /usr/lib/asterisk/modules/app_controlplayback.so
...
-rw-r--r-- 1 root root   5880 Jan 17 18:44 /usr/lib/asterisk/modules/app_userevent.so
-rw-r--r-- 1 root root   6260 Jan 17 18:44 /usr/lib/asterisk/modules/app_verbose.so
-rw-r--r-- 1 root root 189048 Jan 17 18:44 /usr/lib/asterisk/modules/app_voicemail_imap.so
-rw-r--r-- 1 root root 170600 Jan 17 18:44 /usr/lib/asterisk/modules/app_voicemail_odbc.so
-rw-r--r-- 1 root root 158436 Jan 17 18:44 /usr/lib/asterisk/modules/app_voicemail.so
-rw-r--r-- 1 root root   6008 Jan 17 18:44 /usr/lib/asterisk/modules/app_waitforring.so
-rw-r--r-- 1 root root   8508 Jan 17 18:44 /usr/lib/asterisk/modules/app_waitforsilence.so
-rw-r--r-- 1 root root   5400 Jan 17 18:44 /usr/lib/asterisk/modules/app_waituntil.so
-rw-r--r-- 1 root root  10292 Jan 17 18:44 /usr/lib/asterisk/modules/app_while.so
-rw-r--r-- 1 root root   5880 Jan 17 18:44 /usr/lib/asterisk/modules/app_zapateller.so
15:23:16
#ls -l /usr/lib/asterisk/modules/app_* | wc -l
74
15:23:18
#ls -l /usr/lib/asterisk/modules/app_* | less
15:24:06
#apt-cache search xvfb
xvfb - Virtual Framebuffer 'fake' X server
15:30:44
#dpkg -L asterisk-config | less
15:32:14
#/etc/init.d/asterisk status
Asterisk PBX is running.
15:32:18
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk.
15:32:23
#/etc/init.d/asterisk status
Asterisk PBX is not running ... failed!
15:32:24
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk.
15:32:26
#/etc/init.d/asterisk status
Asterisk PBX is running.
15:32:28
#ps aux | grep asterisk
asterisk  9867  1.8  0.2  48564 18248 ?        Ssl  16:32   0:00 /usr/sbin/asterisk -p -U asterisk
asterisk  9868  0.0  0.0   2940   568 ?        S    16:32   0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 9867
root      9924  0.0  0.0   3352   748 pts/3    S+   16:32   0:00 grep asterisk
15:32:48
#ls -l /etc/asterisk/sip.conf
-rw-r----- 1 asterisk asterisk 63882 Jan 14 20:36 /etc/asterisk/sip.conf
15:33:59
#ls -l /etc/asterisk/extensions.conf
-rw-r----- 1 asterisk asterisk 31344 Jan 14 20:35 /etc/asterisk/extensions.conf
15:35:25
#less /etc/asterisk/sip.conf.ORIG
15:37:02
#vim /etc/asterisk/sip.conf
--- /dev/null	2013-04-08 17:47:11.686146249 +0300
+++ /etc/asterisk/sip.conf	2013-04-08 16:40:43.000000000 +0300
@@ -0,0 +1,8 @@
+context=default
+
+; SIP-peer
+[2301]
+type=friend
+secret=1234
+host=dynamic
+
15:40:43
#vim /etc/asterisk/sip.conf
15:42:23
#[ ]
-rw-r--r-- 1 root root 73 Apr  8 16:40 /etc/asterisk/sip.conf
15:42:24
#chown asterisk:asterisk /etc/asterisk/sip.conf

15:42:33
#chmod 600 /etc/asterisk/sip.conf

15:42:54
#cat /etc/asterisk/sip.conf
context=default
; SIP-peer
[2301]
type=friend
secret=1234
host=dynamic
15:45:02
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze10 currently running on linux7 (pid = 9867)
linux7*CLI> quit
15:46:36
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze10 currently running on linux7 (pid = 9867)
linux7*CLI> sip reload
[Apr  8 16:47:18] WARNING[9911]: config.c:1100 process_text_line: parse error: No category context for line 1 of /etc/asterisk/sip.conf
[Apr  8 16:47:18] ERROR[9911]: chan_sip.c:24596 reload_config: Contents of sip.conf are invalid and cannot be parsed
linux7*CLI> quit
15:48:24
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze10 currently running on linux7 (pid = 9867)
...
linux7*CLI> co
config   console  core
linux7*CLI> core set verbose 3
Verbosity is at least 3
linux7*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
2301                       (Unspecified)    D   N      5060     Unmonitored
1 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 0 offline]
linux7*CLI> quit
Executing last minute cleanups
15:50:02
#asterisk -rvv
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze10 currently running on linux7 (pid = 9867)
Verbosity is at least 3
linux7*CLI> lo
local   logger
linux7*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
2301                       (Unspecified)    D   N      5060     Unmonitored
1 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 0 offline]
linux7*CLI> quit
Executing last minute cleanups
15:57:52
#ssh 192.168.50.1
The authenticity of host '192.168.50.1 (192.168.50.1)' can't be established.
RSA key fingerprint is 68:d8:cd:21:16:19:bf:87:89:a1:7b:2b:02:8c:29:62.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.50.1' (RSA) to the list of known hosts.
root@192.168.50.1's password:
Linux linux5 2.6.39-bpo.2-686-pae #1 SMP Thu Aug 4 11:02:22 UTC 2011 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: Mon Apr  8 16:38:29 2013
l3-agent is already running: pid=32499; pidfile=/root/.lilalo/l3-agent.pid
15:58:04
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze10 currently running on linux5 (pid = 4524)
...
[Apr  8 16:58:51] NOTICE[4546]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2110
    -- Unregistered SIP '2110'
    -- Registered SIP '2110' at 192.168.50.100 port 57454
[Apr  8 16:59:19] NOTICE[4546]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2110
  == Using SIP RTP CoS mark 5
[Apr  8 16:59:37] NOTICE[4546]: chan_sip.c:20325 handle_request_invite: Call from '2101' to extension '2110' rejected because extension not found in context 'default'.
  == Using SIP RTP CoS mark 5
[Apr  8 16:59:54] NOTICE[4546]: chan_sip.c:20325 handle_request_invite: Call from '2101' to extension '192*168*50*100' rejected because extension not found in context 'default'.
linux5*CLI> quit
Executing last minute cleanups
16:00:20
#exit
exit
Connection to 192.168.50.1 closed.
16:00:22
#cat /etc/asterisk/sip.conf
[general]
context=default
; SIP-peer
[2301]
type=friend
secret=1234
host=dynamic
прошло 10 минут
16:11:04
#dpkg -L asterisk-sounds-main | grep welc
/usr/share/asterisk/sounds/en_US_f_Allison/dir-welcome.gsm
16:11:11
#dpkg -L asterisk-sounds-extraa | grep welcome
Package `asterisk-sounds-extraa' is not installed.
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
16:11:20
#dpkg -L asterisk-sounds-extra | grep welcome
/usr/share/asterisk/sounds/privacy-stop-calling-not-welcome2.gsm
/usr/share/asterisk/sounds/welcome.gsm
/usr/share/asterisk/sounds/privacy-stop-calling-not-welcome.gsm
16:11:52
#vim /etc/asterisk/extensions.conf
--- /dev/null	2013-04-08 17:47:11.686146249 +0300
+++ /etc/asterisk/extensions.conf	2013-04-08 17:12:52.000000000 +0300
@@ -0,0 +1,3 @@
+[default]
+
+
16:12:52
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-8302.19224.17670	2013-04-08 17:12:53.000000000 +0300
+++ /etc/asterisk/extensions.conf	2013-04-08 17:13:43.000000000 +0300
@@ -1,3 +1,4 @@
 [default]
 
+exten => 8000,1,Playback(welcome)
 
/dev/pts/0
16:16:18
#mii-tool
eth0: no link
SIOCGMIIREG on eth1 failed: Input/output error
SIOCGMIIREG on eth1 failed: Input/output error
eth1: no link
/dev/pts/5
16:16:18
#mii-tool
eth0: no link
SIOCGMIIREG on eth1 failed: Input/output error
SIOCGMIIREG on eth1 failed: Input/output error
eth1: no link
/dev/pts/2
16:17:12
#exten => 8000,1,Playback(welcome)
[default]
exten => 8000,1,Playback(welcome)
16:18:33
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-8302.3786.12491	2013-04-08 17:18:37.000000000 +0300
+++ /etc/asterisk/extensions.conf	2013-04-08 17:25:28.000000000 +0300
@@ -1,4 +1,10 @@
 [default]
 
-exten => 8000,1,Playback(welcome)
+exten => 8000,1,Answer
+exten => 8000,n,Wait(2)
+exten => 8000,n,Playback(welcome)
+
+exten => 8000,1,Answer
+ same =>      n,Wait(2)
+ same =>      n,Playback(welcome)
 
16:25:28
#dpkg -l asterisk
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                        Description
+++-==============================-==============================-============================================================================
ii  asterisk                       1:1.6.2.9-2+squeeze10          Open Source Private Branch Exchange (PBX)
16:25:55
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-8302.8068.13996	2013-04-08 17:25:56.000000000 +0300
+++ /etc/asterisk/extensions.conf	2013-04-08 17:36:27.000000000 +0300
@@ -4,7 +4,11 @@
 exten => 8000,n,Wait(2)
 exten => 8000,n,Playback(welcome)
 
-exten => 8000,1,Answer
- same =>      n,Wait(2)
- same =>      n,Playback(welcome)
+;exten => 2301,1,Dial(SIP/2301)
+;exten => 2302,1,Dial(SIP/2302)
+
+exten => _23XX,1,Dial(SIP/${EXTEN})
+exten => _1023XX,1,Dial(SIP/${EXTEN:2})
+exten => _1023XX10,1,Dial(SIP/${EXTEN:2:4})
+
 
прошло 48 минут
/dev/pts/2
17:14:21
#vim ~/.bashrc
--- /tmp/l3-saved-7362.10364.5071	2013-04-08 18:14:39.000000000 +0300
+++ /root/.bashrc	2013-04-08 18:14:43.000000000 +0300
@@ -16,4 +16,4 @@
 # alias rm='rm -i'
 # alias cp='cp -i'
 # alias mv='mv -i'
-. /root/.lilalo/l3bashrc && _l3_start
+#. /root/.lilalo/l3bashrc && _l3_start
17:14:43
#bash
root@linux7:~# exit
exit
17:14:49
#vim ~/.bashrc
--- /tmp/l3-saved-7362.9469.25694	2013-04-08 18:14:51.000000000 +0300
+++ /root/.bashrc	2013-04-08 18:14:54.000000000 +0300
@@ -16,4 +16,4 @@
 # alias rm='rm -i'
 # alias cp='cp -i'
 # alias mv='mv -i'
-#. /root/.lilalo/l3bashrc && _l3_start
+. /root/.lilalo/l3bashrc && _l3_start
17:14:54
#w
 18:15:02 up 27 min,  4 users,  load average: 0.17, 0.07, 0.09
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
user     tty7     :0               17:58   27:51   3.57s  0.07s x-session-manager
user     pts/0    :0.0             17:59    0.00s  0.28s  0.08s ssh user@192.168.15.253
user     pts/1    :0.0             18:01   13:16   0.34s  1.42s gnome-terminal
root     pts/2    192.168.15.253   18:14    0.00s  0.16s  0.00s script -f -c bash -q /root/.lilalo//5535108835443103-1365434061.script
17:15:02
#vim ~/.bashrc
--- /tmp/l3-saved-7362.27860.25749	2013-04-08 18:15:12.000000000 +0300
+++ /root/.bashrc	2013-04-08 18:15:16.000000000 +0300
@@ -16,4 +16,4 @@
 # alias rm='rm -i'
 # alias cp='cp -i'
 # alias mv='mv -i'
-. /root/.lilalo/l3bashrc && _l3_start
+#. /root/.lilalo/l3bashrc && _l3_start
17:15:16
#bash
root@linux7:~# w
 18:15:18 up 28 min,  4 users,  load average: 0.58, 0.17, 0.12
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
user     tty7     :0               17:58   28:07   3.68s  0.07s x-session-manager
user     pts/0    :0.0             17:59    0.00s  0.29s  0.09s ssh user@192.168.15.253
user     pts/1    :0.0             18:01   13:32   0.34s  1.52s gnome-terminal
root     pts/2    192.168.15.253   18:14    0.00s  0.16s  0.00s script -f -c bash -q /root/.lilalo//5535108835443103-1365434061.script
root@linux7:~# exit
exit
/dev/pts/2
17:16:00
#ping 192.168.20.1
PING 192.168.20.1 (192.168.20.1) 56(84) bytes of data.
^C
--- 192.168.20.1 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1000ms
17:16:09
#ping 192.168.20.2
PING 192.168.20.2 (192.168.20.2) 56(84) bytes of data.
64 bytes from 192.168.20.2: icmp_req=1 ttl=63 time=0.147 ms
64 bytes from 192.168.20.2: icmp_req=2 ttl=63 time=0.100 ms
^C
--- 192.168.20.2 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 0.100/0.123/0.147/0.026 ms
17:16:14
#apt-cache search dhcp server
ahcpd - the Ad-Hoc Configuration Protocol
avahi-autoipd - Avahi IPv4LL network address configuration daemon
bootp - server for the bootp protocol with DHCP support
udhcpd - Provides the busybox DHCP server implementation
dhcp-helper - A DHCP relay agent
dhcp-probe - network DHCP or BootP server discover
dhcpdump - Parse DHCP packets from tcpdump
dhcping - DHCP Daemon Ping Program
dhis-server - Dynamic Host Information System - server
dibbler-client - portable DHCPv6 client
...
libnm-util-dev - network management framework (development files)
libnm-util1 - network management framework (shared library)
network-manager-dbg - network management framework daemon - debugging symbols
network-manager - network management framework daemon
pump - BOOTP and DHCP client for automatic IP configuration
pxe - free PXE daemon
python-pydhcplib - Python DHCP client/server library
resolvconf - name server information handler
totd - Small DNS proxy that supports IPv6/IPv4 record translation
wide-dhcpv6-server - DHCPv6 server for automatic IPv6 hosts configuration
17:16:31
#apt-get install isc-dhcp-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  isc-dhcp-server-ldap
The following NEW packages will be installed:
  isc-dhcp-server
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 378 kB of archives.
After this operation, 889 kB of additional disk space will be used.
...
Preconfiguring packages ...
Selecting previously deselected package isc-dhcp-server.
(Reading database ... 121997 files and directories currently installed.)
Unpacking isc-dhcp-server (from .../isc-dhcp-server_4.1.1-P1-15+squeeze8_i386.deb) ...
Processing triggers for man-db ...
Setting up isc-dhcp-server (4.1.1-P1-15+squeeze8) ...
Generating /etc/default/isc-dhcp-server...
Starting ISC DHCP server: dhcpdcheck syslog for diagnostics. ... failed!
 failed!
invoke-rc.d: initscript isc-dhcp-server, action "start" failed.
17:17:08
#dpkg -L isc-dhcp-server | grep /etc/
/etc/dhcp
/etc/dhcp/dhcpd.conf
/etc/init.d
/etc/init.d/isc-dhcp-server
17:18:21
#vim /etc/dhcp/dhcpd.conf
прошло 32 минуты
/dev/pts/6
17:50:23
#mv /home/user/firefox /usr/local/

/dev/pts/5
17:50:23
#mv /home/user/firefox /usr/local/

Вторник (04/09/13)

/dev/pts/2
08:56:04
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-12192.3318.27663	2013-04-09 09:56:41.000000000 +0300
+++ /etc/asterisk/sip.conf	2013-04-09 10:04:05.000000000 +0300
@@ -1,9 +1,18 @@
 [general]
 context=default
 
+register => brest:1234@192.168.60.1/minsk
+
 ; SIP-peer
 [2301]
 type=friend
 secret=1234
 host=dynamic
 
+[minsk]
+type=friend
+secret=1234
+host=dynamic
+username=brest
+canreinvite=no
+
09:04:05
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze10 currently running on linux7 (pid = 9867)
Verbosity is at least 3
linux7*CLI> sip reload
 Reloading SIP
  == Parsing '/etc/asterisk/sip.conf':   == Found
  == Parsing '/etc/asterisk/users.conf':   == Found
[Apr  9 10:04:12] NOTICE[9911]: chan_sip.c:24218 build_peer: The 'username' field for sip peers has been deprecated in favor of the term 'defaultuser'
  == Parsing '/etc/asterisk/sip_notify.conf':   == Found
[Apr  9 10:04:12] WARNING[9911]: chan_sip.c:18331 handle_response_register: Got 404 Not found on SIP register to service brest@192.168.60.1, giving up
    -- Registered SIP 'minsk' at 192.168.60.1 port 5060
linux7*CLI> quit
Executing last minute cleanups
09:04:27
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-12192.3584.24086	2013-04-09 10:04:28.000000000 +0300
+++ /etc/asterisk/sip.conf	2013-04-09 10:04:33.000000000 +0300
@@ -13,6 +13,6 @@
 type=friend
 secret=1234
 host=dynamic
-username=brest
+defaultuser=brest
 canreinvite=no
 
09:10:49
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-12192.13268.9537	2013-04-09 10:10:54.000000000 +0300
+++ /etc/asterisk/extensions.conf	2013-04-09 10:11:12.000000000 +0300
@@ -11,4 +11,5 @@
 exten => _1023XX,1,Dial(SIP/${EXTEN:2})
 exten => _1023XX10,1,Dial(SIP/${EXTEN:2:4})
 
+exten => _22XX,1,Dial(SIP/minsk/${EXTEN})
 
прошло 30 минут
/dev/pts/2
09:41:25
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze10, Copyright (C) 1999 - 2010 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.6.2.9-2+squeeze10 currently running on linux7 (pid = 9867)
Verbosity is at least 3
linux7*CLI>
linux7*CLI>
linux7*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
2301                       (Unspecified)    D   N      5060     Unmonitored
minsk/brest                192.168.60.1     D   N      5060     Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]
linux7*CLI> quit
Executing last minute cleanups
09:41:36
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-12525.9411.16010	2013-04-09 10:41:40.000000000 +0300
+++ /etc/asterisk/sip.conf	2013-04-09 10:41:52.000000000 +0300
@@ -15,4 +15,5 @@
 host=dynamic
 defaultuser=brest
 canreinvite=no
+qualify=yes
 
09:43:29
#iptables -A INPUT -s 192.168.60.1 -j DROP

09:44:34
#tcpdump -i eth0 -n icmp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
10:44:45.094526 IP 192.168.70.1 > 192.168.60.1: ICMP echo request, id 12770, seq 14, length 64
10:44:45.094689 IP 192.168.60.1 > 192.168.70.1: ICMP echo reply, id 12770, seq 14, length 64
10:44:46.102527 IP 192.168.70.1 > 192.168.60.1: ICMP echo request, id 12770, seq 15, length 64
10:44:46.102686 IP 192.168.60.1 > 192.168.70.1: ICMP echo reply, id 12770, seq 15, length 64
10:44:47.110528 IP 192.168.70.1 > 192.168.60.1: ICMP echo request, id 12770, seq 16, length 64
10:44:47.110701 IP 192.168.60.1 > 192.168.70.1: ICMP echo reply, id 12770, seq 16, length 64
10:44:48.118534 IP 192.168.70.1 > 192.168.60.1: ICMP echo request, id 12770, seq 17, length 64
10:44:48.118697 IP 192.168.60.1 > 192.168.70.1: ICMP echo reply, id 12770, seq 17, length 64
10:44:49.126530 IP 192.168.70.1 > 192.168.60.1: ICMP echo request, id 12770, seq 18, length 64
10:44:49.126706 IP 192.168.60.1 > 192.168.70.1: ICMP echo reply, id 12770, seq 18, length 64
10:44:50.134535 IP 192.168.70.1 > 192.168.60.1: ICMP echo request, id 12770, seq 19, length 64
10:44:50.134694 IP 192.168.60.1 > 192.168.70.1: ICMP echo reply, id 12770, seq 19, length 64
^C
12 packets captured
12 packets received by filter
0 packets dropped by kernel
09:44:50
#fg
ping 192.168.60.1
^C
--- 192.168.60.1 ping statistics ---
25 packets transmitted, 0 received, 100% packet loss, time 24192ms
09:46:24
#iptables -D INPUT -s 192.168.60.1 -j DROP

09:50:02
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-12525.17309.1881	2013-04-09 10:50:16.000000000 +0300
+++ /etc/asterisk/sip.conf	2013-04-09 10:50:38.000000000 +0300
@@ -8,6 +8,7 @@
 type=friend
 secret=1234
 host=dynamic
+callerid="Igor Chubin"
 
 [minsk]
 type=friend
09:50:38
#vim /etc/asterisk/sip.conf
09:53:03
#vim /etc/asterisk/sip.conf
09:53:06
#[ ]
exten => 8000,1,Answer
exten => 8000,n,Wait(2)
exten => 8000,n,Playback(welcome)
;exten => 2301,1,Dial(SIP/2301)
exten => _21XX,1,Dial(SIP/minsk/${EXTEN})
exten => _1XXX,1,Dial(SIP/minsk/${EXTEN})
;exten => 2302,1,Dial(SIP/2302)
~
~
~
...
~
~
~
~
~
~
~
~
~
"/etc/asterisk/extensions.conf" 17L, 406C written
09:53:47
#vim /etc/asterisk/extensions.conf
09:58:54
#vim /etc/asterisk/extensions.conf
прошло 42 минуты
10:41:24
#[ ]
[general]
context=default
register => brest:1234@192.168.60.1/minsk
; SIP-peer
[2301]
type=friend
secret=1234
host=dynamic
callerid="Igor Chubin"
[minsk]
type=friend
secret=1234
host=dynamic
defaultuser=brest
canreinvite=no
qualify=yes
прошло 23 минуты
11:04:25
## http://db.tt/I6AEo6jh

прошло 94 минуты
12:39:02
## http://db.tt/irx7umoE

12:39:04
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-12525.9105.13259	2013-04-09 13:43:05.000000000 +0300
+++ /etc/asterisk/extensions.conf	2013-04-09 13:44:16.000000000 +0300
@@ -4,6 +4,13 @@
 exten => 8000,n,Wait(2)
 exten => 8000,n,Playback(welcome)
 
+;record
+
+exten => _81XX,1,Record(/var/tmp/message/${EXTEN:2}:gsm,1)
+exten => _81XX,n,Playback(/var/tmp/message/${EXTEN:2})
+
+exten => _82XX,1,Playback(/var/tmp/message/${EXTEN:2})
+
 ;exten => 2301,1,Dial(SIP/2301)
 ;exten => 2302,1,Dial(SIP/2302)
 
12:44:16
#mkdir /var/tmp/message/

12:44:21
#chown asterisk:asterisk /var/tmp/message/

12:44:37
#asterisk -rx 'dialplan reload'
Dialplan reloaded.
12:45:43
#vim /etc/asterisk/extensions.conf
12:52:02
#[ ]
exten => 8000,1,Answer
exten => 8000,n,Wait(2)
exten => 8000,n,Playback(welcome)
;record
exten => _81XX,1,Answer
exten => _23XX,n,Monitor(wav,filename,m)
exten => _23XX,n,Dial(SIP/${EXTEN})
exten => _81XX,n,Playback(/var/tmp/message/${EXTEN:2})
exten => _82XX,1,Playback(/var/tmp/message/${EXTEN:2})
~
...
~
~
~
~
~
~
~
~
~
"/etc/asterisk/extensions.conf" 27L, 652C written
12:54:10
#ls /var/spool/asterisk/monitor/

12:55:52
#ls /var/spool/asterisk/monitor/

12:55:54
#apt-get install sox
Reading package lists... Done
Building dependency tree
Reading state information... Done
sox is already the newest version.
sox set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
13:04:52
#[ ]
exten => 8000,1,Answer
exten => 8000,n,Wait(2)
exten => 8000,n,Playback(welcome)
;record
exten => _81XX,1,Record(/var/tmp/message/${EXTEN:2}:gsm,1)
exten => _81XX,n,Playback(/var/tmp/message/${EXTEN:2})
exten => _82XX,1,Playback(/var/tmp/message/${EXTEN:2})
;exten => 2301,1,Dial(SIP/2301)
;exten => 2302,1,Dial(SIP/2302)
exten => _23XX,1,Answer
exten => _23XX,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH})
exten => _23XX,n,Monitor(wav,${CALLFILENAME},m)
exten => _23XX,n,Dial(SIP/${EXTEN})
exten => _1023XX,1,Dial(SIP/${EXTEN:2})
exten => _1023XX10,1,Dial(SIP/${EXTEN:2:4})
exten => _22XX,1,Dial(SIP/minsk/${EXTEN})
exten => _21XX,1,Dial(SIP/minsk/${EXTEN})
exten => _1XXX,1,Dial(SIP/minsk/${EXTEN})
13:04:55
#[ ]

13:05:00
#apt-get install samba
Creating config file /etc/samba/smb.conf with new version
Setting up samba (2:3.5.6~dfsg-3squeeze9) ...
Generating /etc/default/samba...
tdbsam_open: Converting version 0.0 database to version 4.0.
tdbsam_convert_backup: updated /var/lib/samba/passdb.tdb file.
account_policy_get: tdb_fetch_uint32 failed for type 1 (min password length), returning 0
account_policy_get: tdb_fetch_uint32 failed for type 2 (password history), returning 0
account_policy_get: tdb_fetch_uint32 failed for type 3 (user must logon to change password), returning 0
account_policy_get: tdb_fetch_uint32 failed for type 4 (maximum password age), returning 0
account_policy_get: tdb_fetch_uint32 failed for type 5 (minimum password age), returning 0
...
Importing account for nobody...ok
Importing account for user...ok
Adding group `sambashare' (GID 118) ...
Done.
update-alternatives: using /usr/bin/smbstatus.samba3 to provide /usr/bin/smbstatus (smbstatus) in auto mode.
Starting Samba daemons: nmbd smbd.
Setting up samba-common-bin (2:3.5.6~dfsg-3squeeze9) ...
update-alternatives: using /usr/bin/nmblookup.samba3 to provide /usr/bin/nmblookup (nmblookup) in auto mode.
update-alternatives: using /usr/bin/net.samba3 to provide /usr/bin/net (net) in auto mode.
update-alternatives: using /usr/bin/testparm.samba3 to provide /usr/bin/testparm (testparm) in auto mode.
13:09:57
#smbpasswd -a user
New SMB password:
Retype new SMB password:
13:10:04
#ls -ld /var/spool/monitor
ls: cannot access /var/spool/monitor: No such file or directory
13:11:42
#ls -ld /var/spool/asterisk/monitor
drwxr-x--- 2 asterisk asterisk 4096 Jan 17 18:44 /var/spool/asterisk/monitor
13:11:45
#vim /etc/group
--- /tmp/l3-saved-12525.5994.12378	2013-04-09 14:11:53.000000000 +0300
+++ /etc/group	2013-04-09 14:11:59.000000000 +0300
@@ -53,6 +53,6 @@
 Debian-gdm:x:114:
 scanner:x:115:saned,user
 saned:x:116:
-user:x:1000:
+user:x:1000:asterisk
 asterisk:x:117:
 sambashare:x:118:

Файлы

  • /etc/asterisk/sip.conf
  • /etc/default/isc-dhcp-server
  • /etc/asterisk/sip.conf
    >
    [general]
    context=default
    ; SIP-peer
    [2301]
    type=friend
    secret=1234
    host=dynamic
    
    /etc/default/isc-dhcp-server
    >
    # Defaults for dhcp initscript
    # sourced by /etc/init.d/dhcp
    # installed at /etc/default/isc-dhcp-server by the maintainer scripts
    #
    # This is a POSIX shell fragment
    #
    # On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
    #       Separate multiple interfaces with spaces, e.g. "eth0 eth1".
    INTERFACES=""
    

    Статистика

    Время первой команды журнала14:34:51 2013- 4- 8
    Время последней команды журнала13:11:45 2013- 4- 9
    Количество командных строк в журнале100
    Процент команд с ненулевым кодом завершения, % 7.00
    Процент синтаксически неверно набранных команд, % 0.00
    Суммарное время работы с терминалом *, час 3.38
    Количество командных строк в единицу времени, команда/мин 0.49
    Частота использования команд
    vim23|====================| 20.35%
    ls10|========| 8.85%
    asterisk8|=======| 7.08%
    dpkg7|======| 6.19%
    [6|=====| 5.31%
    grep6|=====| 5.31%
    /etc/init.d/asterisk5|====| 4.42%
    apt-get5|====| 4.42%
    apt-cache5|====| 4.42%
    less4|===| 3.54%
    cat3|==| 2.65%
    #2|=| 1.77%
    mv2|=| 1.77%
    mii-tool2|=| 1.77%
    ps2|=| 1.77%
    ping2|=| 1.77%
    chown2|=| 1.77%
    iptables2|=| 1.77%
    bash2|=| 1.77%
    mkdir1|| 0.88%
    smbpasswd1|| 0.88%
    fg1|| 0.88%
    chmod1|| 0.88%
    wc1|| 0.88%
    echo1|| 0.88%
    ~1|| 0.88%
    w1|| 0.88%
    8000,1,Playback(welcome)1|| 0.88%
    tcpdump1|| 0.88%
    >1|| 0.88%
    ssh1|| 0.88%
    exten1|| 0.88%
    exit1|| 0.88%
    .vimrc1|| 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$