/l3/users/30-03-2008/fbsd-net/fbsd2.unix.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 :41 :42 :43 :44 :45 :46 :47 :48 :49 :50 :51 :52 :53 :54 :55 :56 :57 :58 :59 :60 :61 :62 :63 :64 :65 :66 :67 :68 :69 :70 :71 :72 :73 |
|
#ls /usr/local/rejik/redirector.log
ls: /usr/local/rejik/redirector.log: No such file or directory |
#touch /usr/local/rejik/redirector.log
|
#sudo ls /usr/local/rejik/redirector.err
bash: sudo: command not found |
#ls -l /usr/local/rejik/redirector.err
-rw-r--r-- 1 squid squid 23970 Apr 4 17:23 /usr/local/rejik/redirector.err |
#chown squid:squid /usr/local/rejik/redirector.err
|
#chown squid:squid /usr/local/rejik/redirector.log
|
#ls /usr/local/rejik/make-cache
/usr/local/rejik/make-cache |
#ls -l /usr/local/rejik/make-cache
-rwxr-xr-x 1 squid squid 35132 Apr 4 17:20 /usr/local/rejik/make-cache |
#squid -n -d 4
squid: illegal option -- n Usage: squid [-cdhvzCDFNRVYX] [-s | -l facility] [-f config-file] [-[au] port] [-k signal] -a port Specify HTTP port number (default: 3128). -d level Write debugging to stderr also. -f file Use given config-file instead of /usr/local/etc/squid/squid.conf -h Print help message. -k reconfigure|rotate|shutdown|interrupt|kill|debug|check|parse Parse configuration file, then send signal to running copy (except -k parse) and exit. ... -z Create swap directories -C Do not catch fatal signals. -D Disable initial DNS tests. -F Don't serve any requests until store is rebuilt. -N No daemon mode. -R Do not set REUSEADDR on port. -S Double-check swap during rebuild. -V Virtual host httpd-accelerator. -X Force full debugging. -Y Only return UDP_HIT or UDP_MISS_NOFETCH during fast reload. |
#squid -N -d 4
2008/04/04 17:51:09| Starting Squid Cache version 3.0.RC1+PatchSets-20071001 for i386-portbld-freebsd6.3... 2008/04/04 17:51:09| Process ID 25189 2008/04/04 17:51:09| With 11072 file descriptors available 2008/04/04 17:51:09| Performing DNS Tests... 2008/04/04 17:51:09| Successful DNS name lookup tests... 2008/04/04 17:51:09| DNS Socket created at 0.0.0.0, port 59945, FD 5 2008/04/04 17:51:09| Adding domain life.unix.nt from /etc/resolv.conf 2008/04/04 17:51:09| Adding domain unix.nt from /etc/resolv.conf 2008/04/04 17:51:09| Adding nameserver 127.0.0.1 from /etc/resolv.conf 2008/04/04 17:51:09| helperOpenServers: Starting 5 'redirector' processes ... 2008/04/04 17:51:09| Accepting HTTP connections at 0.0.0.0, port 3128, FD 17. 2008/04/04 17:51:09| Accepting ICP messages at 0.0.0.0, port 3130, FD 18. 2008/04/04 17:51:09| HTCP Disabled. 2008/04/04 17:51:09| Ready to serve requests. 2008/04/04 17:51:09| WARNING: redirector #1 (FD 6) exited 2008/04/04 17:51:09| WARNING: redirector #2 (FD 7) exited 2008/04/04 17:51:09| WARNING: redirector #3 (FD 8) exited 2008/04/04 17:51:09| WARNING: redirector #4 (FD 9) exited 2008/04/04 17:51:09| Too few redirector processes are running FATAL: The redirector helpers are crashing too rapidly, need help! |
#ps aux | grep redirector
root 25236 0.0 0.1 1600 1028 p3 S+ 5:51PM 0:00.01 grep redirector |
#ps aux | grep redirector
root 25236 0.0 0.1 1600 1028 p3 S+ 5:51PM 0:00.01 grep redirector |
#ps aux | grep rejik
root 25259 0.0 0.1 1600 1028 p3 S+ 5:51PM 0:00.01 grep rejik |
#ps aux | grep rejik
root 25259 0.0 0.1 1600 1028 p3 S+ 5:51PM 0:00.01 grep rejik |
#ps aux | grep re
root 18 0.0 0.0 0 8 ?? DL 3:11PM 0:00.00 [thread taskq] root 1878 0.0 0.1 1864 1472 ?? Is 3:26PM 0:00.00 /usr/local/bin/dbus-daemon --fork --print-pid 11 --print-address 13 --session root 25268 0.0 0.1 1528 676 p3 RL+ 5:51PM 0:00.01 grep re root 32945 0.0 0.1 1744 1404 p5 I+ 4:33PM 0:00.01 /bin/sh /usr/local/bin/firefox root 32949 0.0 0.1 1760 1412 p5 I+ 4:33PM 0:00.01 /bin/sh /usr/local/lib/firefox/run-mozilla.sh /usr/local/lib/firefox/firefox-bin root 32953 0.0 5.7 70756 59500 p5 S+ 4:33PM 2:01.81 /usr/local/lib/firefox/firefox-bin |
#vim /usr/local/etc/squid/squid.conf
|
#TAG: authenticate_ip_ttl
egrep: squid.conf: No such file or directory |
#egrep -v "^#|^\ *$" /usr/local/etc/squid/squid.conf
acl all src 0.0.0.0/0.0.0.0 acl manager proto cache_object acl localhost src 127.0.0.1/255.255.255.255 acl to_localhost dst 127.0.0.0/8 acl SSL_ports port 443 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 # https acl Safe_ports port 70 # gopher acl Safe_ports port 210 # wais ... hierarchy_stoplist cgi-bin ? access_log /usr/local/squid/logs/access.log squid url_rewrite_program /usr/local/rejik/redirector acl QUERY urlpath_regex cgi-bin \? cache deny QUERY refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern . 0 20% 4320 icp_port 3130 coredump_dir /usr/local/squid/cache |
#ls /usr/local/rejik/redirector.conf
/usr/local/rejik/redirector.conf |
#vim /usr/local/rejik/redirector.conf
|
#~
|
#vim /usr/local/etc/squid/squid.conf
--- /tmp/l3-saved-32022.18690.24985 2008-04-04 17:53:38.000000000 +0000 +++ /usr/local/etc/squid/squid.conf 2008-04-04 17:53:57.000000000 +0000 @@ -2164,7 +2164,7 @@ # #Default: # none -url_rewrite_program /usr/local/rejik/redirector +url_rewrite_program /usr/local/rejik/redirector /usr/local/rejik/redirector.conf # TAG: url_rewrite_children # The number of redirector processes to spawn. If you start |
#squid -N -d 4
2008/04/04 17:54:01| Starting Squid Cache version 3.0.RC1+PatchSets-20071001 for i386-portbld-freebsd6.3... 2008/04/04 17:54:01| Process ID 25392 2008/04/04 17:54:01| With 11072 file descriptors available 2008/04/04 17:54:01| Performing DNS Tests... 2008/04/04 17:54:01| Successful DNS name lookup tests... 2008/04/04 17:54:01| DNS Socket created at 0.0.0.0, port 56087, FD 5 2008/04/04 17:54:01| Adding domain life.unix.nt from /etc/resolv.conf 2008/04/04 17:54:01| Adding domain unix.nt from /etc/resolv.conf 2008/04/04 17:54:01| Adding nameserver 127.0.0.1 from /etc/resolv.conf 2008/04/04 17:54:01| helperOpenServers: Starting 5 'redirector' processes ... 2008/04/04 17:54:01| Accepting HTTP connections at 0.0.0.0, port 3128, FD 17. 2008/04/04 17:54:01| Accepting ICP messages at 0.0.0.0, port 3130, FD 18. 2008/04/04 17:54:01| HTCP Disabled. 2008/04/04 17:54:01| Ready to serve requests. 2008/04/04 17:54:01| WARNING: redirector #1 (FD 6) exited 2008/04/04 17:54:01| WARNING: redirector #2 (FD 7) exited 2008/04/04 17:54:01| WARNING: redirector #3 (FD 8) exited 2008/04/04 17:54:01| WARNING: redirector #4 (FD 9) exited 2008/04/04 17:54:01| Too few redirector processes are running FATAL: The redirector helpers are crashing too rapidly, need help! |
#vim /usr/local/etc/squid/squid.conf
--- /tmp/l3-saved-32022.12456.21320 2008-04-04 17:54:17.000000000 +0000 +++ /usr/local/etc/squid/squid.conf 2008-04-04 17:54:41.000000000 +0000 @@ -2164,7 +2164,8 @@ # #Default: # none -url_rewrite_program /usr/local/rejik/redirector /usr/local/rejik/redirector.conf +redirect_program /usr/local/rejik/redirector /usr/local/rejik/redirector.conf +#url_rewrite_program /usr/local/rejik/redirector /usr/local/rejik/redirector.conf # TAG: url_rewrite_children # The number of redirector processes to spawn. If you start |
#squid -N -d 4
2008/04/04 17:54:43| Starting Squid Cache version 3.0.RC1+PatchSets-20071001 for i386-portbld-freebsd6.3... 2008/04/04 17:54:43| Process ID 25422 2008/04/04 17:54:43| With 11072 file descriptors available 2008/04/04 17:54:43| Performing DNS Tests... 2008/04/04 17:54:43| Successful DNS name lookup tests... 2008/04/04 17:54:43| DNS Socket created at 0.0.0.0, port 50959, FD 5 2008/04/04 17:54:43| Adding domain life.unix.nt from /etc/resolv.conf 2008/04/04 17:54:43| Adding domain unix.nt from /etc/resolv.conf 2008/04/04 17:54:43| Adding nameserver 127.0.0.1 from /etc/resolv.conf 2008/04/04 17:54:43| helperOpenServers: Starting 5 'redirector' processes ... 2008/04/04 17:54:44| Accepting HTTP connections at 0.0.0.0, port 3128, FD 17. 2008/04/04 17:54:44| Accepting ICP messages at 0.0.0.0, port 3130, FD 18. 2008/04/04 17:54:44| HTCP Disabled. 2008/04/04 17:54:44| Ready to serve requests. 2008/04/04 17:54:44| WARNING: redirector #1 (FD 6) exited 2008/04/04 17:54:44| WARNING: redirector #2 (FD 7) exited 2008/04/04 17:54:44| WARNING: redirector #3 (FD 8) exited 2008/04/04 17:54:44| WARNING: redirector #4 (FD 9) exited 2008/04/04 17:54:44| Too few redirector processes are running FATAL: The redirector helpers are crashing too rapidly, need help! |
#less /usr/local/rejik/redirector.err
|
#ls -l /usr/local/rejik/banlists/banners/lock.file
ls: /usr/local/rejik/banlists/banners/lock.file: No such file or directory |
#ls -l /usr/local/rejik/banlists/banners
total 28 -rw-r--r-- 1 root squid 206 Apr 4 17:47 pcre -rw-r--r-- 1 root squid 26059 Apr 4 17:47 urls |
#chown -r squid:squid /usr/local/rejik/
chown: illegal option -- r usage: chown [-fhv] [-R [-H | -L | -P]] owner[:group] file ... chown [-fhv] [-R [-H | -L | -P]] :group file ... |
#chown -r squid:squid /usr/local/rejik/
chown: illegal option -- r usage: chown [-fhv] [-R [-H | -L | -P]] owner[:group] file ... chown [-fhv] [-R [-H | -L | -P]] :group file ... |
#chown -R squid:squid /usr/local/rejik/
|
#chown -R squid:squid /usr/local/rejik/
|
#squid -N -d 4
2008/04/04 17:55:50| Starting Squid Cache version 3.0.RC1+PatchSets-20071001 for i386-portbld-freebsd6.3... 2008/04/04 17:55:50| Process ID 25512 2008/04/04 17:55:50| With 11072 file descriptors available 2008/04/04 17:55:50| Performing DNS Tests... 2008/04/04 17:55:50| Successful DNS name lookup tests... 2008/04/04 17:55:50| DNS Socket created at 0.0.0.0, port 52157, FD 5 2008/04/04 17:55:50| Adding domain life.unix.nt from /etc/resolv.conf 2008/04/04 17:55:50| Adding domain unix.nt from /etc/resolv.conf 2008/04/04 17:55:50| Adding nameserver 127.0.0.1 from /etc/resolv.conf 2008/04/04 17:55:50| helperOpenServers: Starting 5 'redirector' processes ... 2008/04/04 17:55:52| storeLateRelease: released 0 objects ^C2008/04/04 17:55:53| Preparing for shutdown after 0 requests 2008/04/04 17:55:53| Waiting 0 seconds for active connections to finish 2008/04/04 17:55:53| FD 17 Closing HTTP connection 2008/04/04 17:55:54| Shutting down... 2008/04/04 17:55:54| FD 18 Closing ICP connection 2008/04/04 17:55:54| Closing unlinkd pipe on FD 15 2008/04/04 17:55:54| storeDirWriteCleanLogs: Starting... 2008/04/04 17:55:54| Finished. Wrote 277 entries. 2008/04/04 17:55:54| Took 0.00034 seconds (8.1e+05 entries/sec). |
#squid -N -d 4
2008/04/04 17:55:50| Starting Squid Cache version 3.0.RC1+PatchSets-20071001 for i386-portbld-freebsd6.3... 2008/04/04 17:55:50| Process ID 25512 2008/04/04 17:55:50| With 11072 file descriptors available 2008/04/04 17:55:50| Performing DNS Tests... 2008/04/04 17:55:50| Successful DNS name lookup tests... 2008/04/04 17:55:50| DNS Socket created at 0.0.0.0, port 52157, FD 5 2008/04/04 17:55:50| Adding domain life.unix.nt from /etc/resolv.conf 2008/04/04 17:55:50| Adding domain unix.nt from /etc/resolv.conf 2008/04/04 17:55:50| Adding nameserver 127.0.0.1 from /etc/resolv.conf 2008/04/04 17:55:50| helperOpenServers: Starting 5 'redirector' processes ... 2008/04/04 17:55:52| storeLateRelease: released 0 objects ^C2008/04/04 17:55:53| Preparing for shutdown after 0 requests 2008/04/04 17:55:53| Waiting 0 seconds for active connections to finish 2008/04/04 17:55:53| FD 17 Closing HTTP connection 2008/04/04 17:55:54| Shutting down... 2008/04/04 17:55:54| FD 18 Closing ICP connection 2008/04/04 17:55:54| Closing unlinkd pipe on FD 15 2008/04/04 17:55:54| storeDirWriteCleanLogs: Starting... 2008/04/04 17:55:54| Finished. Wrote 277 entries. 2008/04/04 17:55:54| Took 0.00034 seconds (8.1e+05 entries/sec). |
#/usr/local/etc/rc.d/squid start
Starting squid. |
#/usr/local/etc/rc.d/squid start
Starting squid. |
#netstat -lnp
netstat: option requires an argument -- p usage: netstat [-AaLnSW] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface [-abdhnt] [-f address_family] [-M core] [-N system] netstat -w wait [-I interface] [-d] [-M core] [-N system] netstat -s [-s] [-z] [-f protocol_family | -p protocol] [-M core] netstat -i | -I interface -s [-f protocol_family | -p protocol] [-M core] [-N system] netstat -m [-M core] [-N system] netstat -B [ -I interface] netstat -r [-AenW] [-f address_family] [-M core] [-N system] netstat -rs [-s] [-M core] [-N system] netstat -g [-W] [-f address_family] [-M core] [-N system] netstat -gs [-s] [-f address_family] [-M core] [-N system] |
#netstat -lnp
netstat: option requires an argument -- p usage: netstat [-AaLnSW] [-f protocol_family | -p protocol] [-M core] [-N system] netstat -i | -I interface [-abdhnt] [-f address_family] [-M core] [-N system] netstat -w wait [-I interface] [-d] [-M core] [-N system] netstat -s [-s] [-z] [-f protocol_family | -p protocol] [-M core] netstat -i | -I interface -s [-f protocol_family | -p protocol] [-M core] [-N system] netstat -m [-M core] [-N system] netstat -B [ -I interface] netstat -r [-AenW] [-f address_family] [-M core] [-N system] netstat -rs [-s] [-M core] [-N system] netstat -g [-W] [-f address_family] [-M core] [-N system] netstat -gs [-s] [-f address_family] [-M core] [-N system] |
#sockstat -4l
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS squid squid 25598 7 udp4 *:63481 *:* squid squid 25598 19 tcp4 *:3128 *:* squid squid 25598 20 udp4 *:3130 *:* www httpd 24741 3 tcp4 *:80 *:* www httpd 24719 3 tcp4 *:80 *:* www httpd 24718 3 tcp4 *:80 *:* www httpd 24717 3 tcp4 *:80 *:* www httpd 24716 3 tcp4 *:80 *:* www httpd 24715 3 tcp4 *:80 *:* ... root xinetd 852 0 tcp4 *:19 *:* root xinetd 852 5 tcp4 *:110 *:* root xinetd 852 6 tcp4 *:7 *:* bind named 797 20 udp4 192.168.16.22:53 *:* bind named 797 21 tcp4 192.168.16.22:53 *:* bind named 797 22 udp4 127.0.0.1:53 *:* bind named 797 23 tcp4 127.0.0.1:53 *:* bind named 797 24 udp4 *:54441 *:* bind named 797 26 tcp4 127.0.0.1:953 *:* root syslogd 736 9 udp4 *:514 *:* |
#sockstat -4l
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS squid squid 25598 7 udp4 *:63481 *:* squid squid 25598 19 tcp4 *:3128 *:* squid squid 25598 20 udp4 *:3130 *:* www httpd 24741 3 tcp4 *:80 *:* www httpd 24719 3 tcp4 *:80 *:* www httpd 24718 3 tcp4 *:80 *:* www httpd 24717 3 tcp4 *:80 *:* www httpd 24716 3 tcp4 *:80 *:* www httpd 24715 3 tcp4 *:80 *:* ... root xinetd 852 0 tcp4 *:19 *:* root xinetd 852 5 tcp4 *:110 *:* root xinetd 852 6 tcp4 *:7 *:* bind named 797 20 udp4 192.168.16.22:53 *:* bind named 797 21 tcp4 192.168.16.22:53 *:* bind named 797 22 udp4 127.0.0.1:53 *:* bind named 797 23 tcp4 127.0.0.1:53 *:* bind named 797 24 udp4 *:54441 *:* bind named 797 26 tcp4 127.0.0.1:953 *:* root syslogd 736 9 udp4 *:514 *:* |
#ls
Makefile Makefile.modules distinfo pkg-descr pkg-message work Makefile.doc Makefile.options files pkg-install pkg-plist |
#ls
Makefile Makefile.modules distinfo pkg-descr pkg-message work Makefile.doc Makefile.options files pkg-install pkg-plist |
#pwd
/usr/ports/www/apache22 |
#pwd
/usr/ports/www/apache22 |
#cd /usr/local/www/apache22/data/
|
#cd /usr/local/www/apache22/data/
|
#cd /usr/local/www/apache22/data/
|
#ls
ban index.html |
#ls
ban index.html |
#ls
ban index.html |
#ls ban/
1x1.gif access_denied.html audio-video.html js.js porno.html spyware.html |
#ls ban/
1x1.gif access_denied.html audio-video.html js.js porno.html spyware.html |
#ls ban/
1x1.gif access_denied.html audio-video.html js.js porno.html spyware.html |
#pkg_info -Lx rejik
Information for rejik-3.2.1_1: Files: /usr/local/rejik/dbl/FAST /usr/local/rejik/dbl/FULL /usr/local/rejik/dbl/Update.dist /usr/local/rejik/dbl/Update.Fast.dist /usr/local/rejik/dbl/dbl_expand.dist /usr/local/rejik/dbl/dbl_stat /usr/local/rejik/make-cache /usr/local/rejik/redirector ... /usr/local/share/examples/rejik/banlists/banners/urls /usr/local/share/examples/rejik/banlists/js/urls /usr/local/share/examples/rejik/banlists/mp3/pcre /usr/local/share/examples/rejik/banlists/porno/urls /usr/local/share/examples/rejik/squid-like-www-en/1x1.gif /usr/local/share/examples/rejik/squid-like-www-en/access_denied.html /usr/local/share/examples/rejik/squid-like-www-en/audio-video.html /usr/local/share/examples/rejik/squid-like-www-en/js.js /usr/local/share/examples/rejik/squid-like-www-en/porno.html /usr/local/share/examples/rejik/squid-like-www-en/spyware.html |
#pkg_info -Lx rejik
Information for rejik-3.2.1_1: Files: /usr/local/rejik/dbl/FAST /usr/local/rejik/dbl/FULL /usr/local/rejik/dbl/Update.dist /usr/local/rejik/dbl/Update.Fast.dist /usr/local/rejik/dbl/dbl_expand.dist /usr/local/rejik/dbl/dbl_stat /usr/local/rejik/make-cache /usr/local/rejik/redirector ... /usr/local/share/examples/rejik/banlists/banners/urls /usr/local/share/examples/rejik/banlists/js/urls /usr/local/share/examples/rejik/banlists/mp3/pcre /usr/local/share/examples/rejik/banlists/porno/urls /usr/local/share/examples/rejik/squid-like-www-en/1x1.gif /usr/local/share/examples/rejik/squid-like-www-en/access_denied.html /usr/local/share/examples/rejik/squid-like-www-en/audio-video.html /usr/local/share/examples/rejik/squid-like-www-en/js.js /usr/local/share/examples/rejik/squid-like-www-en/porno.html /usr/local/share/examples/rejik/squid-like-www-en/spyware.html |
#pkg_info -Lx rejik
Information for rejik-3.2.1_1: Files: /usr/local/rejik/dbl/FAST /usr/local/rejik/dbl/FULL /usr/local/rejik/dbl/Update.dist /usr/local/rejik/dbl/Update.Fast.dist /usr/local/rejik/dbl/dbl_expand.dist /usr/local/rejik/dbl/dbl_stat /usr/local/rejik/make-cache /usr/local/rejik/redirector ... /usr/local/share/examples/rejik/banlists/banners/urls /usr/local/share/examples/rejik/banlists/js/urls /usr/local/share/examples/rejik/banlists/mp3/pcre /usr/local/share/examples/rejik/banlists/porno/urls /usr/local/share/examples/rejik/squid-like-www-en/1x1.gif /usr/local/share/examples/rejik/squid-like-www-en/access_denied.html /usr/local/share/examples/rejik/squid-like-www-en/audio-video.html /usr/local/share/examples/rejik/squid-like-www-en/js.js /usr/local/share/examples/rejik/squid-like-www-en/porno.html /usr/local/share/examples/rejik/squid-like-www-en/spyware.html |
#cd ban/
|
#cd ban/
|
#cd ban/
|
#cd ban/
|
#cp porno.html mp3.html
|
#cp porno.html mp3.html
|
#cp porno.html mp3.html
|
#cp porno.html mp3.html
|
#vim mp3.html
--- /tmp/l3-saved-32022.32237.10611 2008-04-04 17:58:24.000000000 +0000 +++ mp3.html 2008-04-04 17:58:43.000000000 +0000 @@ -13,5 +13,5 @@ Access Denied. </STRONG> <P> -Access control configuration prevents your request from being allowed because the page wich you requested contains pornographic materials. Please contact your <a href="mailto:">cache administrator</a> if you feel this is incorrect. +Access control configuration prevents your request from being allowed because the page wich you requested contains audio files. Please contact your <a href="mailto:">cache administrator</a> if you feel this is incorrect. </UL> |
#vim mp3.html
--- /tmp/l3-saved-32022.32237.10611 2008-04-04 17:58:24.000000000 +0000 +++ mp3.html 2008-04-04 17:58:43.000000000 +0000 @@ -13,5 +13,5 @@ Access Denied. </STRONG> <P> -Access control configuration prevents your request from being allowed because the page wich you requested contains pornographic materials. Please contact your <a href="mailto:">cache administrator</a> if you feel this is incorrect. +Access control configuration prevents your request from being allowed because the page wich you requested contains audio files. Please contact your <a href="mailto:">cache administrator</a> if you feel this is incorrect. </UL> |
#vim mp3.html
--- /tmp/l3-saved-32022.32237.10611 2008-04-04 17:58:24.000000000 +0000 +++ mp3.html 2008-04-04 17:58:43.000000000 +0000 @@ -13,5 +13,5 @@ Access Denied. </STRONG> <P> -Access control configuration prevents your request from being allowed because the page wich you requested contains pornographic materials. Please contact your <a href="mailto:">cache administrator</a> if you feel this is incorrect. +Access control configuration prevents your request from being allowed because the page wich you requested contains audio files. Please contact your <a href="mailto:">cache administrator</a> if you feel this is incorrect. </UL> |
#cd /usr/local/rejik/
|
#cd /usr/local/rejik/
|
#cd /usr/local/rejik/
|
#ls
banlists dbl make-cache porno redirector.conf redirector.err tools banners js mp3 redirector redirector.conf.dist redirector.log |
#ls
banlists dbl make-cache porno redirector.conf redirector.err tools banners js mp3 redirector redirector.conf.dist redirector.log |
#ls
banlists dbl make-cache porno redirector.conf redirector.err tools banners js mp3 redirector redirector.conf.dist redirector.log |
#ls js/
urls |
#ls js/
urls |
#ls js/
urls |
#ls js/urls
js/urls |
#ls js/urls
js/urls |
#ls js/urls
js/urls |
#vim js/urls
|
#vim js/urls
|
#vim js/urls
|
#~
banlists dbl make-cache porno redirector.conf redirector.err tools banners js mp3 redirector redirector.conf.dist redirector.log |
#~
banlists dbl make-cache porno redirector.conf redirector.err tools banners js mp3 redirector redirector.conf.dist redirector.log |
#~
banlists dbl make-cache porno redirector.conf redirector.err tools banners js mp3 redirector redirector.conf.dist redirector.log |
#ls banners/
pcre urls |
#ls banners/
pcre urls |
#ls banners/
pcre urls |
#ls banners/pcre
banners/pcre |
#ls banners/pcre
banners/pcre |
#ls banners/pcre
banners/pcre |
#vim banners/pcre
|
#vim banners/pcre
|
#vim banners/pcre
|
#~
|
#~
|
#vim /etc/mail/aliases
--- /tmp/l3-saved-32022.10678.528 2008-04-04 18:05:29.000000000 +0000 +++ /etc/mail/aliases 2008-04-04 18:05:56.000000000 +0000 @@ -71,6 +71,7 @@ # DefaultUser (defaults to mailnull) for the msgs alias to work. # # msgs: "| /usr/bin/msgs -s" +goodbye: " ' # bit-bucket: /dev/null # dev-null: bit-bucket |
#vim /etc/mail/aliases
--- /tmp/l3-saved-32022.10678.528 2008-04-04 18:05:29.000000000 +0000 +++ /etc/mail/aliases 2008-04-04 18:05:56.000000000 +0000 @@ -71,6 +71,7 @@ # DefaultUser (defaults to mailnull) for the msgs alias to work. # # msgs: "| /usr/bin/msgs -s" +goodbye: " ' # bit-bucket: /dev/null # dev-null: bit-bucket |
#cp /bin/r
rcp realpath red rm rmail rmdir |
#cp /bin/r
rcp realpath red rm rmail rmdir |
Время первой команды журнала | 20:49:39 2008- 4- 4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 21:05:57 2008- 4- 4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 11.88 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.27 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 6.20 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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