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

Содержание

Журнал

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

/dev/pts/2
14:43:55
#mv /etc/asterisk/iax.conf /etc/asterisk/iax.conf.orig

14:45:58
#cp /etc/asterisk/sip.conf /etc/asterisk/iax.conf

14:46:09
#vi /etc/asterisk/iax
--- /tmp/l3-saved-8816.8855.31869	2010-10-28 15:46:18.000000000 +0300
+++ /etc/asterisk/iax.conf	2010-10-28 15:53:22.000000000 +0300
@@ -1,15 +1,17 @@
 [general]
 context=default                 ; Default context for incoming calls
 allowoverlap=no                 ; Disable overlap dialing support. (Default is yes)
-bindport=5060                   ; UDP Port to bind to (SIP standard port is 5060)
-bindaddr=0.0.0.0                ; IP address to bind to (0.0.0.0 binds to all)
+;bindport=5060                   ; UDP Port to bind to (SIP standard port is 5060)
+;bindaddr=0.0.0.0                ; IP address to bind to (0.0.0.0 binds to all)
 srvlookup=yes                   ; Enable DNS SRV lookups on outbound calls
+trunk=yes
+;authentication=md5
 
 register=>mn:1234@192.168.111.1/bb
 register=>mn:1234@192.168.110.1/br
 register=>mn:1234@192.168.109.1/gm
 
-[authentication]
+;[authentication]
 
 [2201]
 type=friend
@@ -21,7 +23,6 @@
 mailbox=2201
 callgroup=1
 pickupgroup=1
- 
 
 [2202]
 type=friend
@@ -61,23 +62,23 @@
 allow=alaw
 ;canreinvite=no
 
-[bb]
-type=friend
-secret=1234
-host=dynamic
-username=mn
-context=group1
-
-[br]
-type=friend
-secret=1234
-host=dynamic
-username=mn
-
-[gm]
-type=friend
-secret=1234
-host=dynamic
-username=mn
-
-
+;:[bb]
+;type=friend
+;secret=1234
+;host=dynamic
+;username=mn
+;context=group1
+;
+;[br]
+;type=friend
+;secret=1234
+;host=dynamic
+;username=mn
+;
+;[gm]
+;type=friend
+;secret=1234
+;host=dynamic
+;username=mn
+;
+;
14:46:09
#vi /etc/asterisk/iax.conf
--- /tmp/l3-saved-8816.32554.14420	2010-10-28 15:56:55.000000000 +0300
+++ /etc/asterisk/iax.conf	2010-10-28 15:58:39.000000000 +0300
@@ -7,7 +7,7 @@
 trunk=yes
 ;authentication=md5
 
-register=>mn:1234@192.168.111.1/bb
+register=>IAX2/mn:1234@192.168.111.1/bb
 register=>mn:1234@192.168.110.1/br
 register=>mn:1234@192.168.109.1/gm
 
14:53:22
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
    -- SIP/bb-08c73f68 answered SIP/2201-08c6fff0
    -- Native bridging SIP/2201-08c6fff0 and SIP/bb-08c73f68
