/l3/trainings/xg-ids/2005-12-19/linux3.linux.nt/user :1 :2 :3 :4 :5 :6 :7 :8 :9 |
|
# ÐÑойки ÐÑÐ°Ð²Ð°Ñ Ð¿Ð°Ð½ÐµÐ»Ñ
Ð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/'); //======================================================================== |
# Ђройки Правая панель
![]() 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'); |
$mysql -u syslogadmin p
![]() ERROR 1045: Access denied for user: 'syslogadmin@localhost' (Using password: NO) |
$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 |
#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 |
#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 |
# Ђройки Правая панель
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 |
#ls -l
итого 8 -rw-r--r-- 1 root root 6196 Дек 19 19:05 config.php |
#less config.php
![]() |
#mysql -u syslogadmin
![]() ERROR 1045: Access denied for user: 'syslogadmin@localhost' (Using password: NO) |
#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 |
#tail /var/log/httpd/
![]() access_log error_log |
#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 |
#less /var/log/httpd/error_log
![]() |
#cd ..
|
#ls
![]() CHANGELOG config css includes index.php LICENSE README scripts |
#vi index.php
![]() |
#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)) { |
#vi includes/common_funcs.php
![]() |
#vi config/config.php
![]() |
# Ђройки Правая панель
^H [1]+ Stopped syslog_mysql.sh |
# Ђройки Правая панель
Ђройки Правая панель |
#/etc/init.d/httpd restart
Останавливается httpd: [ ОК ] Запускается httpd: [ ОК ] |
#mc
|
# Ђройки Правая панель
|
#/etc/init.d/httpd restart
Останавливается httpd: [ ОК ] Запускается httpd: [ ОК ] |
#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 |
#/etc/init.d/httpd restart
Останавливается httpd: [ ОК ] Запускается httpd: [ ОК ] |
$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: |
#setup
│ Настройка X │ │ Настройка аутентификации │ │ Настройка брандмауэра │ │ Настройка клавиатуры │ │ Настройка мыши │ │ Настройка принтера │ │ Настройка сети │ │ Настройка часового пояса │ │ Системные службы │ │ │ │ ┌───────────────────┐ ┌───────┐ │ │ │ Запустить утилиту │ │ Выход │ │ │ └───────────────────┘ └───────┘ │ │ │ │ │ └────────────────────────────────────┘ |
#/etc/init.d/httpd start
Запускается httpd: [ ОК ] |
#/etc/init.d/mysqld start
Запускается MySQL: [ ОК ] |
#setup
┌────────┤ Выберите утилиту ├────────┐ │ │ │ Настройка X │ │ Настройка аутентификации │ │ Настройка брандмауэра │ │ Настройка клавиатуры │ │ Настройка мыши │ │ Настройка принтера │ │ Настройка сети │ │ Настройка часового пояса │ │ Системные службы │ │ │ │ ┌───────────────────┐ ┌───────┐ │ │ │ Запустить утилиту │ │ Выход │ │ │ └───────────────────┘ └───────┘ │ │ │ │ │ └────────────────────────────────────┘ |
#mount /media/cdrom/
![]() mount: /dev/hdc already mounted or /media/cdrom busy mount: according to mtab, /dev/hdc is already mounted on /media/cdrom |
#cd /media/cdrom/
|
#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 |
#[root@linux3:cdrom]# mc
|
#which tripwire
![]() /usr/bin/which: no tripwire in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin) |
#[root@linux3:cdrom]# mc
Ђройки Правая панель Совет: Для смены каталога во время набора команды, нажмите M-c (быстрая смена). |
#[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 |
#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 |
#[root@linux3:cdrom]#
|
#[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 |
#[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 |
#tripware
![]() bash: tripware: command not found |
#mc
|
#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 |
#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 |
# Ђройки Правая панель
![]() Ђройки Правая панель |
# ÐÑойки ÐÑÐ°Ð²Ð°Ñ Ð¿Ð°Ð½ÐµÐ»Ñ
![]() Ð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/ |
# Ђройки Правая панель
{ 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) { |
#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 |
# ÐÑойки ÐÑÐ°Ð²Ð°Ñ Ð¿Ð°Ð½ÐµÐ»Ñ
![]() ÐÑойки ÐÑÐ°Ð²Ð°Ñ Ð¿Ð°Ð½ÐµÐ»Ñ â ÐÐ¼Ñ âÐ Ð°Ð·Ð¼ÐµÑ âÐÑÐµÐ¼Ñ Ð¿Ñавкиââ ÐÐ¼Ñ âÐ Ð°Ð·Ð¼ÐµÑ âÐÑÐµÐ¼Ñ Ð¿Ñавкиâââââââââââââââââââââââââââââââ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-\. |
#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 |
#./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 |
#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 |
#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 |
# ÐÑойки ÐÑÐ°Ð²Ð°Ñ Ð¿Ð°Ð½ÐµÐ»Ñ
![]() <â~/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ÐÑÑ Ð¾Ð´ |
# Ђройки Правая панель
![]() Ђройки Правая панель │ Имя │Размер │Время правки││ Имя │Размер │Время правки│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. |
#./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 |
#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' |
#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' |
# Ђройки Правая панель
_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 |
#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 |
#ls /usr/local/include/
mglobal.h mhash.h mtypes.h mutils.h |
#cd ../mhash-0.9.3/
|
#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 |
#cp mhash_config.h /usr/local/include/m
|
#cd -
/root/temp/aide-0.9 |
#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 |
#!cd
cd - /root/temp/mhash-0.9.3 |
#cp mhash_config.h /usr/local/include/
|
#cd -
/root/temp/aide-0.9 |
#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' |
#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' |
#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 |
#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 |
#less doc/aide.conf
![]() |
#ls /usr/local/share/
![]() info/ man/ phpsyslogng/ |
#ls /usr/local/
![]() bin/ etc/ games/ include/ lib/ libexec/ man/ sbin/ share/ src/ |
#ls doc/
aide.1 aide.conf aide.conf.5 aide.conf.in Makefile Makefile.am Makefile.in manual.html |
#man aide.conf
![]() |
#man aide.conf
![]() |
#man aide
![]() |
#cp doc/aide.conf /usr/local/etc/s
![]() swatch swatch_1_rule syslog-ng/ |
#cp doc/aide.conf /usr/local/etc/
|
#aide --init
|
#vi /usr/local/etc/aide.conf
![]() |
#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 |
# Ђройки Правая панель
pwd /root/temp/aide-0.9 |
#cd /usr/local/etc/aide.conf
![]() bash: cd: /usr/local/etc/aide.conf: Not a directory |
#cd /usr/local/etc/aide.conf
![]() bash: cd: /usr/local/etc/aide.conf: Not a directory |
#cd /usr/local/etc/
|
#mcedit aide.conf
|
#aide --init
open_dir():No such file or directory: //src open_dir():No such file or directory: //src |
#aide --chekc
![]() aide: unrecognized option `--chekc' Unknown option given. Exiting |
#aide --check
![]() Couldn't open file /mnt/aide.db for reading |
#aide --init
open_dir():No such file or directory: //src open_dir():No such file or directory: //src |
#mcedit aide.conf
|
Время первой команды журнала | 18:45:10 2006-12-19 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 12:15:25 2006-12-20 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 29.70 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.98 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.89 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.58 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ 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 |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008