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

Содержание

Журнал

Среда (08/05/09)

/dev/ttyp3
17:31:28
$ssh 192.168.16.7
user@192.168.16.7's password:
Linux debiant 2.6.18-5-xen-686 #1 SMP Fri Jun 1 05:05:24 UTC 2007 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 Aug  5 18:27:53 2009 from 192.168.16.5
l3-agent is already running: pid=1529; pidfile=/home/user/.lilalo/l3-agent.pid
17:31:28
$ssh 192.168.16.7
user@192.168.16.7's password:
Linux debiant 2.6.18-5-xen-686 #1 SMP Fri Jun 1 05:05:24 UTC 2007 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 Aug  5 18:27:53 2009 from 192.168.16.5
l3-agent is already running: pid=1529; pidfile=/home/user/.lilalo/l3-agent.pid
/dev/ttyp3
17:33:10
#su

17:33:10
#su

17:33:10
#su

17:33:10
#su

/dev/ttyp4
17:33:19
#su user

/dev/ttyp3
17:33:19
#su user

/dev/ttyp4
17:33:19
#su user

/dev/ttyp3
17:33:19
#su user

/dev/ttyp4
17:33:19
#su user

/dev/ttyp3
17:33:19
#su user

/dev/ttyp4
17:33:19
#su user

/dev/ttyp3
17:33:19
#su user

/dev/ttyp4
17:33:24
$ssh 192.168.16.7
user@192.168.16.7's password:
Linux debiant 2.6.18-5-xen-686 #1 SMP Fri Jun 1 05:05:24 UTC 2007 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 Aug  5 18:31:52 2009 from 192.168.16.4
l3-agent is already running: pid=1529; pidfile=/home/user/.lilalo/l3-agent.pid
/dev/ttyp3
17:33:24
$ssh 192.168.16.7
user@192.168.16.7's password:
Linux debiant 2.6.18-5-xen-686 #1 SMP Fri Jun 1 05:05:24 UTC 2007 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 Aug  5 18:31:52 2009 from 192.168.16.4
l3-agent is already running: pid=1529; pidfile=/home/user/.lilalo/l3-agent.pid
/dev/ttyp4
17:33:24
$ssh 192.168.16.7
user@192.168.16.7's password:
Linux debiant 2.6.18-5-xen-686 #1 SMP Fri Jun 1 05:05:24 UTC 2007 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 Aug  5 18:31:52 2009 from 192.168.16.4
l3-agent is already running: pid=1529; pidfile=/home/user/.lilalo/l3-agent.pid
/dev/ttyp3
17:33:24
$ssh 192.168.16.7
user@192.168.16.7's password:
Linux debiant 2.6.18-5-xen-686 #1 SMP Fri Jun 1 05:05:24 UTC 2007 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 Aug  5 18:31:52 2009 from 192.168.16.4
l3-agent is already running: pid=1529; pidfile=/home/user/.lilalo/l3-agent.pid
/dev/ttyp4
17:33:24
$ssh 192.168.16.7
user@192.168.16.7's password:
Linux debiant 2.6.18-5-xen-686 #1 SMP Fri Jun 1 05:05:24 UTC 2007 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 Aug  5 18:31:52 2009 from 192.168.16.4
l3-agent is already running: pid=1529; pidfile=/home/user/.lilalo/l3-agent.pid
/dev/ttyp3
17:33:24
$ssh 192.168.16.7
user@192.168.16.7's password:
Linux debiant 2.6.18-5-xen-686 #1 SMP Fri Jun 1 05:05:24 UTC 2007 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 Aug  5 18:31:52 2009 from 192.168.16.4
l3-agent is already running: pid=1529; pidfile=/home/user/.lilalo/l3-agent.pid
/dev/ttyp4
17:33:24
$ssh 192.168.16.7
user@192.168.16.7's password:
Linux debiant 2.6.18-5-xen-686 #1 SMP Fri Jun 1 05:05:24 UTC 2007 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 Aug  5 18:31:52 2009 from 192.168.16.4
l3-agent is already running: pid=1529; pidfile=/home/user/.lilalo/l3-agent.pid
/dev/ttyp3
17:33:24
$ssh 192.168.16.7
user@192.168.16.7's password:
Linux debiant 2.6.18-5-xen-686 #1 SMP Fri Jun 1 05:05:24 UTC 2007 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 Aug  5 18:31:52 2009 from 192.168.16.4
l3-agent is already running: pid=1529; pidfile=/home/user/.lilalo/l3-agent.pid
прошло 47 минут
/dev/ttyp1
18:20:39
#echo $DISPLAY
:1.0
18:20:39
#echo $DISPLAY
:1.0
18:20:39
#echo $DISPLAY
:1.0
18:23:34
#xhost -
access control enabled, only authorized clients can connect
18:23:34
#xhost -
access control enabled, only authorized clients can connect
18:23:34
#xhost -
access control enabled, only authorized clients can connect
18:23:43
#echo $DISPLAY
:1.0
18:23:43
#echo $DISPLAY
:1.0
18:23:43
#echo $DISPLAY
:1.0
18:23:56
#vim /etc/inetd.conf
--- /tmp/l3-saved-26768.1658.10656	2009-08-05 20:09:00.000000000 +0300
+++ /etc/inetd.conf	2009-08-05 20:09:31.000000000 +0300
@@ -12,7 +12,7 @@
 #ftp	stream	tcp6	nowait	root	/usr/libexec/lukemftpd	ftpd -l -r
 #ssh	stream	tcp	nowait	root	/usr/sbin/sshd		sshd -i -4
 #ssh	stream	tcp6	nowait	root	/usr/sbin/sshd		sshd -i -6
