Журнал лабораторных работ

Содержание

Журнал

Понедельник (04/02/12)

12:34:24
#shutdown -h now -p
Shutdown NOW!
shutdown: [pid 1611]

Среда (04/04/12)

/dev/pts/0
08:28:14
#vim /etc/rc.conf
08:28:47
#Cfirewall_type="OPEN"
firewall_type="OPEN"
~
~
                 NO"
#firewall_type="OPEN"
pf_enable="YES"
pflog_logfile="/var/log/pf.log"
"/etc/rc.conf" 24 lines, 714 characters written
08:30:22
#vim /etc/pf.conf
--- /dev/null	2012-04-04 09:31:08.000000000 +0300
+++ /etc/pf.conf	2012-04-04 09:31:12.000000000 +0300
@@ -0,0 +1,5 @@
+int_extr=re0
+int_intr=re1
+
+ip_extr=192.168.13.21
+ip_intr=10.0.0.1
08:31:12
#vim /etc/pf.conf
--- /tmp/l3-saved-1476.26109.26545	2012-04-04 09:31:25.000000000 +0300
+++ /etc/pf.conf	2012-04-04 09:33:32.000000000 +0300
@@ -3,3 +3,5 @@
 
 ip_extr=192.168.13.21
 ip_intr=10.0.0.1
+
+drop in proto icmp from 192.168.13.0/24 to any 
08:33:32
#/etc/netstart
devd already running? (pid=778).
Setting hostuuid: f36ef4c0-9a32-7080-d856-468a91fac700.
Setting hostid: 0x828a6b9f.
Starting Network: lo0 re0.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=3<RXCSUM,TXCSUM>
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
        nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
        ether 00:16:4e:00:00:01
        inet 192.168.13.21 netmask 0xffffff00 broadcast 192.168.13.255
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
add net default: gateway 192.168.13.253
Additional routing options: IP gateway=YES.
08:33:45
#/etc/rc.d/pf
pf      pflog   pfsync
08:33:45
#/etc/rc.d/pf start
Enabling pfNo ALTQ support in kernel
ALTQ related functions disabled
/etc/pf.conf:7: syntax error
pfctl: Syntax error in config file: pf rules not loaded
No ALTQ support in kernel
ALTQ related functions disabled
No ALTQ support in kernel
ALTQ related functions disabled
pf enabled
.
08:34:07
#pfctl -e
No ALTQ support in kernel
ALTQ related functions disabled
pfctl: pf already enabled
08:34:25
#vim /etc/pf.conf
--- /tmp/l3-saved-1476.13082.11458	2012-04-04 09:34:42.000000000 +0300
+++ /etc/pf.conf	2012-04-04 09:34:50.000000000 +0300
@@ -4,4 +4,4 @@
 ip_extr=192.168.13.21
 ip_intr=10.0.0.1
 
-drop in proto icmp from 192.168.13.0/24 to any 
+drop bolck in proto icmp from 192.168.13.0/24 to any 
08:34:50
#vim /etc/pf.conf
--- /tmp/l3-saved-1476.11136.2309	2012-04-04 09:35:03.000000000 +0300
+++ /etc/pf.conf	2012-04-04 09:35:11.000000000 +0300
@@ -4,4 +4,4 @@
 ip_extr=192.168.13.21
 ip_intr=10.0.0.1
 
-drop bolck in proto icmp from 192.168.13.0/24 to any 
+drop block in proto icmp from 192.168.13.0/24 to any 
08:35:11
#/etc/rc.d/pf start
Enabling pfNo ALTQ support in kernel
ALTQ related functions disabled
/etc/pf.conf:7: syntax error
pfctl: Syntax error in config file: pf rules not loaded
No ALTQ support in kernel
ALTQ related functions disabled
.
08:35:14
#vim /etc/pf.conf
--- /tmp/l3-saved-1476.25628.32563	2012-04-04 09:35:18.000000000 +0300
+++ /etc/pf.conf	2012-04-04 09:37:04.000000000 +0300
@@ -4,4 +4,4 @@
 ip_extr=192.168.13.21
 ip_intr=10.0.0.1
 
-drop block in proto icmp from 192.168.13.0/24 to any 
+drop block in inet proto icmp from 192.168.13.0/24 to any 
08:37:04
#/etc/rc.d/pf start
Enabling pfNo ALTQ support in kernel
ALTQ related functions disabled
/etc/pf.conf:7: syntax error
pfctl: Syntax error in config file: pf rules not loaded
No ALTQ support in kernel
ALTQ related functions disabled
.
08:37:06
#vim /etc/pf.conf
--- /tmp/l3-saved-1476.9364.10756	2012-04-04 09:37:26.000000000 +0300
+++ /etc/pf.conf	2012-04-04 09:38:31.000000000 +0300
@@ -4,4 +4,16 @@
 ip_extr=192.168.13.21
 ip_intr=10.0.0.1
 
-drop block in inet proto icmp from 192.168.13.0/24 to any 
+set debug urgent
+set require-order yes
+set block-policy drop
+set loginterface $ext_if
+set state-policy if-bound
+set fingerprints "/etc/pf.os"
+set optimization high-latency
+set ruleset-optimization basic
+set skip on lo
+
+
+
+drop block in on $int_extr inet proto icmp from 192.168.13.0/24 to any 
08:38:31
#/etc/rc.d/pf start
Enabling pfNo ALTQ support in kernel
ALTQ related functions disabled
/etc/pf.conf:10: macro 'ext_if' not defined
/etc/pf.conf:10: syntax error
/etc/pf.conf:18: syntax error
pfctl: Syntax error in config file: pf rules not loaded
No ALTQ support in kernel
ALTQ related functions disabled
.
08:38:33
#vim /etc/pf.conf
--- /tmp/l3-saved-1476.5282.13893	2012-04-04 09:38:38.000000000 +0300
+++ /etc/pf.conf	2012-04-04 09:38:55.000000000 +0300
@@ -7,7 +7,7 @@
 set debug urgent
 set require-order yes
 set block-policy drop