[Oct 28 15:54:35] NOTICE[8298]: chan_sip.c:7515 sip_reg_timeout:    -- Registration for 'mn@192.168.110.1' timed out, trying again (Attempt #10)
  == Spawn extension (macro-dial-with-callerid, s, 2) exited non-zero on 'SIP/2201-08c6fff0' in macro 'dial-with-callerid'
  == Spawn extension (macro-dial-with-callerid, s, 2) exited non-zero on 'SIP/2201-08c6fff0'
[Oct 28 15:54:45] WARNING[8298]: chan_sip.c:12627 handle_response_register: Got 404 Not found on SIP register to service mn@192.168.109.1, giving up
[Oct 28 15:54:45] WARNING[8298]: chan_sip.c:12627 handle_response_register: Got 404 Not found on SIP register to service mn@192.168.111.1, giving up
linux12*CLI> quit
Executing last minute cleanups
Asterisk cleanly ending (0).
14:54:50
#/etc/init.d/asterisk reload
Reloading Asterisk PBX configuration files.
14:56:05
#less /etc/asterisk/iax.conf.orig
14:58:39
#vi /etc/asterisk/iax.conf.orig
14:59:04
#;
[general]
context=default                 ; Default context for incoming calls
es)
allowoverlap=no                 ; Disable overlap dialing support. (Default is yy
0)indport=5060                   ; UDP Port to bind to (SIP standard port is 5066
;bindaddr=0.0.0.0                ; IP address to bind to (0.0.0.0 binds to all)
srvlookup=yes                   ; Enable DNS SRV lookups on outbound calls
"/etc/asterisk/iax.conf" 84L, 1495C
register=>mn:1234@192.168.109.1/gm
          mn:1234@192.168.111.1
...
type=friend
secret=1234
;canreinvite=no
mailbox=2201
callgroup=1
[2202]
"/etc/asterisk/iax.conf" 84L, 1481C written
host=dynamic
callerid="Andrey_2201"
context=group1                 ; group1 context for incoming calls
14:59:58
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
2202             (Unspecified)   (D)  255.255.255.255  0             Unmonitored
2201             (Unspecified)   (D)  255.255.255.255  0             Unmonitored
5 iax2 peers [0 online, 0 offline, 5 unmonitored]
[Oct 28 16:00:45] NOTICE[8290]: chan_iax2.c:5535 register_verify: No registration for peer 'bb' (from 192.168.111.1)
[Oct 28 16:00:45] NOTICE[8291]: chan_iax2.c:5535 register_verify: No registration for peer 'bb' (from 192.168.111.1)
[Oct 28 16:00:47] NOTICE[8287]: chan_iax2.c:5535 register_verify: No registration for peer 'br' (from 192.168.110.1)
[Oct 28 16:00:47] NOTICE[8288]: chan_iax2.c:5535 register_verify: No registration for peer 'br' (from 192.168.110.1)
linux12*CLI> quit
Executing last minute cleanups
Asterisk cleanly ending (0).
15:00:55
#vi /etc/asterisk/iax.conf
--- /tmp/l3-saved-8816.9802.5879	2010-10-28 16:00:59.000000000 +0300
+++ /etc/asterisk/iax.conf	2010-10-28 16:01:38.000000000 +0300
@@ -62,23 +62,23 @@
 allow=alaw
 ;canreinvite=no
 
-;:[bb]
-;type=friend
-;secret=1234
-;host=dynamic
-;username=mn
-;context=group1
-;
-;[br]
-;type=friend
-;secret=1234
-;host=dynamic
-;username=mn
-;
-;[gm]
-;type=friend
-;secret=1234
-;host=dynamic
-;username=mn
-;
-;
+[bb]
+type=friend
+secret=1234
+host=dynamic
+username=mn
+context=group1
+
+[br]
+type=friend
+secret=1234
+host=dynamic
+username=mn
+
+[gm]
+type=friend
+secret=1234
+host=dynamic
+username=mn
+
+
15:02:09
#vi /etc/asterisk/iax.conf
--- /tmp/l3-saved-8816.29045.11833	2010-10-28 16:02:10.000000000 +0300
+++ /etc/asterisk/iax.conf	2010-10-28 16:04:31.000000000 +0300
@@ -5,9 +5,9 @@
 ;bindaddr=0.0.0.0                ; IP address to bind to (0.0.0.0 binds to all)
 srvlookup=yes                   ; Enable DNS SRV lookups on outbound calls
 trunk=yes
-;authentication=md5
 
 register=>mn:1234@192.168.111.1
+register=>mn:1234@192.168.111.1
 register=>mn:1234@192.168.110.1
 register=>mn:1234@192.168.109.1
 
15:08:16
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-8816.20601.9553	2010-10-28 16:08:27.000000000 +0300
+++ /etc/asterisk/extensions.conf	2010-10-28 16:09:17.000000000 +0300
@@ -136,7 +136,7 @@
 ;exten =>_21XX,1,Dial(SIP/bb/${EXTEN})
 
 [international]
-exten =>_XXXX,1,Dial(SIP/bb/${EXTEN})
+exten =>_XXXX,1,Dial(IAX2/bb/${EXTEN})
 
 [group1]
 include => local
15:09:17
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
  == Auto fallthrough, channel 'SIP/2201-08c68ce0' status is 'CONGESTION'
linux12*CLI>
linux12*CLI>
linux12*CLI>
linux12*CLI>
linux12*CLI>
linux12*CLI>
linux12*CLI> quit
Executing last minute cleanups
Asterisk cleanly ending (0).
15:12:22
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-8816.25027.17760	2010-10-28 16:12:23.000000000 +0300
+++ /etc/asterisk/extensions.conf	2010-10-28 16:13:27.000000000 +0300
@@ -127,13 +127,13 @@
 exten => 0,1,Goto(menu,s,start)
 
 [national]
-exten => _19XX,1,Macro(dial-with-callerid,SIP/gm/${EXTEN})
-exten => _20XX,1,Macro(dial-with-callerid,SIP/br/${EXTEN})
-exten => _21XX,1,Macro(dial-with-callerid,SIP/bb/${EXTEN})
-
-;exten =>_19XX,1,Dial(SIP/gm/${EXTEN})
-;exten =>_20XX,1,Dial(SIP/br/${EXTEN})
-;exten =>_21XX,1,Dial(SIP/bb/${EXTEN})
+exten => _19XX,1,Macro(dial-with-callerid,IAX2/gm/${EXTEN})
+exten => _20XX,1,Macro(dial-with-callerid,IAX2/br/${EXTEN})
+exten => _21XX,1,Macro(dial-with-callerid,IAX2/bb/${EXTEN})
+
+;exten =>_19XX,1,Dial(IAX2/gm/${EXTEN})
+;exten =>_20XX,1,Dial(IAX2/br/${EXTEN})
+;exten =>_21XX,1,Dial(IAX2/bb/${EXTEN})
 
 [international]
 exten =>_XXXX,1,Dial(IAX2/bb/${EXTEN})
15:13:27
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
    -- Called bb/1601
    -- Call accepted by 192.168.111.1 (format gsm)
    -- Format for call is gsm
    -- IAX2/bb-11809 is circuit-busy
    -- Hungup 'IAX2/bb-11809'
  == Everyone is busy/congested at this time (1:0/1/0)
  == Auto fallthrough, channel 'SIP/2201-08c68ce0' status is 'CONGESTION'
linux12*CLI> quit
Executing last minute cleanups
Asterisk cleanly ending (0).
15:18:02
#vi /etc/asterisk/extensions.conf
--- /tmp/l3-saved-8816.11433.3033	2010-10-28 16:18:07.000000000 +0300
+++ /etc/asterisk/extensions.conf	2010-10-28 16:23:35.000000000 +0300
@@ -66,15 +66,15 @@
 exten =>2260,1,MeetMe(100,M)
 exten =>2261,1,MeetMe(100,Mm)
 exten =>2262,1,Meetme(100,Mt)
-exten => 2201,1,Dial(SIP/2201||tT)
+exten => 2201,1,Dial(IAX2/2201||tT)
 exten => 2250,1,Answer
 exten => 2250,n,Festival(Festival  is  a  general  purpose  text-to-speech  system.  As well as simply rendering text as speech it can be used in an interactive command mode for testing and developing various aspects of speech synthesis technology)
 ;exten => 2250,n,Wait(1)
 ;exten => 2250,n,Background(damo-thanks)
 ;exten => 2250,n,Hangup
 exten =>2281,1,Queue(queue1)
-exten =>2280,1,Dial(SIP/2202&SIP/2203)
-exten =>2280,1,Dial(SIP/2202&SIP/2203)
+exten =>2280,1,Dial(IAX2/2202&IAX2/2203)
+exten =>2280,1,Dial(IAX2/2202&IAX2/2203)
 exten =>_22XX,1,SetMusicOnhold(default)
 exten => _22XX,n,Macro(answer-with-monitor,${EXTEN})
 exten => 2296,1,VoiceMailMain()
15:23:35
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
    -- Called 2202
    -- Called 2203
    -- SIP/2202-08c6a938 is ringing
    -- SIP/2203-08c81b90 is ringing
    -- SIP/2202-08c6a938 answered SIP/2201-08c68ce0
    -- Native bridging SIP/2201-08c68ce0 and SIP/2202-08c6a938
  == Spawn extension (group1, 2280, 1) exited non-zero on 'SIP/2201-08c68ce0'
linux12*CLI> quit
Executing last minute cleanups
Asterisk cleanly ending (0).
15:24:22
#vi /etc/asterisk/extensions.conf
15:26:11
#:
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
[Oct 28 16:27:01] WARNING[9448]: app_voicemail.c:2862 leave_voicemail: No entry in voicemail config file for '2280'
    -- Executing [s@macro-answer-with-monitor:9] Hangup("SIP/2201-08c68ce0", "") in new stack
  == Spawn extension (macro-answer-with-monitor, s, 9) exited non-zero on 'SIP/2201-08c68ce0' in macro 'answer-with-monitor'
  == Spawn extension (macro-answer-with-monitor, s, 9) exited non-zero on 'SIP/2201-08c68ce0'
    -- Executing [h@macro-answer-with-monitor:1] StopMonitor("SIP/2201-08c68ce0", "") in new stack
[Oct 28 16:27:01] NOTICE[9448]: res_monitor.c:339 ast_monitor_stop: monitor executing ( nice -n 19 sox -m "/var/spool/asterisk/monitor/voice-2280-2201-1288272421-in.wav" "/var/spool/asterisk/monitor/voice-2280-2201-1288272421-out.wav" "/var/spool/asterisk/monitor/voice-2280-2201-1288272421.wav"  && rm -f "/var/spool/asterisk/monitor/voice-2280-2201-1288272421-"* ) &
    -- Executing [h@macro-answer-with-monitor:2] System("SIP/2201-08c68ce0", "lame /var/spool/asterisk/monitor/voice-2280-2201-1288272421.wav /var/spool/asterisk/monitor/voice-2280-2201-1288272421.mp3") in new stack
linux12*CLI> quit
Executing last minute cleanups
Asterisk cleanly ending (0).
15:27:16
#vi /etc/asterisk/extensions.conf
15:27:41
#vi /etc/asterisk/extensions.conf
15:33:15
#vi /etc/asterisk/extensions.conf
15:35:40
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
bb/mn            192.168.111.1   (D)  255.255.255.255  4569          OK (2 ms)
2205             (Unspecified)   (D)  255.255.255.255  0             Unmonitored
2204             (Unspecified)   (D)  255.255.255.255  0             Unmonitored
2203             (Unspecified)   (D)  255.255.255.255  0             Unmonitored
2202             (Unspecified)   (D)  255.255.255.255  0             Unmonitored
2201             (Unspecified)   (D)  255.255.255.255  0             Unmonitored
8 iax2 peers [3 online, 0 offline, 5 unmonitored]
linux12*CLI> quit
Executing last minute cleanups
Asterisk cleanly ending (0).
15:39:57
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
0 agents online
linux12*CLI> tra
transcoder  transfer
linux12*CLI> trans
transcoder  transfer
linux12*CLI> transcoder show
No Zaptel transcoders found.
linux12*CLI> quit
Executing last minute cleanups
Asterisk cleanly ending (0).
/dev/pts/2
15:49:06
#vi /etc/asterisk/ext
15:49:06
#vi /etc/asterisk/extensions.conf
15:54:07
#vi /etc/asterisk/extensions.conf
прошло 10 минут
/dev/pts/4
16:04:12
#vi outgoing_calls
--- /dev/null	2010-10-28 13:49:32.502306587 +0300
+++ outgoing_calls	2010-10-28 17:14:04.000000000 +0300
@@ -0,0 +1,3 @@
+Channel:SIP/2201
+Extension:2296
+Context:local
/dev/pts/6
16:11:59
#vi /etc/asterisk/ext
16:11:59
#vi /etc/asterisk/extensions.conf
/dev/pts/4
16:14:04
#chown asterisk:asterisk outgoing_calls

16:14:32
#cp -p outgoing_calls /var/spool/asterisk/outgoing/

16:17:32
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
    -- Saved useragent "3CXPhone 4.0.10858.0" for peer 2202
[Oct 28 17:36:13] NOTICE[8298]: chan_sip.c:15500 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2202
[Oct 28 17:36:54] NOTICE[8287]: chan_iax2.c:8882 __iax2_poke_noanswer: Peer 'gm' is now UNREACHABLE! Time: 5
[Oct 28 17:40:54] NOTICE[8284]: chan_iax2.c:8882 __iax2_poke_noanswer: Peer 'br' is now UNREACHABLE! Time: 20
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
Disconnected from Asterisk server
Executing last minute cleanups
Asterisk cleanly ending (0).

Пятница (10/29/10)

/dev/pts/0
08:44:44
#lspci
00:00.0 Host bridge: Intel Corporation 82P965/G965 Memory Controller Hub (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82G965 Integrated Graphics Controller (rev 02)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev f2)
00:1f.0 ISA bridge: Intel Corporation 82801HB/HR (ICH8/R) LPC Interface Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801H (ICH8 Family) 4 port SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02)
00:1f.5 IDE interface: Intel Corporation 82801H (ICH8 Family) 2 port SATA IDE Controller (rev 02)
01:00.0 IDE interface: JMicron Technologies, Inc. JMB368 IDE controller
02:00.0 Ethernet controller: Attansic Technology Corp. L1 Gigabit Ethernet Adapter (rev b0)
03:01.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)
прошло 29 минут
/dev/pts/0
09:14:14
#root
bash: root: command not found
/dev/pts/2
09:14:18
#gedit
bash: gedit: command not found
/dev/pts/0
09:14:46
#ssh root@192.168.108.1
root@192.168.108.1's password:
Linux linux8.unix.nt 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Oct 29 10:12:52 2010 from 192.168.112.2
l3-agent is already running: pid=2242; pidfile=/root/.lilalo/l3-agent.pid
09:15:34
#screen -x
/dev/pts/2
09:17:29
#apt-get install gedit
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  docbook-xml gedit-common gnome-keyring gnome-mime-data gnome-mount iso-codes
  libart-2.0-2 libavahi-client3 libavahi-common-data libavahi-common3
  libavahi-glib1 libbonobo2-0 libbonobo2-common libbonoboui2-0
  libbonoboui2-common libeel2-2.20 libeel2-data libffi5 libgail-common
  libgail18 libgnome-keyring0 libgnome-menu2 libgnome2-0 libgnome2-common
  libgnomecanvas2-0 libgnomecanvas2-common libgnomeui-0 libgnomeui-common
