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

Содержание

Журнал

Вторник (12/19/06)

/dev/pts/2
18:45:10
#/usr/bin/php

18:45:32
# Ђройки Правая панель
  Ð5CФайл     Команда     Настройки     Правая панель                                     \
┌<─/media/cdrom/ASPLinux/RPMS────────────────────v>┐┌<─/usr/local/share/phpsyslogng/config────────────v>┐
│             Имя             │Размер │Время правки││              Имя             │Размер │Время правки│
│ perl-URI-1.30-1.noarch.rpm  │  81102│Окт 26  2004││/..                           │-ВВЕРХ-│            │
│ perl-XML-Dumpe~-1.noarch.rpm│  16800│Окт 26  2004││ config.php                   │   6204│Дек 19 18:41│
│ perl-XML-Encod~25.noarch.rpm│  11902│Окт 26  2004││                              │       │            │
│ perl-XML-Grove~26.noarch.rpm│  57100│Окт 26  2004││                              │       │            │
│ perl-XML-LibXM~6-10.i386.rpm│ 225812│Окт 26  2004││                              │       │            │
│ perl-XML-LibXM~13-5.i386.rpm│  15482│Окт 26  2004││                              │       │            │
│ perl-XML-Names~-5.noarch.rpm│  13232│Окт 26  2004││                              │       │            │
...
//    refresh the screen before SESSION_EXP_TIME. This is the default.
// 2) The session is timed from the time you login. The session is only
//    refreshed on login.
define('RENEW_SESSION_ON_EACH_PAGE', TRUE);
// SESSION_EXP_TIME is seconds until the session expires.
define('SESSION_EXP_TIME', '3600');
// Set the URL to php-syslog-ng. If you don't then the login screen will
// not be able to redirect users automatically after a successful login.
//define('URL', 'http://URL HERE/');
//========================================================================
18:54:09
# Ђройки Правая панель
define('DBADMINPW', 'pw');
define('DBADMIN', 'syslogadmin');base you are using.
// DBHOST is the host where the MySQL server is running.
// DBADMINPW is DBADMIN's database password.
define('COUNT_ROWS', TRUE);
define('DBADMINPW', 'pw');e the MySQL server is listening.
   The default port is 3306.
//========================================================================
// DBNAME is the name of the database you are using.
define('DBNAME', 'syslog');===============================================
// DBHOST is the host where the MySQL server is running.
define('DBHOST', 'localhost');
  ========================================================================
// END: DATABASE CONNECTION INFO
// DBPORT is the port where the MySQL server is listening.
// The default port is 3306.
define('DBPORT', '3306');
/dev/pts/7
18:57:54
$mysql -u syslogadmin p
ERROR 1045: Access denied for user: 'syslogadmin@localhost' (Using password: NO)
18:58:03
$mysql -u syslogadmin -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 18 to server version: 3.23.58
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> Bye
/dev/pts/2
19:02:35
#mysqladmin -u root -p
mysqladmin  Ver 8.23 Distrib 3.23.58, for redhat-linux-gnu on i386
Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license
Administration program for the mysqld daemon.
Usage: mysqladmin [OPTIONS] command command....
  -#, --debug=...       Output debug log. Often this is 'd:t:o,filename`
  -f, --force           Don't ask for confirmation on drop database; with
                        multiple commands, continue even if an error occurs
  -?, --help            Display this help and exit
...
  ping                  Check if mysqld is alive
  processlist           Show list of active threads in server
  reload                Reload grant tables
  refresh               Flush all tables and close and open logfiles
  shutdown              Take server down
  status                Gives a short status message from the server
  start-slave           Start slave
  stop-slave            Stop slave
  variables             Prints variables available
  version               Get version info from server
19:02:45
#mysql -u root
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 19 to server version: 3.23.58
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> SET PASSWORD FOR 'syslogadmin'@'localhost' PASSWORD('qwe');
ERROR 1064: You have an error in your SQL syntax near 'PASSWORD('qwe')' at line 1
mysql> SET PASSWORD FOR 'syslogadmin'@'localhost' PASSWORD("qwe");
ERROR 1064: You have an error in your SQL syntax near 'PASSWORD("qwe")' at line 1
mysql> SET PASSWORD FOR 'syslogadmin'@'localhost' = PASSWORD('qwe');
Query OK, 0 rows affected (0.00 sec)
mysql> Bye
19:05:06
# Ђройки Правая панель
mysql -u root
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 20 to server version: 3.23.58
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> flush priveleges;
ERROR 1064: You have an error in your SQL syntax near 'priveleges' at line 1
mysql> flush privileges;
Query OK, 0 rows affected (0.02 sec)
mysql> Bye
19:06:42
#ls -l
итого 8
-rw-r--r--  1 root root 6196 Дек 19 19:05 config.php
19:07:04
#less config.php
19:07:32
#mysql -u syslogadmin
ERROR 1045: Access denied for user: 'syslogadmin@localhost' (Using password: NO)
19:07:42
#mysql -u syslogadmin -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 22 to server version: 3.23.58
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> show tables;
ERROR 1046: No Database Selected
mysql> use syslog;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
...
| linux3 | cron     | info     | info   | 4e   | 2005-12-19 17:55:00 | CROND     | CROND[29482]: (root) CMD (/usr/bin/mrtg /etc/mrtg/mrtg.cfg)                         |  19 |
| linux3 | authpriv | info     | info   | 56   | 2005-12-19 17:59:25 | sshd      | sshd[29801]: Accepted publickey for root from ::ffff:192.168.15.254 port 38908 ssh2 |  20 |
| linux3 | cron     | info     | info   | 4e   | 2005-12-19 18:00:00 | crond     | crond[2175]: (system_u) RELOAD (/etc/crontab)                                       |  21 |
| linux3 | cron     | info     | info   | 4e   | 2005-12-19 18:00:00 | CROND     | CROND[29936]: (root) CMD (/usr/bin/mrtg /etc/mrtg/mrtg.cfg)                         |  22 |
| linux3 | cron     | info     | info   | 4e   | 2005-12-19 18:01:00 | CROND     | CROND[29939]: (root) CMD (run-parts /etc/cron.hourly)                               |  23 |
| linux3 | syslog   | notice   | notice | 2d   | 2005-12-19 18:03:27 | syslog-ng | syslog-ng[28720]: STATS: dropped 0                                                  |  24 |
| linux3 | cron     | info     | info   | 4e   | 2005-12-19 18:05:00 | CROND     | CROND[29945]: (root) CMD (/usr/bin/mrtg /etc/mrtg/mrtg.cfg)                         |  25 |
+--------+----------+----------+--------+------+---------------------+-----------+-------------------------------------------------------------------------------------+-----+
25 rows in set (0.00 sec)
mysql> Bye
19:08:17
#tail /var/log/httpd/
access_log  error_log
19:08:17
#tail /var/log/httpd/error_log
[Mon Dec 19 19:00:26 2005] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Mon Dec 19 19:00:27 2005] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Mon Dec 19 19:00:28 2005] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Mon Dec 19 19:00:29 2005] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Mon Dec 19 19:00:30 2005] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Mon Dec 19 19:05:27 2005] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Mon Dec 19 19:05:30 2005] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Mon Dec 19 19:06:46 2005] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Mon Dec 19 19:06:47 2005] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Mon Dec 19 19:06:48 2005] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
19:08:36
#less /var/log/httpd/error_log
19:08:52
#cd ..

