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

Содержание

Журнал

Суббота (06/02/07)

/dev/pts/4
14:20:47
#ls -l /var/log/squid/
итого 376
-rw-r----- 1 proxy proxy  99804 2007-06-02 13:15 access.log
-rw-r----- 1 proxy proxy 101085 2007-06-02 14:13 cache.log
-rwxrwxrwx 1 proxy proxy      0 2007-06-02 14:16 make-cache
-rw-r--r-- 1 proxy proxy  28854 2007-06-02 14:19 redirector.err
-rw-r----- 1 proxy proxy    133 2007-06-02 13:14 redirector.log
-rw-r----- 1 proxy proxy 129368 2007-06-02 13:15 store.log
14:20:48
#./check-redirector

14:20:51
#less /var/log/squid/redirector.err
14:21:14
#chown proxy:proxy /var/log/squid/make-cache
 294 #
 295 #Default:
 296 # none
 297
 298 #  TAG: udp_incoming_address
 299 #  TAG: udp_outgoing_address
 300 #       udp_incoming_address    is used for the ICP socket receiving packets
 301 #                               from other caches.
 302 #       udp_outgoing_address    is used for ICP packets sent out to other
 303 #                               caches.
...
 307 #       A udp_incoming_address value of 0.0.0.0 indicates Squid
 308 #       should listen for UDP messages on all available interfaces.
 309 #
 310 #       If udp_outgoing_address is set to 255.255.255.255 (the default)
 311 #       it will use the same socket as udp_incoming_address. Only
 312 #       change this if you want to have ICP queries sent using another
 313 #       address than where this Squid listens for ICP queries from other
Jun  2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help!
[root@zero:~]#
------------------------------------------------------------------------------------------------------------------
14:21:32
#vim ../redirector.conf
14:21:44
#man redi
14:21:44
#man re
14:21:44
#ls -l /usr/share/doc/re
 295 #Default:
 296 # none
 297
 298 #  TAG: udp_incoming_address
 299 #  TAG: udp_outgoing_address
 300 #       udp_incoming_address    is used for the ICP socket receiving packets
 301 #                               from other caches.
 302 #       udp_outgoing_address    is used for ICP packets sent out to other
 303 #                               caches.
 304 #
...
 308 #       should listen for UDP messages on all available interfaces.
 309 #
 310 #       If udp_outgoing_address is set to 255.255.255.255 (the default)
 311 #       it will use the same socket as udp_incoming_address. Only
 312 #       change this if you want to have ICP queries sent using another
 313 #       address than where this Squid listens for ICP queries from other
re/              readline-common/ refblas3/        reportbug/
Jun  2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help!
[root@zero:~]#
------------------------------------------------------------------------------------------------------------------
14:21:44
#vim ../redirector.conf
72c72
< make-cache /var/log/squid/make-cache
---
> #make-cache /var/log/squid/make-cache
14:22:38
#./check-redirector

14:22:40
#less /var/log/squid/redirector.err
14:22:50
#cd

14:22:55
#rm -rf /var/log/squid/
 295 #Default:
 296 # none
 297
 298 #  TAG: udp_incoming_address
 299 #  TAG: udp_outgoing_address
 300 #       udp_incoming_address    is used for the ICP socket receiving packets
 301 #                               from other caches.
 302 #       udp_outgoing_address    is used for ICP packets sent out to other
 303 #                               caches.
 304 #
...
 308 #       should listen for UDP messages on all available interfaces.
 309 #
 310 #       If udp_outgoing_address is set to 255.255.255.255 (the default)
 311 #       it will use the same socket as udp_incoming_address. Only
 312 #       change this if you want to have ICP queries sent using another
 313 #       address than where this Squid listens for ICP queries from other
access.log      cache.log       make-cache      redirector.err  redirector.log  store.log
Jun  2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help!
[root@zero:~]#
------------------------------------------------------------------------------------------------------------------
14:22:55
#rm -rf /var/log/squid/

14:23:05
#rm -rf /usr/local/rejik3/

14:23:14
#cd /usr/src/redirector-3.2.1/
 294 #
 295 #Default:
 296 # none
 297
 298 #  TAG: udp_incoming_address
 299 #  TAG: udp_outgoing_address
 300 #       udp_incoming_address    is used for the ICP socket receiving packets
 301 #                               from other caches.
 302 #       udp_outgoing_address    is used for ICP packets sent out to other
 303 #                               caches.
...
 307 #       A udp_incoming_address value of 0.0.0.0 indicates Squid
 308 #       should listen for UDP messages on all available interfaces.
 309 #
 310 #       If udp_outgoing_address is set to 255.255.255.255 (the default)
 311 #       it will use the same socket as udp_incoming_address. Only
 312 #       change this if you want to have ICP queries sent using another
 313 #       address than where this Squid listens for ICP queries from other
