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

Содержание

Журнал

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

/dev/ttyp6
18:39:56
$sudo arp -d 192.168.16.254

18:40:09
$sudo arp -an
? (192.168.16.25) at 00:16:3E:44:00:05 [ether] on eth0
? (192.168.16.24) at 00:16:3E:44:00:04 [ether] on eth0
? (192.168.16.6) at 00:16:3E:00:00:06 [ether] on eth0
? (192.168.16.5) at 00:16:3E:00:00:05 [ether] on eth0
? (192.168.16.201) at 00:14:C2:05:A2:0E [ether] on eth0
? (192.168.16.254) at <incomplete> on eth0
? (192.168.16.26) at 00:16:3E:44:00:06 [ether] on eth0
? (192.168.16.4) at 00:16:3E:00:00:04 [ether] on eth0
18:40:10
$sudo arp -an
? (192.168.16.25) at 00:16:3E:44:00:05 [ether] on eth0
? (192.168.16.24) at 00:16:3E:44:00:04 [ether] on eth0
? (192.168.16.6) at 00:16:3E:00:00:06 [ether] on eth0
? (192.168.16.5) at 00:16:3E:00:00:05 [ether] on eth0
? (192.168.16.201) at 00:14:C2:05:A2:0E [ether] on eth0
? (192.168.16.254) at <incomplete> on eth0
? (192.168.16.26) at 00:16:3E:44:00:06 [ether] on eth0
? (192.168.16.4) at 00:16:3E:00:00:04 [ether] on eth0
18:40:11
$sudo arp -an
? (192.168.16.25) at 00:16:3E:44:00:05 [ether] on eth0
? (192.168.16.24) at 00:16:3E:44:00:04 [ether] on eth0
? (192.168.16.6) at 00:16:3E:00:00:06 [ether] on eth0
? (192.168.16.5) at 00:16:3E:00:00:05 [ether] on eth0
? (192.168.16.201) at 00:14:C2:05:A2:0E [ether] on eth0
? (192.168.16.254) at 00:04:75:75:46:B1 [ether] on eth0
? (192.168.16.26) at 00:16:3E:44:00:06 [ether] on eth0
? (192.168.16.4) at 00:16:3E:00:00:04 [ether] on eth0
18:40:13
$sudo arp -an
? (192.168.16.25) at 00:16:3E:44:00:05 [ether] on eth0
? (192.168.16.24) at 00:16:3E:44:00:04 [ether] on eth0
? (192.168.16.6) at 00:16:3E:00:00:06 [ether] on eth0
? (192.168.16.5) at 00:16:3E:00:00:05 [ether] on eth0
? (192.168.16.201) at 00:14:C2:05:A2:0E [ether] on eth0
? (192.168.16.254) at 00:04:75:75:46:B1 [ether] on eth0
? (192.168.16.26) at 00:16:3E:44:00:06 [ether] on eth0
? (192.168.16.4) at 00:16:3E:00:00:04 [ether] on eth0
18:40:13
$sudo arp -an
? (192.168.16.25) at 00:16:3E:44:00:05 [ether] on eth0
? (192.168.16.24) at 00:16:3E:44:00:04 [ether] on eth0
? (192.168.16.6) at 00:16:3E:00:00:06 [ether] on eth0
? (192.168.16.5) at 00:16:3E:00:00:05 [ether] on eth0
? (192.168.16.201) at 00:14:C2:05:A2:0E [ether] on eth0
? (192.168.16.254) at 00:04:75:75:46:B1 [ether] on eth0
? (192.168.16.26) at 00:16:3E:44:00:06 [ether] on eth0
? (192.168.16.4) at 00:16:3E:00:00:04 [ether] on eth0
18:40:14
$sudo arp -d 192.168.16.201