19:08:55
#ls
CHANGELOG  config  css  includes  index.php  LICENSE  README  scripts
19:08:55
#vi index.php
19:10:23
#grep -r db_connect_syslog .
./includes/common_funcs.php:function db_connect_syslog($dbUser, $dbPassword, $connType = 'P') {
./includes/about.php:<li>Fixed issue with persistent MySQL connections. db_connect_syslog() now only uses mysql_pconnect() if it is available.</li>
./includes/configure.php:               $admLink = db_connect_syslog(DBADMIN, DBADMINPW, 'C');
./includes/configure.php:               $admLink = db_connect_syslog(DBADMIN, DBADMINPW, 'C');
./includes/configure.php:               $admLink = db_connect_syslog(DBADMIN, DBADMINPW, 'C');
./includes/configure.php:               $admLink = db_connect_syslog(DBADMIN, DBADMINPW, 'C');
./scripts/logrotate.php:$dbLink = db_connect_syslog(DBADMIN, DBADMINPW);
./scripts/reloadcache.php:$dbLink = db_connect_syslog(DBUSER, DBUSERPW);
./CHANGELOG:* Fixed issue with persistent MySQL connections. db_connect_syslog() now only uses mysql_pconnect() if it is available.
./index.php:if(!$dbLink = db_connect_syslog(DBUSER, DBUSERPW)) {
19:10:31
#vi includes/common_funcs.php
19:11:30
#vi config/config.php
19:13:59
# Ђройки Правая панель
 ^H
[1]+  Stopped                 syslog_mysql.sh
19:19:24
# Ђройки Правая панель
  Ђройки     Правая панель
19:21:27
#/etc/init.d/httpd restart
Останавливается httpd:                      [  ОК  ]
Запускается httpd:                              [  ОК  ]
19:26:19
#mc
19:27:01
# Ђройки Правая панель

19:27:29
#/etc/init.d/httpd restart
Останавливается httpd:                      [  ОК  ]
Запускается httpd:                              [  ОК  ]
19:27:32
#mysql -u root
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 167 to server version: 3.23.58
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> GRANT SELECT, INSERT, DELETE, CREATE,
    -> ALTER, LOCK TABLES ON syslog.* TO syslogadmin@localhost;
ERROR 1064: You have an error in your SQL syntax near 'LOCK TABLES ON syslog.* TO syslogadmin@localhost' at line 2
mysql>
mysql> GRANT SELECT, INSERT, DELETE, CREATE,
    -> ALTER N syslog.* TO syslogadmin@localhost;
Query OK, 0 rows affected (0.00 sec)
mysql>
[1]+  Stopped                 mysql -u root
19:30:38
#/etc/init.d/httpd restart
Останавливается httpd:                      [  ОК  ]
Запускается httpd:                              [  ОК  ]

Среда (12/20/06)

/dev/pts/5
09:20:08
$su
   /media/cdrom/ASPLinux/RPMS────────────────────────
â libieee1284-deve~2.8-2.1.i386.rpm│ 123805│Окт 26  2004  ││/..                               │-ВВЕРХ-│            │
â libjpeg-devel-6b-31.1.i386.rpm   â”173325│Окт 2611  200404││/.gconf                           │   4096│Дек 20 14:22│
â libksba-devel-0.4.6-3asp.i386.rpm│  85132│Окт 26  200404││/.gnome                           │   4096│Дек 18 09:11│
â”libmad-devel-0.1~1b-1asp.i386.rpm│  70589│Окт 26  200404││/.gnome2_private                  │   4096│Дек 18 09:11│
â”libmng-devel-1.0.4-5.1.i386.rpm     31795│Окт 26  20042004││/.kde                             │   4096│Дек 18 19:57│
â”libmovtar-0.1.3-2asp.i386.rpm pm   269399│Окт 26  20042004││/.mc                              │   4096│Дек 20 14:04│
â”libmusicbrainz-2.0.2-7.1.i386.rpm│ 239271│Окт 26  200404││/.ssh                             │   4096│Дек 20 14:16│
â libnet-1.1.2.1-0.10asp.i386.rpm  │ 217197│Окт 26  200404││ .bash_history                    │  11131│Дек 20 14:17│
â”libobjc-3.3.3-7asp.i386.rpm pm     â50531│Окт 26  20042004││ .bash_profile                    │     40│Дек 19 11:37│
â”libofx-devel-0.6.6-1.i386.rpm      259886│Окт 26  20042004││ .cshrc                           │    210│Июн 11  2000│
â”libogg-devel-1.1-2.1.i386.rpm    │70778│Окт 26  20042004││ final_settings.err               │   1614│Дек 18 19:57│
â”libole2-devel-0.2.4-8.1.i386.rpm │  34371│Окт 26  200404││ .gtkrc                           │    120│Дек 18 19:57│
â”libpng10-1.0.16-1.i386.rpm       â”151734│Окт 29  20042004││ megascript.pl                    │     56│Дек 20 11:31│
├─────────────────â”┤€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”œâ”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
└───────────────────────────────────────────────────────┘└───────────────────────────────────────────────────────┘
Password:
09:20:16
#setup
                                 │      Настройка X                   │
                                 │      Настройка аутентификации      │
                                 │      Настройка брандмауэра         │
                                 │      Настройка клавиатуры          │
                                 │      Настройка мыши                │
                                 │      Настройка принтера            │
                                 │      Настройка сети                │
                                 │      Настройка часового пояса      │
                                 │      Системные службы              │
                                 │                                    │
                                 │  ┌───────────────────┐  ┌───────┐  │
                                 │  │ Запустить утилиту │  │ Выход │  │
                                 │  └───────────────────┘  └───────┘  │
                                 │                                    │
                                 │                                    │
                                 └────────────────────────────────────┘
09:21:05
#/etc/init.d/httpd start
Запускается httpd:                              [  ОК  ]
09:21:14
#/etc/init.d/mysqld start
Запускается MySQL:                              [  ОК  ]
прошла 21 минута
/dev/pts/1
09:42:21
$su
Password:
/dev/pts/5
09:43:08
#setup
                                 ┌────────┤ Выберите утилиту ├────────┐
                                 │                                    │
                                 │      Настройка X                   │
                                 │      Настройка аутентификации      │
                                 │      Настройка брандмауэра         │
                                 │      Настройка клавиатуры          │
                                 │      Настройка мыши                │
                                 │      Настройка принтера            │
                                 │      Настройка сети                │
                                 │      Настройка часового пояса      │
                                 │      Системные службы              │
                                 │                                    │
                                 │  ┌───────────────────┐  ┌───────┐  │
                                 │  │ Запустить утилиту │  │ Выход │  │
                                 │  └───────────────────┘  └───────┘  │
                                 │                                    │
                                 │                                    │
                                 └────────────────────────────────────┘
09:45:40
#mount /media/cdrom/
mount: /dev/hdc already mounted or /media/cdrom busy
mount: according to mtab, /dev/hdc is already mounted on /media/cdrom
09:52:19
#cd /media/cdrom/

09:52:36
#ls
ASPLinux          dosutils        LafoxNet.dos  LICENSE.RUS      RELEASE_NOTES
ASPLinux-updates  files.ls-lR.gz  LafoxNet.koi  LICENSE.RUS.koi  RELEASE_NOTES.RUS
boot              GPG-KEY         LafoxNet.utf  mk_cd            RELEASE_NOTES.RUS.koi
disk              GPL             LICENSE.ENG   README           TRANS.TBL
09:52:38
#[root@linux3:cdrom]# mc

прошло 25 минут
10:18:13
#which tripwire
/usr/bin/which: no tripwire in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin)
10:18:47
#[root@linux3:cdrom]# mc
  Ђройки     Правая панель
Совет: Для смены каталога во время набора команды, нажмите M-c (быстрая смена).
10:22:06
#[root@linux3:cdrom]# ls
ASPLinux          disk            GPG-KEY       LafoxNet.koi  LICENSE.RUS      README             RELEASE_NOTES.RUS.koi
ASPLinux-updates  dosutils        GPL           LafoxNet.utf  LICENSE.RUS.koi  RELEASE_NOTES      TRANS.TBL
boot              files.ls-lR.gz  LafoxNet.dos  LICENSE.ENG   mk_cd            RELEASE_NOTES.RUS
прошло 47 минут
11:09:17
#ls -la
итого 131
drwxr-xr-x   7 root root  4096 Янв  8  2005 .
drwxr-xr-x   4 root root  4096 Дек 20 09:19 ..
drwxr-xr-x   5 root root  2048 Авг 19  2004 ASPLinux
drwxr-xr-x  10 root root  2048 Янв  8  2005 ASPLinux-updates
drwxr-xr-x   3 root root  2048 Ноя 20  2004 boot
-rw-r--r--   1 root root    67 Ноя 22  2004 .discinfo
-r--r--r--   1 root root    80 Янв  8  2005 disk
drwxr-xr-x   2 root root  2048 Авг 19  2004 .disk
drwxr-xr-x   6 root root  4096 Янв  8  2005 dosutils
...
-r--r--r--   1 root root   615 Сен 10  2004 LafoxNet.utf
-rw-r--r--   1 root root  5683 Ноя 20  2004 LICENSE.ENG
-rw-r--r--   1 root root  5811 Ноя 20  2004 LICENSE.RUS
-rw-r--r--   1 root root  5811 Ноя 20  2004 LICENSE.RUS.koi
-r--r--r--   1 root root  1379 Янв  8  2005 mk_cd
-rw-r--r--   1 root root 15817 Ноя 20  2004 README
-rw-r--r--   1 root root  1769 Ноя 20  2004 RELEASE_NOTES
-rw-r--r--   1 root root  3310 Ноя 20  2004 RELEASE_NOTES.RUS
-rw-r--r--   1 root root  3310 Ноя 20  2004 RELEASE_NOTES.RUS.koi
-r--r--r--   1 root root  4665 Янв  8  2005 TRANS.TBL
11:09:22
#[root@linux3:cdrom]#

прошло 24 минуты
11:34:00
#[root@linux3:cdrom]# top
top - 11:34:33 up  2:16,  3 users,  load average: 3.03, 3.16, 3.05
Tasks: 106 total,   3 running, 103 sleeping,   0 stopped,   0 zombie
Cpu(s): 83.0% us,  3.7% sy,  0.0% ni,  0.0% id, 13.3% wa,  0.0% hi,  0.0% si
Mem:   1027772k total,   838108k used,   189664k free,   126984k buffers
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
Swap:  1024088k total,        0k used,  1024088k free,   457180k cached
 2897 user      16   0 10572 6480 5136 S 46.8  0.6   1:49.92 l3-agent
 5997 root      24   0 26756  20m 6360 R 36.2  2.1   0:01.09 cc1
 2753 root      15   0  161m  27m 137m S  1.0  2.8   2:17.26 X
 3579 root      15   0 11324 5820 5136 S  0.7  0.6   0:47.18 l3-agent
...
 1851 rpc       18   0  2960  572 1376 S  0.0  0.1   0:00.00 portmap
 1871 rpcuser   24   0  2824  792 1472 S  0.0  0.1   0:00.00 rpc.statd
 1920 root      16   0  1968  560 1300 S  0.0  0.1   0:00.00 rpc.idmapd
 2015 nobody    17   0 13468  956 1436 S  0.0  0.1   0:00.00 mDNSResponder
 2027 root      16   0  3000  776 1416 S  0.0  0.1   0:00.00 smartd
 2040 root      23   0  2060  448 1240 S  0.0  0.0   0:00.00 acpid
 2071 root      16   0 10760 3412 6252 S  0.0  0.3   0:00.37 cupsd
 2113 root      16   0  5304 1504 3560 S  0.0  0.1   0:00.32 sshd
 2124 root      21   0  3496  860 1716 S  0.0  0.1   0:00.00 xinetd
 2146 root      16   0  9196 2948 6328 S  0.0  0.3   0:00.01 sendmail
11:35:22
#[root@linux3:cdrom]# find / -perm +4000
/usr/X11R6/bin/Xorg
/usr/bin/chage
/usr/bin/gpasswd
/usr/bin/chfn
/usr/bin/chsh
/usr/bin/newgrp
/usr/bin/passwd
/usr/bin/at
/usr/bin/lppasswd
/usr/bin/crontab
...
/bin/mount
/bin/umount
/bin/ping
/bin/ping6
/bin/traceroute6
/bin/traceroute
find: /proc/6535/task/6535/fd/4: No such file or directory
/sbin/pam_timestamp_check
/sbin/pwdb_chkpwd
/sbin/unix_chkpwd
11:36:40
#tripware
bash: tripware: command not found
11:41:44
#mc
11:45:26
#make
cd . \
  && CONFIG_FILES= CONFIG_HEADERS=config.h \
     /bin/sh ./config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
make  all-am
make[1]: Entering directory `/root/temp/yafic-1.1.1'
source='yafic.c' object='yafic.o' libtool=no \
depfile='.deps/yafic.Po' tmpdepfile='.deps/yafic.TPo' \
...
yafic.c:856: error: too few arguments to function
yafic.c:859: error: too few arguments to function
yafic.c: In function `cleanUp':
yafic.c:867: error: too few arguments to function
yafic.c:869: error: too few arguments to function
yafic.c:871: error: too few arguments to function
yafic.c:873: error: too few arguments to function
make[1]: *** [yafic.o] Ошибка 1
make[1]: Leaving directory `/root/temp/yafic-1.1.1'
make: *** [all] Ошибка 2
11:45:39
#make install
source='yafic.c' object='yafic.o' libtool=no \
depfile='.deps/yafic.Po' tmpdepfile='.deps/yafic.TPo' \
depmode=gcc3 /bin/sh ./depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I.    -Wall -g -O2 -c `test -f yafic.c || echo './'`yafic.c
yafic.c: In function `displayDBHash':
yafic.c:195: error: too few arguments to function
yafic.c: In function `checkDeleted':
yafic.c:278: error: `R_FIRST' undeclared (first use in this function)
yafic.c:278: error: (Each undeclared identifier is reported only once
yafic.c:278: error: for each function it appears in.)
...
yafic.c:822: error: structure has no member named `seq'
yafic.c:850: error: `R_NEXT' undeclared (first use in this function)
yafic.c:856: error: too few arguments to function
yafic.c:859: error: too few arguments to function
yafic.c: In function `cleanUp':
yafic.c:867: error: too few arguments to function
yafic.c:869: error: too few arguments to function
yafic.c:871: error: too few arguments to function
yafic.c:873: error: too few arguments to function
make: *** [yafic.o] Ошибка 1
11:45:54
# Ђройки Правая панель
  Ђройки     Правая панель
11:46:55
# Ђройки Правая панель
  Ð5CФайл     Команда. 0  Настройки     Правая панель
yafic 1.1.1 (2003-Sep-17)
│                   Имя                  │Размер │Время правки││                   Имя                  │Размер │Время правки│z#utar───────────────────────v>┐
│/..                                     │-ВВЕРХ-│            ││/..                                     │-ВВЕРХ-│            │
│/.deps                                  │   4096│Дек 20 11:46││/yafic-1.1.1                            │      0│Сен 17  2003│
│ acinclude.m401-2003 Allan Saddi <allan@│    860│Фев 24  2003││                                        │       │            │
│ aclocal.m4                             │  19816│Сен 17  2003││                                        │       │            │
│ ChangeLog                              │   1581│Сен 17  2003││                                        │       │            │
│ config.heserved.                       │   3647│Дек 20 11:45││                                        │       │            │
│ config.h.in                            │   3429│Сен 17  2003││                                        │       │            │
...
Tripwire[1], integrit[2], and AIDE[3]. yafic came to be because no file
ignore explicitly specified directories/files within that directory.)
integrity checker I found did things the way I wanted it to. (Actually,
I haven't tried AIDE, but from the description, it already seems overly
[1] http://www.tripwire.org/
complex.) I wanted something fast, simple, and yet be flexible enough to
be used in different situations. integrit almost fit the bill, except for
the way it interpreted its checkset. (Pruning a directory would also
ignore explicitly specified directories/files within that directory.)
[1] http://www.tripwire.org/
11:49:18
# Ђройки Правая панель
{                                                                                                                          38
      snprintf (buf2, sizeof (buf2), " s(" ST_SIZE_FMT ":" ST_SIZE_FMT ")",
                ST_SIZE_CAST oldsb.st_size, ST_SIZE_CAST sb->st_size);
static void
    }
checif ((flags & RFLAG_ATIME) && sb->st_atime != oldsb.st_atime) {
                " u(" ST_UID_FMT ")"
{ DBT key, data;
  int res;
  uint8_t *bufp;
...
      en
  key.data = (char *) name;
stkey.size = strlen (name);
  if (!(res = db->get (db, &key, &data, 0))) {
    if (data.size != DB_RECORD_SIZE) {
      fprintf (stderr, "%s: %s: %s\n", prog, dbName,
               "bad database format");
st    exit (1);
    }
di    switch (SimpleOutput) {
11:53:47
#make check
source='yafic.c' object='yafic.o' libtool=no \
depfile='.deps/yafic.Po' tmpdepfile='.deps/yafic.TPo' \
depmode=gcc3 /bin/sh ./depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I.    -Wall -g -O2 -c `test -f yafic.c || echo './'`yafic.c
yafic.c: In function `displayDBHash':
yafic.c:195: error: too few arguments to function
yafic.c: In function `checkDeleted':
yafic.c:278: error: `R_FIRST' undeclared (first use in this function)
yafic.c:278: error: (Each undeclared identifier is reported only once
yafic.c:278: error: for each function it appears in.)
...
yafic.c:822: error: structure has no member named `seq'
yafic.c:850: error: `R_NEXT' undeclared (first use in this function)
yafic.c:856: error: too few arguments to function
yafic.c:859: error: too few arguments to function
yafic.c: In function `cleanUp':
yafic.c:867: error: too few arguments to function
yafic.c:869: error: too few arguments to function
yafic.c:871: error: too few arguments to function
yafic.c:873: error: too few arguments to function
make: *** [yafic.o] Ошибка 1
11:53:51
# Ђройки Правая панель
  Ђройки     Правая панель
│                   Имя                  │Размер │Время правки││                   Имя                  │Размер │Время правки│€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€v>┐
│ config.log                             │  18903│Дек 20 11:46││ d4x-2.5.0-2asp.i386.rpm                │1255388│Ноя  4  2004│
│*config.status                          │  32180│Дек 20 11:45││ dante-1.1.14-2asp.i386.rpm             │ 187474│Окт 26  2004│
│*configure                              │ 166924│Сен 17  2003││ dante-devel-1.1.14-2asp.i386.rpm       │  84415│Окт 26  2004│
│ configure.in                           │   1506│Сен 17  2003││ dante-server-1.1.14-2asp.i386.rpm      │  91333│Окт 26  2004│
│*depcomp                                │  12117│Окт 10  2002││ dasher-3.2.11-4.i386.rpm               │2965715│Окт 27  2004│
│ dirname.c                              │   2440│Фев 24  2003││ db4-4.2.52-5.i386.rpm                  │1607080│Окт 26  2004│
│ INSTALL                                │   7831│Фев 24  2003││ db4-devel-4.2.52-5.i386.rpm            │1971163│Окт 26  2004│
│*install-sh                             │   5598│Окт 10  2002││ db4-java-4.2.52-5.i386.rpm             │1940303│Окт 26  2004│
...
│ view.c                                 │   4594│Сен 17  2003││ desktop-printing-0.16-2.i386.rpm       │  98703│Окт 26  2004│
│ yafic.1                                │   4802│Сен 17  2003││ dev86-0.16.15-1.i386.rpm               │ 375323│Окт 26  2004│
│ yafic.c                                │  26300│Сен 17  2003││ devhelp-0.9.1-6.i386.rpm               │ 121609│Окт 26  2004│
│ yafic.conf.5                           │   5183│Фев 24  2003││ devhelp-devel-0.9.1-6.i386.rpm         │   9263│Окт 26  2004│
│ yafic.conf.sample                      │   1190│Июл 26  2003││ device-mapper-1.00.14-3.i386.rpm       │ 319718│Окт 26  2004│
│ yafic.h                                │   3394│Сен 17  2003││ devlabel-0.42.05-3.1.i386.rpm          │  30248│Окт 26  2004│
├──────────────────────────────────────────────────────────────├──────────────────────────────────────────────────────────────
│ INSTALL                                                     ││.0.18-2.i386.rpm                                             │
└─────────────────────────────────────────────────────────────┘└─────────────────────────────────────────────────────────────┘
Совет: Храните список часто посещаемых FTP в справочнике каталогов: нажмите C-\.
11:55:30
#make distclean
test -z "yafic" || rm -f yafic
rm -f *.o core *.core
rm -f *.tab.c
rm -rf .deps
rm -f Makefile  stamp-h stamp-h[0-9]*
rm -f config.h
rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
rm -f config.status config.cache config.log configure.lineno
11:55:44
#./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
...
checking size of struct stat's st_size... 4
checking size of struct stat's st_atime... 4
checking size of struct stat's st_mtime... 4
checking size of struct stat's st_ctime... 4
checking for dirname... yes
checking for strlcat... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing default-1 commands
11:55:57
#make
cd . \
  && CONFIG_FILES= CONFIG_HEADERS=config.h \
     /bin/sh ./config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
make  all-am
make[1]: Entering directory `/root/temp/yafic-1.1.1'
source='yafic.c' object='yafic.o' libtool=no \
depfile='.deps/yafic.Po' tmpdepfile='.deps/yafic.TPo' \
...
yafic.c:856: error: too few arguments to function
yafic.c:859: error: too few arguments to function
yafic.c: In function `cleanUp':
yafic.c:867: error: too few arguments to function
yafic.c:869: error: too few arguments to function
yafic.c:871: error: too few arguments to function
yafic.c:873: error: too few arguments to function
make[1]: *** [yafic.o] Ошибка 1
make[1]: Leaving directory `/root/temp/yafic-1.1.1'
make: *** [all] Ошибка 2
11:56:02
#make distclean
test -z "yafic" || rm -f yafic
rm -f *.o core *.core
rm -f *.tab.c
rm -rf .deps
rm -f Makefile  stamp-h stamp-h[0-9]*
rm -f config.h
rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
rm -f config.status config.cache config.log configure.lineno
11:57:31
# Ђройки Правая панель
 <─~/te/aide-0.9─────────                 v>┐┌<─/home/user/aide-0.9.tar.gz#utar”€â”€â”€â”€â”€â”€â”€â”€â”€v>€
â/..                                     │-ВВЕРХ-│                                             │-ВВЕРХ-│            оя  4  2004│
 /include                                │   4096│ 4юн 26  2005
â/src                                    │   409Июн  4  20022:23                                   │       │            :19кт 26  2004│
â acinclude.m4                           │   2812│Фев 24  2002                                   │       │            :25кт 26  2004│
â”aide.spec.in                             â”1289│Фев 24  2002 ││                                        │       │            │
â”ChangeLog                                â”3566│Июн  4  2002 ││                                        │       │            │
â*configure                              │ 113134│Июн  4  2002”‚│                                        │       │            │
â”COPYING                                  â17989│Фев 24  2002 ││                                        │       │            │
â*install-sh                             │   4837│Фев 24  2002”‚│                                        │       │            │
â”Makefile.in                              â12823│Июн  4  2002 ││                                        │       │            │
â*mkinstalldirs                          │    728│Фев 24  2002”‚│                                        │       │            │
â”README    .h                             â”2489│Май 29  2002                         11.noarch.rpm       │            :37Окт 26  2004│
┠        .h                              │   │            7                                 .9-1.i38      │            :57Окт 26  2004│
┠      .1                                ┠   │            7                        15-1.i386.rpm          │            :34Окт 26  2004│
┠           .5                           ┠   │            4                              .1-6.i386.rpm    │            :25Окт 26  2004│
┠      .h                                ┠   │            7                             -3.1.i386.rpm     │            :58Окт 26  2004│
â/..                                                            /aide-0.9                                                          │
СовÐВы хотите навигацию в стиле lynx? Установите это в диалоге Конфигурация.
                   7:57             aide-0.9]#