-#telnet	stream	tcp	nowait	root	/usr/libexec/telnetd	telnetd
+telnet	stream	tcp	nowait	root	/usr/libexec/telnetd	telnetd
 #telnet	stream	tcp6	nowait	root	/usr/libexec/telnetd	telnetd
 #shell	stream	tcp	nowait	root	/usr/libexec/rshd	rshd
 #shell	stream	tcp6	nowait	root	/usr/libexec/rshd	rshd
18:23:56
#vim /etc/inetd.conf
--- /tmp/l3-saved-26768.1658.10656	2009-08-05 20:09:00.000000000 +0300
+++ /etc/inetd.conf	2009-08-05 20:09:31.000000000 +0300
@@ -12,7 +12,7 @@
 #ftp	stream	tcp6	nowait	root	/usr/libexec/lukemftpd	ftpd -l -r
 #ssh	stream	tcp	nowait	root	/usr/sbin/sshd		sshd -i -4
 #ssh	stream	tcp6	nowait	root	/usr/sbin/sshd		sshd -i -6
-#telnet	stream	tcp	nowait	root	/usr/libexec/telnetd	telnetd
+telnet	stream	tcp	nowait	root	/usr/libexec/telnetd	telnetd
 #telnet	stream	tcp6	nowait	root	/usr/libexec/telnetd	telnetd
 #shell	stream	tcp	nowait	root	/usr/libexec/rshd	rshd
 #shell	stream	tcp6	nowait	root	/usr/libexec/rshd	rshd
прошло 45 минут
19:09:31
#killall -1 inetd
No matching processes were found
19:09:31
#killall -1 inetd
No matching processes were found
19:10:06
#telnet 127.0.0.1
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host
19:10:06
#telnet 127.0.0.1
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host
19:10:29
#top
last pid: 27723;  load averages:  0.01,  0.07,  0.31    up 4+23:52:05  20:11:07
54 processes 2.3 running 0.0 sleepin 2.6           0.0             95.1
CPU states:     % user,     % nice,     % system,     % interrupt,     % idle
Mem: 76M Active, 189M Inact, 76M Wired, 40K Cache, 60M Buf, 149M Free
26674 nobody           96      21088K 20196K select   1:30  0.29% Xvnc
Swap: 2015M Total, 201596Free  34936K 21268K select   0:39  0.05% Terminal
26727                   8      10064K  8712K nanslp  17:06        perl5.8.8
 1835 root              8       9992K  8680K nanslp  16:28        perl5.8.8