Jun  2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help!
[root@zero:~]#
------------------------------------------------------------------------------------------------------------------
14:23:20
#ls
AUTHORS       err_mes.o    ip.o          need_cache_update.c  parse_urls.o  redirect.c            VERSION
cache2url.c   get_opt.c    load_cache.c  need_cache_update.o  pass.c        redirect.o            write_cache.c
cache2url.o   get_opt.o    load_cache.o  new_url.c            pass.o        redirector            write_cache.o
check_urls.c  id.c         load_urls.c   new_url.o            pcre.c        redirector.c
check_urls.o  id.o         load_urls.o   now.c                pcre.o        redirector.conf.dist
comparing.c   init_vars.c  Log           now.o                prune_urls.c  run_make_cache.c
comparing.o   init_vars.o  make-cache    parse_input.c        prune_urls.o  run_make_cache.o
COPYING       INSTALL      make-cache.c  parse_input.o        raw_change.c  tools
err_mes.c     ip.c         Makefile      parse_urls.c         raw_change.o  vars.h
14:23:21
#make clean
rm -f pass.o raw_change.o load_cache.o pcre.o parse_input.o init_vars.o check_urls.o run_make_cache.o new_url.o redirect.o err_mes.o now.o get_opt.o parse_urls.o cache2url.o ip.o id.o comparing.o  load_urls.o prune_urls.o write_cache.o need_cache_update.o err_mes.o now.o get_opt.o parse_urls.o cache2url.o ip.o id.o comparing.o  redirector make-cache OUT
14:23:25
#make distclean
make: *** Нет правила для сборки цели `distclean'.  Останов.
14:23:30
#vim INSTALL
14:23:56
#vim Makefile
14:24:20
#make
rm -f pass.o raw_change.o load_cache.o pcre.o parse_input.o init_vars.o check_urls.o run_make_cache.o new_url.o redirect.o err_mes.o now.o get_opt.o parse_urls.o cache2url.o ip.o id.o comparing.o  load_urls.o prune_urls.o write_cache.o need_cache_update.o err_mes.o now.o get_opt.o parse_urls.o cache2url.o ip.o id.o comparing.o  redirector make-cache OUT
gcc -Wall -I/usr/include -I/usr/local/include -I/usr/include/pcre -c pass.c
gcc -Wall -I/usr/include -I/usr/local/include -I/usr/include/pcre -c raw_change.c
raw_change.c: In function ‘raw_change’:
raw_change.c:25: warning: pointer targets in passing argument 1 of ‘strstr’ differ in signedness
raw_change.c:25: warning: pointer targets in passing argument 2 of ‘strstr’ differ in signedness
raw_change.c:25: warning: pointer targets in assignment differ in signedness
raw_change.c:33: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
raw_change.c:34: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
raw_change.c:35: warning: pointer targets in passing argument 1 of ‘strchr’ differ in signedness
...
redirector.c:51: warning: pointer targets in passing argument 1 of ‘fopen’ differ in signedness
redirector.c:53: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
redirector.c:54: warning: pointer targets in passing argument 1 of ‘printf’ differ in signedness
redirector.c:69: warning: pointer targets in passing argument 1 of ‘fgets’ differ in signedness
redirector.c:78: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
redirector.c:79: warning: pointer targets in passing argument 1 of ‘err_mes’ differ in signedness
redirector.c:133: warning: pointer targets in passing argument 2 of ‘parse_urls’ differ in signedness
redirector.c:136: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
redirector.c:137: warning: pointer targets in passing argument 1 of ‘err_mes’ differ in signedness
gcc -Wall -I/usr/include -I/usr/local/include -I/usr/include/pcre -o make-cache make-cache.c -L/lib `pcre-config --libs` load_urls.o prune_urls.o write_cache.o need_cache_update.o err_mes.o now.o get_opt.o parse_urls.o cache2url.o ip.o id.o comparing.o
14:24:27
#make install
cp make-cache /usr/local/rejik3
cp redirector /usr/local/rejik3
cp redirector.conf.dist /usr/local/rejik3
echo "#!/bin/sh" > /usr/local/rejik3/tools/check-redirector
echo 'su proxy -c "echo \"http://sex.ru 127.0.0.1/- - GET\" | /usr/local/rejik3/redirector /usr/local/rejik3/redirector.conf;"' >> /usr/local/rejik3/tools/check-redirector
chmod 755  /usr/local/rejik3/tools/check-redirector
echo "#!/bin/sh" > /usr/local/rejik3/tools/set-permissions
echo 'chown -R proxy:proxy /usr/local/rejik3' >> /usr/local/rejik3/tools/set-permissions
chmod 755  /usr/local/rejik3/tools/set-permissions
cp tools/kill-cache /usr/local/rejik3/tools
...
cp tools/IN.gz /usr/local/rejik3/tools
chmod 644 /usr/local/rejik3/tools/IN.gz
chown -R proxy:proxy /usr/local/rejik3
chmod 770 /usr/local/rejik3
chmod 644 /usr/local/rejik3/redirector.conf.dist
chmod 755 /usr/local/rejik3/redirector
chmod 755 /usr/local/rejik3/make-cache
Jun  2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help!
[root@zero:~]#
------------------------------------------------------------------------------------------------------------------
14:24:39
#sh /usr/local/rejik3/tools/set-permissions
 294 #
 295 #Default:
 296 # none
 297
 298 #  TAG: udp_incoming_address
 299 #  TAG: udp_outgoing_address
 300 #       udp_incoming_address    is used for the ICP socket receiving packets
 301 #                               from other caches.
 302 #       udp_outgoing_address    is used for ICP packets sent out to other
 303 #                               caches.
...
 307 #       A udp_incoming_address value of 0.0.0.0 indicates Squid
 308 #       should listen for UDP messages on all available interfaces.
 309 #
 310 #       If udp_outgoing_address is set to 255.255.255.255 (the default)
 311 #       it will use the same socket as udp_incoming_address. Only
 312 #       change this if you want to have ICP queries sent using another
 313 #       address than where this Squid listens for ICP queries from other
Jun  2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help!
[root@zero:~]#
------------------------------------------------------------------------------------------------------------------
14:24:51
#ls -l /usr/local/rejik3/
итого 92
-rwxr-xr-x 1 proxy proxy 39108 2007-06-02 14:24 make-cache
-rwxr-xr-x 1 proxy proxy 43897 2007-06-02 14:24 redirector
-rw-r--r-- 1 proxy proxy  3052 2007-06-02 14:24 redirector.conf.dist
drwxr-sr-x 2 proxy proxy  4096 2007-06-02 14:24 tools
14:24:58
#ls -ld /usr/local/rejik3/
drwxrwx--- 3 proxy proxy 4096 2007-06-02 14:24 /usr/local/rejik3/
14:25:01
#cd /usr/local/rejik3/

14:25:06
#ls
make-cache  redirector  redirector.conf.dist  tools
14:25:07
#mv redirector.conf.dist redirector.conf
 294 #
 295 #Default:
 296 # none
 297
 298 #  TAG: udp_incoming_address
 299 #  TAG: udp_outgoing_address
 300 #       udp_incoming_address    is used for the ICP socket receiving packets
 301 #                               from other caches.
 302 #       udp_outgoing_address    is used for ICP packets sent out to other
 303 #                               caches.
...
 307 #       A udp_incoming_address value of 0.0.0.0 indicates Squid
 308 #       should listen for UDP messages on all available interfaces.
 309 #
 310 #       If udp_outgoing_address is set to 255.255.255.255 (the default)
 311 #       it will use the same socket as udp_incoming_address. Only
 312 #       change this if you want to have ICP queries sent using another
 313 #       address than where this Squid listens for ICP queries from other
Jun  2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help!
[root@zero:~]#
------------------------------------------------------------------------------------------------------------------
14:25:14
#vim redirector.conf
70,72c70,72
< error_log /usr/local/rejik3/redirector.err
< change_log /usr/local/rejik3/redirector.log
< make-cache /usr/local/rejik3/make-cache
---
> error_log  /var/log/squid/redirector.err
> change_log /var/log/squid/redirector.log
> make-cache /var/log/squid/make-cache
14:25:49
#ls
make-cache  redirector  redirector.conf  tools
14:25:51
#./tools/check-redirector

14:25:58
#less /var/log/squid/redirector.err
14:26:24
#cd
 294 #
 295 #Default:
 296 # none
 297
 298 #  TAG: udp_incoming_address
 299 #  TAG: udp_outgoing_address
 300 #       udp_incoming_address    is used for the ICP socket receiving packets
 301 #                               from other caches.
 302 #       udp_outgoing_address    is used for ICP packets sent out to other
 303 #                               caches.
...
 307 #       A udp_incoming_address value of 0.0.0.0 indicates Squid
 308 #       should listen for UDP messages on all available interfaces.
 309 #
 310 #       If udp_outgoing_address is set to 255.255.255.255 (the default)
 311 #       it will use the same socket as udp_incoming_address. Only
 312 #       change this if you want to have ICP queries sent using another
 313 #       address than where this Squid listens for ICP queries from other
Jun  2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help!
[root@zero:~]#
------------------------------------------------------------------------------------------------------------------
14:26:33
#tar xvzfC banlists-2.x.x.tgz /usr/local/rejik3/
 295 #Default:
 296 # none
 297
 298 #  TAG: udp_incoming_address
 299 #  TAG: udp_outgoing_address
 300 #       udp_incoming_address    is used for the ICP socket receiving packets
 301 #                               from other caches.
 302 #       udp_outgoing_address    is used for ICP packets sent out to other
 303 #                               caches.
 304 #
...
 308 #       should listen for UDP messages on all available interfaces.
 309 #
 310 #       If udp_outgoing_address is set to 255.255.255.255 (the default)
 311 #       it will use the same socket as udp_incoming_address. Only
 312 #       change this if you want to have ICP queries sent using another
 313 #       address than where this Squid listens for ICP queries from other
make-cache       redirector       redirector.conf  tools/
Jun  2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help!
[root@zero:~]#
------------------------------------------------------------------------------------------------------------------
14:26:33
#tar xvzfC banlists-2.x.x.tgz /usr/local/rejik3/
 304 #
 305 #       The default behavior is to not bind to any specific address.
 306 #
 307 #       A udp_incoming_address value of 0.0.0.0 indicates Squid
 308 #       should listen for UDP messages on all available interfaces.
 309 #
 310 #       If udp_outgoing_address is set to 255.255.255.255 (the default)
 311 #       it will use the same socket as udp_incoming_address. Only
 312 #       change this if you want to have ICP queries sent using another
 313 #       address than where this Squid listens for ICP queries from other
...
banlists/banners/
banlists/banners/urls
banlists/banners/pcre
banlists/js/
banlists/js/urls
banlists/mp3/
banlists/mp3/pcre
Jun  2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help!
[root@zero:~]#
------------------------------------------------------------------------------------------------------------------
14:27:08
#sh /usr/local/rejik3/tools/set-permissions

14:27:14
#ls -l /usr/local/rejik3/
 300 #       udp_incoming_address    is used for the ICP socket receiving packets
 301 #                               from other caches.
 302 #       udp_outgoing_address    is used for ICP packets sent out to other
 303 #                               caches.
 304 #
 305 #       The default behavior is to not bind to any specific address.
 306 #
 307 #       A udp_incoming_address value of 0.0.0.0 indicates Squid
 308 #       should listen for UDP messages on all available interfaces.
 309 #
...
 313 #       address than where this Squid listens for ICP queries from other
итого 96
drwxr-xr-x 6 proxy proxy  4096 2003-07-25 08:02 banlists
-rwxr-xr-x 1 proxy proxy 39108 2007-06-02 14:24 make-cache
-rwxr-xr-x 1 proxy proxy 43897 2007-06-02 14:24 redirector
-rw-r--r-- 1 proxy proxy  3044 2007-06-02 14:25 redirector.conf
drwxr-sr-x 2 proxy proxy  4096 2007-06-02 14:24 tools
Jun  2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help!
[root@zero:~]#
------------------------------------------------------------------------------------------------------------------
14:27:32
#ls -l /usr/local/rejik3/banlists/
итого 16
drwxr-xr-x 2 proxy proxy 4096 2003-08-04 07:30 banners
drwxr-xr-x 2 proxy proxy 4096 2003-08-04 07:30 js
drwxr-xr-x 2 proxy proxy 4096 2003-07-30 12:11 mp3
drwxr-xr-x 2 proxy proxy 4096 2003-07-29 12:24 porno
14:27:37
#./tools/check-redirector
 295 #Default:
 296 # none
 297
 298 #  TAG: udp_incoming_address
 299 #  TAG: udp_outgoing_address
 300 #       udp_incoming_address    is used for the ICP socket receiving packets
 301 #                               from other caches.
 302 #       udp_outgoing_address    is used for ICP packets sent out to other
 303 #                               caches.
 304 #
...
 308 #       should listen for UDP messages on all available interfaces.
 309 #
 310 #       If udp_outgoing_address is set to 255.255.255.255 (the default)
 311 #       it will use the same socket as udp_incoming_address. Only
 312 #       change this if you want to have ICP queries sent using another
 313 #       address than where this Squid listens for ICP queries from other
bash: ./tools/check-redirector: No such file or directory
Jun  2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help!
[root@zero:~]#
------------------------------------------------------------------------------------------------------------------
14:27:42
#cd /usr/local/rejik3/

14:27:48
#./tools/check-redirector

14:27:50
#less /var/log/squid/redirector.err
14:28:21
#apt-cache search libprce
 294 #
 295 #Default:
 296 # none
 297
 298 #  TAG: udp_incoming_address
 299 #  TAG: udp_outgoing_address
 300 #       udp_incoming_address    is used for the ICP socket receiving packets
 301 #                               from other caches.
 302 #       udp_outgoing_address    is used for ICP packets sent out to other
 303 #                               caches.
...
 307 #       A udp_incoming_address value of 0.0.0.0 indicates Squid
 308 #       should listen for UDP messages on all available interfaces.
 309 #
 310 #       If udp_outgoing_address is set to 255.255.255.255 (the default)
 311 #       it will use the same socket as udp_incoming_address. Only
 312 #       change this if you want to have ICP queries sent using another
 313 #       address than where this Squid listens for ICP queries from other
Jun  2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help!
[root@zero:~]#
------------------------------------------------------------------------------------------------------------------
14:29:33
#apt-cache search libpcre
libpcre-ocaml - OCaml bindings for PCRE (Perl Compatible Regular Expression)
libpcre-ocaml-dev - OCaml bindings for PCRE (Perl Compatible Regular Expression)
libpcre3 - Perl 5 Compatible Regular Expression Library - runtime files
libpcre3-dev - Perl 5 Compatible Regular Expression Library - development files
libpcrecpp0 - Perl 5 Compatible Regular Expression Library - C++ runtime files
pcregrep - grep utility that uses perl 5 compatible regexes.
14:29:41
#ls -l /var/spool/
 304 #
 305 #       The default behavior is to not bind to any specific address.
 306 #
 307 #       A udp_incoming_address value of 0.0.0.0 indicates Squid
 308 #       should listen for UDP messages on all available interfaces.
 309 #
 310 #       If udp_outgoing_address is set to 255.255.255.255 (the default)
 311 #       it will use the same socket as udp_incoming_address. Only
 312 #       change this if you want to have ICP queries sent using another
 313 #       address than where this Squid listens for ICP queries from other
...
drwx--x---  3 root        lp          4096 2007-05-24 20:24 cups
drwxr-x---  5 Debian-exim Debian-exim 4096 2007-05-24 20:28 exim4
lrwxrwxrwx  1 root        root           7 2007-05-24 18:41 mail -> ../mail
drwxr-s---  2 smmta       smmsp       4096 2007-06-01 19:50 mqueue
drwxrws---  2 smmsp       smmsp       4096 2007-06-01 19:30 mqueue-client
drwxr-xr-x  3 root        root        4096 2007-05-24 20:27 openoffice
drwxr-x--- 18 proxy       proxy       4096 2007-06-02 14:09 squid
Jun  2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help!
[root@zero:~]#
------------------------------------------------------------------------------------------------------------------
14:29:46
#ls -l /var/spool/squid/
итого 3284
drwxr-x--- 258 proxy proxy    4096 2007-06-02 09:58 00
drwxr-x--- 258 proxy proxy    4096 2007-06-02 09:58 01
drwxr-x--- 258 proxy proxy    4096 2007-06-02 09:58 02
drwxr-x--- 258 proxy proxy    4096 2007-06-02 09:58 03
drwxr-x--- 258 proxy proxy    4096 2007-06-02 09:58 04
drwxr-x--- 258 proxy proxy    4096 2007-06-02 09:58 05
drwxr-x--- 258 proxy proxy    4096 2007-06-02 09:58 06
drwxr-x--- 258 proxy proxy    4096 2007-06-02 09:58 07
drwxr-x--- 258 proxy proxy    4096 2007-06-02 09:58 08
drwxr-x--- 258 proxy proxy    4096 2007-06-02 09:58 09
drwxr-x--- 258 proxy proxy    4096 2007-06-02 09:58 0A
drwxr-x--- 258 proxy proxy    4096 2007-06-02 09:58 0B
drwxr-x--- 258 proxy proxy    4096 2007-06-02 09:58 0C
drwxr-x--- 258 proxy proxy    4096 2007-06-02 09:58 0D
drwxr-x--- 258 proxy proxy    4096 2007-06-02 09:58 0E
drwxr-x--- 258 proxy proxy    4096 2007-06-02 09:58 0F
-rw-------   1 proxy proxy 4411392 2007-06-02 14:13 core
-rw-r-----   1 proxy proxy   25200 2007-06-02 14:08 swap.state
-rw-r-----   1 proxy proxy      48 2007-06-02 14:13 swap.state.new
14:29:50
#apt-get install libpcrecpp0
 298 #  TAG: udp_incoming_address
 299 #  TAG: udp_outgoing_address
 300 #       udp_incoming_address    is used for the ICP socket receiving packets
 301 #                               from other caches.
 302 #       udp_outgoing_address    is used for ICP packets sent out to other
 303 #                               caches.
 304 #
 305 #       The default behavior is to not bind to any specific address.
 306 #
 307 #       A udp_incoming_address value of 0.0.0.0 indicates Squid
...
 311 #       it will use the same socket as udp_incoming_address. Only
 312 #       change this if you want to have ICP queries sent using another
 313 #       address than where this Squid listens for ICP queries from other
Чтение списков пакетов... Готово
Построение дерева зависимостей... Готово
Уже установлена самая новая версия libpcrecpp0.
обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено.
Jun  2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help!
[root@zero:~]#
------------------------------------------------------------------------------------------------------------------
14:30:28
#apt-cache search libpcre
libpcre-ocaml - OCaml bindings for PCRE (Perl Compatible Regular Expression)
libpcre-ocaml-dev - OCaml bindings for PCRE (Perl Compatible Regular Expression)
libpcre3 - Perl 5 Compatible Regular Expression Library - runtime files
libpcre3-dev - Perl 5 Compatible Regular Expression Library - development files
libpcrecpp0 - Perl 5 Compatible Regular Expression Library - C++ runtime files
pcregrep - grep utility that uses perl 5 compatible regexes.
14:30:46
#less /var/log/squid/redirector.err
/dev/pts/0
14:32:59
#ifoncifg
bash: ifoncifg: command not found
14:33:05
#ifconfig
eth2      Link encap:Ethernet  HWaddr 00:04:76:A1:F0:A5
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:169
eth3      Link encap:Ethernet  HWaddr 00:90:27:35:58:F2
          inet addr:192.168.14.2  Bcast:192.168.14.255  Mask:255.255.255.0
          inet6 addr: fe80::290:27ff:fe35:58f2/64 Scope:Link
...
          TX packets:234 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:24031 (23.4 KiB)  TX bytes:24031 (23.4 KiB)
tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:192.168.25.1  P-t-P:192.168.25.2  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
/dev/pts/4
14:33:30
#mv redirector.conf.dist redirector.conf

14:33:35
#squid -d 2 -N
2007/06/02 14:33:41| Starting Squid Cache version 2.6.STABLE5 for i386-debian-linux-gnu...
2007/06/02 14:33:41| Process ID 4912
2007/06/02 14:33:41| With 1024 file descriptors available
2007/06/02 14:33:41| Using epoll for the IO loop
2007/06/02 14:33:41| Performing DNS Tests...
2007/06/02 14:33:41| Successful DNS name lookup tests...
2007/06/02 14:33:41| DNS Socket created at 0.0.0.0, port 32774, FD 5
2007/06/02 14:33:41| Adding nameserver 127.0.0.1 from /etc/resolv.conf
2007/06/02 14:33:41| Adding domain okno.net.nt from /etc/resolv.conf
2007/06/02 14:33:41| helperOpenServers: Starting 5 'redirector' processes
...
2007/06/02 14:33:42| Accepting ICP messages at 0.0.0.0, port 3130, FD 23.
2007/06/02 14:33:42| HTCP Disabled.
2007/06/02 14:33:42| WCCP Disabled.
2007/06/02 14:33:42| Ready to serve requests.
2007/06/02 14:33:42| WARNING: url_rewriter #5 (FD 10) exited
2007/06/02 14:33:42| WARNING: url_rewriter #4 (FD 9) exited
2007/06/02 14:33:42| WARNING: url_rewriter #1 (FD 6) exited
2007/06/02 14:33:42| Too few url_rewriter processes are running
FATAL: The url_rewriter helpers are crashing too rapidly, need help!
Aborted (core dumped)
14:33:42
#xgu.ru/wiki/Участник:Clint/Черновики
 294 #
 295 #Default:
 296 # none
 297
 298 #  TAG: udp_incoming_address
 299 #  TAG: udp_outgoing_address
 300 #       udp_incoming_address    is used for the ICP socket receiving packets
 301 #                               from other caches.
 302 #       udp_outgoing_address    is used for ICP packets sent out to other
 303 #                               caches.
...
 307 #       A udp_incoming_address value of 0.0.0.0 indicates Squid
 308 #       should listen for UDP messages on all available interfaces.
 309 #
 310 #       If udp_outgoing_address is set to 255.255.255.255 (the default)
 311 #       it will use the same socket as udp_incoming_address. Only
 312 #       change this if you want to have ICP queries sent using another
 313 #       address than where this Squid listens for ICP queries from other
Jun  2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help!
[root@zero:~]#
------------------------------------------------------------------------------------------------------------------
14:36:16
#cd
 294 #
 295 #Default:
 296 # none
 297
 298 #  TAG: udp_incoming_address
 299 #  TAG: udp_outgoing_address
 300 #       udp_incoming_address    is used for the ICP socket receiving packets
 301 #                               from other caches.
 302 #       udp_outgoing_address    is used for ICP packets sent out to other
 303 #                               caches.
...
 307 #       A udp_incoming_address value of 0.0.0.0 indicates Squid
 308 #       should listen for UDP messages on all available interfaces.
 309 #
 310 #       If udp_outgoing_address is set to 255.255.255.255 (the default)
 311 #       it will use the same socket as udp_incoming_address. Only
 312 #       change this if you want to have ICP queries sent using another
 313 #       address than where this Squid listens for ICP queries from other
Jun  2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help!
[root@zero:~]#
------------------------------------------------------------------------------------------------------------------
14:36:26
#rm -rf /usr/local/rejik3/
 294 #
 295 #Default:
 296 # none
 297
 298 #  TAG: udp_incoming_address
 299 #  TAG: udp_outgoing_address
 300 #       udp_incoming_address    is used for the ICP socket receiving packets
 301 #                               from other caches.
 302 #       udp_outgoing_address    is used for ICP packets sent out to other
 303 #                               caches.
...
 307 #       A udp_incoming_address value of 0.0.0.0 indicates Squid
 308 #       should listen for UDP messages on all available interfaces.
 309 #
 310 #       If udp_outgoing_address is set to 255.255.255.255 (the default)
 311 #       it will use the same socket as udp_incoming_address. Only
 312 #       change this if you want to have ICP queries sent using another
 313 #       address than where this Squid listens for ICP queries from other
Jun  2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help!
[root@zero:~]#
------------------------------------------------------------------------------------------------------------------
14:36:39
#cd /usr/src/redirector-3.2.1/

14:36:43
#ls
AUTHORS       err_mes.o    ip.o          need_cache_update.c  parse_urls.o  redirect.c            VERSION
cache2url.c   get_opt.c    load_cache.c  need_cache_update.o  pass.c        redirect.o            write_cache.c
cache2url.o   get_opt.o    load_cache.o  new_url.c            pass.o        redirector            write_cache.o
check_urls.c  id.c         load_urls.c   new_url.o            pcre.c        redirector.c
check_urls.o  id.o         load_urls.o   now.c                pcre.o        redirector.conf.dist
comparing.c   init_vars.c  Log           now.o                prune_urls.c  run_make_cache.c
comparing.o   init_vars.o  make-cache    parse_input.c        prune_urls.o  run_make_cache.o
COPYING       INSTALL      make-cache.c  parse_input.o        raw_change.c  tools
err_mes.c     ip.c         Makefile      parse_urls.c         raw_change.o  vars.h
14:36:44
#make clean
rm -f pass.o raw_change.o load_cache.o pcre.o parse_input.o init_vars.o check_urls.o run_make_cache.o new_url.o redirect.o err_mes.o now.o get_opt.o parse_urls.o cache2url.o ip.o id.o comparing.o  load_urls.o prune_urls.o write_cache.o need_cache_update.o err_mes.o now.o get_opt.o parse_urls.o cache2url.o ip.o id.o comparing.o  redirector make-cache OUT
14:36:45
#make distclean
make: *** Нет правила для сборки цели `distclean'.  Останов.
14:36:46
#vim INSTALL
14:36:56
#vim Makefile
14:37:09
#make
rm -f pass.o raw_change.o load_cache.o pcre.o parse_input.o init_vars.o check_urls.o run_make_cache.o new_url.o redirect.o err_mes.o now.o get_opt.o parse_urls.o cache2url.o ip.o id.o comparing.o  load_urls.o prune_urls.o write_cache.o need_cache_update.o err_mes.o now.o get_opt.o parse_urls.o cache2url.o ip.o id.o comparing.o  redirector make-cache OUT
gcc -Wall -I/usr/include -I/usr/local/include -I/usr/include/pcre -c pass.c
gcc -Wall -I/usr/include -I/usr/local/include -I/usr/include/pcre -c raw_change.c
raw_change.c: In function ‘raw_change’:
raw_change.c:25: warning: pointer targets in passing argument 1 of ‘strstr’ differ in signedness
raw_change.c:25: warning: pointer targets in passing argument 2 of ‘strstr’ differ in signedness
raw_change.c:25: warning: pointer targets in assignment differ in signedness
raw_change.c:33: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
raw_change.c:34: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
raw_change.c:35: warning: pointer targets in passing argument 1 of ‘strchr’ differ in signedness
...
redirector.c:51: warning: pointer targets in passing argument 1 of ‘fopen’ differ in signedness
redirector.c:53: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
redirector.c:54: warning: pointer targets in passing argument 1 of ‘printf’ differ in signedness
redirector.c:69: warning: pointer targets in passing argument 1 of ‘fgets’ differ in signedness
redirector.c:78: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
redirector.c:79: warning: pointer targets in passing argument 1 of ‘err_mes’ differ in signedness
redirector.c:133: warning: pointer targets in passing argument 2 of ‘parse_urls’ differ in signedness
redirector.c:136: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
redirector.c:137: warning: pointer targets in passing argument 1 of ‘err_mes’ differ in signedness
gcc -Wall -I/usr/include -I/usr/local/include -I/usr/include/pcre -o make-cache make-cache.c -L/lib `pcre-config --libs` load_urls.o prune_urls.o write_cache.o need_cache_update.o err_mes.o now.o get_opt.o parse_urls.o cache2url.o ip.o id.o comparing.o
14:37:15
#make install
mkdir -p /usr/local/rejik3/tools
cp make-cache /usr/local/rejik3
cp redirector /usr/local/rejik3
cp redirector.conf.dist /usr/local/rejik3
echo "#!/bin/sh" > /usr/local/rejik3/tools/check-redirector
echo 'su proxy -c "echo \"http://sex.ru 127.0.0.1/- - GET\" | /usr/local/rejik3/redirector /usr/local/rejik3/redirector.conf;"' >> /usr/local/rejik3/tools/check-redirector
chmod 755  /usr/local/rejik3/tools/check-redirector
echo "#!/bin/sh" > /usr/local/rejik3/tools/set-permissions
echo 'chown -R proxy:proxy /usr/local/rejik3' >> /usr/local/rejik3/tools/set-permissions
chmod 755  /usr/local/rejik3/tools/set-permissions
cp tools/kill-cache /usr/local/rejik3/tools
chmod 755  /usr/local/rejik3/tools/kill-cache
cp tools/benchmark /usr/local/rejik3/tools
chmod 755  /usr/local/rejik3/tools/benchmark
cp tools/IN.gz /usr/local/rejik3/tools
chmod 644 /usr/local/rejik3/tools/IN.gz
chown -R proxy:proxy /usr/local/rejik3
chmod 770 /usr/local/rejik3
chmod 644 /usr/local/rejik3/redirector.conf.dist
chmod 755 /usr/local/rejik3/redirector
chmod 755 /usr/local/rejik3/make-cache
14:37:17
#sh /usr/local/rejik3/tools/set-permissions
 294 #
 295 #Default:
 296 # none
 297
 298 #  TAG: udp_incoming_address
 299 #  TAG: udp_outgoing_address
 300 #       udp_incoming_address    is used for the ICP socket receiving packets
 301 #                               from other caches.
 302 #       udp_outgoing_address    is used for ICP packets sent out to other
 303 #                               caches.