1Помощь 2Меню   3Просмот4Правка 5Копия  6Перемес7НвКтлог8Удалить9МенюMC 10Выход
11:58:27
# Ђройки Правая панель
  Ђройки     Правая панель
│                   Имя                  │Размер │Время правки││                   Имя                  │Размер │Время правки│RPMS───────────────────────────────v>┐
│/..                                     │-ВВЕРХ-│            ││ libgtop2-devel-2.8.0-1.i386.rpm        │  52768│Окт 27  2004│
│/doc                                    │   4096│Июн  4  2002││ libid3tag-0.15.1b-1asp.i386.rpm        │  42841│Окт 26  2004│
│/include                                │   4096│Июн  4  2002││ libid3tag-devel-0.15.1b-1asp.i386.rpm  │  38602│Окт 26  2004│
│/po                                     │   4096│Июн  4  2002││ libIDL-0.8.4-1.i386.rpm                │  82996│Окт 26  2004│
│/src                                    │   4096│Июн  4  2002││ libIDL-devel-0.8.4-1.i386.rpm          │  90757│Окт 26  2004│
│ acconfig.h                             │   2361│Мар 17  2002││ libidn-0.5.6-1.i386.rpm                │ 176903│Ноя  2  2004│
│ acinclude.m4                           │   2812│Фев 24  2002││ libidn-devel-0.5.6-1.i386.rpm          │ 228252│Ноя  2  2004│
│ aclocal.m4                             │  10876│Июн  4  2002││ libieee1284-0.2.8-2.1.i386.rpm         │  31627│Окт 26  2004│
...
│ README                                 │   2489│Май 29  2002││ libofx-0.6.6-1.i386.rpm                │ 134482│Окт 26  2004│
│ stamp-h.in                             │     10│Июн  4  2002││ libofx-devel-0.6.6-1.i386.rpm          │ 259886│Окт 26  2004│
│                                        │       │            ││ libogg-1.1-2.1.i386.rpm                │  16228│Окт 26  2004│
│                                        │       │            ││ libogg-devel-1.1-2.1.i386.rpm          │  70778│Окт 26  2004│
│                                        │       │            ││ libole2-0.2.4-8.1.i386.rpm             │  67084│Окт 26  2004│
│                                        │       │            ││ libole2-devel-0.2.4-8.1.i386.rpm       │  34371│Окт 26  2004│
├──────────────────────────────────────────────────────────────├──────────────────────────────────────────────────────────────
│/..                                                          ││d-devel-0.15.1b-1asp.i386.rpm                                │
└─────────────────────────────────────────────────────────────┘└─────────────────────────────────────────────────────────────┘
Совет: Want to do complex searches? Use the External Panelize command.
12:01:45
#./configure
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
...
checking whether stripping libraries is possible... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mhash.spec
config.status: creating include/Makefile
config.status: creating doc/Makefile
config.status: creating src/Makefile
config.status: creating lib/Makefile
config.status: creating mhash_config.h
config.status: executing depfiles commands
12:02:19
#make
make  all-recursive
make[1]: Entering directory `/root/temp/mhash-0.9.3'
Making all in include
make[2]: Entering directory `/root/temp/mhash-0.9.3/include'
make[2]: Цель `all' не требует выполнения команд.
make[2]: Leaving directory `/root/temp/mhash-0.9.3/include'
Making all in lib
make[2]: Entering directory `/root/temp/mhash-0.9.3/lib'
if /bin/sh ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include   -g -O2 -MT mhash.lo -MD -MP -MF ".deps/mhash.Tpo" -c -o mhash.lo mhash.c; \
then mv -f ".deps/mhash.Tpo" ".deps/mhash.Plo"; else rm -f ".deps/mhash.Tpo"; exit 1; fi
...
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include   -g -O2 -MT mhash_save_restore_test.o -MD -MP -MF ".deps/mhash_save_restore_test.Tpo" -c -o mhash_save_restore_test.o mhash_save_restore_test.c; \
then mv -f ".deps/mhash_save_restore_test.Tpo" ".deps/mhash_save_restore_test.Po"; else rm -f ".deps/mhash_save_restore_test.Tpo"; exit 1; fi
/bin/sh ../libtool --silent --tag=CC --mode=link gcc  -g -O2   -o rest_test  mhash_save_restore_test.o ../lib/libmhash.la
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include   -g -O2 -MT frag_test.o -MD -MP -MF ".deps/frag_test.Tpo" -c -o frag_test.o frag_test.c; \
then mv -f ".deps/frag_test.Tpo" ".deps/frag_test.Po"; else rm -f ".deps/frag_test.Tpo"; exit 1; fi
/bin/sh ../libtool --silent --tag=CC --mode=link gcc  -g -O2   -o frag_test  frag_test.o ../lib/libmhash.la
make[2]: Leaving directory `/root/temp/mhash-0.9.3/src'
make[2]: Entering directory `/root/temp/mhash-0.9.3'
make[2]: Leaving directory `/root/temp/mhash-0.9.3'
make[1]: Leaving directory `/root/temp/mhash-0.9.3'
12:03:14
#make install
Making install in include
make[1]: Entering directory `/root/temp/mhash-0.9.3/include'
make[2]: Entering directory `/root/temp/mhash-0.9.3/include'
make[2]: Цель `install-exec-am' не требует выполнения команд.
test -z "/usr/local/include" || mkdir -p -- "/usr/local/include"
 /usr/bin/install -c -m 644 'mhash.h' '/usr/local/include/mhash.h'
 /usr/bin/install -c -m 644 'mglobal.h' '/usr/local/include/mglobal.h'
 /usr/bin/install -c -m 644 'mtypes.h' '/usr/local/include/mtypes.h'
 /usr/bin/install -c -m 644 'mutils.h' '/usr/local/include/mutils.h'