-set loginterface $ext_if
+set loginterface $int_extr
 set state-policy if-bound
 set fingerprints "/etc/pf.os"
 set optimization high-latency
08:38:55
#/etc/rc.d/pf start
Enabling pfNo ALTQ support in kernel
ALTQ related functions disabled
/etc/pf.conf:19: syntax error
pfctl: Syntax error in config file: pf rules not loaded
No ALTQ support in kernel
ALTQ related functions disabled
.
08:38:57
#vim /etc/pf.conf
08:40:56
#pfctl -e
No ALTQ support in kernel
ALTQ related functions disabled
pfctl: pf already enabled
08:43:43
#vim /usr/src/sys/i386/conf/GENERIC
--- /tmp/l3-saved-1476.24508.27168	2012-04-04 09:45:12.000000000 +0300
+++ /usr/src/sys/i386/conf/GENERIC	2012-04-04 10:01:00.000000000 +0300
@@ -41,6 +41,22 @@
 options IPFIREWALL_DEFAULT_TO_ACCEPT
 options IPDIVERT
 options DUMMYNET
+
+options IPFILTER
+options IPFILTER_LOG
+options IPFILTER_DEFAULT_PASS
+
+options         ALTQ
+options         ALTQ_CBQ        # Class Bases Queuing (CBQ)
+options         ALTQ_RED        # Random Early Detection (RED)
+options         ALTQ_RIO        # RED In/Out
+options         ALTQ_HFSC       # Hierarchical Packet Scheduler (HFSC)
+options         ALTQ_PRIQ       # Priority Queuing (PRIQ)
+options         ALTQ_NOPCC      # Required for SMP build
+
+
+
+
 options 	SCHED_ULE		# ULE scheduler
 options 	PREEMPTION		# Enable kernel thread preemption
 options 	INET			# InterNETworking
прошло 19 минут
09:03:03
#ssh root@192.168.13.253
The authenticity of host '192.168.13.253 (192.168.13.253)' can't be established.
RSA key fingerprint is 61:cb:01:48:24:79:e0:e4:73:34:dd:72:12:d2:a4:01.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.13.253' (RSA) to the list of known hosts.
root@192.168.13.253's password:
Read from socket failed: Connection reset by peer
прошло 15 минут
09:18:23
#ssh root@192.168.13.253
root@192.168.13.253's password:
Linux fobos 3.1.0-rc9+ #1 SMP Sun Apr 1 22:29:39 EEST 2012 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Apr  4 09:40:57 2012 from 10.0.23.1
fobos:~#
fobos:~#
fobos:~# /etc/init.d/udhcpd stop
Stopping very small Busybox based DHCP server: Stopped /usr/sbin/udhcpd (pid 3312).
udhcpd.
fobos:~# ps aux|grep dhcp
root      8824  0.0  0.0   5084   744 pts/7    S+   10:18   0:00 grep dhcp
fobos:~# exit
logout
Connection to 192.168.13.253 closed.
09:18:44
#cd /usr/ports/

09:19:00
#make search name="dhcp"
Port:   dhcp6-20080615_1
Path:   /usr/ports/net/dhcp6
Info:   KAME DHCP6 client, server, and relay
Maint:  ports@FreeBSD.org
B-deps:
R-deps:
WWW:    http://wide-dhcpv6.sourceforge.net/.
Port:   dhcpcd-3.2.3
Path:   /usr/ports/net/dhcpcd
Info:   DHCP client
...
Date:   2010-07-09
Reason: Has expired: deprecated upstream since March 2009
Port:   net/isc-dhcp30-relay
Moved:  net/isc-dhcp31-relay
Date:   2010-07-09
Reason: Has expired: deprecated upstream since March 2009
Port:   net/isc-dhcp30-server
Moved:  net/isc-dhcp31-server
Date:   2010-07-09
Reason: Has expired: deprecated upstream since March 2009
09:19:17
#cd net/isc
isc-dhcp3-devel/   isc-dhcp31-relay/  isc-dhcp41-client/ isc-dhcp41-server/
isc-dhcp31-client/ isc-dhcp31-server/ isc-dhcp41-relay/  iscsi-target/
09:19:17
#cd net/isc
isc-dhcp3-devel/   isc-dhcp31-relay/  isc-dhcp41-client/ isc-dhcp41-server/
isc-dhcp31-client/ isc-dhcp31-server/ isc-dhcp41-relay/  iscsi-target/
09:19:17
#cd net/isc
isc-dhcp3-devel/   isc-dhcp31-relay/  isc-dhcp41-client/ isc-dhcp41-server/
isc-dhcp31-client/ isc-dhcp31-server/ isc-dhcp41-relay/  iscsi-target/
09:19:17
#cd net/isc-dhcp31-server/

09:19:52
#make install clean
conflex.c:675: warning: pointer targets in passing argument 1 of 'strcasecmp' differ in signedness
conflex.c:677: warning: pointer targets in passing argument 1 of 'strcasecmp' differ in signedness
conflex.c:679: warning: pointer targets in passing argument 1 of 'strcasecmp' differ in signedness
conflex.c:681: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness
conflex.c:682: warning: pointer targets in passing argument 1 of 'strcasecmp' differ in signedness
conflex.c:684: warning: pointer targets in passing argument 1 of 'strcasecmp' differ in signedness
conflex.c:687: warning: pointer targets in passing argument 1 of 'strcasecmp' differ in signedness
conflex.c:689: warning: pointer targets in passing argument 1 of 'strcasecmp' differ in signedness
conflex.c:691: warning: pointer targets in passing argument 1 of 'strcasecmp' differ in signedness
conflex.c:693: warning: pointer targets in passing argument 1 of 'strcasecmp' differ in signedness
...
      these network services to be started at boot time.
/usr/local/etc/rc.d/isc-dhcpd
      If there are vulnerabilities in these programs there may be a security
      risk to the system. FreeBSD makes no guarantee about the security of
      ports included in the Ports Collection. Please type 'make deinstall'
      to deinstall the port if this is a concern.
      For more information, and contact details about the security
      status of this software, see the following webpage:
http://www.isc.org/products/DHCP/
===>  Cleaning for isc-dhcp31-server-3.1.ESV,1
09:21:04
#ls /etc/
Display all 106 possibilities? (y or n)
X11/                 locate.rc            profile
aliases              login.access         protocols
amd.map              login.conf           pwd.db
apmd.conf            login.conf.db        rc
auth.conf            mac.conf             rc.bsdextended
bluetooth/           mail/                rc.conf
crontab              mail.rc              rc.d/
csh.cshrc            make.conf            rc.firewall
csh.login            manpath.config       rc.initdiskless
...
devd.conf            namedb/              rc.suspend
devfs.conf           netconfig            regdomain.xml
dhclient.conf        netstart             remote
disktab              network.subr         resolv.conf
dumpdates            networks             rmt
fbtab                newsyslog.conf       rpc
freebsd-update.conf  nscd.conf            security/
fstab                nsmb.conf            services
ftpusers             nsswitch.conf        shells
gettytab             ntp/                 skel/
09:21:04
#ls /etc/dhclient.conf
Makefile     files/       pkg-install  pkg-plist
distinfo     pkg-descr    pkg-message
09:21:04
#cd

09:21:35
#vim /etc/dhclient.conf
09:21:35
#vim /etc/dhclient.conf
09:21:35
#vim /usr/local/etc/
09:21:35
#cp /usr/local/etc/dhcpd.conf.sample /usr/local/etc/dhcpd.conf.

09:21:35
#cp /usr/local/etc/dhcpd.conf.sample /usr/local/etc/dhcpd.conf

09:22:05
#vim /usr/local/etc/dhcpd.conf
--- /tmp/l3-saved-1476.31945.7855	2012-04-04 10:22:11.000000000 +0300
+++ /usr/local/etc/dhcpd.conf	2012-04-04 10:30:03.000000000 +0300
@@ -4,8 +4,8 @@
 #
 
 # option definitions common to all supported networks...
-option domain-name "example.org";
-option domain-name-servers ns1.example.org, ns2.example.org;
+option domain-name "net.nt";
+option domain-name-servers 192.168.13.253;
 
 default-lease-time 600;
 max-lease-time 7200;
@@ -27,7 +27,9 @@
 # No service will be given on this subnet, but declaring it helps the 
 # DHCP server to understand the network topology.
 
-subnet 10.152.187.0 netmask 255.255.255.0 {
+subnet 192.168.13.0 netmask 255.255.255.0 {
+range 192.168.13.50 192.168.13.100;
+options routers 192.168.13.253
 }
 
 # This is a very basic subnet declaration.
@@ -68,6 +70,14 @@
   server-name "toccata.fugue.com";
 }
 
+
+host vasya_pupkin {
+hardware ethernet 00:01:13:DF:A5:E1;
+fixed-address 192.168.13.11;
+options routers 192.168.13.254;
+}
+
+
 # Fixed IP addresses can also be specified for hosts.   These addresses
 # should not also be listed as being available for dynamic assignment.
 # Hosts for which fixed IP addresses have been specified can boot using
09:30:03
#vim /etc/defaults/
09:30:03
#vim /etc/defaults/rc.conf
09:31:37
#:q
pflog_logfile="/var/log/pf.log"
dhpc_enable="YES"
"/etc/rc.conf" 25 lines, 732 characters written
09:31:53
#/usr/local/etc/rc.d/isc-dhcpd start
Cannot 'start' dhcpd. Set dhcpd_enable to YES in /etc/rc.conf or use 'onestart' instead of 'start'.
09:32:07
#vim /etc/rc.conf
--- /tmp/l3-saved-1476.5874.10913	2012-04-04 10:32:20.000000000 +0300
+++ /etc/rc.conf	2012-04-04 10:32:26.000000000 +0300
@@ -22,4 +22,4 @@
 pf_enable="YES"
 pflog_enable="YES"
 pflog_logfile="/var/log/pf.log"
-dhpc_enable="YES"
+dhpcd_enable="YES"
09:32:26
#/usr/local/etc/rc.d/isc-dhcpd start
Cannot 'start' dhcpd. Set dhcpd_enable to YES in /etc/rc.conf or use 'onestart' instead of 'start'.
09:32:28
#/usr/local/etc/rc.d/isc-dhcpd onestart
Starting dhcpd.
Internet Systems Consortium DHCP Server V3.1-ESV
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
/usr/local/etc/dhcpd.conf line 32: semicolon expected.
options routers
        ^
/usr/local/etc/dhcpd.conf line 37: subnet declarations not allowed here.
subnet
...
options routers
        ^
/usr/local/etc/dhcpd.conf line 102: shared-network parameters not allowed here.
shared-network
^
/usr/local/etc/dhcpd.conf line 117: unexpected end of file
}
^
Configuration file errors encountered -- exiting
/usr/local/etc/rc.d/isc-dhcpd: WARNING: failed to start dhcpd
09:32:45
#vim /usr/local/etc/dhcpd.conf
--- /tmp/l3-saved-1476.13269.27514	2012-04-04 10:33:05.000000000 +0300
+++ /usr/local/etc/dhcpd.conf	2012-04-04 10:34:26.000000000 +0300
@@ -1,8 +1,3 @@
-# dhcpd.conf
-#
-# Sample configuration file for ISC dhcpd
-#
-
 # option definitions common to all supported networks...
 option domain-name "net.nt";
 option domain-name-servers 192.168.13.253;
@@ -10,108 +5,11 @@
 default-lease-time 600;
 max-lease-time 7200;
 
-# Use this to enble / disable dynamic dns updates globally.
-#ddns-update-style none;
-
-# If this DHCP server is the official DHCP server for the local
-# network, the authoritative directive should be uncommented.
-#authoritative;
-
-# ad-hoc DNS update scheme - set to "none" to disable dynamic DNS updates.
-ddns-update-style ad-hoc;
-
-# Use this to send dhcp log messages to a different log file (you also
-# have to hack syslog.conf to complete the redirection).
 log-facility local7;
 