19418
  PID USERNAME    THR PRI NICE   SIZE    RES STATE    TIME   WCPU COMMAND
...
  907 root          1   8    0  1396K  1100K nanslp   0:02  0.00% cron
26703 root          1  96    0 29660K 13888K select   0:02  0.00% xfce4-panel
  736 root          1  96    0  1404K  1072K select   0:01  0.00% syslogd
26699 root          1  96    0 28348K  9976K select   0:01  0.00% xfce-mcs-mana
27471 user          1  96    0  3480K  2928K select   0:01  0.00% ssh
26701 root          1  96    0 27852K 11992K select   0:01  0.00% xfwm4
27410 user          1  96    0  1348K   936K select   0:00  0.00% script
27351 root          1  96    0  1348K   936K select   0:00  0.00% script
27292 root          1  96    0  1348K   936K select   0:00  0.00% script
  795 root          1  96    0  1296K   824K select   0:00  0.00% usbd
19:10:29
#top
last pid: 27723;  load averages:  0.01,  0.07,  0.31    up 4+23:52:05  20:11:07
54 processes 2.3 running 0.0 sleepin 2.6           0.0             95.1
CPU states:     % user,     % nice,     % system,     % interrupt,     % idle
Mem: 76M Active, 189M Inact, 76M Wired, 40K Cache, 60M Buf, 149M Free
26674 nobody           96      21088K 20196K select   1:30  0.29% Xvnc
Swap: 2015M Total, 201596Free  34936K 21268K select   0:39  0.05% Terminal
26727                   8      10064K  8712K nanslp  17:06        perl5.8.8
 1835 root              8       9992K  8680K nanslp  16:28        perl5.8.8
19418
  PID USERNAME    THR PRI NICE   SIZE    RES STATE    TIME   WCPU COMMAND
...
  907 root          1   8    0  1396K  1100K nanslp   0:02  0.00% cron
26703 root          1  96    0 29660K 13888K select   0:02  0.00% xfce4-panel
  736 root          1  96    0  1404K  1072K select   0:01  0.00% syslogd
26699 root          1  96    0 28348K  9976K select   0:01  0.00% xfce-mcs-mana
27471 user          1  96    0  3480K  2928K select   0:01  0.00% ssh
26701 root          1  96    0 27852K 11992K select   0:01  0.00% xfwm4
27410 user          1  96    0  1348K   936K select   0:00  0.00% script
27351 root          1  96    0  1348K   936K select   0:00  0.00% script
27292 root          1  96    0  1348K   936K select   0:00  0.00% script
  795 root          1  96    0  1296K   824K select   0:00  0.00% usbd
19:11:10
#vim /etc/rconf
19:11:10
#vim /etc/rconf
19:12:43
#:wq
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"/etc/ipfw.conf" [New File] 1 line, 30 characters written
19:12:43
#:wq
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"/etc/ipfw.conf" [New File] 1 line, 30 characters written
19:12:43
#:wq
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"/etc/ipfw.conf" [New File] 1 line, 30 characters written
19:12:43
#:wq
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"/etc/ipfw.conf" [New File] 1 line, 30 characters written
19:14:20
#vim /etc/rc.conf
19:14:20
#vim /etc/rc.conf
19:14:20
#vim /etc/rc.conf
19:14:20
#vim /etc/rc.conf
19:14:40
#:;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

19:14:40
#:;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

19:14:40
#:;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

19:14:40
#:;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

19:16:14
#vim /etc/rc.conf1
19:16:14
#vim /etc/rc.conf1
19:16:14
#vim /etc/rc.conf1
19:16:14
#vim /etc/rc.conf1
19:16:54
#:q

19:16:54
#:q

19:16:54
#:q

