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

Содержание

Журнал

Пятница (03/28/08)

/dev/ttyp0
17:53:21
$ps aux
USER    PID %CPU %MEM   VSZ   RSS  TT  STAT STARTED      TIME COMMAND
root     10 94.2  0.0     0     8  ??  RL    4:37PM  15:05.89 [idle: cpu0]
root   2263  0.8  1.5  8860  7644  ??  Ss    4:52PM   0:00.56 l3-agent (perl5.8
user   2334  0.5  0.2  1348   948  p0  S+    4:53PM   0:00.03 script -t 0 -q /h
root     21  0.1  0.0     0     8  ??  WL    4:37PM   0:05.01 [irq14: ata0]
root      0  0.0  0.0     0     0  ??  WLs   4:37PM   0:00.00 [swapper]
root      1  0.0  0.1   768   368  ??  SLs   4:37PM   0:00.02 /sbin/init --
root      2  0.0  0.0     0     8  ??  DL    4:37PM   0:00.06 [g_event]
root      3  0.0  0.0     0     8  ??  DL    4:37PM   0:04.48 [g_up]
root      4  0.0  0.0     0     8  ??  DL    4:37PM   0:06.13 [g_down]
...
root   1039  0.0  0.2  1352   948  v3  Is+   4:37PM   0:00.00 /usr/libexec/gett
root   1040  0.0  0.2  1352   948  v4  Is+   4:37PM   0:00.00 /usr/libexec/gett
root   1041  0.0  0.2  1352   948  v5  Is+   4:37PM   0:00.00 /usr/libexec/gett
root   1042  0.0  0.2  1352   948  v6  Is+   4:37PM   0:00.00 /usr/libexec/gett
root   1043  0.0  0.2  1352   948  v7  Is+   4:37PM   0:00.00 /usr/libexec/gett
root    294  0.0  0.2  1472  1072 con- I+    4:37PM   0:00.01 dhclient: re0 [pr
root   2300  0.0  0.4  3288  2104  p0  Ss    4:52PM   0:00.02 /usr/local/bin/ba
root   2333  0.0  0.3  1804  1420  p0  S     4:53PM   0:00.01 su - user
user   2377  0.0  0.4  3280  2100  p1  Ss    4:53PM   0:00.02 /usr/local/bin/ba
user   2419  0.0  0.2  1480   968  p1  R+    4:53PM   0:00.00 ps aux
17:53:21
$ps aux
USER    PID %CPU %MEM   VSZ   RSS  TT  STAT STARTED      TIME COMMAND
root     10 94.2  0.0     0     8  ??  RL    4:37PM  15:05.89 [idle: cpu0]
root   2263  0.8  1.5  8860  7644  ??  Ss    4:52PM   0:00.56 l3-agent (perl5.8
user   2334  0.5  0.2  1348   948  p0  S+    4:53PM   0:00.03 script -t 0 -q /h
root     21  0.1  0.0     0     8  ??  WL    4:37PM   0:05.01 [irq14: ata0]
root      0  0.0  0.0     0     0  ??  WLs   4:37PM   0:00.00 [swapper]
root      1  0.0  0.1   768   368  ??  SLs   4:37PM   0:00.02 /sbin/init --
root      2  0.0  0.0     0     8  ??  DL    4:37PM   0:00.06 [g_event]
root      3  0.0  0.0     0     8  ??  DL    4:37PM   0:04.48 [g_up]
root      4  0.0  0.0     0     8  ??  DL    4:37PM   0:06.13 [g_down]
...
root   1039  0.0  0.2  1352   948  v3  Is+   4:37PM   0:00.00 /usr/libexec/gett
root   1040  0.0  0.2  1352   948  v4  Is+   4:37PM   0:00.00 /usr/libexec/gett
root   1041  0.0  0.2  1352   948  v5  Is+   4:37PM   0:00.00 /usr/libexec/gett
root   1042  0.0  0.2  1352   948  v6  Is+   4:37PM   0:00.00 /usr/libexec/gett
root   1043  0.0  0.2  1352   948  v7  Is+   4:37PM   0:00.00 /usr/libexec/gett
root    294  0.0  0.2  1472  1072 con- I+    4:37PM   0:00.01 dhclient: re0 [pr
root   2300  0.0  0.4  3288  2104  p0  Ss    4:52PM   0:00.02 /usr/local/bin/ba
root   2333  0.0  0.3  1804  1420  p0  S     4:53PM   0:00.01 su - user
user   2377  0.0  0.4  3280  2100  p1  Ss    4:53PM   0:00.02 /usr/local/bin/ba
user   2419  0.0  0.2  1480   968  p1  R+    4:53PM   0:00.00 ps aux
17:53:23
$vim .bash_profile
--- /tmp/l3-saved-2377.18889.1963	2008-03-28 16:53:41.000000000 +0000
+++ .bash_profile	2008-03-28 16:53:47.000000000 +0000
@@ -1,2 +1,2 @@
-l3-agent
-. .bashrc
+#l3-agent
+#. .bashrc
17:53:23
$vim .bash_profile
--- /tmp/l3-saved-2377.18889.1963	2008-03-28 16:53:41.000000000 +0000
+++ .bash_profile	2008-03-28 16:53:47.000000000 +0000
@@ -1,2 +1,2 @@
-l3-agent
-. .bashrc
+#l3-agent
+#. .bashrc

Понедельник (07/27/09)

/dev/ttyp1
17:41:30
$ssh user@192.168.16.7
The authenticity of host '192.168.16.7 (192.168.16.7)' can't be established.
DSA key fingerprint is 85:66:04:0d:64:83:45:f3:35:58:eb:35:cc:e5:92:50.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.16.7' (DSA) to the list of known hosts.
user@192.168.16.7's password:
Linux debiant 2.6.18-5-xen-686 #1 SMP Fri Jun 1 05:05:24 UTC 2007 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Jul 27 18:42:21 2009 from 192.168.16.6
l3-agent is already running: pid=1259; pidfile=/home/user/.lilalo/l3-agent.pid
17:41:30
$ssh user@192.168.16.7
The authenticity of host '192.168.16.7 (192.168.16.7)' can't be established.
DSA key fingerprint is 85:66:04:0d:64:83:45:f3:35:58:eb:35:cc:e5:92:50.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.16.7' (DSA) to the list of known hosts.
user@192.168.16.7's password:
Linux debiant 2.6.18-5-xen-686 #1 SMP Fri Jun 1 05:05:24 UTC 2007 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Jul 27 18:42:21 2009 from 192.168.16.6
l3-agent is already running: pid=1259; pidfile=/home/user/.lilalo/l3-agent.pid
прошло >2 часов
/dev/ttyp1
20:17:42
$ifconfig -a
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING>
        inet 192.168.16.26 netmask 0xffffff00 broadcast 192.168.16.255
        ether 00:16:3e:44:00:06
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
20:17:42
$ifconfig -a
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING>
        inet 192.168.16.26 netmask 0xffffff00 broadcast 192.168.16.255
        ether 00:16:3e:44:00:06
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
20:17:52
$ls
Desktop         gdb.core        ug-bsdnet.pdf   ug-lnet.pdf
20:17:52
$ls
Desktop         gdb.core        ug-bsdnet.pdf   ug-lnet.pdf
20:21:16
$cd ..

20:21:16
$cd ..

20:21:21
$ls
user
20:21:21
$ls
user
20:21:23
$cd ./

20:21:23
$cd ./

20:21:29
$ls
user
20:21:29
$ls
user
20:21:31
$cd ../

20:21:31
$cd ../

20:21:37
$ls
COPYRIGHT       dev             lib             moused.core     sys
bin             dist            libexec         proc            tmp
boot            entropy         log             rescue          usr
cdrom           etc             media           root            var
compat          home            mnt             sbin            xdm.core
20:21:37
$ls
COPYRIGHT       dev             lib             moused.core     sys
bin             dist            libexec         proc            tmp
boot            entropy         log             rescue          usr
cdrom           etc             media           root            var
compat          home            mnt             sbin            xdm.core
20:21:39
$cd /etc

20:21:39
$cd /etc

20:21:48
$ls
X11                     login.conf              profile
aliases                 login.conf.db           protocols
amd.map                 mac.conf                pwd.db
apmd.conf               mail                    rc
auth.conf               mail.rc                 rc.bsdextended
bluetooth               make.conf               rc.conf
crontab                 manpath.config          rc.d
csh.cshrc               manpath.config.bak      rc.firewall
csh.login               manpath.config.bak.xorg rc.firewall6
csh.logout              master.passwd           rc.initdiskless
...
hosts                   passwd                  snmpd.config
hosts.allow             pccard_ether            spwd.db
hosts.equiv             periodic                ssh
hosts.lpd               periodic.conf           ssl
inetd.conf              pf.conf                 sysctl.conf
isdn                    pf.os                   syslog.conf
lilalo                  phones                  termcap
localtime               portsnap.conf           ttys
locate.rc               ppp                     usbd.conf
login.access            printcap                wall_cmos_clock
20:21:48
$ls
X11                     login.conf              profile
aliases                 login.conf.db           protocols
amd.map                 mac.conf                pwd.db
apmd.conf               mail                    rc
auth.conf               mail.rc                 rc.bsdextended
bluetooth               make.conf               rc.conf
crontab                 manpath.config          rc.d
csh.cshrc               manpath.config.bak      rc.firewall
csh.login               manpath.config.bak.xorg rc.firewall6
csh.logout              master.passwd           rc.initdiskless
...
hosts                   passwd                  snmpd.config
hosts.allow             pccard_ether            spwd.db
hosts.equiv             periodic                ssh
hosts.lpd               periodic.conf           ssl
inetd.conf              pf.conf                 sysctl.conf
isdn                    pf.os                   syslog.conf
lilalo                  phones                  termcap
localtime               portsnap.conf           ttys
locate.rc               ppp                     usbd.conf
login.access            printcap                wall_cmos_clock
20:21:50
$echo rc.conf | more
20:21:50
$echo rc.conf | more
20:22:19
$cat.conf | more
20:22:19
$cat.conf | more
20:22:27
$ifconfig -a
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING>
        inet 192.168.16.26 netmask 0xffffff00 broadcast 192.168.16.255
        ether 00:16:3e:44:00:06
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
20:22:27
$ifconfig -a
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING>
        inet 192.168.16.26 netmask 0xffffff00 broadcast 192.168.16.255
        ether 00:16:3e:44:00:06
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
20:24:14
$shutdown -r now
bash: /sbin/shutdown: Permission denied
20:24:14
$shutdown -r now
bash: /sbin/shutdown: Permission denied
20:26:43
$su
Password:
su: Sorry
20:26:43
$su
Password:
su: Sorry
20:26:52
$su
Password:
su: Sorry
20:26:52
$su
Password:
su: Sorry
20:26:59
$su2
bash: su2: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ
20:26:59
$su2
bash: su2: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ
20:27:02
$su
Password:
su: Sorry
20:27:02
$su
Password:
su: Sorry
20:27:10
$su
Password:
su: Sorry
20:27:10
$su
Password:
su: Sorry
20:27:16
$su2
bash: su2: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ
20:27:16
$su2
bash: su2: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ
20:27:18
$su
Password:
su: Sorry
20:27:18
$su
Password:
su: Sorry
20:27:33
$vncviewer
VNC Viewer Free Edition 4.1.2 for X - built Dec  1 2007 13:33:23
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
vncviewer: unable to open display ""
20:27:33
$vncviewer
VNC Viewer Free Edition 4.1.2 for X - built Dec  1 2007 13:33:23
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
vncviewer: unable to open display ""
20:28:42
$vncviewer 192.168.16.26:02
VNC Viewer Free Edition 4.1.2 for X - built Dec  1 2007 13:33:23
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
vncviewer: unable to open display ""
20:28:42
$vncviewer 192.168.16.26:02
VNC Viewer Free Edition 4.1.2 for X - built Dec  1 2007 13:33:23
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
vncviewer: unable to open display ""
20:28:50
$vnsiewer 192.168.16.26:02
bash: vnsviewer: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ
20:28:50
$vnsiewer 192.168.16.26:02
bash: vnsviewer: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ
20:29:08
$vnciewer 192.168.16.26:02
VNC Viewer Free Edition 4.1.2 for X - built Dec  1 2007 13:33:23
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
vncviewer: unable to open display ""
20:29:08
$vnciewer 192.168.16.26:02
VNC Viewer Free Edition 4.1.2 for X - built Dec  1 2007 13:33:23
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
vncviewer: unable to open display ""
20:29:32
$vncviewer 192.168.16.26:02

20:29:32
$vncviewer 192.168.16.26:02

/dev/ttyp1
20:30:14
$vncviewer 192.168.16.26:02
VNC Viewer Free Edition 4.1.2 for X - built Dec  1 2007 13:33:23
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
vncviewer: unable to open display ""
20:30:14
$vncviewer 192.168.16.26:02
VNC Viewer Free Edition 4.1.2 for X - built Dec  1 2007 13:33:23
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
vncviewer: unable to open display ""
20:31:09
$vncviewer 192.168.16.26:02

20:31:09
$vncviewer 192.168.16.26:02

/dev/ttyp1
20:31:59
$cd /etc/

20:31:59
$cd /etc/

20:32:08
$cat rc.conf
sshd_enable="yes"
font8x14="cp866-8x14"
font8x16="cp866b-8x16"
font8x8="cp866-8x8"
keymap="ru.koi8-r"
keyrate="normal"
local_startup="/usr/local/etc/rc.d"
mousechar_start="3"
moused_enable="YES"
saver="fire"
scrnmap="koi8-r2cp866"
usbd_enable="YES"
inetd_enable=yes
ifconfig_re0="inet 192.168.16.250  netmask 255.255.255.0"
defaultrouter="192.168.16.254"
hostname="fbsdvm.unix.nt"
ifconfig_re0="inet 192.168.16.26  netmask 255.255.255.0"
hostname="fbsd6.net.nt"
20:32:08
$cat rc.conf
sshd_enable="yes"
font8x14="cp866-8x14"
font8x16="cp866b-8x16"
font8x8="cp866-8x8"
keymap="ru.koi8-r"
keyrate="normal"
local_startup="/usr/local/etc/rc.d"
mousechar_start="3"
moused_enable="YES"
saver="fire"
scrnmap="koi8-r2cp866"
usbd_enable="YES"
inetd_enable=yes
ifconfig_re0="inet 192.168.16.250  netmask 255.255.255.0"
defaultrouter="192.168.16.254"
hostname="fbsdvm.unix.nt"
ifconfig_re0="inet 192.168.16.26  netmask 255.255.255.0"
hostname="fbsd6.net.nt"
20:32:14
$vncviewer 192.168.16.26:02
VNC Viewer Free Edition 4.1.2 for X - built Dec  1 2007 13:33:23
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
vncviewer: unable to open display ""
20:32:14
$vncviewer 192.168.16.26:02
VNC Viewer Free Edition 4.1.2 for X - built Dec  1 2007 13:33:23
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
vncviewer: unable to open display ""
20:34:33
$ps
  PID  TT  STAT      TIME COMMAND
 2136  p1  Ss+    0:00,04 script -t 0 -q /home/user/.lilalo//1365574555023293-1248719519.script
 2179  p2  Ss     0:00,03 /usr/local/bin/bash -i
 2308  p2  R+     0:00,00 ps
20:34:33
$ps
  PID  TT  STAT      TIME COMMAND
 2136  p1  Ss+    0:00,04 script -t 0 -q /home/user/.lilalo//1365574555023293-1248719519.script
 2179  p2  Ss     0:00,03 /usr/local/bin/bash -i
 2308  p2  R+     0:00,00 ps
прошло 13 минут
20:48:19
$ping 192.168.16.7
PING 192.168.16.7 (192.168.16.7): 56 data bytes
64 bytes from 192.168.16.7: icmp_seq=0 ttl=64 time=0.228 ms
^C
--- 192.168.16.7 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.228/0.228/0.228/0.000 ms
20:48:19
$ping 192.168.16.7
PING 192.168.16.7 (192.168.16.7): 56 data bytes
64 bytes from 192.168.16.7: icmp_seq=0 ttl=64 time=0.228 ms
^C
--- 192.168.16.7 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.228/0.228/0.228/0.000 ms
20:48:33
$ping 192.168.16.27
PING 192.168.16.27 (192.168.16.27): 56 data bytes
64 bytes from 192.168.16.27: icmp_seq=0 ttl=64 time=0.721 ms
64 bytes from 192.168.16.27: icmp_seq=1 ttl=64 time=0.291 ms
^C
--- 192.168.16.27 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.291/0.506/0.721/0.215 ms
20:48:33
$ping 192.168.16.27
PING 192.168.16.27 (192.168.16.27): 56 data bytes
64 bytes from 192.168.16.27: icmp_seq=0 ttl=64 time=0.721 ms
64 bytes from 192.168.16.27: icmp_seq=1 ttl=64 time=0.291 ms
^C
--- 192.168.16.27 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.291/0.506/0.721/0.215 ms
20:48:37
$man ports
20:48:37
$man ports
/dev/ttyp3
20:57:49
$ssh user@192.68.16.26
^C
20:57:49
$ssh user@192.68.16.26
^C
20:58:31
$ssh user@192.18.16.26
The authenticity of host '192.168.16.26 (192.168.16.26)' can't be established.
DSA key fingerprint is 13:3f:fb:2a:53:62:8e:f8:0e:c7:3a:c9:10:99:b6:25.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.16.26' (DSA) to the list of known hosts.
Password:
Last login: Mon Jul 27 21:54:55 2009
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.
FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008
Welcome to FreeBSD!
...
   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.
Removing stale pidfile
20:58:31
$ssh user@192.18.16.26
The authenticity of host '192.168.16.26 (192.168.16.26)' can't be established.
DSA key fingerprint is 13:3f:fb:2a:53:62:8e:f8:0e:c7:3a:c9:10:99:b6:25.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.16.26' (DSA) to the list of known hosts.
Password:
Last login: Mon Jul 27 21:54:55 2009
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.
FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008
Welcome to FreeBSD!
...
   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.
Removing stale pidfile
/dev/ttyp1
21:00:38
$ping 192.168.16.27

21:00:38
$ping 192.168.16.27

прошло 13 минут
21:13:47
$cd /etc/services
bash: cd: /etc/services: Not a directory
21:13:47
$cd /etc/services
bash: cd: /etc/services: Not a directory
21:14:16
$cd .etc/services
bash: cd: ./etc/services: No such file or directory
21:14:16
$cd .etc/services
bash: cd: ./etc/services: No such file or directory
21:14:23
$cd ..etc/services
bash: cd: ../etc/services: Not a directory
21:14:23
$cd ..etc/services
bash: cd: ../etc/services: Not a directory
21:14:26
$cd ../etc

21:14:26
$cd ../etc

21:14:32
$ls
X11                     dumpdates               lilalo                  mtree                   periodic                rc.firewall             shells
aliases                 fbtab                   localtime               namedb                  periodic.conf           rc.firewall6            skel
amd.map                 freebsd-update.conf     locate.rc               netconfig               pf.conf                 rc.initdiskless         snmpd.config
apmd.conf               fstab                   login.access            netstart                pf.os                   rc.resume               spwd.db
auth.conf               ftpusers                login.conf              network.subr            phones                  rc.sendmail             ssh
bluetooth               gettytab                login.conf.db           networks                portsnap.conf           rc.shutdown             ssl
crontab                 gnats                   mac.conf                newsyslog.conf          ppp                     rc.subr                 sysctl.conf
csh.cshrc               group                   mail                    nsmb.conf               printcap                rc.suspend              syslog.conf
csh.login               host.conf               mail.rc                 nsswitch.conf           profile                 remote                  termcap
csh.logout              hosts                   make.conf               ntp                     protocols               resolv.conf             ttys
defaults                hosts.allow             manpath.config          opieaccess              pwd.db                  resolv.conf.save        usbd.conf
devd.conf               hosts.equiv             manpath.config.bak      opiekeys                rc                      rmt                     wall_cmos_clock
devfs.conf              hosts.lpd               manpath.config.bak.xorg pam.d                   rc.bsdextended          rpc
dhclient.conf           inetd.conf              master.passwd           passwd                  rc.conf                 security
disktab                 isdn                    motd                    pccard_ether            rc.d                    services
21:14:32
$ls
X11                     dumpdates               lilalo                  mtree                   periodic                rc.firewall             shells
aliases                 fbtab                   localtime               namedb                  periodic.conf           rc.firewall6            skel
amd.map                 freebsd-update.conf     locate.rc               netconfig               pf.conf                 rc.initdiskless         snmpd.config
apmd.conf               fstab                   login.access            netstart                pf.os                   rc.resume               spwd.db
auth.conf               ftpusers                login.conf              network.subr            phones                  rc.sendmail             ssh
bluetooth               gettytab                login.conf.db           networks                portsnap.conf           rc.shutdown             ssl
crontab                 gnats                   mac.conf                newsyslog.conf          ppp                     rc.subr                 sysctl.conf
csh.cshrc               group                   mail                    nsmb.conf               printcap                rc.suspend              syslog.conf
csh.login               host.conf               mail.rc                 nsswitch.conf           profile                 remote                  termcap
csh.logout              hosts                   make.conf               ntp                     protocols               resolv.conf             ttys
defaults                hosts.allow             manpath.config          opieaccess              pwd.db                  resolv.conf.save        usbd.conf
devd.conf               hosts.equiv             manpath.config.bak      opiekeys                rc                      rmt                     wall_cmos_clock
devfs.conf              hosts.lpd               manpath.config.bak.xorg pam.d                   rc.bsdextended          rpc
dhclient.conf           inetd.conf              master.passwd           passwd                  rc.conf                 security
disktab                 isdn                    motd                    pccard_ether            rc.d                    services
21:14:35
$cat services
healthd         1281/tcp   #healthd
healthd         1281/udp   #healthd
alta-ana-lm     1346/tcp   #Alta Analytics License Manager
alta-ana-lm     1346/udp   #Alta Analytics License Manager
bbn-mmc         1347/tcp   #multi media conferencing
bbn-mmc         1347/udp   #multi media conferencing
bbn-mmx         1348/tcp   #multi media conferencing
bbn-mmx         1348/udp   #multi media conferencing
sbook           1349/tcp   #Registration Network Protocol
sbook           1349/udp   #Registration Network Protocol
...
ibm-mqseries    1414/udp   #IBM MQSeries
dbstar          1415/tcp
dbstar          1415/udp
novell-lu6.2    1416/tcp   #Novell LU6.2
novell-lu6.2    1416/udp   #Novell LU6.2
timbuktu-srv1   1417/tcp   #Timbuktu Service 1 Port
timbuktu-srv1   1417/udp   #Timbuktu Service 1 Port
timbuktu-srv2   1418/tcp   #Timbuktu Service 2 Port
timbuktu-srv2   1418/udp   #Timbuktu Service 2 Port
timbuktu-srv3   1419/tcp   #Timbuktu Service 3 Port
21:14:35
$cat services
healthd         1281/tcp   #healthd
healthd         1281/udp   #healthd
alta-ana-lm     1346/tcp   #Alta Analytics License Manager
alta-ana-lm     1346/udp   #Alta Analytics License Manager
bbn-mmc         1347/tcp   #multi media conferencing
bbn-mmc         1347/udp   #multi media conferencing
bbn-mmx         1348/tcp   #multi media conferencing
bbn-mmx         1348/udp   #multi media conferencing
sbook           1349/tcp   #Registration Network Protocol
sbook           1349/udp   #Registration Network Protocol
...
ibm-mqseries    1414/udp   #IBM MQSeries
dbstar          1415/tcp
dbstar          1415/udp
novell-lu6.2    1416/tcp   #Novell LU6.2
novell-lu6.2    1416/udp   #Novell LU6.2
timbuktu-srv1   1417/tcp   #Timbuktu Service 1 Port
timbuktu-srv1   1417/udp   #Timbuktu Service 1 Port
timbuktu-srv2   1418/tcp   #Timbuktu Service 2 Port
timbuktu-srv2   1418/udp   #Timbuktu Service 2 Port
timbuktu-srv3   1419/tcp   #Timbuktu Service 3 Port
21:14:46
$cat sinetd.conf
cat: sinetd.conf: No such file or directory
21:14:46
$cat sinetd.conf
cat: sinetd.conf: No such file or directory
21:15:22
$cat inetd.conf
# $FreeBSD: src/etc/inetd.conf,v 1.70.2.2 2006/09/07 20:03:25 obrien Exp $
#
# Internet server configuration database
#
# Define *both* IPv4 and IPv6 entries for dual-stack support.
# To disable a service, comment it out by prefixing the line with '#'.
# To enable a service, remove the '#' at the beginning of the line.
#
#ftp    stream  tcp     nowait  root    /usr/libexec/ftpd       ftpd -l
#ftp    stream  tcp6    nowait  root    /usr/libexec/ftpd       ftpd -l
...
#netbios-ssn stream tcp nowait          root    /usr/local/sbin/smbd    smbd
#netbios-ns dgram udp   wait            root    /usr/local/sbin/nmbd    nmbd
#swat   stream  tcp     nowait/400      root    /usr/local/sbin/swat    swat
#
# Enable the following entry to enable ftp-proxy to NAT ftp sessions with pf
# N.B.: inetd binds to * in the default installation so you should add
#       an appropriate block rule to your pf.conf
#
#ftp-proxy      stream  tcp     nowait  root    /usr/libexec/ftp-proxy  ftp-proxy
vnc1 stream tcp nowait nobody /usr/X11R6/bin/Xvnc Xvnc -inetd  -query localhost -depth 24 -geometry 1000x700 SecurityTypes=none
21:15:22
$cat inetd.conf
# $FreeBSD: src/etc/inetd.conf,v 1.70.2.2 2006/09/07 20:03:25 obrien Exp $
#
# Internet server configuration database
#
# Define *both* IPv4 and IPv6 entries for dual-stack support.
# To disable a service, comment it out by prefixing the line with '#'.
# To enable a service, remove the '#' at the beginning of the line.
#
#ftp    stream  tcp     nowait  root    /usr/libexec/ftpd       ftpd -l
#ftp    stream  tcp6    nowait  root    /usr/libexec/ftpd       ftpd -l
...
#netbios-ssn stream tcp nowait          root    /usr/local/sbin/smbd    smbd
#netbios-ns dgram udp   wait            root    /usr/local/sbin/nmbd    nmbd
#swat   stream  tcp     nowait/400      root    /usr/local/sbin/swat    swat
#
# Enable the following entry to enable ftp-proxy to NAT ftp sessions with pf
# N.B.: inetd binds to * in the default installation so you should add
#       an appropriate block rule to your pf.conf
#
#ftp-proxy      stream  tcp     nowait  root    /usr/libexec/ftp-proxy  ftp-proxy
vnc1 stream tcp nowait nobody /usr/X11R6/bin/Xvnc Xvnc -inetd  -query localhost -depth 24 -geometry 1000x700 SecurityTypes=none
21:15:26
$vinetd.conf
#  NOTE: This is no longer the correct way to handle incoming SMTP
#        connections for qmail.  Use tcpserver (http://cr.yp.to/ucspi-tcp.html)
#        instead.
#
#smtp   stream  tcp     nowait  qmaild  /var/qmail/bin/tcp-env  tcp-env /var/qmail/bin/qmail-smtpd
#
# Enable the following two entries to enable samba startup from inetd
# (from the Samba documentation).  Enable the third entry to enable the swat
# samba configuration tool.
#
...
# N.B.: inetd binds to * in the default installation so you should add
#       an appropriate block rule to your pf.conf
#
#ftp-proxy      stream  tcp     nowait  root    /usr/libexec/ftp-proxy  ftp-proxy
vnc1 stream tcp nowait nobody /usr/X11R6/bin/Xvnc Xvnc -inetd  -query localhost -depth 24 -geometry 1000x700 SecurityTypes=none
q ÎÅ Ñ×ÌÑÅÔÓÑ ËÏÍÁÎÄÏÊ VI
:
îÅÐÒÁ×ÉÌØÎÙÊ ÁÄÒÅÓ: ×ÓÅÇÏ 127 ÓÔÒÏË × ÆÁÊÌÅ
:^[OA^[OA^[OA^C
:quit
21:15:26
$vinetd.conf
#  NOTE: This is no longer the correct way to handle incoming SMTP
#        connections for qmail.  Use tcpserver (http://cr.yp.to/ucspi-tcp.html)
#        instead.
#
#smtp   stream  tcp     nowait  qmaild  /var/qmail/bin/tcp-env  tcp-env /var/qmail/bin/qmail-smtpd
#
# Enable the following two entries to enable samba startup from inetd
# (from the Samba documentation).  Enable the third entry to enable the swat
# samba configuration tool.
#
...
# N.B.: inetd binds to * in the default installation so you should add
#       an appropriate block rule to your pf.conf
#
#ftp-proxy      stream  tcp     nowait  root    /usr/libexec/ftp-proxy  ftp-proxy
vnc1 stream tcp nowait nobody /usr/X11R6/bin/Xvnc Xvnc -inetd  -query localhost -depth 24 -geometry 1000x700 SecurityTypes=none
q ÎÅ Ñ×ÌÑÅÔÓÑ ËÏÍÁÎÄÏÊ VI
:
îÅÐÒÁ×ÉÌØÎÙÊ ÁÄÒÅÓ: ×ÓÅÇÏ 127 ÓÔÒÏË × ÆÁÊÌÅ
:^[OA^[OA^[OA^C
:quit

Файлы

  • inetd.conf
  • rc.conf
  • services
  • inetd.conf
    >
    # $FreeBSD: src/etc/inetd.conf,v 1.70.2.2 2006/09/07 20:03:25 obrien Exp $
    #
    # Internet server configuration database
    #
    # Define *both* IPv4 and IPv6 entries for dual-stack support.
    # To disable a service, comment it out by prefixing the line with '#'.
    # To enable a service, remove the '#' at the beginning of the line.
    #
    #ftp    stream  tcp     nowait  root    /usr/libexec/ftpd       ftpd -l
    #ftp    stream  tcp6    nowait  root    /usr/libexec/ftpd       ftpd -l
    #ftp    stream  tcp     nowait  root    /usr/libexec/lukemftpd  ftpd -l -r
    #ftp    stream  tcp6    nowait  root    /usr/libexec/lukemftpd  ftpd -l -r
    #ssh    stream  tcp     nowait  root    /usr/sbin/sshd          sshd -i -4
    #ssh    stream  tcp6    nowait  root    /usr/sbin/sshd          sshd -i -6
    #telnet stream  tcp     nowait  root    /usr/libexec/telnetd    telnetd
    #telnet stream  tcp6    nowait  root    /usr/libexec/telnetd    telnetd
    #shell  stream  tcp     nowait  root    /usr/libexec/rshd       rshd
    #shell  stream  tcp6    nowait  root    /usr/libexec/rshd       rshd
    #login  stream  tcp     nowait  root    /usr/libexec/rlogind    rlogind
    #login  stream  tcp6    nowait  root    /usr/libexec/rlogind    rlogind
    #finger stream  tcp     nowait/3/10 nobody /usr/libexec/fingerd fingerd -s
    #finger stream  tcp6    nowait/3/10 nobody /usr/libexec/fingerd fingerd -s
    #
    # run comsat as root to be able to print partial mailbox contents w/ biff,
    # or use the safer tty:tty to just print that new mail has been received.
    #comsat dgram   udp     wait    tty:tty /usr/libexec/comsat     comsat
    #
    # ntalk is required for the 'talk' utility to work correctly
    #ntalk  dgram   udp     wait    tty:tty /usr/libexec/ntalkd     ntalkd
    #tftp   dgram   udp     wait    root    /usr/libexec/tftpd      tftpd -l -s /tftpboot
    #tftp   dgram   udp6    wait    root    /usr/libexec/tftpd      tftpd -l -s /tftpboot
    #bootps dgram   udp     wait    root    /usr/libexec/bootpd     bootpd
    #
    # "Small servers" -- used to be standard on, but we're more conservative
    # about things due to Internet security concerns.  Only turn on what you
    # need.
    #
    #daytime stream tcp     nowait  root    internal
    #daytime stream tcp6    nowait  root    internal
    #daytime dgram  udp     wait    root    internal
    #daytime dgram  udp6    wait    root    internal
    #time   stream  tcp     nowait  root    internal
    #time   stream  tcp6    nowait  root    internal
    #time    dgram  udp     wait    root    internal
    #time    dgram  udp6    wait    root    internal
    #echo   stream  tcp     nowait  root    internal
    #echo   stream  tcp6    nowait  root    internal
    #echo   dgram   udp     wait    root    internal
    #echo   dgram   udp6    wait    root    internal
    #discard stream tcp     nowait  root    internal
    #discard stream tcp6    nowait  root    internal
    #discard dgram  udp     wait    root    internal
    #discard dgram  udp6    wait    root    internal
    #chargen stream tcp     nowait  root    internal
    #chargen stream tcp6    nowait  root    internal
    #chargen dgram  udp     wait    root    internal
    #chargen dgram  udp6    wait    root    internal
    #
    # CVS servers - for master CVS repositories only!  You must set the
    # --allow-root path correctly or you open a trivial to exploit but
    # deadly security hole.
    #
    #cvspserver     stream  tcp     nowait  root    /usr/bin/cvs    cvs --allow-root=/your/cvsroot/here pserver
    #cvspserver     stream  tcp     nowait  root    /usr/bin/cvs    cvs --allow-root=/your/cvsroot/here kserver
    #
    # RPC based services (you MUST have rpcbind running to use these)
    #
    #rstatd/1-3     dgram rpc/udp wait root /usr/libexec/rpc.rstatd  rpc.rstatd
    #rusersd/1-2    dgram rpc/udp wait root /usr/libexec/rpc.rusersd rpc.rusersd
    #walld/1        dgram rpc/udp wait root /usr/libexec/rpc.rwalld  rpc.rwalld
    #pcnfsd/1-2     dgram rpc/udp wait root /usr/local/libexec/rpc.pcnfsd    rpc.pcnfsd
    #rquotad/1      dgram rpc/udp wait root /usr/libexec/rpc.rquotad rpc.rquotad
    #sprayd/1       dgram rpc/udp wait root /usr/libexec/rpc.sprayd  rpc.sprayd
    #
    # example entry for the optional pop3 server
    #
    #pop3   stream  tcp     nowait  root    /usr/local/libexec/popper       popper
    #
    # example entry for the optional imap4 server
    #
    #imap4  stream  tcp     nowait  root    /usr/local/libexec/imapd        imapd
    #
    # example entry for the optional nntp server
    #
    #nntp   stream  tcp     nowait  news    /usr/local/libexec/nntpd        nntpd
    #
    # example entry for the optional uucpd server
    #
    #uucpd  stream  tcp     nowait  root    /usr/local/libexec/uucpd        uucpd
    #
    # Return error for all "ident" requests
    #
    #auth   stream  tcp     nowait  root    internal
    #auth   stream  tcp6    nowait  root    internal
    #
    # Provide internally a real "ident" service which provides ~/.fakeid support,
    # provides ~/.noident support, reports UNKNOWN as the operating system type
    # and times out after 30 seconds.
    #
    #auth   stream  tcp     nowait  root    internal        auth -r -f -n -o UNKNOWN -t 30
    #auth   stream  tcp6    nowait  root    internal        auth -r -f -n -o UNKNOWN -t 30
    #
    # Example entry for an external ident server
    #
    #auth   stream  tcp     wait    root    /usr/local/sbin/identd  identd -w -t120
    #
    # Example entry for the optional qmail MTA
    #  NOTE: This is no longer the correct way to handle incoming SMTP
    #        connections for qmail.  Use tcpserver (http://cr.yp.to/ucspi-tcp.html)
    #        instead.
    #
    #smtp   stream  tcp     nowait  qmaild  /var/qmail/bin/tcp-env  tcp-env /var/qmail/bin/qmail-smtpd
    #
    # Enable the following two entries to enable samba startup from inetd
    # (from the Samba documentation).  Enable the third entry to enable the swat
    # samba configuration tool.
    #
    #netbios-ssn stream tcp nowait          root    /usr/local/sbin/smbd    smbd
    #netbios-ns dgram udp   wait            root    /usr/local/sbin/nmbd    nmbd
    #swat   stream  tcp     nowait/400      root    /usr/local/sbin/swat    swat
    #
    # Enable the following entry to enable ftp-proxy to NAT ftp sessions with pf
    # N.B.: inetd binds to * in the default installation so you should add
    #       an appropriate block rule to your pf.conf
    #
    #ftp-proxy      stream  tcp     nowait  root    /usr/libexec/ftp-proxy  ftp-proxy
    vnc1 stream tcp nowait nobody /usr/X11R6/bin/Xvnc Xvnc -inetd  -query localhost -depth 24 -geometry 1000x700 SecurityTypes=none
    
    rc.conf
    >
    sshd_enable="yes"
    font8x14="cp866-8x14"
    font8x16="cp866b-8x16"
    font8x8="cp866-8x8"
    keymap="ru.koi8-r"
    keyrate="normal"
    local_startup="/usr/local/etc/rc.d"
    mousechar_start="3"
    moused_enable="YES"
    saver="fire"
    scrnmap="koi8-r2cp866"
    usbd_enable="YES"
    inetd_enable=yes
    ifconfig_re0="inet 192.168.16.250  netmask 255.255.255.0"
    defaultrouter="192.168.16.254"
    hostname="fbsdvm.unix.nt"
    ifconfig_re0="inet 192.168.16.26  netmask 255.255.255.0"
    hostname="fbsd6.net.nt"
    
    services
    >
    healthd         1281/tcp   #healthd
    healthd         1281/udp   #healthd
    alta-ana-lm     1346/tcp   #Alta Analytics License Manager
    alta-ana-lm     1346/udp   #Alta Analytics License Manager
    bbn-mmc         1347/tcp   #multi media conferencing
    bbn-mmc         1347/udp   #multi media conferencing
    bbn-mmx         1348/tcp   #multi media conferencing
    bbn-mmx         1348/udp   #multi media conferencing
    sbook           1349/tcp   #Registration Network Protocol
    sbook           1349/udp   #Registration Network Protocol
    editbench       1350/tcp   #Registration Network Protocol
    editbench       1350/udp   #Registration Network Protocol
    equationbuilder 1351/tcp   #Digital Tool Works (MIT)
    equationbuilder 1351/udp   #Digital Tool Works (MIT)
    lotusnote       1352/tcp   #Lotus Note
    lotusnote       1352/udp   #Lotus Note
    relief          1353/tcp   #Relief Consulting
    relief          1353/udp   #Relief Consulting
    rightbrain      1354/tcp   #RightBrain Software
    rightbrain      1354/udp   #RightBrain Software
    intuitive-edge  1355/tcp   #Intuitive Edge
    intuitive-edge  1355/udp   #Intuitive Edge
    cuillamartin    1356/tcp   #CuillaMartin Company
    cuillamartin    1356/udp   #CuillaMartin Company
    pegboard        1357/tcp   #Electronic PegBoard
    pegboard        1357/udp   #Electronic PegBoard
    connlcli        1358/tcp
    connlcli        1358/udp
    ftsrv           1359/tcp
    ftsrv           1359/udp
    mimer           1360/tcp
    mimer           1360/udp
    linx            1361/tcp
    linx            1361/udp
    timeflies       1362/tcp
    timeflies       1362/udp
    ndm-requester   1363/tcp   #Network DataMover Requester
    ndm-requester   1363/udp   #Network DataMover Requester
    ndm-server      1364/tcp   #Network DataMover Server
    ndm-server      1364/udp   #Network DataMover Server
    adapt-sna       1365/tcp   #Network Software Associates
    adapt-sna       1365/udp   #Network Software Associates
    netware-csp     1366/tcp   #Novell NetWare Comm Service Platform
    netware-csp     1366/udp   #Novell NetWare Comm Service Platform
    dcs             1367/tcp
    dcs             1367/udp
    screencast      1368/tcp
    screencast      1368/udp
    gv-us           1369/tcp   #GlobalView to Unix Shell
    gv-us           1369/udp   #GlobalView to Unix Shell
    us-gv           1370/tcp   #Unix Shell to GlobalView
    us-gv           1370/udp   #Unix Shell to GlobalView
    fc-cli          1371/tcp   #Fujitsu Config Protocol
    fc-cli          1371/udp   #Fujitsu Config Protocol
    fc-ser          1372/tcp   #Fujitsu Config Protocol
    fc-ser          1372/udp   #Fujitsu Config Protocol
    chromagrafx     1373/tcp
    chromagrafx     1373/udp
    molly           1374/tcp   #EPI Software Systems
    molly           1374/udp   #EPI Software Systems
    bytex           1375/tcp
    bytex           1375/udp
    ibm-pps         1376/tcp   #IBM Person to Person Software
    ibm-pps         1376/udp   #IBM Person to Person Software
    cichlid         1377/tcp   #Cichlid License Manager
    cichlid         1377/udp   #Cichlid License Manager
    elan            1378/tcp   #Elan License Manager
    elan            1378/udp   #Elan License Manager
    dbreporter      1379/tcp   #Integrity Solutions
    dbreporter      1379/udp   #Integrity Solutions
    telesis-licman  1380/tcp   #Telesis Network License Manager
    telesis-licman  1380/udp   #Telesis Network License Manager
    apple-licman    1381/tcp   #Apple Network License Manager
    apple-licman    1381/udp   #Apple Network License Manager
    #udt_os         1382/tcp
    #udt_os         1382/udp
    gwha            1383/tcp   #GW Hannaway Network License Manager
    gwha            1383/udp   #GW Hannaway Network License Manager
    os-licman       1384/tcp   #Objective Solutions License Manager
    os-licman       1384/udp   #Objective Solutions License Manager
    atex_elmd       1385/tcp   #Atex Publishing License Manager
    atex_elmd       1385/udp   #Atex Publishing License Manager
    checksum        1386/tcp   #CheckSum License Manager
    checksum        1386/udp   #CheckSum License Manager
    cadsi-lm        1387/tcp   #Computer Aided Design Software Inc LM
    cadsi-lm        1387/udp   #Computer Aided Design Software Inc LM
    objective-dbc   1388/tcp   #Objective Solutions DataBase Cache
    objective-dbc   1388/udp   #Objective Solutions DataBase Cache
    iclpv-dm        1389/tcp   #Document Manager
    iclpv-dm        1389/udp   #Document Manager
    iclpv-sc        1390/tcp   #Storage Controller
    iclpv-sc        1390/udp   #Storage Controller
    iclpv-sas       1391/tcp   #Storage Access Server
    iclpv-sas       1391/udp   #Storage Access Server
    iclpv-pm        1392/tcp   #Print Manager
    iclpv-pm        1392/udp   #Print Manager
    iclpv-nls       1393/tcp   #Network Log Server
    iclpv-nls       1393/udp   #Network Log Server
    iclpv-nlc       1394/tcp   #Network Log Client
    iclpv-nlc       1394/udp   #Network Log Client
    iclpv-wsm       1395/tcp   #PC Workstation Manager software
    iclpv-wsm       1395/udp   #PC Workstation Manager software
    dvl-activemail  1396/tcp   #DVL Active Mail
    dvl-activemail  1396/udp   #DVL Active Mail
    audio-activmail 1397/tcp   #Audio Active Mail
    audio-activmail 1397/udp   #Audio Active Mail
    video-activmail 1398/tcp   #Video Active Mail
    video-activmail 1398/udp   #Video Active Mail
    cadkey-licman   1399/tcp   #Cadkey License Manager
    cadkey-licman   1399/udp   #Cadkey License Manager
    cadkey-tablet   1400/tcp   #Cadkey Tablet Daemon
    cadkey-tablet   1400/udp   #Cadkey Tablet Daemon
    goldleaf-licman 1401/tcp   #Goldleaf License Manager
    goldleaf-licman 1401/udp   #Goldleaf License Manager
    prm-sm-np       1402/tcp   #Prospero Resource Manager
    prm-sm-np       1402/udp   #Prospero Resource Manager
    prm-nm-np       1403/tcp   #Prospero Resource Manager
    prm-nm-np       1403/udp   #Prospero Resource Manager
    igi-lm          1404/tcp   #Infinite Graphics License Manager
    igi-lm          1404/udp   #Infinite Graphics License Manager
    ibm-res         1405/tcp   #IBM Remote Execution Starter
    ibm-res         1405/udp   #IBM Remote Execution Starter
    netlabs-lm      1406/tcp   #NetLabs License Manager
    netlabs-lm      1406/udp   #NetLabs License Manager
    dbsa-lm         1407/tcp   #DBSA License Manager
    dbsa-lm         1407/udp   #DBSA License Manager
    sophia-lm       1408/tcp   #Sophia License Manager
    sophia-lm       1408/udp   #Sophia License Manager
    here-lm         1409/tcp   #Here License Manager
    here-lm         1409/udp   #Here License Manager
    hiq             1410/tcp   #HiQ License Manager
    hiq             1410/udp   #HiQ License Manager
    af              1411/tcp   #AudioFile
    af              1411/udp   #AudioFile
    innosys         1412/tcp
    innosys         1412/udp
    innosys-acl     1413/tcp
    innosys-acl     1413/udp
    ibm-mqseries    1414/tcp   #IBM MQSeries
    ibm-mqseries    1414/udp   #IBM MQSeries
    dbstar          1415/tcp
    dbstar          1415/udp
    novell-lu6.2    1416/tcp   #Novell LU6.2
    novell-lu6.2    1416/udp   #Novell LU6.2
    timbuktu-srv1   1417/tcp   #Timbuktu Service 1 Port
    timbuktu-srv1   1417/udp   #Timbuktu Service 1 Port
    timbuktu-srv2   1418/tcp   #Timbuktu Service 2 Port
    timbuktu-srv2   1418/udp   #Timbuktu Service 2 Port
    timbuktu-srv3   1419/tcp   #Timbuktu Service 3 Port
    

    Статистика

    Время первой команды журнала17:53:21 2008- 3-28
    Время последней команды журнала21:15:26 2009- 7-27
    Количество командных строк в журнале100
    Процент команд с ненулевым кодом завершения, %36.00
    Процент синтаксически неверно набранных команд, % 6.00
    Суммарное время работы с терминалом *, час 0.96
    Количество командных строк в единицу времени, команда/мин 1.73
    Частота использования команд
    cd18|=================| 17.31%
    vncviewer12|===========| 11.54%
    ls12|===========| 11.54%
    su10|=========| 9.62%
    cat8|=======| 7.69%
    ping6|=====| 5.77%
    ssh6|=====| 5.77%
    ifconfig4|===| 3.85%
    ps4|===| 3.85%
    more4|===| 3.85%
    su24|===| 3.85%
    vinetd.conf2|=| 1.92%
    man2|=| 1.92%
    vim2|=| 1.92%
    cat.conf2|=| 1.92%
    echo2|=| 1.92%
    shutdown2|=| 1.92%
    vnsiewer2|=| 1.92%
    vnciewer2|=| 1.92%
    ____
    *) Интервалы неактивности длительностью 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$