18:40:31
$sudo arp -an
? (192.168.16.25) at 00:16:3E:44:00:05 [ether] on eth0
? (192.168.16.24) at 00:16:3E:44:00:04 [ether] on eth0
? (192.168.16.6) at 00:16:3E:00:00:06 [ether] on eth0
? (192.168.16.5) at 00:16:3E:00:00:05 [ether] on eth0
? (192.168.16.201) at 00:14:C2:05:A2:0E [ether] on eth0
? (192.168.16.254) at 00:04:75:75:46:B1 [ether] on eth0
? (192.168.16.26) at 00:16:3E:44:00:06 [ether] on eth0
? (192.168.16.4) at 00:16:3E:00:00:04 [ether] on eth0
18:40:32
$sudo arp -an
? (192.168.16.25) at 00:16:3E:44:00:05 [ether] on eth0
? (192.168.16.24) at 00:16:3E:44:00:04 [ether] on eth0
? (192.168.16.6) at 00:16:3E:00:00:06 [ether] on eth0
? (192.168.16.5) at 00:16:3E:00:00:05 [ether] on eth0
? (192.168.16.201) at 00:14:C2:05:A2:0E [ether] on eth0
? (192.168.16.254) at 00:04:75:75:46:B1 [ether] on eth0
? (192.168.16.26) at 00:16:3E:44:00:06 [ether] on eth0
? (192.168.16.4) at 00:16:3E:00:00:04 [ether] on eth0
18:40:54
$sudo arp -an
? (192.168.16.25) at 00:16:3E:44:00:05 [ether] on eth0
? (192.168.16.24) at 00:16:3E:44:00:04 [ether] on eth0
? (192.168.16.6) at 00:16:3E:00:00:06 [ether] on eth0
? (192.168.16.5) at 00:16:3E:00:00:05 [ether] on eth0
? (192.168.16.201) at 00:14:C2:05:A2:0E [ether] on eth0
? (192.168.16.254) at 00:04:75:75:46:B1 [ether] on eth0
? (192.168.16.26) at 00:16:3E:44:00:06 [ether] on eth0
? (192.168.16.4) at 00:16:3E:00:00:04 [ether] on eth0
18:40:55
$sudo arp -an
? (192.168.16.25) at 00:16:3E:44:00:05 [ether] on eth0
? (192.168.16.24) at 00:16:3E:44:00:04 [ether] on eth0
? (192.168.16.6) at 00:16:3E:00:00:06 [ether] on eth0
? (192.168.16.5) at 00:16:3E:00:00:05 [ether] on eth0
? (192.168.16.201) at 00:14:C2:05:A2:0E [ether] on eth0
? (192.168.16.254) at 00:04:75:75:46:B1 [ether] on eth0
? (192.168.16.26) at 00:16:3E:44:00:06 [ether] on eth0
? (192.168.16.4) at 00:16:3E:00:00:04 [ether] on eth0
18:40:56
$sudo arp -an
? (192.168.16.25) at 00:16:3E:44:00:05 [ether] on eth0
? (192.168.16.24) at 00:16:3E:44:00:04 [ether] on eth0
? (192.168.16.6) at 00:16:3E:00:00:06 [ether] on eth0
? (192.168.16.5) at 00:16:3E:00:00:05 [ether] on eth0
? (192.168.16.201) at 00:14:C2:05:A2:0E [ether] on eth0
? (192.168.16.254) at 00:04:75:75:46:B1 [ether] on eth0
? (192.168.16.26) at 00:16:3E:44:00:06 [ether] on eth0
? (192.168.16.4) at 00:16:3E:00:00:04 [ether] on eth0
18:40:57
$sudo arp -an
? (192.168.16.25) at 00:16:3E:44:00:05 [ether] on eth0
? (192.168.16.24) at 00:16:3E:44:00:04 [ether] on eth0
? (192.168.16.6) at 00:16:3E:00:00:06 [ether] on eth0
? (192.168.16.5) at 00:16:3E:00:00:05 [ether] on eth0
? (192.168.16.201) at 00:14:C2:05:A2:0E [ether] on eth0
? (192.168.16.254) at 00:04:75:75:46:B1 [ether] on eth0
? (192.168.16.26) at 00:16:3E:44:00:06 [ether] on eth0
? (192.168.16.4) at 00:16:3E:00:00:04 [ether] on eth0
18:40:58
$sudo arp -an
? (192.168.16.25) at 00:16:3E:44:00:05 [ether] on eth0
? (192.168.16.24) at 00:16:3E:44:00:04 [ether] on eth0
? (192.168.16.6) at 00:16:3E:00:00:06 [ether] on eth0
? (192.168.16.5) at 00:16:3E:00:00:05 [ether] on eth0
? (192.168.16.201) at 00:14:C2:05:A2:0E [ether] on eth0
? (192.168.16.254) at 00:04:75:75:46:B1 [ether] on eth0
? (192.168.16.26) at 00:16:3E:44:00:06 [ether] on eth0
? (192.168.16.4) at 00:16:3E:00:00:04 [ether] on eth0
18:40:59
$sudo arp -an
? (192.168.16.25) at 00:16:3E:44:00:05 [ether] on eth0
? (192.168.16.24) at 00:16:3E:44:00:04 [ether] on eth0
? (192.168.16.6) at 00:16:3E:00:00:06 [ether] on eth0
? (192.168.16.5) at 00:16:3E:00:00:05 [ether] on eth0
? (192.168.16.201) at 00:14:C2:05:A2:0E [ether] on eth0
? (192.168.16.254) at 00:04:75:75:46:B1 [ether] on eth0
? (192.168.16.26) at 00:16:3E:44:00:06 [ether] on eth0
? (192.168.16.4) at 00:16:3E:00:00:04 [ether] on eth0
18:41:01
$sudo arp -an
? (192.168.16.25) at 00:16:3E:44:00:05 [ether] on eth0
? (192.168.16.24) at 00:16:3E:44:00:04 [ether] on eth0
? (192.168.16.6) at 00:16:3E:00:00:06 [ether] on eth0
? (192.168.16.5) at 00:16:3E:00:00:05 [ether] on eth0
? (192.168.16.201) at 00:14:C2:05:A2:0E [ether] on eth0
? (192.168.16.254) at 00:04:75:75:46:B1 [ether] on eth0
? (192.168.16.26) at 00:16:3E:44:00:06 [ether] on eth0
? (192.168.16.4) at 00:16:3E:00:00:04 [ether] on eth0
18:41:02
$sudo arp -an
? (192.168.16.203) at 00:14:C2:05:A3:38 [ether] on eth0
? (192.168.16.25) at 00:16:3E:44:00:05 [ether] on eth0
? (192.168.16.24) at 00:16:3E:44:00:04 [ether] on eth0
? (192.168.16.6) at 00:16:3E:00:00:06 [ether] on eth0
? (192.168.16.5) at 00:16:3E:00:00:05 [ether] on eth0
? (192.168.16.201) at 00:14:C2:05:A2:0E [ether] on eth0
? (192.168.16.254) at 00:04:75:75:46:B1 [ether] on eth0
? (192.168.16.26) at 00:16:3E:44:00:06 [ether] on eth0
? (192.168.16.4) at 00:16:3E:00:00:04 [ether] on eth0
18:41:03
$sudo arp -an
? (192.168.16.203) at 00:14:C2:05:A3:38 [ether] on eth0
? (192.168.16.25) at 00:16:3E:44:00:05 [ether] on eth0
? (192.168.16.24) at 00:16:3E:44:00:04 [ether] on eth0
? (192.168.16.6) at 00:16:3E:00:00:06 [ether] on eth0
? (192.168.16.5) at 00:16:3E:00:00:05 [ether] on eth0
? (192.168.16.201) at 00:14:C2:05:A2:0E [ether] on eth0
? (192.168.16.254) at 00:04:75:75:46:B1 [ether] on eth0
? (192.168.16.26) at 00:16:3E:44:00:06 [ether] on eth0
? (192.168.16.4) at 00:16:3E:00:00:04 [ether] on eth0
18:41:21
$sudo arp -d 192.168.16.203
[user@debian7:~]$ sudo arp -an
? (192.168.16.203) at 00:14:C2:05:A3:38 [ether] on eth0
? (192.168.16.25) at 00:16:3E:44:00:05 [ether] on eth0
? (192.168.16.24) at 00:16:3E:44:00:04 [ether] on eth0
? (192.168.16.6) at 00:16:3E:00:00:06 [ether] on eth0
? (192.168.16.5) at 00:16:3E:00:00:05 [ether] on eth0
? (192.168.16.201) at 00:14:C2:05:A2:0E [ether] on eth0
? (192.168.16.254) at 00:04:75:75:46:B1 [ether] on eth0
? (192.168.16.26) at 00:16:3E:44:00:06 [ether] on eth0
? (192.168.16.4) at 00:16:3E:00:00:04 [ether] on eth0
18:41:25
$sudo arp -an
? (192.168.16.203) at <incomplete> on eth0
? (192.168.16.25) at 00:16:3E:44:00:05 [ether] on eth0
? (192.168.16.24) at 00:16:3E:44:00:04 [ether] on eth0
? (192.168.16.6) at 00:16:3E:00:00:06 [ether] on eth0
? (192.168.16.5) at 00:16:3E:00:00:05 [ether] on eth0
? (192.168.16.201) at 00:14:C2:05:A2:0E [ether] on eth0
? (192.168.16.254) at 00:04:75:75:46:B1 [ether] on eth0
? (192.168.16.26) at 00:16:3E:44:00:06 [ether] on eth0
? (192.168.16.4) at 00:16:3E:00:00:04 [ether] on eth0
18:41:29
$sudo arp -an
? (192.168.16.203) at <incomplete> on eth0
? (192.168.16.25) at 00:16:3E:44:00:05 [ether] on eth0
? (192.168.16.24) at 00:16:3E:44:00:04 [ether] on eth0
? (192.168.16.6) at 00:16:3E:00:00:06 [ether] on eth0
? (192.168.16.5) at 00:16:3E:00:00:05 [ether] on eth0
? (192.168.16.201) at 00:14:C2:05:A2:0E [ether] on eth0
? (192.168.16.254) at 00:04:75:75:46:B1 [ether] on eth0
? (192.168.16.26) at 00:16:3E:44:00:06 [ether] on eth0
? (192.168.16.4) at 00:16:3E:00:00:04 [ether] on eth0
18:41:31
$sudo arp -an
? (192.168.16.203) at <incomplete> on eth0
? (192.168.16.25) at 00:16:3E:44:00:05 [ether] on eth0
? (192.168.16.24) at 00:16:3E:44:00:04 [ether] on eth0
? (192.168.16.6) at 00:16:3E:00:00:06 [ether] on eth0
? (192.168.16.5) at 00:16:3E:00:00:05 [ether] on eth0
? (192.168.16.201) at 00:14:C2:05:A2:0E [ether] on eth0
? (192.168.16.254) at 00:04:75:75:46:B1 [ether] on eth0
? (192.168.16.26) at 00:16:3E:44:00:06 [ether] on eth0
? (192.168.16.4) at 00:16:3E:00:00:04 [ether] on eth0
18:41:31
$sudo arp -an
? (192.168.16.203) at <incomplete> on eth0
? (192.168.16.25) at 00:16:3E:44:00:05 [ether] on eth0
? (192.168.16.24) at 00:16:3E:44:00:04 [ether] on eth0
? (192.168.16.6) at 00:16:3E:00:00:06 [ether] on eth0
? (192.168.16.5) at 00:16:3E:00:00:05 [ether] on eth0
? (192.168.16.201) at 00:14:C2:05:A2:0E [ether] on eth0
? (192.168.16.254) at 00:04:75:75:46:B1 [ether] on eth0
? (192.168.16.26) at 00:16:3E:44:00:06 [ether] on eth0
? (192.168.16.4) at 00:16:3E:00:00:04 [ether] on eth0
18:41:32
$sudo tcpdump -i eth0 -n arp
sudo: tcpdump: command not found
18:41:42
$sudo apt-get install tcpdump
Чтение списков пакетов... Готово
Построение дерева зависимостей... Готово
НОВЫЕ пакеты, которые будут установлены:
  tcpdump
обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 55 пакетов не обновлено.
Необходимо скачать 303kБ архивов.
После распаковки объем занятого дискового пространства возрастёт на 668kB.
Получено:1 http://debian.org.ua etch/main tcpdump 3.9.5-2etch1 [303kB]
Получено 303kB за 0s (10,8MB/c)
Выбор ранее не выбранного пакета tcpdump.
(Чтение базы данных... на данный момент установлено 22785 файлов и каталогов.)
Распаковывается пакет tcpdump (из файла .../tcpdump_3.9.5-2etch1_i386.deb)...
Настраивается пакет tcpdump (3.9.5-2etch1) ...
18:42:07
$sudo tcpdump -i eth0 -n arp
[user@debian7:~]$ sudo tcpdump -i eth0 -n arp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
19:41:59.466908 arp who-has 192.168.16.203 tell 192.168.16.7
19:41:59.467065 arp reply 192.168.16.203 is-at 00:14:c2:05:a3:38
219:42:04.467252 arp who-has 192.168.16.7 tell 192.168.16.6
19:42:04.467264 arp reply 192.168.16.7 is-at 00:16:3e:00:00:07
19:42:05.460732 arp who-has 192.168.16.7 tell 192.168.16.203
19:42:05.460742 arp reply 192.168.16.7 is-at 00:16:3e:00:00:07
6 packets captured
6 packets received by filter
0 packets dropped by kernel
/dev/ttypa
18:44:39
$screen -x
прошло 12 минут
/dev/ttyp6
18:56:49
$ifconfig
bash: ifconfig: command not found
18:56:52
$sudo
Password:
eth0      Link encap:Ethernet  HWaddr 00:16:3E:00:00:07
          inet addr:192.168.16.7  Bcast:192.168.16.255  Mask:255.255.255.0
          inet6 addr: fe80::216:3eff:fe00:7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:54632 errors:0 dropped:0 overruns:0 frame:0
          TX packets:83221 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:6001555 (5.7 MiB)  TX bytes:28691358 (27.3 MiB)
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
18:56:57
$sudo ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:16:3E:00:00:07
          inet addr:192.168.16.7  Bcast:192.168.16.255  Mask:255.255.255.0
          inet6 addr: fe80::216:3eff:fe00:7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:54731 errors:0 dropped:0 overruns:0 frame:0
          TX packets:83348 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:6008319 (5.7 MiB)  TX bytes:28734534 (27.4 MiB)