19:19:16
#ls
.ICEauthority           .gnome2_private         .recently-used.xbel
.Trash                  .gstreamer-0.10         .ssh
.Xauthority             .gtkrc-1.2-gnome2       .themes
.bash_history           .history                .thumbnails
.bash_profile           .icons                  .vnc
.bashrc                 .k5login                .xsession
.cache                  .l3rc                   .xsession-errors
.config                 .lesshst                .xsmIk2fG7
.cshrc                  .lilalo                 Desktop
.dbus                   .local                  install
.gconf                  .login                  mbox
.gconfd                 .metacity               nautilus-debug-log.txt
.gnome                  .nautilus               prepare-freebsd.sh
.gnome2                 .profile                rc.conf1
19:19:16
#ls
.ICEauthority           .gnome2_private         .recently-used.xbel
.Trash                  .gstreamer-0.10         .ssh
.Xauthority             .gtkrc-1.2-gnome2       .themes
.bash_history           .history                .thumbnails
.bash_profile           .icons                  .vnc
.bashrc                 .k5login                .xsession
.cache                  .l3rc                   .xsession-errors
.config                 .lesshst                .xsmIk2fG7
.cshrc                  .lilalo                 Desktop
.dbus                   .local                  install
.gconf                  .login                  mbox
.gconfd                 .metacity               nautilus-debug-log.txt
.gnome                  .nautilus               prepare-freebsd.sh
.gnome2                 .profile                rc.conf1
19:19:16
#ls
.ICEauthority           .gnome2_private         .recently-used.xbel
.Trash                  .gstreamer-0.10         .ssh
.Xauthority             .gtkrc-1.2-gnome2       .themes
.bash_history           .history                .thumbnails
.bash_profile           .icons                  .vnc
.bashrc                 .k5login                .xsession
.cache                  .l3rc                   .xsession-errors
.config                 .lesshst                .xsmIk2fG7
.cshrc                  .lilalo                 Desktop
.dbus                   .local                  install
.gconf                  .login                  mbox
.gconfd                 .metacity               nautilus-debug-log.txt
.gnome                  .nautilus               prepare-freebsd.sh
.gnome2                 .profile                rc.conf1
19:19:20
#ls /etc/
X11                     login.conf              protocols
aliases                 login.conf.db           pwd.db
amd.map                 mac.conf                rc
apmd.conf               mail                    rc.bsdextended
auth.conf               mail.rc                 rc.conf
bluetooth               make.conf               rc.conf1
crontab                 manpath.config          rc.conf_old
csh.cshrc               manpath.config.bak      rc.d
csh.login               manpath.config.bak.xorg rc.firewall
csh.logout              master.passwd           rc.firewall6
...
hosts.allow             pccard_ether            snmpd.config
hosts.equiv             periodic                spwd.db
hosts.lpd               periodic.conf           ssh
inetd.conf              pf.conf                 ssl
ipfw.conf               pf.os                   sysctl.conf
isdn                    phones                  syslog.conf
lilalo                  portsnap.conf           termcap
localtime               ppp                     ttys
locate.rc               printcap                usbd.conf
login.access            profile                 wall_cmos_clock
19:19:20
#ls /etc/
X11                     login.conf              protocols
aliases                 login.conf.db           pwd.db
amd.map                 mac.conf                rc
apmd.conf               mail                    rc.bsdextended
auth.conf               mail.rc                 rc.conf
bluetooth               make.conf               rc.conf1
crontab                 manpath.config          rc.conf_old
csh.cshrc               manpath.config.bak      rc.d
csh.login               manpath.config.bak.xorg rc.firewall
csh.logout              master.passwd           rc.firewall6
...
hosts.allow             pccard_ether            snmpd.config
hosts.equiv             periodic                spwd.db
hosts.lpd               periodic.conf           ssh
inetd.conf              pf.conf                 ssl
ipfw.conf               pf.os                   sysctl.conf
isdn                    phones                  syslog.conf
lilalo                  portsnap.conf           termcap
localtime               ppp                     ttys
locate.rc               printcap                usbd.conf
login.access            profile                 wall_cmos_clock
19:19:20
#ls /etc/
X11                     login.conf              protocols
aliases                 login.conf.db           pwd.db
amd.map                 mac.conf                rc
apmd.conf               mail                    rc.bsdextended
auth.conf               mail.rc                 rc.conf
bluetooth               make.conf               rc.conf1
crontab                 manpath.config          rc.conf_old
csh.cshrc               manpath.config.bak      rc.d
csh.login               manpath.config.bak.xorg rc.firewall
csh.logout              master.passwd           rc.firewall6
...
hosts.allow             pccard_ether            snmpd.config
hosts.equiv             periodic                spwd.db
hosts.lpd               periodic.conf           ssh
inetd.conf              pf.conf                 ssl
ipfw.conf               pf.os                   sysctl.conf
isdn                    phones                  syslog.conf
lilalo                  portsnap.conf           termcap
localtime               ppp                     ttys
locate.rc               printcap                usbd.conf
login.access            profile                 wall_cmos_clock
19:19:20
#ls /etc/
X11                     login.conf              protocols
aliases                 login.conf.db           pwd.db
amd.map                 mac.conf                rc
apmd.conf               mail                    rc.bsdextended
auth.conf               mail.rc                 rc.conf
bluetooth               make.conf               rc.conf1
crontab                 manpath.config          rc.conf_old
csh.cshrc               manpath.config.bak      rc.d
csh.login               manpath.config.bak.xorg rc.firewall
csh.logout              master.passwd           rc.firewall6
...
hosts.allow             pccard_ether            snmpd.config
hosts.equiv             periodic                spwd.db
hosts.lpd               periodic.conf           ssh
inetd.conf              pf.conf                 ssl
ipfw.conf               pf.os                   sysctl.conf
isdn                    phones                  syslog.conf
lilalo                  portsnap.conf           termcap
localtime               ppp                     ttys
locate.rc               printcap                usbd.conf
login.access            profile                 wall_cmos_clock
19:19:28
#ls /etc | less
19:19:28
#ls /etc | less
19:19:28
#ls /etc | less
19:19:28
#ls /etc | less
19:19:48
#cat /etc/defaults/rc.conf | grep firewall
### Basic network and firewall/security options: ###
firewall_enable="NO"            # Set to YES to enable firewall functionality
firewall_script="/etc/rc.firewall" # Which script to run to set up the firewall
firewall_type="UNKNOWN"         # Firewall type (see /etc/rc.firewall)
firewall_quiet="NO"             # Set to YES to suppress rule display
firewall_logging="NO"           # Set to YES to enable events logging
firewall_flags=""               # Flags passed to ipfw when type is a file
natd_enable="NO"                # Enable natd (if firewall_enable == YES).
ipv6_firewall_enable="NO"       # Set to YES to enable IPv6 firewall
ipv6_firewall_script="/etc/rc.firewall6" # Which script to run to set up the IPv6 firewall
ipv6_firewall_type="UNKNOWN"    # IPv6 Firewall type (see /etc/rc.firewall6)
ipv6_firewall_quiet="NO"        # Set to YES to suppress rule display
ipv6_firewall_logging="NO"      # Set to YES to enable events logging
ipv6_firewall_flags=""          # Flags passed to ip6fw when type is a file
19:19:48
#cat /etc/defaults/rc.conf | grep firewall
### Basic network and firewall/security options: ###
firewall_enable="NO"            # Set to YES to enable firewall functionality
firewall_script="/etc/rc.firewall" # Which script to run to set up the firewall
firewall_type="UNKNOWN"         # Firewall type (see /etc/rc.firewall)
firewall_quiet="NO"             # Set to YES to suppress rule display
firewall_logging="NO"           # Set to YES to enable events logging
firewall_flags=""               # Flags passed to ipfw when type is a file
natd_enable="NO"                # Enable natd (if firewall_enable == YES).
ipv6_firewall_enable="NO"       # Set to YES to enable IPv6 firewall
ipv6_firewall_script="/etc/rc.firewall6" # Which script to run to set up the IPv6 firewall
ipv6_firewall_type="UNKNOWN"    # IPv6 Firewall type (see /etc/rc.firewall6)
ipv6_firewall_quiet="NO"        # Set to YES to suppress rule display
ipv6_firewall_logging="NO"      # Set to YES to enable events logging
ipv6_firewall_flags=""          # Flags passed to ip6fw when type is a file
19:19:48
#cat /etc/defaults/rc.conf | grep firewall
### Basic network and firewall/security options: ###
firewall_enable="NO"            # Set to YES to enable firewall functionality
firewall_script="/etc/rc.firewall" # Which script to run to set up the firewall
firewall_type="UNKNOWN"         # Firewall type (see /etc/rc.firewall)
firewall_quiet="NO"             # Set to YES to suppress rule display
firewall_logging="NO"           # Set to YES to enable events logging
firewall_flags=""               # Flags passed to ipfw when type is a file
natd_enable="NO"                # Enable natd (if firewall_enable == YES).
ipv6_firewall_enable="NO"       # Set to YES to enable IPv6 firewall
ipv6_firewall_script="/etc/rc.firewall6" # Which script to run to set up the IPv6 firewall
ipv6_firewall_type="UNKNOWN"    # IPv6 Firewall type (see /etc/rc.firewall6)
ipv6_firewall_quiet="NO"        # Set to YES to suppress rule display
ipv6_firewall_logging="NO"      # Set to YES to enable events logging
ipv6_firewall_flags=""          # Flags passed to ip6fw when type is a file
19:19:48
#cat /etc/defaults/rc.conf | grep firewall
### Basic network and firewall/security options: ###
firewall_enable="NO"            # Set to YES to enable firewall functionality
firewall_script="/etc/rc.firewall" # Which script to run to set up the firewall
firewall_type="UNKNOWN"         # Firewall type (see /etc/rc.firewall)
firewall_quiet="NO"             # Set to YES to suppress rule display
firewall_logging="NO"           # Set to YES to enable events logging
firewall_flags=""               # Flags passed to ipfw when type is a file
natd_enable="NO"                # Enable natd (if firewall_enable == YES).
ipv6_firewall_enable="NO"       # Set to YES to enable IPv6 firewall
ipv6_firewall_script="/etc/rc.firewall6" # Which script to run to set up the IPv6 firewall
ipv6_firewall_type="UNKNOWN"    # IPv6 Firewall type (see /etc/rc.firewall6)
ipv6_firewall_quiet="NO"        # Set to YES to suppress rule display
ipv6_firewall_logging="NO"      # Set to YES to enable events logging
ipv6_firewall_flags=""          # Flags passed to ip6fw when type is a file
19:20:27
#vim /etc/rc.conf1
19:20:27
#vim /etc/rc.conf1
19:20:27
#vim /etc/rc.conf1
19:20:27
#vim /etc/rc.conf1
19:20:40
##############################################################
firewall_enable="YES"
firewall_type="OPEN"
firewall_script="/etc/rc.firewall
natd_enable="YES"
19:20:40
##############################################################
firewall_enable="YES"
firewall_type="OPEN"
firewall_script="/etc/rc.firewall
natd_enable="YES"
19:20:40
##############################################################
firewall_enable="YES"
firewall_type="OPEN"
firewall_script="/etc/rc.firewall
natd_enable="YES"
19:20:40
##############################################################
firewall_enable="YES"
firewall_type="OPEN"
firewall_script="/etc/rc.firewall
natd_enable="YES"
19:20:50
#:q
rc               rc.conf_old      rc.initdiskless  rc.subr
rc.bsdextended   rc.d/            rc.resume        rc.suspend
rc.conf          rc.firewall      rc.sendmail
rc.conf1         rc.firewall6     rc.shutdown
19:20:50
#:q
rc               rc.conf_old      rc.initdiskless  rc.subr
rc.bsdextended   rc.d/            rc.resume        rc.suspend
rc.conf          rc.firewall      rc.sendmail
rc.conf1         rc.firewall6     rc.shutdown
19:20:50
#:q
rc               rc.conf_old      rc.initdiskless  rc.subr
rc.bsdextended   rc.d/            rc.resume        rc.suspend
rc.conf          rc.firewall      rc.sendmail
rc.conf1         rc.firewall6     rc.shutdown
19:20:50
#cat /etc/defaults/rc.conf | grep firewall >> /etc/rc.conf