...
 307 #       A udp_incoming_address value of 0.0.0.0 indicates Squid
 308 #       should listen for UDP messages on all available interfaces.
 309 #
 310 #       If udp_outgoing_address is set to 255.255.255.255 (the default)
 311 #       it will use the same socket as udp_incoming_address. Only
 312 #       change this if you want to have ICP queries sent using another
 313 #       address than where this Squid listens for ICP queries from other
Jun  2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help!
[root@zero:~]#
------------------------------------------------------------------------------------------------------------------
14:37:42
#ls -l /usr/local/rejik3/
итого 92
-rwxr-xr-x 1 proxy proxy 39108 2007-06-02 14:37 make-cache
-rwxr-xr-x 1 proxy proxy 43897 2007-06-02 14:37 redirector
-rw-r--r-- 1 proxy proxy  3052 2007-06-02 14:37 redirector.conf.dist
drwxr-sr-x 2 proxy proxy  4096 2007-06-02 14:37 tools
14:37:43
#ls -ld /usr/local/rejik3/
drwxrwx--- 3 proxy proxy 4096 2007-06-02 14:37 /usr/local/rejik3/
14:37:45
#cd /usr/local/rejik3/

14:37:46
#ls
make-cache  redirector  redirector.conf.dist  tools
14:37:47
#mv redirector.conf.dist redirector.conf
 294 #
 295 #Default:
 296 # none
 297
 298 #  TAG: udp_incoming_address
 299 #  TAG: udp_outgoing_address
 300 #       udp_incoming_address    is used for the ICP socket receiving packets
 301 #                               from other caches.
 302 #       udp_outgoing_address    is used for ICP packets sent out to other
 303 #                               caches.
