/l3/trainings/nt-bsdnet/2006-04-03/fbsd3.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 |
|
#e /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 |
#squid -k reconfigure
2006/04/06 16:13:08| parse_delay_pool_count: multiple delay_pools lines, aborting all previous delay_pools config |
#/usr/local/etc/rc.d/squid.sh restart
![]() usage: squid.sh {start|stop} |
#/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 |
#/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 |
#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 |
#/usr/local/etc/rc.d/squid.sh stop
|
#/usr/local/etc/rc.d/squid.sh start
|
#whereis rejik
rejik: |
#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. |
#make search key="rejik"
|
#whereis apache
apache: |
#cd ..
|
#cd ..
|
#whereis apache
apache: |
#cd /usr/ports/www/apache
![]() bash: cd: /usr/ports/www/apache: No such file or directory |
#whereis opera
opera: /usr/ports/www/opera |
#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 |
#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 |
#whereis apache
apache: |
#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/ |
#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 |
#pkg_info apache
![]() pkg_info: can't find package 'apache' installed or in a file! |
#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: |
#cd www
|
#mc
|
#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. |
#whereis apache-2.1
apache-2.1: |
#cd /usr/ports/www/apache-
![]() apache-contrib/ apache-forrest/ apache-jserv/ |
#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/ |
#cd /usr/ports/www/apache21
|
#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. |
#pkg_info apache
![]() pkg_info: can't find package 'apache' installed or in a file! |
#pkg_info apache21
![]() pkg_info: can't find package 'apache21' installed or in a file! |
#pkg_info apache20
![]() pkg_info: can't find package 'apache20' installed or in a file! |
#cd /usr/ports/www/apache20
|
#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 |
#/usr/local/etc/rc.d/apache2.sh start
|
#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 |
#/usr/local/etc/rc.d/apache2.sh start
|
#date
ÞÅÔ×ÅÒÇ, 6 ÁÐÒÅÌÑ 2006 Ç. 17:00:22 (EEST) |
#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 |
#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. |
#gnome-smproxy: unable to open display :0.0
(gnome-panel:1082): Gtk-WARNING **: cannot open display: :0.0 |
#cd /usr/ports/
|
#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 |
#cd comms/mgetty+sendfax/
|
#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' |
#dmesg | less
|
#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 |
#init q
|
#ls -l /dev/cuad0
![]() cuad0 cuad0.init cuad0.lock |
#man cuad
![]() |
#apropos cuad
cuad: nothing appropriate |
#ls -l /dev/cuad0
![]() cuad0 cuad0.init cuad0.lock |
#ls -l /dev/cuad0
![]() |
#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 |
#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 |
#host fbsd3.f3.unix.nt
fbsd3.f3.unix.nt has address 192.168.15.23 |
#vi /etc/namedb/named.
![]() |
#vi /etc/namedb/named.conf
|
#vi /etc/namedb/master/military
|
#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. |
#minicom -s
LANG/ja LANG/ko LANG/ru minicom: ÷îéíáîéå: ÆÁÊÌ ËÏÎÆÉÇÕÒÁÃÉÉ ÎÅ ÎÁÊÄÅÎ, ÉÓÐÏÌØÚÕÀ ÎÁÓÔÒÏÊËÉ ÐÏ ÕÍÏÌÞÁÎÉÀ |
#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 |
#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 |
#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 |
#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 |
#init q
|
#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 |
#ls -l /dev/cuad0
crw-rw---- 1 uucp uucp 0, 46 7 ÁÐÒ 10:30 /dev/cuad0 |
#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 |
#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 |
#ls -l /dev/ttyd0
![]() ttyd0 ttyd0.init ttyd0.lock |
#ls -l /dev/ttyd0
crw------- 1 root wheel 0, 43 7 ÁÐÒ 09:20 /dev/ttyd0 |
#vi /etc/ttys
|
#init q
|
#vi /etc/ttys
310c310 < cuad0 "/usr/local/sbin/mgetty" unknown off insecure --- > ttyd0 "/usr/local/sbin/mgetty" unknown on insecure |
#init q
|
#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 |
#whereis cvsup
cvsup: /usr/ports/net/cvsup |
#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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008