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

Содержание

Журнал

Четверг (10/20/11)

/dev/pts/16
11:28:26
#rm /var/spool/asterisk/sounds/menu/ramsh.gsm

11:28:45
#rm /var/spool/asterisk/sounds/menu/01.gsm

11:34:28
#rm .*.gsm
rm: cannot remove `.*.gsm': No such file or directory
11:34:33
#rm /var/spool/asterisk/sounds/menu/*.gsm

прошло 86 минут
/dev/pts/18
13:00:41
#nautilus
No protocol specified
Could not parse arguments: Cannot open display:
/dev/pts/18
13:06:27
#smbstatus
Samba version 3.5.6
PID     Username      Group         Machine
-------------------------------------------------------------------
2049      user          user          rf510        (192.168.20.200)
Service      pid     machine       Connected at
-------------------------------------------------------
monitor      2049   rf510         Thu Oct 20 09:31:30 2011
Locked files:
Pid          Uid        DenyMode   Access      R/W        Oplock           SharePath   Name   Time
--------------------------------------------------------------------------------------------------
2049         1000       DENY_NONE  0x100081    RDONLY     NONE             /var/spool/asterisk/monitor   .   Thu Oct 20 09:31:30 2011
2049         1000       DENY_NONE  0x100081    RDONLY     NONE             /var/spool/asterisk/monitor   .   Thu Oct 20 09:31:35 2011
13:06:37
#smbstatus
Samba version 3.5.6
PID     Username      Group         Machine
-------------------------------------------------------------------
2049      user          user          rf510        (192.168.20.200)
Service      pid     machine       Connected at
-------------------------------------------------------
monitor      2049   rf510         Thu Oct 20 09:31:30 2011
Locked files:
Pid          Uid        DenyMode   Access      R/W        Oplock           SharePath   Name   Time
--------------------------------------------------------------------------------------------------
2049         1000       DENY_NONE  0x100081    RDONLY     NONE             /var/spool/asterisk/monitor   .   Thu Oct 20 09:31:30 2011
2049         1000       DENY_NONE  0x100081    RDONLY     NONE             /var/spool/asterisk/monitor   .   Thu Oct 20 09:31:35 2011
13:06:38
#apt-get install libsox-fmt-mp3
Reading package lists... Done
Building dependency tree
Reading state information... Done
libsox-fmt-mp3 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
/dev/pts/14
13:13:46
#cd /var/spool/asterisk/outgoing/

13:13:52
#touch 1.call

13:16:44
#ls
1.call
13:16:53
#nano 1.call
--- /tmp/l3-saved-7767.9884.21757	2011-10-20 14:17:02.000000000 +0300
+++ 1.call	2011-10-20 14:17:29.000000000 +0300
@@ -0,0 +1,5 @@
+Channel:SIP/3101
+Extension:9500
+Context:internal
+
+
13:17:58
#nano 1.call
13:18:37
#Channel:SIP/3101
Channel:SIP/3101
Extension:9500
Context:internal
13:18:43
#nano 1.call
--- /tmp/l3-saved-7767.8417.13658	2011-10-20 14:18:45.000000000 +0300
+++ 1.call	2011-10-20 14:18:53.000000000 +0300
@@ -1,3 +1,3 @@
-Channel:SIP/3101
+Channel:SIP/1201
 Extension:9500
 Context:internal
13:18:55
#Channel:SIP/1201
Channel:SIP/1201
Extension:9500
Context:internal
13:18:56
#ls
1.call
13:19:05
#cp 1.call /inst

13:19:15
#cat 1.call
Channel:SIP/1201
Extension:9500
Context:internal
13:19:27
#cat 1.call
Channel:SIP/1201
Extension:9500
Context:internal
13:20:47
#ls -l
total 4
-rw-r--r-- 1 root root 49 Oct 20 14:18 1.call
13:20:51
#cat 1.call
Channel:SIP/1201
Extension:9500
Context:internal
13:20:55
#ls -l
total 4
-rw-r--r-- 1 root root 49 Oct 20 14:18 1.call
13:21:49
#nano 1.call
прошла 21 минута
/dev/pts/16
13:43:46
#nano /etc/asterisk/sip.conf
/dev/pts/20
13:45:40
#ls /var/spool/asterisk/sounds/menu/
00.gsm  01.gsm  02.gsm  03.gsm  04.gsm  05.gsm  06.gsm  07.gsm  08.gsm  10.gsm
13:45:57
#ls -l /var/spool/asterisk/sounds/menu/
total 108
-rw-r----- 1 asterisk asterisk  1683 Oct 20 12:34 00.gsm
-rw-r----- 1 asterisk asterisk 26400 Oct 20 12:34 01.gsm
-rw-r----- 1 asterisk asterisk  7557 Oct 20 12:34 02.gsm
-rw-r----- 1 asterisk asterisk  9108 Oct 20 12:34 03.gsm
-rw-r----- 1 asterisk asterisk  1980 Oct 20 12:34 04.gsm
-rw-r----- 1 asterisk asterisk 24849 Oct 20 12:34 05.gsm
-rw-r----- 1 asterisk asterisk  7920 Oct 20 12:34 06.gsm
-rw-r----- 1 asterisk asterisk  4488 Oct 20 12:34 07.gsm
-rw-rw---- 1 asterisk asterisk  2838 Oct 20 13:59 08.gsm
-rw-rw---- 1 user     user      2079 Oct 20 14:40 10.gsm
13:46:36
#ls -l /var/spool/asterisk/sounds/menu/
total 108
-rw-r----- 1 asterisk asterisk  1683 Oct 20 12:34 00.gsm
-rw-r----- 1 asterisk asterisk 26400 Oct 20 12:34 01.gsm
-rw-r----- 1 asterisk asterisk  7557 Oct 20 12:34 02.gsm
-rw-r----- 1 asterisk asterisk  9108 Oct 20 12:34 03.gsm
-rw-r----- 1 asterisk asterisk  1980 Oct 20 12:34 04.gsm
-rw-r----- 1 asterisk asterisk 24849 Oct 20 12:34 05.gsm
-rw-r----- 1 asterisk asterisk  7920 Oct 20 12:34 06.gsm
-rw-r----- 1 asterisk asterisk  4488 Oct 20 12:34 07.gsm
-rw-rw---- 1 asterisk asterisk  2838 Oct 20 13:59 08.gsm
-rw-rw---- 1 asterisk asterisk  2079 Oct 20 14:40 10.gsm
13:46:38
#pwd
/home/user
прошло 10 минут
13:57:33
#cd /var/spool/asterisk/sounds/menu/*.gsm /inst
bash: cd: /var/spool/asterisk/sounds/menu/00.gsm: Not a directory
13:58:09
#cp /var/spool/asterisk/sounds/menu/*.gsm /inst

/dev/pts/4
13:59:38
#nano /etc/asterisk/sip.conf
прошло 65 минут
/dev/pts/3
15:04:52
#vim /etc/asterisk/extensions.conf
15:05:25
#{EXTEN:3})
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux2 (pid = 5252)
...
linux2*CLI>
  == Using SIP RTP CoS mark 5
  == Using SIP VRTP CoS mark 6
    -- Executing [1203@gr5:1] Answer("SIP/1201-0000003f", "") in new stack
    -- Executing [1203@gr5:2] SetMusicOnHold("SIP/1201-0000003f", "default") in new stack
    -- Executing [1203@gr5:3] Queue("SIP/1201-0000003f", "queue1") in new stack
    -- Started music on hold, class 'default', on SIP/1201-0000003f
[Oct 20 16:05:53] NOTICE[8853]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.20.201
linux2*CLI> quit
Executing last minute cleanups
15:06:06
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-8811.5251.22976	2011-10-20 16:06:08.000000000 +0300
+++ /etc/asterisk/extensions.conf	2011-10-20 16:06:33.000000000 +0300
@@ -153,9 +153,9 @@
 ;exten => 1203,1,Queue(queue1)
 
 
-exten => 1203,1,Answer
-exten => 1203,n,SetMusicOnHold(default)
-exten => 1203,n,Queue(queue1)
+;exten => 1203,1,Answer
+;exten => 1203,n,SetMusicOnHold(default)
+;exten => 1203,n,Queue(queue1)
 
 
 exten => 1211,1,MeetMe(1,cIM)
15:07:27
#asterisk -rvvvvv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux2 (pid = 5252)
...
  == MixMonitor close filestream
  == End MixMonitor Recording SIP/1202-00000042
linux2*CLI> database get 1203
Usage: database get <family> <key>
       Retrieves an entry in the Asterisk database for a given
       family and key.
linux2*CLI> database get mobile 1203
Value: 1201
linux2*CLI> quit
Executing last minute cleanups
прошла 31 минута
/dev/pts/10
15:39:08
#apt-get install ejabberd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  erlang-asn1 erlang-base erlang-crypto erlang-inets erlang-mnesia erlang-odbc
  erlang-public-key erlang-runtime-tools erlang-ssl erlang-syntax-tools
  libsctp1 lksctp-tools
Suggested packages:
  libunix-syslog-perl erlang erlang-manpages erlang-doc erlang-tools
The following NEW packages will be installed:
...
Setting up erlang-inets (1:14.a-dfsg-3) ...
Setting up erlang-odbc (1:14.a-dfsg-3) ...
Setting up ejabberd (2.1.5-3+squeeze1) ...
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 libsctp1 (1.0.11+dfsg-1) ...
Setting up lksctp-tools (1.0.11+dfsg-1) ...
Processing triggers for menu ...
/dev/pts/16
15:40:51
#hostname -f
linux2.unix.nt
/dev/pts/16
15:47:10
#aptitude search pidgin
p   pidgin                          - graphical multi-protocol instant messaging
p   pidgin-audacious                - pidgin integration with Audacious
p   pidgin-awayonlock               - pidgin plugin to set as away on screensave
p   pidgin-blinklight               - Blinks your ThinkPad's ThinkLight upon new
p   pidgin-data                     - multi-protocol instant messaging client -
p   pidgin-dbg                      - Debugging symbols for Pidgin
p   pidgin-dev                      - multi-protocol instant messaging client -
p   pidgin-encryption               - pidgin plugin that provides transparent en
p   pidgin-extprefs                 - extended preferences plugin for the instan
p   pidgin-facebookchat             - Facebook Chat plugin for Pidgin
...
p   pidgin-musictracker             - Plugin for Pidgin which displays the curre
p   pidgin-nateon                   - Pidgin plugin for NateOn instant messaging
p   pidgin-nateon-dbg               - debugging symbols of pidgin-nateon
p   pidgin-openfetion               - Fetion protocol plugin for libpurple
p   pidgin-openpgp                  - OpenPGP plugin for Pidgin
p   pidgin-otr                      - Off-the-Record Messaging plugin for pidgin
p   pidgin-plugin-pack              - Collection of Pidgin plugins
p   pidgin-privacy-please           - A pidgin plugin for enhanced privacy
p   pidgin-sipe                     - Pidgin protocol plugin to connect to MS Of
p   pidgin-themes                   - Smiley themes collection for pidgin
15:47:27
#aptitude install pidgin
The following NEW packages will be installed:
  libmeanwhile1{a} libpurple-bin{a} libpurple0{a} libsilc-1.1-2{a}
  libsilcclient-1.1-3{a} libzephyr4{a} pidgin pidgin-data{a}
0 packages upgraded, 8 newly installed, 0 to remove and 1 not upgraded.
Need to get 11.7 MB of archives. After unpacking 36.2 MB will be used.
Do you want to continue? [Y/n/?] y
Get:1 http://10.0.35.1/debian/ squeeze/main libmeanwhile1 i386 1.0.2-3 [79.6 kB]
Get:2 http://10.0.35.1/debian/ squeeze/main pidgin-data all 2.7.3-1+squeeze1 [8,402 kB]
Get:3 http://10.0.35.1/debian/ squeeze/main libsilc-1.1-2 i386 1.1.10-2 [391 kB]
Get:4 http://10.0.35.1/debian/ squeeze/main libsilcclient-1.1-3 i386 1.1.10-2 [98.1 kB]
...
Processing triggers for gconf2 ...
Setting up libmeanwhile1 (1.0.2-3) ...
Setting up pidgin-data (2.7.3-1+squeeze1) ...
Setting up libsilc-1.1-2 (1.1.10-2) ...
Setting up libsilcclient-1.1-3 (1.1.10-2) ...
Setting up libzephyr4 (3.0-1) ...
Setting up libpurple0 (2.7.3-1+squeeze1) ...
Setting up libpurple-bin (2.7.3-1+squeeze1) ...
Setting up pidgin (2.7.3-1+squeeze1) ...
Processing triggers for menu ...
прошло 17 минут
/dev/pts/22
16:05:14
#conference.linux2.unix.nt has address 192.168.20.1
bash: conference.linux2.unix.nt: command not found
16:05:31
#sendxmpp
sendxmpp version 1.20
Copyright (c) 2004 - 2005 Dirk-Jan C. Binnema
Copyright (c) 2006 - 2007 Lubomir Host 'rajo'
usage: sendxmpp [options] <recipient1> [<recipient2> ...]
or refer to the the sendxmpp manpage
/dev/pts/3
16:07:19
#vim /etc/ejabberd/ejabberd.cfg
--- /tmp/l3-saved-11079.8174.29330	2011-10-20 17:07:24.000000000 +0300
+++ /etc/ejabberd/ejabberd.cfg	2011-10-20 17:07:49.000000000 +0300
@@ -573,7 +573,7 @@
   %%                      ]},
   {mod_last,     []},
   {mod_muc,      [
-		  %%{host, "conference.@HOST@"},
+		  {host, "conference.@HOST@"},
 		  {access, muc},
 		  {access_create, muc},
 		  {access_persistent, muc},
16:07:49
#/etc/init.d/ejabberd restart
Restarting jabber server: ejabberd.
/dev/pts/26
16:17:29
#apt-get install sendxmpp
Reading package lists... Done
Building dependency tree
Reading state information... Done
sendxmpp is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
/dev/pts/24
16:24:38
#nano /var/lib/asterisk/.sendxmpprc
--- /dev/null	2011-10-20 09:21:25.710249456 +0300
+++ /var/lib/asterisk/.sendxmpprc	2011-10-20 17:24:51.000000000 +0300
@@ -0,0 +1 @@
+asterisk@linux2.unix.nt
16:24:53
#asterisk@linux2.unix.nt

16:25:02
#chmod 600 /var/lib/asterisk/.sendxmpprc

16:25:11
#usermod -s /bin/bash asterisk

/dev/pts/28
16:26:36
#nano /var/lib/asterisk/.sendxmpprc
--- /tmp/l3-saved-11982.18970.12207	2011-10-20 17:26:59.000000000 +0300
+++ /var/lib/asterisk/.sendxmpprc	2011-10-20 17:27:05.000000000 +0300
@@ -1 +1 @@
-asterisk@linux2.unix.nt
+asterisk@linux2.unix.nt 1

Пятница (10/21/11)

/dev/pts/4
07:55:50
#nano /etc/asterisk/sip.conf
--- /tmp/l3-saved-2148.5229.4294	2011-10-21 08:56:29.000000000 +0300
+++ /etc/asterisk/sip.conf	2011-10-21 09:16:21.000000000 +0300
@@ -23,14 +23,12 @@
 type=friend
 secret=1234
 host=dynamic
-context=gr2
+context=gr5
 language=ru
 mailbox=1202@default
 videosupport=yes
 callgroup=1
 
-
-
 [1203]
 type=friend ;friend, user, peer
 secret=1234
@@ -40,10 +38,6 @@
 mailbox=1201@default
 callgroup=1
 
-
-
-
-
 ;Kiev login for me
 [kv]
 type=friend
/dev/pts/6
07:56:38
#asterisk -rvvvvvvvvvvv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux2 (pid = 1635)
...
 Reloading SIP
linux2*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
1201/1201                  192.168.20.201   D          5060     Unmonitored
1202/1202                  192.168.20.200   D          49350    Unmonitored
1203                       (Unspecified)    D          5060     Unmonitored
kv/lv                      192.168.10.1     D          5060     Unmonitored
4 sip peers [Monitored: 0 online, 0 offline Unmonitored: 4 online, 0 offline]
linux2*CLI> exit
Executing last minute cleanups
/dev/pts/8
08:04:42
#ssh root@192.168.30.1
The authenticity of host '192.168.30.1 (192.168.30.1)' can't be established.
RSA key fingerprint is bc:13:b4:66:4e:f8:83:a6:3a:07:8a:92:74:f6:87:e6.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.30.1' (RSA) to the list of known hosts.
root@192.168.30.1's password:
Permission denied, please try again.
root@192.168.30.1's password:
Linux linux3 2.6.32-5-686 #1 SMP Mon Oct 3 04:15:24 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: Fri Oct 21 08:43:38 2011 from 192.168.30.201
l3-agent is already running: pid=2083; pidfile=/root/.lilalo/l3-agent.pid
08:05:16
#nano /etc/asterisk/extensions.conf
08:06:02
#{EXTEN},SIP/${DB(mobile/${EXTEN})})
Connection to 192.168.30.1 closed.
/dev/pts/10
08:10:09
#ssh root@192.168.10.1
The authenticity of host '192.168.10.1 (192.168.10.1)' can't be established.
RSA key fingerprint is f6:96:65:bc:8e:c0:77:35:49:6e:ca:e4:f8:3f:59:7d.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.10.1' (RSA) to the list of known hosts.
root@192.168.10.1's password:
Linux linux1 2.6.32-5-686 #1 SMP Mon Oct 3 04:15:24 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: Fri Oct 21 08:57:46 2011 from note.unix.nt
l3-agent is already running: pid=2486; pidfile=/root/.lilalo/l3-agent.pid
08:10:28
#mcedit /etc/asterisk/extensions.conf
                                  61     82        2220         101 0x065
exten => _110X,n,Macro(monitor,SIP/${EXTEN})
exten => _110X,n,Voicemail(${EXTEN}@default)
exten => _1103,1,Answer
exten => _1103,n,SetMusicOnHold(default)
exten => _1103,n,Queue(queue1)
exten => _1111,1,MeetMe(1,McI)
[national]
[national]
[international]
[international]
exten => _[1,2][3,4]XX,1,Dial(SIP/msk/${EXTEN})
exten => _380XXXXXXXXX,1,Dial(SIP/nt1/${EXTEN})
exten => _995XXXXXXXXX,1,Dial(SIP/nt1/${EXTEN})
[internal]
[internal]
exten => _31XX,1,Dial(SIP/msk/${EXTEN})
           [1,2]XX,1,Dial(SIP/tbs/${EXTEN})
exten => _[1,2][3,4]XX,1,Dial(SIP/msk/$      }
08:15:29
#[default]
[general]
context=default
allowoverlap=no
udpbindaddr=0.0.0.0
tcpenable=no
tcpbindaddr=0.0.0.0
srvlookup=yes
canreinvite=no
videosupport=yes
language=ru
...
canreinvite=no
disallow=all
allow=speex
allow=gsm
allow=ulaw
allow=alaw
nat=yes
mailbox=105
secret=1234
trunk=yes
/dev/pts/2
08:18:37
#{EXTEN:4})

прошло 13 минут
/dev/pts/12
08:31:48
#vim /etc/asterisk/extensions.conf
прошло 14 минут
08:46:15
#less /etc/asterisk/extensions.conf
прошло 20 минут
09:07:08
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux2 (pid = 2416)
Verbosity is at least 11
linux2*CLI> quit
Executing last minute cleanups
09:07:11
#asterisk -rvvvvvvvvvvvvvvv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux2 (pid = 2416)
...
User-Agent: Asterisk PBX 1.6.2.9-2+squeeze3
Content-Length: 0
---
    -- SIP/kv-0000002d is busy
  == Everyone is busy/congested at this time (1:1/0/0)
    -- Auto fallthrough, channel 'SIP/1202-0000002c' status is 'BUSY'
Really destroying SIP dialog '791489d5766430855b274cb25e2fdf73@192.168.20.1' Method: INVITE
Really destroying SIP dialog '5cf93ac86681f25f11cc1cf8197c8549@192.168.20.1' Method: REGISTER
linux2*CLI> quit
Executing last minute cleanups
09:08:25
#mv /etc/asterisk/extensions.conf{,.SAVED}

09:08:40
#vim /etc/asterisk/extensions.conf
--- /dev/null	2011-10-21 08:51:22.666052856 +0300
+++ /etc/asterisk/extensions.conf	2011-10-21 10:09:45.000000000 +0300
@@ -0,0 +1,3 @@
+[gr5]
+
+exten => _120[12],1,Dial(SIP/${EXTEN})
09:09:45
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
09:09:53
#asterisk -rvvvvvvvvvvvvvvv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux2 (pid = 2803)
...
  == Using SIP RTP CoS mark 5
  == Using SIP VRTP CoS mark 6
    -- Called 1202
    -- SIP/1202-00000003 is ringing
    -- Got SIP response 486 "Busy Here" back from 192.168.20.200
    -- SIP/1202-00000003 is busy
  == Everyone is busy/congested at this time (1:1/0/0)
    -- Auto fallthrough, channel 'SIP/1201-00000002' status is 'BUSY'
linux2*CLI> quit
Executing last minute cleanups
/dev/pts/6
09:09:53
#asterisk -rvvvvvvvvvvv
Asterisk 1.6.2.9-2+squeeze3, 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+squeeze3 currently running on linux2 (pid = 3320)
...
       > Saved useragent "X-Lite 4 release 4.1 stamp 63214" for peer 1202
[Oct 21 14:16:08] NOTICE[6283]: manager.c:1105 authenticate: 127.0.0.1 tried to authenticate with nonexistent user 'admin'
[Oct 21 14:16:08] NOTICE[6283]: manager.c:1133 authenticate: 127.0.0.1 failed to authenticate as 'admin'
  == Connect attempt from '127.0.0.1' unable to authenticate
    -- Remote UNIX connection
Executing last minute cleanups
  == Destroying musiconhold processes
linux2*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
/dev/pts/12
09:10:51
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2566.8452.5916	2011-10-21 10:10:58.000000000 +0300
+++ /etc/asterisk/extensions.conf	2011-10-21 10:12:22.000000000 +0300
@@ -122,8 +122,6 @@
 exten => 9500,1,Goto(menu,s,1)
 
 
-#GotoIfTime(<time range>,<days of week>,<days of month>,<months>?[[context,]extension,]pri)
-
 exten => 9501,1,GotoIfTime(14:00-15:00,thu,*,*?obed)
 exten => 9501,n,Queue(queue1)
 exten => 9501,n,Hangup  
@@ -224,7 +222,7 @@
 
 [gr3]
 include => internal
-                                                                                                                                             1,4       Наверху
+
 [gr4]
 include => local
 
09:12:22
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
09:12:56
#cp /etc/asterisk/extensions.conf{,.SAVED}

09:13:17
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2566.20416.22443	2011-10-21 10:13:21.000000000 +0300
+++ /etc/asterisk/extensions.conf	2011-10-21 10:14:41.000000000 +0300
@@ -1,80 +1,7 @@
 [default]
 
-; -------------------------------
-; RESOURCES
-; -------------------------------
-
-[menu]
-
-exten => s,1,Answer
-exten => s,n,Set(P=/var/spool/asterisk/sounds/menu/)
-exten => s,n,Background(${P}00)
-exten => s,n(menu-start),Background(${P}01)
-exten => s,n,Waitexten(2)
-exten => s,n,Background(${P}02)
-exten => s,n,Background(${P}01)
-exten => s,n,Waitexten(2)
-exten => s,n,Background(${P}03)
-
-exten => 1,1,Goto(submenu,s,1)
-exten => 2,1,Queue(queue1)
-exten => 3,1,Authenticate(12345)
-exten => 3,n,System(touch /tmp/asterisk-touch)
-exten => 4,1,Goto(menu,s,menu-start)
-exten => 5,1,Playback(${P}04)
-
-exten => i,1,Playback(${P}08)
-exten => i,n,Goto(menu,s,menu-start)
-
-[submenu]
-
-exten => s,1,Answer
-exten => s,n,Background(${P}05)
-exten => s,n,Waitexten(2)
-exten => s,n,Background(${P}02)
-exten => s,n,Waitexten(2)
-exten => s,n,Background(${P}03)
-
-exten => i,1,Playback(${P}08)
-exten => i,n,Goto(menu,s,menu-start)
-
-exten => 1,1,Background(${P}06)
-exten => 1,n,Goto(submenu,s,1)
-
-exten => 2,1,Background(${P}07)
-exten => 2,n,Goto(submenu,s,1)
-
-exten => 3,1,Goto(submenu,s,1)
-
-exten => 4,1,Goto(menu,s,menu-start)
-
-
-
-;[macro-monitor]
-;exten => s,1,Set(CALLFILENAME=${EPOCH}-${STRFTIME(${EPOCH},Europe/Kiev,"%Y-%m-%d-%H-%M-%S")}-${MACRO_EXTEN}-${CALLERID(num)})
-;exten => s,n,Monitor(wav,${CALLFILENAME},m)
-;exten => s,n,Dial(${ARG1},10)
-
 [macro-monitor]
 
-;exten => s,1,Set(CALLFILENAME=${EPOCH}-${STRFTIME(${EPOCH},Europe/Kiev,"%Y-%m-%d-%H-%M-%S")}-${MACRO_EXTEN}-${CALLERID(num)})
-;exten => s,n,MixMonitor(${CALLFILENAME}.wav)
-;exten => s,n,GotoIf($[ "${CALLERID(num):0:2}" != "12" ]?dial)
-;exten => s,n,SetMusicOnHold(class2)
-;exten => s,n(dial),Dial(${ARG1},10,tT)
-
-
-;exten => s,1,Set(CALLFILENAME=${EPOCH}-${STRFTIME(${EPOCH},Europe/Kiev,"%Y-%m-%d-%H-%M-%S")}-${MACRO_EXTEN}-${CALLERID(num)})
-;exten => s,n,MixMonitor(wav,${CALLFILENAME})
-;exten => s,n,GotoIf($[ "${CALLERID(num):0:2}" != "31" ]?dial)
-;exten => s,n,SetMusicOnHold(class2)
-;exten => s,n(dial),Dial(${ARG1},10,tT)
-;exten => s,n,GotoIf($[ "${DIALSTATUS}" = ANSWER ]?hangup)
-;exten => s,n,GotoIf($[ "${ARG2}" = "" ]?hangup)
-;exten => s,n,Dial(${ARG2},10,tT)
-;exten => s,n(hangup),Hangup
-
-
 exten => s,1,Set(CALLFILENAME=${EPOCH}-${STRFTIME(${EPOCH},Europe/Kiev,"%Y-%m-%d-%H-%M-%S")}-${MACRO_EXTEN}-${CAL
 exten => s,n,MixMonitor(wav,${CALLFILENAME})
 exten => s,n,System(echo Call from ${CALLERID(num)} | sendxmpp -f /var/lib/asterisk/.sendxmpprc user@linux2.unix.nt)
@@ -87,96 +14,15 @@
 exten => s,n(hangup),Hangup
 
 
-
-
 [internal]
-;zapis golosa(po okonchanii nagat #)
-exten => _99XX,1,Answer
-exten => _99XX,n,Set(FILENAME=/var/spool/asterisk/sounds/menu/${EXTEN:2})
-exten => _99XX,n,Record(${FILENAME}:gsm)
-exten => _99XX,n,Playback(${FILENAME})
-
-exten => _98XX,1,Answer
-exten => _98XX,n,Set(FILENAME=/var/spool/asterisk/sounds/menu/${EXTEN:2})
-exten => _98XX,n,Playback(${FILENAME})
-
-exten => 9700,1,System(date >> /tmp/hello-from-asterisk)
-;exten => 9701,1,System(sudo touch /tmp/root-file-from-asterisk)
-
-exten => 9701,1,Answer
-exten => 9701,n,Authenticate(12345) 
-exten => 9701,n,System(sudo touch /tmp/root-file-from-asterisk)
-
-;exten => 9702,1,Festival(Hello from festival)
-
-exten => 9702,1,AGI(/usr/local/bin/festival-agi.pl,Hello from festival)
-exten => 9703,1,AGI(/usr/local/bin/festival-agi-play-file.pl,/var/lib/asterisk/texts/man-ls.txt)
-
-exten => 9704,1,AGI(/usr/local/bin/festival-agi-play-file.pl,/var/lib/asterisk/texts/tbilisi.txt)
-
-exten => 9705,1,Read(REDIRECTOR,/var/spool/asterisk/sounds/menu/09)
-exten => 9705,n,Set(DB(mobile/${CALLERID(num)})=${REDIRECTOR})
-
-
-
-exten => 9500,1,Goto(menu,s,1)
-
-
-exten => 9501,1,GotoIfTime(14:00-15:00,thu,*,*?obed)
-exten => 9501,n,Queue(queue1)
-exten => 9501,n,Hangup  
-exten => 9501,n(obed),Playback(/var/spool/asterisk/sounds/menu/10)
-
-exten => _127X,1,AgentLogin(${EXTEN:3})
-
-
-exten => 1297,1,VoicemailMain()
-
-exten => _128X,1,GotoIf($[ "${CALLERID(num)}" != "120${EXTEN:3}" ]?password)
-exten => _128X,n,VoicemailMain(120${EXTEN:3},s)
-exten => _128X,n,Hangup
-exten => _128X,n(password),VoicemailMain(120${EXTEN:3})
-exten => _128X,n,Hangup
-
-
-
-exten => 1299,1,Playback(demo-thanks)
-exten => 1299,n,Playback(demo-thanks)
-exten => 1299,n,Playback(demo-thanks)
-
-exten => 1298,1,Playback(spy-sip)
-exten => 1298,n,Playback(spy-sip)
-exten => 1298,n,Playback(spy-sip)
-
-exten => 1297,1,Record(/var/lib/asterisk/sounds/recorded-voice:gsm,2)
-exten => 1297,n,Playback(/var/lib/asterisk/sounds/recorded-voice)
-
 [local]
 
-;exten => _120X,1,Answer
-;exten => _120X,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH}-${STRFTIME(${EPOCH},Europe/Kiev,"%Y-%m-%d-%H-%M-%S")})
-;exten => _120X,n,Monitor(wav,${CALLFILENAME},m)
-;exten => _120X,n,Dial(SIP/${EXTEN},10)
-;exten => _120X,n,Voicemail(${EXTEN}@default)
-;********************
-;exten => 1203,1,Dial(SIP/1201&SIP/1202);group call
-;exten => 1203,1,Queue(queue1)
-
-
-;exten => 1203,1,Answer
-;exten => 1203,n,SetMusicOnHold(default)
-;exten => 1203,n,Queue(queue1)
-
-
 exten => 1211,1,MeetMe(1,cIM)
 
 exten => _120X,1,Answer          
 exten => _120X,n,Macro(monitor,SIP/${EXTEN},SIP/${DB(mobile/${EXTEN})})
 exten => _120X,n,Voicemail(${EXTEN}@default)
 
-
-
-
 [national]
 exten => _[123]XXX,1,Dial(SIP/kv/${EXTEN})
 exten => _11XX,1,Dial(SIP/kv/${EXTEN})
09:19:40
#[ ]

09:20:05
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2566.19585.19463	2011-10-21 10:20:07.000000000 +0300
+++ /etc/asterisk/extensions.conf	2011-10-21 10:20:09.000000000 +0300
@@ -1,3 +1,3 @@
-[gr4]
+[gr5]
 exten => _380XXXXXXXXX,1,Dial(SIP/kv/${EXTEN})
 
09:20:09
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk.
Starting Asterisk PBX: asterisk.
09:22:35
#mv /etc/asterisk/extensions.conf.SAVED /etc/asterisk/extensions.conf

09:22:53
#lspci
00:00.0 Host bridge: Intel Corporation Sandy Bridge DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation Sandy Bridge Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation Cougar Point HECI Controller #1 (rev 04)
00:16.3 Serial controller: Intel Corporation Cougar Point KT Controller (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04)
00:1a.0 USB Controller: Intel Corporation Cougar Point USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation Cougar Point High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 1 (rev b4)
00:1c.4 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 5 (rev b4)
00:1c.6 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 7 (rev b4)
00:1c.7 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 8 (rev b4)
00:1d.0 USB Controller: Intel Corporation Cougar Point USB Enhanced Host Controller #1 (rev 04)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a4)
00:1f.0 ISA bridge: Intel Corporation Cougar Point LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation Cougar Point 6 port SATA AHCI Controller (rev 04)
00:1f.3 SMBus: Intel Corporation Cougar Point SMBus Controller (rev 04)
/dev/pts/2
09:24:06
#{EXTEN:3})
  GNU nano 2.2.4                    File: /etc/asterisk/extensions.conf
[default]
; -------------------------------
; RESOURCES
; -------------------------------
[menu]
exten => s,1,Answer
exten => s,n,Set(P=/var/spool/asterisk/sounds/menu/)
exten => s,n,Background(${P}00)
exten => s,n(menu-start),Background(${P}01)
exten => s,n,Waitexten(2)
exten => s,n,Background(${P}02)
exten => s,n,Background(${P}03)
exten => 1,1,Goto(submenu,s,1)
exten => 2,1,Queue(queue1)
exten => 3,1,Authenticate(12345)
exten => 3,n,System(touch /tmp/asterisk-touch)
^G Get Help        ^O WriteOut        ^R Read File       ^Y Prev Page       ^K Cut Text        ^C Cur Pos
^X Exit            ^J Justify         ^W Where Is        ^V Next Page       ^U UnCut Text      ^T To Spell
/dev/pts/4
09:30:08
#[general]

прошло 12 минут
/dev/pts/8
09:42:15
#lspci
00:00.0 Host bridge: Intel Corporation Sandy Bridge DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation Sandy Bridge Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation Cougar Point HECI Controller #1 (rev 04)
00:16.3 Serial controller: Intel Corporation Cougar Point KT Controller (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04)
00:1a.0 USB Controller: Intel Corporation Cougar Point USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation Cougar Point High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 1 (rev b4)
00:1c.4 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 5 (rev b4)
00:1c.6 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 7 (rev b4)
00:1c.7 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 8 (rev b4)
00:1d.0 USB Controller: Intel Corporation Cougar Point USB Enhanced Host Controller #1 (rev 04)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a4)
00:1f.0 ISA bridge: Intel Corporation Cougar Point LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation Cougar Point 6 port SATA AHCI Controller (rev 04)
00:1f.3 SMBus: Intel Corporation Cougar Point SMBus Controller (rev 04)
09:42:25
#lspci
00:00.0 Host bridge: Intel Corporation Sandy Bridge DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation Sandy Bridge Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation Cougar Point HECI Controller #1 (rev 04)
00:16.3 Serial controller: Intel Corporation Cougar Point KT Controller (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04)
00:1a.0 USB Controller: Intel Corporation Cougar Point USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation Cougar Point High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 1 (rev b4)
00:1c.4 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 5 (rev b4)
00:1c.6 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 7 (rev b4)
00:1c.7 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 8 (rev b4)
00:1d.0 USB Controller: Intel Corporation Cougar Point USB Enhanced Host Controller #1 (rev 04)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a4)
00:1f.0 ISA bridge: Intel Corporation Cougar Point LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation Cougar Point 6 port SATA AHCI Controller (rev 04)
00:1f.3 SMBus: Intel Corporation Cougar Point SMBus Controller (rev 04)
прошло 17 минут
/dev/pts/8
09:59:51
#locate iceweasel
/bak/2/etc/iceweasel
/bak/2/etc/iceweasel/iceweaselrc
/bak/2/etc/iceweasel/pref
/bak/2/etc/iceweasel/profile
/bak/2/etc/iceweasel/pref/iceweasel.js
/bak/2/etc/iceweasel/profile/bookmarks.html
/bak/2/etc/iceweasel/profile/chrome
/bak/2/etc/iceweasel/profile/localstore.rdf
/bak/2/etc/iceweasel/profile/mimeTypes.rdf
/bak/2/etc/iceweasel/profile/prefs.js
...
/usr/share/pixmaps/iceweasel.xpm
/var/cache/apt/archives/iceweasel_3.5.16-10_i386.deb
/var/lib/dpkg/info/iceweasel.conffiles
/var/lib/dpkg/info/iceweasel.list
/var/lib/dpkg/info/iceweasel.md5sums
/var/lib/dpkg/info/iceweasel.postinst
/var/lib/dpkg/info/iceweasel.postrm
/var/lib/dpkg/info/iceweasel.preinst
/var/lib/dpkg/info/iceweasel.prerm
/var/lib/menu-xdg/applications/menu-xdg/X-Debian-Applications-Network-Web-Browsing-iceweasel.desktop
прошло 82 минуты
/dev/pts/4
11:22:00
#[general]

/dev/pts/8
11:22:19
#aptitude search fop
p   fop                             - XML to PDF Translator
p   fop-doc                         - Documentation for fop
p   libjeuclid-fop-java             - A complete MathML rendering solution (fop
p   libjlatexmath-fop-java          - Implementation of LaTeX math mode wrote in
p   r-cran-foptions                 - GNU R package for financial engineering --
11:23:12
#cd /inst

11:23:41
#wget http://www.asternic.org/files/op_panel-0.30.tar.gz
--2011-10-21 12:23:45--  http://www.asternic.org/files/op_panel-0.30.tar.gz
Resolving www.asternic.org... 200.61.177.8
Connecting to www.asternic.org|200.61.177.8|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 355782 (347K) [application/x-gzip]
Saving to: “op_panel-0.30.tar.gz”
100%[======================================>] 355,782     72.4K/s   in 5.3s
2011-10-21 12:23:51 (65.6 KB/s) - “op_panel-0.30.tar.gz” saved [355782/355782]
11:23:51
#apt-get install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  apache2-mpm-worker apache2-utils apache2.2-common ssl-cert
Suggested packages:
  apache2-doc apache2-suexec apache2-suexec-custom openssl-blacklist
The following NEW packages will be installed:
  apache2 apache2-mpm-worker apache2-utils apache2.2-common ssl-cert
0 upgraded, 5 newly installed, 0 to remove and 1 not upgraded.
...
Enabling module authz_default.
Enabling module authz_user.
Enabling module authz_groupfile.
Enabling module authn_file.
Enabling module authz_host.
Enabling module reqtimeout.
Setting up apache2-mpm-worker (2.2.16-6+squeeze4) ...
Starting web server: apache2.
Setting up apache2 (2.2.16-6+squeeze4) ...
Setting up ssl-cert (1.0.28) ...
11:26:07
#/etc/init.d/apache2 restart
Restarting web server: apache2 ... waiting .
11:26:22
#/etc/init.d/apache2 status
Apache2 is running (pid 5144).
11:26:30
#cd /inst

11:27:58
#ls
00.gsm
01.gsm
02.gsm
03.gsm
04.gsm
05.gsm
06.gsm
07.gsm
08.gsm
10.gsm
...
foto.jpg
install
iperf.exe
iveriya_-_argo.mp3
mp3
op_panel-0.30
op_panel-0.30.tar.gz
ramsh.gsm
voip
voip.txt
11:28:01
#cd op_panel-0.30

11:28:08
#ls
CHANGES                 LICENSE         op_lang_en.cfg  op_lang_ru.cfg  RECIPES
dhtml                   ming-source     op_lang_es.cfg  op_lang_se.cfg  TODO
extensions.conf.sample  op_astdb.cfg    op_lang_fr.cfg  op_server.cfg   UPGRADE
FAQ                     op_buttons.cfg  op_lang_gl.cfg  op_server.pl
flash                   op_lang_ca.cfg  op_lang_it.cfg  op_style.cfg
init                    op_lang_de.cfg  op_lang_no.cfg  README
11:28:10
#cp -R flash /var/www/panel/

11:28:16
#scp user@192.168.70.1:/home/user/fop2-2.23-debian-i386.tgz /home/user/
The authenticity of host '192.168.70.1 (192.168.70.1)' can't be established.
RSA key fingerprint is 8f:a8:01:dc:fb:30:a2:33:72:95:8f:c7:5f:ab:a0:15.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.70.1' (RSA) to the list of known hosts.
user@192.168.70.1's password:
fop2-2.23-debian-i386.tgz                                              100% 5930KB   5.8MB/s   00:00
/dev/pts/10
11:33:54
#cd /inst

11:34:00
#scp linux9:/etc/asterisk/manager.d/fop.conf
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
           [-l limit] [-o ssh_option] [-P port] [-S program]
           [[user@]host1:]file1 ... [[user@]host2:]file2
11:34:19
#scp linux9:/etc/asterisk/manager.d/fop.conf
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
           [-l limit] [-o ssh_option] [-P port] [-S program]
           [[user@]host1:]file1 ... [[user@]host2:]file2
11:34:40
#scp linux9:/etc/asterisk/manager.d/fop.conf /inst
root@linux9's password:
fop.conf                                      100%  182     0.2KB/s   00:00
прошло 94 минуты
/dev/pts/8
13:08:48
#pwd
/inst/op_panel-0.30
13:10:44
#cd ..

Файлы

  • 1.call
  • 1.call
    >
    Channel:SIP/1201
    Extension:9500
    Context:internal
    

    Статистика

    Время первой команды журнала11:28:26 2011-10-20
    Время последней команды журнала13:10:44 2011-10-21
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, % 7.92
    Процент синтаксически неверно набранных команд, % 0.99
    Суммарное время работы с терминалом *, час 4.23
    Количество командных строк в единицу времени, команда/мин 0.40
    Частота использования команд
    nano10|=========| 9.90%
    ls9|========| 8.91%
    vim8|=======| 7.92%
    cd7|======| 6.93%
    asterisk6|=====| 5.94%
    cp4|===| 3.96%
    rm4|===| 3.96%
    apt-get4|===| 3.96%
    scp4|===| 3.96%
    /etc/init.d/asterisk3|==| 2.97%
    cat3|==| 2.97%
    lspci3|==| 2.97%
    aptitude3|==| 2.97%
    mv2|=| 1.98%
    {EXTEN:3})2|=| 1.98%
    /etc/init.d/apache22|=| 1.98%
    pwd2|=| 1.98%
    [general]2|=| 1.98%
    smbstatus2|=| 1.98%
    ssh2|=| 1.98%
    12011|| 0.99%
    /etc/init.d/ejabberd1|| 0.99%
    chmod1|| 0.99%
    ${EXTEN})})1|| 0.99%
    [1|| 0.99%
    nautilus1|| 0.99%
    asterisk@linux2.unix.nt1|| 0.99%
    touch1|| 0.99%
    31011|| 0.99%
    wget1|| 0.99%
    sendxmpp1|| 0.99%
    locate1|| 0.99%
    less1|| 0.99%
    [default]1|| 0.99%
    hostname1|| 0.99%
    conference.linux2.unix.nt1|| 0.99%
    {EXTEN:4})1|| 0.99%
    usermod1|| 0.99%
    mcedit1|| 0.99%
    ____
    *) Интервалы неактивности длительностью 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$