-# No service will be given on this subnet, but declaring it helps the 
-# DHCP server to understand the network topology.
 
 subnet 192.168.13.0 netmask 255.255.255.0 {
 range 192.168.13.50 192.168.13.100;
-options routers 192.168.13.253
-}
-
-# This is a very basic subnet declaration.
-
-subnet 10.254.239.0 netmask 255.255.255.224 {
-  range 10.254.239.10 10.254.239.20;
-  option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
-}
-
-# This declaration allows BOOTP clients to get dynamic addresses,
-# which we don't really recommend.
-
-subnet 10.254.239.32 netmask 255.255.255.224 {
-  range dynamic-bootp 10.254.239.40 10.254.239.60;
-  option broadcast-address 10.254.239.31;
-  option routers rtr-239-32-1.example.org;
-}
-
-# A slightly different configuration for an internal subnet.
-subnet 10.5.5.0 netmask 255.255.255.224 {
-  range 10.5.5.26 10.5.5.30;
-  option domain-name-servers ns1.internal.example.org;
-  option domain-name "internal.example.org";
-  option routers 10.5.5.1;
-  option broadcast-address 10.5.5.31;
-  default-lease-time 600;
-  max-lease-time 7200;
-}
-
-# Hosts which require special configuration options can be listed in
-# host statements.   If no address is specified, the address will be
-# allocated dynamically (if possible), but the host-specific information
-# will still come from the host declaration.
-
-host passacaglia {
-  hardware ethernet 0:0:c0:5d:bd:95;
-  filename "vmunix.passacaglia";
-  server-name "toccata.fugue.com";
-}
-
-
-host vasya_pupkin {
-hardware ethernet 00:01:13:DF:A5:E1;
-fixed-address 192.168.13.11;
-options routers 192.168.13.254;
-}
-
-
-# Fixed IP addresses can also be specified for hosts.   These addresses
-# should not also be listed as being available for dynamic assignment.
-# Hosts for which fixed IP addresses have been specified can boot using
-# BOOTP or DHCP.   Hosts for which no fixed address is specified can only
-# be booted with DHCP, unless there is an address range on the subnet
-# to which a BOOTP client is connected which has the dynamic-bootp flag
-# set.
-host fantasia {
-  hardware ethernet 08:00:07:26:c0:a5;
-  fixed-address fantasia.fugue.com;
-}
-
-# You can declare a class of clients and then do address allocation
-# based on that.   The example below shows a case where all clients
-# in a certain class get addresses on the 10.17.224/24 subnet, and all
-# other clients get addresses on the 10.0.29/24 subnet.
-
-class "foo" {
-  match if substring (option vendor-class-identifier, 0, 4) = "SUNW";
-}
-
-shared-network 224-29 {
-  subnet 10.17.224.0 netmask 255.255.255.0 {
-    option routers rtr-224.example.org;
-  }
-  subnet 10.0.29.0 netmask 255.255.255.0 {
-    option routers rtr-29.example.org;
-  }
-  pool {
-    allow members of "foo";
-    range 10.17.224.10 10.17.224.250;
-  }
-  pool {
-    deny members of "foo";
-    range 10.0.29.10 10.0.29.230;
-  }
+options domain-name-servers 192.168.13.253;
+options routers 192.168.13.253;
 }
09:34:26
#/usr/local/etc/rc.d/isc-dhcpd onestart
Starting dhcpd.
Internet Systems Consortium DHCP Server V3.1-ESV
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
/usr/local/etc/dhcpd.conf line 13: semicolon expected.
options domain-name-servers
        ^
/usr/local/etc/dhcpd.conf line 14: semicolon expected.
options routers
        ^
Configuration file errors encountered -- exiting
/usr/local/etc/rc.d/isc-dhcpd: WARNING: failed to start dhcpd
09:34:28
#vim /usr/local/etc/dhcpd.conf
09:35:13
#vim /usr/local/etc/dhcpd.conf.sample
09:37:37
#/usr/local/etc/rc.d/isc-dhcpd onestart
Starting dhcpd.
Internet Systems Consortium DHCP Server V3.1-ESV
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
/usr/local/etc/dhcpd.conf line 13: semicolon expected.
 options domain-name-servers
         ^
/usr/local/etc/dhcpd.conf line 14: semicolon expected.
 options routers
         ^
Configuration file errors encountered -- exiting
/usr/local/etc/rc.d/isc-dhcpd: WARNING: failed to start dhcpd
09:37:40
#/usr/local/etc/rc.d/isc-dhcpd start
Cannot 'start' dhcpd. Set dhcpd_enable to YES in /etc/rc.conf or use 'onestart' instead of 'start'.
09:37:44
#vim /etc/rc.conf
09:38:29
#pflog_enable="YES"
pflog_logfile="/var/log/pf.log"
dhpcd_enable="YES"
dhpcd_ifaces="re0"
"/etc/rc.conf" 26 lines, 752 characters written
09:38:57
#/usr/local/etc/rc.d/isc-dhcpd start
Cannot 'start' dhcpd. Set dhcpd_enable to YES in /etc/rc.conf or use 'onestart' instead of 'start'.
09:38:58
#vim /etc/rc.conf
--- /tmp/l3-saved-1476.17993.1441	2012-04-04 10:39:07.000000000 +0300
+++ /etc/rc.conf	2012-04-04 10:39:44.000000000 +0300
@@ -24,3 +24,5 @@
 pflog_logfile="/var/log/pf.log"
 dhpcd_enable="YES"
 dhpcd_ifaces="re0"
+dhcpd_flags="-q -4"
+dhcpd_conf="/usr/local/etc/dhcpd.conf"
09:39:44
#/usr/local/etc/rc.d/isc-dhcpd start
Cannot 'start' dhcpd. Set dhcpd_enable to YES in /etc/rc.conf or use 'onestart' instead of 'start'.
09:39:47
#vim /etc/rc.conf
--- /tmp/l3-saved-1476.10984.26317	2012-04-04 10:39:57.000000000 +0300
+++ /etc/rc.conf	2012-04-04 10:40:22.000000000 +0300
@@ -22,7 +22,7 @@
 pf_enable="YES"
 pflog_enable="YES"
 pflog_logfile="/var/log/pf.log"
