/l3/users/user2-yuriy/nt-voip/Linux2.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 |
|
#vim /etc/hosts
--- /tmp/l3-saved-2576.27999.160 2013-04-09 15:18:32.000000000 +0300 +++ /etc/hosts 2013-04-09 15:18:45.000000000 +0300 @@ -1,5 +1,5 @@ 127.0.0.1 localhost -192.168.15.2 Linux2.unix.nt Linux2 +192.168.20.2 Linux2.unix.nt Linux2 # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback |
#ssh linux2.unix.nt
The authenticity of host 'linux2.unix.nt (192.168.20.2)' can't be established. RSA key fingerprint is 04:f3:89:0a:68:d5:57:39:9b:27:28:50:c5:50:71:aa. Are you sure you want to continue connecting (yes/no)? n Please type 'yes' or 'no': no Host key verification failed. |
#ssh linux2.unix.nt
The authenticity of host 'linux2.unix.nt (192.168.20.2)' can't be established. RSA key fingerprint is 04:f3:89:0a:68:d5:57:39:9b:27:28:50:c5:50:71:aa. Are you sure you want to continue connecting (yes/no)? n Please type 'yes' or 'no': no Host key verification failed. |
#host linux2.unix.nt
linux2.unix.nt has address 192.168.20.2 |
#nc linux2.unix.nt 25
220 Linux2.unix.nt ESMTP Sendmail 8.14.3/8.14.3/Debian-9.4; Tue, 9 Apr 2013 15:22:48 +0300; (No UCE/UBE) logging access from: Linux2.unix.nt(OK)-Linux2.unix.nt [192.168.20.2] HELO x 250 Linux2.unix.nt Hello Linux2.unix.nt [192.168.20.2], pleased to meet you MAIL FROM: user@linux2.unix.nt 250 2.1.0 user@linux2.unix.nt... Sender ok RCPT TO: user@linux2.unix.nt 250 2.1.5 user@linux2.unix.nt... Recipient ok DATA 354 Enter mail, end with "." on a line by itself Hi . 250 2.0.0 r39CMmxc007939 Message accepted for delivery ^C |
#tail /var/log/mail.log
Apr 9 15:21:13 Linux2 in.qpopper[7834]: Unable to open bulletin directory '/var/spool/popbull': No such file or directory (2) [pop_bull.c:386] Apr 9 15:21:13 Linux2 in.qpopper[7834]: (v4.0.9) POP login by user "user" at (192.168.20.101) 192.168.20.101 [pop_log.c:244] Apr 9 15:21:34 Linux2 sm-mta[7835]: r39CLX9H007835: ruleset=check_rcpt, arg1=<user@linux2.unix.nt>, relay=[192.168.20.101], reject=553 5.5.4 <user@linux2.unix.nt>... Domain name required for sender address linux2 Apr 9 15:21:34 Linux2 sm-mta[7835]: r39CLX9H007835: from=<linux2>, size=426, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=[192.168.20.101] Apr 9 15:22:22 Linux2 sm-mta[7915]: r39CMKNC007915: ruleset=check_rcpt, arg1=<user@linux1.unix.tn>, relay=[192.168.20.101], reject=553 5.5.4 <user@linux1.unix.tn>... Domain name required for sender address linux2 Apr 9 15:22:22 Linux2 sm-mta[7915]: r39CMKNC007915: from=<linux2>, size=411, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=[192.168.20.101] Apr 9 15:23:08 Linux2 sm-mta[7939]: r39CMmxc007939: from=user@linux2.unix.nt, size=3, class=0, nrcpts=1, msgid=<201304091223.r39CMmxc007939@Linux2.unix.nt>, proto=SMTP, daemon=MTA-v4, relay=Linux2.unix.nt [192.168.20.2] Apr 9 15:23:09 Linux2 sm-mta[7942]: r39CMmxc007939: to=user@linux2.unix.nt, ctladdr=user@linux2.unix.nt (1000/1000), delay=00:00:06, xdelay=00:00:01, mailer=local, pri=30343, dsn=2.0.0, stat=Sent Apr 9 15:23:10 Linux2 sm-mta[7940]: r39CN8fc007940: ruleset=check_rcpt, arg1=<user@linux1.unix.tn>, relay=IT-Laptop.local [192.168.20.101], reject=553 5.5.4 <user@linux1.unix.tn>... Domain name required for sender address linux2 Apr 9 15:23:10 Linux2 sm-mta[7940]: r39CN8fc007940: from=<linux2>, size=426, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=IT-Laptop.local [192.168.20.101] |
#ls -l /etc/asterisk/voi*.*
-rw-r----- 1 asterisk asterisk 17961 Jan 14 20:35 /etc/asterisk/voicemail.conf |
#ls -l /etc/asterisk/voi*.*
-rw-r----- 1 asterisk asterisk 17961 Jan 14 20:35 /etc/asterisk/voicemail.conf |
#vim /etc/asterisk/voicemail.conf
--- /tmp/l3-saved-2576.17336.27240 2013-04-09 15:44:58.000000000 +0300 +++ /etc/asterisk/voicemail.conf 2013-04-09 15:46:47.000000000 +0300 @@ -330,6 +330,8 @@ :1234 => 4242,Example Mailbox,root@localhost 1201 => 12345,Mail 1201,user@linux2.unix.nt +1202 => 12345,Mail 1202,user@linux2.unix.nt + ;4200 => 9855,Mark Spencer,markster@linux-support.net,mypager@digium.com,attach=no|serveremail=myaddy@digium.com|tz=central|maxmsg=10 ;4300 => 3456,Ben Rigas,ben@american-computer.net |
#[1202]
[ ] [1202]asterisk/sip.conf" 37L, 408C type=friend [1201] [1201]=12345 host=dynamic context=gr1 username=ASUS 1 [1203] type=friend secret=12345 host=dynamic context=gr1 username=Asus 2 13,0-1 Top |
#[1202]
[ ] [1202]asterisk/sip.conf" 37L, 408C type=friend [1201] [1201]=12345 host=dynamic context=gr1 username=ASUS 1 [1203] type=friend secret=12345 host=dynamic context=gr1 username=Asus 2 13,0-1 Top |
#[1202]
;externpass=/usr/bin/myapp ;externpassnotify=/usr/bin/myapp ; If you need to have an external program, i.e. /usr/bin/myapp ; called when a user changes her voicemail password, uncomment this: ;externpasscheck=/usr/bin/myapp ; Arguments for this script are: ; mailbox context oldpass newpass ; For the directory, you can override the intro file if you want ;directoryintro=dir-intro ; The character set for voicemail messages can be specified here ... ;4310 => -5432,Sales,sales@marko.net ;4069 => 6522,Matt Brooks,matt@marko.net,,|tz=central|attach=yes|saycid=yes|dialout=fromvm|callback=fromm vm|review=yes|operator=yes|envelope=yes|moveheard=yes|sayduration=yes|saydurationm=1 ;4073 => 1099,Bianca Paige,bianca@biancapaige.com,,delete=1|emailsubject=You have a new voicemail.|emaill body=Click on the attachment to listen. ;4110 => 3443,Rob Flynn,rflynn@blueridge.net ;4235 => 1234,Jim Holmes,jim@astricon.ips,,Tz=european ; Pete telecommutes from Chicago, so we'll customize timestamps for him. ; "/etc/asterisk/voicemail.conf" 370L, 18095C written |
#[1202]
; manipulating their voicemail. ; ; In other words: don't change the format list on a production system ; unless you are _VERY_ sure that you know what you are doing and are ; prepared for the consequences. ; ; Who the e-mail notification should appear to come from ; ${IF(${ISNULL(${ORIG_VM_DATE})}?${VM_DATE}:${ORIG_VM_DATE})} ; ; Note: The emailbody config row can only be up to 512 characters due to a ... ;4310 => -5432,Sales,sales@marko.net ;4069 => 6522,Matt Brooks,matt@marko.net,,|tz=central|attach=yes|saycid=yes|dialout=fromvm|callback=fromm vm|review=yes|operator=yes|envelope=yes|moveheard=yes|sayduration=yes|saydurationm=1 ;4073 => 1099,Bianca Paige,bianca@biancapaige.com,,delete=1|emailsubject=You have a new voicemail.|emaill body=Click on the attachment to listen. ;4110 => 3443,Rob Flynn,rflynn@blueridge.net ;4235 => 1234,Jim Holmes,jim@astricon.ips,,Tz=european ; Pete telecommutes from Chicago, so we'll customize timestamps for him. ; "/etc/asterisk/voicemail.conf" 370L, 18095C written |
#fg 1
exten => _23XX,n,Dial(SIP/${EXTEN},30,wW) 34,0-1 39% [1]+ Stopped /usr/bin/vim "$@" (wd: ~) (wd now: /) exten => _1023XX,1,Dial(SIP/${EXTEN:2}) exten => _1023XX10,1,Dial(SIP/${EXTEN:2:4}) exten => _22XX,1,Dial(SIP/minsk/${EXTEN}) exten => _21XX,1,Dial(SIP/minsk/${EXTEN}) exten => _1XXX,1,Dial(SIP/minsk/${EXTEN}) |
#fg 1
exten => _23XX,n,Dial(SIP/${EXTEN},30,wW) 34,0-1 39% [1]+ Stopped /usr/bin/vim "$@" (wd: ~) (wd now: /) exten => _1023XX,1,Dial(SIP/${EXTEN:2}) exten => _1023XX10,1,Dial(SIP/${EXTEN:2:4}) exten => _22XX,1,Dial(SIP/minsk/${EXTEN}) exten => _21XX,1,Dial(SIP/minsk/${EXTEN}) exten => _1XXX,1,Dial(SIP/minsk/${EXTEN}) |
#fg 3
asterisk -r Linux2*CLI> exit No such command ' exit' (type 'core show help exit' for other possible commands) Linux2*CLI> quit |
#fg 3
asterisk -r Linux2*CLI> exit No such command ' exit' (type 'core show help exit' for other possible commands) Linux2*CLI> quit |
#fg 2
asterisk -r [Apr 9 12:13:43] NOTICE[1693]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1202 [Apr 9 12:13:43] NOTICE[1693]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1203 [Apr 9 12:16:29] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'chicago' to extension '1201' rejected because extension not found in context 'default'. [Apr 9 12:16:31] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'chicago' to extension '1201' rejected because extension not found in context 'default'. [Apr 9 12:16:45] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from '1202' to extension '1101' rejected because extension not found in context 'group1'. [Apr 9 12:16:50] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'chicago' to extension '1201' rejected because extension not found in context 'default'. [Apr 9 12:21:17] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from '1202' to extension '1102' rejected because extension not found in context 'group1'. [Apr 9 12:22:53] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from '1201' to extension '8000' rejected because extension not found in context 'group2'. [Apr 9 13:08:02] NOTICE[1693]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1203 ... [Apr 9 15:35:10] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'Cisco' to extension '1201' rejected because extension not found in context 'gr1'. [Apr 9 15:36:21] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'Cisco' to extension '1201' rejected because extension not found in context 'gr1'. [Apr 9 15:36:27] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'Cisco' to extension '1202' rejected because extension not found in context 'gr1'. [Apr 9 15:36:47] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'ASUS 1' to extension '1201' rejected because extension not found in context 'gr1'. [Apr 9 15:36:55] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'ASUS 1' to extension '1201' rejected because extension not found in context 'gr1'. [Apr 9 15:47:45] WARNING[8186]: app_dial.c:1747 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown) [Apr 9 15:47:45] WARNING[8186]: app_voicemail.c:5260 leave_voicemail: No entry in voicemail config file for '1203' [Apr 9 15:47:56] NOTICE[8187]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.20.100 Linux2*CLI> quit quit |
#fg 2
asterisk -r [Apr 9 12:13:43] NOTICE[1693]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1202 [Apr 9 12:13:43] NOTICE[1693]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1203 [Apr 9 12:16:29] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'chicago' to extension '1201' rejected because extension not found in context 'default'. [Apr 9 12:16:31] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'chicago' to extension '1201' rejected because extension not found in context 'default'. [Apr 9 12:16:45] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from '1202' to extension '1101' rejected because extension not found in context 'group1'. [Apr 9 12:16:50] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'chicago' to extension '1201' rejected because extension not found in context 'default'. [Apr 9 12:21:17] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from '1202' to extension '1102' rejected because extension not found in context 'group1'. [Apr 9 12:22:53] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from '1201' to extension '8000' rejected because extension not found in context 'group2'. [Apr 9 13:08:02] NOTICE[1693]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1203 ... [Apr 9 15:35:10] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'Cisco' to extension '1201' rejected because extension not found in context 'gr1'. [Apr 9 15:36:21] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'Cisco' to extension '1201' rejected because extension not found in context 'gr1'. [Apr 9 15:36:27] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'Cisco' to extension '1202' rejected because extension not found in context 'gr1'. [Apr 9 15:36:47] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'ASUS 1' to extension '1201' rejected because extension not found in context 'gr1'. [Apr 9 15:36:55] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'ASUS 1' to extension '1201' rejected because extension not found in context 'gr1'. [Apr 9 15:47:45] WARNING[8186]: app_dial.c:1747 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown) [Apr 9 15:47:45] WARNING[8186]: app_voicemail.c:5260 leave_voicemail: No entry in voicemail config file for '1203' [Apr 9 15:47:56] NOTICE[8187]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.20.100 Linux2*CLI> quit quit |
#fg 1
asterisk -r [Apr 9 10:04:20] NOTICE[1693]: chan_sip.c:21812 handle_request_register: Registration from '<sip:boston@192.168.20.2>' failed for '192.168.10.1' - No matching peer found [Apr 9 10:04:34] NOTICE[1693]: chan_sip.c:24218 build_peer: The 'username' field for sip peers has been deprecated in favor of the term 'defaultuser' [Apr 9 10:04:34] WARNING[1693]: chan_sip.c:18331 handle_response_register: Got 404 Not found on SIP register to service chicagp@192.168.10.1, giving up [Apr 9 10:05:27] WARNING[1693]: chan_sip.c:18331 handle_response_register: Got 404 Not found on SIP register to service chicagp@192.168.10.1, giving up [Apr 9 10:13:38] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'chicago' to extension '{$EXTEN}' rejected because extension not found in context 'default'. [Apr 9 10:14:12] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'chicago' to extension '{$EXTEN}' rejected because extension not found in context 'default'. [Apr 9 10:14:14] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'chicago' to extension '{$EXTEN}' rejected because extension not found in context 'default'. [Apr 9 10:14:16] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'chicago' to extension '{$EXTEN}' rejected because extension not found in context 'default'. [Apr 9 10:14:25] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'chicago' to extension '{$EXTEN}' rejected because extension not found in context 'default'. ... [Apr 9 15:35:10] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'Cisco' to extension '1201' rejected because extension not found in context 'gr1'. [Apr 9 15:36:21] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'Cisco' to extension '1201' rejected because extension not found in context 'gr1'. [Apr 9 15:36:27] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'Cisco' to extension '1202' rejected because extension not found in context 'gr1'. [Apr 9 15:36:47] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'ASUS 1' to extension '1201' rejected because extension not found in context 'gr1'. [Apr 9 15:36:55] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'ASUS 1' to extension '1201' rejected because extension not found in context 'gr1'. [Apr 9 15:47:45] WARNING[8186]: app_dial.c:1747 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown) [Apr 9 15:47:45] WARNING[8186]: app_voicemail.c:5260 leave_voicemail: No entry in voicemail config file for '1203' [Apr 9 15:47:56] NOTICE[8187]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.20.100 Linux2*CLI> quit quit |
#fg 1
asterisk -r [Apr 9 10:04:20] NOTICE[1693]: chan_sip.c:21812 handle_request_register: Registration from '<sip:boston@192.168.20.2>' failed for '192.168.10.1' - No matching peer found [Apr 9 10:04:34] NOTICE[1693]: chan_sip.c:24218 build_peer: The 'username' field for sip peers has been deprecated in favor of the term 'defaultuser' [Apr 9 10:04:34] WARNING[1693]: chan_sip.c:18331 handle_response_register: Got 404 Not found on SIP register to service chicagp@192.168.10.1, giving up [Apr 9 10:05:27] WARNING[1693]: chan_sip.c:18331 handle_response_register: Got 404 Not found on SIP register to service chicagp@192.168.10.1, giving up [Apr 9 10:13:38] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'chicago' to extension '{$EXTEN}' rejected because extension not found in context 'default'. [Apr 9 10:14:12] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'chicago' to extension '{$EXTEN}' rejected because extension not found in context 'default'. [Apr 9 10:14:14] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'chicago' to extension '{$EXTEN}' rejected because extension not found in context 'default'. [Apr 9 10:14:16] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'chicago' to extension '{$EXTEN}' rejected because extension not found in context 'default'. [Apr 9 10:14:25] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'chicago' to extension '{$EXTEN}' rejected because extension not found in context 'default'. ... [Apr 9 15:35:10] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'Cisco' to extension '1201' rejected because extension not found in context 'gr1'. [Apr 9 15:36:21] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'Cisco' to extension '1201' rejected because extension not found in context 'gr1'. [Apr 9 15:36:27] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'Cisco' to extension '1202' rejected because extension not found in context 'gr1'. [Apr 9 15:36:47] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'ASUS 1' to extension '1201' rejected because extension not found in context 'gr1'. [Apr 9 15:36:55] NOTICE[1693]: chan_sip.c:20325 handle_request_invite: Call from 'ASUS 1' to extension '1201' rejected because extension not found in context 'gr1'. [Apr 9 15:47:45] WARNING[8186]: app_dial.c:1747 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown) [Apr 9 15:47:45] WARNING[8186]: app_voicemail.c:5260 leave_voicemail: No entry in voicemail config file for '1203' [Apr 9 15:47:56] NOTICE[8187]: rtp.c:1143 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 192.168.20.100 Linux2*CLI> quit quit |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2576.26424.17023 2013-04-09 16:17:21.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-09 16:18:27.000000000 +0300 @@ -10,9 +10,9 @@ exten => _81XX,n [local] -extet => 8300,1,Voicemailmain() +exten => 8300,1,Voicemailmain() -exte => _12XX,1,Answer +exten => _12XX,1,Answer ;exten => _12XX,n,Set(CALLFILENAME=${EXTEN}-${CALLERID(num)}-${EPOCH}) ;exten => _12XX,n,Monitor(wav,${CALLFILENAME},m) exten => _12XX,n,Dial(SIP/${EXTEN},10,wW) |
#[root@linux7:~]# # http://downloads.asterisk.org/pub/telephony/sounds/
bash: [root@linux7:~]#: command not found |
#[root@linux7:~]# # http://downloads.asterisk.org/pub/telephony/sounds/
bash: [root@linux7:~]#: command not found |
#ls
bin dev home lib media opt roo sbin srv tmp var boot etc initrd.img lost+found mnt proc root selinux sys usr vmlinuz |
#ls
bin dev home lib media opt roo sbin srv tmp var boot etc initrd.img lost+found mnt proc root selinux sys usr vmlinuz |
#ls
acpi emacs insserv.conf Muttrc.d rsyslog.d adduser.conf email-addresses insserv.conf.d mysql samba aliases environment iproute2 nanorc sane.d alternatives esound issue network screenrc anacrontab exim4 issue.net NetworkManager securetty apache2 fonts kbd networks security apm freetds kernel nsswitch.conf sensors3.conf apt fstab kernel-img.conf obex-data-server sensors.d asterisk fuse.conf ldap ODBCDataSources services at.deny gai.conf ld.so.cache odbc.ini sgml ... debian_version hosts.deny mime.types rc5.d vga default iceweasel mke2fs.conf rc6.d vim defoma idmapd.conf modprobe.d rc.local w3m deluser.conf ifplugd modules rcS.d wgetrc dhcp inetd.conf mono reportbug.conf wildmidi dhcp3 init.d motd resolvconf wpa_supplicant dictionaries-common initramfs-tools motd.tail resolv.conf X11 discover.conf.d inittab mtab rmt xdg discover-modprobe.conf inputrc mtools.conf rpc xml dpkg insserv Muttrc rsyslog.conf |
#ls
acpi emacs insserv.conf Muttrc.d rsyslog.d adduser.conf email-addresses insserv.conf.d mysql samba aliases environment iproute2 nanorc sane.d alternatives esound issue network screenrc anacrontab exim4 issue.net NetworkManager securetty apache2 fonts kbd networks security apm freetds kernel nsswitch.conf sensors3.conf apt fstab kernel-img.conf obex-data-server sensors.d asterisk fuse.conf ldap ODBCDataSources services at.deny gai.conf ld.so.cache odbc.ini sgml ... debian_version hosts.deny mime.types rc5.d vga default iceweasel mke2fs.conf rc6.d vim defoma idmapd.conf modprobe.d rc.local w3m deluser.conf ifplugd modules rcS.d wgetrc dhcp inetd.conf mono reportbug.conf wildmidi dhcp3 init.d motd resolvconf wpa_supplicant dictionaries-common initramfs-tools motd.tail resolv.conf X11 discover.conf.d inittab mtab rmt xdg discover-modprobe.conf inputrc mtools.conf rpc xml dpkg insserv Muttrc rsyslog.conf |
#ls -l
total 692 -rw-r----- 1 asterisk asterisk 140 Jan 14 20:35 adsi.conf -rw-r----- 1 asterisk asterisk 840 Jan 14 20:35 adtranvofr.conf -rw-r----- 1 asterisk asterisk 3035 Jan 14 20:35 agents.conf -rw-r----- 1 asterisk asterisk 2906 Jan 14 20:35 ais.conf -rw-r----- 1 asterisk asterisk 2227 Jan 14 20:35 alarmreceiver.conf -rw-r----- 1 asterisk asterisk 3259 Jan 14 20:35 alsa.conf -rw-r----- 1 asterisk asterisk 767 Jan 14 20:35 amd.conf -rw-r----- 1 asterisk asterisk 3260 Jan 14 20:35 asterisk.adsi -rw-r----- 1 asterisk asterisk 3234 Jan 14 20:35 asterisk.conf ... -rw-r----- 1 asterisk asterisk 9135 Jan 14 20:35 skinny.conf -rw-r----- 1 asterisk asterisk 6717 Jan 14 20:35 sla.conf -rw-r----- 1 asterisk asterisk 2669 Jan 14 20:35 smdi.conf -rw-r----- 1 asterisk asterisk 1384 Jan 14 20:35 telcordia-1.adsi -rw-r----- 1 asterisk asterisk 656 Jan 14 20:35 udptl.conf -rw-r----- 1 asterisk asterisk 4909 Jan 14 20:35 unistim.conf -rw-r----- 1 asterisk asterisk 3216 Jan 14 20:35 usbradio.conf -rw-r----- 1 asterisk asterisk 2011 Jan 14 20:35 users.conf -rw-r----- 1 asterisk asterisk 18104 Apr 9 16:14 voicemail.conf -rw-r----- 1 asterisk asterisk 5939 Jan 14 20:35 vpb.conf |
#ls -l
total 692 -rw-r----- 1 asterisk asterisk 140 Jan 14 20:35 adsi.conf -rw-r----- 1 asterisk asterisk 840 Jan 14 20:35 adtranvofr.conf -rw-r----- 1 asterisk asterisk 3035 Jan 14 20:35 agents.conf -rw-r----- 1 asterisk asterisk 2906 Jan 14 20:35 ais.conf -rw-r----- 1 asterisk asterisk 2227 Jan 14 20:35 alarmreceiver.conf -rw-r----- 1 asterisk asterisk 3259 Jan 14 20:35 alsa.conf -rw-r----- 1 asterisk asterisk 767 Jan 14 20:35 amd.conf -rw-r----- 1 asterisk asterisk 3260 Jan 14 20:35 asterisk.adsi -rw-r----- 1 asterisk asterisk 3234 Jan 14 20:35 asterisk.conf ... -rw-r----- 1 asterisk asterisk 9135 Jan 14 20:35 skinny.conf -rw-r----- 1 asterisk asterisk 6717 Jan 14 20:35 sla.conf -rw-r----- 1 asterisk asterisk 2669 Jan 14 20:35 smdi.conf -rw-r----- 1 asterisk asterisk 1384 Jan 14 20:35 telcordia-1.adsi -rw-r----- 1 asterisk asterisk 656 Jan 14 20:35 udptl.conf -rw-r----- 1 asterisk asterisk 4909 Jan 14 20:35 unistim.conf -rw-r----- 1 asterisk asterisk 3216 Jan 14 20:35 usbradio.conf -rw-r----- 1 asterisk asterisk 2011 Jan 14 20:35 users.conf -rw-r----- 1 asterisk asterisk 18104 Apr 9 16:14 voicemail.conf -rw-r----- 1 asterisk asterisk 5939 Jan 14 20:35 vpb.conf |
#ls -l
total 692 -rw-r----- 1 asterisk asterisk 140 Jan 14 20:35 adsi.conf -rw-r----- 1 asterisk asterisk 840 Jan 14 20:35 adtranvofr.conf -rw-r----- 1 asterisk asterisk 3035 Jan 14 20:35 agents.conf -rw-r----- 1 asterisk asterisk 2906 Jan 14 20:35 ais.conf -rw-r----- 1 asterisk asterisk 2227 Jan 14 20:35 alarmreceiver.conf -rw-r----- 1 asterisk asterisk 3259 Jan 14 20:35 alsa.conf -rw-r----- 1 asterisk asterisk 767 Jan 14 20:35 amd.conf -rw-r----- 1 asterisk asterisk 3260 Jan 14 20:35 asterisk.adsi -rw-r----- 1 asterisk asterisk 3234 Jan 14 20:35 asterisk.conf ... -rw-r----- 1 asterisk asterisk 9135 Jan 14 20:35 skinny.conf -rw-r----- 1 asterisk asterisk 6717 Jan 14 20:35 sla.conf -rw-r----- 1 asterisk asterisk 2669 Jan 14 20:35 smdi.conf -rw-r----- 1 asterisk asterisk 1384 Jan 14 20:35 telcordia-1.adsi -rw-r----- 1 asterisk asterisk 656 Jan 14 20:35 udptl.conf -rw-r----- 1 asterisk asterisk 4909 Jan 14 20:35 unistim.conf -rw-r----- 1 asterisk asterisk 3216 Jan 14 20:35 usbradio.conf -rw-r----- 1 asterisk asterisk 2011 Jan 14 20:35 users.conf -rw-r----- 1 asterisk asterisk 18104 Apr 9 16:14 voicemail.conf -rw-r----- 1 asterisk asterisk 5939 Jan 14 20:35 vpb.conf |
#ls -l
total 692 -rw-r----- 1 asterisk asterisk 140 Jan 14 20:35 adsi.conf -rw-r----- 1 asterisk asterisk 840 Jan 14 20:35 adtranvofr.conf -rw-r----- 1 asterisk asterisk 3035 Jan 14 20:35 agents.conf -rw-r----- 1 asterisk asterisk 2906 Jan 14 20:35 ais.conf -rw-r----- 1 asterisk asterisk 2227 Jan 14 20:35 alarmreceiver.conf -rw-r----- 1 asterisk asterisk 3259 Jan 14 20:35 alsa.conf -rw-r----- 1 asterisk asterisk 767 Jan 14 20:35 amd.conf -rw-r----- 1 asterisk asterisk 3260 Jan 14 20:35 asterisk.adsi -rw-r----- 1 asterisk asterisk 3234 Jan 14 20:35 asterisk.conf ... -rw-r----- 1 asterisk asterisk 9135 Jan 14 20:35 skinny.conf -rw-r----- 1 asterisk asterisk 6717 Jan 14 20:35 sla.conf -rw-r----- 1 asterisk asterisk 2669 Jan 14 20:35 smdi.conf -rw-r----- 1 asterisk asterisk 1384 Jan 14 20:35 telcordia-1.adsi -rw-r----- 1 asterisk asterisk 656 Jan 14 20:35 udptl.conf -rw-r----- 1 asterisk asterisk 4909 Jan 14 20:35 unistim.conf -rw-r----- 1 asterisk asterisk 3216 Jan 14 20:35 usbradio.conf -rw-r----- 1 asterisk asterisk 2011 Jan 14 20:35 users.conf -rw-r----- 1 asterisk asterisk 18104 Apr 9 16:14 voicemail.conf -rw-r----- 1 asterisk asterisk 5939 Jan 14 20:35 vpb.conf |
#ls
adsi.conf console.conf iax.conf res_ldap.conf adtranvofr.conf dbsep.conf iaxprov.conf res_odbc.conf agents.conf dnsmgr.conf indications.conf res_pgsql.conf ais.conf dsp.conf jabber.conf res_snmp.conf alarmreceiver.conf dundi.conf jingle.conf rpt.conf alsa.conf enum.conf logger.conf rtp.conf amd.conf extconfig.conf.ori manager.conf say.conf asterisk.adsi extensions.ael manager.d sip.comfig.ori asterisk.conf extensions.conf meetme.conf sip.conf cdr_adaptive_odbc.conf extensions.conf.ori mgcp.conf sip.conf.save ... cdr_manager.conf extensions.confy modules.conf skinny.conf cdr_odbc.conf extensions.lua musiconhold.conf sla.conf cdr_pgsql.conf extensions_minivm.conf muted.conf smdi.conf cdr_sqlite3_custom.conf features.conf osp.conf telcordia-1.adsi cdr_tds.conf festival.conf oss.conf udptl.conf chan_dahdi.conf followme.conf phone.conf unistim.conf cli_aliases.conf func_odbc.conf phoneprov.conf usbradio.conf cli.conf gtalk.conf queuerules.conf users.conf cli_permissions.conf h323.conf queues.conf voicemail.conf codecs.conf http.conf res_config_sqlite.conf vpb.conf |
#ls
adsi.conf console.conf iax.conf res_ldap.conf adtranvofr.conf dbsep.conf iaxprov.conf res_odbc.conf agents.conf dnsmgr.conf indications.conf res_pgsql.conf ais.conf dsp.conf jabber.conf res_snmp.conf alarmreceiver.conf dundi.conf jingle.conf rpt.conf alsa.conf enum.conf logger.conf rtp.conf amd.conf extconfig.conf.ori manager.conf say.conf asterisk.adsi extensions.ael manager.d sip.comfig.ori asterisk.conf extensions.conf meetme.conf sip.conf cdr_adaptive_odbc.conf extensions.conf.ori mgcp.conf sip.conf.save ... cdr_manager.conf extensions.confy modules.conf skinny.conf cdr_odbc.conf extensions.lua musiconhold.conf sla.conf cdr_pgsql.conf extensions_minivm.conf muted.conf smdi.conf cdr_sqlite3_custom.conf features.conf osp.conf telcordia-1.adsi cdr_tds.conf festival.conf oss.conf udptl.conf chan_dahdi.conf followme.conf phone.conf unistim.conf cli_aliases.conf func_odbc.conf phoneprov.conf usbradio.conf cli.conf gtalk.conf queuerules.conf users.conf cli_permissions.conf h323.conf queues.conf voicemail.conf codecs.conf http.conf res_config_sqlite.conf vpb.conf |
#mv /en/*.*/ /usr/share/asterisk/sounds/ru
mv: cannot stat `/en/*.*/': No such file or directory |
#mv /en/*.*/ /usr/share/asterisk/sounds/ru
mv: cannot stat `/en/*.*/': No such file or directory |
#mv /en/ /usr/share/asterisk/sounds/ru
mv: cannot move `/en/' to `/usr/share/asterisk/sounds/ru/en': Not a directory |
#mv /en/ /usr/share/asterisk/sounds/ru
mv: cannot move `/en/' to `/usr/share/asterisk/sounds/ru/en': Not a directory |
#mv en /usr/share/asterisk/sounds/ru
mv: cannot stat `en': No such file or directory |
#mv en /usr/share/asterisk/sounds/ru
mv: cannot stat `en': No such file or directory |
#mv /en/ /usr/share/asterisk/sounds/ru/
mv: cannot move `/en/' to `/usr/share/asterisk/sounds/ru/en': Not a directory |
#mv /en/ /usr/share/asterisk/sounds/ru/
mv: cannot move `/en/' to `/usr/share/asterisk/sounds/ru/en': Not a directory |
#mv /en/ /usr/share/asterisk/sounds/ru
mv: cannot move `/en/' to `/usr/share/asterisk/sounds/ru/en': Not a directory |
#mv /en/ /usr/share/asterisk/sounds/ru
mv: cannot move `/en/' to `/usr/share/asterisk/sounds/ru/en': Not a directory |
#mv /~en/ /usr/share/asterisk/sounds/ru
mv: cannot stat `/~en/': No such file or directory |
#mv /~en/ /usr/share/asterisk/sounds/ru
mv: cannot stat `/~en/': No such file or directory |
#mv ~en /usr/share/asterisk/sounds/ru
mv: cannot stat `~en': No such file or directory |
#mv ~en /usr/share/asterisk/sounds/ru
mv: cannot stat `~en': No such file or directory |
#ls
en |
#cp /en/*
cp: target `/en/vm-youhave.gsm' is not a directory |
#ls
agent-alreadyon.gsm minutes.gsm vm-instructions.gsm agent-incorrect.gsm pbx-invalid.gsm vm-intro.gsm agent-loggedoff.gsm pbx-invalidpark.gsm vm-invalid-password.gsm agent-loginok.gsm pbx-parkingfailed.gsm vm-invalidpassword.gsm agent-newlocation.gsm pbx-transfer.gsm vm-isonphone.gsm agent-pass.gsm phonetic vm-isunavail.gsm agent-user.gsm privacy-incorrect.gsm vm-last.gsm ascending-2tone.gsm privacy-prompt.gsm vm-leavemsg.gsm auth-incorrect.gsm privacy-thankyou.gsm vm-login.gsm auth-thankyou.gsm privacy-unident.gsm vm-mailboxfull.gsm ... dir-nomore.gsm vm-forwardoptions.gsm vm-toreply.gsm dir-pls-enter.gsm vm-Friends.gsm vm-torerecord.gsm dir-usingkeypad.gsm vm-from-extension.gsm vm-undeleted.gsm dir-welcome.gsm vm-from.gsm vm-undelete.gsm followme vm-from-phonenumber.gsm vm-unknown-caller.gsm hello-world.gsm vm-goodbye.gsm vm-Urgent.gsm hours.gsm vm-helpexit.gsm vm-whichbox.gsm invalid.gsm vm-INBOX.gsm vm-Work.gsm letters vm-incorrect.gsm vm-youhave.gsm LICENSE-asterisk-core-en-1.4.19 vm-incorrect-mailbox.gsm |
#ls
agent-alreadyon.gsm minutes.gsm vm-instructions.gsm agent-incorrect.gsm pbx-invalid.gsm vm-intro.gsm agent-loggedoff.gsm pbx-invalidpark.gsm vm-invalid-password.gsm agent-loginok.gsm pbx-parkingfailed.gsm vm-invalidpassword.gsm agent-newlocation.gsm pbx-transfer.gsm vm-isonphone.gsm agent-pass.gsm phonetic vm-isunavail.gsm agent-user.gsm privacy-incorrect.gsm vm-last.gsm ascending-2tone.gsm privacy-prompt.gsm vm-leavemsg.gsm auth-incorrect.gsm privacy-thankyou.gsm vm-login.gsm auth-thankyou.gsm privacy-unident.gsm vm-mailboxfull.gsm ... dir-nomore.gsm vm-forwardoptions.gsm vm-toreply.gsm dir-pls-enter.gsm vm-Friends.gsm vm-torerecord.gsm dir-usingkeypad.gsm vm-from-extension.gsm vm-undeleted.gsm dir-welcome.gsm vm-from.gsm vm-undelete.gsm followme vm-from-phonenumber.gsm vm-unknown-caller.gsm hello-world.gsm vm-goodbye.gsm vm-Urgent.gsm hours.gsm vm-helpexit.gsm vm-whichbox.gsm invalid.gsm vm-INBOX.gsm vm-Work.gsm letters vm-incorrect.gsm vm-youhave.gsm LICENSE-asterisk-core-en-1.4.19 vm-incorrect-mailbox.gsm |
#cd ..\
> cd / bash: cd: ..cd: No such file or directory |
#cd ..
|
#cp /home/user/music/* /usr/share/asterisk/sounds/ru/
cp: cannot stat `/home/user/music/*': No such file or directory |
localhost Linux2.unix.nt
Время первой команды журнала | 14:17:24 2013- 4- 9 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 16:14:21 2013- 4- 9 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 40.59 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 3.96 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.95 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.86 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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