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

Содержание

Журнал

Четверг (04/06/06)

/dev/ttyp5
16:09:16
#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
16:12:26
#squid -k reconfigure
2006/04/06 16:13:08| parse_delay_pool_count: multiple delay_pools lines, aborting all previous delay_pools config
16:13:08
#/usr/local/etc/rc.d/squid.sh restart
usage: squid.sh {start|stop}
16:13:26
#/usr/local/etc/rc.d/squid.sh stop
 squid2006/04/06 16:13:36| parse_delay_pool_count: multiple delay_pools lines, aborting all previous delay_pools config
16:13:38
#/usr/local/etc/rc.d/squid.sh start
 squid2006/04/06 16:13:42| parse_delay_pool_count: multiple delay_pools lines, aborting all previous delay_pools config
16:13:43
#e /usr/local/etc/squid/squid.conf
# delay_pools 0
#delay_pools 1
#  TAG: delay_class
#       This defines the class of each delay pool.  There must be exactly one
#       delay_class line for each delay pool.  For example, to define two
#       delay pools, one of class 2 and one of class 3, the settings above
#       and here would be:
#
#Example:
 delay_pools 1      # 1 delay pools
 delay_class 1 2    # pool 1 is a class 2 pool
# delay_class 2 3    # pool 2 is a class 3 pool
#delay_class 1 2
#
#       The delay pool classes are:
#
#               class 1         Everything is limited by a single aggregate
#                               bucket.
"/usr/local/etc/squid/squid.conf" 2736L, 87837C written
16:17:02
#/usr/local/etc/rc.d/squid.sh stop

16:17:08
#/usr/local/etc/rc.d/squid.sh start