...
 307 #       A udp_incoming_address value of 0.0.0.0 indicates Squid
 308 #       should listen for UDP messages on all available interfaces.
 309 #
 310 #       If udp_outgoing_address is set to 255.255.255.255 (the default)
 311 #       it will use the same socket as udp_incoming_address. Only
 312 #       change this if you want to have ICP queries sent using another
 313 #       address than where this Squid listens for ICP queries from other
Jun  2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help!
[root@zero:~]#
------------------------------------------------------------------------------------------------------------------
14:37:49
#vim redirector.conf
70,71c70,71
< error_log /usr/local/rejik3/redirector.err
< change_log /usr/local/rejik3/redirector.log
---
> error_log  /var/log/squid/redirector.err
> change_log /var/log/squid/redirector.log
14:38:28
#ls
make-cache  redirector  redirector.conf  tools
14:38:30
#./tools/check-redirector

14:38:31
#less /var/log/squid/redirector.err
14:38:41
#cd

14:38:44
#tar xvzfC banlists-2.x.x.tgz /usr/local/rejik3/
banlists/
banlists/porno/
banlists/porno/urls
banlists/banners/
banlists/banners/urls
banlists/banners/pcre
banlists/js/
banlists/js/urls
banlists/mp3/
banlists/mp3/pcre
14:38:45
#sh /usr/local/rejik3/tools/set-permissions