...
Setting up libnautilus-extension1 (2.20.0-7) ...
Setting up gnome-mount (0.7-2) ...
Setting up libgnomevfs2-bin (1:2.22.0-5) ...
Setting up libsmbclient (2:3.2.5-4lenny13) ...
Setting up libgnomevfs2-extra (1:2.22.0-5) ...
Setting up libpam-gnome-keyring (2.22.3-2) ...
Setting up python-pyorbit (2.14.3-2) ...
Setting up python-gnome2 (2.22.0-1) ...
Setting up zenity (2.22.1-2) ...
Processing triggers for python-support ...
09:18:52
#grdit
bash: grdit: command not found
09:18:56
#gedit

09:19:08
#zt
ztcfg            ztmonitor        ztscan           zttest
ztdiag           zt_registration  ztspeed          zttool
09:19:08
#ztmonitor
Usage: ztmonitor <channel num> [-v[v]] [-m] [-o] [-p] [-f FILE | -r FILE1 -t FILE2] [-F FILE | -R FILE1 -T FILE2]
Options:
        -v: Visual mode.  Implies -m.
        -vv: Visual/Verbose mode.  Implies -m.
        -m: Separate rx/tx streams.
        -o: Output audio via OSS.  Note: Only 'normal' combined rx/tx streams are output via OSS.
        -p: Get a pre-echocanceled stream.
        -f FILE: Save combined rx/tx stream to FILE.  Cannot be used with -m.
        -r FILE: Save rx stream to FILE.  Implies -m.
        -t FILE: Save tx stream to FILE.  Implies -m.
