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

Содержание

Журнал

Вторник (04/04/06)

/dev/ttyv1
16:09:52
#ssh fbsd2
Last login: Tue Apr  4 16:01:42 2006 from fbsd3.linux.nt
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.
FreeBSD 6.0-RELEASE (MAIN) #0: Mon Apr  3 14:33:41 EEST 2006
Welcome to FreeBSD!
Before seeking technical support, please use the following resources:
o  Security advisories and updated errata information for all releases are
   at http://www.FreeBSD.org/releases/ - always consult the ERRATA section
   for your release first as it's updated frequently.
o  The Handbook and FAQ documents are at http://www.FreeBSD.org/ and,
   along with the mailing lists, can be searched by going to
   http://www.FreeBSD.org/search/.  If the doc distribution has
   been installed, they're also available formatted in /usr/share/doc.
If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questions@FreeBSD.org mailing list.  If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page.  If you are not familiar with manual pages, type `man man'.
You may also use sysinstall(8) to re-enter the installation and
configuration utility.  Edit /etc/motd to change this login announcement.
16:10:33
#deco
Demos Commander, Copyright (C) 1989-1997 Serge Vakulenko
/dev/ttyp2
16:15:12
#touch .hushlogin
exit
/dev/ttyv1
16:15:55
#cat ~/.ssh/id_dsa.pub | ssh fbsd2 'cat >> ~/.ssh/authorized_k

16:15:55
#ssh-keygen -t dsa

16:15:55
#ssh-keygen -P -f ~.ssh/id_dsa
Too many arguments.
Usage: ssh-keygen [options]
Options:
  -a trials   Number of trials for screening DH-GEX moduli.
  -B          Show bubblebabble digest of key file.
  -b bits     Number of bits in the key to create.
  -C comment  Provide new comment.
  -c          Change comment in private and public key files.
  -e          Convert OpenSSH to IETF SECSH key file.
  -F hostname Find hostname in known hosts file.
...
  -p          Change passphrase of private key file.
  -q          Quiet.
  -R hostname Remove host from known_hosts file.
  -r hostname Print DNS resource record.
  -S start    Start point (hex) for generating DH-GEX moduli.
  -T file     Screen candidates for DH-GEX moduli.
  -t type     Specify type of key to create.
  -v          Verbose.
  -W gen      Generator to use for generating DH-GEX moduli.
  -y          Read private key file and print public key.
16:16:58
#ssh-keygen -P -f ~/.ssh/id_dsa
Too many arguments.
Usage: ssh-keygen [options]
Options:
  -a trials   Number of trials for screening DH-GEX moduli.
  -B          Show bubblebabble digest of key file.
  -b bits     Number of bits in the key to create.
  -C comment  Provide new comment.
  -c          Change comment in private and public key files.
  -e          Convert OpenSSH to IETF SECSH key file.
  -F hostname Find hostname in known hosts file.
...
  -p          Change passphrase of private key file.
  -q          Quiet.
  -R hostname Remove host from known_hosts file.
  -r hostname Print DNS resource record.
  -S start    Start point (hex) for generating DH-GEX moduli.
  -T file     Screen candidates for DH-GEX moduli.
  -t type     Specify type of key to create.
  -v          Verbose.
  -W gen      Generator to use for generating DH-GEX moduli.
  -y          Read private key file and print public key.
16:17:06
#ssh-keygen -P -f ~/.ssh/id_dsa
Too many arguments.
Usage: ssh-keygen [options]
Options:
  -a trials   Number of trials for screening DH-GEX moduli.
  -B          Show bubblebabble digest of key file.
  -b bits     Number of bits in the key to create.
  -C comment  Provide new comment.
  -c          Change comment in private and public key files.
  -e          Convert OpenSSH to IETF SECSH key file.
  -F hostname Find hostname in known hosts file.
...
  -p          Change passphrase of private key file.
  -q          Quiet.
  -R hostname Remove host from known_hosts file.
  -r hostname Print DNS resource record.
  -S start    Start point (hex) for generating DH-GEX moduli.
  -T file     Screen candidates for DH-GEX moduli.
  -t type     Specify type of key to create.
  -v          Verbose.
  -W gen      Generator to use for generating DH-GEX moduli.
  -y          Read private key file and print public key.
16:17:39
#ssh-keygen -P -f ~/.ssh/id_dsa
Too many arguments.
Usage: ssh-keygen [options]
Options:
  -a trials   Number of trials for screening DH-GEX moduli.
  -B          Show bubblebabble digest of key file.
  -b bits     Number of bits in the key to create.
  -C comment  Provide new comment.
  -c          Change comment in private and public key files.
  -e          Convert OpenSSH to IETF SECSH key file.
  -F hostname Find hostname in known hosts file.
...
  -p          Change passphrase of private key file.
  -q          Quiet.
  -R hostname Remove host from known_hosts file.
  -r hostname Print DNS resource record.
  -S start    Start point (hex) for generating DH-GEX moduli.
  -T file     Screen candidates for DH-GEX moduli.
  -t type     Specify type of key to create.
  -v          Verbose.
  -W gen      Generator to use for generating DH-GEX moduli.
  -y          Read private key file and print public key.
16:17:40
#cat ~/.ssh/id_dsa.pub | ssh fbsd2 'cat >> ~/.ssh/authorized_k

16:17:40
#ssh-keygen -t dsa

16:17:40
#cat ~/.ssh/id_dsa.pub | ssh fbsd2 'cat >> ~/.ssh/authorized_k

16:17:40
#ssh fbsd2

16:17:40
#cd ~/.ssh/

16:18:33
#ls
authorized_keys id_dsa          id_dsa.pub      known_hosts
16:18:44
#eval `ssh-agent`
Agent pid 3116
16:20:49
#cd ~/

16:21:36
#ssh-add
Identity added: /root/.ssh/id_dsa (/root/.ssh/id_dsa)
16:22:00
#cat ~/.ssh/id_dsa.pub | ssh fbsd2 'cat >> ~/.ssh/authorized_

16:22:00
#ssh fbsd2

16:22:00
#ssh fbsd2
Last login: Tue Apr  4 16:20:05 2006 from fbsd3.linux.nt
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.
FreeBSD 6.0-RELEASE (MAIN) #0: Mon Apr  3 14:33:41 EEST 2006
Welcome to FreeBSD!
Before seeking technical support, please use the following resources:
o  Security advisories and updated errata information for all releases are
   at http://www.FreeBSD.org/releases/ - always consult the ERRATA section
   for your release first as it's updated frequently.
o  The Handbook and FAQ documents are at http://www.FreeBSD.org/ and,
   along with the mailing lists, can be searched by going to
   http://www.FreeBSD.org/search/.  If the doc distribution has
   been installed, they're also available formatted in /usr/share/doc.
If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questions@FreeBSD.org mailing list.  If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page.  If you are not familiar with manual pages, type `man man'.
You may also use sysinstall(8) to re-enter the installation and
configuration utility.  Edit /etc/motd to change this login announcement.
16:22:21
#ls
.bash_history   .gconf          .gstreamer-0.8  .links          .ssh
.bash_profile   .gconfd         .history        .login
.bashrc         .gnome2         .k5login        .mc
.cshrc          .gnome2_private .lilalo         .profile
16:22:23
#pwd
/root
16:22:50
#ls -al
total 48
drwxr-xr-x  11 root  wheel   512 Apr  4 10:43 .
drwxr-xr-x  21 root  wheel   512 Apr  3 16:52 ..
-rw-------   1 root  wheel  6965 Apr  4 16:20 .bash_history
-rw-r--r--   1 root  wheel    13 Apr  3 08:11 .bash_profile
-rw-r--r--   1 root  wheel    35 Apr  3 08:11 .bashrc
-rw-r--r--   2 root  wheel   801 Nov  3 10:12 .cshrc
drwx------   2 root  wheel   512 Mar 31 22:34 .gconf
drwx------   2 root  wheel   512 Mar 31 22:34 .gconfd
drwx------   3 root  wheel   512 Mar 31 22:26 .gnome2
drwx------   2 root  wheel   512 Mar 31 22:26 .gnome2_private
drwxr-xr-x   2 root  wheel   512 Mar 31 22:27 .gstreamer-0.8
-rw-------   1 root  wheel   751 Apr  3 07:58 .history
-rw-r--r--   1 root  wheel   143 Nov  3 10:12 .k5login
drwxr-xr-x   2 root  wheel  5632 Apr  4 16:20 .lilalo
drwx------   2 root  wheel   512 Apr  4 09:15 .links
-rw-r--r--   1 root  wheel   293 Nov  3 10:12 .login
drwxr-xr-x   3 root  wheel   512 Apr  4 11:38 .mc
-rw-r--r--   2 root  wheel   251 Nov  3 10:12 .profile
drwxr-xr-x   2 root  wheel   512 Apr  4 16:03 .ssh
16:23:25
#exit
exit
Connection to fbsd2.unix.nt closed.
/dev/ttyp2
16:23:48
#pwd
/root
16:24:34
#ls -a
.               .bashrc         .gnome2         .hushlogin      .profile
..              .cshrc          .gnome2_private .k5login        .ssh
.bash_history   .gconf          .gstreamer-0.8  .lilalo
.bash_profile   .gconfd         .history        .login
/dev/ttyv1
16:25:26
#touch .hushlogin