eth1      Link encap:Ethernet  HWaddr 00:16:3E:11:11:07
          BROADCAST MULTICAST  MTU:1500  Metric:1
...
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
sit0      Link encap:IPv6-in-IPv4
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
18:57:02
$sudo route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.16.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         192.168.16.254  0.0.0.0         UG    0      0        0 eth0
18:57:54
$sudo ifconfig eth1 172.16.1.100 up

18:58:11
$sudo ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:16:3E:00:00:07
          inet addr:192.168.16.7  Bcast:192.168.16.255  Mask:255.255.255.0
          inet6 addr: fe80::216:3eff:fe00:7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:55680 errors:0 dropped:0 overruns:0 frame:0
          TX packets:84576 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:6072695 (5.7 MiB)  TX bytes:29042930 (27.6 MiB)
eth1      Link encap:Ethernet  HWaddr 00:16:3E:11:11:07
          inet addr:172.16.1.100  Bcast:172.16.255.255  Mask:255.255.0.0
...
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
sit0      Link encap:IPv6-in-IPv4
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
18:58:13
$sudo ifconfig
eth0      Link encap:Ethernet  HWaddr 00:16:3E:00:00:07
          inet addr:192.168.16.7  Bcast:192.168.16.255  Mask:255.255.255.0
          inet6 addr: fe80::216:3eff:fe00:7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:55913 errors:0 dropped:0 overruns:0 frame:0
          TX packets:84877 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:6088223 (5.8 MiB)  TX bytes:29108531 (27.7 MiB)
eth1      Link encap:Ethernet  HWaddr 00:16:3E:11:11:07
          inet addr:172.16.1.100  Bcast:172.16.255.255  Mask:255.255.0.0
...
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:238 (238.0 b)
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
18:58:15
$sudo
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.16.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
172.16.0.0      0.0.0.0         255.255.0.0     U     0      0        0 eth1
0.0.0.0         192.168.16.254  0.0.0.0         UG    0      0        0 eth0
18:58:26
$sudo ifdown eth1
ifdown: interface eth1 not configured
18:58:54
$vim /etc/network/interfaces
18:59:52
$sudo ifconfig eth1 down

19:00:04
$sudo ifconfig
[user@debian7:~]$ sudo ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:16:3E:00:00:07
          inet addr:192.168.16.7  Bcast:192.168.16.255  Mask:255.255.255.0
          inet6 addr: fe80::216:3eff:fe00:7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:58986 errors:0 dropped:0 overruns:0 frame:0
          TX packets:88693 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:6298165 (6.0 MiB)  TX bytes:30028841 (28.6 MiB)
eth1      Link encap:Ethernet  HWaddr 00:16:3E:11:11:07
...
          collisions:0 txqueuelen:1000
          RX bytes:6313147 (6.0 MiB)  TX bytes:30095488 (28.7 MiB)
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
19:00:07
$sudo route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.16.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         192.168.16.254  0.0.0.0         UG    0      0        0 eth0
19:00:12
$ifconfig eth1 0.0.0.0
bash: ifconfig: command not found
19:00:41
$sudo

19:01:19
$ssh 192.168.16.254
The authenticity of host '192.168.16.254 (192.168.16.254)' can't be established.
RSA key fingerprint is 90:7f:6c:4f:4c:b3:6c:3a:73:79:4d:77:f2:82:51:64.
Are you sure you want to continue connecting (yes/no)? no
Host key verification failed.
прошло 58 минут
19:59:36
$ssh 192.168.16.254 -l root
Connection to 192.168.16.254 closed.
20:05:45
$ls -l
итого 4132
-rwxr-xr-x 1 root root      13 2008-03-11 12:42 hello
-rw------- 1 root root     956 2009-07-27 19:30 log.eci
-rw------- 1 root root     248 2009-07-27 19:27 log.ecp
-rwxr-xr-x 1 root root 3046166 2009-07-27 21:05 ug-bsdnet.pdf
-rwxr-xr-x 1 root root 1166385 2009-07-27 21:05 ug-lnet.pdf
20:05:46
$evince
bash: evince: command not found
20:06:13
$sudo apt-get install xpdf
[user@debian7:~]$ sudo apt-get install evince
Password:
Чтение списков пакетов... Готово
Построение дерева зависимостей... Готово
Будут установлены следующие дополнительные пакеты:
  esound-common gnome-mime-data gs-common gs-esp gsfonts libaudiofile0 libavahi-client3 libavahi-common-data
  libavahi-common3 libavahi-glib1 libbonobo2-0 libbonobo2-common libbonoboui2-0 libbonoboui2-common
  libcupsimage2 libcupsys2 libdbus-1-3 libdbus-glib-1-2 libdjvulibre15 libesd0 libfam0 libgnome2-0
  libgnome2-common libgnomecups1.0-1 libgnomeprint2.2-0 libgnomeprint2.2-data libgnomeprintui2.2-0
  libgnomeprintui2.2-common libgnomeui-0 libgnomeui-common libgnomevfs2-0 libgnomevfs2-common libhal-storage1