19:20:50
#cat /etc/defaults/rc.conf | grep firewall >> /etc/rc.conf

19:20:50
#:q
rc               rc.conf_old      rc.initdiskless  rc.subr
rc.bsdextended   rc.d/            rc.resume        rc.suspend
rc.conf          rc.firewall      rc.sendmail
rc.conf1         rc.firewall6     rc.shutdown
19:20:50
#cat /etc/defaults/rc.conf | grep firewall >> /etc/rc.conf

19:21:16
#vim /etc/rc.conf
19:21:16
#vim /etc/rc.conf
19:21:16
#vim /etc/rc.conf
19:23:36
#vim /etc/rc.conf
--- /tmp/l3-saved-26768.25181.2533	2009-08-05 20:23:39.000000000 +0300
+++ /etc/rc.conf	2009-08-05 20:27:43.000000000 +0300
@@ -21,21 +21,17 @@
 route_54_96="-net 192.168.54.96/27 192.168.54.30"
 route_54_128="-net 192.168.54.128/27 192.168.54.30"
 xinetd_enable="NO"
-firewall_enable="YES"
-firewall_type="OPEN"
-firewall_script="/etc/rc.firewall
-natd_enable="YES"
+#
+#firewall_enable="YES"
+#firewall_type="OPEN"
+#firewall_script="/etc/rc.firewall
+#natd_enable="YES"
+#
 ### Basic network and firewall/security options: ###