16:25:48
#cd ~/

16:25:52
#exit
exit
Connection to fbsd2.unix.nt closed.
16:25:53
#los
bash: los: command not found
16:25:56
#ls
.bash_history   .gconf          .gstreamer-0.8  .lilalo
.bash_profile   .gconfd         .history        .login
.bashrc         .gnome2         .hushlogin      .profile
.cshrc          .gnome2_private .k5login        .ssh
16:25:58
#exit
exit
Connection to fbsd2.unix.nt closed.
16:25:59
#ssh-keygen -p -f ~/.ssh/id_dsa
Key has comment '/root/.ssh/id_dsa'
Enter new passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved with the new passphrase.
16:26:41
#eval `ssh-agent`
Agent pid 3212
16:26:51
#ssh-add
Enter passphrase for /root/.ssh/id_dsa:
Identity added: /root/.ssh/id_dsa (/root/.ssh/id_dsa)
16:27:00
#ssh fbsd2
Last login: Tue Apr  4 16:20:49 2006 from linux16-2.linux
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.
FreeBSD 6.0-RELEASE (MAIN) #0: Mon Apr  3 14:33:41 EEST 2006
Welcome to FreeBSD!
Before seeking technical support, please use the following resources:
o  Security advisories and updated errata information for all releases are
   at http://www.FreeBSD.org/releases/ - always consult the ERRATA section
   for your release first as it's updated frequently.
