/l3/users/oleg22/nt-voip/linux2.unix.nt/root :1 :2 :3 :4 :5 |
|
#rm /var/spool/asterisk/sounds/menu/01.gsm
|
#rm .*.gsm
rm: cannot remove `.*.gsm': No such file or directory |
#rm /var/spool/asterisk/sounds/menu/*.gsm
|
#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 |
#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 |
#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. |
#touch 1.call
|
#ls
1.call |
#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 + + |
#nano 1.call
|
#Channel:SIP/3101
Channel:SIP/3101 Extension:9500 Context:internal |
#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 |
#Channel:SIP/1201
Channel:SIP/1201 Extension:9500 Context:internal |
#ls
1.call |
#cp 1.call /inst
|
#cat 1.call
Channel:SIP/1201 Extension:9500 Context:internal |
#cat 1.call
Channel:SIP/1201 Extension:9500 Context:internal |
#ls -l
total 4 -rw-r--r-- 1 root root 49 Oct 20 14:18 1.call |
#cat 1.call
Channel:SIP/1201 Extension:9500 Context:internal |
#ls -l
total 4 -rw-r--r-- 1 root root 49 Oct 20 14:18 1.call |
#nano 1.call
|
#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 |
#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 |
#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 |
#pwd
/home/user |
#cd /var/spool/asterisk/sounds/menu/*.gsm /inst
bash: cd: /var/spool/asterisk/sounds/menu/00.gsm: Not a directory |
#cp /var/spool/asterisk/sounds/menu/*.gsm /inst
|
#{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 |
#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) |
#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 |
#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 ... |
#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 |
#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 ... |
#conference.linux2.unix.nt has address 192.168.20.1
bash: conference.linux2.unix.nt: command not found |
#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 |
#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}, |
#/etc/init.d/ejabberd restart
Restarting jabber server: ejabberd. |
#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. |
#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 |
#asterisk@linux2.unix.nt
|
#chmod 600 /var/lib/asterisk/.sendxmpprc
|
#usermod -s /bin/bash asterisk
|
#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 |
#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 |
#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 |
#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 |
#nano /etc/asterisk/extensions.conf
|
#{EXTEN},SIP/${DB(mobile/${EXTEN})})
Connection to 192.168.30.1 closed. |
#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 |
#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/$ } |
#less /etc/asterisk/extensions.conf
|
#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 |
#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 |
#mv /etc/asterisk/extensions.conf{,.SAVED}
|
#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}) |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#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 |
#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 |
#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 |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#cp /etc/asterisk/extensions.conf{,.SAVED}
|
#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}) |
#[ ]
|
#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}) |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#mv /etc/asterisk/extensions.conf.SAVED /etc/asterisk/extensions.conf
|
#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) |
#{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 |
#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) |
#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) |
#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 |
#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 -- |
#cd /inst
|
#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] |
#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) ... |
#/etc/init.d/apache2 restart
Restarting web server: apache2 ... waiting . |
#/etc/init.d/apache2 status
Apache2 is running (pid 5144). |
#cd /inst
|
#cd op_panel-0.30
|
#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 |
#cp -R flash /var/www/panel/
|
#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 |
#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 |
#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 |
#scp linux9:/etc/asterisk/manager.d/fop.conf /inst
root@linux9's password: fop.conf 100% 182 0.2KB/s 00:00 |
#cd ..
|
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 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ 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 |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008