-firewall_enable="NO"		# Set to YES to enable firewall functionality
+firewall_enable="YES"		# Set to YES to enable firewall functionality
 firewall_script="/etc/rc.firewall" # Which script to run to set up the firewall
-firewall_type="UNKNOWN"		# Firewall type (see /etc/rc.firewall)
+firewall_type="OPEN"		# Firewall type (see /etc/rc.firewall)
 firewall_quiet="NO"		# Set to YES to suppress rule display
 firewall_logging="NO"		# Set to YES to enable events logging
 firewall_flags=""		# Flags passed to ipfw when type is a file
-natd_enable="NO"		# Enable natd (if firewall_enable == YES).
-ipv6_firewall_enable="NO"	# Set to YES to enable IPv6 firewall
-ipv6_firewall_script="/etc/rc.firewall6" # Which script to run to set up the IPv6 firewall
-ipv6_firewall_type="UNKNOWN"	# IPv6 Firewall type (see /etc/rc.firewall6)
-ipv6_firewall_quiet="NO"	# Set to YES to suppress rule display
-ipv6_firewall_logging="NO"	# Set to YES to enable events logging
-ipv6_firewall_flags=""		# Flags passed to ip6fw when type is a file
+natd_enable="YES"		# Enable natd (if firewall_enable == YES).
19:23:36
#vim /etc/rc.conf
--- /tmp/l3-saved-26768.25181.2533	2009-08-05 20:23:39.000000000 +0300
+++ /etc/rc.conf	2009-08-05 20:27:43.000000000 +0300
@@ -21,21 +21,17 @@
 route_54_96="-net 192.168.54.96/27 192.168.54.30"
 route_54_128="-net 192.168.54.128/27 192.168.54.30"
 xinetd_enable="NO"
