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

Содержание

Журнал

Вторник (06/02/09)

/dev/pts/5
09:08:57
$su

09:12:36
#vim /etc/a[[rox/approx.conf
09:12:53
#~
 10 # See approx.conf(5) for details.
 11
 12 #$max_wait      10
"/etc/approx/approx.conf" 19L, 549C+q436f+q6b75+q6b64+q6b72+q6b6c+q2332+q2334+q2569+q2a37+q6b31
 13 #$max_rate      unlimited
 14 #$user          approx
 15 #$group         approx
 16 #$syslog        daemon
 17 #$pdiffs        true
 18 #$verbose       false
~
~
~
"/etc/approx/approx.conf" 19L, 549C записано
09:13:53
#approx-import
Usage: approx-import [options] file ...
Import local files into the approx cache
Options:
    -s|--simulate   scan but do not actually import any files
    -q|--quiet      do not print the file names that are imported
    -v|--verbose    print information about each file
09:14:02
#approximport
bash: approximport: команда не найдена
09:14:09
#approx import
Failure: not running as user approx
09:14:11
#apt-get update
Ош  http://192.168.15.10 sid Release.gpg
  Не удаётся соединиться с 192.168.15.10:9999 (192.168.15.10). - connect (113 Нет пути до хоста)
0% [Соединение с 192.168.15.10 (192.168.15.10)]^C
09:14:28
#vim /etc/apt/sources.list
09:15:45
#apt-get install tcpdump
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Следующие пакеты устанавливались автоматически и больше не требуются:
  portmap
Для их удаления используйте 'apt-get autoremove'.
НОВЫЕ пакеты, которые будут установлены:
  tcpdump
обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 54 пакетов не обновлено.
Необходимо скачать 325kБ архивов.
После данной операции, объём занятого дискового пространства возрастёт на 733kB.
Получено:1 http://192.168.105.2 sid/main tcpdump 4.0.0-2 [325kB]
Получено 325kБ за 0s (2860kБ/c)
Выбор ранее не выбранного пакета tcpdump.
(Чтение базы данных ... на данный момент установлено 61413 файлов и каталогов.)
Распаковывается пакет tcpdump (из файла .../tcpdump_4.0.0-2_i386.deb)...
Обрабатываются триггеры для man-db ...
Настраивается пакет tcpdump (4.0.0-2) ...
09:16:34
#ssh 192.168.105.1
The authenticity of host '192.168.105.1 (192.168.105.1)' can't be established.
RSA key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.105.1' (RSA) to the list of known hosts.
root@192.168.105.1's password:
Linux linux9 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 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: Sat May 30 15:32:07 2009
09:17:09
#tcpdump -i eth0 -n
bash: tcpdump: команда не найдена
09:17:58
#exit
exit
Connection to 192.168.105.1 closed.
09:18:08
#mii-tool
SIOCGMIIREG on eth0 failed: Input/output error
SIOCGMIIREG on eth0 failed: Input/output error
eth0: negotiated 100baseTx-FD, link ok
09:21:00
#mii-tool eth0
SIOCGMIIREG on eth0 failed: Input/output error
SIOCGMIIREG on eth0 failed: Input/output error
eth0: negotiated 100baseTx-FD, link ok
09:21:07
#mii-tool --help
usage: mii-tool [-VvRrwl] [-A media,... | -F media] [interface ...]
       -V, --version               display version information
       -v, --verbose               more verbose output
       -R, --reset                 reset MII to poweron state
       -r, --restart               restart autonegotiation
       -w, --watch                 monitor for link status changes
       -l, --log                   with -w, write events to syslog
       -A, --advertise=media,...   advertise only specified media
       -F, --force=media           force specified media technology
media: 1000baseTx-HD, 1000baseTx-FD,
       100baseT4, 100baseTx-FD, 100baseTx-HD,
       10baseT-FD, 10baseT-HD,
       (to advertise both HD and FD) 1000baseTx, 100baseTx, 10baseT
09:21:14
#mii-tool -F 100
SIOCSMIIREG on eth0 failed: Operation not supported
09:21:57
#mii-tool -F=media 100
Invalid media specification '=media'.
09:22:22
#mii-tool -F media eth0 100
Invalid media specification 'media'.
09:22:51
#mii-tool -F media eth0 10
Invalid media specification 'media'.
09:22:55
#mii-tool -F eth0 10
Invalid media specification 'eth0'.
09:23:14
#mii-tool --force=media eth0 10
Invalid media specification 'media'.
09:23:44