/l3/users/roman-sidorenko/asterisk/debian2/root :1 :2 :3 :4 :5 :6 |
|
#/etc/init.d/festival start
Not starting festival server, as /etc/default/festival does not have RUN_FESTIVAL=yes. |
#vi /etc/default/festival
--- /dev/null 2009-12-09 16:00:07.504275874 +0200 +++ /etc/default/festival 2009-12-09 18:41:46.000000000 +0200 @@ -0,0 +1 @@ +RUN_FESTIVAL=yes |
#netstat -lnp
Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:47014 0.0.0.0:* LISTEN 1905/rpc.statd tcp 0 0 127.0.0.1:5038 0.0.0.0:* LISTEN 2451/asterisk tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1894/portmap tcp 0 0 0.0.0.0:2000 0.0.0.0:* LISTEN 2451/asterisk tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2158/sshd tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2425/exim4 tcp6 0 0 :::22 :::* LISTEN 2158/sshd udp 0 0 0.0.0.0:2727 0.0.0.0:* 2451/asterisk udp 0 0 0.0.0.0:4520 0.0.0.0:* 2451/asterisk udp 0 0 0.0.0.0:809 0.0.0.0:* 1905/rpc.statd udp 0 0 0.0.0.0:5060 0.0.0.0:* 2451/asterisk udp 0 0 0.0.0.0:4569 0.0.0.0:* 2451/asterisk udp 0 0 0.0.0.0:111 0.0.0.0:* 1894/portmap udp 0 0 0.0.0.0:60281 0.0.0.0:* 1905/rpc.statd Active UNIX domain sockets (only servers) Proto RefCnt Flags Type State I-Node PID/Program name Path unix 2 [ ACC ] STREAM LISTENING 5776 2138/acpid /var/run/acpid.socket unix 2 [ ACC ] STREAM LISTENING 6126 2451/asterisk /var/run/asterisk/asterisk.ctl |
#less /etc/init.d/festival
|
#/etc/init.d/festival start
Starting Festival server: festival. |
#ps aux | grep festival
root 3836 0.0 0.0 3116 720 pts/10 R+ 18:45 0:00 grep festival |
#ps waux | grep festival
root 3845 0.0 0.0 3116 716 pts/10 R+ 18:45 0:00 grep festival |
#tail /var/log/daemon.log
Dec 9 18:07:14 debian2 asterisk[2451]: rc_avpair_new: unknown attribute 1490026597 Dec 9 18:07:48 debian2 asterisk[2451]: rc_avpair_new: unknown attribute 1490026597 Dec 9 18:10:40 debian2 asterisk[2451]: rc_avpair_new: unknown attribute 1490026597 Dec 9 18:11:57 debian2 asterisk[2451]: rc_avpair_new: unknown attribute 1490026597 Dec 9 18:13:21 debian2 asterisk[2451]: rc_avpair_new: unknown attribute 1490026597 Dec 9 18:14:07 debian2 asterisk[2451]: rc_avpair_new: unknown attribute 1490026597 Dec 9 18:21:27 debian2 asterisk[2451]: rc_avpair_new: unknown attribute 1490026597 Dec 9 18:37:30 debian2 asterisk[2451]: rc_avpair_new: unknown attribute 1490026597 Dec 9 18:38:11 debian2 asterisk[2451]: rc_avpair_new: unknown attribute 1490026597 Dec 9 18:41:54 debian2 asterisk[2451]: rc_avpair_new: unknown attribute 1490026597 |
#vi /etc/festival.scm
--- /tmp/l3-saved-3410.26979.24426 2009-12-09 18:45:46.000000000 +0200 +++ /etc/festival.scm 2009-12-09 18:46:44.000000000 +0200 @@ -1,14 +1,14 @@ ;; Enable access to localhost (needed by debian users) - (set! server_access_list ‘(”localhost\\.localdomain” “localhost”)) + (set! server_access_list '("localhost\\.localdomain" "localhost")) ;;; Command for Asterisk begin (define (tts_textasterisk string mode) - “(tts_textasterisk STRING MODE) + "(tts_textasterisk STRING MODE) Apply tts to STRING. This function is specifically designed for use in server mode so a single function call may synthesize the string. - This function name may be added to the server safe functions.” - (let ((wholeutt (utt.synth (eval (list ‘Utterance ‘Text string))))) + This function name may be added to the server safe functions." + (let ((wholeutt (utt.synth (eval (list 'Utterance 'Text string))))) (utt.wave.resample wholeutt 8000) (utt.wave.rescale wholeutt 5) (utt.send.wave.client wholeutt))) |
#cat /etc/bind/
db.0 db.root obukhov.unix.nt db.127 named.conf rndc.key db.255 named.conf.local zones.rfc1918 db.empty .named.conf.local.swp db.local named.conf.options |
#cat /etc/bind/db.root
; This file holds the information on root name servers needed to ; initialize cache of Internet domain name servers ; (e.g. reference this file in the "cache . <file>" ; configuration file of BIND domain name servers). ; ; This file is made available by InterNIC ; under anonymous FTP as ; file /domain/named.root ; on server FTP.INTERNIC.NET ; -OR- RS.INTERNIC.NET ... ; . 3600000 NS L.ROOT-SERVERS.NET. L.ROOT-SERVERS.NET. 3600000 A 199.7.83.42 ; ; operated by WIDE ; . 3600000 NS M.ROOT-SERVERS.NET. M.ROOT-SERVERS.NET. 3600000 A 202.12.27.33 M.ROOT-SERVERS.NET. 3600000 AAAA 2001:dc3::35 ; End of File |
#apt-get update
Hit http://10.0.35.1 lenny Release.gpg Get:1 http://security.debian.org lenny/updates Release.gpg [835B] Ign http://security.debian.org lenny/updates/main Translation-en_US Ign http://10.0.35.1 lenny/main Translation-en_US Get:2 http://security.debian.org lenny/updates Release [40.8kB] Hit http://10.0.35.1 lenny Release Get:3 http://security.debian.org lenny/updates/main Packages [243kB] Ign http://10.0.35.1 lenny/main Packages/DiffIndex Ign http://10.0.35.1 lenny/main Sources/DiffIndex Ign http://10.0.35.1 lenny/main Packages Ign http://10.0.35.1 lenny/main Sources Get:4 http://security.debian.org lenny/updates/main Sources [63.8kB] Hit http://10.0.35.1 lenny/main Packages Hit http://10.0.35.1 lenny/main Sources Fetched 348kB in 1s (213kB/s) Reading package lists... Done |
#apt-get install
adsi.conf features.conf phone.conf adtranvofr.conf festival.conf privacy.conf agents.conf followme.conf queues.conf alarmreceiver.conf func_odbc.conf res_odbc.conf alsa.conf gtalk.conf res_pgsql.conf amd.conf h323.conf res_snmp.conf asterisk.adsi http.conf rpt.conf asterisk.conf iax.conf rtp.conf cdr.conf iax.conf.SAVED say.conf cdr_custom.conf iaxprov.conf sip.conf ... cdr_tds.conf manager.conf sla.conf codecs.conf manager.d/ smdi.conf dnsmgr.conf meetme.conf telcordia-1.adsi dundi.conf mgcp.conf udptl.conf enum.conf misdn.conf users.conf esel.conf modules.conf voicemail.conf extconfig.conf musiconhold.conf vpb.conf extensions.ael muted.conf watchdog.conf extensions.conf osp.conf zapata.conf extensions.conf.SAVED oss.conf |
#apt-get install fe
features.conf festival.conf |
#. /etc/bash_completion
|
#apt-get install fe
feed2imap festival-italian festvox-kdlpc16k feh festival-mr festvox-kdlpc8k fence festival-te festvox-mr-nsk fence-gnbd festival-voice festvox-rablpc16k fenix festlex-cmu festvox-rablpc8k fenix-dev festlex-ifd festvox-suopuhe-common fenix-plugin-mpeg festlex-oald festvox-suopuhe-lj fenix-plugins festlex-poslex festvox-suopuhe-mv fenix-plugins-system festvox-czech-ph festvox-te-nsk ferm festvox-don fet ferret festvox-ellpc11k fetchexc festival festvox-hi-nsk fetchmail festival-czech festvox-italp11k fetchmail-common festival-dev festvox-italp16k fetchmailconf festival-doc festvox-itapc11k fetchmail-ssl festival-freebsoft-utils festvox-itapc16k fetchyahoo festival-gaim festvox-kallpc16k feynmf festival-hi festvox-kallpc8k |
#apt-get install fest
festival festlex-ifd festvox-kallpc8k festival-czech festlex-oald festvox-kdlpc16k festival-dev festlex-poslex festvox-kdlpc8k festival-doc festvox-czech-ph festvox-mr-nsk festival-freebsoft-utils festvox-don festvox-rablpc16k festival-gaim festvox-ellpc11k festvox-rablpc8k festival-hi festvox-hi-nsk festvox-suopuhe-common festival-italian festvox-italp11k festvox-suopuhe-lj festival-mr festvox-italp16k festvox-suopuhe-mv festival-te festvox-itapc11k festvox-te-nsk festival-voice festvox-itapc16k festlex-cmu festvox-kallpc16k |
#apt-get install festival
festival festival-freebsoft-utils festival-mr festival-czech festival-gaim festival-te festival-dev festival-hi festival-voice festival-doc festival-italian |
#apt-get install festival
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: esound-clients esound-common festlex-cmu festlex-poslex festvox-kallpc16k libaudiofile0 libesd0 libestools1.2 sgml-base Suggested packages: festival-freebsoft-utils festival-gaim pidgin-festival esound sgml-base-doc The following NEW packages will be installed: esound-clients esound-common festival festlex-cmu festlex-poslex ... Setting up libaudiofile0 (0.2.6-7) ... Setting up esound-common (0.2.36-3) ... Setting up libesd0 (0.2.36-3) ... Setting up esound-clients (0.2.36-3) ... Setting up libestools1.2 (1:1.2.96~beta-2) ... Setting up sgml-base (1.26) ... Setting up festival (1.96~beta-7) ... Setting up festlex-cmu (1.4.0-6) ... Setting up festlex-poslex (1.4.0-5) ... Setting up festvox-kallpc16k (1.4.0-5) ... |
#vi /etc/default/festival
|
#/etc/init.d/festival restart
Restarting Festival server: festivalNo /usr/bin/festival found running; none killed. . |
#netstat -tapnu
Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:43046 0.0.0.0:* LISTEN 2018/rpc.statd tcp 0 0 127.0.0.1:5038 0.0.0.0:* LISTEN 7795/asterisk tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 2007/portmap tcp 0 0 0.0.0.0:2000 0.0.0.0:* LISTEN 7795/asterisk tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2292/sshd tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2577/exim4 tcp 0 0 192.168.102.1:22 192.168.102.2:42894 ESTABLISHED 7947/5 tcp 0 0 192.168.102.1:37315 192.168.101.3:22 ESTABLISHED 7892/ssh tcp 0 0 192.168.102.1:47788 212.26.146.51:18030 TIME_WAIT - tcp 0 0 192.168.102.1:47789 212.26.146.51:18030 TIME_WAIT - tcp6 0 0 :::22 :::* LISTEN 2292/sshd udp 0 0 0.0.0.0:922 0.0.0.0:* 2018/rpc.statd udp 0 0 0.0.0.0:2727 0.0.0.0:* 7795/asterisk udp 0 0 0.0.0.0:4520 0.0.0.0:* 7795/asterisk udp 0 0 0.0.0.0:48445 0.0.0.0:* 2018/rpc.statd udp 0 0 0.0.0.0:67 0.0.0.0:* 2676/dhcpd3 udp 0 0 0.0.0.0:5060 0.0.0.0:* 7795/asterisk udp 0 0 0.0.0.0:4569 0.0.0.0:* 7795/asterisk udp 0 0 0.0.0.0:111 0.0.0.0:* 2007/portmap |
#ps auxw | grep fest
root 9074 0.0 0.0 3116 728 pts/6 S+ 22:49 0:00 grep fest |
#/etc/init.d/festival restart
Restarting Festival server: festivalNo /usr/bin/festival found running; none killed. . |
#/etc/init.d/festival restart
Restarting Festival server: festivalNo /usr/bin/festival found running; none killed. . |
#vim extensions.conf
|
#vim extensions.conf
|
#exten => t,1,Goto(menu4,s,1)
Usage: host [-aCdlriTwv] [-c class] [-N ndots] [-t type] [-W time] [-R number] [-m flag] hostname [server] -a is equivalent to -v -t ANY -c specifies query class for non-IN data -C compares SOA records on authoritative nameservers -d is equivalent to -v -l lists all hosts in a domain, using AXFR -i IP6.INT reverse lookups -N changes the number of dots allowed before root lookup is done -r disables recursive processing -R specifies number of retries for UDP packets -s a SERVFAIL response should stop query -t specifies the query type -T enables TCP/IP mode -v enables verbose output -w specifies to wait forever for a reply -W specifies how long to wait for a reply -4 use IPv4 query transport only -6 use IPv6 query transport only -m set memory debugging flag (trace|record|usage) |
#host 188.24.192.221
Host 221.192.24.188.in-addr.arpa not found: 2(SERVFAIL) |
#whois 188.24.192.221 | less
|
#apt-cache search bind9
bind9 - Internet Domain Name Server bind9-doc - Documentation for BIND bind9-host - Version of 'host' bundled with BIND 9.X bind9utils - Utilities for BIND bindgraph - DNS statistics RRDtool frontend for BIND9 gadmin-bind - GTK+ configuration tool for bind9 gadmin-bind-dbg - GTK+ configuration tool for bind9 (debug) gbindadmin - GTK+ configuration tool for bind9 (transitional package) host - utility for querying DNS servers libbind9-40 - BIND9 Shared Library used by BIND libconfig-auto-perl - Magical config file parser libnss-lwres - NSS module for using bind9's lwres as a naming service unbound-host - reimplementation of the 'host' command gforge-dns-bind9 - collaborative development tool - DNS management (using Bind9) |
#apt-get install bind9
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: bind9utils Suggested packages: bind9-doc resolvconf ufw The following NEW packages will be installed: bind9 bind9utils 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. ... Setting up bind9utils (1:9.5.1.dfsg.P3-1) ... Setting up bind9 (1:9.5.1.dfsg.P3-1) ... Adding group `bind' (GID 107) ... Done. Adding system user `bind' (UID 106) ... Adding new user `bind' (UID 106) with group `bind' ... Not creating home directory `/var/cache/bind'. wrote key file "/etc/bind/rndc.key" # Starting domain name service...: bind9. |
#cd ../bind
bind/ bindresvport.blacklist |
#cd ../bind
|
#vim named.conf
|
#};
// If there is a firewall between you and nameservers you want // to talk to, you may need to fix the firewall to allow multiple // ports to talk. See http://www.kb.cert.org/vuls/id/800113 // If your ISP provided one or more IP addresses for stable // nameservers, you probably want to use them as forwarders. // Uncomment the following block, and insert the addresses replacing // the all-0's placeholder. forwarders { 10.0.35.1; }; auth-nxdomain no; # conform to RFC1035 listen-on-v6 { any; }; }; ~ ~ ~ "named.conf.options" 20L, 568C written |
#vim /etc/resolv.conf
--- /tmp/l3-saved-2648.29676.32032 2009-12-10 11:16:56.000000000 +0200 +++ /etc/resolv.conf 2009-12-10 11:17:05.000000000 +0200 @@ -1 +1 @@ -nameserver 10.0.35.1 +nameserver 127.0.0.1 |
#rndc reload
server reload successful |
#host meta.ua
meta.ua has address 194.0.131.18 meta.ua mail is handled by 20 smtp.meta.ua. meta.ua mail is handled by 10 webmail.meta.ua. |
#vim named.conf
|
#:q
options { directory "/var/cache/bind"; // If there is a firewall between you and nameservers you want // to talk to, you may need to fix the firewall to allow multiple // ports to talk. See http://www.kb.cert.org/vuls/id/800113 // If your ISP provided one or more IP addresses for stable // nameservers, you probably want to use them as forwarders. // Uncomment the following block, and insert the addresses replacing // the all-0's placeholder. forwarders { 10.0.35.1; }; auth-nxdomain no; # conform to RFC1035 listen-on-v6 { any; }; }; ~ ~ ~ "named.conf.options" 20L, 568C |
#dig @10.0.35.1 unix.nt axfr > obukhov.unix.nt
|
#vim obukhov.unix.nt
--- /tmp/l3-saved-2648.13043.5158 2009-12-10 11:18:40.000000000 +0200 +++ obukhov.unix.nt 2009-12-10 11:21:37.000000000 +0200 @@ -2,110 +2,6 @@ ; <<>> DiG 9.5.1-P3 <<>> @10.0.35.1 unix.nt axfr ; (1 server found) ;; global options: printcmd -unix.nt. 3600 IN SOA sky.unix.nt. igor.chub.in. 2007062401 3600 3600 3600 3600 -unix.nt. 3600 IN NS sky.unix.nt. -unix.nt. 3600 IN A 10.0.35.1 -class0.unix.nt. 3600 IN NS linux0.class0.unix.nt. -linux0.class0.unix.nt. 3600 IN A 10.0.35.100 -class1.unix.nt. 3600 IN NS linux1.class1.unix.nt. -linux1.class1.unix.nt. 3600 IN A 192.168.15.1 -class10.unix.nt. 3600 IN NS linux10.class10.unix.nt. -linux10.class10.unix.nt. 3600 IN A 192.168.15.10 -class11.unix.nt. 3600 IN NS linux11.class11.unix.nt. -linux11.class11.unix.nt. 3600 IN A 192.168.15.11 -class12.unix.nt. 3600 IN NS linux12.class12.unix.nt. -linux12.class12.unix.nt. 3600 IN A 192.168.15.12 -class13.unix.nt. 3600 IN NS linux13.class13.unix.nt. -linux13.class13.unix.nt. 3600 IN A 192.168.15.13 -class14.unix.nt. 3600 IN NS linux14.class14.unix.nt. -linux14.class14.unix.nt. 3600 IN A 192.168.15.14 -class15.unix.nt. 3600 IN NS linux15.class15.unix.nt. -linux15.class15.unix.nt. 3600 IN A 192.168.15.15 -class16.unix.nt. 3600 IN NS linux16.class16.unix.nt. -linux16.class16.unix.nt. 3600 IN A 192.168.15.16 -class2.unix.nt. 3600 IN NS linux2.class2.unix.nt. -linux2.class2.unix.nt. 3600 IN A 192.168.15.2 -class3.unix.nt. 3600 IN NS linux3.class3.unix.nt. -linux3.class3.unix.nt. 3600 IN A 192.168.15.3 -class4.unix.nt. 3600 IN NS linux4.class4.unix.nt. -linux4.class4.unix.nt. 3600 IN A 192.168.15.4 -class5.unix.nt. 3600 IN NS linux5.class5.unix.nt. -linux5.class5.unix.nt. 3600 IN A 192.168.15.5 -class6.unix.nt. 3600 IN NS linux6.class6.unix.nt. -linux6.class6.unix.nt. 3600 IN A 192.168.15.6 -class7.unix.nt. 3600 IN NS linux7.class7.unix.nt. -linux7.class7.unix.nt. 3600 IN A 192.168.15.7 -class8.unix.nt. 3600 IN NS linux8.class8.unix.nt. -linux8.class8.unix.nt. 3600 IN A 192.168.15.8 -class9.unix.nt. 3600 IN NS linux9.class9.unix.nt. -linux9.class9.unix.nt. 3600 IN A 192.168.15.9 -clint.unix.nt. 3600 IN A 10.0.17.1 -cronos.unix.nt. 3600 IN A 10.0.1.2 -esx1.unix.nt. 3600 IN A 192.168.15.21 -esx2.unix.nt. 3600 IN A 192.168.15.22 -esx3.unix.nt. 3600 IN A 192.168.15.23 -esx4.unix.nt. 3600 IN A 192.168.15.24 -esx5.unix.nt. 3600 IN A 192.168.15.115 -esx6.unix.nt. 3600 IN A 192.168.15.116 -esx7.unix.nt. 3600 IN A 192.168.15.117 -esx8.unix.nt. 3600 IN A 192.168.15.118 -esxN.unix.nt. 3600 IN A 192.168.15.21 -fbsd0.unix.nt. 3600 IN A 192.168.15.20 -fbsd1.unix.nt. 3600 IN A 192.168.15.21 -fbsd2.unix.nt. 3600 IN A 192.168.15.22 -fbsd3.unix.nt. 3600 IN A 192.168.15.23 -fbsd4.unix.nt. 3600 IN A 192.168.15.25 -fbsd5.unix.nt. 3600 IN A 192.168.15.25 -fbsd6.unix.nt. 3600 IN A 192.168.15.26 -fbsd7.unix.nt. 3600 IN A 192.168.15.27 -fbsd8.unix.nt. 3600 IN A 192.168.15.28 -fbsd9.unix.nt. 3600 IN A 192.168.15.29 -linux0.unix.nt. 3600 IN A 10.0.35.100 -linux1.unix.nt. 3600 IN A 192.168.15.1 -linux10.unix.nt. 3600 IN A 192.168.15.10 -linux11.unix.nt. 3600 IN A 192.168.15.11 -linux12.unix.nt. 3600 IN A 192.168.15.12 -linux13.unix.nt. 3600 IN A 192.168.15.13 -linux14.unix.nt. 3600 IN A 192.168.15.14 -linux15.unix.nt. 3600 IN A 192.168.15.15 -linux16.unix.nt. 3600 IN A 192.168.15.16 -linux2.unix.nt. 3600 IN A 192.168.15.2 -linux3.unix.nt. 3600 IN A 192.168.15.3 -linux4.unix.nt. 3600 IN A 192.168.15.4 -linux5.unix.nt. 3600 IN A 192.168.15.5 -linux6.unix.nt. 3600 IN A 192.168.15.6 -linux7.unix.nt. 3600 IN A 192.168.15.7 -linux8.unix.nt. 3600 IN A 192.168.15.8 -linux9.unix.nt. 3600 IN A 192.168.15.9 -m1.unix.nt. 3600 IN A 192.168.25.51 -m10.unix.nt. 3600 IN A 192.168.25.60 -m11.unix.nt. 3600 IN A 192.168.25.61 -m12.unix.nt. 3600 IN A 192.168.25.62 -m13.unix.nt. 3600 IN A 192.168.25.63 -m14.unix.nt. 3600 IN A 192.168.25.64 -m15.unix.nt. 3600 IN A 192.168.25.65 -m16.unix.nt. 3600 IN A 192.168.25.66 -m17.unix.nt. 3600 IN A 192.168.25.67 -m18.unix.nt. 3600 IN A 192.168.25.68 -m19.unix.nt. 3600 IN A 192.168.25.69 -m2.unix.nt. 3600 IN A 192.168.25.52 -m20.unix.nt. 3600 IN A 192.168.25.70 -m3.unix.nt. 3600 IN A 192.168.25.53 -m4.unix.nt. 3600 IN A 192.168.25.54 -m5.unix.nt. 3600 IN A 192.168.25.55 -m6.unix.nt. 3600 IN A 192.168.25.56 -m7.unix.nt. 3600 IN A 192.168.25.57 -m8.unix.nt. 3600 IN A 192.168.25.58 -m9.unix.nt. 3600 IN A 192.168.25.59 -mossy.unix.nt. 3600 IN A 10.0.35.200 -procurve.unix.nt. 3600 IN A 192.168.15.253 -serial.unix.nt. 3600 IN A 192.168.25.253 -sky.unix.nt. 3600 IN A 10.0.35.1 -wb1.unix.nt. 3600 IN A 10.0.35.71 -winxp1.unix.nt. 3600 IN A 192.168.15.101 -unix.nt. 3600 IN SOA sky.unix.nt. igor.chub.in. 2007062401 3600 3600 3600 3600 -;; Query time: 2 msec -;; SERVER: 10.0.35.1#53(10.0.35.1) -;; WHEN: Thu Dec 10 11:18:37 2009 -;; XFR size: 102 records (messages 1, bytes 2277) - +@ 3600 IN SOA obukhov.unix.nt. igor.chub.in. 2009121001 3600 3600 3600 3600 + 3600 IN NS obukhov.unix.nt. + 3600 IN A 192.168.102.2 |
#vim named.conf.local
--- /tmp/l3-saved-2648.18177.28511 2009-12-10 11:21:47.000000000 +0200 +++ named.conf.local 2009-12-10 11:24:31.000000000 +0200 @@ -6,3 +6,4 @@ // organization //include "/etc/bind/zones.rfc1918"; +zone "obukhov.unix.nt" {type master; file "/etc/bind/obukhov.unix.nt"; }; |
#cat /etc/bind/
db.0 db.root obukhov.unix.nt db.127 named.conf rndc.key db.255 named.conf.local zones.rfc1918 db.empty .named.conf.local.swp db.local named.conf.options |
#cat /etc/bind/db.local
; ; BIND data file for local loopback interface ; $TTL 604800 @ IN SOA localhost. root.localhost. ( 2 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; @ IN NS localhost. @ IN A 127.0.0.1 @ IN AAAA ::1 |
#cat /etc/bind/db.
db.0 db.127 db.255 db.empty db.local db.root |
#cat /etc/bind/
db.0 db.root obukhov.unix.nt db.127 named.conf rndc.key db.255 named.conf.local zones.rfc1918 db.empty .named.conf.local.swp db.local named.conf.options |
#cat /etc/bind/zones.rfc1918
zone "10.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "16.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "17.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "18.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "19.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "20.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "21.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "22.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "23.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "24.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "25.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "26.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "27.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "28.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "29.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "30.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "31.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "168.192.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; |
#vim /etc/hostname
--- /tmp/l3-saved-3410.4280.32163 2009-12-10 12:51:16.000000000 +0200 +++ /etc/hostname 2009-12-10 12:51:28.000000000 +0200 @@ -1 +1 @@ -debian2 +obukhov.unix.nt |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind9 waiting for pid 4463 to die. Starting domain name service...: bind9. |
#host obukhov.unix.nt
obukhov.unix.nt has address 192.168.102.2 |
#vim obukhov.unix.nt
--- /tmp/l3-saved-2648.18712.29580 2009-12-10 11:24:53.000000000 +0200 +++ obukhov.unix.nt 2009-12-10 11:25:35.000000000 +0200 @@ -5,3 +5,4 @@ @ 3600 IN SOA obukhov.unix.nt. igor.chub.in. 2009121001 3600 3600 3600 3600 3600 IN NS obukhov.unix.nt. 3600 IN A 192.168.102.2 +asterisk 3600 IN CNAME obukhov.unix.nt. |
#rndc reload
server reload successful |
#host asterisk.unix.nt
Host asterisk.unix.nt not found: 3(NXDOMAIN) |
#host asterisk.obukhov.unix.nt
asterisk.obukhov.unix.nt is an alias for obukhov.unix.nt. obukhov.unix.nt has address 192.168.102.2 |
#tail /var/log/messages
Dec 9 16:00:20 debian2 kernel: [ 14.221685] Adding 2650684k swap on /dev/sda5. Priority:-1 extents:1 across:2650684k Dec 9 16:00:20 debian2 kernel: [ 14.473783] EXT3 FS on sda1, internal journal Dec 9 16:00:20 debian2 kernel: [ 14.643605] loop: module loaded Dec 9 16:00:20 debian2 kernel: [ 16.110697] atl1 0000:02:00.0: eth0 link is up 100 Mbps full duplex Dec 9 16:00:20 debian2 rsyslogd: [origin software="rsyslogd" swVersion="3.18.6" x-pid="2127" x-info="http://www.rsyslog.com"] restart Dec 9 16:00:20 debian2 kernel: [ 17.019389] wcte12xp: Span configured for CCS/HDB3/CRC4 Dec 9 16:00:20 debian2 kernel: [ 17.378398] NET: Registered protocol family 10 Dec 9 16:00:20 debian2 kernel: [ 17.382398] lo: Disabled Privacy Extensions Dec 9 16:25:24 debian2 kernel: [ 1861.032635] wcte12xp: Setting yellow alarm Dec 9 16:25:45 debian2 kernel: [ 1887.701393] wcte12xp: Clearing yellow alarm |
#tail /var/log/debug
Dec 9 16:00:20 debian2 kernel: [ 2.282795] ata_piix 0000:00:1f.2: version 2.12 Dec 9 16:00:20 debian2 kernel: [ 2.442637] PCI: Setting latency timer of device 0000:00:1f.2 to 64 Dec 9 16:00:20 debian2 kernel: [ 3.552978] PCI: Setting latency timer of device 0000:00:1f.5 to 64 Dec 9 16:00:20 debian2 kernel: [ 4.571178] Probing IDE interface ide0... Dec 9 16:00:20 debian2 kernel: [ 4.860164] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 Dec 9 16:00:20 debian2 kernel: [ 4.860164] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 Dec 9 16:00:20 debian2 kernel: [ 5.588868] hdb: host max PIO5 wanted PIO255(auto-tune) selected PIO4 Dec 9 16:00:20 debian2 kernel: [ 5.597304] Probing IDE interface ide1... Dec 9 16:00:20 debian2 kernel: [ 8.798349] PCI: Setting latency timer of device 0000:00:1b.0 to 64 Dec 9 16:00:30 debian2 kernel: [ 28.818483] eth0: no IPv6 routers present |
#tail /var/log/syslog
Dec 10 11:24:37 debian2 named[4707]: running Dec 10 11:25:39 debian2 named[4707]: received control channel command 'reload' Dec 10 11:25:39 debian2 named[4707]: loading configuration from '/etc/bind/named.conf' Dec 10 11:25:39 debian2 named[4707]: max open files (1024) is smaller than max sockets (4096) Dec 10 11:25:39 debian2 named[4707]: using default UDP/IPv4 port range: [1024, 65535] Dec 10 11:25:39 debian2 named[4707]: using default UDP/IPv6 port range: [1024, 65535] Dec 10 11:25:39 debian2 named[4707]: reloading configuration succeeded Dec 10 11:25:39 debian2 named[4707]: reloading zones succeeded Dec 10 11:25:39 debian2 named[4707]: zone obukhov.unix.nt/IN: zone serial unchanged. zone may fail to transfer to slaves. Dec 10 11:25:39 debian2 named[4707]: zone obukhov.unix.nt/IN: loaded serial 2009121001 |
#tail /var/log/daemon.log
Dec 10 11:24:37 debian2 named[4707]: running Dec 10 11:25:39 debian2 named[4707]: received control channel command 'reload' Dec 10 11:25:39 debian2 named[4707]: loading configuration from '/etc/bind/named.conf' Dec 10 11:25:39 debian2 named[4707]: max open files (1024) is smaller than max sockets (4096) Dec 10 11:25:39 debian2 named[4707]: using default UDP/IPv4 port range: [1024, 65535] Dec 10 11:25:39 debian2 named[4707]: using default UDP/IPv6 port range: [1024, 65535] Dec 10 11:25:39 debian2 named[4707]: reloading configuration succeeded Dec 10 11:25:39 debian2 named[4707]: reloading zones succeeded Dec 10 11:25:39 debian2 named[4707]: zone obukhov.unix.nt/IN: zone serial unchanged. zone may fail to transfer to slaves. Dec 10 11:25:39 debian2 named[4707]: zone obukhov.unix.nt/IN: loaded serial 2009121001 |
#vim /etc/resolv.conf
--- /tmp/l3-saved-2648.22901.22574 2009-12-10 11:33:14.000000000 +0200 +++ /etc/resolv.conf 2009-12-10 11:33:28.000000000 +0200 @@ -1 +1,2 @@ +search unix.nt nameserver 127.0.0.1 |
#host asterisk
Host asterisk not found: 3(NXDOMAIN) |
#vim /etc/resolv.conf
--- /tmp/l3-saved-2648.5210.22456 2009-12-10 11:33:44.000000000 +0200 +++ /etc/resolv.conf 2009-12-10 11:33:53.000000000 +0200 @@ -1,2 +1,2 @@ -search unix.nt +search obukhov.unix.nt nameserver 127.0.0.1 |
#host asterisk
asterisk.obukhov.unix.nt is an alias for obukhov.unix.nt. obukhov.unix.nt has address 192.168.102.2 |
#vim obukhov.unix.nt
|
#host poltava.unix.nt
Host poltava.unix.nt not found: 3(NXDOMAIN) |
#rndc reload
server reload successful |
#host poltava.unix.nt
Host poltava.unix.nt not found: 3(NXDOMAIN) |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind9 waiting for pid 4707 to die^[[A. Starting domain name service...: bind9. |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind9. Starting domain name service...: bind9. |
#ztscan
[1] active=yes alarms=OK description=Wildcard TE122 Card 0 name=WCT1/0 manufacturer=Digium devicetype=Wildcard TE122 location=PCI Bus 03 Slot 01 basechan=1 totchans=31 irq=20 type=digital-E1 syncsrc=0 lbo=0 db (CSU)/0-133 feet (DSX-1) coding_opts=HDB3 framing_opts=CCS,CRC4 coding=HDB3 framing=CCS |
#host poltava.unix.nt
poltava.unix.nt has address 192.168.101.3 poltava.unix.nt mail is handled by 10 poltava.unix.nt. |
#ztscan
[1] active=yes alarms=OK description=Wildcard TE122 Card 0 name=WCT1/0 manufacturer=Digium devicetype=Wildcard TE122 location=PCI Bus 03 Slot 01 basechan=1 totchans=31 irq=20 type=digital-E1 syncsrc=0 lbo=0 db (CSU)/0-133 feet (DSX-1) coding_opts=HDB3 framing_opts=CCS,CRC4 coding=HDB3 framing=CCS |
#zt
ztcfg ztmonitor ztscan zttest ztdiag zt_registration ztspeed zttool |
#ztcfg
db.0 db.local named.conf.options db.127 db.root obukhov.unix.nt db.255 named.conf rndc.key db.empty named.conf.local zones.rfc1918 |
#ztcfg
|
#ztcfg -v
Zaptel Version: 1.4.11 Echo Canceller: MG2 Configuration ====================== SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) 31 channels to configure. |
#ztcfg -vv
Zaptel Version: 1.4.11 Echo Canceller: MG2 Configuration ====================== SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) Channel map: Channel 01: Clear channel (Default) (Slaves: 01) Channel 02: Clear channel (Default) (Slaves: 02) Channel 03: Clear channel (Default) (Slaves: 03) Channel 04: Clear channel (Default) (Slaves: 04) ... Channel 23: Clear channel (Default) (Slaves: 23) Channel 24: Clear channel (Default) (Slaves: 24) Channel 25: Clear channel (Default) (Slaves: 25) Channel 26: Clear channel (Default) (Slaves: 26) Channel 27: Clear channel (Default) (Slaves: 27) Channel 28: Clear channel (Default) (Slaves: 28) Channel 29: Clear channel (Default) (Slaves: 29) Channel 30: Clear channel (Default) (Slaves: 30) Channel 31: Clear channel (Default) (Slaves: 31) 31 channels to configure. |
#ztcfg -vvv
Zaptel Version: 1.4.11 Echo Canceller: MG2 Configuration ====================== SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) Channel map: Channel 01: Clear channel (Default) (Slaves: 01) Channel 02: Clear channel (Default) (Slaves: 02) Channel 03: Clear channel (Default) (Slaves: 03) Channel 04: Clear channel (Default) (Slaves: 04) ... Channel 23: Clear channel (Default) (Slaves: 23) Channel 24: Clear channel (Default) (Slaves: 24) Channel 25: Clear channel (Default) (Slaves: 25) Channel 26: Clear channel (Default) (Slaves: 26) Channel 27: Clear channel (Default) (Slaves: 27) Channel 28: Clear channel (Default) (Slaves: 28) Channel 29: Clear channel (Default) (Slaves: 29) Channel 30: Clear channel (Default) (Slaves: 30) Channel 31: Clear channel (Default) (Slaves: 31) 31 channels to configure. |
#ztcfg -vvvvv
Zaptel Version: 1.4.11 Echo Canceller: MG2 Configuration ====================== SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) Channel map: Channel 01: Clear channel (Default) (Slaves: 01) Channel 02: Clear channel (Default) (Slaves: 02) Channel 03: Clear channel (Default) (Slaves: 03) Channel 04: Clear channel (Default) (Slaves: 04) ... Channel 23: Clear channel (Default) (Slaves: 23) Channel 24: Clear channel (Default) (Slaves: 24) Channel 25: Clear channel (Default) (Slaves: 25) Channel 26: Clear channel (Default) (Slaves: 26) Channel 27: Clear channel (Default) (Slaves: 27) Channel 28: Clear channel (Default) (Slaves: 28) Channel 29: Clear channel (Default) (Slaves: 29) Channel 30: Clear channel (Default) (Slaves: 30) Channel 31: Clear channel (Default) (Slaves: 31) 31 channels to configure. |
#ztcfg -vvvvv | less
|
#rndc reload
server reload successful |
#dig @localhost obukhov.unix.nt MX
; <<>> DiG 9.5.1-P3 <<>> @localhost obukhov.unix.nt MX ; (2 servers found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6472 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;obukhov.unix.nt. IN MX ;; AUTHORITY SECTION: obukhov.unix.nt. 3600 IN SOA obukhov.unix.nt. igor.chub.in. 2009121001 3600 3600 3600 3600 ;; Query time: 0 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Dec 10 11:58:56 2009 ;; MSG SIZE rcvd: 81 |
#rndc reload
server reload successful |
#dig @localhost obukhov.unix.nt MX
; <<>> DiG 9.5.1-P3 <<>> @localhost obukhov.unix.nt MX ; (2 servers found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2003 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; QUESTION SECTION: ;obukhov.unix.nt. IN MX ;; ANSWER SECTION: obukhov.unix.nt. 3600 IN MX 10 obukhov.unix.nt. ;; AUTHORITY SECTION: obukhov.unix.nt. 3600 IN NS obukhov.unix.nt. ;; ADDITIONAL SECTION: obukhov.unix.nt. 3600 IN A 192.168.102.2 ;; Query time: 4 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Dec 10 12:00:28 2009 ;; MSG SIZE rcvd: 79 |
#dig @localhost poltava.unix.nt MX
; <<>> DiG 9.5.1-P3 <<>> @localhost poltava.unix.nt MX ; (2 servers found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64306 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; QUESTION SECTION: ;poltava.unix.nt. IN MX ;; ANSWER SECTION: poltava.unix.nt. 3600 IN MX 10 poltava.unix.nt. ;; AUTHORITY SECTION: poltava.unix.nt. 3600 IN NS poltava.unix.nt. ;; ADDITIONAL SECTION: poltava.unix.nt. 3600 IN A 192.168.101.3 ;; Query time: 2 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Dec 10 12:01:09 2009 ;; MSG SIZE rcvd: 79 |
#dig poltava.unix.nt MX
; <<>> DiG 9.5.1-P3 <<>> poltava.unix.nt MX ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 36662 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; QUESTION SECTION: ;poltava.unix.nt. IN MX ;; ANSWER SECTION: poltava.unix.nt. 3579 IN MX 10 poltava.unix.nt. ;; AUTHORITY SECTION: poltava.unix.nt. 3579 IN NS poltava.unix.nt. ;; ADDITIONAL SECTION: poltava.unix.nt. 3579 IN A 192.168.101.3 ;; Query time: 0 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Dec 10 12:01:30 2009 ;; MSG SIZE rcvd: 79 |
#vim obukhov.unix.nt
--- /tmp/l3-saved-2648.20233.11410 2009-12-10 12:01:35.000000000 +0200 +++ obukhov.unix.nt 2009-12-10 12:01:54.000000000 +0200 @@ -4,6 +4,7 @@ ;; global options: printcmd @ 3600 IN SOA obukhov.unix.nt. igor.chub.in. 2009121001 3600 3600 3600 3600 NS obukhov.unix.nt. - MX 10 obukhov.unix.nt. + MX 10 mail.obukhov.unix.nt. IN A 192.168.102.2 asterisk IN CNAME obukhov.unix.nt. +mail IN CNAME obukhov.unix.nt. |
#dig obukhov.unix.nt MX
; <<>> DiG 9.5.1-P3 <<>> obukhov.unix.nt MX ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 14359 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; QUESTION SECTION: ;obukhov.unix.nt. IN MX ;; ANSWER SECTION: obukhov.unix.nt. 3600 IN MX 10 mail.obukhov.unix.nt. ;; AUTHORITY SECTION: obukhov.unix.nt. 3600 IN NS obukhov.unix.nt. ;; ADDITIONAL SECTION: obukhov.unix.nt. 3600 IN A 192.168.102.2 ;; Query time: 20 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Dec 10 12:02:06 2009 ;; MSG SIZE rcvd: 84 |
#host mail
mail.obukhov.unix.nt is an alias for obukhov.unix.nt. obukhov.unix.nt has address 192.168.102.2 obukhov.unix.nt mail is handled by 10 mail.obukhov.unix.nt. |
#cd ../exim4/
|
#ls -l
total 92 drwxr-xr-x 9 root root 4096 2009-12-09 09:57 conf.d -rw-r--r-- 1 root root 75893 2008-09-30 21:27 exim4.conf.template -rw-r----- 1 root Debian-exim 204 2008-09-30 21:27 passwd.client -rw-r--r-- 1 root root 1023 2009-12-09 09:57 update-exim4.conf.conf |
#apt-get install sendmail-bin
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: sendmail-base sendmail-cf Suggested packages: sendmail-doc logcheck resolvconf sasl2-bin libsasl2-modules The following packages will be REMOVED: exim4 exim4-base exim4-config exim4-daemon-light The following NEW packages will be installed: ... were not found, (but were created) please investigate. Warning: These messages were issued while creating sendmail.cf make sure they are benign before starting sendmail! Errors in generating sendmail.cf *** ERROR: FEATURE() should be before MAILER() *** MAILER(`local') must appear after FEATURE(`always_add_domain')*** ERROR: FEATURE() should be before MAILER() *** MAILER(`local') must appear after FEATURE(`allmasquerade')*** ERROR: FEATURE() should be before MAILER() Starting Mail Transport Agent (MTA): sendmail . |
#hostname -f
obukhov |
#hostname obukhov
|
#hostname obukhov.unix.nt
|
db.0 db.root obukhov.unix.nt db.127 named.conf rndc.key db.255 named.conf.local zones.rfc1918 db.empty .named.conf.local.swp db.local named.conf.options
db.0 db.127 db.255 db.empty db.local db.root
; ; BIND data file for local loopback interface ; $TTL 604800 @ IN SOA localhost. root.localhost. ( 2 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; @ IN NS localhost. @ IN A 127.0.0.1 @ IN AAAA ::1
; This file holds the information on root name servers needed to ; initialize cache of Internet domain name servers ; (e.g. reference this file in the "cache . <file>" ; configuration file of BIND domain name servers). ; ; This file is made available by InterNIC ; under anonymous FTP as ; file /domain/named.root ; on server FTP.INTERNIC.NET ; -OR- RS.INTERNIC.NET ; ; last update: Feb 04, 2008 ; related version of root zone: 2008020400 ; ; formerly NS.INTERNIC.NET ; . 3600000 IN NS A.ROOT-SERVERS.NET. A.ROOT-SERVERS.NET. 3600000 A 198.41.0.4 A.ROOT-SERVERS.NET. 3600000 AAAA 2001:503:BA3E::2:30 ; ; formerly NS1.ISI.EDU ; . 3600000 NS B.ROOT-SERVERS.NET. B.ROOT-SERVERS.NET. 3600000 A 192.228.79.201 ; ; formerly C.PSI.NET ; . 3600000 NS C.ROOT-SERVERS.NET. C.ROOT-SERVERS.NET. 3600000 A 192.33.4.12 ; ; formerly TERP.UMD.EDU ; . 3600000 NS D.ROOT-SERVERS.NET. D.ROOT-SERVERS.NET. 3600000 A 128.8.10.90 ; ; formerly NS.NASA.GOV ; . 3600000 NS E.ROOT-SERVERS.NET. E.ROOT-SERVERS.NET. 3600000 A 192.203.230.10 ; ; formerly NS.ISC.ORG ; . 3600000 NS F.ROOT-SERVERS.NET. F.ROOT-SERVERS.NET. 3600000 A 192.5.5.241 F.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:2f::f ; ; formerly NS.NIC.DDN.MIL ; . 3600000 NS G.ROOT-SERVERS.NET. G.ROOT-SERVERS.NET. 3600000 A 192.112.36.4 ; ; formerly AOS.ARL.ARMY.MIL ; . 3600000 NS H.ROOT-SERVERS.NET. H.ROOT-SERVERS.NET. 3600000 A 128.63.2.53 H.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:1::803f:235 ; ; formerly NIC.NORDU.NET ; . 3600000 NS I.ROOT-SERVERS.NET. I.ROOT-SERVERS.NET. 3600000 A 192.36.148.17 ; ; operated by VeriSign, Inc. ; . 3600000 NS J.ROOT-SERVERS.NET. J.ROOT-SERVERS.NET. 3600000 A 192.58.128.30 J.ROOT-SERVERS.NET. 3600000 AAAA 2001:503:C27::2:30 ; ; operated by RIPE NCC ; . 3600000 NS K.ROOT-SERVERS.NET. K.ROOT-SERVERS.NET. 3600000 A 193.0.14.129 K.ROOT-SERVERS.NET. 3600000 AAAA 2001:7fd::1 ; ; operated by ICANN ; . 3600000 NS L.ROOT-SERVERS.NET. L.ROOT-SERVERS.NET. 3600000 A 199.7.83.42 ; ; operated by WIDE ; . 3600000 NS M.ROOT-SERVERS.NET. M.ROOT-SERVERS.NET. 3600000 A 202.12.27.33 M.ROOT-SERVERS.NET. 3600000 AAAA 2001:dc3::35 ; End of File
zone "10.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "16.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "17.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "18.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "19.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "20.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "21.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "22.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "23.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "24.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "25.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "26.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "27.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "28.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "29.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "30.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "31.172.in-addr.arpa" { type master; file "/etc/bind/db.empty"; }; zone "168.192.in-addr.arpa" { type master; file "/etc/bind/db.empty"; };
Время первой команды журнала | 17:41:27 2009-12- 9 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 11:52:48 2009-12-10 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 7.92 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.58 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.07 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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