/l3/trainings/nt-bsdnet/2006-04-03/fbsd3.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 |
|
#e /etc/rc
![]() rc rc.d/ rc.initdiskless rc.shutdown rc.bsdextended rc.firewall rc.resume rc.subr rc.conf rc.firewall6 rc.sendmail rc.suspend |
#e /etc/rc
![]() rc rc.d/ rc.initdiskless rc.shutdown rc.bsdextended rc.firewall rc.resume rc.subr rc.conf rc.firewall6 rc.sendmail rc.suspend |
#hostname fbsd3.linux.net
|
#host fbsd3.linux.net
![]() ;; connection timed out; no servers could be reached |
#find /etc
/etc/rc.d/newsyslog /etc/rc.d/nfsclient /etc/rc.d/nfsd /etc/rc.d/nfslocking /etc/rc.d/nfsserver /etc/rc.d/nisdomain /etc/rc.d/nsswitch /etc/rc.d/ntpd /etc/rc.d/ntpdate /etc/rc.d/othermta ... /etc/resolv.conf /etc/manpath.config.bak /etc/wall_cmos_clock /etc/localtime /etc/rc.conf /etc/nsswitch.conf /etc/host.conf /etc/opiekeys /etc/myfirewall /etc/natd.conf |
#hostname fbsd3.unix.nt
|
#hostname
fbsd3.unix.nt |
#ls -l /etc
total 504 drwxr-xr-x 2 root wheel 512 4 ÁÐÒ 16:39 X11 lrwxrwxrwx 1 root wheel 12 31 ÍÁÒ 11:52 aliases -> mail/aliases -rw-r--r-- 1 root wheel 209 3 ÎÏÑ 10:12 amd.map -rw-r--r-- 1 root wheel 1234 3 ÎÏÑ 10:12 apmd.conf -rw-r--r-- 1 root wheel 231 3 ÎÏÑ 10:12 auth.conf drwxr-xr-x 2 root wheel 512 31 ÍÁÒ 11:52 bluetooth -rw-r--r-- 1 root wheel 737 3 ÎÏÑ 10:12 crontab -rw-r--r-- 1 root wheel 108 3 ÎÏÑ 10:12 csh.cshrc -rw-r--r-- 1 root wheel 481 3 ÎÏÑ 10:12 csh.login ... -rw-r--r-- 1 root wheel 1425 3 ÎÏÑ 10:12 snmpd.config -rw------- 1 root wheel 40960 6 ÁÐÒ 14:22 spwd.db drwxr-xr-x 2 root wheel 512 2 ÁÐÒ 21:38 ssh drwxr-xr-x 2 root wheel 512 31 ÍÁÒ 11:52 ssl -rw-r--r-- 1 root wheel 367 3 ÎÏÑ 10:12 sysctl.conf -rw-r--r-- 1 root wheel 1335 3 ÎÏÑ 10:12 syslog.conf lrwxrwxrwx 1 root wheel 23 31 ÍÁÒ 11:52 termcap -> /usr/share/misc/termcap -rw-r--r-- 1 root wheel 7666 31 ÍÁÒ 12:05 ttys -rw-r--r-- 1 root wheel 1400 3 ÎÏÑ 10:12 usbd.conf -r--r--r-- 1 root wheel 0 31 ÍÁÒ 12:04 wall_cmos_clock |
#e /etc/resolv.conf
domain unix.ntlv.conf" 2L, 40C nameserver 192.168.15.23 |
#ls -l /etc
total 504 drwxr-xr-x 2 root wheel 512 4 ÁÐÒ 16:39 X11 lrwxrwxrwx 1 root wheel 12 31 ÍÁÒ 11:52 aliases -> mail/aliases -rw-r--r-- 1 root wheel 209 3 ÎÏÑ 10:12 amd.map -rw-r--r-- 1 root wheel 1234 3 ÎÏÑ 10:12 apmd.conf -rw-r--r-- 1 root wheel 231 3 ÎÏÑ 10:12 auth.conf drwxr-xr-x 2 root wheel 512 31 ÍÁÒ 11:52 bluetooth -rw-r--r-- 1 root wheel 737 3 ÎÏÑ 10:12 crontab -rw-r--r-- 1 root wheel 108 3 ÎÏÑ 10:12 csh.cshrc -rw-r--r-- 1 root wheel 481 3 ÎÏÑ 10:12 csh.login ... -rw-r--r-- 1 root wheel 1425 3 ÎÏÑ 10:12 snmpd.config -rw------- 1 root wheel 40960 6 ÁÐÒ 14:22 spwd.db drwxr-xr-x 2 root wheel 512 2 ÁÐÒ 21:38 ssh drwxr-xr-x 2 root wheel 512 31 ÍÁÒ 11:52 ssl -rw-r--r-- 1 root wheel 367 3 ÎÏÑ 10:12 sysctl.conf -rw-r--r-- 1 root wheel 1335 3 ÎÏÑ 10:12 syslog.conf lrwxrwxrwx 1 root wheel 23 31 ÍÁÒ 11:52 termcap -> /usr/share/misc/termcap -rw-r--r-- 1 root wheel 7666 31 ÍÁÒ 12:05 ttys -rw-r--r-- 1 root wheel 1400 3 ÎÏÑ 10:12 usbd.conf -r--r--r-- 1 root wheel 0 31 ÍÁÒ 12:04 wall_cmos_clock |
#e /etc/rc.conf
25;1H"/etc/rc.conf" 47L, 1185C # -- sysinstall generated deltas -- # Fri Mar 31 12:05:29 2006 # Created: Fri Mar 31 12:05:29 2006 24;1Hsendmail_enable="YES" # Enable network daemons for user convenience. # Please make all changes to this file, not to /etc/defaults/rc.conf. # This file now contains just the overrides from /etc/defaults/rc.conf. defaultrouter="192.168.15.254" font8x14="cp866-8x14" font8x16="cp866b-8x16" ... keyrate="fast" mousechar_start="3" moused_enable="YES" saver="daemon" scrnmap="koi8-r2cp866" sshd_enable="YES" usbd_enable="YES" gateway_enable="YES" xinetd_enable="YES" named_enable="YES" |
#ls -l /etc | more
|
#e /etc/host.conf
# Auto-generated from nsswitch.conf, do not edit hosts bind |
#find /etc named.conf
![]() /etc/rc.d/nfsclient /etc/rc.d/nfsd /etc/rc.d/nfslocking /etc/rc.d/nfsserver /etc/rc.d/nisdomain /etc/rc.d/nsswitch /etc/rc.d/ntpd /etc/rc.d/ntpdate /etc/rc.d/othermta /etc/rc.d/pccard ... /etc/manpath.config.bak /etc/wall_cmos_clock /etc/localtime /etc/rc.conf /etc/nsswitch.conf /etc/host.conf /etc/opiekeys /etc/myfirewall /etc/natd.conf find: named.conf: No such file or directory |
#mc
|
#cd /etc/namedb
|
#ls -l -A
total 20 -rw-r--r-- 1 root wheel 423 3 ÎÏÑ 10:12 PROTO.localhost-v6.rev -rw-r--r-- 1 root wheel 423 3 ÎÏÑ 10:12 PROTO.localhost.rev drwxr-xr-x 2 bind wheel 512 3 ÎÏÑ 10:09 dynamic -rw-r--r-- 1 root wheel 1089 3 ÎÏÑ 10:12 make-localhost drwxr-xr-x 2 root wheel 512 5 ÁÐÒ 12:29 master -rw-r--r-- 1 root wheel 1987 5 ÁÐÒ 12:46 named.conf -rw-r--r-- 1 root wheel 2600 3 ÎÏÑ 10:12 named.root -rw------- 1 bind wheel 97 5 ÁÐÒ 11:28 rndc.key drwxr-xr-x 2 bind wheel 512 3 ÎÏÑ 10:09 slave |
#e named.conf
4;8H =1S =1Se "0.0.127.IN-ADDR.ARPA" { =1Spe master; =1Sle "master/localhost.rev"; =1S =1S =1S =1Se "fbsd3.unix.nt" { 2;8Hons24;1H ... listen-on { 127.0.0.1; 192.168.15.0/24; }; // In addition to the "forwarders" clause, you can force your name // serve // forwa // };rward only; 23;1H"example.com" {rd and reverse slave zones.23; 192.168.15.254;};1vers you want // If you've got a DNS server around at your upstream provider, enter // its IP address here, and enable the line below. This will make you // benefit from its cache, thus reduce overall DNS traffic in the Internet. =1S9Halgorithm hmac-md5; |
#ls -l -A
total 20 -rw-r--r-- 1 root wheel 423 3 ÎÏÑ 10:12 PROTO.localhost-v6.rev -rw-r--r-- 1 root wheel 423 3 ÎÏÑ 10:12 PROTO.localhost.rev drwxr-xr-x 2 bind wheel 512 3 ÎÏÑ 10:09 dynamic -rw-r--r-- 1 root wheel 1089 3 ÎÏÑ 10:12 make-localhost drwxr-xr-x 2 root wheel 512 5 ÁÐÒ 12:29 master -rw-r--r-- 1 root wheel 1987 5 ÁÐÒ 12:46 named.conf -rw-r--r-- 1 root wheel 2600 3 ÎÏÑ 10:12 named.root -rw------- 1 bind wheel 97 5 ÁÐÒ 11:28 rndc.key drwxr-xr-x 2 bind wheel 512 3 ÎÏÑ 10:09 slave |
#ls -l -A -G
total 20 -rw-r--r-- 1 root wheel 423 3 ÎÏÑ 10:12 PROTO.localhost-v6.rev -rw-r--r-- 1 root wheel 423 3 ÎÏÑ 10:12 PROTO.localhost.rev drwxr-xr-x 2 bind wheel 512 3 ÎÏÑ 10:09 dynamic -rw-r--r-- 1 root wheel 1089 3 ÎÏÑ 10:12 make-localhost drwxr-xr-x 2 root wheel 512 5 ÁÐÒ 12:29 master -rw-r--r-- 1 root wheel 1987 5 ÁÐÒ 12:46 named.conf -rw-r--r-- 1 root wheel 2600 3 ÎÏÑ 10:12 named.root -rw------- 1 bind wheel 97 5 ÁÐÒ 11:28 rndc.key drwxr-xr-x 2 bind wheel 512 3 ÎÏÑ 10:09 slave |
#cd master/
|
#ls -l -A -G
total 6 -rw-r--r-- 1 root wheel 445 5 ÁÐÒ 11:24 localhost-v6.rev -rw-r--r-- 1 root wheel 445 5 ÁÐÒ 11:24 localhost.rev -rw-r--r-- 1 root wheel 198 5 ÁÐÒ 12:29 military |
#e military
=1Sw=1Sq25;1H NS fbsd3 MX 10 fbsd3 ilitary" 7L, 144C writtenS=S mail CNAME fbsd3 7;1H =1S~ fbsd3 A 192.168.15.23 ~ ~ ... ~ ~ ~ ~ ~ ~ ~ ~ ~ -- INSERT -- |
#e military
7C SOA ns d25=== 2;22Hmag 2006040601 10800 3600 604800 172 NS fbsd3 ilitary" 7L, 146C written1H:=1S=S mail CNAME fbsd3 mx CNAME fbsd3 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ |
#ping ya.ru
PING ya.ru (213.180.204.8): 56 data bytes 64 bytes from 213.180.204.8: icmp_seq=0 ttl=51 time=106.161 ms 64 bytes from 213.180.204.8: icmp_seq=1 ttl=51 time=107.834 ms 64 bytes from 213.180.204.8: icmp_seq=2 ttl=51 time=103.096 ms 64 bytes from 213.180.204.8: icmp_seq=3 ttl=51 time=106.108 ms 64 bytes from 213.180.204.8: icmp_seq=4 ttl=51 time=117.862 ms ^C --- ya.ru ping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss round-trip min/avg/max/stddev = 103.096/108.212/117.862/5.061 ms |
#ls
PROTO.localhost-v6.rev make-localhost named.root PROTO.localhost.rev master rndc.key dynamic named.conf slave |
#e named.conf
=1S 5;fbsd25;1H-- INSERT --st.rev"; }; amed.conf" 88L, 1984C written type master; file "master/military"; allow-transfer { 127.0.0.1; 192.168.15.23; 192.168.15.254;}; }; * An example dynamic zone key "exampleorgkey" {cal name server, don't forget to enter 127.0.0.1 secret "sf87HJqjkqh8ac87a02lla==";server will be queried. zone "example.org" {o enable it in /etc/rc.conf. }; type master; key "exampleorgkey"; zone "."}; file "dynamic/example.org"; }; |
#/etc/rc.d/na
![]() named natd |
#/etc/rc.d/named stop
Stopping named. Waiting for PIDS: 371. |
#/etc/rc.d/named start
Starting named. |
#hostname
fbsd3.unix.nt |
#dig f3.unix.nt ns
; <<>> DiG 9.3.1 <<>> f3.unix.nt ns ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48135 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 ;; QUESTION SECTION: ;f3.unix.nt. IN NS ;; ANSWER SECTION: f3.unix.nt. 172800 IN NS fbsd3.f3.unix.nt. ;; ADDITIONAL SECTION: fbsd3.f3.unix.nt. 172800 IN A 192.168.15.23 ;; Query time: 1 msec ;; SERVER: 192.168.15.23#53(192.168.15.23) ;; WHEN: Thu Apr 6 14:59:34 2006 ;; MSG SIZE rcvd: 64 |
#/usr/local/etc/rc.d/squid.sh restart
|
#!ta
![]() tail -f /var/log/maillog Apr 5 15:06:34 fbsd3 sm-mta[17192]: k35C6YLP017190: to=<root@fbsd4.unix.nt>, ctladdr=<user@fbsd3.unix.nt> (1001/0), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=30687, relay=fbsd4.unix.nt. [192.168.15.24], dsn=4.0.0, stat=Deferred: Connection refused by fbsd4.unix.nt. Apr 5 15:10:35 fbsd3 sendmail[17255]: k35C6YLP017190: to=<root@fbsd4.unix.nt>, ctladdr=<user@fbsd3.unix.nt> (1001/0), delay=00:04:01, xdelay=00:00:02, mailer=esmtp, pri=120687, relay=fbsd4.unix.nt. [192.168.15.24], dsn=2.0.0, stat=Sent (k35CBDpT001416 Message accepted for delivery) Apr 5 15:12:39 fbsd3 sm-mta[17294]: k35CCdJb017294: from=<user@fbsd2.unix.nt>, size=592, class=0, nrcpts=1, msgid=<200604051212.k35CCdNM003980@fbsd2.unix.nt>, proto=ESMTP, daemon=IPv4, relay=fbsd2.linux.nt [192.168.15.22] Apr 5 15:12:39 fbsd3 sm-mta[17295]: k35CCdJb017294: to=<user@fbsd3.unix.nt>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30827, relay=local, dsn=2.0.0, stat=Sent Apr 5 15:55:37 fbsd3 sm-mta[26515]: k35CtbDM026515: from=<user@fbsd3.unix.nt>, size=369, class=0, nrcpts=1, msgid=<4433BE49.7090707@fbsd3.unix.nt>, proto=ESMTP, daemon=IPv4, relay=localhost.unix.nt [127.0.0.1] Apr 5 15:55:37 fbsd3 sm-mta[26516]: k35CtbDM026515: to=<user@fbsd3.unix.nt>, ctladdr=<user@fbsd3.unix.nt> (1001/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30629, relay=local, dsn=2.0.0, stat=Sent Apr 6 08:57:26 fbsd3 sm-mta[502]: starting daemon (8.13.4): SMTP+queueing@00:30:00 Apr 6 08:57:26 fbsd3 sm-msp-queue[506]: starting daemon (8.13.4): queueing@00:30:00 Apr 6 09:13:04 fbsd3 sm-mta[501]: starting daemon (8.13.4): SMTP+queueing@00:30:00 Apr 6 09:13:04 fbsd3 sm-msp-queue[505]: starting daemon (8.13.4): queueing@00:30:00 ^C |
#ps aux| grep squid
root 2427 0,0 0,2 3116 1740 ?? Is 14:36 0:00,01 squid squid 2896 0,0 0,7 8232 7504 ?? S 14:54 0:00,44 (squid) (squid) squid 2929 0,0 0,1 1168 540 ?? Is 14:55 0:00,02 (unlinkd) (unlink root 3179 0,0 0,1 1436 968 p3 R+ 15:01 0:00,00 grep squid |
#killall squid
|
#ps aux| grep squid
root 3184 0,0 0,1 1520 1068 p3 S+ 15:01 0:00,00 grep squid |
#/usr/local/etc/rc.d/squid.sh start
|
#ps aux| grep squid
root 3196 0,0 0,1 1456 988 p3 R+ 15:03 0:00,00 grep squid |
#e /etc/rc.conf
25;1H"/etc/rc.conf" 47L, 1185C # -- sysinstall generated deltas -- # Fri Mar 31 12:05:29 2006 # Created: Fri Mar 31 12:05:29 2006 24;1Hsendmail_enable="YES" # Enable network daemons for user convenience. # Please make all changes to this file, not to /etc/defaults/rc.conf. # This file now contains just the overrides from /etc/defaults/rc.conf. defaultrouter="192.168.15.254" 21CmH-- INSERT -- =1Ss=1Sq=1Su=1Si=1Sd=1S_=1Se=1Sn=1Sa=1Sb=1Sl=1Se=1S==1S"=1SY=1SE=1SS=1S"=1S ... keyrate="fast" mousechar_start="3" moused_enable="YES" saver="daemon" scrnmap="koi8-r2cp866" sshd_enable="YES" usbd_enable="YES" gateway_enable="YES" xinetd_enable="YES" named_enable="YES" |
#passwd
x Xorg.0.log.old x 52253xÁÐÒ 6 12:55xx/.gconfd x 512xÁÐÒ 6 15:13x x Xorg.8.log x 48514xÁÐÒ 4 16:31xx/.gnome x 512xÁÐÒ 4 16:43x x Xorg.8.log.old x 23831xÁÐÒ 4 16:31xx/.gnome2 x 512xÁÐÒ 6 15:09x x auth.log x 18655xÁÐÒ 6 15:08xx/.gnome2_private x 512xÍÁÒ 31 12:18x x cron x 48918xÁÐÒ 6 15:15xx/.gstreamer-0.8 x 512xÁÐÒ 4 16:43x x debug.log x 25313xÁÐÒ 6 15:09xx/.kde x 512xÁÐÒ 4 16:28x x dmesg.today x 6424xÁÐÒ 4 03:02xx/.lilalo x 14848xÁÐÒ 6 15:16x x dmesg.yesterday x 5543xÁÐÒ 3 03:02xx/.mc x 512xÁÐÒ 6 14:49x x lastlog x 28084xÁÐÒ 6 15:08xx/.mcop x 512xÁÐÒ 4 16:33x x lpd-errs x 60xÁÐÒ 2 21:35xx/.metacity x 512xÁÐÒ 4 16:43x x maillog x 10634xÁÐÒ 6 15:05xx/.micq x 512xÁÐÒ 5 14:16x x maillog.0.bz2 x 629xÁÐÒ 4 00:00xx/.mozilla x 512xÁÐÒ 4 16:52x tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqutqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu x/squid xx/.. x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqjmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj úÁÍÅÔ: îÅ ÒÁÂÏÔÁÀÔ ËÌÁ×ÉÛÉ × xterm? ðÏÐÒÏÂÕÊÔÅ ÎÁÛÉ ÆÁÊÌÙ xterm.ad,.ti É .tÅÍÅ. # [^] óÏChanging local password for root? ðÏÐÒÏÂÕÊÔÅ ÎÁÛÉ ÆÁÊÌÙ xterm.ad,.ti É .tcapÄ New Password: Retype New Password: |
#host fbsd3.unix.nt
![]() Host fbsd3.unix.nt not found: 3(NXDOMAIN) |
#dig localhost ns
; <<>> DiG 9.3.1 <<>> localhost ns ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57000 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 ;; QUESTION SECTION: ;localhost. IN NS ;; ANSWER SECTION: localhost. 604800 IN NS localhost. ;; ADDITIONAL SECTION: localhost. 604800 IN A 127.0.0.1 ;; Query time: 2 msec ;; SERVER: 192.168.15.23#53(192.168.15.23) ;; WHEN: Thu Apr 6 15:06:26 2006 ;; MSG SIZE rcvd: 57 |
#dig 192.168.15.23 ns
; <<>> DiG 9.3.1 <<>> 192.168.15.23 ns ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 61709 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;192.168.15.23. IN NS ;; AUTHORITY SECTION: . 10800 IN SOA A.ROOT-SERVERS.NET. NSTLD.VERISIGN-GRS.COM. 2006040501 1800 900 604800 86400 ;; Query time: 78 msec ;; SERVER: 192.168.15.23#53(192.168.15.23) ;; WHEN: Thu Apr 6 15:06:43 2006 ;; MSG SIZE rcvd: 106 |
#host 192.168.15.23
23.15.168.192.in-addr.arpa domain name pointer fbsd3.linux.nt. |
#/usr/local/etc/rc.d/squid.sh start
![]() squid already running? (pid=569 571). |
#/usr/local/etc/rc.d/squid.sh stop
Waiting for PIDS: 569 571. |
#/usr/local/etc/rc.d/squid.sh start
Starting squid. |
#sockstat -4
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS squid squid 814 5 udp4 *:55845 *:* squid squid 814 11 tcp4 *:3128 *:* squid squid 814 12 udp4 *:3130 *:* root xinetd 580 5 tcp4 *:21 *:* root xinetd 580 7 tcp4 *:13 *:* root xinetd 580 8 tcp4 *:7 *:* root xinetd 580 9 tcp4 *:119 *:* root xinetd 580 10 tcp4 *:110 *:* root sendmail 501 4 tcp4 *:25 *:* root sendmail 501 6 tcp4 *:587 *:* root sshd 496 4 tcp4 *:22 *:* bind named 371 20 udp4 192.168.15.23:53 *:* bind named 371 21 tcp4 192.168.15.23:53 *:* bind named 371 22 udp4 127.0.0.1:53 *:* bind named 371 23 tcp4 127.0.0.1:53 *:* bind named 371 24 udp4 *:52068 *:* bind named 371 26 tcp4 127.0.0.1:953 *:* root syslogd 310 8 udp4 *:514 *:* |
#tail -f /var/log/messages
![]() Apr 6 15:04:57 fbsd3 named[371]: command channel listening on 127.0.0.1#953 Apr 6 15:04:57 fbsd3 named[371]: command channel listening on ::1#953 Apr 6 15:04:57 fbsd3 named[371]: master/military:1: no TTL specified; using SOA MINTTL instead Apr 6 15:04:57 fbsd3 named[371]: running Apr 6 15:05:12 fbsd3 squid[569]: Squid Parent: child process 571 started Apr 6 15:05:12 fbsd3 xinetd[580]: xinetd Version 2.3.13 started with libwrap loadavg options compiled in. Apr 6 15:05:12 fbsd3 xinetd[580]: Started working: 5 available services Apr 6 15:05:22 fbsd3 login: ROOT LOGIN (root) ON ttyv0 Apr 6 15:07:44 fbsd3 squid[569]: Squid Parent: child process 571 exited with status 0 Apr 6 15:07:52 fbsd3 squid[811]: Squid Parent: child process 814 started Apr 6 15:08:42 fbsd3 login: ROOT LOGIN (root) ON ttyv1 Apr 6 15:09:47 fbsd3 qpopper[994]: Stats: user 0 0 0 0 localhost.unix.nt 127.0.0.1 ^C |
#startx
** (gnome-terminal:1344): WARNING **: ïÔÓÕÔÓÔ×ÕÅÔ ÏÂÒÁÂÏÔÞÉË ÕÐÒÁ×ÌÑÀÝÅÊ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÏÓÔÉ "device-control-string". ** (gnome-terminal:1344): WARNING **: ïÔÓÕÔÓÔ×ÕÅÔ ÏÂÒÁÂÏÔÞÉË ÕÐÒÁ×ÌÑÀÝÅÊ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÏÓÔÉ "device-control-string". ** (gnome-terminal:1344): WARNING **: ïÔÓÕÔÓÔ×ÕÅÔ ÏÂÒÁÂÏÔÞÉË ÕÐÒÁ×ÌÑÀÝÅÊ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÏÓÔÉ "device-control-string". ** (gnome-terminal:1344): WARNING **: ïÔÓÕÔÓÔ×ÕÅÔ ÏÂÒÁÂÏÔÞÉË ÕÐÒÁ×ÌÑÀÝÅÊ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÏÓÔÉ "device-control-string". ** (gnome-terminal:1344): WARNING **: ïÔÓÕÔÓÔ×ÕÅÔ ÏÂÒÁÂÏÔÞÉË ÕÐÒÁ×ÌÑÀÝÅÊ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÏÓÔÉ "device-control-string". ** (gnome-terminal:1344): WARNING **: ïÔÓÕÔÓÔ×ÕÅÔ ÏÂÒÁÂÏÔÞÉË ÕÐÒÁ×ÌÑÀÝÅÊ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÏÓÔÉ "device-control-string". ** (gnome-terminal:1344): WARNING **: ïÔÓÕÔÓÔ×ÕÅÔ ÏÂÒÁÂÏÔÞÉË ÕÐÒÁ×ÌÑÀÝÅÊ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÏÓÔÉ "device-control-string". ** (gnome-terminal:1344): WARNING **: ïÔÓÕÔÓÔ×ÕÅÔ ÏÂÒÁÂÏÔÞÉË ÕÐÒÁ×ÌÑÀÝÅÊ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÏÓÔÉ "device-control-string". ** (gnome-terminal:1344): WARNING **: ïÔÓÕÔÓÔ×ÕÅÔ ÏÂÒÁÂÏÔÞÉË ÕÐÒÁ×ÌÑÀÝÅÊ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÏÓÔÉ "device-control-string". ** (gnome-terminal:1344): WARNING **: ïÔÓÕÔÓÔ×ÕÅÔ ÏÂÒÁÂÏÔÞÉË ÕÐÒÁ×ÌÑÀÝÅÊ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÏÓÔÉ "device-control-string". ... ((name "CloneCommand") (type "LISTofARRAY8") (value "mixer_applet2")) The application 'gnome-panel' lost its connection to the display :0.0; most likely the X server was shut down or you killed/destroyed the application. (nautilus:943): Eel-CRITICAL **: preferences_entry_remove_callback: assertion `entry->callback_list != NULL' failed ** (nautilus:943): WARNING **: destroyed file still being monitored ** (nautilus:943): WARNING **: destroyed file still being monitored ** (nautilus:943): WARNING **: destroyed file still being monitored ** (nautilus:943): WARNING **: destroyed file still being monitored waiting for X server to shut down FreeFontPath: FPE "/usr/X11R6/lib/X11/fonts/misc/" refcount is 2, should be 1; fixing. |
#ls
|
#ls
|
#ls -A -l -G
total 0 |
#cd /usr/local/etc/squid/squid.conf
![]() bash: cd: /usr/local/etc/squid/squid.conf: Not a directory |
#e /usr/local/etc/squid/squid.conf
# cache-host, the first matched domain is applied. # * Cache hosts with no domain restrictions are queried # for all requests. # * There are no defaults. # * There is also a 'cache_peer_access' tag in the ACL # section. # #Default: # none # TAG: neighbor_type_domain |
#e /usr/local/etc/squid/squid.conf
# possible. You can treat some domains differently than the the # default neighbor type specified on the 'cache_peer' line. # Normally it should only be necessary to list domains which # should be treated differently because the default neighbor type # applies for hostnames which do not match domains listed here. # #EXAMPLE: # cache_peer parent cache.foo.org 3128 3130 # neighbor_type_domain cache.foo.org sibling .com .net # neighbor_type_domain cache.foo.org sibling .au .de # |
#clear
|
#e /usr/local/etc/squid/squid.conf
# Logs the client request activity. Contains an entry for # Note: To make optimal use of the max-size limits you should order #De #Default: cache_dir ufs /var/spool/squid 100 16 256 cache_dir ufs /var/spool/squid 1000 16 256n last. # TAG: cache_access_log :d5 # every HTTP and ICP queries received. # #Default: :q # TAG: cache_log : # Cache logging file. This is where general information about E11: Invalid in command-line window; <CR> executes, CTRL-C quits # your cache's behavior goes. You can increase the amount of data # logged to this file with the "debug_options" tag below. |
#tail -f /var/log/messages
![]() Apr 6 15:04:57 fbsd3 named[371]: master/military:1: no TTL specified; using SOA MINTTL instead Apr 6 15:04:57 fbsd3 named[371]: running Apr 6 15:05:12 fbsd3 squid[569]: Squid Parent: child process 571 started Apr 6 15:05:12 fbsd3 xinetd[580]: xinetd Version 2.3.13 started with libwrap loadavg options compiled in. Apr 6 15:05:12 fbsd3 xinetd[580]: Started working: 5 available services Apr 6 15:05:22 fbsd3 login: ROOT LOGIN (root) ON ttyv0 Apr 6 15:07:44 fbsd3 squid[569]: Squid Parent: child process 571 exited with status 0 Apr 6 15:07:52 fbsd3 squid[811]: Squid Parent: child process 814 started Apr 6 15:08:42 fbsd3 login: ROOT LOGIN (root) ON ttyv1 Apr 6 15:09:47 fbsd3 qpopper[994]: Stats: user 0 0 0 0 localhost.unix.nt 127.0.0.1 ^C |
#/usr/local/etc/rc.d/squid.sh restart
Waiting for PIDS: 811 814. Starting squid. |
#tail -f /var/log/messages
![]() Apr 6 15:05:12 fbsd3 squid[569]: Squid Parent: child process 571 started Apr 6 15:05:12 fbsd3 xinetd[580]: xinetd Version 2.3.13 started with libwrap loadavg options compiled in. Apr 6 15:05:12 fbsd3 xinetd[580]: Started working: 5 available services Apr 6 15:05:22 fbsd3 login: ROOT LOGIN (root) ON ttyv0 Apr 6 15:07:44 fbsd3 squid[569]: Squid Parent: child process 571 exited with status 0 Apr 6 15:07:52 fbsd3 squid[811]: Squid Parent: child process 814 started Apr 6 15:08:42 fbsd3 login: ROOT LOGIN (root) ON ttyv1 Apr 6 15:09:47 fbsd3 qpopper[994]: Stats: user 0 0 0 0 localhost.unix.nt 127.0.0.1 Apr 6 15:19:25 fbsd3 squid[811]: Squid Parent: child process 814 exited with status 0 Apr 6 15:19:25 fbsd3 squid[1185]: Squid Parent: child process 1188 started ^C |
#cd /var/log/squid
|
#ls
|
#cat /usr/local/squid/
![]() cache/ logs/ |
#cat /usr/local/squid/
![]() cache/ logs/ |
#cat /usr/local/squid/
![]() cache/ logs/ |
#cat /usr/local/squid/
![]() cache/ logs/ |
#cat /usr/local/squid/
![]() cache/ logs/ |
#cat /usr/local/squid/
![]() cache/ logs/ |
#cat /usr/local/squid/
![]() cache/ logs/ |
#cat /usr/local/squid/logs/access.log
|
#cat /usr/local/squid/logs/cache.log
Squid Cache (Version 2.5.STABLE11): Terminated abnormally. CPU Usage: 0.016 seconds = 0.008 user + 0.008 sys Maximum Resident Size: 1496 KB Page faults with physical i/o: 0 FATAL: ipcache_init: DNS name lookup tests failed. Squid Cache (Version 2.5.STABLE11): Terminated abnormally. FATAL: ipcache_init: DNS name lookup tests failed. Squid Cache (Version 2.5.STABLE11): Terminated abnormally. CPU Usage: 0.016 seconds = 0.008 user + 0.008 sys Maximum Resident Size: 3924 KB ... 2006/04/06 14:54:36| Max Mem size: 65536 KB 2006/04/06 14:54:36| Max Swap size: 1024000 KB 2006/04/06 14:54:36| Store logging disabled 2006/04/06 14:54:36| Using Least Load store dir selection 2006/04/06 14:54:36| Current Directory is /var/log 2006/04/06 14:54:36| Swap maxSize 1024000 KB, estimated 78769 objects 2006/04/06 14:54:36| Target number of buckets: 3938 2006/04/06 14:54:36| Using 8192 Store buckets 2006/04/06 14:54:36| Max Mem size: 65536 KB 2006/04/06 14:54:36| Max Swap size: 1024000 KB |
#cat /usr/local/squid/logs/access.log
127.0.0.1 - - [06/Apr/2006:15:21:56 +0300] "GET http://www.mozilla.org/start/ HTTP/1.1" 302 595 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:15:22:03 +0300] "GET http://www.sed.lg.ua/ HTTP/1.1" 504 2370 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:15:22:09 +0300] "GET http://www.google.ru/ HTTP/1.1" 200 4005 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:15:22:10 +0300] "GET http://www.google.ru/images/hp3.gif HTTP/1.1" 200 1697 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:15:22:10 +0300] "GET http://www.google.ru/images/hp0.gif HTTP/1.1" 200 4564 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:15:22:10 +0300] "GET http://www.google.ru/images/hp1.gif HTTP/1.1" 200 3240 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:15:22:10 +0300] "GET http://www.google.ru/images/hp2.gif HTTP/1.1" 200 2989 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:15:22:53 +0300] "GET http://www.google.ru/ HTTP/1.1" 200 3854 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:15:22:55 +0300] "GET http://www.google.ru/search? HTTP/1.1" 302 564 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:15:22:56 +0300] "GET http://www.google.ru/webhp? HTTP/1.1" 200 4049 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:15:23:02 +0300] "GET http://www.sed.lg.ua/ HTTP/1.1" 504 2370 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:15:23:09 +0300] "GET http://www.mozilla.org/start/ HTTP/1.1" 302 595 TCP_MISS:DIRECT |
#tail -f /usr/local/squid/logs/access.log
![]() 127.0.0.1 - - [06/Apr/2006:15:45:17 +0300] "GET http://banner.kiev.ua/cgi-bin/bi.cgi? HTTP/1.1" 200 1230 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:15:45:17 +0300] "GET http://banner.kiev.ua/b/76/76766.gif HTTP/1.1" 200 11569 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:15:45:17 +0300] "GET http://banner.kiev.ua/b/71/71507.swf? HTTP/1.1" 200 12728 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:15:45:20 +0300] "GET http://www.macromedia.com/go/getflashplayer? HTTP/1.1" 302 343 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:15:45:21 +0300] "GET http://www.macromedia.com/shockwave/download/download.cgi? HTTP/1.1" 200 18258 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:15:45:22 +0300] "GET http://mxmacromedia.112.2o7.net/b/ss/mxmacromedia/1/G.6-Pd-S/s68184898487273? HTTP/1.1" 200 758 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:15:45:38 +0300] "GET http://www.sed.lg.ua/img/rekl/artvideo.swf HTTP/1.1" 200 1425 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:15:45:48 +0300] "GET http://www.zarja.com.ua/img%5Cznak.gif HTTP/1.1" 404 554 TCP_NEGATIVE_HIT:NONE 127.0.0.1 - - [06/Apr/2006:15:45:48 +0300] "GET http://www.zarja.com.ua/img%5Cglav.gif HTTP/1.1" 404 554 TCP_NEGATIVE_HIT:NONE 127.0.0.1 - - [06/Apr/2006:15:45:48 +0300] "GET http://www.zarja.com.ua/img%5Cnazve.gif HTTP/1.1" 404 555 TCP_NEGATIVE_HIT:NONE ... 127.0.0.1 - - [06/Apr/2006:16:39:56 +0300] "GET http://star.lg.ua/cgi-bin/count/count.pl? HTTP/1.0" 200 2200 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:16:50:31 +0300] "GET http://banner.kiev.ua/cgi-bin/bi.cgi? HTTP/1.0" 200 1360 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:16:50:31 +0300] "GET http://www.sed.lg.ua/anekdot.shtml HTTP/1.0" 200 9540 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:16:50:31 +0300] "GET http://b100.abn.com.ua/iframe? HTTP/1.0" 200 669 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:16:50:31 +0300] "GET http://213.133.165.94/b/9338/1600/3314.gif HTTP/1.0" 200 4982 TCP_HIT:NONE 127.0.0.1 - - [06/Apr/2006:16:50:31 +0300] "GET http://b468.abn.com.ua/iframe? HTTP/1.0" 200 625 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:16:50:31 +0300] "GET http://213.133.165.94/a/6404/102806/107583.gif HTTP/1.0" 200 18117 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:16:50:34 +0300] "GET http://www.sed.lg.ua/favicon.ico HTTP/1.0" 200 2377 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:16:52:56 +0300] "GET http://www.rejik.ru/index210.html HTTP/1.0" 200 8316 TCP_MISS:DIRECT ^C |
#e /usr/local/etc/squid/squid.conf
#Default: # none #delay_access 1 allow mp3 192_168_15_111 #delay_access 1 allow img #delay_access 1 deny all acl iso urlpath_regex \.iso$ delay_access 1 deny all # TAG: delay_parameters # This defines the parameters for a delay pool. Each delay pool has # a number of "buckets" associated with it, as explained in the # description of delay_class. For a class 1 delay pool, the syntax is: # #delay_parameters pool aggregate # "/usr/local/etc/squid/squid.conf" 2735L, 87811C written |
#cp /usr/local/etc/squid/squid.conf ~/dimag
|
#ls ~/dimag
/root/dimag |
#cd root
![]() bash: cd: root: No such file or directory |
#mc
|
#cp /usr/local/etc/squid/squid.conf /home/dimag/squid.conf
|
#ls /home/
.cshrc .mail_aliases .profile e .login .mailrc .rhosts squid.conf .login_conf .mc .shrc |
#pkg_delete squid
![]() pkg_delete: no such package 'squid' installed |
#/usr/local/etc/rc.d/squid.sh stop
2006/04/06 16:03:10| parseConfigFile: line 2288 unrecognized: 'delay_pools 1' 2006/04/06 16:03:10| parseConfigFile: line 2297 unrecognized: ' delay_pools 1 # 1 delay pools' 2006/04/06 16:03:10| parseConfigFile: line 2298 unrecognized: ' delay_class 1 2 # pool 1 is a class 2 pool' 2006/04/06 16:03:10| parseConfigFile: line 2349 unrecognized: 'delay_access 1 deny all' 2006/04/06 16:03:10| parseConfigFile: line 2392 unrecognized: 'delay_parameters 1 -1/-1 8000/8000' Waiting for PIDS: 1185 1188. |
#pkg_delete squid
![]() squid-2.5.11_1.tbz squid.conf squid.conf.sample |
#pkg_delete squid-2.5.11_1
pkg_delete: unable to completely remove directory '/usr/local/etc/squid' pkg_delete: unable to completely remove directory '/usr/local/squid/logs' pkg_delete: unable to completely remove directory '/usr/local/squid' pkg_delete: couldn't entirely delete package (perhaps the packing list is incorrectly specified?) ===> post-deinstallation information for squid-2.5.11_1 Please note that squid was not completely removed from this system: Any squid related user accounts were kept. Additionally, cache and log directories as well as configuration files modified by you were preserved too, in case you want to install an updated version of squid. You need to remove them manually if you do not want to use it any longer. |
#whereis squid
squid: /usr/ports/www/squid |
#cd /usr/ports/www/squid
|
#make install
ranlib libdigest.a source='client.c' object='client.o' libtool=no depfile='.deps/client.Po' tmpdepfile='.deps/client.TPo' depmode=gcc3 /bin/sh ../cfgaux/depcomp cc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/usr/local/etc/squid/squid.conf\" -I. -I. -I../include -I. -I. -I../include -I../include -O2 -fno-strict-aliasing -pipe -c `test -f client.c || echo './'`client.c cc -O2 -fno-strict-aliasing -pipe -g -o squidclient client.o -L../lib -lmiscutil -lm cc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/usr/local/etc/squid/squid.conf\" -I. -I. -I../include -I. -I. -I../include -I../include -O2 -fno-strict-aliasing -pipe -DUNLINK_DAEMON -c ./unlinkd.c -o unlinkd-daemon.o cc -O2 -fno-strict-aliasing -pipe -g -o unlinkd unlinkd-daemon.o source='cachemgr.c' object='cachemgr__CGIEXT_-cachemgr.o' libtool=no depfile='.deps/cachemgr__CGIEXT_-cachemgr.Po' tmpdepfile='.deps/cachemgr__CGIEXT_-cachemgr.TPo' depmode=gcc3 /bin/sh ../cfgaux/depcomp cc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/usr/local/etc/squid/squid.conf\" -I. -I. -I../include -I. -I. -I../include -I../include -DDEFAULT_CACHEMGR_CONFIG=\"/usr/local/etc/squid/cachemgr.c cc -O2 -fno-strict-aliasing -pipe -g -o cachemgr.cgi cachemgr__CGIEXT_-cachemgr.o -L../lib -lmiscutil -lm source='access_log.c' object='access_log.o' libtool=no depfile='.deps/access_log.Po' tmpdepfile='.deps/access_log.TPo' depmode=gcc3 /bin/sh ../cfgaux/depcomp cc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/usr/local/etc/squid/squid.conf\" -I. -I. -I../include -I. -I. -I../include -I../include -O2 -fno-strict-aliasing -pipe -c `test -f access_log.c || echo './'`access_log.c source='acl.c' object='acl.o' libtool=no depfile='.deps/acl.Po' tmpdepfile='.deps/acl.TPo' depmode=gcc3 /bin/sh ../cfgaux/depcomp cc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/usr/local/etc/squid/squid.conf\" -I. -I. -I../include -I. -I. -I../include -I../include -O2 -fno-strict-aliasing -pipe -c `test -f acl.c || echo './'`acl.c source='asn.c' object='asn.o' libtool=no depfile='.deps/asn.Po' tmpdepfile='.deps/asn.TPo' depmode=gcc3 /bin/sh ../cfgaux/depcomp cc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/usr/local/etc/squid/squid.conf\" -I. -I. -I../include -I. -I. -I../include -I../include -O2 -fno-strict-aliasing -pipe -c `test -f asn.c || echo './'`asn.c source='authenticate.c' object='authenticate.o' libtool=no depfile='.deps/authenticate.Po' tmpdepfile='.deps/authenticate.TPo' depmode=gcc3 /bin/sh ../cfgaux/depcomp cc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/usr/local/etc/squid/squid.conf\" -I. -I. -I../include -I. -I. -I../include -I../include -O2 -fno-strict-aliasing -pipe -c `test -f authenticate.c || echo './'`authenticate.c |
#/usr/local/etc/rc.d/squid.sh start
squid2006/04/06 16:09:16| parse_delay_pool_count: multiple delay_pools lines, aborting all previous delay_pools config |
#e /usr/local/etc/squid/squid.conf
#delay_access 1 allow mp3 192_168_15_111 #delay_access 1 allow img #delay_access 1 deny all acl iso urlpath_regex \.iso$ delay_access 1 deny all cess 1 allow iso delay_access 1 deny all "/usr/local/etc/squid/squid.conf" 2736L, 87836C written |
cache/ logs/
127.0.0.1 - - [06/Apr/2006:15:21:56 +0300] "GET http://www.mozilla.org/start/ HTTP/1.1" 302 595 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:15:22:03 +0300] "GET http://www.sed.lg.ua/ HTTP/1.1" 504 2370 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:15:22:09 +0300] "GET http://www.google.ru/ HTTP/1.1" 200 4005 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:15:22:10 +0300] "GET http://www.google.ru/images/hp3.gif HTTP/1.1" 200 1697 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:15:22:10 +0300] "GET http://www.google.ru/images/hp0.gif HTTP/1.1" 200 4564 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:15:22:10 +0300] "GET http://www.google.ru/images/hp1.gif HTTP/1.1" 200 3240 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:15:22:10 +0300] "GET http://www.google.ru/images/hp2.gif HTTP/1.1" 200 2989 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:15:22:53 +0300] "GET http://www.google.ru/ HTTP/1.1" 200 3854 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:15:22:55 +0300] "GET http://www.google.ru/search? HTTP/1.1" 302 564 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:15:22:56 +0300] "GET http://www.google.ru/webhp? HTTP/1.1" 200 4049 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:15:23:02 +0300] "GET http://www.sed.lg.ua/ HTTP/1.1" 504 2370 TCP_MISS:DIRECT 127.0.0.1 - - [06/Apr/2006:15:23:09 +0300] "GET http://www.mozilla.org/start/ HTTP/1.1" 302 595 TCP_MISS:DIRECT
Squid Cache (Version 2.5.STABLE11): Terminated abnormally. CPU Usage: 0.016 seconds = 0.008 user + 0.008 sys Maximum Resident Size: 1496 KB Page faults with physical i/o: 0 FATAL: ipcache_init: DNS name lookup tests failed. Squid Cache (Version 2.5.STABLE11): Terminated abnormally. FATAL: ipcache_init: DNS name lookup tests failed. Squid Cache (Version 2.5.STABLE11): Terminated abnormally. CPU Usage: 0.016 seconds = 0.008 user + 0.008 sys Maximum Resident Size: 3924 KB Page faults with physical i/o: 0 FATAL: ipcache_init: DNS name lookup tests failed. Squid Cache (Version 2.5.STABLE11): Terminated abnormally. CPU Usage: 0.016 seconds = 0.016 user + 0.000 sys Maximum Resident Size: 3896 KB Page faults with physical i/o: 0 CPU Usage: 0.016 seconds = 0.016 user + 0.000 sys Maximum Resident Size: 1048 KB Page faults with physical i/o: 0 CPU Usage: 0.016 seconds = 0.000 user + 0.016 sys Maximum Resident Size: 1664 KB Page faults with physical i/o: 0 FATAL: ipcache_init: DNS name lookup tests failed. Squid Cache (Version 2.5.STABLE11): Terminated abnormally. CPU Usage: 0.016 seconds = 0.000 user + 0.016 sys Maximum Resident Size: 3404 KB Page faults with physical i/o: 0 CPU Usage: 0.016 seconds = 0.016 user + 0.000 sys Maximum Resident Size: 1656 KB Page faults with physical i/o: 0 2006/04/06 14:54:36| Starting Squid Cache version 2.5.STABLE11 for i386-portbld-freebsd6.0... 2006/04/06 14:54:36| Process ID 2892 2006/04/06 14:54:36| With 11095 file descriptors available 2006/04/06 14:54:36| Performing DNS Tests... 2006/04/06 14:54:36| Starting Squid Cache version 2.5.STABLE11 for i386-portbld-freebsd6.0... 2006/04/06 14:54:36| Process ID 2894 2006/04/06 14:54:36| With 11095 file descriptors available 2006/04/06 14:54:36| Performing DNS Tests... 2006/04/06 14:54:36| Starting Squid Cache version 2.5.STABLE11 for i386-portbld-freebsd6.0... 2006/04/06 14:54:36| Process ID 2904 2006/04/06 14:54:36| With 11095 file descriptors available 2006/04/06 14:54:36| Performing DNS Tests... 2006/04/06 14:54:36| Starting Squid Cache version 2.5.STABLE11 for i386-portbld-freebsd6.0... 2006/04/06 14:54:36| Process ID 2896 2006/04/06 14:54:36| With 11095 file descriptors available 2006/04/06 14:54:36| Performing DNS Tests... 2006/04/06 14:54:36| Starting Squid Cache version 2.5.STABLE11 for i386-portbld-freebsd6.0... 2006/04/06 14:54:36| Process ID 2905 2006/04/06 14:54:36| With 11095 file descriptors available 2006/04/06 14:54:36| Performing DNS Tests... 2006/04/06 14:54:36| Starting Squid Cache version 2.5.STABLE11 for i386-portbld-freebsd6.0... 2006/04/06 14:54:36| Process ID 2903 2006/04/06 14:54:36| With 11095 file descriptors available 2006/04/06 14:54:36| Performing DNS Tests... 2006/04/06 14:54:36| Starting Squid Cache version 2.5.STABLE11 for i386-portbld-freebsd6.0... 2006/04/06 14:54:36| Process ID 2906 2006/04/06 14:54:36| With 11095 file descriptors available 2006/04/06 14:54:36| Performing DNS Tests... 2006/04/06 14:54:36| Starting Squid Cache version 2.5.STABLE11 for i386-portbld-freebsd6.0... 2006/04/06 14:54:36| Process ID 2908 2006/04/06 14:54:36| With 11095 file descriptors available 2006/04/06 14:54:36| Performing DNS Tests... 2006/04/06 14:54:36| Starting Squid Cache version 2.5.STABLE11 for i386-portbld-freebsd6.0... 2006/04/06 14:54:36| Process ID 2907 2006/04/06 14:54:36| With 11095 file descriptors available 2006/04/06 14:54:36| Performing DNS Tests... 2006/04/06 14:54:36| Successful DNS name lookup tests... 2006/04/06 14:54:36| DNS Socket created at 0.0.0.0, port 62580, FD 5 2006/04/06 14:54:36| Adding nameserver 192.168.15.23 from /etc/resolv.conf 2006/04/06 14:54:36| Successful DNS name lookup tests... 2006/04/06 14:54:36| DNS Socket created at 0.0.0.0, port 58194, FD 5 2006/04/06 14:54:36| Adding nameserver 192.168.15.23 from /etc/resolv.conf 2006/04/06 14:54:36| Successful DNS name lookup tests... 2006/04/06 14:54:36| DNS Socket created at 0.0.0.0, port 59185, FD 5 2006/04/06 14:54:36| Adding nameserver 192.168.15.23 from /etc/resolv.conf 2006/04/06 14:54:36| Successful DNS name lookup tests... 2006/04/06 14:54:36| DNS Socket created at 0.0.0.0, port 59529, FD 5 2006/04/06 14:54:36| Adding nameserver 192.168.15.23 from /etc/resolv.conf 2006/04/06 14:54:36| Successful DNS name lookup tests... 2006/04/06 14:54:36| DNS Socket created at 0.0.0.0, port 51468, FD 5 2006/04/06 14:54:36| Adding nameserver 192.168.15.23 from /etc/resolv.conf 2006/04/06 14:54:36| Successful DNS name lookup tests... 2006/04/06 14:54:36| DNS Socket created at 0.0.0.0, port 51543, FD 5 2006/04/06 14:54:36| Adding nameserver 192.168.15.23 from /etc/resolv.conf 2006/04/06 14:54:36| Successful DNS name lookup tests... 2006/04/06 14:54:36| DNS Socket created at 0.0.0.0, port 64823, FD 5 2006/04/06 14:54:36| Adding nameserver 192.168.15.23 from /etc/resolv.conf 2006/04/06 14:54:36| Successful DNS name lookup tests... 2006/04/06 14:54:36| DNS Socket created at 0.0.0.0, port 49936, FD 5 2006/04/06 14:54:36| Adding nameserver 192.168.15.23 from /etc/resolv.conf 2006/04/06 14:54:36| Successful DNS name lookup tests... 2006/04/06 14:54:36| DNS Socket created at 0.0.0.0, port 57719, FD 5 2006/04/06 14:54:36| Adding nameserver 192.168.15.23 from /etc/resolv.conf 2006/04/06 14:54:36| Unlinkd pipe opened on FD 10 2006/04/06 14:54:36| Unlinkd pipe opened on FD 10 2006/04/06 14:54:36| Unlinkd pipe opened on FD 10 2006/04/06 14:54:36| Unlinkd pipe opened on FD 10 2006/04/06 14:54:36| Unlinkd pipe opened on FD 10 2006/04/06 14:54:36| Unlinkd pipe opened on FD 10 2006/04/06 14:54:36| Unlinkd pipe opened on FD 10 2006/04/06 14:54:36| Unlinkd pipe opened on FD 10 2006/04/06 14:54:36| Unlinkd pipe opened on FD 10 2006/04/06 14:54:36| Swap maxSize 1024000 KB, estimated 78769 objects 2006/04/06 14:54:36| Target number of buckets: 3938 2006/04/06 14:54:36| Using 8192 Store buckets 2006/04/06 14:54:36| Max Mem size: 65536 KB 2006/04/06 14:54:36| Max Swap size: 1024000 KB 2006/04/06 14:54:36| Store logging disabled 2006/04/06 14:54:36| Swap maxSize 1024000 KB, estimated 78769 objects 2006/04/06 14:54:36| Target number of buckets: 3938 2006/04/06 14:54:36| Using 8192 Store buckets 2006/04/06 14:54:36| Max Mem size: 65536 KB 2006/04/06 14:54:36| Max Swap size: 1024000 KB 2006/04/06 14:54:36| Store logging disabled 2006/04/06 14:54:36| Rebuilding storage in /var/spool/squid (DIRTY) 2006/04/06 14:54:36| Swap maxSize 1024000 KB, estimated 78769 objects 2006/04/06 14:54:36| Target number of buckets: 3938 2006/04/06 14:54:36| Using 8192 Store buckets 2006/04/06 14:54:36| Max Mem size: 65536 KB 2006/04/06 14:54:36| Max Swap size: 1024000 KB 2006/04/06 14:54:36| Store logging disabled 2006/04/06 14:54:36| Rebuilding storage in /var/spool/squid (DIRTY) 2006/04/06 14:54:36| Using Least Load store dir selection 2006/04/06 14:54:36| Current Directory is /var/spool/squid 2006/04/06 14:54:36| Swap maxSize 1024000 KB, estimated 78769 objects 2006/04/06 14:54:36| Target number of buckets: 3938 2006/04/06 14:54:36| Using 8192 Store buckets 2006/04/06 14:54:36| Max Mem size: 65536 KB 2006/04/06 14:54:36| Max Swap size: 1024000 KB 2006/04/06 14:54:36| Store logging disabled 2006/04/06 14:54:36| Swap maxSize 1024000 KB, estimated 78769 objects 2006/04/06 14:54:36| Target number of buckets: 3938 2006/04/06 14:54:36| Using 8192 Store buckets 2006/04/06 14:54:36| Max Mem size: 65536 KB 2006/04/06 14:54:36| Max Swap size: 1024000 KB 2006/04/06 14:54:36| Store logging disabled 2006/04/06 14:54:36| Swap maxSize 1024000 KB, estimated 78769 objects 2006/04/06 14:54:36| Target number of buckets: 3938 2006/04/06 14:54:36| Using 8192 Store buckets 2006/04/06 14:54:36| Max Mem size: 65536 KB 2006/04/06 14:54:36| Max Swap size: 1024000 KB 2006/04/06 14:54:36| Store logging disabled 2006/04/06 14:54:36| Using Least Load store dir selection 2006/04/06 14:54:36| Current Directory is /var/log 2006/04/06 14:54:36| Swap maxSize 1024000 KB, estimated 78769 objects 2006/04/06 14:54:36| Target number of buckets: 3938 2006/04/06 14:54:36| Using 8192 Store buckets 2006/04/06 14:54:36| Max Mem size: 65536 KB 2006/04/06 14:54:36| Max Swap size: 1024000 KB
Время первой команды журнала | 14:40:57 2006- 4- 6 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 16:09:16 2006- 4- 6 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 11.88 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.47 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.14 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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