/l3/users/29-05-2007/nt-lnet/linux1.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 :39 :40 |
|
#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 |
#./check-redirector
|
#less /var/log/squid/redirector.err
|
#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:~]# ------------------------------------------------------------------------------------------------------------------ |
#vim ../redirector.conf
|
#man redi
|
#man re
|
#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:~]# ------------------------------------------------------------------------------------------------------------------ |
#vim ../redirector.conf
72c72 < make-cache /var/log/squid/make-cache --- > #make-cache /var/log/squid/make-cache |
#./check-redirector
|
#less /var/log/squid/redirector.err
|
#cd
|
#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:~]# ------------------------------------------------------------------------------------------------------------------ |
#rm -rf /var/log/squid/
|
#rm -rf /usr/local/rejik3/
|
#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:~]# ------------------------------------------------------------------------------------------------------------------ |
#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 |
#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 |
#make distclean
make: *** Нет правила для сборки цели `distclean'. Останов. |
#vim INSTALL
|
#vim Makefile
|
#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 |
#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:~]# ------------------------------------------------------------------------------------------------------------------ |
#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:~]# ------------------------------------------------------------------------------------------------------------------ |
#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 |
#ls -ld /usr/local/rejik3/
drwxrwx--- 3 proxy proxy 4096 2007-06-02 14:24 /usr/local/rejik3/ |
#cd /usr/local/rejik3/
|
#ls
make-cache redirector redirector.conf.dist tools |
#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:~]# ------------------------------------------------------------------------------------------------------------------ |
#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 |
#ls
make-cache redirector redirector.conf tools |
#./tools/check-redirector
|
#less /var/log/squid/redirector.err
|
#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:~]# ------------------------------------------------------------------------------------------------------------------ |
#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:~]# ------------------------------------------------------------------------------------------------------------------ |
#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:~]# ------------------------------------------------------------------------------------------------------------------ |
#sh /usr/local/rejik3/tools/set-permissions
|
#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:~]# ------------------------------------------------------------------------------------------------------------------ |
#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 |
#./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:~]# ------------------------------------------------------------------------------------------------------------------ |
#cd /usr/local/rejik3/
|
#./tools/check-redirector
|
#less /var/log/squid/redirector.err
|
#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:~]# ------------------------------------------------------------------------------------------------------------------ |
#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. |
#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:~]# ------------------------------------------------------------------------------------------------------------------ |
#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 |
#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:~]# ------------------------------------------------------------------------------------------------------------------ |
#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. |
#less /var/log/squid/redirector.err
|
#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) |
#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) |
#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:~]# ------------------------------------------------------------------------------------------------------------------ |
#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:~]# ------------------------------------------------------------------------------------------------------------------ |
#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:~]# ------------------------------------------------------------------------------------------------------------------ |
#cd /usr/src/redirector-3.2.1/
|
#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 |
#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 |
#make distclean
make: *** Нет правила для сборки цели `distclean'. Останов. |
#vim INSTALL
|
#vim Makefile
|
#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 |
#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 |
#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:~]# ------------------------------------------------------------------------------------------------------------------ |
#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 |
#ls -ld /usr/local/rejik3/
drwxrwx--- 3 proxy proxy 4096 2007-06-02 14:37 /usr/local/rejik3/ |
#cd /usr/local/rejik3/
|
#ls
make-cache redirector redirector.conf.dist tools |
#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:~]# ------------------------------------------------------------------------------------------------------------------ |
#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 |
#ls
make-cache redirector redirector.conf tools |
#./tools/check-redirector
|
#less /var/log/squid/redirector.err
|
#cd
|
#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 |
#sh /usr/local/rejik3/tools/set-permissions
|
#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 |
#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:~]# ------------------------------------------------------------------------------------------------------------------ |
#./tools/check-redirector
bash: ./tools/check-redirector: No such file or directory |
#cd /usr/local/rejik3/
|
#./tools/check-redirector
http://127.0.0.1/ban/porno.html 127.0.0.1/- - GET |
#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:~]# ------------------------------------------------------------------------------------------------------------------ |
#ls
banlists make-cache redirector redirector.conf tools |
#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 |
#vim make-cache
|
#vim redirector.conf
|
#./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:~]# ------------------------------------------------------------------------------------------------------------------ |
#vim ./tools/check-redirector
|
#./tools/check-redirector
http://127.0.0.1/ban/porno.html 127.0.0.1/- - GET |
#cd
|
#vim /etc/squid/squid.conf
|
#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:~]# ------------------------------------------------------------------------------------------------------------------ |
#/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:~]# ------------------------------------------------------------------------------------------------------------------ |
#vim /usr/local/rejik3/
|
#vim /usr/local/rejik3/banlists/
|
#vim /usr/local/rejik3/banlists/porno/urls
|
#vim /usr/local/rejik3/banlists/porno/urls
22918a22919 > porno.ru |
#vim /usr/local/rejik3/banlists/mp3/pcre
|
#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 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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