make[2]: Leaving directory `/root/temp/mhash-0.9.3/include'
...
make[2]: Цель `install-exec-am' не требует выполнения команд.
make[2]: Цель `install-data-am' не требует выполнения команд.
make[2]: Leaving directory `/root/temp/mhash-0.9.3/src'
make[1]: Leaving directory `/root/temp/mhash-0.9.3/src'
make[1]: Entering directory `/root/temp/mhash-0.9.3'
make[2]: Entering directory `/root/temp/mhash-0.9.3'
make[2]: Цель `install-exec-am' не требует выполнения команд.
make[2]: Цель `install-data-am' не требует выполнения команд.
make[2]: Leaving directory `/root/temp/mhash-0.9.3'
make[1]: Leaving directory `/root/temp/mhash-0.9.3'
12:03:24
# Ђройки Правая панель
_0__8961_354T1 12:03:33[root@linux3:aide-0.9]# ./configure
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
...
checking for PostgresSQL support... no
updating cache ./config.cache
creating ./config.status
creating Makefile
creating src/Makefile
creating po/Makefile
creating doc/Makefile
creating doc/aide.conf
creating aide.spec
creating config.h
12:04:00
#make
make  all-recursive
make[1]: Entering directory `/root/temp/aide-0.9'
Making all in src
make[2]: Entering directory `/root/temp/aide-0.9/src'
bison -y -d -p conf -o conf_yacc.c /root/temp/aide-0.9/src/conf_yacc.y
gcc -DHAVE_CONFIG_H -I. -I/root/temp/aide-0.9/src -I.. -I/usr/local/include -I/root/temp/aide-0.9/include  -static  -static  -c conf_yacc.c
In file included from /usr/local/include/mhash.h:33,
                 from /root/temp/aide-0.9/include/db_config.h:47,
                 from /root/temp/aide-0.9/include/seltree.h:24,
                 from /root/temp/aide-0.9/include/gen_list.h:23,
...
/root/temp/aide-0.9/src/conf_yacc.y:268: error: request for member `warn_dead_symlinks' in something not a structure or union
/root/temp/aide-0.9/src/conf_yacc.y:272: error: request for member `warn_dead_symlinks' in something not a structure or union
/root/temp/aide-0.9/src/conf_yacc.y:277: error: request for member `gzip_dbout' in something not a structure or union
/root/temp/aide-0.9/src/conf_yacc.y:284: error: request for member `gzip_dbout' in something not a structure or union
/root/temp/aide-0.9/src/conf_yacc.y:294: error: request for member `config_version' in something not a structure or union
make[2]: *** [conf_yacc.o] Ошибка 1
make[2]: Leaving directory `/root/temp/aide-0.9/src'
make[1]: *** [all-recursive] Ошибка 1
make[1]: Leaving directory `/root/temp/aide-0.9'
make: *** [all-recursive-am] Ошибка 2
12:04:05
#ls /usr/local/include/
mglobal.h  mhash.h  mtypes.h  mutils.h
12:04:36
#cd ../mhash-0.9.3/