o  The Handbook and FAQ documents are at http://www.FreeBSD.org/ and,
   along with the mailing lists, can be searched by going to
   http://www.FreeBSD.org/search/.  If the doc distribution has
   been installed, they're also available formatted in /usr/share/doc.
If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questions@FreeBSD.org mailing list.  If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page.  If you are not familiar with manual pages, type `man man'.
You may also use sysinstall(8) to re-enter the installation and
configuration utility.  Edit /etc/motd to change this login announcement.
16:27:43
#ssh fbsd2

16:27:53
#xorgcfg
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 fbsd1.unix.nt 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Mon Apr  3 15:21:58 EEST 2006     user@fbsd1.unix.nt:/usr/src/sys/i386/compile/MYGENERIC 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,
...
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.8.log", Time: Tue Apr  4 16:31:28 2006
(++) Using config file: "/root/xorg.conf.new"
[drm] failed to load kernel module "i915"
(EE) I810(0): [dri] DRIScreenInit failed. Disabling DRI.
FreeFontPath: FPE "/usr/X11R6/lib/X11/fonts/misc/" refcount is 2, should be 1; fixing.
Cannot connect to X server.
/dev/ttyp2
16:30:43
#konkueror
exit
exit
exit
bash: konkueror: command not found
/dev/ttyv1
16:31:34
#pwd
/root
16:31:44
#ls
\.bash_history  .gconf          .gstreamer-0.8  .lilalo         xorg.conf.new
.bash_profile   .gconfd         .history        .login
.bashrc         .gnome2         .hushlogin      .profile
.cshrc          .gnome2_private .k5login        .ssh
16:31:47
#ee xorg.conf.new
48,49c48,49
< #	HorizSync    30.0 - 70.0
< #	VertRefresh  50.0 - 160.0
---
> 	HorizSync    30.0 - 70.0
> 	VertRefresh  50.0 - 90.0
16:33:35
#ls
.bash_history   .gconf          .gstreamer-0.8  .lilalo         xorg.conf.new
.bash_profile   .gconfd         .history        .login
.bashrc         .gnome2         .hushlogin      .profile
.cshrc          .gnome2_private .k5login        .ssh
16:34:26
#mv xorg.conf.new /etc/X11/xorg.conf

16:35:40
#touch .xinitrc

16:37:25
#ee .xinitrc
0a1
> startkde
16:38:15
#startkde
xsetroot:  unable to open display ''
xset:  unable to open display ""
xsetroot:  unable to open display ''
startkde: Starting up...
startkde: Running kpersonalizer...
/usr/X11R6/bin/iceauth:  creating new authority file /root/.ICEauthority
kwin: cannot connect to X server
kpersonalizer: cannot connect to X server
kpersonalizer: cannot connect to X server
kpersonalizer: cannot connect to X server
...
kpersonalizer: cannot connect to X server
kpersonalizer: cannot connect to X server
kpersonalizer: cannot connect to X server
kpersonalizer: cannot connect to X server
kpersonalizer: cannot connect to X server
kpersonalizer: cannot connect to X server
kpersonalizer: cannot connect to X server
kpersonalizer: cannot connect to X server
kpersonalizer: cannot connect to X server
^C
16:38:58
#xinit
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 fbsd1.unix.nt 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Mon Apr  3 15:21:58 EEST 2006     user@fbsd1.unix.nt:/usr/src/sys/i386/compile/MYGENERIC 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,
...
kdeinit: Fatal IO error: client killed
kdeinit: sending SIGHUP to children.
kdeinit: sending SIGTERM to children.
klauncher: Exiting on signal 1
kdeinit: Exit.
klauncher: Fatal IO error: client killed
FreeFontPath: FPE "/usr/X11R6/lib/X11/fonts/misc/" refcount is 2, should be 1; fixing.
xinit:  connection to X server lost.
Hangup
GOT SIGHUP
16:41:30
#DCOPClient::attachInternal. Attach failed Could not open network socket
DCOPClient::attachInternal. Attach failed Could not open network socket
ERROR: Couldn't attach to DCOP server!
startkde: Shutting down...
Warning: connect() failed: : No such file or directory
Error: Can't contact kdeinit!
startkde: Running shutdown scripts...
startkde: Done.
ls
.DCOPserver_fbsd1.unix.nt_NODISPLAY     .k5login
.ICEauthority                           .kde
.bash_history                           .kderc
.bash_profile                           .lilalo
.bashrc                                 .local
.cshrc                                  .login
.gconf                                  .mcop
.gconfd                                 .profile
.gnome2                                 .qt
.gnome2_private                         .ssh
.gstreamer-0.8                          .xinitrc
.history                                Desktop
.hushlogin
16:43:05
#ssh fbsd2 konquedor
bash: konquedor: command not found
16:43:41
#xinit
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 fbsd1.unix.nt 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Mon Apr  3 15:21:58 EEST 2006     user@fbsd1.unix.nt:/usr/src/sys/i386/compile/MYGENERIC 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,
...
kdeinit: Fatal IO error: client killed
kdeinit: sending SIGHUP to children.
DCOPClient::attachInternal. Attach failed Could not open network socket
DCOPClient::attachInternal. Attach failed Could not open network socket
ERROR: Couldn't attach to DCOP server!
startkde: Shutting down...
Warning: connect() failed: : No such file or directory
Error: Can't contact kdeinit!
FreeFontPath: FPE "/usr/X11R6/lib/X11/fonts/misc/" refcount is 2, should be 1; fixing.
xinit:  connection to X server lost.
16:46:11
#Hangup
GOT SIGHUP
startkde: Running shutdown scripts...
startkde: Done.
kdeinit: sending SIGTERM to children.
kdeinit: sending SIGTERM to children.
kdeinit: Exit.
kdeinit: Exit.
16:46:14
#ssh fbsd2 konqueror
konqueror: cannot connect to X server
16:46:29
#ssh X fbsd2 konqueror
ssh: X: hostname nor servname provided, or not known
16:46:38
#ssh -h
ssh: illegal option -- h
usage: ssh [-1246AaCfgkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec]
           [-D port] [-e escape_char] [-F configfile]
           [-i identity_file] [-L [bind_address:]port:host:hostport]
           [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
           [-R [bind_address:]port:host:hostport] [-S ctl_path]
           [user@]hostname [command]
16:46:50
#ssh X fbsd2 konqueror
ssh: X: hostname nor servname provided, or not known
16:47:20
#man ssh
16:48:12
#ssh -X fbsd2 konqueror
konqueror: cannot connect to X server
16:48:23
#xinit
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 fbsd1.unix.nt 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Mon Apr  3 15:21:58 EEST 2006     user@fbsd1.unix.nt:/usr/src/sys/i386/compile/MYGENERIC 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,
...
DCOPClient::attachInternal. Attach failed Could not open network socket
ERROR: Couldn't attach to DCOP server!
startkde: Shutting down...
Warning: connect() failed: : No such file or directory
Error: Can't contact kdeinit!
FreeFontPath: FPE "/usr/X11R6/lib/X11/fonts/misc/" refcount is 2, should be 1; fixing.
xinit:  connection to X server lost.
Hangup
GOT SIGHUP
startkde: Running shutdown scripts...
16:54:09
#\startkde: Done.
kdeinit: sending SIGTERM to children.
kdeinit: Exit.
>
16:55:26
#l3-agent

16:55:42
#su user

16:55:48
$l3-agent
l3-agent is already running: pid=570; pidfile=/home/user/.lilalo/l3-agent.pid
16:55:59
$exit
exit
16:56:14
#su user

16:56:59
$l3-agent
l3-agent is already running: pid=570; pidfile=/home/user/.lilalo/l3-agent.pid
16:57:03
$rm /home/user/.lilalo/l3-agent.pid

16:57:17
$l3-agent

16:57:23
$exit
exit
16:57:33
#xinit
kdeinit in malloc(): error: recursive call
kdeinit in malloc(): error: recursive call
kdeinit in malloc(): error: recursive call
kdeinit in malloc(): error: recursive call
kdeinit in malloc(): error: recursive call
kdeinit in malloc(): error: recursive call
kdeinit in malloc(): error: recursive call
kdeinit in malloc(): error: recursive call
kdeinit in malloc(): error: recursive call
kdeinit in malloc(): error: recursive call
...
kdeinit in malloc(): error: recursive call
kdeinit in malloc(): error: recursive call
kdeinit in malloc(): error: recursive call
kdeinit in malloc(): error: recursive call
kdeinit in malloc(): error: recursive call
kdeinit in malloc(): error: recursive call
kdeinit in malloc(): error: recursive call
kdeinit in malloc(): error: recursive call
kdeinit in malloc(): error: recursive call
kdeinit in malloc(): error: recursive call
16:59:42
#startkde: Done.
kdeinit: sending SIGTERM to children.
kdeinit: Exit.
\
>
16:59:45
#shutdown -p now
Shutdown NOW!
shutdown: [pid 4263]

Среда (04/05/06)

/dev/ttyp0
09:17:59
#ee /etc/inetd.conf
09:18:42
#ee /etc/rc.conf
09:19:30
#/etc/rc.d/inetd start
Starting inetd.
09:20:02
#ee /etc/inetd.conf
09:21:51
#/etc/rc.d/inetd restart
Stopping inetd.
Starting inetd.
09:22:22
#telnet 192.168.16.1
ifconfig
^C
09:23:24
#ipfw show
65535 64 3776 allow ip from any to any
09:23:35
#ping 192.168.16.1
PING 192.168.16.1 (192.168.16.1): 56 data bytes
64 bytes from 192.168.16.1: icmp_seq=0 ttl=64 time=0.309 ms
64 bytes from 192.168.16.1: icmp_seq=1 ttl=64 time=0.184 ms
^C
--- 192.168.16.1 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.184/0.246/0.309/0.062 ms
09:24:47
#host 192.168.16.1
;; connection timed out; no servers could be reached
09:25:20
#ifconfig
xl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        ether 00:01:02:b4:61:10
        media: Ethernet autoselect (none)
        status: no carrier
xl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet6 fe80::201:2ff:feb4:6197%xl1 prefixlen 64 scopeid 0x2
        inet 192.168.16.2 netmask 0xffffff00 broadcast 192.168.16.255
        ether 00:01:02:b4:61:97
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet 127.0.0.1 netmask 0xff000000
09:26:57
#ee /etc/rc.conf
09:29:15
#/etc/rc.d/netif restart
Stopping network: lo0 xl1.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet 127.0.0.1 netmask 0xff000000
xl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet6 fe80::201:2ff:feb4:6197%xl1 prefixlen 64 scopeid 0x2
        inet 192.168.15.21 netmask 0xffffff00 broadcast 192.168.15.255
        ether 00:01:02:b4:61:97
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
09:30:01
#/etc/rc.d/routing restart
route: writing to routing socket: Network is unreachable
add net default: gateway 192.168.16.1: Network is unreachable
Additional routing options: IP gateway=YES.
09:30:13
#sockstat -4
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
root     telnetd    929   0  tcp4   192.168.15.21:23      192.168.15.22:60759
root     telnetd    929   1  tcp4   192.168.15.21:23      192.168.15.22:60759
root     telnetd    929   2  tcp4   192.168.15.21:23      192.168.15.22:60759
root     telnetd    756   0  tcp4   192.168.16.2:23       192.168.16.1:49609
root     telnetd    756   1  tcp4   192.168.16.2:23       192.168.16.1:49609
root     telnetd    756   2  tcp4   192.168.16.2:23       192.168.16.1:49609
root     inetd      750   4  tcp4   *:23                  *:*
root     inetd      750   5  tcp4   *:13                  *:*
root     inetd      750   6  tcp4   *:7                   *:*
root     sendmail   443   3  tcp4   127.0.0.1:25          *:*
root     sshd       437   4  tcp4   *:22                  *:*
root     syslogd    311   6  udp4   *:514                 *:*
09:31:38
#wehereis sendmail
bash: wehereis: command not found
09:37:15
#whereis sendmail
sendmail: /usr/sbin/sendmail /usr/share/man/man8/sendmail.8.gz /usr/src/usr.sbin/sendmail
09:37:21
#ee /etc/inetd.conf
09:40:18
#/etc/rc.d/inetd restart
Stopping inetd.
Starting inetd.
09:40:40
#telnet 192.168.15.22
Trying 192.168.15.22...
Connected to fbsd2.linux.nt.
Escape character is '^]'.
Trying SRA secure login:
User (root): ^C
09:42:05
#telnet 192.168.15.22 nntp
Trying 192.168.15.22...
Connected to fbsd2.linux.nt.
Escape character is '^]'.
sh: can't access tty; job control turned off
\[v2#\!#$?#$UID#$$#$(/bin/date +%s)#$PWD#\033[1024D\033[K\]\[\033[0;31m\][\u@fbsd2:PS1=$ #
$^C^C^CTerminated: 15
/dev/ttyv1
09:43:24
#killall telnet
Password:
Last login: Wed Apr  5 09:25:48 2006 from mail.tex.kiev.u
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.
FreeBSD 4.9-RELEASE (dak) #0: Fri Nov  5 23:03:11 GMT 2004
Welcome to FreeBSD!
Before seeking technical support, please use the following resources:
o  Security advisories and updated errata information for all releases are
   at http://www.FreeBSD.org/releases/ - always consult the ERRATA section
   for your release first as it's updated frequently.
...
as a question to the questions@FreeBSD.org mailing list.  If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
man page.  If you are not familiar with man pages, type `man man'.
You may also use /stand/sysinstall to re-enter the installation and
configuration utility.  Edit /etc/motd to change this login announcement.
Could not chdir to home directory /home/taras: No such file or directory
$ su
Password:
You have mail.
mail# gunzip -d nm
09:43:48
#ee /etc/rc.conf
/dev/ttyp0
09:43:48
#which ssh
/usr/bin/ssh
09:47:24
#ldd `!!`
ldd `which ssh`
/usr/bin/ssh:
        libssh.so.3 => /usr/lib/libssh.so.3 (0x2808b000)
        libutil.so.5 => /lib/libutil.so.5 (0x280bd000)
        libz.so.3 => /lib/libz.so.3 (0x280c9000)
        libgssapi.so.8 => /usr/lib/libgssapi.so.8 (0x280d9000)
        libkrb5.so.8 => /usr/lib/libkrb5.so.8 (0x280e7000)
        libasn1.so.8 => /usr/lib/libasn1.so.8 (0x2811b000)
        libcom_err.so.3 => /usr/lib/libcom_err.so.3 (0x2813c000)
        libmd.so.3 => /lib/libmd.so.3 (0x2813e000)
        libroken.so.8 => /usr/lib/libroken.so.8 (0x2814c000)
        libcrypt.so.3 => /lib/libcrypt.so.3 (0x28158000)
        libcrypto.so.4 => /lib/libcrypto.so.4 (0x28170000)
        libc.so.6 => /lib/libc.so.6 (0x28262000)