-firewall_enable="YES"
-firewall_type="OPEN"
-firewall_script="/etc/rc.firewall
-natd_enable="YES"
+#
+#firewall_enable="YES"
+#firewall_type="OPEN"
+#firewall_script="/etc/rc.firewall
+#natd_enable="YES"
+#
 ### Basic network and firewall/security options: ###
-firewall_enable="NO"		# Set to YES to enable firewall functionality
+firewall_enable="YES"		# Set to YES to enable firewall functionality
 firewall_script="/etc/rc.firewall" # Which script to run to set up the firewall
-firewall_type="UNKNOWN"		# Firewall type (see /etc/rc.firewall)
+firewall_type="OPEN"		# Firewall type (see /etc/rc.firewall)
 firewall_quiet="NO"		# Set to YES to suppress rule display
 firewall_logging="NO"		# Set to YES to enable events logging
 firewall_flags=""		# Flags passed to ipfw when type is a file
-natd_enable="NO"		# Enable natd (if firewall_enable == YES).
-ipv6_firewall_enable="NO"	# Set to YES to enable IPv6 firewall
-ipv6_firewall_script="/etc/rc.firewall6" # Which script to run to set up the IPv6 firewall
-ipv6_firewall_type="UNKNOWN"	# IPv6 Firewall type (see /etc/rc.firewall6)
-ipv6_firewall_quiet="NO"	# Set to YES to suppress rule display
-ipv6_firewall_logging="NO"	# Set to YES to enable events logging
-ipv6_firewall_flags=""		# Flags passed to ip6fw when type is a file
+natd_enable="YES"		# Enable natd (if firewall_enable == YES).
19:23:36
#vim /etc/rc.conf
--- /tmp/l3-saved-26768.25181.2533	2009-08-05 20:23:39.000000000 +0300
+++ /etc/rc.conf	2009-08-05 20:27:43.000000000 +0300
@@ -21,21 +21,17 @@
 route_54_96="-net 192.168.54.96/27 192.168.54.30"
 route_54_128="-net 192.168.54.128/27 192.168.54.30"
 xinetd_enable="NO"