-dhpcd_enable="YES"
-dhpcd_ifaces="re0"
+dhcpd_enable="YES"
+dhcpd_ifaces="re0"
 dhcpd_flags="-q -4"
 dhcpd_conf="/usr/local/etc/dhcpd.conf"
09:40:22
#/usr/local/etc/rc.d/isc-dhcpd start
Starting dhcpd.
Internet Systems Consortium DHCP Server V3.1-ESV
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
Usage: dhcpd [-p <UDP port #>] [-d] [-f]
             [-cf config-file] [-lf lease-file]
             [-user user] [-group group]
             [-chroot dir] [-early_chroot]
             [-jail name ip]
                   [-tf trace-output-file]
                   [-play trace-input-file]
             [-t] [-T] [-s server] [if0 [...ifN]]
/usr/local/etc/rc.d/isc-dhcpd: WARNING: failed to start dhcpd
09:40:25
#vim /usr/local/etc/dhcpd.conf
--- /tmp/l3-saved-1476.19794.21618	2012-04-04 10:40:35.000000000 +0300
+++ /usr/local/etc/dhcpd.conf	2012-04-04 10:41:20.000000000 +0300
@@ -10,6 +10,6 @@
 
 subnet 192.168.13.0 netmask 255.255.255.0 {
  range 192.168.13.50 192.168.13.100;
- options domain-name-servers fobos.net.nt;
- options routers fobos.net.nt;
+ options domain-name-servers 192.168.13.253;
+ options routers 192.168.13.253;
 }
09:41:20
#/usr/local/etc/rc.d/isc-dhcpd restart
Internet Systems Consortium DHCP Server V3.1-ESV
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
Usage: dhcpd [-p <UDP port #>] [-d] [-f]
             [-cf config-file] [-lf lease-file]
             [-user user] [-group group]
             [-chroot dir] [-early_chroot]
             [-jail name ip]
                   [-tf trace-output-file]
                   [-play trace-input-file]
...
All rights reserved.
Usage: dhcpd [-p <UDP port #>] [-d] [-f]
             [-cf config-file] [-lf lease-file]
             [-user user] [-group group]
             [-chroot dir] [-early_chroot]
             [-jail name ip]
                   [-tf trace-output-file]
                   [-play trace-input-file]
             [-t] [-T] [-s server] [if0 [...ifN]]
/usr/local/etc/rc.d/isc-dhcpd: ERROR:  Configuration file sanity check failed
09:41:25
#/usr/local/etc/rc.d/isc-dhcpd restart
Internet Systems Consortium DHCP Server V3.1-ESV
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
Usage: dhcpd [-p <UDP port #>] [-d] [-f]
             [-cf config-file] [-lf lease-file]
             [-user user] [-group group]
             [-chroot dir] [-early_chroot]
             [-jail name ip]
                   [-tf trace-output-file]
                   [-play trace-input-file]
...
All rights reserved.
Usage: dhcpd [-p <UDP port #>] [-d] [-f]
             [-cf config-file] [-lf lease-file]
             [-user user] [-group group]
             [-chroot dir] [-early_chroot]
             [-jail name ip]
                   [-tf trace-output-file]
                   [-play trace-input-file]
             [-t] [-T] [-s server] [if0 [...ifN]]
/usr/local/etc/rc.d/isc-dhcpd: ERROR:  Configuration file sanity check failed
09:41:45
#vim /etc/rc.conf
--- /tmp/l3-saved-1476.7720.22433	2012-04-04 10:42:01.000000000 +0300
+++ /etc/rc.conf	2012-04-04 10:42:07.000000000 +0300
@@ -24,5 +24,4 @@
 pflog_logfile="/var/log/pf.log"
 dhcpd_enable="YES"
 dhcpd_ifaces="re0"
-dhcpd_flags="-q -4"
 dhcpd_conf="/usr/local/etc/dhcpd.conf"
09:42:07
#/usr/local/etc/rc.d/isc-dhcpd restart
Internet Systems Consortium DHCP Server V3.1-ESV
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
/usr/local/etc/dhcpd.conf line 13: semicolon expected.
 options domain-name-servers
         ^
/usr/local/etc/dhcpd.conf line 14: semicolon expected.
 options routers
         ^
Configuration file errors encountered -- exiting
/usr/local/etc/rc.d/isc-dhcpd: ERROR:  Configuration file sanity check failed
09:42:10
#/usr/local/etc/rc.d/isc-dhcpd start
Starting dhcpd.
Internet Systems Consortium DHCP Server V3.1-ESV
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
/usr/local/etc/dhcpd.conf line 13: semicolon expected.
 options domain-name-servers
         ^
/usr/local/etc/dhcpd.conf line 14: semicolon expected.
 options routers
         ^
Configuration file errors encountered -- exiting
/usr/local/etc/rc.d/isc-dhcpd: WARNING: failed to start dhcpd
09:42:17
#vim /usr/local/etc/dhcpd.conf
--- /tmp/l3-saved-1476.8616.11110	2012-04-04 10:42:41.000000000 +0300
+++ /usr/local/etc/dhcpd.conf	2012-04-04 10:42:54.000000000 +0300
@@ -10,6 +10,6 @@
 
 subnet 192.168.13.0 netmask 255.255.255.0 {
  range 192.168.13.50 192.168.13.100;
- options domain-name-servers 192.168.13.253;
- options routers 192.168.13.253;
+# options domain-name-servers 192.168.13.253;
+# options routers 192.168.13.253;
 }
09:42:54
#/usr/local/etc/rc.d/isc-dhcpd start
Starting dhcpd.
Internet Systems Consortium DHCP Server V3.1-ESV
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
** You must add a global ddns-update-style statement to /usr/local/etc/dhcpd.conf.
   To get the same behaviour as in 3.0b2pl11 and previous
   versions, add a line that says "ddns-update-style ad-hoc;"
   Please read the dhcpd.conf manual page for more information. **
/usr/local/etc/rc.d/isc-dhcpd: WARNING: failed to start dhcpd
09:42:56
#vim /usr/local/etc/dhcpd.conf
--- /tmp/l3-saved-1476.25822.19949	2012-04-04 10:43:15.000000000 +0300
+++ /usr/local/etc/dhcpd.conf	2012-04-04 10:44:02.000000000 +0300
@@ -1,15 +1,17 @@
 # option definitions common to all supported networks...
 option domain-name "net.nt";
 option domain-name-servers 192.168.13.253;
+option
 
 default-lease-time 600;
 max-lease-time 7200;
 
+ddns-update-style statement
 log-facility local7;
 
 
 subnet 192.168.13.0 netmask 255.255.255.0 {
  range 192.168.13.50 192.168.13.100;
-# options domain-name-servers 192.168.13.253;
-# options routers 192.168.13.253;
+ option domain-name-servers 192.168.13.253;
+ option routers 192.168.13.253;
 }
09:44:02
#/usr/local/etc/rc.d/isc-dhcpd start
Starting dhcpd.
Internet Systems Consortium DHCP Server V3.1-ESV
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
/usr/local/etc/dhcpd.conf line 6: unknown option dhcp.default-lease-time
default-lease-time 600;
^
/usr/local/etc/dhcpd.conf line 9: unknown value
ddns-update-style statement
                  ^
/usr/local/etc/dhcpd.conf line 10: expecting a parameter or declaration
log-facility local7;
                    ^
Configuration file errors encountered -- exiting
/usr/local/etc/rc.d/isc-dhcpd: WARNING: failed to start dhcpd
09:44:03
#vim /usr/local/etc/dhcpd.conf
--- /tmp/l3-saved-1476.7263.11214	2012-04-04 10:44:16.000000000 +0300
+++ /usr/local/etc/dhcpd.conf	2012-04-04 10:44:42.000000000 +0300
@@ -8,7 +8,7 @@
 
 ddns-update-style statement
 log-facility local7;
-
+authoritative;
 
 subnet 192.168.13.0 netmask 255.255.255.0 {
  range 192.168.13.50 192.168.13.100;
09:44:42
#/usr/local/etc/rc.d/isc-dhcpd start
Starting dhcpd.
Internet Systems Consortium DHCP Server V3.1-ESV
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
/usr/local/etc/dhcpd.conf line 6: unknown option dhcp.default-lease-time
default-lease-time 600;
^
/usr/local/etc/dhcpd.conf line 9: unknown value
ddns-update-style statement
                  ^
/usr/local/etc/dhcpd.conf line 10: expecting a parameter or declaration
log-facility local7;
                    ^
Configuration file errors encountered -- exiting
/usr/local/etc/rc.d/isc-dhcpd: WARNING: failed to start dhcpd
09:44:44
#vim /usr/local/etc/dhcpd.conf
--- /tmp/l3-saved-1476.6756.17981	2012-04-04 10:44:52.000000000 +0300
+++ /usr/local/etc/dhcpd.conf	2012-04-04 10:45:14.000000000 +0300
@@ -6,7 +6,7 @@
 default-lease-time 600;
 max-lease-time 7200;
 
-ddns-update-style statement
+ddns-update-style none; 
 log-facility local7;
 authoritative;
 
09:45:14
#/usr/local/etc/rc.d/isc-dhcpd start
Starting dhcpd.
Internet Systems Consortium DHCP Server V3.1-ESV
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
/usr/local/etc/dhcpd.conf line 6: unknown option dhcp.default-lease-time
default-lease-time 600;
^
Configuration file errors encountered -- exiting
/usr/local/etc/rc.d/isc-dhcpd: WARNING: failed to start dhcpd
09:45:16
#vim /usr/local/etc/dhcpd.conf
--- /tmp/l3-saved-1476.2523.5348	2012-04-04 10:45:33.000000000 +0300
+++ /usr/local/etc/dhcpd.conf	2012-04-04 10:45:45.000000000 +0300
@@ -3,7 +3,7 @@
 option domain-name-servers 192.168.13.253;
 option
 
-default-lease-time 600;
+#default-lease-time 600;
 max-lease-time 7200;
 
 ddns-update-style none; 
09:45:45
#/usr/local/etc/rc.d/isc-dhcpd start
Starting dhcpd.
Internet Systems Consortium DHCP Server V3.1-ESV
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
/usr/local/etc/dhcpd.conf line 7: unknown option dhcp.max-lease-time
max-lease-time 7200;
^
Configuration file errors encountered -- exiting
/usr/local/etc/rc.d/isc-dhcpd: WARNING: failed to start dhcpd
09:45:46
#vim /usr/local/etc/dhcpd.conf
--- /tmp/l3-saved-1476.14345.3664	2012-04-04 10:45:50.000000000 +0300
+++ /usr/local/etc/dhcpd.conf	2012-04-04 10:45:57.000000000 +0300
@@ -4,7 +4,7 @@
 option
 
 #default-lease-time 600;
-max-lease-time 7200;
+#max-lease-time 7200;
 
 ddns-update-style none; 
 log-facility local7;
09:45:57
#/usr/local/etc/rc.d/isc-dhcpd start
Starting dhcpd.
Internet Systems Consortium DHCP Server V3.1-ESV
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
/usr/local/etc/dhcpd.conf line 9: unknown option dhcp.ddns-update-style
ddns-update-style none;
^
Configuration file errors encountered -- exiting
/usr/local/etc/rc.d/isc-dhcpd: WARNING: failed to start dhcpd
09:45:59
#vim /usr/local/etc/dhcpd.conf
--- /tmp/l3-saved-1476.23914.5039	2012-04-04 10:46:06.000000000 +0300
+++ /usr/local/etc/dhcpd.conf	2012-04-04 10:46:12.000000000 +0300
@@ -6,7 +6,7 @@
 #default-lease-time 600;
 #max-lease-time 7200;
 
-ddns-update-style none; 
+#ddns-update-style none; 
 log-facility local7;
 authoritative;
 
09:46:12
#/usr/local/etc/rc.d/isc-dhcpd start
Starting dhcpd.
Internet Systems Consortium DHCP Server V3.1-ESV
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
/usr/local/etc/dhcpd.conf line 10: unknown option dhcp.log-facility
log-facility local7;
^
Configuration file errors encountered -- exiting
/usr/local/etc/rc.d/isc-dhcpd: WARNING: failed to start dhcpd
09:46:14
#vim /usr/local/etc/dhcpd.conf
--- /tmp/l3-saved-1476.28877.17912	2012-04-04 10:46:19.000000000 +0300
+++ /usr/local/etc/dhcpd.conf	2012-04-04 10:46:32.000000000 +0300
@@ -7,7 +7,7 @@
 #max-lease-time 7200;
 
 #ddns-update-style none; 
-log-facility local7;
+#log-facility local7;
 authoritative;
 
 subnet 192.168.13.0 netmask 255.255.255.0 {
09:46:32
#/usr/local/etc/rc.d/isc-dhcpd start
Starting dhcpd.
Internet Systems Consortium DHCP Server V3.1-ESV
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
/usr/local/etc/dhcpd.conf line 11: unknown option dhcp.authoritative
authoritative;
^
Configuration file errors encountered -- exiting
/usr/local/etc/rc.d/isc-dhcpd: WARNING: failed to start dhcpd
09:46:34
#vim /usr/local/etc/dhcpd.conf
--- /tmp/l3-saved-1476.16188.9687	2012-04-04 10:46:36.000000000 +0300
+++ /usr/local/etc/dhcpd.conf	2012-04-04 10:46:41.000000000 +0300
@@ -8,7 +8,7 @@
 
 #ddns-update-style none; 
 #log-facility local7;
-authoritative;
+#authoritative;
 
 subnet 192.168.13.0 netmask 255.255.255.0 {
  range 192.168.13.50 192.168.13.100;
09:46:41
#/usr/local/etc/rc.d/isc-dhcpd start
Starting dhcpd.
Internet Systems Consortium DHCP Server V3.1-ESV
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
/usr/local/etc/dhcpd.conf line 13: unknown option dhcp.subnet
subnet 192.
^
Configuration file errors encountered -- exiting
/usr/local/etc/rc.d/isc-dhcpd: WARNING: failed to start dhcpd
09:46:43
#vim /usr/local/etc/dhcpd.conf
--- /tmp/l3-saved-1476.18723.8907	2012-04-04 10:46:46.000000000 +0300
+++ /usr/local/etc/dhcpd.conf	2012-04-04 10:47:45.000000000 +0300
@@ -1,14 +1,13 @@
-# option definitions common to all supported networks...
 option domain-name "net.nt";
 option domain-name-servers 192.168.13.253;
-option
+option routers 192.168.13.253;
 
-#default-lease-time 600;
-#max-lease-time 7200;
+default-lease-time 600;
+max-lease-time 7200;
 
-#ddns-update-style none; 
-#log-facility local7;
-#authoritative;
+ddns-update-style none; 
+log-facility local7;
+authoritative;
 
 subnet 192.168.13.0 netmask 255.255.255.0 {
  range 192.168.13.50 192.168.13.100;
09:47:45
#/usr/local/etc/rc.d/isc-dhcpd start
Starting dhcpd.
Internet Systems Consortium DHCP Server V3.1-ESV
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Wrote 0 leases to leases file.
Listening on BPF/re0/00:16:4e:00:00:01/192.168.13/24
Sending on   BPF/re0/00:16:4e:00:00:01/192.168.13/24
Sending on   Socket/fallback/fallback-net
09:47:47
#vim /usr/local/etc/dhcpd.conf
--- /tmp/l3-saved-1476.29887.23039	2012-04-04 10:47:56.000000000 +0300
+++ /usr/local/etc/dhcpd.conf	2012-04-04 10:50:52.000000000 +0300
@@ -14,3 +14,12 @@
  option domain-name-servers 192.168.13.253;
  option routers 192.168.13.253;
 }
+
+subnet 192.168.15.0 netmask 255.255.255.0 {
+ range 192.168.15.10 192.168.15.200;
+ option domain-name-servers 192.168.13.254;
+ option routers 192.168.15.1;
+ option domain-name example.org;
+}
+A
+}
09:50:52
#/usr/local/etc/rc.d/isc-dhcpd restart
Internet Systems Consortium DHCP Server V3.1-ESV
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
/usr/local/etc/dhcpd.conf line 22: semicolon expected.
 option domain-name example.
                            ^
/usr/local/etc/dhcpd.conf line 25: semicolon expected.
}
^
Configuration file errors encountered -- exiting
/usr/local/etc/rc.d/isc-dhcpd: ERROR:  Configuration file sanity check failed
09:50:55
#vim /usr/local/etc/dhcpd.conf
--- /tmp/l3-saved-1476.9027.17232	2012-04-04 10:50:59.000000000 +0300
+++ /usr/local/etc/dhcpd.conf	2012-04-04 10:51:21.000000000 +0300
@@ -21,5 +21,3 @@
  option routers 192.168.15.1;
  option domain-name example.org;
 }
-A
-}
09:51:21
#/usr/local/etc/rc.d/isc-dhcpd restart
Internet Systems Consortium DHCP Server V3.1-ESV
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
/usr/local/etc/dhcpd.conf line 22: semicolon expected.
 option domain-name example.
                            ^
Configuration file errors encountered -- exiting
/usr/local/etc/rc.d/isc-dhcpd: ERROR:  Configuration file sanity check failed
09:51:22
#vim /usr/local/etc/dhcpd.conf
--- /tmp/l3-saved-1476.25515.5864	2012-04-04 10:51:29.000000000 +0300
+++ /usr/local/etc/dhcpd.conf	2012-04-04 10:52:02.000000000 +0300
@@ -19,5 +19,5 @@
  range 192.168.15.10 192.168.15.200;
  option domain-name-servers 192.168.13.254;
  option routers 192.168.15.1;
- option domain-name example.org;
+ option domain-name 'example.org';
 }
09:52:02
#/usr/local/etc/rc.d/isc-dhcpd restart
Internet Systems Consortium DHCP Server V3.1-ESV
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
/usr/local/etc/dhcpd.conf line 22: expecting string.
 option domain-name '
                    ^
Configuration file errors encountered -- exiting
/usr/local/etc/rc.d/isc-dhcpd: ERROR:  Configuration file sanity check failed
09:52:05
#vim /usr/local/etc/dhcpd.conf.sample
09:52:33
#/usr/local/etc/rc.d/isc-dhcpd restart
Stopping dhcpd.
Starting dhcpd.
Internet Systems Consortium DHCP Server V3.1-ESV
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Wrote 0 leases to leases file.
Listening on BPF/re0/00:16:4e:00:00:01/192.168.13/24
Sending on   BPF/re0/00:16:4e:00:00:01/192.168.13/24
Sending on   Socket/fallback/fallback-net
09:52:35
#vim /usr/local/etc/dhcpd.conf
--- /tmp/l3-saved-1476.12636.5612	2012-04-04 10:56:15.000000000 +0300
+++ /usr/local/etc/dhcpd.conf	2012-04-04 10:56:28.000000000 +0300
@@ -12,7 +12,7 @@
 subnet 192.168.13.0 netmask 255.255.255.0 {
  range 192.168.13.50 192.168.13.100;
  option domain-name-servers 192.168.13.253;
- option routers 192.168.13.253;
+ option routers 192.168.13.254;
 }
 
 subnet 192.168.15.0 netmask 255.255.255.0 {
09:56:28
#/usr/local/etc/rc.d/isc-dhcpd restart
Stopping dhcpd.
Starting dhcpd.
Internet Systems Consortium DHCP Server V3.1-ESV
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Wrote 1 leases to leases file.
Listening on BPF/re0/00:16:4e:00:00:01/192.168.13/24
Sending on   BPF/re0/00:16:4e:00:00:01/192.168.13/24
Sending on   Socket/fallback/fallback-net
09:56:30
#/usr/local/etc/rc.d/isc-dhcpd stop
Stopping dhcpd.
09:57:45
#vim /etc/rc.conf
--- /tmp/l3-saved-1476.29124.191	2012-04-04 10:58:04.000000000 +0300
+++ /etc/rc.conf	2012-04-04 10:58:34.000000000 +0300
@@ -22,6 +22,3 @@
 pf_enable="YES"
 pflog_enable="YES"
 pflog_logfile="/var/log/pf.log"
-dhcpd_enable="YES"
-dhcpd_ifaces="re0"
-dhcpd_conf="/usr/local/etc/dhcpd.conf"
09:58:34
#ssh root@192.168.13.254
The authenticity of host '192.168.13.254 (192.168.13.254)' can't be established.
RSA key fingerprint is 27:ad:05:53:67:18:24:87:81:8a:48:9c:3c:a9:2b:87.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.13.254' (RSA) to the list of known hosts.
We'd like to keep you up to date about:
  * Software feature updates
  * New product announcements
  * Special events
Please register your products now at:  www.ProCurve.com
root@192.168.13.254's password:
Permission denied, please try again.
root@192.168.13.254's password:
09:59:03
#ssh root@192.168.13.253
root@192.168.13.253's password:
Linux fobos 3.1.0-rc9+ #1 SMP Sun Apr 1 22:29:39 EEST 2012 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Apr  4 10:18:31 2012 from 192.168.13.21
fobos:~#
fobos:~# /etc/init.d/udhcpd start
Starting very small Busybox based DHCP server: Starting /usr/sbin/udhcpd...
udhcpd.
fobos:~# exit
logout
Connection to 192.168.13.253 closed.
10:01:08
#cd

Статистика

Время первой команды журнала12:34:24 2012- 4- 2
Время последней команды журнала10:01:08 2012- 4- 4
Количество командных строк в журнале100
Процент команд с ненулевым кодом завершения, %24.00
Процент синтаксически неверно набранных команд, % 0.00
Суммарное время работы с терминалом *, час 1.55
Количество командных строк в единицу времени, команда/мин 1.08
Частота использования команд
vim41|=========================================| 41.00%
/usr/local/etc/rc.d/isc-dhcpd29|=============================| 29.00%
cd7|=======| 7.00%
/etc/rc.d/pf6|======| 6.00%
ssh4|====| 4.00%
cp2|==| 2.00%
ls2|==| 2.00%
make2|==| 2.00%
pfctl2|==| 2.00%
Cfirewall_type="OPEN"1|=| 1.00%
shutdown1|=| 1.00%
/etc/netstart1|=| 1.00%
:q1|=| 1.00%
pflog_enable="YES"1|=| 1.00%
____
*) Интервалы неактивности длительностью 30 минут и более не учитываются

Справка

Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
  1. В журнал автоматически попадают все команды, данные в любом терминале системы.

  2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

  3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
    $ l s-l
    bash: l: command not found
    

  4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
    $ test 5 -lt 4
    Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

  5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
    $ 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
    

  6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
    # id
    uid=0(root) gid=0(root) Gruppen=0(root)
    

  7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
    $ vi ~/.bashrc
    2a3,5
    >    if [ -f /usr/local/etc/bash_completion ]; then
    >         . /usr/local/etc/bash_completion
    >        fi
    

  8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
    $ patch ~/.bashrc
    В данном случае изменения применяются к файлу ~/.bashrc

  9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

    Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

  10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

  11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

  12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

  13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

  14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

    $ whoami
    
    user
    
    $ #^ Интересно, кто я?
    
    в журнале это будет выглядеть так:
    $ whoami
    
    user
    
    Интересно, кто я?

  15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

    $ whoami
    
    user
    
    $ cat > /dev/null #^ Интересно, кто я?
    
    Программа whoami выводит имя пользователя, под которым 
    мы зарегистрировались в системе.
    -
    Она не может ответить на вопрос о нашем назначении 
    в этом мире.
    
    В журнале это будет выглядеть так:
    $ whoami
    user
    
    Интересно, кто я?
    Программа whoami выводит имя пользователя, под которым
    мы зарегистрировались в системе.

    Она не может ответить на вопрос о нашем назначении
    в этом мире.
    Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

  16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

  17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
  18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
  19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
    1
        2
    3   
        4
    
    Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

О программе

LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008

$Id$