16:17:12
#whereis rejik
rejik:
/dev/ttyp9
16:18:26
#ssh -l dimag 80.91.162.154
group   world   {
        networks        0/0;
        badports        [0:79],110,138,139,513,[6000:6010];
        http {
                deny    dstdomain * ;
        }
        icp {
                deny    dstdomain * ;
        }
dimag@ns:~-> exit
Connection to 80.91.162.154 closed.
/dev/ttyp9
16:22:44
#ssh -l dimag 80.91.162.154
Password:
Connection closed by 80.91.162.154
/dev/ttyp5
16:23:09
#cd /usr/ports/

16:23:30
#make search key="rejik"

16:23:46
#whereis apache
apache:
16:24:19
#cd ..

16:24:34
#cd ..

16:24:37
#whereis apache
apache:
16:24:46
#cd /usr/ports/www/apache
bash: cd: /usr/ports/www/apache: No such file or directory
16:24:56
#whereis opera
opera: /usr/ports/www/opera
/dev/ttyp9
16:25:16
#ping -c 4 80.91.162.154
PING 80.91.162.154 (80.91.162.154): 56 data bytes
64 bytes from 80.91.162.154: icmp_seq=0 ttl=51 time=1780.302 ms
64 bytes from 80.91.162.154: icmp_seq=1 ttl=51 time=781.232 ms
64 bytes from 80.91.162.154: icmp_seq=2 ttl=51 time=1887.172 ms
64 bytes from 80.91.162.154: icmp_seq=3 ttl=51 time=1026.852 ms
--- 80.91.162.154 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/stddev = 781.232/1368.889/1887.172/474.396 ms
16:25:34
#ping -c 4 80.91.162.154
PING 80.91.162.154 (80.91.162.154): 56 data bytes
64 bytes from 80.91.162.154: icmp_seq=0 ttl=51 time=1040.728 ms
^N64 bytes from 80.91.162.154: icmp_seq=1 ttl=51 time=2003.073 ms
64 bytes from 80.91.162.154: icmp_seq=2 ttl=51 time=1463.562 ms
64 bytes from 80.91.162.154: icmp_seq=3 ttl=51 time=1674.189 ms
--- 80.91.162.154 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/stddev = 1040.728/1545.388/2003.073/349.085 ms
16:25:41
#whereis apache
apache:
/dev/ttyp5
16:26:46
#cd /usr/ports/www/opera

16:27:02
#make install
===>   opera-8.50.20050916 depends on shared library: aspell.16 - found
===>   opera-8.50.20050916 depends on shared library: c_r.4 - not found
===>    Verifying install for c_r.4 in /usr/ports/misc/compat4x
===>  Vulnerability check disabled, database not found
=> compat4x.aa doesn't seem to exist in /usr/ports/distfiles/i386/5.3.
=> Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/kris/i386/.
compat4x.aa                                   100% of 1392 kB   19 kBps 00m00s
=> compat4x.ab doesn't seem to exist in /usr/ports/distfiles/i386/5.3.
=> Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/kris/i386/.
compat4x.ab                                   100% of  643 kB   20 kBps 00m00s
...
      This port has installed the following files which may act as network
      servers and may therefore pose a remote security risk to the system.
/usr/X11R6/share/opera/bin/opera
      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.opera.com/
/dev/ttyp9
16:29:06
#cd /usr/ports/

16:29:22
#make search key='apache'
R-deps: db42-4.2.52_4 expat-1.95.8_3 libiconv-1.9.2_1 perl-5.8.7
WWW:    http://apr.apache.org/
Port:   avalon-framework-4.2.0
Path:   /usr/ports/devel/avalon-framework
Info:   Apache Avalon core framework for component programming
Maint:  hq@FreeBSD.org
B-deps:
R-deps: expat-1.95.8_3 fontconfig-2.2.3,1 freetype2-2.1.10_1 javavmwrapper-2.0_5 jdk-1.4.2p7_1 pkgconfig-0.17.2 urwfonts-1.0 xorg-libraries-6.8.2
WWW:    http://avalon.apache.org/framework/
Port:   chora-2.0
...
WWW:    http://pear.php.net/package/Event_Dispatcher/
Port:   pear-FSM-1.2.2
Path:   /usr/ports/devel/pear-FSM
Info:   PEAR Finite State Machine
Maint:  antonio@php.net
B-deps: apache-1.3.33_2 expat-1.95.8_3 pear-Archive_Tar-1.3.1 pear-Console_Getopt-1.2 pear-PEAR-1.3.5_1 pear-XML_RPC-1.4.0 perl-5.8.7 php4-4.4.0 php4-pcre-4.4.0 php4-pear-4.4.0 php4-xml-4.4.0
R-deps: apache-1.3.33_2 expat-1.95.8_3 pear-Archive_Tar-1.3.1 pear-Console_Getopt-1.2 pear-PEAR-1.3.5_1 pear-XML_RPC-1.4.0 perl-5.8.7 php4-4.4.0 php4-pcre-4.4.0 php4-pear-4.4.0 php4-xml-4.4.0
WWW:    http://pear.php.net/package/FSM/
Port:   pear-HTML_BBCodeParser-1.1
Path:   /usr/ports/devel/pear-HTML_BBCodeParser
16:29:51
#pkg_info apache
pkg_info: can't find package 'apache' installed or in a file!
16:30:02
#make search nameache'
Maint:  nistor@snickers.org
B-deps: apache-2.0.54_4 expat-1.95.8_3 libiconv-1.9.2_1 mod_perl2-2.0.1,2 perl-5.8.7
R-deps: apache-2.0.54_4 expat-1.95.8_3 libiconv-1.9.2_1 mod_perl2-2.0.1,2 perl-5.8.7
WWW:    http://search.cpan.org/dist/Apache-ParseFormData/
Port:   p5-Apache-Peek-1.02
Path:   /usr/ports/www/p5-Apache-Peek
Info:   A data debugging tool for the XS programmer (under mod_perl)
Maint:  skv@FreeBSD.org
B-deps: apache-1.3.33_2 expat-1.95.8_3 mod_perl-1.29_1 p5-Apache-Test-1.26 p5-Authen-SASL-2.09 p5-Compress-Zlib-1.35 p5-Digest-1.10 p5-Digest-MD5-2.33 p5-HTML-Parser-3.45 p5-HTML-Tagset-3.04 p5-MIME-Base64-3.05 p5-Net-1.19,1 p5-PathTools-3.09 p5-Scalar-List-Utils-1.14,1 p5-URI-1.35 p5-libwww-5.803 perl-5.8.7
R-deps: apache-1.3.33_2 expat-1.95.8_3 mod_perl-1.29_1 p5-Apache-Test-1.26 p5-Authen-SASL-2.09 p5-Compress-Zlib-1.35 p5-Digest-1.10 p5-Digest-MD5-2.33 p5-HTML-Parser-3.45 p5-HTML-Tagset-3.04 p5-MIME-Base64-3.05 p5-Net-1.19,1 p5-PathTools-3.09 p5-Scalar-List-Utils-1.14,1 p5-URI-1.35 p5-libwww-5.803 perl-5.8.7
...
B-deps: apache-2.0.54_4 expat-1.95.8_3 gettext-0.14.5 gmake-3.80_2 libiconv-1.9.2_1 libtool-1.5.18 mod_perl2-2.0.1,2 p5-Cache-Cache-1.04_1 p5-Class-Container-0.11 p5-Class-Data-Inheritable-0.02_1 p5-Devel-StackTrace-1.11 p5-Digest-1.10 p5-Digest-MD5-2.33 p5-Digest-SHA1-2.10 p5-Error-0.15 p5-Exception-Class-1.20 p5-ExtUtils-XSBuilder-0.27 p5-HTML-Mason-1.28_2 p5-HTML-Parser-3.45 p5-HTML-Tagset-3.04
R-deps: apache-2.0.54_4 expat-1.95.8_3 gettext-0.14.5 gmake-3.80_2 libiconv-1.9.2_1 libtool-1.5.18 mod_perl2-2.0.1,2 p5-Cache-Cache-1.04_1 p5-Class-Container-0.11 p5-Class-Data-Inheritable-0.02_1 p5-Devel-StackTrace-1.11 p5-Digest-1.10 p5-Digest-MD5-2.33 p5-Digest-SHA1-2.10 p5-Error-0.15 p5-Exception-Class-1.20 p5-ExtUtils-XSBuilder-0.27 p5-HTML-Mason-1.28_2 p5-HTML-Parser-3.45 p5-HTML-Tagset-3.04
WWW:    http://search.cpan.org/dist/MasonX-Apache2Handler/
Port:   p5-MasonX-Request-WithApacheSession-0.30
Path:   /usr/ports/www/p5-MasonX-Request-WithApacheSession
Info:   An interface to Apache::Session for HTML::Mason
Maint:  nick@foobar.org
B-deps: p5-Apache-Session-1.60 p5-Apache-Session-Wrapper-0.21 p5-Archive-Tar-1.24 p5-Cache-Cache-1.04_1 p5-Class-Container-0.11 p5-Class-Data-Inheritable-0.02_1 p5-Compress-Zlib-1.35 p5-Devel-StackTrace-1.11 p5-Digest-1.10 p5-Digest-MD5-2.33 p5-Digest-SHA1-2.10 p5-Error-0.15 p5-Exception-Class-1.20 p5-ExtUtils-CBuilder-0.12 p5-ExtUtils-ParseXS-2.07 p5-HTML-Mason-1.28_2 p5-HTML-Parser-3.45 p5-HTML-
R-deps: p5-Apache-Session-1.60 p5-Apache-Session-Wrapper-0.21 p5-Archive-Tar-1.24 p5-Cache-Cache-1.04_1 p5-Class-Container-0.11 p5-Class-Data-Inheritable-0.02_1 p5-Compress-Zlib-1.35 p5-Devel-StackTrace-1.11 p5-Digest-1.10 p5-Digest-MD5-2.33 p5-Digest-SHA1-2.10 p5-Error-0.15 p5-Exception-Class-1.20 p5-ExtUtils-CBuilder-0.12 p5-ExtUtils-ParseXS-2.07 p5-HTML-Mason-1.28_2 p5-HTML-Parser-3.45 p5-HTML-
WWW:
16:30:19
#cd www

16:31:35
#mc
/dev/ttyp5
16:32:29
#opera
^C
/dev/ttyv1
16:38:50
#startx
X Window System Version 6.8.2
Release Date: 9 February 2005
X Protocol Version 11, Revision 0, Release 6.8.2
Build Operating System: FreeBSD 6.0 i386 [ELF]
Current Operating System: FreeBSD fbsd3.unix.nt 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Mon Apr  3 04:11:45 EEST 2006     root@fbsd3.unix.nt:/usr/src/sys/i386/compile/MY i386
Build Date: 12 October 2005
        Before reporting problems, check http://wiki.X.Org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
...
ÍÅÎÅÄÖÅÒ ÏËÏÎ.
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.
X connection to :0.0 broken (explicit kill or server shutdown).
The application 'nautilus' lost its connection to the display :0.0;
most likely the X server was shut down or you killed/destroyed
the application.
FreeFontPath: FPE "/usr/X11R6/lib/X11/fonts/misc/" refcount is 2, should be 1; fixing.
xinit:  connection to X server lost.
/dev/ttyp5
16:39:34
#whereis apache-21
exit
apache-21:
16:39:48
#whereis apache-2.1
apache-2.1:
16:39:54
#cd /usr/ports/www/apache-
apache-contrib/ apache-forrest/ apache-jserv/
16:39:54
#cd /usr/ports/www/apache
apache-contrib/       apache13+ipv6/        apache13-ssl/
apache-forrest/       apache13-modperl/     apache2/
apache-jserv/         apache13-modssl/      apache20/
apache13/             apache13-modssl+ipv6/ apache21/
16:39:54
#cd /usr/ports/www/apache21

16:40:26
#make install
checking for ENGINE_load_builtin_engines... yes
checking for SSL_set_cert_store... no
  adding "-I/usr/include" to INCLUDES
  adding "-L/usr/lib" to LDFLAGS
  forcing SSL_LIBS to "-lssl -lcrypto"
gnome-config: not found
  forcing MOD_SSL_LDADD to "$(SSL_LIBS)"
checking whether Distcache is required... no (default)
  adding "-export-symbols-regex" to MOD_SSL_LDADD
  adding "ssl_module" to MOD_SSL_LDADD
...
*** Error code 1
Stop in /usr/ports/www/apache21/work/httpd-2.1.4-alpha/srclib/pcre.
*** Error code 1
Stop in /usr/ports/www/apache21/work/httpd-2.1.4-alpha/srclib/pcre.
*** Error code 1
Stop in /usr/ports/www/apache21/work/httpd-2.1.4-alpha/srclib.
*** Error code 1
Stop in /usr/ports/www/apache21/work/httpd-2.1.4-alpha.
*** Error code 1
Stop in /usr/ports/www/apache21.
16:46:55
#pkg_info apache
pkg_info: can't find package 'apache' installed or in a file!
16:47:29
#pkg_info apache21
pkg_info: can't find package 'apache21' installed or in a file!
16:47:33
#pkg_info apache20
pkg_info: can't find package 'apache20' installed or in a file!
16:48:32
#cd /usr/ports/www/apache20

16:48:39
#make install
checking whether to enable mod_unique_id... shared
checking whether to enable mod_setenvif... shared
checking whether to enable mod_proxy... no
checking whether to enable mod_proxy_connect... no
checking whether to enable mod_proxy_ftp... no
checking whether to enable mod_proxy_http... no
checking whether to enable mod_ssl... checking dependencies
checking for SSL/TLS toolkit base... /usr
checking for SSL/TLS toolkit version... OpenSSL 0.9.7e-p1 25 Oct 2004
checking for SSL/TLS toolkit includes... /usr/include
...
/bin/sh /usr/ports/www/apache20/work/httpd-2.0.54/srclib/apr/libtool --silent --mode=compile cc   -O2 -fno-strict-aliasing -pipe -DHAVE_CONFIG_H -D_REENTRANT -D_THREAD_SAFE   -I../include -I../include/arch/unix  -c apr_strnatcmp.c && touch apr_strnatcmp.lo
/bin/sh /usr/ports/www/apache20/work/httpd-2.0.54/srclib/apr/libtool --silent --mode=compile cc   -O2 -fno-strict-aliasing -pipe -DHAVE_CONFIG_H -D_REENTRANT -D_THREAD_SAFE   -I../include -I../include/arch/unix  -c apr_strings.c && touch apr_strings.lo
/bin/sh /usr/ports/www/apache20/work/httpd-2.0.54/srclib/apr/libtool --silent --mode=compile cc   -O2 -fno-strict-aliasing -pipe -DHAVE_CONFIG_H -D_REENTRANT -D_THREAD_SAFE   -I../include -I../include/arch/unix  -c apr_fnmatch.c && touch apr_fnmatch.lo
/bin/sh /usr/ports/www/apache20/work/httpd-2.0.54/srclib/apr/libtool --silent --mode=compile cc   -O2 -fno-strict-aliasing -pipe -DHAVE_CONFIG_H -D_REENTRANT -D_THREAD_SAFE   -I../include -I../include/arch/unix  -c apr_strtok.c && touch apr_strtok.lo
Making all in passwd
/bin/sh /usr/ports/www/apache20/work/httpd-2.0.54/srclib/apr/libtool --silent --mode=compile cc   -O2 -fno-strict-aliasing -pipe -DHAVE_CONFIG_H -D_REENTRANT -D_THREAD_SAFE   -I../include -I../include/arch/unix  -c apr_getpass.c && touch apr_getpass.lo
Making all in tables
/bin/sh /usr/ports/www/apache20/work/httpd-2.0.54/srclib/apr/libtool --silent --mode=compile cc   -O2 -fno-strict-aliasing -pipe -DHAVE_CONFIG_H -D_REENTRANT -D_THREAD_SAFE   -I../include -I../include/arch/unix  -c apr_tables.c && touch apr_tables.lo
/bin/sh /usr/ports/www/apache20/work/httpd-2.0.54/srclib/apr/libtool --silent --mode=compile cc   -O2 -fno-strict-aliasing -pipe -DHAVE_CONFIG_H -D_REENTRANT -D_THREAD_SAFE   -I../include -I../include/arch/unix  -c apr_hash.c && touch apr_hash.lo
Making all in file_io/unix
16:56:04
#/usr/local/etc/rc.d/apache2.sh start

16:56:36
#tail -f /var/log/messages
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
Apr  6 15:24:50 fbsd3 login: ROOT LOGIN (root) ON ttyv2
Apr  6 16:03:11 fbsd3 squid[1185]: Squid Parent: child process 1188 exited with status 0
Apr  6 16:09:16 fbsd3 squid[15325]: Squid Parent: child process 15328 started
Apr  6 16:13:38 fbsd3 squid[15325]: Squid Parent: child process 15328 exited with status 0
Apr  6 16:13:43 fbsd3 squid[15416]: Squid Parent: child process 15418 started
Apr  6 16:17:08 fbsd3 squid[15416]: Squid Parent: child process 15418 exited with status 0
Apr  6 16:17:12 fbsd3 squid[15451]: Squid Parent: child process 15454 started
Apr  6 16:51:22 fbsd3 kernel: pid 36747 (conftest), uid 0: exited on signal 12 (core dumped)
^C
16:58:22
#/usr/local/etc/rc.d/apache2.sh start

16:58:26
#date
ÞÅÔ×ÅÒÇ,  6 ÁÐÒÅÌÑ 2006 Ç. 17:00:22 (EEST)
/dev/ttyp1
17:00:55
#shutdown -p now
Shutdown NOW!
shutdown: [pid 84067]

Пятница (04/07/06)

/dev/ttyv0
09:21:57
#screen
/dev/ttyp1
09:22:32
#ping 80.91.162.154
exit
PING 80.91.162.154 (80.91.162.154): 56 data bytes
64 bytes from 80.91.162.154: icmp_seq=0 ttl=51 time=1233.481 ms
64 bytes from 80.91.162.154: icmp_seq=1 ttl=51 time=744.537 ms
64 bytes from 80.91.162.154: icmp_seq=2 ttl=51 time=1131.424 ms
64 bytes from 80.91.162.154: icmp_seq=3 ttl=51 time=723.077 ms
64 bytes from 80.91.162.154: icmp_seq=4 ttl=51 time=1235.388 ms
64 bytes from 80.91.162.154: icmp_seq=5 ttl=51 time=925.843 ms
64 bytes from 80.91.162.154: icmp_seq=6 ttl=51 time=1768.581 ms
64 bytes from 80.91.162.154: icmp_seq=7 ttl=51 time=816.815 ms
^C
--- 80.91.162.154 ping statistics ---
9 packets transmitted, 8 packets received, 11% packet loss
round-trip min/avg/max/stddev = 723.077/1072.393/1768.581/327.297 ms
/dev/ttyp3
09:24:40
#exit~
bash: exit~: command not found
/dev/ttyv2
09:31:42
#startx
exit
X Window System Version 6.8.2
Release Date: 9 February 2005
X Protocol Version 11, Revision 0, Release 6.8.2
Build Operating System: FreeBSD 6.0 i386 [ELF]
Current Operating System: FreeBSD fbsd3.unix.nt 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Mon Apr  3 04:11:45 EEST 2006     root@fbsd3.unix.nt:/usr/src/sys/i386/compile/MY i386
Build Date: 12 October 2005
        Before reporting problems, check http://wiki.X.Org
        to make sure that you have the latest version.
Module Loader present
...
ÓËÏÒÅÅ ×ÓÅÇÏ, X-ÓÅÒ×ÅÒ ÂÙÌ ×ÙËÌÀÞÅÎ ÉÌÉ ÂÙÌ ÕÎÉÞÔÏÖÅÎ
ÍÅÎÅÄÖÅÒ ÏËÏÎ.
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.
The application 'nautilus' lost its connection to the display :0.0;
most likely the X server was shut down or you killed/destroyed
the application.
FreeFontPath: FPE "/usr/X11R6/lib/X11/fonts/misc/" refcount is 2, should be 1; fixing.
xinit:  connection to X server lost.
прошла 21 минута
09:53:04
#gnome-smproxy: unable to open display :0.0
(gnome-panel:1082): Gtk-WARNING **: cannot open display: :0.0
/dev/ttyv0
09:53:10
#whereis mgetty
mgetty:
09:53:19
#cd /usr/ports/

09:53:35
#make search key="mgetty"
Port:   mgetty-1.1.33
Path:   /usr/ports/comms/mgetty+sendfax
Info:   Handle external logins, send and receive faxes
Maint:  jmz@FreeBSD.org
B-deps: perl-5.8.7
R-deps: perl-5.8.7
WWW:    http://www.webforum.de/mgetty-faq.html
09:53:51
#cd comms/mgetty+sendfax/

09:54:11
#make install
   - `rings'
     Sets the number of `RING' messages to wait for, before mgetty
     picks up the phone. *Warning:* if your modem  auto-answers, for
     whatever reason, set this to something  *different* than the
     value set with `ATS0=mmm', otherwise the  modems autoanswer and
     mgettys manual answer will collide (most  modems hang up if a
     command is received during auto-answer): [1]
   - `answer-chat'
     This is the command sequence that is used to answer a phone call.
     Usually you can leave it at the default ` "" ATA CONNECT \c \r ',
...
     Specifies an `AT...' command that is to be sent to the modem right
     at the *beginning* of all modem talk (even before setting the modem
     into fax mode, so this could be an `ATZ' if you want to reset the
     modem).:
   - `modem-handshake'
     Specifies an `AT...' command that will be sent to the modem at the
     *end* of the modem initialization, right before dialing. *Do not
     use ATZ or such here*, since resetting the modem will switch off
     fax mode.: [AT&H3]
   - `max-tries'
/dev/ttyv2
09:56:07
#dmesq | less
09:56:21
#dmesg | less
/dev/ttyv0
10:04:02
#dmesg | grep ppp

10:09:09
#tail /etc/ttys
ttySn   none                    network
ttySo   none                    network
ttySp   none                    network
ttySq   none                    network
ttySr   none                    network
ttySs   none                    network
ttySt   none                    network
ttySu   none                    network
ttySv   none                    network
cuad0   "/usr/local/sbin/mgetty"        unknown on insecure
10:16:02
#init q

10:16:13
#ls -l /dev/cuad0
cuad0       cuad0.init  cuad0.lock
10:16:13
#man cuad
10:16:33
#apropos cuad
cuad: nothing appropriate
10:16:42
#ls -l /dev/cuad0
cuad0       cuad0.init  cuad0.lock
10:16:42
#ls -l /dev/cuad0

/dev/ttyv3
10:17:18
#e /etc/ttys
=1SttySinone                    network
ttySj   none                    network
ttySk   none                    network
ttySl   none                    network
ttySm   none                    network
ttySn   none                    network
ttySo   none                    network
ttySp   none                    network
ttySq   none                    network
ttySr   none                    network
...
cuad0   "/usr/local/sbin/mgetty"        unknown on insecure
ttySb   none                    network
ttySc   none                    network
ttySd   none                    network
ttySe   none                    network
ttySf   none                    network
ttySg   none                    network
ttySh   none                    network
ttySi   none                    network
ttySj   none                    network
10:18:35
#ps -ax
  PID  TT  STAT      TIME COMMAND
    0  ??  WLs    0:00,00 [swapper]
    1  ??  ILs    0:00,04 /sbin/init --
    2  ??  DL     0:00,17 [g_event]
    3  ??  DL     0:00,48 [g_up]
    4  ??  DL     0:00,57 [g_down]
    5  ??  DL     0:00,00 [kqueue taskq]
    6  ??  DL     0:00,00 [acpi_task0]
    7  ??  DL     0:00,00 [acpi_task1]
    8  ??  DL     0:00,00 [acpi_task2]
...
 2904  p1  I+     0:00,17 mc
 2906  p2  Is+    0:00,03 script -t 0 -q /root/.lilalo//9606307872126828804-114
 2942  p3  Is+    0:00,02 /usr/local/bin/bash -i
 3425  p4  Ss     0:00,03 /usr/local/bin/bash -i
 3767  p4  R+     0:00,00 ps -ax
  868  p5  Is     0:00,02 /usr/local/bin/bash -i
  883  p5  S+     0:00,19 centericq
 3559  p6  Ss+    0:00,07 script -t 0 -q /root/.lilalo//17553207961072429003-11
 3595  p7  Is     0:00,07 /usr/local/bin/bash -i
 3766  p7  S+     0:00,02 minicom -s
/dev/ttyp6
10:20:13
#host fbsd3.fbsd3.unix.nt

10:20:25
#host fbsd3.f3.unix.nt
fbsd3.f3.unix.nt has address 192.168.15.23
/dev/ttyp6
10:21:20
#vi /etc/namedb/
10:21:28
#vi /etc/namedb/named.
10:21:32
#vi /etc/namedb/named.conf
10:21:40
#vi /etc/namedb/master/military
10:22:04
#pkg_add -r minicom
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.0-release/Latest/minicom.tbz... Done.
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.0-release/All/lrzsz-0.12.20_1.tbz... Done.
10:22:25
#minicom -s
LANG/ja
LANG/ko
LANG/ru
minicom: ÷îéíáîéå: ÆÁÊÌ ËÏÎÆÉÇÕÒÁÃÉÉ ÎÅ ÎÁÊÄÅÎ, ÉÓÐÏÌØÚÕÀ ÎÁÓÔÒÏÊËÉ
                   ÐÏ ÕÍÏÌÞÁÎÉÀ
10:22:33
#LANG=C
Lockfile is stale. Overriding it..
Welcome to minicom 2.1
OPTIONS: History Buffer, F-key Macros, Search History Buffer, I18n
Compiled on Oct 12 2005, 06:01:35.
Press CTRL-A Z for help on special keys
AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0
OK
atd230
CONNECT 33600/ARQ
 CTRL-A Z for help | 57600 8N1 | NOR | Minicom 2.1    | VT102 |      Offline
/dev/ttyv0
10:22:48
#apropos cuad
cuad: nothing appropriate
10:24:07
#tail -f /usr/local/squid/logs/access.log
127.0.0.1 - - [07/Apr/2006:09:49:56 +0300] "GET http://mail.zarja.com.ua/src/right_main.php? HTTP/1.0" 200 8947 TCP_MISS:DIRECT
127.0.0.1 - - [07/Apr/2006:09:50:11 +0300] "POST http://mail.zarja.com.ua/src/move_messages.php HTTP/1.0" 302 522 TCP_MISS:DIRECT
127.0.0.1 - - [07/Apr/2006:09:50:13 +0300] "GET http://mail.zarja.com.ua/src/right_main.php? HTTP/1.0" 200 8360 TCP_MISS:DIRECT
127.0.0.1 - - [07/Apr/2006:09:50:28 +0300] "GET http://mail.zarja.com.ua/src/webmail.php HTTP/1.0" 200 761 TCP_MISS:DIRECT
127.0.0.1 - - [07/Apr/2006:09:50:34 +0300] "GET http://mail.zarja.com.ua/favicon.ico HTTP/1.0" 404 551 TCP_CLIENT_REFRESH_MISS:DIRECT
127.0.0.1 - - [07/Apr/2006:09:50:34 +0300] "GET http://mail.zarja.com.ua/src/left_main.php HTTP/1.0" 200 2717 TCP_MISS:DIRECT
127.0.0.1 - - [07/Apr/2006:09:50:37 +0300] "GET http://mail.zarja.com.ua/src/right_main.php HTTP/1.0" 200 8344 TCP_MISS:DIRECT
127.0.0.1 - - [07/Apr/2006:09:51:14 +0300] "GET http://mail.zarja.com.ua/src/empty_trash.php HTTP/1.0" 302 512 TCP_MISS:DIRECT
127.0.0.1 - - [07/Apr/2006:09:51:20 +0300] "GET http://mail.zarja.com.ua/src/left_main.php? HTTP/1.0" 200 2622 TCP_MISS:DIRECT
127.0.0.1 - - [07/Apr/2006:09:52:19 +0300] "GET http://mail.zarja.com.ua/src/left_main.php HTTP/1.0" 200 2622 TCP_MISS:DIRECT
^C
/dev/ttyp6
10:24:37
#LANG=C minicom -s
?3;4lDevice /dev/cuad0 is locked.
10:25:50
#LANG=C minicom -s
Lockfile is stale. Overriding it..
Welcome to minicom 2.1
OPTIONS: History Buffer, F-key Macros, Search History Buffer, I18n
at....à.ÿon Oct 12 2005, 06:01:35.
OK
atc10=0TRL-A Z for help on special keys
OK
atd230
RINGING
RINGING
CONNECT 33600/ARQ/V34/LAPM/V42BIS
 CTRL-A Z for help | 57600 8N1 | NOR | Minicom 2.1    | VT102 |      Offline
/dev/ttyv3
10:27:13
#clear

/dev/ttyp6
10:30:05
#vi /etc/ttys
10:30:17
#vi /usr/local/etc/mgetty+sendfax/mgetty.config
1d0
< 
16c15
< init-chat "" ATS0=0Q0&D3&C1 OK
---
> init-chat "" ATS0=0Q0&D3&C1 C10=0 OK
10:30:44
#init q

10:30:45
#tail -f /var/log/messages
Apr  7 09:26:44 fbsd3 login: ROOT LOGIN (root) ON ttyv1
Apr  7 09:31:41 fbsd3 login: ROOT LOGIN (root) ON ttyv2
Apr  7 10:16:09 fbsd3 init: getty repeating too quickly on port /dev/cuad0, sleeping 30 secs
Apr  7 10:16:41 fbsd3 init: getty repeating too quickly on port /dev/cuad0, sleeping 30 secs
Apr  7 10:17:14 fbsd3 init: getty repeating too quickly on port /dev/cuad0, sleeping 30 secs
Apr  7 10:17:18 fbsd3 login: ROOT LOGIN (root) ON ttyv3
Apr  7 10:17:46 fbsd3 init: getty repeating too quickly on port /dev/cuad0, sleeping 30 secs
Apr  7 10:18:19 fbsd3 init: getty repeating too quickly on port /dev/cuad0, sleeping 30 secs
Apr  7 10:19:57 fbsd3 last message repeated 3 times
Apr  7 10:30:18 fbsd3 last message repeated 9 times
^C
10:31:31
#ls -l /dev/cuad0
crw-rw----  1 uucp  uucp    0,  46  7 ÁÐÒ 10:30 /dev/cuad0
/dev/ttyv0
10:33:12
#tail /etc/ttys
ttySn   none                    network
ttySo   none                    network
ttySp   none                    network
ttySq   none                    network
ttySr   none                    network
ttySs   none                    network
ttySt   none                    network
ttySu   none                    network
ttySv   none                    network
cuad0   "/usr/local/sbin/mgetty"        unknown on insecure
/dev/ttyp6
10:33:16
#ls -l /dev/tty
ttyd0       ttyp1       ttyp5       ttyv1       ttyv5       ttyv9       ttyvd
ttyd0.init  ttyp2       ttyp6       ttyv2       ttyv6       ttyva       ttyve
ttyd0.lock  ttyp3       ttyp7       ttyv3       ttyv7       ttyvb       ttyvf
ttyp0       ttyp4       ttyv0       ttyv4       ttyv8       ttyvc
10:33:16
#ls -l /dev/ttyd0
ttyd0       ttyd0.init  ttyd0.lock
10:33:16
#ls -l /dev/ttyd0
crw-------  1 root  wheel    0,  43  7 ÁÐÒ 09:20 /dev/ttyd0
10:35:30
#vi /etc/ttys
10:35:42
#init q

10:35:44
#vi /etc/ttys
310c310
< cuad0	"/usr/local/sbin/mgetty"	unknown off insecure
---
> ttyd0	"/usr/local/sbin/mgetty"	unknown on insecure
10:36:00
#init q

10:36:02
#tail -f /var/log/messages
Apr  7 10:16:09 fbsd3 init: getty repeating too quickly on port /dev/cuad0, sleeping 30 secs
Apr  7 10:16:41 fbsd3 init: getty repeating too quickly on port /dev/cuad0, sleeping 30 secs
Apr  7 10:17:14 fbsd3 init: getty repeating too quickly on port /dev/cuad0, sleeping 30 secs
Apr  7 10:17:18 fbsd3 login: ROOT LOGIN (root) ON ttyv3
Apr  7 10:17:46 fbsd3 init: getty repeating too quickly on port /dev/cuad0, sleeping 30 secs
Apr  7 10:18:19 fbsd3 init: getty repeating too quickly on port /dev/cuad0, sleeping 30 secs
Apr  7 10:19:57 fbsd3 last message repeated 3 times
Apr  7 10:30:18 fbsd3 last message repeated 9 times
Apr  7 10:35:11 fbsd3 last message repeated 9 times
Apr  7 10:36:03 fbsd3 init: getty repeating too quickly on port /dev/ttyd0, sleeping 30 secs
^C
/dev/ttyv1
10:38:17
#whereis
usage: whereis [-abmqsux] [-BMS dir ... -f] program ...
10:38:27
#whereis cvsup
cvsup: /usr/ports/net/cvsup
10:38:37
#cd /usr/ports/net/cvsup

Статистика

Время первой команды журнала16:09:16 2006- 4- 6
Время последней команды журнала10:38:37 2006- 4- 7
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, %14.85
Процент синтаксически неверно набранных команд, % 0.99
Суммарное время работы с терминалом *, час 2.14
Количество командных строк в единицу времени, команда/мин 0.79
Частота использования команд
cd14|=============| 13.46%
whereis10|=========| 9.62%
make8|=======| 7.69%
vi8|=======| 7.69%
ls7|======| 6.73%
tail6|=====| 5.77%
/usr/local/etc/rc.d/squid.sh5|====| 4.81%
pkg_info4|===| 3.85%
init4|===| 3.85%
ping3|==| 2.88%
e3|==| 2.88%
LANG=C3|==| 2.88%
host2|=| 1.92%
/usr/local/etc/rc.d/apache2.sh2|=| 1.92%
dmesg2|=| 1.92%
apropos2|=| 1.92%
less2|=| 1.92%
startx2|=| 1.92%
ssh2|=| 1.92%
screen1|| 0.96%
man1|| 0.96%
gnome-smproxy:1|| 0.96%
minicom1|| 0.96%
opera1|| 0.96%
squid1|| 0.96%
ps1|| 0.96%
dmesq1|| 0.96%
exit~1|| 0.96%
shutdown1|| 0.96%
grep1|| 0.96%
pkg_add1|| 0.96%
clear1|| 0.96%
date1|| 0.96%
mc1|| 0.96%
____
*) Интервалы неактивности длительностью 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$