...
(Re-)registering PostScript fonts...
done.
Настраивается пакет lesstif2 (0.94.4-2) ...
Настраивается пакет libpaper1 (1.1.21) ...
Creating config file /etc/papersize with new version
Настраивается пакет libt1-5 (5.1.0-2etch1) ...
Настраивается пакет xpdf-common (3.01-9.1+etch5) ...
Настраивается пакет xpdf-reader (3.01-9.1+etch5) ...
Настраивается пакет xpdf-utils (3.01-9.1+etch5) ...
Настраивается пакет xpdf (3.01-9.1+etch5) ...
20:06:39
$xpdf
.fluxbox/      .gconfd/       .mozilla/      ug-bsdnet.pdf
.gconf/        .lilalo/       .ssh/          ug-lnet.pdf
прошло 10 минут
/dev/ttyp4
20:17:23
$screen -x
/dev/ttyp6
20:18:20
$bg
[user@debian7:~]$ xpdf ug-bsdnet.pdf
[1]+  Stopped                 xpdf ug-bsdnet.pdf
[1]+ xpdf ug-bsdnet.pdf &
20:18:21
$sudo apt-get install openoffice2-org
Чтение списков пакетов... Готово
Построение дерева зависимостей... Готово
E: Не могу найти пакет openoffice2-org
20:18:38
$sudo apt-get install openoffice.org
Display all 459 possibilities? (y or n)
20:18:38
$sudo apt-get install openoffice.org
Display all 459 possibilities? (y or n)
openoffice.org                        openoffice.org-help-lt
openoffice.org-1.9.125                openoffice.org-help-lv
openoffice.org2                       openoffice.org-help-mk
openoffice.org2-base                  openoffice.org-help-ml-in
openoffice.org2-calc                  openoffice.org-help-nb
openoffice.org2-common                openoffice.org-help-ne
openoffice.org2-core                  openoffice.org-help-nl
openoffice.org2-dev                   openoffice.org-help-nn
openoffice.org2-dev-doc               openoffice.org-help-nr
...
openoffice.org2-l10n-br               openoffice.org-help-ta-in
openoffice.org2-l10n-bs               openoffice.org-help-te-in
openoffice.org2-l10n-ca               openoffice.org-help-tg
openoffice.org2-l10n-cs               openoffice.org-help-th
openoffice.org2-l10n-cy               openoffice.org-help-tn
openoffice.org2-l10n-da               openoffice.org-help-tr
openoffice.org2-l10n-de               openoffice.org-help-ts
openoffice.org2-l10n-dz               openoffice.org-help-uk
openoffice.org2-l10n-el               openoffice.org-help-ve
openoffice.org2-l10n-en-gb            openoffice.org-help-vi
20:18:38
$sudo apt-get install openoffice.org2-org
Чтение списков пакетов... Готово
Построение дерева зависимостей... Готово
E: Не могу найти пакет openoffice.org2-org
20:20:55
$sudo apt-get update
[user@debian7:~]$ sudo apt-get install openoffice.org2
Чтение списков пакетов... Готово
Построение дерева зависимостей... Готово
Заметьте, вместо openoffice.org2 выбирается openoffice.org
Будут установлены следующие дополнительные пакеты:
  bsh ca-certificates dictionaries-common gcc-3.4-base gcj-4.1-base gij gij-4.1 lapack3 libasound2 libaudio2
  libcurl3 libflac7 libg2c0 libgcj-bc libgcj-common libgcj7-0 libgstreamer-plugins-base0.10-0
  libgstreamer0.10-0 libhsqldb-java libicu36 libidn11 libjaxp1.3-java libjline-java libmdbtools libneon25
  libnspr4-0d libnss3-0d libportaudio0 libservlet2.3-java libsndfile1 libstlport4.6c2 libufsparse libwpd8c2a
  libxalan2-java libxerces2-java libxslt1.1 libxt-java openoffice.org openoffice.org-base openoffice.org-calc
...
E: Невозможно загрузить некоторые архивы, вероятно надо запустить apt-get update или попытаться повторить запуск с ключом --fix-missing
Получено:1 http://debian.org.ua etch Release.gpg [1032B]
Получено:2 http://debian.org.ua etch Release [67,8kB]
Ign http://debian.org.ua etch Release
Ign http://debian.org.ua etch/main Packages/DiffIndex
Получено:3 http://debian.org.ua etch/main Packages [4282kB]
Получено 4351kB за 6s (700kB/c)
Чтение списков пакетов... Готово
W: GPG error: http://debian.org.ua etch Release: Следующие подписи не могут быть проверены, так как недоступен общий ключ: NO_PUBKEY 9AA38DCD55BE302B
W: Вы можете запустить 'apt-get update' для исправления этих ошибок
20:22:35
$oowriter /home/user/
.fluxbox/ .gconf/   .gconfd/  IPv6.doc  .lilalo/  .mozilla/ .ssh/
20:22:35
$oowriter /home/user/
.fluxbox/ .gconf/   .gconfd/  IPv6.doc  .lilalo/  .mozilla/ .ssh/
20:22:35
$oowriter /home/user/IPv6.doc

