/l3/users/clint/clamav/root :1 :2 :3 :4 |
|
#ls
CONTRIBUTORS Makefile.in autom4te.cache debian scripts COPYING QUICKSTART bootstrap.sh doc snmplib COPYRIGHT README cfgaux errors src CREDITS RELEASENOTES.html configure helpers tools ChangeLog SPONSORS configure.in icons INSTALL acinclude.m4 configure.in.orig include Makefile.am aclocal.m4 contrib lib |
#ls QUICKSTART
QUICKSTART |
#vim QUICKSTART
|
#ls
CONTRIBUTORS Makefile.in autom4te.cache debian scripts COPYING QUICKSTART bootstrap.sh doc snmplib COPYRIGHT README cfgaux errors src CREDITS RELEASENOTES.html configure helpers tools ChangeLog SPONSORS configure.in icons INSTALL acinclude.m4 configure.in.orig include Makefile.am aclocal.m4 contrib lib |
#./configure
checking for ssize_t... yes checking for off_t... yes checking for mode_t... yes checking for fd_mask... yes checking size of off_t... 4 checking size of size_t... 4 checking for working alloca.h... yes checking for alloca... yes checking for socklen_t... yes checking for mtyp_t... no ... config.status: creating helpers/external_acl/Makefile config.status: creating helpers/external_acl/ip_user/Makefile config.status: creating helpers/external_acl/ldap_group/Makefile config.status: creating helpers/external_acl/mswin_lm_group/Makefile config.status: creating helpers/external_acl/session/Makefile config.status: creating helpers/external_acl/unix_group/Makefile config.status: creating helpers/external_acl/wbinfo_group/Makefile config.status: creating tools/Makefile config.status: creating include/autoconf.h config.status: executing depfiles commands |
#make
gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../include -Wall -g -O2 -MT util.o -MD -MP -MF .deps/util.Tpo -c -o util.o util.c mv -f .deps/util.Tpo .deps/util.Po gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../include -Wall -g -O2 -MT uudecode.o -MD -MP -MF .deps/uudecode.Tpo -c -o uudecode.o uudecode.c mv -f .deps/uudecode.Tpo .deps/uudecode.Po rm -f libmiscutil.a /usr/bin/ar cru libmiscutil.a Array.o base64.o getfullhostname.o hash.o heap.o html_quote.o iso3307.o md5.o radix.o rfc1035.o rfc1123.o rfc1738.o rfc2617.o safe_inet_addr.o splay.o Stack.o strnstr.o stub_memaccount.o util.o uudecode.o ranlib libmiscutil.a gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../include -Wall -g -O2 -MT ntlmauth.o -MD -MP -MF .deps/ntlmauth.Tpo -c -o ntlmauth.o ntlmauth.c mv -f .deps/ntlmauth.Tpo .deps/ntlmauth.Po rm -f libntlmauth.a ... gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/usr/local/squid/etc/squid.conf\" -I. -I../include -I. -I. -I../include -I../include -Wall -g -O2 -MT http.o -MD -MP -MF .deps/http.Tpo -c -o http.o http.c http.c:415: error: conflicting types for 'httpProcessReplyHeader' protos.h:306: error: previous declaration of 'httpProcessReplyHeader' was here make[3]: *** [http.o] Error 1 make[3]: Leaving directory `/root/squid/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/root/squid/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/root/squid/src' make: *** [all-recursive] Error 1 |
#ls
CONTRIBUTORS Makefile.am aclocal.m4 configure.in icons COPYING Makefile.in autom4te.cache configure.in.orig include COPYRIGHT QUICKSTART bootstrap.sh contrib lib CREDITS README cfgaux debian scripts ChangeLog RELEASENOTES.html config.log doc snmplib INSTALL SPONSORS config.status errors src Makefile acinclude.m4 configure helpers tools |
#cd ..
|
#ls
cfgaux squid-icap-2.5.STABLE12-20051102.tgz squid_2.6.5.orig.tar.gz squid squid_2.6.5-4.diff.gz squid-2.6.5 squid_2.6.5-4.dsc |
#rm cfgaux
rm: cannot remove `cfgaux': Is a directory |
#rm cfgaux -rf
|
#rm -rf squid
|
#dpkg-buil
dpkg-parsechangelog: error: cannot open debian/changelog to find format: No such file or directory dpkg-buildpackage: unable to determine source package is |
#cd squid
bash: cd: squid: No such file or directory |
#ls
squid-2.6.5 squid_2.6.5-4.dsc squid-icap-2.5.STABLE12-20051102.tgz squid_2.6.5.orig.tar.gz squid_2.6.5-4.diff.gz |
#cd squid-2.6.5/
|
#cd ..
|
#cp -r squid-2.6.5 squid
|
#cd squid
|
#dpkg-buildpackage -rfakeroot -uc -b
--enable-underscores \ --enable-referer-log \ --enable-useragent-log \ --enable-auth="basic,digest,ntlm" \ --enable-carp \ --with-large-files \ i386-debian-linux configure: WARNING: you should use --build, --host, --target checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes ... checking for grp.h... (cached) yes checking for nss_common.h... no checking for nss.h... yes checking for db.h... yes checking for db_185.h... yes checking for aio.h... yes checking for ip_compat.h... no checking for ip_fil_compat.h... no checking for ip_fil.h... no checking for ip_nat.h... make: *** [config.status] Error 1 |
#cd ..
|
#rm -rf squid
|
#cp -r squid-2.6.5 squid
|
#nohup dpkg-buildpackage -rfakeroot -uc -b
nohup: appending output to `nohup.out' |
#less nohup.out
|
#cd squid
|
#nohup dpkg-buildpackage -rfakeroot -uc -b
nohup: appending output to `nohup.out' [1]+ Stopped nohup dpkg-buildpackage -rfakeroot -uc -b |
#bg
[1]+ nohup dpkg-buildpackage -rfakeroot -uc -b & |
#tail -f nohup.out
s%@DEFAULT_ICP_PORT@%3130%g;\ s%@DEFAULT_MIME_TABLE@%/usr/share/squid/mime.conf%g;\ s%@DEFAULT_DNSSERVER@%/usr/lib/squid/`echo dnsserver | sed 's,x,x,;s/$//'`%g;\ s%@DEFAULT_UNLINKD@%/usr/lib/squid/`echo unlinkd | sed 's,x,x,;s/$//'`%g;\ s%@DEFAULT_PINGER@%/usr/lib/squid/`echo pinger | sed 's,x,x,;s/$//'`%g;\ s%@DEFAULT_DISKD@%/usr/lib/squid/`echo diskd-daemon | sed 's,x,x,;s/$//'`%g;\ s%@DEFAULT_CACHE_LOG@%/var/log/squid/cache.log%g;\ s%@DEFAULT_ACCESS_LOG@%/var/log/squid/access.log%g;\ s%@DEFAULT_STORE_LOG@%/var/log/squid/store.log%g;\ s%@DEFAULT_PID_FILE@%/var/run/squid.pid%g;\ ... if gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/etc/squid/squid.conf\" -I. -I. -I../include -I. -I. -I../include -I../include -m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -g -O2 -D_REENTRANT -MT asn.o -MD -MP -MF ".deps/asn.Tpo" -c -o asn.o asn.c; \ then mv -f ".deps/asn.Tpo" ".deps/asn.Po"; else rm -f ".deps/asn.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/etc/squid/squid.conf\" -I. -I. -I../include -I. -I. -I../include -I../include -m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -g -O2 -D_REENTRANT -MT authenticate.o -MD -MP -MF ".deps/authenticate.Tpo" -c -o authenticate.o authenticate.c; \ then mv -f ".deps/authenticate.Tpo" ".deps/authenticate.Po"; else rm -f ".deps/authenticate.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/etc/squid/squid.conf\" -I. -I. -I../include -I. -I. -I../include -I../include -m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -g -O2 -D_REENTRANT -MT cache_cf.o -MD -MP -MF ".deps/cache_cf.Tpo" -c -o cache_cf.o cache_cf.c; \ then mv -f ".deps/cache_cf.Tpo" ".deps/cache_cf.Po"; else rm -f ".deps/cache_cf.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/etc/squid/squid.conf\" -I. -I. -I../include -I. -I. -I../include -I../include -m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -g -O2 -D_REENTRANT -MT CacheDigest.o -MD -MP -MF ".deps/CacheDigest.Tpo" -c -o CacheDigest.o CacheDigest.c; \ then mv -f ".deps/CacheDigest.Tpo" ".deps/CacheDigest.Po"; else rm -f ".deps/CacheDigest.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/etc/squid/squid.conf\" -I. -I. -I../include -I. -I. -I../include -I../include -m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -g -O2 -D_REENTRANT -MT cache_manager.o -MD -MP -MF ".deps/cache_manager.Tpo" -c -o cache_manager.o cache_manager.c; \ then mv -f ".deps/cache_manager.Tpo" ".deps/cache_manager.Po"; else rm -f ".deps/cache_manager.Tpo"; exit 1; fi |
#less nohup.out
|
#tail -f nohup.out
install -p -o root -g root -m 644 debian/conffiles.squid-cgi debian/tmp/DEBIAN/conffiles install -p -o root -g root -m 644 debian/templates.merged debian/tmp/DEBIAN/templates dpkg-shlibdeps tools/cachemgr.cgi dpkg-gencontrol -isp -psquid-cgi dpkg --build debian/tmp .. dpkg-deb: building package `squid-cgi' in `../squid-cgi_2.6.5-4_i386.deb'. rm -rf debian/tmp dpkg-genchanges -b dpkg-genchanges: binary-only upload - not including any source code dpkg-buildpackage: binary only upload (no source included) q |
#ls
CONTRIBUTORS Makefile.in build doc scripts COPYING QUICKSTART cfgaux errors snmplib COPYRIGHT README config.log helpers src CREDITS RELEASENOTES.html config.status icons tools ChangeLog SPONSORS configure include INSTALL acinclude.m4 configure.in lib Makefile aclocal.m4 contrib nohup.out Makefile.am bootstrap.sh debian patch-stamp |
#ls ..
nohup.out squid_2.6.5-4.diff.gz squid squid_2.6.5-4.dsc squid-2.6.5 squid_2.6.5-4_i386.changes squid-cgi_2.6.5-4_i386.deb squid_2.6.5-4_i386.deb squid-common_2.6.5-4_all.deb squid_2.6.5.orig.tar.gz squid-icap-2.5.STABLE12-20051102.tgz squidclient_2.6.5-4_i386.deb |
#cd ..
|
#ls *deb
squid-cgi_2.6.5-4_i386.deb squid_2.6.5-4_i386.deb squid-common_2.6.5-4_all.deb squidclient_2.6.5-4_i386.deb |
#dpkg -i
dpkg: --install needs at least one package archive file argument Type dpkg --help for help about installing and deinstalling packages [*]; Use `dselect' or `aptitude' for user-friendly package management; Type dpkg -Dhelp for a list of dpkg debug flag values; Type dpkg --force-help for a list of forcing options; Type dpkg-deb --help for help about manipulating *.deb files; Type dpkg --license for copyright license and lack of warranty (GNU GPL) [*]. Options marked [*] produce a lot of output - pipe it through `less' or `more' ! |
#dpkg -i *
dpkg-deb: `nohup.out' is not a debian format archive dpkg: error processing nohup.out (--install): subprocess dpkg-deb --control returned error exit status 2 dpkg-split: error reading squid: Is a directory dpkg: error processing squid (--install): subprocess dpkg-split returned error exit status 2 dpkg-split: error reading squid-2.6.5: Is a directory dpkg: error processing squid-2.6.5 (--install): subprocess dpkg-split returned error exit status 2 Selecting previously deselected package squid-cgi. ... Errors were encountered while processing: nohup.out squid squid-2.6.5 squid-icap-2.5.STABLE12-20051102.tgz squid_2.6.5-4.diff.gz squid_2.6.5-4.dsc squid_2.6.5-4_i386.changes squid_2.6.5.orig.tar.gz squid-cgi |
#ls
nohup.out squid_2.6.5-4.diff.gz squid squid_2.6.5-4.dsc squid-2.6.5 squid_2.6.5-4_i386.changes squid-cgi_2.6.5-4_i386.deb squid_2.6.5-4_i386.deb squid-common_2.6.5-4_all.deb squid_2.6.5.orig.tar.gz squid-icap-2.5.STABLE12-20051102.tgz squidclient_2.6.5-4_i386.deb |
#dpkg -l | grep squid
ii squid 2.6.5-4 Internet Object Cache (WWW proxy cache) iU squid-cgi 2.6.5-4 Squid cache manager CGI program ii squid-common 2.6.5-4 Internet Object Cache (WWW proxy cache) - co ii squidclient 2.6.5-4 Command line URL extractor that talks to (a) |
#/etc/init.d/squid start
Starting Squid HTTP proxy: squid* Creating squid spool directory structure FATAL: Could not determine fully qualified hostname. Please set 'visible_hostname' Squid Cache (Version 2.6.STABLE5): Terminated abnormally. CPU Usage: 0.012 seconds = 0.012 user + 0.000 sys Maximum Resident Size: 0 KB Page faults with physical i/o: 0 /etc/init.d/squid: line 74: 22411 Aborted $DAEMON -z FATAL: Could not determine fully qualified hostname. Please set 'visible_hostname' Squid Cache (Version 2.6.STABLE5): Terminated abnormally. CPU Usage: 0.004 seconds = 0.000 user + 0.004 sys Maximum Resident Size: 0 KB Page faults with physical i/o: 0 /etc/init.d/squid: line 74: 22413 Aborted start-stop-daemon --quiet --start --pidfile $PIDFILE --chuid $CHUID --exec $DAEMON -- $SQUID_ARGS </dev/null failed! |
#hostname
squid |
#hostname squid.chubba.net
|
#/etc/init.d/squid start
Starting Squid HTTP proxy: squid* Creating squid spool directory structure FATAL: Could not determine fully qualified hostname. Please set 'visible_hostname' Squid Cache (Version 2.6.STABLE5): Terminated abnormally. CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys Maximum Resident Size: 0 KB Page faults with physical i/o: 0 /etc/init.d/squid: line 74: 22444 Aborted $DAEMON -z FATAL: Could not determine fully qualified hostname. Please set 'visible_hostname' Squid Cache (Version 2.6.STABLE5): Terminated abnormally. CPU Usage: 0.008 seconds = 0.008 user + 0.000 sys Maximum Resident Size: 0 KB Page faults with physical i/o: 0 /etc/init.d/squid: line 74: 22446 Aborted start-stop-daemon --quiet --start --pidfile $PIDFILE --chuid $CHUID --exec $DAEMON -- $SQUID_ARGS </dev/null failed! |
#host 192.168.16.50
bash: host: command not found |
#apt-cache search host
proftpd-mysql - Versatile, virtual-hosting FTP daemon proftpd-pgsql - Versatile, virtual-hosting FTP daemon proxycheck - checks existence of open proxy pslib1 - library to create PostScript files pstotext - Extract text from PostScript and PDF files ptunnel - Tunnel TCP connections over ICMP packets pump - BOOTP and DHCP client for automatic IP configuration puppet - centralised configuration management for networks puppetmaster - centralised configuration manangement control daemon pyroman - Firewall configuration tool for complex networks ... zope-securemailhost - secure MailHost reimplementation for zope zsh - A shell with lots of features zsh-beta - A shell with lots of features (dev tree) zsh-beta-doc - zsh beta documentation - info/HTML format zsh-dbg - A shell with lots of features (debugging symbols) zsh-doc - zsh documentation - info/HTML format zsh-static - A shell with lots of features (static link) zsh30 - A shell with lots of features zsh30-doc - zsh beta documentation - info/HTML format zsh30-static - A shell with lots of features |
#apt-get install dnsutils
Reading package lists... Done Building dependency tree... Done You might want to run `apt-get -f install' to correct these: The following packages have unmet dependencies: dnsutils: Depends: libbind9-0 but it is not going to be installed Depends: libdns22 but it is not going to be installed Depends: libisc11 but it is not going to be installed Depends: libisccfg1 but it is not going to be installed Depends: liblwres9 but it is not going to be installed Depends: bind9-host but it is not going to be installed or host squid-cgi: Depends: apache but it is not going to be installed or httpd E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). |
#apt-get -f install
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ Configuring squid-cgi ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ ³ ³ squid-cgi now uses config file for target ACL ³ ³ ³ ³ squid-cgi now checks a configuration file before connecting to the ³ ³ target host. Only allowed target will be contacted. Please add hosts you ³ ³ want to access to the file /etc/squid/cachemgr.conf, one per line in the ³ ³ form ³ ³ ³ ³ hostname:port ³ ³ ³ ³ <Ok> ³ ³ ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ |
#/etc/init.d/squid start
Starting Squid HTTP proxy: squid* Creating squid spool directory structure FATAL: Could not determine fully qualified hostname. Please set 'visible_hostname' Squid Cache (Version 2.6.STABLE5): Terminated abnormally. CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys Maximum Resident Size: 0 KB Page faults with physical i/o: 11 /etc/init.d/squid: line 74: 23823 Aborted $DAEMON -z FATAL: Could not determine fully qualified hostname. Please set 'visible_hostname' Squid Cache (Version 2.6.STABLE5): Terminated abnormally. CPU Usage: 0.004 seconds = 0.000 user + 0.004 sys Maximum Resident Size: 0 KB Page faults with physical i/o: 0 /etc/init.d/squid: line 74: 23825 Aborted start-stop-daemon --quiet --start --pidfile $PIDFILE --chuid $CHUID --exec $DAEMON -- $SQUID_ARGS </dev/null failed! |
#hostname
squid.chubba.net |
#host 192.168.16.50
bash: host: command not found |
#apt-get install dnsutils
Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: bind9-host libbind9-0 libdns22 libisc11 libisccc0 libisccfg1 liblwres9 Suggested packages: rblcheck The following NEW packages will be installed: bind9-host dnsutils libbind9-0 libdns22 libisc11 libisccc0 libisccfg1 liblwres9 0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded. ... Selecting previously deselected package dnsutils. Unpacking dnsutils (from .../dnsutils_1%3a9.3.4-2_i386.deb) ... Setting up libisc11 (9.3.4-2) ... Setting up libdns22 (9.3.4-2) ... Setting up libisccc0 (9.3.4-2) ... Setting up libisccfg1 (9.3.4-2) ... Setting up libbind9-0 (9.3.4-2) ... Setting up liblwres9 (9.3.4-2) ... Setting up bind9-host (9.3.4-2) ... Setting up dnsutils (9.3.4-2) ... |
#host 192.168.16.50
50.16.168.192.in-addr.arpa domain name pointer host50.chubba.net. |
#host 192.168.16.50
50.16.168.192.in-addr.arpa domain name pointer squid.chubba.net. |
#/etc/init.d/squid start
Starting Squid HTTP proxy: squid* Creating squid spool directory structure 2007/03/18 13:15:31| Creating Swap Directories . |
#squid -v
Squid Cache: Version 2.6.STABLE5 configure options: '--prefix=/usr' '--exec_prefix=/usr' '--bindir=/usr/sbin' '--sbindir=/usr/sbin' '--libexecdir=/usr/lib/squid' '--sysconfdir=/etc/squid' '--localstatedir=/var/spool/squid' '--datadir=/usr/share/squid' '--enable-async-io' '--with-pthreads' '--enable-storeio=ufs,aufs,coss,diskd,null' '--enable-linux-netfilter' '--enable-arp-acl' '--enable-epoll' '--enable-removal-policies=lru,heap' |
#. /etc/bash_completion
|
#apt-get --purge remove squid
squid/ squid-cgi squid-common squidclient |
#apt-get --purge remove squid squid-cgi squid-common squidclient
Reading package lists... Done Building dependency tree... Done The following packages will be REMOVED: squid* squid-cgi* squid-common* squidclient* 0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded. Need to get 0B of archives. After unpacking 7033kB disk space will be freed. Do you want to continue [Y/n]? y (Reading database ... 15924 files and directories currently installed.) Removing squid ... Stopping Squid HTTP proxy: squid. Purging configuration files for squid ... Purging startup links .. Purging logfiles .. Removing the config-file .. Remove the proxy cache in /var/spool/squid yourself! dpkg - warning: while removing squid, directory `/var/spool/squid' not empty so not removed. Removing squid-cgi ... Purging configuration files for squid-cgi ... Removing squid-common ... Removing squidclient ... |
#ls
nohup.out squid_2.6.5-4.diff.gz squid squid_2.6.5-4.dsc squid-2.6.5 squid_2.6.5-4_i386.changes squid-cgi_2.6.5-4_i386.deb squid_2.6.5-4_i386.deb squid-common_2.6.5-4_all.deb squid_2.6.5.orig.tar.gz squid-icap-2.5.STABLE12-20051102.tgz squidclient_2.6.5-4_i386.deb |
#ls *deb
squid-cgi_2.6.5-4_i386.deb squid_2.6.5-4_i386.deb squid-common_2.6.5-4_all.deb squidclient_2.6.5-4_i386.deb |
#rm *deb -i
rm: remove regular file `squid-cgi_2.6.5-4_i386.deb'? y rm: remove regular file `squid-common_2.6.5-4_all.deb'? y rm: remove regular file `squid_2.6.5-4_i386.deb'? y rm: remove regular file `squidclient_2.6.5-4_i386.deb'? y |
#ls
nohup.out squid-icap-2.5.STABLE12-20051102.tgz squid_2.6.5-4_i386.changes squid squid_2.6.5-4.diff.gz squid_2.6.5.orig.tar.gz squid-2.6.5 squid_2.6.5-4.dsc |
#rm -rf squid
|
#cp -r squid-2.6.5/ squid
|
#cp /usr/src/squid-2.HEAD-20070317/icap-2_6.patch .
|
#ls
icap-2_6.patch squid_2.6.5-4.diff.gz nohup.out squid_2.6.5-4.dsc squid squid_2.6.5-4_i386.changes squid-2.6.5 squid_2.6.5.orig.tar.gz squid-icap-2.5.STABLE12-20051102.tgz |
#rm nohup.out
|
#ls
icap-2_6.patch squid_2.6.5-4.diff.gz squid squid_2.6.5-4.dsc squid-2.6.5 squid_2.6.5-4_i386.changes squid-icap-2.5.STABLE12-20051102.tgz squid_2.6.5.orig.tar.gz |
#file icap-2_6.patch
bash: file: command not found |
#apt-cache search file
docbook-xsl-stylesheets-ko - Stylesheets for processing DocBook XML files to HTML and FO in korean. docdiff - Compares two files word by word / char by char dog - Enhanced replacement for cat dokuwiki - a standards compliant simple to use wiki dolphin - file manager for KDE focusing on usability domesday - Automatic website index generator doodle - Desktop Search Engine (client) doodled - Desktop Search Engine (daemon) doschk - SYSV and DOS filename conflicts check dosfstools - Utilities to create and check MS-DOS FAT filesystems ... espeak-data - A multi-lingual software speech synthesizer: speech data files etalk - talk client for the Emacs editor eterm - Enlightened Terminal Emulator etherboot - Bootstrapping for various network adapters ethstats - script that quickly measures network device throughput. ettercap-common - Common support files and plugins for ettercap evince - Document (postscript, pdf) viewer evolution - groupware suite with mail client and organizer evolution-common - architecture independent files for Evolution evolution-data-server-common - architecture independent files for Evolution Data Server |
#apt-cache search file | less
|
#rm nohup.out
|
#apt-get install file
Reading package lists... Done Building dependency tree... Done The following NEW packages will be installed: file 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 31.5kB of archives. After unpacking 119kB of additional disk space will be used. 0% [Connecting to ftp.debian.org] Get:1 http://ftp.debian.org etch/main file 4.17-5 [31.5kB] Fetched 31.5kB in 1s (16.7kB/s) Selecting previously deselected package file. (Reading database ... 14828 files and directories currently installed.) Unpacking file (from .../archives/file_4.17-5_i386.deb) ... Setting up file (4.17-5) ... |
#file icap-2_6.patch
icap-2_6.patch: ASCII English text |
#ls -l
total 3736 -rw-r--r-- 1 root root 212633 Mar 18 13:18 icap-2_6.patch drwxr-xr-x 15 root root 4096 Mar 18 13:17 squid drwxr-xr-x 15 root root 4096 Mar 18 11:06 squid-2.6.5 -rw-r--r-- 1 root root 1669264 Nov 3 2005 squid-icap-2.5.STABLE12-20051102.tgz -rw-r--r-- 1 root root 269681 Jan 17 01:02 squid_2.6.5-4.diff.gz -rw-r--r-- 1 root root 659 Jan 17 01:02 squid_2.6.5-4.dsc -rw-r--r-- 1 root root 1283 Mar 18 13:09 squid_2.6.5-4_i386.changes -rw-r--r-- 1 root root 1636886 Nov 6 11:32 squid_2.6.5.orig.tar.gz |
#less icap-2_6.patch
|
#apt-cache search clamav
amavisd-new - Interface between MTA and virus scanner/content filters amavisd-new-milter - Interface between sendmail-milter and amavisd-new avscan - GTK frontend for the Clam AntiVirus scanner (ClamAV) clamav - antivirus scanner for Unix clamav-base - base package for clamav, an anti-virus utility for Unix clamav-daemon - antivirus scanner daemon clamav-data - clamav data files clamav-dbg - debug symbols for clamav clamav-docs - documentation package for clamav, an anti-virus utility for Unix clamav-freshclam - downloads clamav virus databases from the Internet ... clamsmtp - virus-scanning SMTP proxy courier-filter-perl - purely Perl-based mail filter framework for the Courier MTA klamav - graphical front-end for clamav libclamav-dev - clam Antivirus library development files libclamav2 - virus scanner library php4-clamavlib - PHP ClamAV Lib - ClamAV Interface for PHP4 Scripts php5-clamavlib - PHP ClamAV Lib - ClamAV Interface for PHP5 Scripts python-clamav - Python bindings to ClamAV sylpheed-claws-clamav - Clam AntiVirus plugin for Sylpheed Claws sylpheed-claws-gtk2-clamav - Clam AntiVirus plugin for the Sylpheed-Claws GTK2 mail client |
#apt-get install clamav
Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: ca-certificates clamav-base clamav-freshclam libclamav2 libcurl3 libgmp3c2 libidn11 openssl Suggested packages: unrar lha clamav-docs Recommended packages: arj unzoo The following NEW packages will be installed: ... Setting up libgmp3c2 (4.2.1+dfsg-4) ... Setting up libclamav2 (0.90.1-2) ... Setting up clamav-base (0.90.1-2) ... Adding system user `clamav' (UID 101) ... Adding new group `clamav' (GID 103) ... Adding new user `clamav' (UID 101) with group `clamav' ... Not creating home directory `/var/lib/clamav'. Setting up clamav-freshclam (0.90.1-2) ... Starting ClamAV virus database updater: freshclam. Setting up clamav (0.90.1-2) ... |
#freshclam
|
#freshclam --help
Clam AntiVirus: freshclam 0.90.1 (C) 2002 - 2007 ClamAV Team - http://www.clamav.net/team --help -h show help --version -V print version number and exit --verbose -v be verbose --debug enable debug messages --quiet only output error messages --stdout write to stdout instead of stderr --config-file=FILE read configuration from FILE. --log=FILE -l FILE log into FILE ... --user=USER -u USER run as USER --no-dns force old non-DNS verification method --checks=#n -c #n number of checks per day, 1 <= n <= 50 --datadir=DIRECTORY download new databases into DIRECTORY --daemon-notify[=/path/clamd.conf] send RELOAD command to clamd --local-address=IP -a IP bind to IP for HTTP downloads --on-update-execute=COMMAND execute COMMAND after successful update --on-error-execute=COMMAND execute COMMAND if errors occured --on-outdated-execute=COMMAND execute COMMAND when software is outdated --list-mirrors print mirrors from mirrors.dat |
#freshclam -vv
Current working dir is /var/lib/clamav/ Max retries == 5 Waiting to lock database directory: /var/lib/clamav/ Waiting to lock database directory: /var/lib/clamav/ |
#/etc/init.d/clamd stop
bash: /etc/init.d/clamd: No such file or directory |
#/etc/init.d/clamav-freshclam start
|
#/etc/init.d/clamav-freshclam restart
Stopping ClamAV virus database updater: freshclam. Starting ClamAV virus database updater: freshclam. |
#netstat -lnp | grep fresh
|
#netstat -lnp | grep clam
|
#netstat -lnp | grep cl
|
#netstat -lnp | grep
|
#ps aux | grep clam
clamav 25856 0.0 1.3 5688 872 ? Ss 13:23 0:00 /usr/bin/freshclam -d --quiet root 25898 0.0 0.7 1552 500 ttyp0 S+ 13:23 0:00 grep clam |
#/etc/init.d/clamav-freshclam stop
Stopping ClamAV virus database updater: freshclam. |
#cl
clamscan cleanup-info clear clear_console |
#apt-cache search clamav | less
|
#apt-get install clamav-daemon
Reading package lists... Done Building dependency tree... Done Suggested packages: daemon clamav-docs The following NEW packages will be installed: clamav-daemon 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 174kB of archives. After unpacking 393kB of additional disk space will be used. Get:1 http://ftp.debian.org etch/main clamav-daemon 0.90.1-2 [174kB] Fetched 174kB in 2s (70.6kB/s) Selecting previously deselected package clamav-daemon. (Reading database ... 15544 files and directories currently installed.) Unpacking clamav-daemon (from .../clamav-daemon_0.90.1-2_i386.deb) ... Setting up clamav-daemon (0.90.1-2) ... Starting ClamAV daemon: clamd Running as user clamav (UID 101, GID 103) . |
#ps aux | grep cla
clamav 26276 22.0 36.6 29472 24084 ? Ss 13:24 0:02 /usr/sbin/clamd root 26289 0.0 0.7 1548 496 ttyp0 S+ 13:24 0:00 grep cla |
#freshclam
ClamAV update process started at Sun Mar 18 13:24:44 2007 main.cvd is up to date (version: 42, sigs: 83951, f-level: 10, builder: tkojm) daily.inc is up to date (version: 2863, sigs: 16094, f-level: 14, builder: ccordes) |
#/etc/init.d/clamav-daemon restart
Stopping ClamAV daemon: clamd. Starting ClamAV daemon: clamd Running as user clamav (UID 101, GID 103) . |
#netstat -lnp | grep cl
unix 2 [ ACC ] STREAM LISTENING 80193 26341/clamd /var/run/clamav/clamd.ctl |
#dpkg -l | grep libclam
ii libclamav2 0.90.1-2 virus scanner library |
#pat
patch pathchk |
#patch -p0 < icap-2_6.patch
patching file squid/configure.in Hunk #2 succeeded at 2357 (offset -2 lines). Hunk #3 succeeded at 2463 (offset -83 lines). can't find file to patch at input line 57 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |Index: squid/errors/list |diff -u squid/errors/list:1.4 squid/errors/list:1.4.10.1 |--- squid/errors/list:1.4 Fri Apr 28 04:10:45 2006 |+++ squid/errors/list Wed May 17 10:57:59 2006 -------------------------- File to patch: |
#passwd
Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully |
Время первой команды журнала | 15:02:26 2007- 3-18 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:26:52 2007- 3-18 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 14.85 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 3.96 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.41 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 4.13 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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