14:38:47
#ls -l /usr/local/rejik3/
итого 96
drwxr-xr-x 6 proxy proxy  4096 2003-07-25 08:02 banlists
-rwxr-xr-x 1 proxy proxy 39108 2007-06-02 14:37 make-cache
-rwxr-xr-x 1 proxy proxy 43897 2007-06-02 14:37 redirector
-rw-r--r-- 1 proxy proxy  3047 2007-06-02 14:38 redirector.conf
drwxr-sr-x 2 proxy proxy  4096 2007-06-02 14:37 tools
14:38:47
#ls -l /usr/local/rejik3/banlists/
 299 #  TAG: udp_outgoing_address
 300 #       udp_incoming_address    is used for the ICP socket receiving packets
 301 #                               from other caches.
 302 #       udp_outgoing_address    is used for ICP packets sent out to other
 303 #                               caches.
 304 #
 305 #       The default behavior is to not bind to any specific address.
 306 #
 307 #       A udp_incoming_address value of 0.0.0.0 indicates Squid
 308 #       should listen for UDP messages on all available interfaces.
...
 312 #       change this if you want to have ICP queries sent using another
 313 #       address than where this Squid listens for ICP queries from other
итого 16
drwxr-xr-x 2 proxy proxy 4096 2003-08-04 07:30 banners
drwxr-xr-x 2 proxy proxy 4096 2003-08-04 07:30 js
drwxr-xr-x 2 proxy proxy 4096 2003-07-30 12:11 mp3
drwxr-xr-x 2 proxy proxy 4096 2003-07-29 12:24 porno
Jun  2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help!
[root@zero:~]#
------------------------------------------------------------------------------------------------------------------
14:38:49
#./tools/check-redirector
bash: ./tools/check-redirector: No such file or directory
14:38:53
#cd /usr/local/rejik3/