20:23:05
$sudo apt-get install xpdf
Чтение списков пакетов... Готово
Построение дерева зависимостей... Готово
Уже установлена самая новая версия xpdf.
обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 63 пакетов не обновлено.
20:26:52
$xpdf /home/user/
.fluxbox/         .gconfd/          .mozilla/         .ssh/             ug-lnet.pdf
.gconf/           .lilalo/          .openoffice.org2/ ug-bsdnet.pdf
20:26:52
$xpdf /home/user/
.fluxbox/         .gconfd/          .mozilla/         .ssh/             ug-lnet.pdf
.gconf/           .lilalo/          .openoffice.org2/ ug-bsdnet.pdf
20:26:52
$xpdf /home/user/ug-bsdnet.pdf
Warning: Attempt to remove nonexistent passive grab
20:27:18
$Warning: Attempt to remove nonexistent passive grab
[1]+  Done                    xpdf ug-bsdnet.pdf
прошло 34 минуты
21:02:14
$ssh 192.168.16.27
The authenticity of host '192.168.16.27 (192.168.16.27)' 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
Failed to add the host to the list of known hosts (/home/user/.ssh/known_hosts).
Password:
Last login: Mon Jul 27 18:51:41 2009 from 192.168.16.7
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
21:03:48
#[user@fbsd7:~]$ grep vnc /etc/services
[user@fbsd7:~]$ sockstat -4l
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
root     xdm        784   1  tcp46  *:49152               *:*
root     Xorg       783   3  tcp4   *:6000                *:*
root     xdm        780   1  tcp46  *:49152               *:*
root     xdm        780   3  udp46  *:177                 *:*
root     inetd      754   5  tcp4   *:5902                *:*
root     sendmail   719   4  tcp4   127.0.0.1:25          *:*
root     sshd       713   3  tcp46  *:22                  *:*
root     sshd       713   4  tcp4   *:22                  *:*
root     syslogd    558   7  udp4   *:514                 *:*
vnc1     5902/tcp
21:05:46
#[user@fbsd7:~]$ vim /etc/inetd.conf
#
#ftp-proxy      stream  tcp     nowait  root    /usr/libexec/ftp-proxy  ftp-proxy
rityTypes=none
vnc1 stream tcp nowait nobody /usr/X11R6/bin/Xvnc Xvnc -inetd  -query localhost -depth 24 -geometry 1000x700 Secuu
~
~
~
~
~
~
...
~
~
~
~
~
~
~
~
~
:syn on
/dev/ttyp4
21:06:59
$screen -x
/dev/ttyp6
21:12:28
#[user@fbsd7:~]$ sudo /etc/rc.d/inetd restart
#
#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
#
C
@
Cnc1 stream tcp nowait nobody /usr/X11R6/bin/Xvnc Xvnc -inetd  -query localhost -depth 24 -geometry 1000x700 Secuu
@
vnc1 stream tcp nowait nobody /usr/X11R6/bin/Xvnc Xvnc -inetd  -query localhost -depth 24 -geometry 1200x700 Secuu
vnc1 stream tcp nowait nobody /usr/X11R6/bin/Xvnc Xvnc -inetd  -query localhost -depth 24 -geometry 1200x1000 Secc
urityTypes=none
~
"/etc/inetd.conf" 127 lines, 5525 characters written
Stopping inetd.
Starting inetd.
21:13:48
#[user@fbsd7:~]$ sudo /etc/rc.d/inetd restart
# (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
#
vnc1 proxy  tcp stream  tcp   /usr/X11R6/bin/Xvnc Xvnc -exec/ft-query   ftp-prox-depth 24 -          100x1024 Secc
urityTypes=none
vnc1 stream tcp nowait nobody /usr/X11R6/bin/Xvnc Xvnc -inetd  -query localhost -depth 24 -geometry 1200x1000 Secc
"/etc/inetd.conf" 127 lines, 5525 characters written
Stopping inetd.
Starting inetd.
21:15:09
#[user@fbsd7:~]$ sudo /etc/rc.d/inetd restart
#
#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
#
C
@
Cnc1 stream tcp nowait nobody /usr/X11R6/bin/Xvnc Xvnc -inetd  -query localhost -depth 24 -geometry 1100x1024 Secc
vnc1 stream tcp nowait nobody /usr/X11R6/bin/Xvnc Xvnc -inetd  -query localhost -depth 24 -geometry 1900x900 Secuu
rityTypes=none
~
                                                                                                     2          uu
r
"/etc/inetd.conf" 127 lines, 5524 characters written
Stopping inetd.
Starting inetd.
21:23:17
#[user@fbsd7:~]$
[user@fbsd7:~]$ sudo /etc/rc.d/inetd restart
Password:
sudo: pam_authenticate: conversation failure

Среда (07/29/09)

14:45:33
#[user@fbsd7:~]$ ifconfig
[user@fbsd7:~]$ ifconfig -a
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING>
        inet 192.168.16.27 netmask 0xffffff00 broadcast 192.168.16.255
        ether 00:16:4e:00:00:07
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
re1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING>
        ether 00:16:4e:00:01:07
...
re2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING>
        ether 00:16:4e:00:02:07
        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 0x5
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
14:46:56
#[user@fbsd7:~]$ sudo ifconfig re1 172.16.7.10
[user@fbsd7:~]$ ifconfig re1 172.16.7.10
ifconfig: ioctl (SIOCAIFADDR): permission denied
Password:
14:47:02
#[user@fbsd7:~]$ ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING>
        inet 192.168.16.27 netmask 0xffffff00 broadcast 192.168.16.255
        ether 00:16:4e:00:00:07
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING>
        inet 172.16.7.10 netmask 0xffff0000 broadcast 172.16.255.255
        ether 00:16:4e:00:01:07