...
Save a stream to a file
        ztmonitor 1 -f stream.raw
Visualize an rx/tx stream and save them to separate files.
        ztmonitor 1 -v -r streamrx.raw -t streamtx.raw
Play a combined rx/tx stream via OSS and save it to a file
        ztmonitor 1 -o -f stream.raw
Save a combined normal rx/tx stream and a combined 'preecho' rx/tx stream to files
        ztmonitor 1 -p -f stream.raw -F streampreecho.raw
Save a normal rx/tx stream and a 'preecho' rx/tx stream to separate files
        ztmonitor 1 -m -p -r streamrx.raw -t streamtx.raw -R streampreechorx.raw -T streampreechotx.raw
09:26:13
#apt-get install pidgin
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  gstreamer0.10-alsa gstreamer0.10-plugins-base gstreamer0.10-plugins-good
  gstreamer0.10-x libaa1 libavc1394-0 libcaca0 libcdio7 libcdparanoia0
  libcucul0 libdv4 libflac8 libgadu3 libgstreamer-plugins-base0.10-0
  libgstreamer0.10-0 libgtkspell0 libhesiod0 libiec61883-0 libmeanwhile1
  libnspr4-0d libnss3-1d liboil0.3 libpurple-bin libpurple0 libraw1394-8
  libsasl2-modules libshout3 libsoup2.4-1 libtag1c2a libtheora0