14:38:54
#./tools/check-redirector
http://127.0.0.1/ban/porno.html 127.0.0.1/- - GET
14:38:55
#ls -l /usr/local/rejik3/
 294 #
 295 #Default:
 296 # none
 297
 298 #  TAG: udp_incoming_address
 299 #  TAG: udp_outgoing_address
 300 #       udp_incoming_address    is used for the ICP socket receiving packets
 301 #                               from other caches.
 302 #       udp_outgoing_address    is used for ICP packets sent out to other
 303 #                               caches.
...
 307 #       A udp_incoming_address value of 0.0.0.0 indicates Squid
 308 #       should listen for UDP messages on all available interfaces.
 309 #
 310 #       If udp_outgoing_address is set to 255.255.255.255 (the default)
 311 #       it will use the same socket as udp_incoming_address. Only
 312 #       change this if you want to have ICP queries sent using another
 313 #       address than where this Squid listens for ICP queries from other
Jun  2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help!
[root@zero:~]#
------------------------------------------------------------------------------------------------------------------
14:39:10
#ls
banlists  make-cache  redirector  redirector.conf  tools
14:39:11
#ls -lh
итого 96K
drwxr-xr-x 6 proxy proxy 4,0K 2003-07-25 08:02 banlists
-rwxr-xr-x 1 proxy proxy  39K 2007-06-02 14:37 make-cache
-rwxr-xr-x 1 proxy proxy  43K 2007-06-02 14:37 redirector
-rw-r--r-- 1 proxy proxy 3,0K 2007-06-02 14:38 redirector.conf
drwxr-sr-x 2 proxy proxy 4,0K 2007-06-02 14:37 tools
14:39:15
#vim make-cache
14:39:26
#vim redirector.conf
14:40:02
#./tools/check-redirector
 295 #Default:
 296 # none
 297
 298 #  TAG: udp_incoming_address
 299 #  TAG: udp_outgoing_address
 300 #       udp_incoming_address    is used for the ICP socket receiving packets
 301 #                               from other caches.
 302 #       udp_outgoing_address    is used for ICP packets sent out to other
 303 #                               caches.
 304 #