...
re2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING>
        ether 00:16:4e:00:02:07
        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 0x5
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
14:48:33
#[user@fbsd7:~]$ grep ifconfig /etc/defaults/rc.conf
keymap="ru.koi8-r"
keyrate="normal"
local_startup="/usr/local/etc/rc.d"
mousechar_start="3"
moused_enable="YES"
saver="fire"
pccard_ifconfig="NO"6"  # Specialized pccard ethernet configuration (or NO).
pfsync_ifconfig=""              # Additional options to ifconfig(8) for pfsync
~
ifconfig_lo0="inet 127.0.0.1"   # default loopback device configuration.
...
#ifconfig_ed0_ipx="ipx 0x00010010"      # Sample IPX address family entry.
~
#ifconfig_fxp0_name="net0"      # Change interface name from fxp0 to net0.
~
#gifconfig_gif0="10.1.1.1 10.1.2.1"     # Examples typically for a router.
~
#gifconfig_gif1="10.1.1.2 10.1.2.2"     # Examples typically for a router.
~
#ipv6_ifconfig_ed0="fec0:0:0:5::1 prefixlen 64" # Sample manual assign entry
#ipv6_ifconfig_ed0_alias0="fec0:0:0:5::2 prefixlen 64" # Sample alias entry.
14:50:24
#[user@fbsd7:~]$
[user@fbsd7:~]$ sudo sysinstall
acpi0_check: nexus0 busy
                        acpi0_check: legacy0 not-present
                                                        acpi0_check: npx0 attached
                                                                                  acpi0_check: acpi0 busy
14:50:25
#[user@fbsd7:~]$

14:50:25
#[user@fbsd7:~]$

14:50:25
#[user@fbsd7:~]$ ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING>
        inet 192.168.16.27 netmask 0xffffff00 broadcast 192.168.16.255
        ether 00:16:4e:00:00:07
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING>
        inet 172.16.7.10 netmask 0xffff0000 broadcast 172.16.255.255
        ether 00:16:4e:00:01:07
...
re2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING>
        ether 00:16:4e:00:02:07
        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 0x5
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
14:50:50
#[user@fbsd7:~]$ ls /etc/rc.*
[user@fbsd7:~]$ sudo sh /etc/rc.net
/etc/rc.bsdextended     /etc/rc.firewall6       /etc/rc.sendmail        /etc/rc.suspend
/etc/rc.conf            /etc/rc.initdiskless    /etc/rc.shutdown
/etc/rc.firewall        /etc/rc.resume          /etc/rc.subr
/etc/rc.d:
DAEMON          bridge          hostname        local           newsyslog       ramdisk         syscons
FILESYSTEMS     bsnmpd          ike             localpkg        nfsclient       ramdisk-own     sysctl
LOGIN           bthidd          inetd           lockd           nfsd            random          syslogd
NETWORKING      ccd             initrandom      lpd             nfslocking      rarpd           timed
SERVERS         cleanvar        ip6addrctl      mdconfig        nfsserver       resolv          tmp
...
apmd            dumpon          ipsec           mountlate       pcvt            rwho            ypbind
archdep         early.sh        ipxrouted       moused          pf              savecore        yppasswdd
atm1            encswap         isdnd           mroute6d        pflog           sdpd            ypserv
atm2            fsck            jail            mrouted         pfsync          securelevel     ypset
atm3            ftpd            kadmind         msgs            power_profile   sendmail        ypupdated
auditd          gbde            kerberos        named           powerd          serial          ypxfrd
auto_linklocal  geli            keyserv         natd            ppp             sppp
bgfsck          geli2           kldxref         netif           pppoed          sshd
bluetooth       hcsecd          kpasswdd        netoptions      pwcheck         statd
bootparams      hostapd         ldconfig        network_ipv6    quota           swap1
14:50:54
#[user@fbsd7:~]$ ls /etc/net
[user@fbsd7:~]$ ls /etc/rc.d/ne
netif         netoptions    network_ipv6  newsyslog
netconfig     netstart      network.subr  networks
14:50:54
#[user@fbsd7:~]$ ls /etc/net
netconfig     netstart      network.subr  networks
14:52:07
#[user@fbsd7:~]$
[user@fbsd7:~]$ sudo /etc/netstart restart
devd already running? (pid=703).
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING>
        inet 192.168.16.27 netmask 0xffffff00 broadcast 192.168.16.255
        ether 00:16:4e:00:00:07
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING>
        inet 192.168.15.44 netmask 0xffffff00 broadcast 192.168.15.255
        ether 00:16:4e:00:01:07
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
add net default: gateway 192.168.15.254
Additional routing options:.
14:52:08
#[user@fbsd7:~]$