...
Setting up libsasl2-modules (2.1.22.dfsg1-23+lenny1) ...
Setting up libpurple0 (2.4.3-4lenny7) ...
Setting up python-dbus (0.82.4-2) ...
Remove stale byte-compiled files...
Setting up libpurple-bin (2.4.3-4lenny7) ...
Setting up libvisual-0.4-plugins (0.4.0.dfsg.1-2) ...
Setting up libxss1 (1:1.1.3-1) ...
Setting up pidgin (2.4.3-4lenny7) ...
Setting up oss-compat (0.0.4+nmu2) ...
Processing triggers for python-support ...
прошло 18 минут
/dev/pts/4
09:44:57
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
bb/mn            192.168.111.1   (D)  255.255.255.255  4569          OK (5 ms)
2205             (Unspecified)   (D)  255.255.255.255  0             Unmonitored
2204             (Unspecified)   (D)  255.255.255.255  0             Unmonitored
2203             (Unspecified)   (D)  255.255.255.255  0             Unmonitored
2202             (Unspecified)   (D)  255.255.255.255  0             Unmonitored
2201             (Unspecified)   (D)  255.255.255.255  0             Unmonitored
8 iax2 peers [3 online, 0 offline, 5 unmonitored]
linux12*CLI> quit
Executing last minute cleanups
Asterisk cleanly ending (0).
09:48:45
#history | grep *123
  499  history | grep *123
09:49:14
#history | grep "*123"
  499  history | grep *123
  500  history | grep "*123"
09:49:28
#history | less
09:49:47
#history | grep "apt-get install"
   72  apt-get install libsox-fmt-mp3
  100  apt-get install lime
  102  apt-get install lime
  139  apt-get install samba
  153  apt-get install screen
  213  apt-get install festival
  246  apt-get install mpg123
  411  apt-get install zaptel-source
  502  history | grep apt-get install
  503  history | grep "apt-get install"
прошло >3 часов
/dev/pts/4
13:07:27
#apt-cache search jabber | less
13:07:51
#apt-get install ejabberd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  erlang-base erlang-nox libsctp1 lksctp-tools
Suggested packages:
  libunix-syslog-perl erlang-x11 erlang erlang-manpages erlang-doc-html