...
 308 #       should listen for UDP messages on all available interfaces.
 309 #
 310 #       If udp_outgoing_address is set to 255.255.255.255 (the default)
 311 #       it will use the same socket as udp_incoming_address. Only
 312 #       change this if you want to have ICP queries sent using another
 313 #       address than where this Squid listens for ICP queries from other
http://127.0.0.1/ban/porno.html 127.0.0.1/- - GET
Jun  2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help!
[root@zero:~]#
------------------------------------------------------------------------------------------------------------------
14:40:11
#vim ./tools/check-redirector
14:40:48
#./tools/check-redirector
http://127.0.0.1/ban/porno.html 127.0.0.1/- - GET
14:40:50
#cd

14:41:04
#vim /etc/squid/squid.conf
14:42:20
#squid -d 1 -N
2007/06/02 14:42:27|         0 Objects cancelled.
2007/06/02 14:42:27|         0 Duplicate URLs purged.
2007/06/02 14:42:27|         0 Swapfile clashes avoided.
2007/06/02 14:42:27|   Took 0.4 seconds (1472.3 objects/sec).
2007/06/02 14:42:27| Beginning Validation Procedure
2007/06/02 14:42:27|   Completed Validation Procedure
2007/06/02 14:42:27|   Validated 524 Entries
2007/06/02 14:42:27|   store_swap_size = 3516k
2007/06/02 14:42:28| storeLateRelease: released 0 objects
.
...
2007/06/02 14:45:58| Shutting down...
2007/06/02 14:45:58| FD 23 Closing ICP connection
2007/06/02 14:45:58| Closing unlinkd pipe on FD 20
2007/06/02 14:45:58| storeDirWriteCleanLogs: Starting...
2007/06/02 14:45:58|   Finished.  Wrote 615 entries.
2007/06/02 14:45:58|   Took 0.0 seconds (423262.2 entries/sec).
2007/06/02 14:45:58| Squid Cache (Version 2.6.STABLE5): Exiting normally.
Jun  2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help!
[root@zero:~]#
------------------------------------------------------------------------------------------------------------------
14:45:58
#/etc/init.d/squid start
 295 #Default:
 296 # none
 297
 298 #  TAG: udp_incoming_address
 299 #  TAG: udp_outgoing_address
 300 #       udp_incoming_address    is used for the ICP socket receiving packets
 301 #                               from other caches.
 302 #       udp_outgoing_address    is used for ICP packets sent out to other
 303 #                               caches.
 304 #