14:58:03
#[user@fbsd7:~]$ sudo netstat -r
[user@fbsd7:~]$ sudo netstat -rn
Password:
Sorry, try again.
Password:
Routing tables
Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            192.168.15.254     UGS         0       21    re1
127.0.0.1          127.0.0.1          UH          0       24    lo0
192.168.15         link#2             UC          0        0    re1
...
192.168.16         link#1             UC          0        0    re0
192.168.16.7       00:16:3e:00:00:07  UHLW        1       62    re0    837
192.168.16.254     00:04:75:75:46:b1  UHLW        1        8    re0   1147
Internet6:
Destination        Gateway            Flags      Netif Expire
localhost.net.nt   localhost.net.nt   UHL         lo0
fe80::%lo0         fe80::1%lo0        U           lo0
fe80::1%lo0        link#5             UHL         lo0
ff01:5::           fe80::1%lo0        UC          lo0
ff02::%lo0         fe80::1%lo0        UC          lo0
14:58:18
#[user@fbsd7:~]$ sudo netstat -r
[user@fbsd7:~]$ sudo netstat -rn
Routing tables
Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            192.168.15.254     UGS         0       22    re1
127.0.0.1          127.0.0.1          UH          0       24    lo0
192.168.15         link#2             UC          0        0    re1
192.168.15.254     link#2             UHLW        2       10    re1
192.168.16         link#1             UC          0        0    re0
192.168.16.7       00:16:3e:00:00:07  UHLW        1       67    re0    830
...
192.168.16         link#1             UC          0        0    re0
192.168.16.7       00:16:3e:00:00:07  UHLW        1       72    re0    792
192.168.16.254     00:04:75:75:46:b1  UHLW        1       11    re0   1161
Internet6:
Destination        Gateway            Flags      Netif Expire
localhost.net.nt   localhost.net.nt   UHL         lo0
fe80::%lo0         fe80::1%lo0        U           lo0
fe80::1%lo0        link#5             UHL         lo0
ff01:5::           fe80::1%lo0        UC          lo0
ff02::%lo0         fe80::1%lo0        UC          lo0
14:58:56
#[user@fbsd7:~]$ sudo netstat -rn
Routing tables
Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            192.168.15.254     UGS         0       24    re1
127.0.0.1          127.0.0.1          UH          0       24    lo0
192.168.15         link#2             UC          0        0    re1
192.168.15.254     link#2             UHLW        2       18    re1
192.168.16         link#1             UC          0        0    re0
192.168.16.7       00:16:3e:00:00:07  UHLW        1       77    re0    788
192.168.16.254     00:04:75:75:46:b1  UHLW        1       11    re0   1157
Internet6:
Destination                       Gateway                       Flags      Netif Expire
::1                               ::1                           UHL         lo0
fe80::%lo0/64                     fe80::1%lo0                   U           lo0
fe80::1%lo0                       link#5                        UHL         lo0
ff01:5::/32                       fe80::1%lo0                   UC          lo0
ff02::%lo0/32                     fe80::1%lo0                   UC          lo0
прошло 74 минуты
16:13:05
#[user@fbsd7:~]$

16:13:06
#[user@fbsd7:~]$

16:13:06
#[user@fbsd7:~]$

16:13:06
#[user@fbsd7:~]$ su -
Password:
16:13:29
#[root@fbsd7:~]# SITE=ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/6.3-RELEASE/packages/Al
ges/All/ pkg_add -r ipcalc.tbz      p-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/6.3-RELEASE/packag
Error: FTP Unable to get ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/6.3-RELEASE/packages/All/ipcalc.tbz: No address record
pkg_add: unable to fetch 'ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/6.3-RELEASE/packages/All/ipcalc.tbz' by URL
16:13:29
#[root@fbsd7:~]#

16:13:29
#[root@fbsd7:~]# w3m
bash: w3m: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ
16:13:40
#[root@fbsd7:~]#

16:13:40
#[root@fbsd7:~]# lynx
bash: lynx: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ
16:13:54
#[root@fbsd7:ports]# make search name=ipcalc
[root@fbsd7:~]# cd /usr/ports/
Port:   ipcalc-0.41
Path:   /usr/ports/net-mgmt/ipcalc
Info:   IP Calculator
Maint:  ceri@FreeBSD.org
B-deps: perl-5.8.8_1
R-deps: perl-5.8.8_1
WWW:    http://jodies.de/ipcalc
Port:   sipcalc-1.1.4
Path:   /usr/ports/net-mgmt/sipcalc
...
R-deps:
WWW:    http://www.routemeister.net/projects/sipcalc/
Port:   net/ipcalc
Moved:  net-mgmt/ipcalc
Date:   2004-02-22
Reason: new category
Port:   net/sipcalc
Moved:  net-mgmt/sipcalc
Date:   2004-02-22
Reason: new category
16:14:04
#[root@fbsd7:ports]# cd net-mgmt/ipcalc/
[root@fbsd7:ports]# cd ne
net/      net-im/   net-mgmt/ net-p2p/  news/
16:14:35
#[root@fbsd7:ipcalc]# ping ya.ru
[root@fbsd7:ipcalc]# make install
===>  Vulnerability check disabled, database not found
=> ipcalc-0.41.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch from http://jodies.de/ipcalc-archive/.
fetch: http://jodies.de/ipcalc-archive/ipcalc-0.41.tar.gz: No address record
=> Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/.
fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ipcalc-0.41.tar.gz: No address record
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/ports/distfiles/ and try again.
*** Error code 1
Stop in /usr/ports/net-mgmt/ipcalc.
ping: cannot resolve ya.ru: Host name lookup failure
16:14:50
#[root@fbsd7:ipcalc]# vim /etc/rc.conf
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"
~
~
...
~
~
~
~
~
~
~
~
~
"/etc/rc.conf" 18 lines, 462 characters written
16:15:03
#[root@fbsd7:ipcalc]#

Статистика

Время первой команды журнала18:39:56 2009- 7-27
Время последней команды журнала16:15:03 2009- 7-29
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, %10.89
Процент синтаксически неверно набранных команд, % 5.94
Суммарное время работы с терминалом *, час 1.42
Количество командных строк в единицу времени, команда/мин 1.18
Частота использования команд
sudo45|===============================| 31.47%
[user@fbsd7:~]$26|==================| 18.18%
arp23|================| 16.08%
ifconfig8|=====| 5.59%
apt-get8|=====| 5.59%
[root@fbsd7:~]#5|===| 3.50%
xpdf4|==| 2.80%
screen3|==| 2.10%
oowriter3|==| 2.10%
[root@fbsd7:ipcalc]#3|==| 2.10%
ssh3|==| 2.10%
tcpdump2|=| 1.40%
route2|=| 1.40%
[root@fbsd7:ports]#2|=| 1.40%
evince1|| 0.70%
Warning:1|| 0.70%
vim1|| 0.70%
bg1|| 0.70%
ifdown1|| 0.70%
ls1|| 0.70%
____
*) Интервалы неактивности длительностью 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$