The following NEW packages will be installed:
  ejabberd erlang-base erlang-nox libsctp1 lksctp-tools
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
...
Setting up libsctp1 (1.0.9.dfsg-1) ...
Setting up erlang-base (1:12.b.3-dfsg-4) ...
Searching for services which depend on erlang and should be started...none found.
Setting up erlang-nox (1:12.b.3-dfsg-4) ...
Setting up ejabberd (2.0.1-6+lenny2) ...
adduser: Warning: The home directory `/var/lib/ejabberd' does not belong to the user you are currently creating.
Generating SSL certificate /etc/ejabberd/ejabberd.pem...
Creating config file /etc/ejabberd/ejabberd.cfg with new version
Starting jabber server: ejabberd.
Setting up lksctp-tools (1.0.9.dfsg-1) ...
13:09:15
#dpkg-reconfigure ejabberd
       │ verification.                                                 │
       │                                                               │
       │ The password for the admin account again for verification:    │
       │                                                               │
       â”*******________________________________________________________ │
       │                                                               │
       │                          <Ok>k>                               │
       │                                                               │
       └───────────────────────────────────────────────────────────────┘
Replacing config file /etc/ejabberd/ejabberd.cfg with new version
Starting jabber server: ejabberd.
Waiting for ejabberd to register admin user..
Admin user "admin@linux12.mn.unix.ny" is registered successfully.
прошло 16 минут
13:25:20
#dpkg-reconfigure ejabberd
Package configuration
       ┌───────────────────┤ Configuring ejabberd ├────────────────────┐
       │ Please reenter the password for the administrative user for   │
       │ verification.                                                 │
       │                                                               │
       │ The password for the admin account again for verification:    │
       │                                                               │
       â”*******________________________________________________________ │
       │                                                               │
       │                          <Ok>k>                               │
       │                                                               │
       └───────────────────────────────────────────────────────────────┘
Replacing config file /etc/ejabberd/ejabberd.cfg with new version
Starting jabber server: ejabberd..
Waiting for ejabberd to register admin user
Admin user "admin@mn.unix.ny" is registered successfully.
13:26:12
#host mn.unix.nt
mn.unix.nt has address 192.168.112.1
mn.unix.nt mail is handled by 10 linux12.unix.nt.
13:26:23
#host tl.unix.nt
tl.unix.nt has address 192.168.108.1
tl.unix.nt mail is handled by 10 linux8.unix.nt.
13:26:32
#netstat -tunp | cut -c 80-| sort -u
 2724/ssh
 3053/ssh
 4674/sshd: andrey [
 5056/epmd
 5737/beam
 PID/Program name
13:27:52
#netstat -tunp | grep jabber

13:28:18
#/etc/init.d/
acpid                  ifupdown               rcS
asterisk               ifupdown-clean         reboot
atd                    keymap.sh              rmnologin
bind9                  killprocs              rsync
bootlogd               lpd                    rsyslog
bootmisc.sh            lvm2                   samba
checkfs.sh             module-init-tools      screen-cleanup
checkroot.sh           mountall-bootclean.sh  sendmail
console-cyrillic       mountall.sh            sendsigs
console-screen.sh      mountdevsubfs.sh       single
...
dhcp3-server           mountnfs.sh            stop-bootlogd-single
ejabberd               mountoverflowtmp       sudo
exim4                  mtab.sh                udev
festival               networking             udev-mtab
glibc.sh               nfs-common             umountfs
hal                    openbsd-inetd          umountnfs.sh
halt                   portmap                umountroot
hostname.sh            procps                 urandom
hwclockfirst.sh        rc                     x11-common
hwclock.sh             rc.local               zaptel
13:28:18
#/etc/init.d/
acpid                  ifupdown               rcS
asterisk               ifupdown-clean         reboot
atd                    keymap.sh              rmnologin
bind9                  killprocs              rsync
bootlogd               lpd                    rsyslog
bootmisc.sh            lvm2                   samba
checkfs.sh             module-init-tools      screen-cleanup
checkroot.sh           mountall-bootclean.sh  sendmail
console-cyrillic       mountall.sh            sendsigs
console-screen.sh      mountdevsubfs.sh       single
...
dhcp3-server           mountnfs.sh            stop-bootlogd-single
ejabberd               mountoverflowtmp       sudo
exim4                  mtab.sh                udev
festival               networking             udev-mtab
glibc.sh               nfs-common             umountfs
hal                    openbsd-inetd          umountnfs.sh
halt                   portmap                umountroot
hostname.sh            procps                 urandom
hwclockfirst.sh        rc                     x11-common
hwclock.sh             rc.local               zaptel
13:28:18
#ls /etc/init.d/e
ejabberd  exim4
13:28:18
#ls /etc/init.d/e
ejabberd  exim4
13:28:18
#/etc/init.d/ejabberd start
Starting jabber server: ejabberd already running.
13:31:55
#apt-get install freetalk
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  beep dict gawk guile-1.8 guile-1.8-libs libloudmouth1-0 recode urlview
Suggested packages:
  dictd dict-server guile-1.8-doc mimedecode ncftp2 lftp ncftp
The following NEW packages will be installed:
  beep dict freetalk gawk guile-1.8 guile-1.8-libs libloudmouth1-0 recode
  urlview
...
Processing triggers for man-db ...
Setting up gawk (1:3.1.5.dfsg-4.1) ...
Setting up beep (1.2.2-22) ...
Setting up recode (3.6-15) ...
Setting up dict (1.10.11.dfsg-2) ...
Setting up guile-1.8-libs (1.8.5+1-4.1) ...
Setting up guile-1.8 (1.8.5+1-4.1) ...
Setting up libloudmouth1-0 (1.4.2-2) ...
Setting up freetalk (3.1-1) ...
Setting up urlview (0.9-18) ...
13:37:54
#freetalk
Welcome to freetalk! Running for the first time?
Performing some one-time initializations ...
Loading dictionary [/usr/share/dict/words]... [98569] words
Jabber ID: admin@mn.unix.nt
Password:
Connecting ...
Could not connect.
~\/~
~\/~
13:38:51
#freetalk
Loading dictionary [/usr/share/dict/words]... [98569] words
Jabber ID: admin@mn.unix.nt
Password:
Connecting ...
Could not connect.
~\/~
~\/~
~\/~
~\/~ ?
No such command or buddy. See /help
...
        display freetalk version information
/who - /who
        display buddy list
/whoami - /whoami
        display who is this
/whomomlikes - /whomomlikes
        same as /whoami
help - help [COMMAND]
        show help
~\/~ h
13:40:56
#freetalk
Loading dictionary [/usr/share/dict/words]... [98569] words
Jabber ID: andrey@mn.unix.nt
Password:
Connecting ...
Could not connect.
~\/~
13:42:11
#man freetalk
/dev/pts/2
13:42:53
#pidgin &
[1] 7218
/dev/pts/4
13:43:10
#freetalk -j andrey@mn.unix.nt
Loading dictionary [/usr/share/dict/words]... [98569] words
Password:
Connecting ...
Could not connect.
~\/~
13:43:39
#freetalk -j andrey@192.168.112.1
Loading dictionary [/usr/share/dict/words]... [98569] words
Password:
Connecting ...
Could not connect.
~\/~
/dev/pts/2
13:44:15
#top
top - 15:46:25 up  6:14,  5 users,  load average: 0.15, 0.28, 0.16
Tasks: 118 total,   1 running, 117 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.8%us,  0.2%sy,  0.0%ni, 99.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   3099904k total,   813632k used,  2286272k free,    73832k buffers
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
Swap:  2654200k total,        0k used,  2654200k free,   419388k cached
 2751 root      19  -1  362m  14m 7268 S    1  0.5   2:53.77 Xorg
 8166 root      20   0  2392 1132  876 R    1  0.0   0:00.02 top
    1 root      20   0  2104  684  588 S    0  0.0   0:01.28 init
    2 root      15  -5     0    0    0 S    0  0.0   0:00.00 kthreadd
...
    5 root      RT  -5     0    0    0 S    0  0.0   0:00.08 watchdog/0
    6 root      RT  -5     0    0    0 S    0  0.0   0:00.00 migration/1
    7 root      15  -5     0    0    0 S    0  0.0   0:00.10 ksoftirqd/1
    8 root      RT  -5     0    0    0 S    0  0.0   0:00.00 watchdog/1
   10 root      15  -5     0    0    0 S    0  0.0   0:00.46 events/1
   11 root      15  -5     0    0    0 S    0  0.0   0:00.00 khelper
   44 root      15  -5     0    0    0 S    0  0.0   0:00.10 kblockd/0
   45 root      15  -5     0    0    0 S    0  0.0   0:00.04 kblockd/1
   47 root      15  -5     0    0    0 S    0  0.0   0:00.00 kacpid
   48 root      15  -5     0    0    0 S    0  0.0   0:00.00 kacpi_notify
/dev/pts/4
13:44:42
#freetalk -j admin@192.168.112.1
Loading dictionary [/usr/share/dict/words]... [98569] words
Password:
Connecting ...
Could not connect.
~\/~
13:46:38
#freetalk -j test@192.168.112.1
Loading dictionary [/usr/share/dict/words]... [98569] words
Password:
Connecting ...
Could not connect.
~\/~
13:47:14
#freetalk -j test@linux12
Loading dictionary [/usr/share/dict/words]... [98569] words
Password:
Connecting ...
Could not connect.
~\/~
13:47:46
#/etc/init.d/ejabberd start
Starting jabber server: ejabberd already running.
13:49:14
#freetalk -j test@192.168.112.1
Loading dictionary [/usr/share/dict/words]... [98569] words
Password:
Connecting ...
Could not connect.
~\/~
13:49:19
#freetalk -j andrey@192.168.112.1
Loading dictionary [/usr/share/dict/words]... [98569] words
Password:
Connecting ...
Could not connect.
~\/~
13:49:29
#freetalk -j andrey@192.168.112.1
Loading dictionary [/usr/share/dict/words]... [98569] words
Password:
Connecting ...
Could not connect.
~\/~
13:51:14
#freetalk -r test2@192.168.112.1
--------------------
Registration
--------------------
Server: 192.168.112.1:5280
Could not connect.
13:51:31
#namp 192.168.112.1
bash: namp: command not found
13:53:43
#nmap 192.168.112.1
Starting Nmap 4.62 ( http://nmap.org ) at 2010-10-29 14:53 EEST
Interesting ports on linux12.unix.nt (192.168.112.1):
Not shown: 1707 closed ports
PORT     STATE SERVICE
22/tcp   open  ssh
25/tcp   open  smtp
53/tcp   open  domain
110/tcp  open  pop3
111/tcp  open  rpcbind
139/tcp  open  netbios-ssn
445/tcp  open  microsoft-ds
2000/tcp open  callbook
Nmap done: 1 IP address (1 host up) scanned in 0.096 seconds
13:53:48
#/etc/init.d/ejabberd stop
Stopping jabber server: ejabberd.
13:54:11
#/etc/init.d/ejabberd start
Starting jabber server: ejabberd.
14:02:04
#dpkg -L freetalk
/.
/usr
/usr/bin
/usr/bin/freetalk
/usr/share
/usr/share/info
/usr/share/info/freetalk.info.gz
/usr/share/freetalk
/usr/share/freetalk/extensions
/usr/share/freetalk/extensions/dict-buddy.scm
...
/usr/share/locale
/usr/share/locale/en@boldquot
/usr/share/locale/en@boldquot/LC_MESSAGES
/usr/share/locale/en@boldquot/LC_MESSAGES/freetalk.mo
/usr/share/locale/en@quot
/usr/share/locale/en@quot/LC_MESSAGES
/usr/share/locale/en@quot/LC_MESSAGES/freetalk.mo
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/freetalk.1.gz
14:02:26
#less /usr/share/doc/freetalk/examples/freetalk.scm
14:03:34
#ls /root/.freetalk/
downloads  extensions  freetalk.scm  history
14:03:46
#less /root/.freetalk/freetalk.scm
14:03:57
#vi /root/.freetalk/freetalk.scm
--- /tmp/l3-saved-4734.10072.16881	2010-10-29 15:04:06.000000000 +0300
+++ /root/.freetalk/freetalk.scm	2010-10-29 15:15:55.000000000 +0300
@@ -1,9 +1,9 @@
-; (ft-set-jid! "anand.avati@gmail.com")
-; (ft-set-server! "talk.google.com")
-; (ft-set-password! "p455w0rd")
-; (ft-set-sslconn! #t)
-; (ft-set-proxy! #f)
-; (ft-set-port! 5223)
+ (ft-set-jid! "andrey@mn.unix.nt")
+ (ft-set-server! "linux12.mn.unix.nt")
+ (ft-set-password! "1qaz2wsx")
+ (ft-set-sslconn! #t)
+ (ft-set-proxy! #f)
+ (ft-set-port! 5223)
 ; (add-hook! ft-login-hook
 ;            (lambda (status)
 ;              (if status
прошло 12 минут
14:16:45
#freetalk -j andrey@linux12.mn.unix.nt
sdsd
?
Loading dictionary [/usr/share/dict/words]... [98569] words
Connecting ...
Failed to resolve server: No such file or directory
~\/~
~\/~
~\/~ sdsd
No such command or buddy. See /help
~\/~ ?
No such command or buddy. See /help
~\/~
~\/~
14:17:32
#host
Usage: host [-aCdlriTwv] [-c class] [-N ndots] [-t type] [-W time]
            [-R number] [-m flag] hostname [server]
       -a is equivalent to -v -t ANY
       -c specifies query class for non-IN data
       -C compares SOA records on authoritative nameservers
       -d is equivalent to -v
       -l lists all hosts in a domain, using AXFR
       -i IP6.INT reverse lookups
       -N changes the number of dots allowed before root lookup is done
       -r disables recursive processing
       -R specifies number of retries for UDP packets
       -s a SERVFAIL response should stop query
       -t specifies the query type
       -T enables TCP/IP mode
       -v enables verbose output
       -w specifies to wait forever for a reply
       -W specifies how long to wait for a reply
       -4 use IPv4 query transport only
       -6 use IPv6 query transport only
       -m set memory debugging flag (trace|record|usage)
14:17:34
#host mn.unix.nt
mn.unix.nt has address 192.168.112.1
mn.unix.nt mail is handled by 10 linux12.unix.nt.
14:17:49
#freetalk -j andrey@mn.unix.nt
Loading dictionary [/usr/share/dict/words]... [98569] words
Connecting ...
Failed to resolve server: No such file or directory
~\/~
14:19:03
#less /etc/h
14:19:03
#less /etc/host
14:19:03
#less /etc/hostname
14:19:21
#freetalk -j andrey@mn.unix.nt
Loading dictionary [/usr/share/dict/words]... [98569] words
Connecting ...
Failed to resolve server: No such file or directory
~\/~
прошло 19 минут
/dev/pts/4
14:39:08
#vi /etc/ejabberd/ejabberd.cfg
--- /tmp/l3-saved-8099.7488.1369	2010-10-29 15:53:22.000000000 +0300
+++ /etc/ejabberd/ejabberd.cfg	2010-10-29 15:53:51.000000000 +0300
@@ -499,7 +499,7 @@
 		 ]},
   {mod_roster,   []},
   %%{mod_service_log,[]},
-  %%{mod_shared_roster,[]},
+  {mod_shared_roster,[]},
   {mod_stats,    []},
   {mod_time,     []},
   {mod_vcard,    []},
прошло 11 минут
/dev/pts/2
14:50:27
#man top
/dev/pts/4
14:53:51
#/etc/init.d/ejabberd restart
Restarting jabber server: ejabberd.
14:54:05
#asterisk -rcv
Asterisk 1.4.21.2~dfsg-3+lenny1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
This package has been modified for the Debian GNU/Linux distribution
Please report all bugs to http://bugs.debian.org/asterisk
=========================================================================
...
      65536 (1 << 16)  (0x10000)  image       jpeg   (JPEG image)
     131072 (1 << 17)  (0x20000)  image        png   (PNG image)
     262144 (1 << 18)  (0x40000)  video       h261   (H.261 Video)
     524288 (1 << 19)  (0x80000)  video       h263   (H.263 Video)
    1048576 (1 << 20) (0x100000)  video      h263p   (H.263+ Video)
    2097152 (1 << 21) (0x200000)  video       h264   (H.264 Video)
The 'show codecs' command is deprecated and will be removed in a future release. Please use 'core show codecs' instead.
linux12*CLI> quit
Executing last minute cleanups
Asterisk cleanly ending (0).

Статистика

Время первой команды журнала14:43:55 2010-10-28
Время последней команды журнала14:54:05 2010-10-29
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, % 9.90
Процент синтаксически неверно набранных команд, % 3.96
Суммарное время работы с терминалом *, час 4.42
Количество командных строк в единицу времени, команда/мин 0.38
Частота использования команд
vi20|==================| 18.52%
freetalk15|=============| 13.89%
asterisk10|=========| 9.26%
less8|=======| 7.41%
/etc/init.d/ejabberd5|====| 4.63%
host4|===| 3.70%
apt-get4|===| 3.70%
history4|===| 3.70%
grep4|===| 3.70%
ls3|==| 2.78%
man2|=| 1.85%
cp2|=| 1.85%
dpkg-reconfigure2|=| 1.85%
netstat2|=| 1.85%
/etc/init.d/2|=| 1.85%
gedit2|=| 1.85%
dpkg1|| 0.93%
screen1|| 0.93%
sort1|| 0.93%
/etc/init.d/asterisk1|| 0.93%
nmap1|| 0.93%
root1|| 0.93%
namp1|| 0.93%
cut1|| 0.93%
mv1|| 0.93%
:1|| 0.93%
pidgin1|| 0.93%
top1|| 0.93%
chown1|| 0.93%
lspci1|| 0.93%
zt1|| 0.93%
ztmonitor1|| 0.93%
ssh1|| 0.93%
apt-cache1|| 0.93%
grdit1|| 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$