12:04:43
#ls
acconfig.h      buildconf            config.status  CVS             INSTALL     Makefile           mhash.spec     src
acinclude.m4    ChangeLog            config.sub     CYGWIN-PATCHES  install-sh  Makefile.am        mhash.spec.in  stamp-h1
aclocal.m4      changelog-update.sh  configure      depcomp         lib         Makefile.in        missing        THANKS
AUTHORS         config.guess         configure.in   doc             libtool     mhash_config.h     NEWS           TODO
autom4te.cache  config.log           COPYING        include         ltmain.sh   mhash_config.h.in  README         win32
12:04:44
#cp mhash_config.h /usr/local/include/m

12:04:58
#cd -
/root/temp/aide-0.9
12:05:00
#make
make  all-recursive
make[1]: Entering directory `/root/temp/aide-0.9'
Making all in src
make[2]: Entering directory `/root/temp/aide-0.9/src'
gcc -DHAVE_CONFIG_H -I. -I/root/temp/aide-0.9/src -I.. -I/usr/local/include -I/root/temp/aide-0.9/include  -static  -static  -c conf_yacc.c
In file included from /usr/local/include/mhash.h:33,
                 from /root/temp/aide-0.9/include/db_config.h:47,
                 from /root/temp/aide-0.9/include/seltree.h:24,
                 from /root/temp/aide-0.9/include/gen_list.h:23,
                 from /root/temp/aide-0.9/src/conf_yacc.y:27:
...
/root/temp/aide-0.9/src/conf_yacc.y:268: error: request for member `warn_dead_symlinks' in something not a structure or union
/root/temp/aide-0.9/src/conf_yacc.y:272: error: request for member `warn_dead_symlinks' in something not a structure or union
/root/temp/aide-0.9/src/conf_yacc.y:277: error: request for member `gzip_dbout' in something not a structure or union
/root/temp/aide-0.9/src/conf_yacc.y:284: error: request for member `gzip_dbout' in something not a structure or union
/root/temp/aide-0.9/src/conf_yacc.y:294: error: request for member `config_version' in something not a structure or union
make[2]: *** [conf_yacc.o] Ошибка 1
make[2]: Leaving directory `/root/temp/aide-0.9/src'
make[1]: *** [all-recursive] Ошибка 1
make[1]: Leaving directory `/root/temp/aide-0.9'
make: *** [all-recursive-am] Ошибка 2
12:05:06
#!cd
cd -
/root/temp/mhash-0.9.3
12:05:32
#cp mhash_config.h /usr/local/include/

12:05:35
#cd -
/root/temp/aide-0.9
12:05:37
#make
../config.h:161:1: warning: "VERSION" redefined
In file included from /usr/local/include/mutils.h:27,
                 from /usr/local/include/mhash.h:33,
                 from /root/temp/aide-0.9/include/db_config.h:47,
                 from /root/temp/aide-0.9/include/report.h:26,
                 from /opt/rammer/cvs/tmp/aide2/src/db_lex.l:51:
/usr/local/include/mhash_config.h:151:1: warning: this is the location of the previous definition
gcc -DHAVE_CONFIG_H -I. -I/root/temp/aide-0.9/src -I.. -I/usr/local/include -I/root/temp/aide-0.9/include  -static  -static  -c db_sql.c
gcc -DHAVE_CONFIG_H -I. -I/root/temp/aide-0.9/src -I.. -I/usr/local/include -I/root/temp/aide-0.9/include  -static  -static  -c gen_list.c
In file included from /root/temp/aide-0.9/include/aide.h:25,
...
make[2]: Entering directory `/root/temp/aide-0.9/doc'
make[2]: Цель `all' не требует выполнения команд.
make[2]: Leaving directory `/root/temp/aide-0.9/doc'
Making all in po
make[2]: Entering directory `/root/temp/aide-0.9/po'
make[2]: Цель `all' не требует выполнения команд.
make[2]: Leaving directory `/root/temp/aide-0.9/po'
make[2]: Entering directory `/root/temp/aide-0.9'
make[2]: Leaving directory `/root/temp/aide-0.9'
make[1]: Leaving directory `/root/temp/aide-0.9'
12:05:50
#make install
Making install in src
make[1]: Entering directory `/root/temp/aide-0.9/src'
make[2]: Entering directory `/root/temp/aide-0.9/src'
/bin/sh /root/temp/aide-0.9/mkinstalldirs /usr/local/bin
  /usr/bin/install -c  aide /usr/local/bin/aide