-firewall_enable="YES"
-firewall_type="OPEN"
-firewall_script="/etc/rc.firewall
-natd_enable="YES"
+#
+#firewall_enable="YES"
+#firewall_type="OPEN"
+#firewall_script="/etc/rc.firewall
+#natd_enable="YES"
+#
 ### Basic network and firewall/security options: ###
-firewall_enable="NO"		# Set to YES to enable firewall functionality
+firewall_enable="YES"		# Set to YES to enable firewall functionality
 firewall_script="/etc/rc.firewall" # Which script to run to set up the firewall
-firewall_type="UNKNOWN"		# Firewall type (see /etc/rc.firewall)
+firewall_type="OPEN"		# Firewall type (see /etc/rc.firewall)
 firewall_quiet="NO"		# Set to YES to suppress rule display
 firewall_logging="NO"		# Set to YES to enable events logging
 firewall_flags=""		# Flags passed to ipfw when type is a file
-natd_enable="NO"		# Enable natd (if firewall_enable == YES).
-ipv6_firewall_enable="NO"	# Set to YES to enable IPv6 firewall
-ipv6_firewall_script="/etc/rc.firewall6" # Which script to run to set up the IPv6 firewall
-ipv6_firewall_type="UNKNOWN"	# IPv6 Firewall type (see /etc/rc.firewall6)
-ipv6_firewall_quiet="NO"	# Set to YES to suppress rule display
-ipv6_firewall_logging="NO"	# Set to YES to enable events logging
-ipv6_firewall_flags=""		# Flags passed to ip6fw when type is a file
+natd_enable="YES"		# Enable natd (if firewall_enable == YES).
19:27:43
#vim /etc/rc.conf
19:27:43
#vim /etc/rc.conf
19:27:43
#vim /etc/rc.conf
19:30:54
#cat /etc/defaults/rc.conf | grep natdetc/rc.conf

19:30:54
#cat /etc/defaults/rc.conf | grep natdetc/rc.conf

Статистика

Время первой команды журнала17:31:28 2009- 8- 5
Время последней команды журнала19:30:54 2009- 8- 5
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, % 7.92
Процент синтаксически неверно набранных команд, % 0.00
Суммарное время работы с терминалом *, час 0.44
Количество командных строк в единицу времени, команда/мин 3.80
Частота использования команд
vim25|====================| 20.83%
su12|==========| 10.00%
ls11|=========| 9.17%
ssh10|========| 8.33%
cat9|=======| 7.50%
grep9|=======| 7.50%
:q7|=====| 5.83%
echo6|=====| 5.00%
#############################################################4|===| 3.33%
:wq4|===| 3.33%
less4|===| 3.33%
:4|===| 3.33%
/etc/rc.conf3|==| 2.50%
xhost3|==| 2.50%
>3|==| 2.50%
telnet2|=| 1.67%
top2|=| 1.67%
killall2|=| 1.67%
____
*) Интервалы неактивности длительностью 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$