09:47:32
#ldd `which ssh` | grep libw

09:50:26
#ldd `which sshd` | grep libw
        libwrap.so.4 => /usr/lib/libwrap.so.4 (0x280e8000)
09:53:03
#cd /etc/

09:54:00
#ls
X11                     login.conf.db           pwd.db
aliases                 mac.conf                rc
amd.map                 mail                    rc.bsdextended
apmd.conf               mail.rc                 rc.conf
auth.conf               make.conf               rc.conf.b
bluetooth               manpath.config          rc.d
crontab                 manpath.config.bak      rc.firewall
csh.cshrc               master.passwd           rc.firewall6
csh.login               motd                    rc.initdiskless
csh.logout              mtree                   rc.resume
...
hosts                   pccard_ether            spwd.db
hosts.allow             periodic                ssh
hosts.equiv             pf.conf                 ssl
hosts.lpd               pf.os                   sudosh.conf
inetd.conf              phones                  sysctl.conf
isdn                    portsnap.conf           syslog.conf
localtime               ppp                     termcap
locate.rc               printcap                ttys
login.access            profile                 usbd.conf
login.conf              protocols               wall_cmos_clock

Статистика

Время первой команды журнала16:09:52 2006- 4- 4
Время последней команды журнала09:54:00 2006- 4- 5
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, %16.83
Процент синтаксически неверно набранных команд, % 3.96
Суммарное время работы с терминалом *, час 1.43
Количество командных строк в единицу времени, команда/мин 1.18
Частота использования команд
ssh16|=============| 13.91%
ee8|======| 6.96%
ls8|======| 6.96%
ssh-keygen7|======| 6.09%
exit5|====| 4.35%
cd4|===| 3.48%
cat4|===| 3.48%
l3-agent4|===| 3.48%
>4|===| 3.48%
xinit4|===| 3.48%
authorized_k3|==| 2.61%
telnet3|==| 2.61%
touch3|==| 2.61%
ldd3|==| 2.61%
pwd3|==| 2.61%
/etc/rc.d/inetd3|==| 2.61%
eval2|=| 1.74%
ssh-add2|=| 1.74%
grep2|=| 1.74%
su2|=| 1.74%
ifconfig1|| 0.87%
xorgcfg1|| 0.87%
los1|| 0.87%
sockstat1|| 0.87%
man1|| 0.87%
host1|| 0.87%
whereis1|| 0.87%
Hangup1|| 0.87%
rm1|| 0.87%
DCOPClient::attachInternal.1|| 0.87%
killall1|| 0.87%
mv1|| 0.87%
startkde:1|| 0.87%
/etc/rc.d/netif1|| 0.87%
ping1|| 0.87%
authorized_1|| 0.87%
wehereis1|| 0.87%
\startkde:1|| 0.87%
konkueror1|| 0.87%
deco1|| 0.87%
ipfw1|| 0.87%
shutdown1|| 0.87%
/etc/rc.d/routing1|| 0.87%
which1|| 0.87%
startkde1|| 0.87%
____
*) Интервалы неактивности длительностью 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$