make[2]: Цель `install-data-am' не требует выполнения команд.
make[2]: Leaving directory `/root/temp/aide-0.9/src'
make[1]: Leaving directory `/root/temp/aide-0.9/src'
Making install in doc
make[1]: Entering directory `/root/temp/aide-0.9/doc'
...
mkdir /usr/local/lib/locale
mkdir /usr/local/lib/locale/LC_MESSAGES
make[2]: Leaving directory `/root/temp/aide-0.9/po'
make[1]: Leaving directory `/root/temp/aide-0.9/po'
make[1]: Entering directory `/root/temp/aide-0.9'
make[2]: Entering directory `/root/temp/aide-0.9'
make[2]: Цель `install-exec-am' не требует выполнения команд.
make[2]: Цель `install-data-am' не требует выполнения команд.
make[2]: Leaving directory `/root/temp/aide-0.9'
make[1]: Leaving directory `/root/temp/aide-0.9'
12:06:01
#ls
acconfig.h    aide.spec.in  config.h       configure     include     Makefile.am    NEWS    stamp-h
acinclude.m4  AUTHORS       config.h.in    configure.in  INSTALL     Makefile.in    po      stamp-h.in
aclocal.m4    ChangeLog     config.log     COPYING       install-sh  missing        README
aide.spec     config.cache  config.status  doc           Makefile    mkinstalldirs  src
12:06:09
#find . -name \*conf\*
./acconfig.h
./config.h.in
./configure
./configure.in
./src/conf_yacc.y
./src/conf_lex.l
./src/commandconf.c
./src/conf_yacc.c
./src/conf_yacc.h
./src/conf_yacc.o
...
./doc/aide.conf.in
./doc/aide.conf.5
./doc/aide.conf
./include/commandconf.h
./include/conf_lex.h
./include/db_config.h
./config.log
./config.h
./config.cache
./config.status
12:06:32
#less doc/aide.conf
12:06:56
#ls /usr/local/share/
info/        man/         phpsyslogng/
12:06:56
#ls /usr/local/
bin/     etc/     games/   include/ lib/     libexec/ man/     sbin/    share/   src/
12:06:56
#ls doc/
aide.1  aide.conf  aide.conf.5  aide.conf.in  Makefile  Makefile.am  Makefile.in  manual.html
12:07:25
#man aide.conf
12:07:43
#man aide.conf
12:07:58
#man aide
12:08:06
#cp doc/aide.conf /usr/local/etc/s
swatch         swatch_1_rule  syslog-ng/
12:08:06
#cp doc/aide.conf /usr/local/etc/