...
 308 #       should listen for UDP messages on all available interfaces.
 309 #
 310 #       If udp_outgoing_address is set to 255.255.255.255 (the default)
 311 #       it will use the same socket as udp_incoming_address. Only
 312 #       change this if you want to have ICP queries sent using another
 313 #       address than where this Squid listens for ICP queries from other
Starting Squid HTTP proxy: squid.
Jun  2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help!
[root@zero:~]#
------------------------------------------------------------------------------------------------------------------
14:46:10
#vim /usr/local/rejik3/
14:46:10
#vim /usr/local/rejik3/banlists/
14:46:10
#vim /usr/local/rejik3/banlists/porno/urls
14:46:10
#vim /usr/local/rejik3/banlists/porno/urls
22918a22919
> porno.ru
14:48:44
#vim /usr/local/rejik3/banlists/mp3/pcre
14:49:02
#squid -k reconfigure
 294 #
 295 #Default:
 296 # none
 297
 298 #  TAG: udp_incoming_address
 299 #  TAG: udp_outgoing_address
 300 #       udp_incoming_address    is used for the ICP socket receiving packets
 301 #                               from other caches.
 302 #       udp_outgoing_address    is used for ICP packets sent out to other
 303 #                               caches.
...
 307 #       A udp_incoming_address value of 0.0.0.0 indicates Squid
 308 #       should listen for UDP messages on all available interfaces.
 309 #
 310 #       If udp_outgoing_address is set to 255.255.255.255 (the default)
 311 #       it will use the same socket as udp_incoming_address. Only
 312 #       change this if you want to have ICP queries sent using another
 313 #       address than where this Squid listens for ICP queries from other
Jun  2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help!
[root@zero:~]#
------------------------------------------------------------------------------------------------------------------

Статистика

Время первой команды журнала14:20:47 2007- 6- 2
Время последней команды журнала14:49:02 2007- 6- 2
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, %12.87
Процент синтаксически неверно набранных команд, % 2.97
Суммарное время работы с терминалом *, час 0.47
Количество командных строк в единицу времени, команда/мин 3.58
Частота использования команд
ls21|====================| 20.79%
vim17|================| 16.83%
cd11|==========| 10.89%
check-redirector10|=========| 9.90%
make8|=======| 7.92%
less6|=====| 5.94%
rm4|===| 3.96%
sh4|===| 3.96%
mv3|==| 2.97%
squid3|==| 2.97%
apt-cache3|==| 2.97%
tar3|==| 2.97%
man2|=| 1.98%
ifconfig1|| 0.99%
Черновики1|| 0.99%
chown1|| 0.99%
ifoncifg1|| 0.99%
/etc/init.d/squid1|| 0.99%
apt-get1|| 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$