/l3/users/Mike/nt-voip/linux2.unix.nt/root :1 :2 :3 :4 :5 |
|
#du -h /var/lib/asterisk/moh/1.gsm
ls -la /var/lib/asterisk/moh/ total 560 drwxr-xr-x 2 asterisk asterisk 4096 Apr 25 10:12 . drwxr-xr-x 4 asterisk asterisk 4096 Apr 25 09:49 .. -rw-r--r-- 1 root root 276639 Apr 25 10:11 1.gsm -rw-r--r-- 1 root root 276639 Apr 25 10:12 Cheb_Khlaed_-_Aicha_By_LiL-MoH_2012.gsm |
#du -h /var/lib/asterisk/moh/1.gsm
|
#ls -la /var/lib/asterisk/moh/
asterisk Asterisk already running on /var/run/asterisk/asterisk.ctl. Use 'asterisk -r' to connect. |
#mcedit /etc/asterisk/musiconhold.conf
; or a relative path; relative paths are interpreted as being relative ; /var/lib/asterisk. ; NOTE: ; must ensuasterisk. ; this, res ; re that the format modules for any formats you wish directory=/var/lib/asterisk/moh |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, 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+squeeze4 currently running on linux2 (pid = 1509) ... -- SIP/2001-000000b0 is ringing == Spawn extension (gr2, 2008, 1) exited non-zero on 'SIP/rome-000000af' == Using SIP RTP CoS mark 5 -- Executing [3050@gr2:1] Dial("SIP/2222-000000b2", "SIP/rome/3050") in new stack == Using SIP RTP CoS mark 5 -- Called rome/3050 -- SIP/rome-000000b3 is ringing == Spawn extension (gr2, 3050, 1) exited non-zero on 'SIP/2222-000000b2' linux2*CLI> quit Executing last minute cleanups |
#mcedit /etc/asterisk/musiconhold.conf
; 'best' format will be chos8n at 35a 0 35time. 1296 105 0x069 ; ; NOTE: ; If you are not using "autoload" in modules.conf, then you ; must ensure that the format modules for any formats you wish ; ; [default] [ directory=/var/lib/asterisk/moh ... ;directory=/var/lib/asterisk/mohmp3 ;[manual] ; Music on Hold -- Sample Configuration [general] ; disabled by default mode=files directory=/ ;<-----><------> media format ; mp3 <><------>-- loud ; quietmp3nb<-->-- quiet unbuffered |
#mcedit /etc/asterisk/features.conf
;atxferdropcall = no ; If someone does an attended transfer, then hangs u ; person that did the transfer. If this is set to " ;atxferloopdelay = 10 ; Number of seconds to sleep between retries (if atx ; By default, this is 2. ; Note that the DTMF features listed below only work when two channe│ ave answ in combination with Answer to accomplish it. blindxfer => #1>DYNAMIC_; Blind transfer (default is #) -- Make sure to set the ;automon => *1<><------><------>; One Touch Record a.k.a. Touch Monitor -- Make ;parkcall => #72 ; Park call (one step parking) -- Make sure to set the ;blindxfer => #1<------><------>; Blind transfer (default is #) -- Make sure to |
#mcedit /etc/asterisk/features.conf
;automon => *1<><------><------>; One Touch Record a.k.a. Touch Monitor -- Make ;parkcall => => *0<-----><------>; Disconnect (default is *) -- Makeâ [application<--><------><------>; Attended transfer -- Make sure toâââââââââââââââââââââââââââââââââââ ; to allow the channel to use separated by '#'. For example: ; ; Set(__DYNAMIC_FEATURES=myfeature1#myfeature2#myfeature3) ; ; (Note: The two leading underscores allow these feature settings to be set on |
#mcedit /etc/asterisk/extensions.conf
0 36 52 590 010 0x00A ;exten => _2XXX,1,Answer ;exten => _2XXX,n,Monitor(wav,${MONITOR_FILENAME}m); m - obedenit exten => _2XXX,n,Monitor(gsm,${MONITOR_FILENAME},m); m - obedenit ;exten => _2XXX,n,Dial(SIP/${DB(mobile/${EXTEN})},5); primer raboty s DB ;exten => _2XXX,n,Voicemail(${EXTEN}@default) exten => 8400,n(end),Set(DB(mobile/${CALLERID(num)})=${new_number}) ;exten => 8400,n,Playback(/var/tmp/asterisk/message02) exten => 8400,n(end),Set(DB(mobile/${CALLERID(num)})=${new_number}) 36 22 41 1177 010 0x00A ;exten => 2002,1,Dial(SIP/2002) exten => 2000,1,Playback(demo-thanks) ;exten => _2XXX,n,Set(MONITOR_FILENAME=${CALLERID(num)}-${EXTEN}-${EPOCH}) exten => _2XXX,n,Monitor(gsm,${MONITOR_FILENAME},m); m - obedenit exten => 2008,1,Dial(2001&2222) exten => 2008,1,Dial(2001&2222) exten => _1XXX,1,Dial(SIP/rome/${EXTEN}) ; opisivaem dial plan na udalennoi stan exten => _3XXX,1,Dial(SIP/rome/${EXTEN}) exten => _6XXX,1,Dial(SIP/rome/${EXTEN}) ; marshrutixaciya |
#mcedit /etc/asterisk/sip.conf
53 0 53 693 010 0x00A type=friend host=dynamic allow=ulaw canreinvite=no [2010](local-phone) ;from template adn other user name and ext defaultuser=2010 secret=4321 [2011](local-phone) defaultuser=2011 ... language=ru callgroup=1 type=friend secret=1234 host=dynamic qualify=yes callgroup=1 [2050] type=friend pickupgroup=1 |
#mcedit /etc/asterisk/sip.conf
secret=1234 host=dynamic qualify=yes callgroup=1 [2050] type=friend secret=1234 host=dynamic qualify=yes allow=ulaw,gsm ;razreshit codec |
#mcedit /etc/asterisk/features.conf
<------><------><------><------>; (default is 3 seconds) pickupexten = *8<-eeperr<------>; to indicate a failed transfer ;pickupsoundound = beeperr<---->; to indicate that the pickup failedââ Save file ââââââââââââââââââââââ ;featuredigi ; feature activation (default is 1000 mâ ;atxfernoansall = no ; If someone does an attended transfer, âââââââââââââââââââââââââââââââââââ ; caller is connected, then by default, the system w ; not be attempted and the transfer will just fail. ;atxfercallbackretries = 2 ; Number of times to attempt to send the call back t ; They can not be used while the remote party is ringing or in progress. If you |
#apt-get install dahdi-source
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: mysql-common libmysqlclient16 Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: dahdi-source 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 912 kB of archives. After this operation, 1,044 kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! dahdi-source Install these packages without verification [y/N]? y Get:1 http://10.0.35.1/debian/ squeeze/main dahdi-source all 1:2.3.0.1+dfsg-2 [912 kB] Fetched 912 kB in 0s (11.2 MB/s) Selecting previously deselected package dahdi-source. (Reading database ... 116066 files and directories currently installed.) Unpacking dahdi-source (from .../dahdi-source_1%3a2.3.0.1+dfsg-2_all.deb) ... Setting up dahdi-source (1:2.3.0.1+dfsg-2) ... |
#apt-get install linux-headers-2.6.32-5-686
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: mysql-common libmysqlclient16 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: cpp-4.3 gcc-4.3 gcc-4.3-base linux-headers-2.6.32-5-common linux-kbuild-2.6.32 Suggested packages: gcc-4.3-locales gcc-4.3-multilib libmudflap0-4.3-dev gcc-4.3-doc libgcc1-dbg libgomp1-dbg libmudflap0-dbg The following NEW packages will be installed: cpp-4.3 gcc-4.3 gcc-4.3-base linux-headers-2.6.32-5-686 linux-headers-2.6.32-5-common linux-kbuild-2.6.32 0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded. Need to get 10.6 MB of archives. After this operation, 40.8 MB of additional disk space will be used. Do you want to continue [Y/n]? n Abort. |
#apt-get install terminator
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: mysql-common libmysqlclient16 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: libkeybinder0 python-keybinder The following NEW packages will be installed: libkeybinder0 python-keybinder terminator ... Unpacking terminator (from .../terminator_0.93-1_all.deb) ... Processing triggers for hicolor-icon-theme ... Processing triggers for man-db ... Processing triggers for desktop-file-utils ... Processing triggers for gnome-menus ... Setting up libkeybinder0 (0.2.2-2) ... Setting up python-keybinder (0.2.2-2) ... Setting up terminator (0.93-1) ... update-alternatives: using /usr/bin/terminator to provide /usr/bin/x-terminal-emulator (x-terminal-emulator) in auto mode. Processing triggers for python-support ... |
#mcedit /etc/asterisk/m
manager.conf mgcp.conf modules.conf manager.d/ minivm.conf musiconhold.conf meetme.conf misdn.conf muted.conf |
#mcedit /etc/asterisk/meetme.conf
- 21 4 0 4 105 102 0x066 [general] ;audiobuffers=32<------>; The number of 20ms audio buffers to be used <------><------><------>; when feeding audio frames from non-DAHDI channels <------><------><------>; into the conference; larger numbers will allow <------><------><------>; for the conference to 'de-jitter' audio that arrives <------><------><------>; at different timing than the conference's timing <------><------><------>; source, but can also allow for latency in hearing <------><------><------>; the audio from the speaker. Minimum value is 2, <------><------><------>; maximum value is 32. ... ; to tell them that they've joined too early, rather than telling them ;earlyalert=3600 ; How many seconds before the scheduled end of the conference shoulââ Save file âââââââââââââââââââââ ;endalert=120 [rooms] ; Usage is conf => confno[,pin][,adminpin]<----> ; Note that once a participant has called the conference, a change to the pin ; in the conference and it goes away. When it is created again, it will have ; ;conf => 2345,9938 |
#module-assistant auto-install
Get:3 http://10.0.35.1/debian/ squeeze/main kernel-package all 12.036+nmu1 [504 kB] Fetched 4,325 kB in 0s (10.7 MB/s) Preconfiguring packages ... Selecting previously deselected package debconf-utils. (Reading database ... 127212 files and directories currently installed.) Unpacking debconf-utils (from .../debconf-utils_1.5.36.1_all.deb) ... Selecting previously deselected package alsa-source. Unpacking alsa-source (from .../alsa-source_1.0.23+dfsg-2_all.deb) ... Selecting previously deselected package kernel-package. Unpacking kernel-package (from .../kernel-package_12.036+nmu1_all.deb) ... ... Need to get 1,173 kB of archives. After this operation, 2,916 kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! kbuild virtualbox-ose-source Get:1 http://10.0.35.1/debian/ squeeze/main kbuild i386 1:0.1.98svn2318-8 [701 kB] Get:2 http://10.0.35.1/debian/ squeeze/main virtualbox-ose-source all 3.2.10-dfsg-1 [473 kB] Fetched 1,173 kB in 0s (10.3 MB/s) Selecting previously deselected package kbuild. (Reading database ... 127844 files and directories currently installed.) Unpacking kbuild (from .../kbuild_1%3a0.1.98svn2318-8_i386.deb) ... |
#mcedit /etc/asterisk/ext
extconfig.conf extensions.conf extensions_minivm.conf extensions.ael extensions.lua extensios.old.conf |
#mcedit /etc/asterisk/extensions
extensions.ael extensions.lua extensions.conf extensions_minivm.conf |
#mcedit /etc/asterisk/extensions.
extensions.ael extensions.conf extensions.lua |
#mcedit /etc/asterisk/extensions.conf
[gr1] include => internal include => local include => internal |
#^C
|
#module-assistant auto-install dahdi
│ │ │ │ │ │ │ │ │ 100% │ │ │ └─────────────────────────────────────────────────────────────────────────┘ Done with /usr/src/dahdi-modules-2.6.32-5-686_2.3.0.1+dfsg-2+2.6.32-41squeeze2_i386.deb . dpkg -Ei /usr/src/dahdi-modules-2.6.32-5-686_2.3.0.1+dfsg-2+2.6.32-41squeeze2_i386.deb Selecting previously deselected package dahdi-modules-2.6.32-5-686. (Reading database ... 128260 files and directories currently installed.) Unpacking dahdi-modules-2.6.32-5-686 (from .../dahdi-modules-2.6.32-5-686_2.3.0.1+dfsg-2+2.6.32-41squeeze2_i386.deb) ... Setting up dahdi-modules-2.6.32-5-686 (1:2.3.0.1+dfsg-2+2.6.32-41squeeze2) ... |
#/etc/init.d/asterisk reload
Reloading Asterisk PBX configuration files. |
##modprobe dahdi
|
#lsmod | grep dahdi
dahdi 176034 0 crc_ccitt 1039 1 dahdi |
#/etc/init.d/asterisk reload
Reloading Asterisk PBX configuration files. |
#/etc/init.d/asterisk reload
Reloading Asterisk PBX configuration files. |
#/etc/init.d/asterisk reload
Reloading Asterisk PBX configuration files. |
#/etc/init.d/asterisk reload
Reloading Asterisk PBX configuration files. |
#mcedit /etc/asterisk/extensions.conf
xten => 8400,n,Playback(/var2tmp/asterisk/message02);v4/2842 ten => 8400,n,Playback(/var/tmp/asterisk/message02);vve en => 8400,n,Playback(/var/tmp/asterisk/message02);vve ten => 8400,n,SayDigits(${new_number}) en => 8400,n,SayDigits(${new_number}) ten => 8400,n,Read(answer,/var/tmp/asterisk/message03);drugoi mesage en => 8400,n,Read(answer,/var/tmp/asterisk/message03);drugoi mesage ten => 8400,n,GotoIf($[${answer} = 1 ]?start:end) en => 8400,n,GotoIf($[${answer} = 1 ]?start:end) ten => 8400,n(end),Set(DB(mobile/${CALLERID(num)})=${new_number}) ... ;exten => _2220,1,MeetMe(2220,tM); "t" - tolko govorit => _2220,1,MeetMe(2220,tM); "t" - tolko govorit exten => 2008,1,Dial(SIP/2001&SIP/2222); CAG s 2008 na 2 nomera > _5XXX,1,Dial(SIP/rome/${EXTEN}) exten => _2220,1,MeetMe(2220,cM); M muzika "m"- mute conferenciya "c" -kvo uchas al] > _4XXX,1,Dial(SIP/rome/${EXTEN}) > _1XXX,1,Dial(SIP/rome/${EXTEN}) ; opisivaem dial plan na udalennoi stancii - n > _6XXX,1,Dial(SIP/rome/${EXTEN}) ; marshrutixaciya 2220,1,MeetMe(2220,mM); M muzika "m"- mute podkluchennogo âââââââââââââââââââââââââââââââââââââ |
#/etc/init.d/asterisk reload
Reloading Asterisk PBX configuration files. |
#asterisk -rx "console dial 2222@internal"
|
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, 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+squeeze4 currently running on linux2 (pid = 1646) ... -- Called 2222 -- SIP/2222-00000011 is ringing -- Nobody picked up in 10000 ms -- Auto fallthrough, channel 'Console/dsp' status is 'NOANSWER' << Hangup on console >> linux2*CLI> console hangup No call to hang up Command 'console hangup' failed. linux2*CLI> quit Executing last minute cleanups |
##asterisk -rx "console hangup"
|
#mcedit /etc/asterisk/queues.conf
;member => DAHDI/2,10 76 0 476 1386 0059 0x03B ; It is important to ensure that channel drivers used for members are loaded ; before app_queue.so itself or they may be marked invalid until reload. This ; can be accomplished by explicitly listing them in modules.conf before ;member => DAHDI/3,10,Bob Johnson ;member => Agent/1001 ;member => Agent/1002 ;member => Local/1000@default,0,John Smith,SIP/1000 ; use agent groups. ; ... ; conditions, then the caller will be removed from the queue. ; monitor-f ; monitor-f ; Monitor Tting monitor-type = MixMonitor, when specifyi Search ──────────┐ ng monitor-fo ; to enae the new MixMonitor application instead of M│ onitor so ; the cohis is enabled. If you do not specify or comm──────────────────┘ ent out this ; it wilibility. ; ype = MixMonitor ; ; |
#mcedit /etc/asterisk/queue
queuerules.conf queues.conf |
#mcedit /etc/asterisk/queuerules.conf
; The advantage to changing members this way as opposed to inserting the caller ; QUEUE_MAX be opened to more members or potentially a different set not lose hi queue with more members or reinserting the caller into th│ ; made duri that were defined at the time the caller ent│ ered the queu ; ; Example: ange => <number of seconds into the call>,<absolute or rel│ ; penaltych |
#mcedit /etc/asterisk/queues.conf
1 L:[440+16 456 20401/22453b) 0010 0x00A ; If you want the queue to avoid sending calls to members whose devices are ; known to be 'in use' (via the channel driver supporting that device state) If this is set to yes, the following manager events will be generated: ; AgentCalled, AgentDump, AgentConnect, AgentComplete; setting this to ; vars also sends all channel variables with the event. ; (may generate some extra manager events, but probably ones you want) ;a ; eventwhencalled = yes|no|vars ; ... ; reportholdtime = no ; If you want the queue to avoid sending calls to members whose devices are ; Pick any one valid extension for monitor format recording. If you leave ;trategy = ringall [queue1] member => SIP/6001 member => SIPent/:1,1<-><------>; Any agent in group 1, wait for fiââ Save file âââââââââââââââââââââ member => Agent/100 member => Agent/101 |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, 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+squeeze4 currently running on linux2 (pid = 1646) ... -- Added extension '#' priority 1 to ael-demo (0x9d38428) -- Added extension '#' priority 2 to ael-demo (0x9d38428) -- Added extension 't' priority 1 to ael-demo (0x9d38428) -- Added extension 'i' priority 1 to ael-demo (0x9d38428) -- Registered extension context 'ael-default' (0xb5182850) in local table 0x9d2e4a8; registrar: pbx_ael == Using SIP RTP CoS mark 5 -- Executing [8600@gr2:1] System("SIP/2222-00000039", "echo 8600 >> /tmp/asterisk.log") in new stack -- Auto fallthrough, channel 'SIP/2222-00000039' status is 'UNKNOWN' linux2*CLI> exit Executing last minute cleanups |
#mcedit /etc/asterisk/agents.conf
; Enable or disable a single extension from logging in as multiple agents. ; The de]ault value is "yes". ;multiplelogiher ca ┌──────────────── Quit ────────────────┐ starts │ │ [agents] nts=ye └──────────────────────────────────────┘ ; ; Define maxlogintries to allow agent to try max logins before |
#b
bash: b: command not found |
#ls /tmp/
asterisk.log mc-root orbit-mike ssh-yjpLna2011 keyring-liOQQM orbit-Debian-gdm seahorse-oU0ZvV virtual-mike.jVH1hw |
#cat /tmp/asterisk.log
8600 |
#asterisk rvvv
Asterisk already running on /var/run/asterisk/asterisk.ctl. Use 'asterisk -r' to connect. |
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze4, 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+squeeze4 currently running on linux2 (pid = 1646) ... -- Nobody picked up in 15000 ms == Using SIP RTP CoS mark 5 == Using SIP RTP CoS mark 5 == Using SIP RTP CoS mark 5 [Apr 25 15:56:07] WARNING[30868]: chan_sip.c:5467 create_addr: No such host: kiev -- SIP/2222-00000047 is ringing -- Stopped music on hold on SIP/2222-00000043 == Spawn extension (gr2, 2101, 5) exited non-zero on 'SIP/2222-00000043' linux2*CLI> quit Executing last minute cleanups |
#ls /var/tmp/asterisk/
03_Rosenrot.gsm message00.gsm message01.gsm wrong-number.gsm |
#ls /var/tmp/asterisk/
03_Rosenrot.gsm message00.gsm message01.gsm wrong-number.gsm |
#ls /var/tmp/asterisk/
03_Rosenrot.gsm message00.gsm message01.gsm message05.gsm wrong-number.gsm |
#ech0 kiev | text2wave
bash: ech0: command not found |
#echo kiev | text2wave
þÿFFèvWAVEfmt >}dataÄv÷ÿüÿþÿüÿ ùÿ ùüÿüÿþÿôÿùÿùÿïÿüÿçÿïÿïÿìÿìÿçÿìÿçÿâÿïÿâÿìÿäÿßÿâÿäÿâÿñÿìÿêÿìÿìÿüÿêÿùÿñÿ÷ÿùÿ÷ÿùÿùÿüÿþÿùÿüÿüÿþÿþÿþÿþÿïÿ÷ÿüÿùÿùÿüÿ÷ÿüÿ÷ÿùÿùÿ÷ÿüÿùÿüÿùÿüÿùÿüÿüÿêÿïÿùÿôÿ÷ÿ÷ÿôÿ÷ÿâÿüÿêÿôÿïÿïÿñÿìÿôÿïÿñÿñÿñÿôÿñÿôÿñÿôÿôÿôÿôÿôÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿùÿùÿùÿùÿùÿùÿùÿùÿùÿüÿüÿüÿüÿüÿüÿüÿüÿüÿüÿ ÷ÿüÿüÿþÿôÿùÿùÿïÿüÿçÿïÿìÿêÿìÿçÿìÿçÿâÿìÿâÿìÿäÿßÿßÿäÿâÿñÿìÿêÿìÿìÿüÿêÿùÿñÿ÷ÿùÿ÷ÿùÿ÷ÿüÿþÿùÿùÿþÿüÿþÿþÿþÿþÿïÿ÷ÿüÿùÿùÿüÿ÷ÿüÿ÷ÿùÿùÿ÷ÿüÿùÿüÿùÿüÿùÿüÿüÿêÿïÿùÿôÿ÷ÿ÷ÿôÿ÷ÿâÿüÿêÿôÿïÿïÿñÿìÿôÿïÿñÿñÿñÿôÿñÿôÿñÿôÿôÿôÿôÿôÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿùÿùÿùÿùÿùÿùÿùÿùÿùÿüÿüÿüÿüÿüÿüÿüÿüÿüÿüÿ ÷ÿüÿüÿþÿôÿùÿùÿïÿüÿçÿïÿìÿêÿìÿçÿìÿçÿâÿìÿâÿìÿäÿßÿßÿäÿâÿñÿìÿêÿìÿìÿüÿêÿùÿñÿ÷ÿùÿ÷ÿùÿ÷ÿüÿþÿùÿùÿþÿüÿþÿþÿþÿþÿïÿ÷ÿüÿùÿùÿüÿ÷ÿüÿ÷ÿùÿùÿ÷ÿüÿùÿüÿùÿüÿùÿüÿüÿêÿïÿùÿôÿ÷ÿ÷ÿôÿ÷ÿâÿüÿêÿôÿïÿïÿñÿìÿôÿïÿñÿñÿñÿôÿñÿôÿñÿôÿôÿôÿôÿôÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿùÿùÿùÿùÿùÿùÿùÿùÿùÿüÿüÿüÿüÿüÿüÿüÿüÿüÿüÿ ÷ÿüÿüÿþÿôÿìÿ÷ÿ÷ÿêÿïÿìÿìÿêÿêÿìÿçÿâÿìÿäÿêÿÝÿâÿäÿßÿñÿêÿêÿìÿêÿüÿçÿùÿñÿùÿ÷ÿ÷ÿùÿ÷ÿüÿùÿþÿùÿüÿþÿüÿþÿüÿþÿïÿ÷ÿ÷ÿüÿ÷ÿùÿùÿùÿùÿùÿùÿùÿùÿùÿùÿüÿùÿüÿùÿêÿïÿùÿôÿ÷ÿ÷ÿôÿ÷ÿâÿüÿêÿôÿïÿïÿñÿìÿôÿïÿñÿñÿïÿôÿñÿôÿñÿôÿôÿôÿôÿôÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿùÿùÿùÿùÿùÿùÿùÿùÿùÿüÿüÿüÿüÿüÿüÿüÿüÿüÿüÿ ÷ÿüÿüÿþÿôÿùÿùÿïÿüÿçÿïÿìÿêÿìÿçÿìÿçÿâÿìÿâÿìÿäÿßÿßÿäÿâÿñÿìÿêÿìÿìÿüÿêÿùÿñÿ÷ÿùÿ÷ÿùÿ÷ÿüÿþÿùÿùÿþÿüÿþÿþÿþÿþÿïÿ÷ÿüÿùÿùÿüÿ÷ÿüÿ÷ÿùÿùÿ÷ÿüÿùÿüÿùÿüÿùÿüÿüÿêÿïÿùÿôÿ÷ÿ÷ÿôÿ÷ÿâÿüÿêÿôÿïÿïÿñÿìÿôÿïÿñÿñÿñÿôÿñÿôÿñÿôÿôÿôÿôÿôÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿùÿùÿùÿùÿùÿùÿùÿùÿùÿüÿüÿüÿüÿüÿüÿüÿüÿüÿüÿ ÷ÿüÿüÿþÿôÿùÿùÿïÿüÿçÿïÿìÿêÿìÿçÿìÿçÿâÿìÿâÿìÿäÿßÿßÿäÿâÿñÿìÿêÿìÿìÿüÿêÿùÿñÿ÷ÿùÿ÷ÿùÿ÷ÿüÿþÿùÿùÿþÿüÿþÿþÿþÿþÿïÿ÷ÿüÿùÿùÿüÿ÷ÿüÿ÷ÿùÿùÿ÷ÿüÿùÿüÿùÿüÿùÿüÿüÿêÿïÿùÿôÿ÷ÿ÷ÿôÿ÷ÿâÿüÿêÿôÿïÿïÿñÿìÿôÿïÿñÿñÿñÿôÿñÿôÿñÿôÿôÿôÿôÿôÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿùÿùÿùÿùÿùÿùÿùÿùÿùÿüÿüÿüÿüÿüÿüÿüÿüÿüÿüÿ ÷ÿüÿüÿþÿôÿùÿùÿïÿüÿçÿïÿìÿêÿìÿçÿìÿçÿâÿìÿâÿìÿäÿßÿßÿäÿâÿñÿìÿêÿìÿìÿüÿêÿùÿñÿ÷ÿùÿ÷ÿùÿ÷ÿüÿþÿùÿùÿþÿüÿþÿþÿþÿþÿïÿ÷ÿüÿùÿùÿüÿ÷ÿüÿ÷ÿùÿùÿ÷ÿüÿùÿüÿùÿüÿùÿüÿüÿêÿïÿùÿôÿ÷ÿ÷ÿôÿ÷ÿâÿüÿêÿôÿïÿïÿñÿìÿôÿïÿñÿñÿñÿôÿñÿôÿñÿôÿôÿôÿôÿôÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿùÿùÿùÿùÿùÿùÿùÿùÿùÿüÿüÿüÿüÿüÿüÿüÿüÿüÿüÿ ÷ÿüÿüÿþÿôÿìÿ÷ÿ÷ÿêÿïÿìÿìÿêÿêÿìÿçÿâÿìÿäÿêÿÝÿâÿäÿßÿñÿêÿêÿìÿêÿüÿçÿùÿñÿùÿ÷ÿ÷ÿùÿ÷ÿüÿùÿþÿùÿüÿþÿüÿþÿüÿþÿïÿ÷ÿ÷ÿüÿ÷ÿùÿùÿùÿùÿùÿùÿùÿùÿùÿùÿüÿùÿüÿùÿêÿïÿùÿôÿ÷ÿ÷ÿôÿ÷ÿâÿüÿêÿôÿïÿïÿñÿìÿôÿïÿñÿñÿïÿôÿñÿôÿñÿôÿôÿôÿôÿôÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿùÿùÿùÿùÿùÿùÿùÿùÿùÿüÿüÿüÿüÿüÿüÿüÿüÿüÿüÿ ... ÷ÿ þÿùÿ÷ÿùÿùÿ÷ÿùÿùÿùÿ÷ÿùÿùÿùÿùÿùÿùÿùÿùÿüÿüÿüÿüÿüÿüÿüÿþÿþÿþÿþÿþÿþÿþÿþÿþÿþÿþÿüÿ÷ÿþÿ ÷ÿñÿþÿüÿüÿüÿüÿôÿïÿçÿäÿÚÿÕÿÚÿâÿÚÿÚÿÚÿÚÿÚÿÚÿÚÿÝÿÝÿÝÿÝÿßÿßÿßÿâÿâÿâÿäÿäÿñÿôÿïÿçÿôÿïÿâÿôÿêÿïÿìÿìÿüÿïÿ÷ÿñÿùÿôÿ÷ÿçÿùÿïÿþÿùÿùÿüÿüÿüÿüÿþÿ÷ÿ ÷ÿùÿùÿüÿþÿþÿþÿüÿüÿüÿüÿüÿüÿþÿþÿþÿþÿþÿþÿ üÿ ""$$$$'$'"'$'" üÿþÿþÿüÿþÿüÿ÷ÿüÿùÿùÿùÿùÿùÿùÿþÿ÷ÿüÿùÿüÿüÿüÿüÿüÿüÿüÿüÿþÿüÿþÿþÿþÿþÿþÿþÿþÿþÿþÿ þÿ þ÷ÿùÿñÿþÿñÿ÷ÿÝÿçÿçÿâÿâÿßÿßÿôÿ×ÿêÿâÿêÿçÿêÿêÿïÿìÿïÿïÿñÿïÿñÿñÿôÿôÿôÿôÿ÷ÿôÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿùÿùÿùÿùÿçÿìÿôÿþÿüÿñÿùÿùÿùÿùÿüÿüÿþÿüÿþÿüÿüÿþÿþÿþÿþÿþÿþÿþÿþÿþÿþÿþÿþÿþÿþÿþÿþÿþþÿ þÿ"''''$'$$4$,'''$$$"""' |
#echo kiev > text2wave
|
#ls
11 Documents install Music Public text2wave Desktop Downloads kiev.wav Pictures Templates Videos |
#history | grep scp
81 scp /etc/dhcp/dhcpd.conf root@192.168.10.1:/etc/dhcp 297 scp 192.168.15.252:/var/tmp/asterisk/03_Rosenrot.gsm /var/tmp/asterisk/ 299 scp 192.168.15.252:/var/tmp/asterisk/03_Rosenrot.mp3 /var/tmp/asterisk/ 474 history | grep scp |
#mcedit /etc/festival.sc
; Maximum number of clients on the server (set! server_max_clients 10) ; Server port tions. (set! server_port een provided as an example file for your use,ââââââââââââââââââââââââââââ ; Server password: (set! server_passwd "password") ; Log file location |
#mcedit /etc/festival.sc
;; you wish to run festival as a server. ; Maximum number of clients on the server (set! server_max_ctions. (voice_msu_ru_nsh_clunits) |
#apt-get install festvox-ru
cat /tmp/asterisk.log | text2wave > kiev.wav |
#cat /tmp/asterisk.log | text2wave > kiev.wav
|
#/tmp/asterisk.log | text2wave > kiev.wav
)' > kiew-ru.wav kiev-ru.txt | text2wave -eval '(voice_msu_ru_nsh_clunits) cat: kiev-ru.txt: No such file or directory |
#pwd
/home/mike |
#ls -la
total 2684 drwxr-xr-x 27 mike mike 4096 Apr 25 16:19 . drwxr-xr-x 4 root root 4096 Apr 23 11:35 .. -rw-r--r-- 1 root root 2452777 Apr 28 2010 11 -rw------- 1 mike mike 172 Apr 25 11:52 .bash_history -rw-r--r-- 1 mike mike 220 Apr 10 2010 .bash_logout -rw-r--r-- 1 mike mike 3184 Apr 10 2010 .bashrc drwxr-xr-x 6 mike mike 4096 Apr 25 10:01 .config drwx------ 3 mike mike 4096 Apr 23 11:37 .dbus drwxr-xr-x 3 mike mike 4096 Apr 25 10:01 Desktop ... drwx------ 2 mike mike 4096 Apr 23 11:54 .ssh drwxr-xr-x 2 mike mike 4096 Apr 23 11:37 Templates -rw-r--r-- 1 root root 5 Apr 25 16:04 text2wave drwxr-xr-x 2 mike mike 4096 Apr 23 11:52 .themes drwx------ 4 mike mike 4096 Apr 23 11:52 .thumbnails drwx------ 2 mike mike 4096 Apr 23 11:37 .update-notifier drwxr-xr-x 2 mike mike 4096 Apr 23 11:37 Videos -rw------- 1 mike mike 52 Apr 23 17:22 .Xauthority -rw------- 1 mike mike 856 Apr 25 16:03 .xsession-errors -rw------- 1 mike mike 6385 Apr 25 11:49 .xsession-errors.old |
#ls -la | *.wav
bash: kiev.wav: command not found |
#ls -la | grep kiev
-rw-r--r-- 1 root root 64370 Apr 25 16:15 kiev.wav |
#ls -la | grep kie
-rw-r--r-- 1 root root 64370 Apr 25 16:15 kiev.wav -rw-r--r-- 1 root root 46820 Apr 25 16:20 kiew-ru.wav |
#mkdir -p /var/lib/asterisk/sounds/tts/
|
#hist | scp
bash: hist: command not found 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 |
#hist | scp
hist_append history |
#history | scp
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 |
#history | grep scp
81 scp /etc/dhcp/dhcpd.conf root@192.168.10.1:/etc/dhcp 297 scp 192.168.15.252:/var/tmp/asterisk/03_Rosenrot.gsm /var/tmp/asterisk/ 299 scp 192.168.15.252:/var/tmp/asterisk/03_Rosenrot.mp3 /var/tmp/asterisk/ 474 history | grep scp 495 hist | scp 496 history | scp 497 history | grep scp |
#!297
scp 192.168.15.252:/var/tmp/asterisk/03_Rosenrot.gsm /var/tmp/asterisk/ root@192.168.15.252's password: |
#ls
1.gsm gshadow opt acpi gshadow- pam.conf adduser.conf gssapi_mech.conf pam.d adjtime gtk-2.0 pango aliases gtkmathview papersize alsa hdparm.conf passwd alternatives host.conf passwd- anacrontab hostname perl apache2 hosts pm apm hosts.allow polkit-1 ... gnome mysql usb_modeswitch.d gnome-system-tools nanorc vga gnome-vfs-2.0 network vim gnome-vfs-mime-magic NetworkManager w3m gre.d networks wgetrc grep-dctrl.rc nsswitch.conf wildmidi groff obex-data-server wpa_supplicant group ODBCDataSources X11 group- odbc.ini xdg grub.d openoffice xml |
#mcedit /etc/asterisk/extensions.conf
exten => _2101,1,Answer exten => _2101,n,Playback(/var/tmp/asterisk/message05) exten => _2101,n(queue),Queue(queue1,,,,600) exten => _1XXX,1,Dial(SIP/rome/${EXTEN}) ; opisivaem dial plan na udalennoi stan |
#echo "HELLO drin drin" > /tmp/asterisk.log
|
#echo "no no no no no redial mee" > /tmp/asterisk.log
|
#sensors-detect
# sensors-detect revision 5818 (2010-01-18 17:22:07 +0100) # System: Hewlett-Packard HP Compaq dc7800p Convertible Minitower # Board: Hewlett-Packard 0AACh This program will help you determine which kernel modules you need to load to use lm_sensors most effectively. It is generally safe and recommended to accept the default answers to all questions, unless you know what you're doing. Some south bridges, CPUs or memory controllers contain embedded sensors. Do you want to scan for them? This is totally safe. (YES/no): Silicon Integrated Systems SIS5595... No ... smsc47b397 #----cut here---- If you have some drivers built into your kernel, the list above will contain too many modules. Skip the appropriate ones! Do you want to add these lines automatically to /etc/modules? (yes/NO)ye Successful! Monitoring programs won't work until the needed modules are loaded. You may want to run '/etc/init.d/module-init-tools start' to load them. Unloading i2c-dev... OK |
#mod
modem-manager modinfo modprobe module-assistant |
#modprobe
Display all 2719 possibilities? (y or n) |
#modprobe core
core coretemp |
#modprobe coretemp
|
#modprobe sms
smsc smsc47m1 smsc95xx smsmdtv smsc37b787_wdt smsc47m192 smsc-ircc2 smssdio smsc47b397 smsc9420 smsdvb smsusb |
#modprobe sms47
FATAL: Module sms47 not found. |
#modprobe sm
sm501 smsc smsc9420 smssdio sm501fb smsc37b787_wdt smsc95xx smsusb smc9194 smsc47b397 smsc-ircc2 smc91c92_cs smsc47m1 smsdvb smc-ultra smsc47m192 smsmdtv |
#modprobe sm
sm501 smsc smsc9420 smssdio sm501fb smsc37b787_wdt smsc95xx smsusb smc9194 smsc47b397 smsc-ircc2 smc91c92_cs smsc47m1 smsdvb smc-ultra smsc47m192 smsmdtv |
#modprobe smsc47
smsc47b397 smsc47m1 smsc47m192 |
#modprobe smsc47b
FATAL: Module smsc47b not found. |
#modprobe smsc47b397
|
#sens
sensible-browser sensible-pager sensors-detect sensible-editor sensors sensible-mda sensors-conf-convert |
#sensors
coretemp-isa-0000 Adapter: ISA adapter Core 0: +37.0°C (high = +78.0°C, crit = +100.0°C) coretemp-isa-0001 Adapter: ISA adapter Core 1: +43.0°C (high = +78.0°C, crit = +100.0°C) smsc47b397-isa-0480 Adapter: ISA adapter fan1: 1120 RPM fan2: 0 RPM fan3: 0 RPM fan4: 1040 RPM temp1: +57.0°C temp2: +47.0°C temp3: +31.0°C temp4: -128.0°C |
#sensors > /tmp/asterisk.log
|
#sensors | sed 's/.*+//;s/\..*//' > /tmp/asterisk.log
|
#sensors | sed 's/.*+//;s/\..*//'
coretemp-isa-0000 Adapter: ISA adapter 100 coretemp-isa-0001 Adapter: ISA adapter 100 smsc47b397-isa-0480 Adapter: ISA adapter fan1: 1118 RPM fan2: 0 RPM fan3: 0 RPM fan4: 1040 RPM 57 47 31 temp4: -128 |
#sensors | grep temp1 | sed 's/.*+//;s/\..*//'
57 |
#mcedit /etc/asterisk/sip.conf
-M--] 13 18 0 18/ 99 280 48 010 0x00A [2002] type=friend secret=1234 host=dynamic qualify=yes callgroup=1 [2050] type=friend secret=1234 ... ; yazik golosovogo menu callgroup=1 ;grupa [2001] context=gr1; ;prinadlejnost k grupam language=ru callgroup=1 ;dlia pick up pickupgroup=1 [2002] type=friend secret=1234 |
#mcedit /etc/asterisk/extensions.conf
] exten => 8001,1,Answer |
8600
Время первой команды журнала | 09:12:52 2012- 4-25 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 09:15:11 2012- 4-26 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 11.88 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.98 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 4.29 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.39 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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