/l3/users/igor-public/nt-voip-2011-06/linux0.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 |
|
#sed 's/;.*//' /etc/asterisk/voicemail.conf | expand | grep -xv '[ ]*'
[general] format=wav49|gsm|wav serveremail=asterisk attach=yes skipms=3000 maxsilence=10 silencethreshold=128 maxlogins=3 emaildateformat=%A, %B %d, %Y at %r sendvoicemail=yes [zonemessages] eastern=America/New_York|'vm-received' Q 'digits/at' IMp central=America/Chicago|'vm-received' Q 'digits/at' IMp central24=America/Chicago|'vm-received' q 'digits/at' H N 'hours' military=Zulu|'vm-received' q 'digits/at' H N 'hours' 'phonetic/z_p' european=Europe/Copenhagen|'vm-received' a d b 'digits/at' HM [default] 1234 => 4242,Example Mailbox,root@localhost [other] 1234 => 5678,Company2 User,root@localhost |
#^C
|
#~
type=frind .... mailbox=2301@default ; (Don't forget to enable DNS SRV records if you want to use this) "/etc/asterisk/sip.conf" 1153L, 63882C ; ; devicename/extension ; If you define a SIP proxy as a peer below, you may call ; SIP/proxyhostname/user or SIP/user@proxyhostname ; where the proxyhostname is defined in a section below ; This syntax also works with ATA's with FXO ports ; ; SIP/username[:password[:md5secret[:authname]]]@host[:port] ; This form allows you to specify password or md5secret and authname ; without altering any authentication data in config. ; Examples: ; ; SIP/*98@mysipproxy ; SIP/sales:topsecret::account02@domain.com:5062 "/etc/asterisk/sip.conf" 1160L, 63929C written |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-9242.3817.4394 2011-06-21 16:14:33.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-06-21 16:18:26.000000000 +0300 @@ -2,3 +2,11 @@ exten => _11XX,1,Dial(SIP/${EXTEN},10) exten => _11XX,n,Voicemail(${EXTEN}@default) +exten => 8100,1,VoicemailMain() +exten => _81XX,1,VoicemailMain(11${EXTEN:2}@default) + +8101 => 2401 +8102 => 2402 + + + |
#ssh linux5
The authenticity of host 'linux5 (192.168.105.1)' can't be established. RSA key fingerprint is 8b:6f:bb:83:5b:55:cb:0f:c4:03:ca:f4:fc:21:10:b5. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'linux5,192.168.105.1' (RSA) to the list of known hosts. root@linux5's password: Linux linux5 2.6.32-5-amd64 #1 SMP Wed May 18 23:13:22 UTC 2011 x86_64 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: Tue Jun 21 11:44:27 2011 from 192.168.106.1 l3-agent is already running: pid=2497; pidfile=/root/.lilalo/l3-agent.pid |
#less /etc/asterisk/sip.conf
|
#less /etc/asterisk/extensions.conf
|
#exit
exit Connection to linux5 closed. |
#ls -l ~user/Desktop/ | less
|
#cd /tmp/
|
#mkdir sounds
|
#cd sounds
|
#ls -l
total 84 -rwxr-xr-x 1 user user 786 Feb 17 2010 convert.py -rw------- 1 user user 1229 Apr 28 2010 dictate.txt -rw------- 1 user user 2643 Apr 28 2010 digits.txt -rw------- 1 user user 782 Apr 28 2010 followme.txt -rw------- 1 user user 528 Apr 28 2010 letters.txt -rw------- 1 user user 207 Apr 28 2010 pbdirectory.txt -rw------- 1 user user 482 Apr 28 2010 phonetic.txt drwxr-xr-x 9 user user 20480 Apr 28 2010 ru -rw------- 1 user user 34946 Apr 28 2010 ru.txt |
#less ru.txt
|
#ls -l
total 84 -rwxr-xr-x 1 user user 786 Feb 17 2010 convert.py -rw------- 1 user user 1229 Apr 28 2010 dictate.txt -rw------- 1 user user 2643 Apr 28 2010 digits.txt -rw------- 1 user user 782 Apr 28 2010 followme.txt -rw------- 1 user user 528 Apr 28 2010 letters.txt -rw------- 1 user user 207 Apr 28 2010 pbdirectory.txt -rw------- 1 user user 482 Apr 28 2010 phonetic.txt drwxr-xr-x 9 user user 20480 Apr 28 2010 ru -rw------- 1 user user 34946 Apr 28 2010 ru.txt |
#ls ru
abonent.gsm LICENSE v-dannyj-moment.gsm accept-reject.gsm linija.gsm v.gsm activated.gsm minutes.gsm vkljuchena.gsm added.gsm najmite-1.gsm vkljuchen.gsm agent-alreadyon.gsm najmite-2.gsm vkljucheno.gsm agent-incorrect.gsm na-linii.gsm vm-advopts.gsm agent-loggedoff.gsm na-nomer.gsm vm-and.gsm agent-loginok.gsm ne-bespokoit.gsm vm-busy.gsm agent-newlocation.gsm ne-otvechaet.gsm vm-calldiffnum.gsm agent-pass.gsm ne-podkljuchen.gsm vm-changeto.gsm ... invalid.gsm TODO v-vyhodnye-dni.gsm is-curntly-unavail.gsm to-listen-to-it.gsm vyhodnoj.gsm is-currently-set-to.gsm to-rerecord-it.gsm vykljuchena.gsm is.gsm transfer.gsm vykljuchen.gsm is-set-to.gsm user-not-avail-menu.gsm vykljucheno.gsm izvinite.gsm ustanovlen-.gsm welcome-to-phonebook.gsm konferencii.gsm ustanovlen.gsm you-can-press.gsm last-num-to-call.gsm ustanovlennyj.gsm your.gsm let-me-find-him.gsm ustanovleno.gsm zanjat.gsm letters vas-privetstvuet.gsm zdravstujte.gsm |
#dpkg -L asterisk
/. /var /var/lib /var/lib/asterisk /var/lib/asterisk/moh /var/lib/asterisk/sounds /var/lib/asterisk/sounds/custom /var/spool /var/spool/asterisk /var/spool/asterisk/meetme ... /etc/default/asterisk /etc/logrotate.d /etc/logrotate.d/asterisk /etc/asterisk /etc/init.d /etc/init.d/asterisk /usr/share/man/man8/rasterisk.8.gz /usr/share/asterisk/sounds/recordings /usr/share/asterisk/sounds/custom /usr/sbin/rasterisk |
#ls /usr/share/asterisk/sounds
custom en en_US en_US_f_Allison recordings |
#mv ru
ru/ ru.txt |
#mv ru /usr/share/asterisk/sounds/
|
#ssh-keygen -t dsa
Generating public/private dsa key pair. Enter file in which to save the key (/root/.ssh/id_dsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_dsa. Your public key has been saved in /root/.ssh/id_dsa.pub. The key fingerprint is: f8:c6:e4:11:58:4b:ed:1a:73:61:ff:bd:eb:ea:60:1f root@linux0 The key's randomart image is: +--[ DSA 1024]----+ | o. | | + .+ | | . oo o | | .o.o . | | . S= . . | | =.. . .| | = o E .| | . . o .. | | .+oo.| +-----------------+ |
#ssh-keygen -R linux1.unix.nt
/root/.ssh/known_hosts updated. Original contents retained as /root/.ssh/known_hosts.old |
#ssh linux1.unix.nt
The authenticity of host 'linux1.unix.nt (192.168.101.1)' can't be established. RSA key fingerprint is b4:3e:17:c1:fd:ea:88:f6:f3:00:49:f3:63:a3:af:f0. Are you sure you want to continue connecting (yes/no)? no Host key verification failed. |
#ssh linux1.unix.nt
The authenticity of host 'linux1.unix.nt (192.168.101.1)' can't be established. RSA key fingerprint is b4:3e:17:c1:fd:ea:88:f6:f3:00:49:f3:63:a3:af:f0. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'linux1.unix.nt' (RSA) to the list of known hosts. Linux linux1 2.6.32-5-amd64 #1 SMP Wed May 18 23:13:22 UTC 2011 x86_64 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: Tue Jun 21 14:26:04 2011 l3-agent is already running: pid=1635; pidfile=/root/.lilalo/l3-agent.pid |
#ssh-keygen -l -f /etc/ssh/
moduli sshd_config ssh_host_dsa_key.pub ssh_host_rsa_key.pub ssh_config ssh_host_dsa_key ssh_host_rsa_key |
#ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key.pub
2048 b4:3e:17:c1:fd:ea:88:f6:f3:00:49:f3:63:a3:af:f0 /etc/ssh/ssh_host_rsa_key.pub (RSA) |
#exit
exit Connection to linux1.unix.nt closed. |
#vim ~/.ssh/config
--- /dev/null 2011-06-20 21:03:39.642552497 +0300 +++ /root/.ssh/config 2011-06-21 16:36:29.000000000 +0300 @@ -0,0 +1,3 @@ +Host * + VisualHostKey yes + |
#cat ~/.ssh/config
Host * VisualHostKey yes |
#ssh-keygen -R linux1.unix.nt
/root/.ssh/known_hosts updated. Original contents retained as /root/.ssh/known_hosts.old |
#ssh-keygen -R linux2.unix.nt
/root/.ssh/known_hosts updated. Original contents retained as /root/.ssh/known_hosts.old |
#ssh linux2.unix.nt
The authenticity of host 'linux2.unix.nt (192.168.102.1)' can't be established. RSA key fingerprint is 94:f0:ec:aa:57:87:da:83:60:9a:58:8a:16:c1:cb:02. +--[ RSA 2048]----+ | . | | + . | |. = | |Eo o | |o o S. | |.+. o .o . | |o+.+ ..= . | |+.o .+ o | |. .. . | +-----------------+ Are you sure you want to continue connecting (yes/no)? no Host key verification failed. |
#ssh linux3.unix.nt
Host key fingerprint is f5:37:1c:a8:53:ed:47:e8:b8:31:a0:92:1d:89:f9:f6 +--[ RSA 2048]----+ | | | o . o . | | o o o o + .| | + + = = o | | o S o = * .| | o . . = o | | E . | | | | | +-----------------+ Linux linux3 2.6.32-5-amd64 #1 SMP Wed May 18 23:13:22 UTC 2011 x86_64 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: Tue Jun 21 14:29:10 2011 from linux0.unix.nt l3-agent is already running: pid=8402; pidfile=/root/.lilalo/l3-agent.pid |
#exit
exit Connection to linux3.unix.nt closed. |
#ssh-keygen -R linux1.unix.nt
|
#for i in 1 2 3 5 6 7 8 9
|
#mv /tmp/all ~/bin/
|
#chmod +x ~/bin/all
|
#PATH=$PATH:~/bin/
|
#all date
The authenticity of host 'linux1.unix.nt (192.168.101.1)' can't be established. RSA key fingerprint is b4:3e:17:c1:fd:ea:88:f6:f3:00:49:f3:63:a3:af:f0. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'linux1.unix.nt' (RSA) to the list of known hosts. Вто Июн 21 16:39:24 EEST 2011 The authenticity of host 'linux2.unix.nt (192.168.102.1)' can't be established. RSA key fingerprint is 94:f0:ec:aa:57:87:da:83:60:9a:58:8a:16:c1:cb:02. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'linux2.unix.nt' (RSA) to the list of known hosts. Втр Июн 21 16:39:26 EEST 2011 Вто Июн 21 16:39:25 EEST 2011 Втр Июн 21 16:39:27 EEST 2011 Вто Июн 21 16:39:27 EEST 2011 Вто Июн 21 16:39:27 EEST 2011 Tue Jun 21 16:39:26 EEST 2011 Вто Июн 21 16:39:21 EEST 2011 |
#vim ~/bin/all
--- /tmp/l3-saved-9242.29079.5629 2011-06-21 16:39:33.000000000 +0300 +++ /root/bin/all 2011-06-21 16:39:53.000000000 +0300 @@ -2,7 +2,7 @@ for i in 1 2 3 5 6 7 8 9 do -ssh root@linux$i.unix.nt "$@" +ssh root@linux$i.unix.nt "$@" 2>&1 | sed 's/^/$i: /' done |
#all date
$i: Вто Июн 21 16:39:53 EEST 2011 $i: Втр Июн 21 16:39:53 EEST 2011 $i: Вто Июн 21 16:39:52 EEST 2011 $i: Втр Июн 21 16:39:54 EEST 2011 $i: Вто Июн 21 16:39:54 EEST 2011 $i: Вто Июн 21 16:39:55 EEST 2011 $i: Tue Jun 21 16:39:53 EEST 2011 $i: Вто Июн 21 16:39:48 EEST 2011 |
#vim ~/bin/all
--- /tmp/l3-saved-9242.18055.29433 2011-06-21 16:39:56.000000000 +0300 +++ /root/bin/all 2011-06-21 16:40:02.000000000 +0300 @@ -2,7 +2,7 @@ for i in 1 2 3 5 6 7 8 9 do -ssh root@linux$i.unix.nt "$@" 2>&1 | sed 's/^/$i: /' +ssh root@linux$i.unix.nt "$@" 2>&1 | sed "s/^/$i: /" done |
#all date
1: Вто Июн 21 16:40:02 EEST 2011 2: Втр Июн 21 16:40:01 EEST 2011 3: Вто Июн 21 16:40:00 EEST 2011 5: Втр Июн 21 16:40:03 EEST 2011 6: Вто Июн 21 16:40:02 EEST 2011 7: Вто Июн 21 16:40:03 EEST 2011 8: Tue Jun 21 16:40:01 EEST 2011 9: Вто Июн 21 16:39:57 EEST 2011 |
#all hostname
1: linux1 2: linux2 3: linux3 5: linux5 6: linux6 7: linux7 8: linux8 9: linux9 |
#cp ~/bin/all ~/bin/cpall
|
#vim ~/bin/cpall
--- /tmp/l3-saved-9242.17133.28518 2011-06-21 16:40:35.000000000 +0300 +++ /root/bin/cpall 2011-06-21 16:40:58.000000000 +0300 @@ -2,7 +2,7 @@ for i in 1 2 3 5 6 7 8 9 do -ssh root@linux$i.unix.nt "$@" 2>&1 | sed "s/^/$i: /" +scp "$1" root@linux$i.unix.nt:$2 done |
#chmod +x ~/bin/cpall
|
#cpall ~user/Downloads/
asterisk-sounds-ru-gsm-2010-04-28.tar.gz vimperator_2.3.1.xpi |
#cpall ~user/Downloads/asterisk-sounds-ru-gsm-2010-04-28.tar.gz /tmp/
asterisk-sounds-ru-gsm-2010-04-28.tar.gz 100% 2395KB 2.3MB/s 00:00 asterisk-sounds-ru-gsm-2010-04-28.tar.gz 100% 2395KB 2.3MB/s 00:00 asterisk-sounds-ru-gsm-2010-04-28.tar.gz 100% 2395KB 2.3MB/s 00:00 asterisk-sounds-ru-gsm-2010-04-28.tar.gz 100% 2395KB 2.3MB/s 00:00 asterisk-sounds-ru-gsm-2010-04-28.tar.gz 100% 2395KB 2.3MB/s 00:00 asterisk-sounds-ru-gsm-2010-04-28.tar.gz 100% 2395KB 2.3MB/s 00:00 asterisk-sounds-ru-gsm-2010-04-28.tar.gz 100% 2395KB 2.3MB/s 00:00 asterisk-sounds-ru-gsm-2010-04-28.tar.gz 100% 2395KB 2.3MB/s 00:00 |
#tar tvfz /tmp/asterisk-sounds-ru-gsm-2010-04-28.tar.gz | less
|
#mkdir /tmp/sound
|
#mv /tmp/sound /usr/share/as
aspell/ asterisk/ |
#mv /tmp/sound /usr/share/asterisk/
agi-bin/ documentation/ keys/ static-http/ conf/ firmware/ sounds/ |
#mv /tmp/sound /usr/share/asterisk/sounds/
custom/ en_US/ recordings/ en/ en_US_f_Allison/ ru/ |
#apt-cache search asterisk prompt
asterisk-core-sounds-en-gsm - asterisk PBX sound files - English/gsm asterisk-core-sounds-es-gsm - asterisk PBX sound files - Spanish/gsm asterisk-core-sounds-fr-gsm - asterisk PBX sound files - French/gsm asterisk-prompt-de - German voice prompts for the Asterisk PBX asterisk-prompt-es-co - Colombian Spanish voice prompts for Asterisk asterisk-prompt-fr-armelle - French voice prompts for Asterisk by Armelle Desjardins asterisk-prompt-fr-proformatique - French voice prompts for Asterisk asterisk-prompt-it - Italian voice prompts for the Asterisk PBX asterisk-prompt-se - Swedish voice prompts for Asterisk asterisk-sounds-main - Core Sound files for Asterisk (English) |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-9242.9930.21291 2011-06-22 09:08:35.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-06-22 09:24:44.000000000 +0300 @@ -1,6 +1,11 @@ exten => _11XX,1,Dial(SIP/${EXTEN},10) -exten => _11XX,n,Voicemail(${EXTEN}@default) +exten => _11XX,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?voicemail) +exten => _11XX,n,GotoIf($["${DIALSTATUS}" = "NOANSWER"]?voicemail) +exten => _11XX,n,Hangup() +exten => _11XX,n(voicemail),Voicemail(${EXTEN}@default) +exten => _11XX,n,Hangup() + exten => 8100,1,VoicemailMain() exten => _81XX,1,VoicemailMain(11${EXTEN:2}@default) |
#vim /etc/asterisk/extensions.conf
|
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-9242.24319.25454 2011-06-22 09:37:34.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-06-22 09:41:23.000000000 +0300 @@ -10,8 +10,9 @@ exten => 8100,1,VoicemailMain() exten => _81XX,1,VoicemailMain(11${EXTEN:2}@default) -8101 => 2401 -8102 => 2402 +exten => 8200,1,Wait(1) +exten => 8200,n,Record(/var/tmp/asterisk/record1:gsm|2) +exten => 8201,1,Playback(/var/tmp/asterisk/record1) |
#ps aux | grep ast
asterisk 14765 0.0 0.3 714484 25148 ? Ssl Jun21 0:28 /usr/sbin/asterisk -p -U asterisk asterisk 14766 0.0 0.0 13780 716 ? S Jun21 0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 14765 user 18315 8.2 0.2 315792 19324 ? S 09:40 0:07 /usr/bin/gtk-gnash -u http://pagead2.googlesyndication.com/pagead/imgad?id=CLWfk5Wm1rXgRBCsAhj6ATIIMdLR2Fp7uYw -U http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-7828584342582181&format=300x250_as&output=html&h=250&w=300&lmt=1181832154&ad_type=text_image&color_bg=e7e7ef&color_border=e7e7ef&color_link=ee7000&color_text=000 root 18328 0.0 0.0 7596 832 pts/4 S+ 09:41 0:00 grep ast |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-9242.2876.6176 2011-06-22 09:47:49.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-06-22 10:01:02.000000000 +0300 @@ -10,9 +10,14 @@ exten => 8100,1,VoicemailMain() exten => _81XX,1,VoicemailMain(11${EXTEN:2}@default) -exten => 8200,1,Wait(1) -exten => 8200,n,Record(/var/tmp/asterisk/record1:gsm|2) -exten => 8201,1,Playback(/var/tmp/asterisk/record1) +exten => _82XX,1,Wait(1) +exten => _82XX,n,Playback(please-enter-your&vm-message) +exten => _82XX,n,Wait(1) +exten => _82XX,n,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm,2) +exten => _82XX,n,Wait(1) +exten => _82XX,n,Playback(/var/tmp/asterisk/record${EXTEN:2}) + +exten => _83XX,1,Playback(/var/tmp/asterisk/record${EXTEN:2}) |
#e/e/a/extensions.conf /u/s/a/s/ru X
exten => _11XX,1,Dial(SIP/${EXTEN},10) exten => _11XX,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?voicemail) exten => _11XX,n,GotoIf($["${DIALSTATUS}" = "NOANSWER"]?voicemail) exten => _11XX,n,Hangup() exten => _11XX,n(voicemail),Voicemail(${EXTEN}@default) exten => _11XX,n,Hangup() exten => 8100,1,VoicemailMain() exten => _81XX,1,VoicemailMain(11${EXTEN:2}@default) exten => _82XX,1,Wait(1) exten => _82XX,n,Playback(please-enter-your&vm-message) exten => _82XX,n,Wait(1) exten => _82XX,n,Record(/var/tmp/asterisk/record${EXTEN:2}:gsm,2) exten => _82XX,n,Wait(1) exten => _82XX,n,Playback(/var/tmp/asterisk/record${EXTEN:2}) "/etc/asterisk/extensions.conf" 23L, 691C |
#{TIMESTAMP}-${EXTEN}-${CALLERID(num)})
/var/spool/asterisk/monitor |
#vim /etc/asterisk/extensions.conf
|
#{EXTEN:2})
Can't stat user: No such file or directory user: unable to attach file. |
#echo privet | mutt user
|
#echo privet | mutt -a /etc/passwd user
Can't stat user: No such file or directory user: unable to attach file. |
#echo privet | mutt user -a /etc/passwd
|
#{EXTEN:2})
account_policy_get: tdb_fetch_uint32 failed for type 3 (user must logon to change password), returning 0 account_policy_get: tdb_fetch_uint32 failed for type 4 (maximum password age), returning 0 account_policy_get: tdb_fetch_uint32 failed for type 5 (minimum password age), returning 0 account_policy_get: tdb_fetch_uint32 failed for type 6 (lockout duration), returning 0 account_policy_get: tdb_fetch_uint32 failed for type 7 (reset count minutes), returning 0 account_policy_get: tdb_fetch_uint32 failed for type 8 (bad lockout attempt), returning 0 account_policy_get: tdb_fetch_uint32 failed for type 9 (disconnect time), returning 0 account_policy_get: tdb_fetch_uint32 failed for type 10 (refuse machine password change), returning 0 Importing account for nobody...ok Importing account for user...ok Adding group `sambashare' (GID 121) ... 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-3squeeze2) ... 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. |
#smbpasswd -a user
New SMB password: Retype new SMB password: |
#vim /etc/samba/smb.conf
--- /tmp/l3-saved-9242.27485.22311 2011-06-22 10:16:07.000000000 +0300 +++ /etc/samba/smb.conf 2011-06-22 10:16:46.000000000 +0300 @@ -323,3 +323,10 @@ ; preexec = /bin/mount /cdrom ; postexec = /bin/umount /cdrom +[asterisk-monitor] + comment = Asterisk Monitor Records + read only = yes + locking = no + path = /var/spool/asterisk/monitor + guest ok = yes + |
#vim /etc/samba/smb.conf ^C
|
#[asterisk-monitor]
l3script: [asterisk-monitor]: command not found |
#comment = Asterisk Monitor Records
l3script: comment: command not found |
#read only = yes
^C |
#less /etc/asterisk/extensions.conf
|
#ls /var/spool/asterisk/monitor/
record-2102-2101-in.gsm record-2102-2101-out.gsm record--2102-2101.wav |
#{STRFTIME(${EPOCH},,%Y-%m-%d-%H:%M:%S)}-${EXTEN}-${CALLERID((
total 28 drwxr-x--- 2 asterisk asterisk 4096 Apr 23 18:04 dictate drwxr-x--- 2 asterisk asterisk 4096 Apr 23 18:04 meetme drwxr-x--- 2 asterisk asterisk 4096 Apr 23 18:04 monitor drwxr-x--- 2 asterisk asterisk 4096 Apr 23 18:04 outgoing drwxr-x--- 2 asterisk asterisk 4096 Apr 23 18:04 system drwxr-x--- 2 asterisk asterisk 4096 Apr 23 18:04 tmp drwxr-x--- 2 asterisk asterisk 4096 Apr 23 18:04 voicemail |
#vim /etc/group
--- /tmp/l3-saved-9242.14977.30005 2011-06-22 10:32:29.000000000 +0300 +++ /etc/group 2011-06-22 10:32:40.000000000 +0300 @@ -57,5 +57,5 @@ bind:x:117: smmta:x:118: smmsp:x:119: -asterisk:x:120: +asterisk:x:120:user sambashare:x:121: |
#vim /etc/group
|
#{EXTEN:2})
gst123 - GStreamer based command line media player mpg123-el - front-end to mpg321/ogg321 media players for Emacs libmpg123-0 - MPEG layer 1/2/3 audio decoder -- runtime library libmpg123-dev - MPEG layer 1/2/3 audio decoder -- development files mpg123-alsa - MPEG layer 1/2/3 audio player with ALSA support - dummy package mpg123-esd - MPEG layer 1/2/3 audio player with Esound support - dummy package mpg123-nas - MPEG layer 1/2/3 audio player with NAS support - dummy package mpg123 - MPEG layer 1/2/3 audio player mpg321 - Simple and lighweight command line MP3 player music123 - A command-line shell for sound-file players orpheus - light-weight text mode menu- and window-driven audio player xmms2-plugin-mpg123 - XMMS2 - libmpg123 based mp3 decoder |
#apt-get install sox
Reading package lists... Done Building dependency tree Reading state information... Done sox is already the newest version. sox set to manually installed. The following packages were automatically installed and are no longer required: libmysqlclient16 mysql-common Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded. |
#. /etc/bash_completion
|
#apt-cache search sox mp3
cplay - A front-end for various audio players libsox-fmt-mp3 - SoX MP3 format library sox - Swiss army knife of sound processing |
#apt-get install libsox-fmt-
libsox-fmt-all libsox-fmt-ao libsox-fmt-ffmpeg libsox-fmt-oss libsox-fmt-alsa libsox-fmt-base libsox-fmt-mp3 libsox-fmt-pulse |
#apt-get install libsox-fmt-mp3
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libmysqlclient16 mysql-common Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: libsox-fmt-mp3 0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded. Need to get 47.7 kB of archives. After this operation, 106 kB of additional disk space will be used. Get:1 http://10.0.35.1/debian/ squeeze/main libsox-fmt-mp3 amd64 14.3.1-1+b1 [47.7 kB] Fetched 47.7 kB in 0s (113 kB/s) Selecting previously deselected package libsox-fmt-mp3. (Reading database ... 129074 files and directories currently installed.) Unpacking libsox-fmt-mp3 (from .../libsox-fmt-mp3_14.3.1-1+b1_amd64.deb) ... Setting up libsox-fmt-mp3 (14.3.1-1+b1) ... |
#apt-get install libsox-fmt-gsm
Reading package lists... Done Building dependency tree Reading state information... Done Package libsox-fmt-gsm is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: libsox-fmt-base E: Package 'libsox-fmt-gsm' has no installation candidate |
#apt-get install libsox-fmt-base
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. The following packages were automatically installed and are no longer required: libmysqlclient16 mysql-common Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded. |
#ls /tmp/
(01) [Bill Whelan] Reel Around The Sun.mp3 orbit-Debian-gdm seahorse-JGS9Nj virtual-user.m468Td keyring-MTmJJd orbit-user ssh-dRYDPa1795 |
#exit
exit Connection to linux5 closed. |
#scp linux5:/tmp/'(01) [Bill Whelan] Reel Around The Sun.mp3' /tmp/
bash: -c: line 0: syntax error near unexpected token `(' bash: -c: line 0: `scp -f -- /tmp/(01) [Bill Whelan] Reel Around The Sun.mp3' |
#cpall /tmp/reel_around_the_sun.mp3 /tmp/
reel_around_the_sun.mp3 100% 20MB 19.9MB/s 00:01 reel_around_the_sun.mp3 100% 20MB 10.0MB/s 00:02 reel_around_the_sun.mp3 100% 20MB 19.9MB/s 00:01 reel_around_the_sun.mp3 100% 20MB 10.0MB/s 00:02 reel_around_the_sun.mp3 100% 20MB 19.9MB/s 00:01 reel_around_the_sun.mp3 100% 20MB 19.9MB/s 00:01 reel_around_the_sun.mp3 100% 20MB 10.0MB/s 00:02 reel_around_the_sun.mp3 100% 20MB 10.0MB/s 00:02 |
#cd /tmp
|
#apt-get install mpg123
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libmysqlclient16 mysql-common Use 'apt-get autoremove' to remove them. The following extra packages will be installed: libmpg123-0 Suggested packages: libartsc0 libaudio2 ... Selecting previously deselected package libmpg123-0. (Reading database ... 129082 files and directories currently installed.) Unpacking libmpg123-0 (from .../libmpg123-0_1.12.1-3_amd64.deb) ... Selecting previously deselected package mpg123. Unpacking mpg123 (from .../mpg123_1.12.1-3_amd64.deb) ... Processing triggers for man-db ... Setting up libmpg123-0 (1.12.1-3) ... Setting up mpg123 (1.12.1-3) ... update-alternatives: using /usr/bin/mpg123.bin to provide /usr/bin/mpg123 (mpg123) in auto mode. update-alternatives: using /usr/bin/mpg123.bin to provide /usr/bin/mp3-decoder (mp3-decoder) in auto mode. |
#mpg123 -w reel_around_the_sun.wav reel_around_the_sun.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3 version 1.12.1; written and copyright by Michael Hipp and others free software (LGPL/GPL) without any warranty but with best wishes Playing MPEG stream 1 of 1: reel_around_the_sun.mp3 ... Title: Reel Around The Sun Artist: Bill Whelan Comment: Album: Riverdance Year: Genre: Unknown MPEG 1.0 layer III, 320 kbit/s, 44100 Hz joint-stereo Note: Illegal Audio-MPEG-Header 0x41504554 at offset 20901093. Note: Trying to resync... Note: Hit end of (available) data during resync. [8:42] Decoding of reel_around_the_sun.mp3 finished. |
#ls -l reel_around_the_sun.wav
-rw-r--r-- 1 root root 92160812 Jun 22 11:34 reel_around_the_sun.wav |
#ls -l reel_around_the_sun.*
-rw-r--r-- 1 root root 20901416 Jun 22 11:32 reel_around_the_sun.mp3 -rw-r--r-- 1 root root 92160812 Jun 22 11:34 reel_around_the_sun.wav |
#ls -l
total 113828 -rw-r--r-- 1 root root 2452777 Jun 21 16:41 asterisk-sounds-ru-gsm-2010-04-28.tar.gz drwxr-xr-x 3 user user 4096 Jun 21 12:03 cities -rw-r--r-- 1 user user 348 Jun 22 11:23 gnash-cookies.2388 -rw-r--r-- 1 root root 5241 Jun 21 12:15 install drwx------ 2 user user 4096 Jun 21 08:57 keyring-xeEz64 drwx------ 2 Debian-gdm Debian-gdm 4096 Jun 21 08:57 orbit-Debian-gdm drwx------ 2 user user 4096 Jun 22 11:16 orbit-user -rw-r--r-- 1 root root 862059 Jun 22 11:36 reel_around_the_sun.gsm -rw-r--r-- 1 root root 20901416 Jun 22 11:32 reel_around_the_sun.mp3 -rw-r--r-- 1 root root 92160812 Jun 22 11:34 reel_around_the_sun.wav drwx------ 2 user user 4096 Jun 21 08:57 seahorse-Kru0jB drwxr-xr-x 3 user user 4096 Apr 28 2010 sound drwxr-xr-x 2 user user 4096 Jun 21 16:31 sounds drwx------ 2 user user 4096 Jun 21 08:57 ssh-FSwVpN2257 drwx------ 2 user user 4096 Jun 21 08:58 virtual-user.1kMzBr |
#ls -l
|
#ls -l
|
Host * VisualHostKey yes
Время первой команды журнала | 14:52:02 2011- 6-21 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 10:37:00 2011- 6-22 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 6.93 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.98 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.45 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.69 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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