/l3/users/Mike/nt-voip/linux2.unix.nt/root :1 :2 :3 :4 :5 |
|
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.11 { starts 1 2012/04/23 12:40:32; ends 1 2012/04/23 12:50:32; cltt 1 2012/04/23 12:40:32; binding state active; next binding state free; hardware ethernet 00:0b:82:12:fe:51; uid "\001\000\013\202\022\376Q"; } |
#watch -n 1 /var/lib/dhcp/dhcpd.leases | tail
|
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.10 { starts 1 2012/04/23 12:43:49; ends 1 2012/04/23 12:53:49; cltt 1 2012/04/23 12:43:49; binding state active; next binding state free; hardware ethernet 1c:c1:de:a7:8b:16; client-hostname "mike-HP-620"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.10 { starts 1 2012/04/23 12:43:49; ends 1 2012/04/23 12:53:49; cltt 1 2012/04/23 12:43:49; binding state active; next binding state free; hardware ethernet 1c:c1:de:a7:8b:16; client-hostname "mike-HP-620"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.10 { starts 1 2012/04/23 12:43:49; ends 1 2012/04/23 12:53:49; cltt 1 2012/04/23 12:43:49; binding state active; next binding state free; hardware ethernet 1c:c1:de:a7:8b:16; client-hostname "mike-HP-620"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.10 { starts 1 2012/04/23 12:43:49; ends 1 2012/04/23 12:53:49; cltt 1 2012/04/23 12:43:49; binding state active; next binding state free; hardware ethernet 1c:c1:de:a7:8b:16; client-hostname "mike-HP-620"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.10 { starts 1 2012/04/23 12:43:49; ends 1 2012/04/23 12:53:49; cltt 1 2012/04/23 12:43:49; binding state active; next binding state free; hardware ethernet 1c:c1:de:a7:8b:16; client-hostname "mike-HP-620"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.10 { starts 1 2012/04/23 12:43:49; ends 1 2012/04/23 12:53:49; cltt 1 2012/04/23 12:43:49; binding state active; next binding state free; hardware ethernet 1c:c1:de:a7:8b:16; client-hostname "mike-HP-620"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.10 { starts 1 2012/04/23 12:43:49; ends 1 2012/04/23 12:53:49; cltt 1 2012/04/23 12:43:49; binding state active; next binding state free; hardware ethernet 1c:c1:de:a7:8b:16; client-hostname "mike-HP-620"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.10 { starts 1 2012/04/23 12:43:49; ends 1 2012/04/23 12:53:49; cltt 1 2012/04/23 12:43:49; binding state active; next binding state free; hardware ethernet 1c:c1:de:a7:8b:16; client-hostname "mike-HP-620"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.10 { starts 1 2012/04/23 12:43:49; ends 1 2012/04/23 12:53:49; cltt 1 2012/04/23 12:43:49; binding state active; next binding state free; hardware ethernet 1c:c1:de:a7:8b:16; client-hostname "mike-HP-620"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.10 { starts 1 2012/04/23 12:43:49; ends 1 2012/04/23 12:53:49; cltt 1 2012/04/23 12:43:49; binding state active; next binding state free; hardware ethernet 1c:c1:de:a7:8b:16; client-hostname "mike-HP-620"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.10 { starts 1 2012/04/23 12:43:49; ends 1 2012/04/23 12:53:49; cltt 1 2012/04/23 12:43:49; binding state active; next binding state free; hardware ethernet 1c:c1:de:a7:8b:16; client-hostname "mike-HP-620"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.10 { starts 1 2012/04/23 12:43:49; ends 1 2012/04/23 12:53:49; cltt 1 2012/04/23 12:43:49; binding state active; next binding state free; hardware ethernet 1c:c1:de:a7:8b:16; client-hostname "mike-HP-620"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.10 { starts 1 2012/04/23 12:43:49; ends 1 2012/04/23 12:53:49; cltt 1 2012/04/23 12:43:49; binding state active; next binding state free; hardware ethernet 1c:c1:de:a7:8b:16; client-hostname "mike-HP-620"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.10 { starts 1 2012/04/23 12:43:49; ends 1 2012/04/23 12:53:49; cltt 1 2012/04/23 12:43:49; binding state active; next binding state free; hardware ethernet 1c:c1:de:a7:8b:16; client-hostname "mike-HP-620"; } |
#cat /var/lib/dhcp/dhcpd.leases | tail
} lease 192.168.20.10 { starts 1 2012/04/23 12:43:49; ends 1 2012/04/23 12:53:49; cltt 1 2012/04/23 12:43:49; binding state active; next binding state free; hardware ethernet 1c:c1:de:a7:8b:16; client-hostname "mike-HP-620"; } |
#cd /etc/asterisk/
|
#mv sip.conf sip.conf.old
|
#mcedit sip.conf
ontext = default ] ecret=1234 [2002] type=friendc secret=1234 [2003] ] type=friend [2222] host=dynamic type=friend host=dynamic 1Help 2Save 3Mark 4Replac 5Copy 6Move 7Search 8Delete 9PullDn10Quit |
#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 = 4207) Verbosity is at least 3 linux2*CLI> exit Executing last minute cleanups |
#less /var/log/asterisk/messages
|
#mcedit /etc/asterisk/sip.conf
type=friend secret=1234 host=dynamic [2003] type=friend secret=1234 host=dynamic [2222] type=friend |
#mcedit /etc/asterisk/sip.conf
secret=1234 host=dynamic [2003] type=friend secret=1234 host=dynamic [2222] type=friend |
#cedit /etc/asterisk/extensions.conf
xten => 2001,1,Dial(SIP/2001) exten => 2001,1,Dial(SIP/2001) exten => 2222,1,Dial(SIP/2222) |
#mcedit /etc/asterisk/extensions.conf
|
#find /usr/ -name \*demo\*thanks\*
/usr/share/asterisk/sounds/en_US_f_Allison/demo-thanks.gsm |
#/usr/share/asterisk/sounds/en_US_f_Allison/demo-thanks.gsm
bash: /usr/share/asterisk/sounds/en_US_f_Allison/demo-thanks.gsm: Permission denied |
#exten => _60XX,1,Dial(SIP/${EXTEN})
bash: syntax error near unexpected token `(' |
#mcedit /etc/asterisk/extensions.conf
1Help 2Save 3Mark 4Replac 5Copy 6Move 7Search 8Delete 9PullDn10Quit |
#as
as aspell-autobuildhash astman asciitopgm aspell-import astribank_allow aseqdump astcanary astribank_hexload aseqnet asterisk astribank_is_starting aspell astgenkey astribank_tool |
#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) ... -- Total time merge_contexts_delete: 0.000542 sec == Using SIP RTP CoS mark 5 -- Executing [3001@gr2:1] Dial("SIP/2222-00000012", "SIP/rome/3001") in new stack == Using SIP RTP CoS mark 5 -- Called rome/3001 -- SIP/rome-00000013 is circuit-busy == Everyone is busy/congested at this time (1:0/1/0) -- Auto fallthrough, channel 'SIP/2222-00000012' status is 'CONGESTION' linux2*CLI> exit Executing last minute cleanups |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:0f:fe:7e:b9:51 inet addr:192.168.20.1 Bcast:192.168.20.255 Mask:255.255.255.0 inet6 addr: fe80::20f:feff:fe7e:b951/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:759 errors:0 dropped:0 overruns:0 frame:0 TX packets:706 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:240474 (234.8 KiB) TX bytes:199026 (194.3 KiB) Interrupt:19 Memory:f0180000-f01a0000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:156 errors:0 dropped:0 overruns:0 frame:0 TX packets:156 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:59114 (57.7 KiB) TX bytes:59114 (57.7 KiB) |
#mcedit /etc/asterisk/sip.conf
qualify=yes [2050] type=friend secret=1234 host=dynamic qualify=yes [2003] type=friend qualify=yes [2050] qualify=yes [2050] qualify=yes allow=ulaw qualify=yes host=dynamic |
#mcedit /etc/asterisk/sip.conf
[6002](4321 BM--] 11 8 0 8/ 52] *(61 / 676b) 0010 0x00A host=dynamic [2002] type=friend secret=1234 host=dynamic qualify=yes [2050] secret=1234 ,gsm ;razreshit codec disallow=all ;zapretit vse krome razresh ;disallow=h261,speex ;zapret konkretnix tatus canreinvite=no ; trafik cherez asterisk qualify=yes [local-phone](! defaultuser=2011 context = default type=friend |
#l3-
l3-agent l3-config |
#l3-a
bash: l3-a: command not found |
#l3-agent
|
#mcedit /etc/asterisk/sip.conf
qualify=yes ; status canreinvite=no ; trafik cherez asterisk [2222] secret=1234 [2222] type=friend secret=1234 host=dynamic [local-phone](!) ;template type=friend ... type=friend host=dynamic allow=ulaw,gsm ;razreshit codec ;disallow=h261,speex ;zapret konkretnix qualify=yes ; s ; trafik cherez asterisk type=friend host=dynamic [2222] secret=1234 |
#mcedit /etc/asterisk/extensions.conf
exten => 2222,1,Dial(SIP/2222) exten => 20 exten => _1XXX,1,Dial(SIP/rome/${EXTEN}) |
#mcedit /etc/asterisk/extensions.conf
-M 87 302 / 302 <EOF> ] 2001,1,Dial(SIP/2001) exten => _1XXX,1,Dial(SIP/rome/${EXTEN}) > 2001,1,Dial(SIP/2001) > 2002,1,Dial(SIP/2002) > 2222,1,Dial(SIP/2222) > _1XXX,1,Dial(SIP/rome/${EXTEN}) ; opisivaem dial plan na udalennoi stancii -. > 2000,1,Playback(demo-thanks) > _2XXX,1,Dial(SIP/${EXTEN}) ... ] include =] nationalal(SIP/rome/${EXTEN}) exten => _6XXX,1,Dial(SIP/rome/${EXTEN}) ; marshrutixaciya [cont1];zvonit po. [gr1] include include => local [gr2] XXX,1,Dial(SIP/rome/${EXTEN}) XXX,1,Dial(SIP/rome/${EXTEN}) ; marshrutixaciya |
#mcedit /etc/asterisk/sip.conf
[local-phone](!) ;template ┌──────────────── Quit ────────────────┐ [2222]riend │ │ secret=1234c └──────────────────────────────────────┘ context=gr2 canreinvite=no [2010](local-phone) ;from template adn other user name and ext defaultuser=2010 |
#mcedit /etc/asterisk/extensions.conf
- 1+ 2 3/ 46 11 / 594 010 0x00A ] [default] exten => 2001,1,Dial(SIP/2001) [local] en => _.,1,Playback() 4 6 3 en => 8001,1,Answer ernal] en => 2001,1,Dial(SIP/2001) n => _.,1,Playback() ... include => national -- 0 19 5 24 457 68b) 0010 0x00A exten => 2000,1,Playback(demo-thanks) [local] 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 include => local 01,n,Record(/var/tmp/asterisk/wrong-number:gsm) ;zapis gol─── Save file ──────────────────────┐ XXX.,1,Playback(/var/tmp/asterisk/wrong-number);ne obrabot│ nomera |
#mkdir /var/tmp/asterisk
mkdir: cannot create directory `/var/tmp/asterisk': File exists |
#chown asterisk:asterisk /var/tmp/asterisk
|
#mcedit /etc/asterisk/sip.conf
/etc/ast~sip.conf [----] 0 L:[ 36+10 46/ 83] *(603 / 936b) 0010 0x00A secret=1234 host=dynamic qualify=yes ; status canreinvite=no ; trafik cherez asterisk [2050] host=dynamic qualify=yes allow=ulaw,gsm ;razreshit codec disallow=all ;zapretit vse krome razresh ... canreinvite=no ; trafik cherez asterisk [2003] type=friend secret=1234 type=friend host=dynamic context=gr1; ;prinadlejnost k grupam [2002] qualify=yes disallow=all ;zapretit vse krome razresh |
#mcedit /etc/asterisk/extensions.conf
internal] exten => _XXXX.,1,Background(/var/tmp/asterisk/any-file) ; v fone schitivat cif xten => 8001,1,Answer nternal] xten => _XXXX.,1,Background(/var/tmp/asterisk/any-file) ; v fone schitivat cifr ten => 8001,1,Answer ten => 8001,n,Record(/var/tmp/asterisk/wrong-number:gsm) ;zapis golosa v fail ten => 2001,1,Dial(SIP/2001) xten => 2002,1,Dial(SIP/2002) ten => _XXXX.,1,Playback(/var/tmp/asterisk/wrong-number);ne obrabotanie nomera p ... 20XX,1,Answer exten => _20XX,n,Set(MONITOR_FILENAME=${CALLERID(num)}-${EXTEN}-${EPOCH}) 20XX,n,Monitor(wav,${MONITOR_FILENAME}) exten => _20XX,n,Dial(SIP/${EXTEN}) ;mnogo 02,1,Dial(SIP/2002) exten ]> _22XX,n,Set(MONITOR_FILENAME=${CALLERID(num)}-${EXTEN}-${EPOCH}) 2XX,n,Dial(SIP/${EXTEN}) exten => _20XX,1,Answer exten => _1XXX,1,Dial(SIP/rome/${EXTEN}) ; opisivaem dial plan na udalennoi stan |
#apt-get install libsox-fmt-base sox
Reading package lists... Done Building dependency tree Reading state information... Done libsox-fmt-base is already the newest version. libsox-fmt-base set to manually installed. sox is already the newest version. sox set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
#apt-get install libsox-fmt-base sox mp3
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package mp3 |
#apt-get install libsox-fmt-base sox mp3
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package mp3 |
#apt-get install libsox-fmt-base sox mp3
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package mp3 |
#apt-get install libsox-fmt-base sox mp3
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package mp3 |
#mcedit /etc/re
reportbug.conf resolvconf/ resolv.conf |
#mcedit /etc/resolv.conf
|
#apt-get install libsox-fmt-mp3 sox
Reading package lists... Done Building dependency tree Reading state information... Done sox is already the newest version. The following NEW packages will be installed: libsox-fmt-mp3 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 47.0 kB of archives. After this operation, 102 kB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://10.0.35.1/debian/ squeeze/main libsox-fmt-mp3 i386 14.3.1-1 [47.0 kB] Fetched 47.0 kB in 0s (0 B/s) Selecting previously deselected package libsox-fmt-mp3. (Reading database ... 115595 files and directories currently installed.) Unpacking libsox-fmt-mp3 (from .../libsox-fmt-mp3_14.3.1-1_i386.deb) ... Setting up libsox-fmt-mp3 (14.3.1-1) ... |
#man so
|
#man sox
|
#man sox
|
#apt-get install libsox-fmt-mp3 sox
|
#man sox
|
#apt-get install libsox-fmt-mp3 sox
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 ... -- <SIP/2001-00000032> Playing '/var/tmp/asterisk/message01.gsm' (language 'en') [Apr 24 14:13:51] NOTICE[3444]: channel.c:3066 __ast_read: Dropping incompatible voice frame on SIP/2001-00000032 of format ulaw since our native format has changed to 0x80002 (gsm|h263) -- Auto fallthrough, channel 'SIP/2001-00000032' status is 'UNKNOWN' linux2*CLI> sip reload Reloading SIP == Parsing '/etc/asterisk/sip.conf': == Found == Parsing '/etc/asterisk/users.conf': == Found == Parsing '/etc/asterisk/sip_notify.conf': == Found linux2*CLI> quit Executing last minute cleanups |
#cat /etc/asterisk/users.conf
; ; User configuration ; ; Creating entries in users.conf is a "shorthand" for creating individual ; entries in each configuration file. Using users.conf is not intended to ; provide you with as much flexibility as using the separate configuration ; files (e.g. sip.conf, iax.conf, etc) but is intended to accelerate the ; simple task of adding users. Note that creating individual items (e.g. ; custom SIP peers, IAX friends, etc.) will allow you to override specific ; parameters within this file. Parameter names here are the same as they ... ;hash323 = no ;hasmanager = no ;callwaiting = no ;context = international ; ; Some administrators choose alphanumeric extensions, but still want their ; users to be reachable by traditional numeric extensions, specified by the ; alternateexts entry. ; ;alternateexts = 7057,3249 |
#s /var/spool/asterisk/monitor/
bash: s: command not found |
#ls /var/spool/asterisk/monitor/
|
#ls /var/spool/asterisk/monitor/
|
#ls /var/spool/asterisk/monitor/
|
#ls /var/spool/asterisk/monitor/
|
#ls /var/spool/asterisk/monitor/
|
#ls /var/spool/asterisk/monitor/
|
#ls /var/spool/asterisk/monitor/
|
#ls /var/spool/asterisk/monitor/
|
#ls /var/spool/asterisk/monitor/
|
#apt-get install samba
samba samba-common-bin samba-doc samba-tools samba-common samba-dbg samba-doc-pdf |
#apt-get install samba
Importing account for nobody...ok Importing account for usr1...ok Importing account for mike...ok Adding group `sambashare' (GID 115) ... Done. update-alternatives: using /usr/bin/smbstatus.samba3 to provide /usr/bin/smbstatus (smbstatus) in auto mode. Starting Samba daemons: nmbd smbd. Setting up samba-common-bin (2:3.5.6~dfsg-3squeeze7) ... update-alternatives: using /usr/bin/nmblookup.samba3 to provide /usr/bin/nmblookup (nmblookup) in auto mode. update-alternatives: using /usr/bin/net.samba3 to provide /usr/bin/net (net) in auto mode. update-alternatives: using /usr/bin/testparm.samba3 to provide /usr/bin/testparm (testparm) in auto mode. |
#mcedit /etc/s
samba/ sensors3.conf shadow- ssh/ sysctl.d/ sane.d/ sensors.d/ shells ssl/ screenrc services skel/ sudoers securetty sgml/ snmp/ sudoers.d/ security/ shadow sound/ sysctl.conf |
#mcedit /etc/sa
samba/ sane.d/ |
#mcedit /etc/samba/smb.conf
browseable = yes read only = yes guest ok = no # Uncomment to ae members of. # You may need t directory for these users to have write rights │ [monitor] read only = yes path = /var/spool/asterisk/monitor #<----->cdrom share is accesed. For this to work /etc/fstab must contain #<----->an entry like this: ; guest ok = yes |
#/etc/init.d/sa
samba saned |
#/etc/init.d/samba restart
Stopping Samba daemons: nmbd smbd. Starting Samba daemons: nmbd smbd. |
#ls /var/spool/asterisk/monitor/
|
; ; User configuration ; ; Creating entries in users.conf is a "shorthand" for creating individual ; entries in each configuration file. Using users.conf is not intended to ; provide you with as much flexibility as using the separate configuration ; files (e.g. sip.conf, iax.conf, etc) but is intended to accelerate the ; simple task of adding users. Note that creating individual items (e.g. ; custom SIP peers, IAX friends, etc.) will allow you to override specific ; parameters within this file. Parameter names here are the same as they ; appear in the other configuration files. There is no way to change the ; value of a parameter here for just one subsystem. ; [general] ; ; Full name of a user ; fullname = New User ; ; Starting point of allocation of extensions ; userbase = 6000 ; ; Create voicemail mailbox and use use macro-stdexten ; hasvoicemail = yes ; ; Set voicemail mailbox 6000 password to 1234 ; vmsecret = 1234 ; ; Create SIP Peer ; hassip = yes ; ; Create IAX friend ; hasiax = yes ; ; Create H.323 friend ; ;hash323 = yes ; ; Create manager entry ; hasmanager = no ; ; Set permissions for manager entry (see manager.conf.sample for documentation) ; (defaults to *all* permissions) ;managerread = system,call,log,verbose,command,agent,user,config ;managerwrite = system,call,log,verbose,command,agent,user,config ; ; Remaining options are not specific to users.conf entries but are general. ; callwaiting = yes threewaycalling = yes callwaitingcallerid = yes transfer = yes canpark = yes cancallforward = yes callreturn = yes callgroup = 1 pickupgroup = 1 ;[6000] ;fullname = Joe User ;email = joe@foo.bar ;secret = 1234 ;dahdichan = 1 ;hasvoicemail = yes ;vmsecret = 1234 ;hassip = yes ;hasiax = no ;hash323 = no ;hasmanager = no ;callwaiting = no ;context = international ; ; Some administrators choose alphanumeric extensions, but still want their ; users to be reachable by traditional numeric extensions, specified by the ; alternateexts entry. ; ;alternateexts = 7057,3249
Время первой команды журнала | 14:43:14 2012- 4-23 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:30:10 2012- 4-24 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 10.89 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.98 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.90 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.58 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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