12:08:20
#aide --init

12:08:24
#vi /usr/local/etc/aide.conf
12:08:59
#aide --init
Invalid file-URL, cannot use hostname other than localhost or linux3.linux.nt: file:/aide.db
Unsupported input URL-type:file://doc/aide.db
open_dir():No such file or directory: //src
open_dir():No such file or directory: //src
12:09:02
# Ђройки Правая панель
pwd
/root/temp/aide-0.9
12:09:32
#cd /usr/local/etc/aide.conf
bash: cd: /usr/local/etc/aide.conf: Not a directory
12:10:11
#cd /usr/local/etc/aide.conf
bash: cd: /usr/local/etc/aide.conf: Not a directory
12:10:15
#cd /usr/local/etc/

12:10:17
#mcedit aide.conf

12:12:41
#aide --init
open_dir():No such file or directory: //src
open_dir():No such file or directory: //src
12:12:48
#aide --chekc
aide: unrecognized option `--chekc'
Unknown option given. Exiting
12:13:13
#aide --check
Couldn't open file /mnt/aide.db for reading
12:15:07
#aide --init
open_dir():No such file or directory: //src
open_dir():No such file or directory: //src
12:15:25
#mcedit aide.conf

Статистика

Время первой команды журнала18:45:10 2006-12-19
Время последней команды журнала12:15:25 2006-12-20
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, %29.70
Процент синтаксически неверно набранных команд, % 1.98
Суммарное время работы с терминалом *, час 2.89
Количество командных строк в единицу времени, команда/мин 0.58
Частота использования команд
make12|===========| 11.88%
ls10|=========| 9.90%
Ђройки10|=========| 9.90%
cd8|=======| 7.92%
mysql6|=====| 5.94%
aide6|=====| 5.94%
[root@linux3:cdrom]#6|=====| 5.94%
/etc/init.d/httpd4|===| 3.96%
cp4|===| 3.96%
vi4|===| 3.96%
Ђройки4|===| 3.96%
man3|==| 2.97%
less3|==| 2.97%
configure2|=| 1.98%
setup2|=| 1.98%
tail2|=| 1.98%
mc2|=| 1.98%
mcedit2|=| 1.98%
su2|=| 1.98%
mysqladmin1|| 0.99%
tripware1|| 0.99%
mount1|| 0.99%
grep1|| 0.99%
php1|| 0.99%
!cd1|| 0.99%
find1|| 0.99%
which1|| 0.99%
/etc/init.d/mysqld1|| 0.99%
____
*) Интервалы неактивности длительностью 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$