/l3/users/clint/clamav/root :1 :2 :3 :4 |
|
#apt-get install openssh-server
Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: libedit2 libkrb53 openssh-client Suggested packages: krb5-doc krb5-user ssh-askpass xbase-clients rssh molly-guard The following NEW packages will be installed: libedit2 libkrb53 openssh-client openssh-server 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. Need to get 1301kB of archives. ... Unpacking openssh-client (from .../openssh-client_1%3a4.3p2-9_i386.deb) ... Selecting previously deselected package openssh-server. Unpacking openssh-server (from .../openssh-server_1%3a4.3p2-9_i386.deb) ... Setting up libkrb53 (1.4.4-7) ... Setting up libedit2 (2.9.cvs.20050518-2.2) ... Setting up openssh-client (4.3p2-9) ... Setting up openssh-server (4.3p2-9) ... Creating SSH2 RSA key; this may take some time ... Creating SSH2 DSA key; this may take some time ... Restarting OpenBSD Secure Shell server: sshd. |
#apt-get install openssh-server
Reading package lists... Done Building dependency tree... 50% Building dependency tree... Done openssh-server is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
#apt-cache search perl
|
##
|
#cd /usr/src/
|
#ls
install squid-2.HEAD-20070317.tar.bz2 |
#tar xvjf squid-2.HEAD-20070317.tar.bz2
tar: bzip2: Cannot exec: No such file or directory tar: Error is not recoverable: exiting now tar: Child returned status 2 tar: Error exit delayed from previous errors |
#apt-get install bzip2
Reading package lists... Done Building dependency tree... Done The following NEW packages will be installed: bzip2 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 269kB of archives. After unpacking 446kB of additional disk space will be used. Get:1 http://ftp.debian.org etch/main bzip2 1.0.3-6 [269kB] Fetched 269kB in 2s (92.1kB/s) Selecting previously deselected package bzip2. (Reading database ... 9673 files and directories currently installed.) Unpacking bzip2 (from .../bzip2_1.0.3-6_i386.deb) ... Setting up bzip2 (1.0.3-6) ... |
#tar xvjf squid-2.HEAD-20070317.tar.bz2
squid-2.HEAD-20070317/errors/Japanese/ERR_FTP_FORBIDDEN squid-2.HEAD-20070317/errors/Japanese/ERR_FTP_FAILURE squid-2.HEAD-20070317/errors/Japanese/ERR_FTP_DISABLED squid-2.HEAD-20070317/errors/Japanese/ERR_FORWARDING_DENIED squid-2.HEAD-20070317/errors/Japanese/ERR_DNS_FAIL squid-2.HEAD-20070317/errors/Japanese/ERR_CONNECT_FAIL squid-2.HEAD-20070317/errors/Japanese/ERR_CANNOT_FORWARD squid-2.HEAD-20070317/errors/Japanese/ERR_CACHE_MGR_ACCESS_DENIED squid-2.HEAD-20070317/errors/Japanese/ERR_CACHE_ACCESS_DENIED squid-2.HEAD-20070317/errors/Japanese/ERR_ZERO_SIZE_OBJECT ... squid-2.HEAD-20070317/errors/Romanian squid-2.HEAD-20070317/errors/Romanian/ERR_ACCESS_DENIED squid-2.HEAD-20070317/errors/Romanian/ERR_WRITE_ERROR squid-2.HEAD-20070317/errors/Romanian/ERR_URN_RESOLVE squid-2.HEAD-20070317/errors/Romanian/ERR_UNSUP_REQ squid-2.HEAD-20070317/errors/Romanian/ERR_TOO_BIG squid-2.HEAD-20070317/errors/Romanian/ERR_SOCKET_FAILURE squid-2.HEAD-20070317/errors/Romanian/ERR_SHUTTING_DOWN squid-2.HEAD-20070317/errors/Romanian/ERR_READ_TIMEOUT squid-2.HEAD-20070317/errors/Romanian/ERR_READ_ERROR |
#cd squid-2.HEAD-20070317
squid-2.HEAD-20070317/ squid-2.HEAD-20070317.tar.bz2 |
#cd squid-2.HEAD-20070317
|
#ls
CONTRIBUTORS INSTALL RELEASENOTES.html cfgaux errors scripts COPYING Makefile.am SPONSORS configure helpers snmplib COPYRIGHT Makefile.in acinclude.m4 configure.in icons src CREDITS QUICKSTART aclocal.m4 contrib include tools ChangeLog README bootstrap.sh doc lib |
#patch
|
#patch -p0 < ic
icap-2_6.patch icons/ |
#patch -p0 < icap-2_6.patch
File to patch: Skip this patch? [y] Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 2509 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |Index: squid/src/enums.h |diff -u squid/src/enums.h:1.60 squid/src/enums.h:1.45.4.8 ... can't find file to patch at input line 6637 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |Index: squid/src/stat.c |diff -u squid/src/stat.c:1.40 squid/src/stat.c:1.26.8.12 |--- squid/src/stat.c:1.40 Sun Feb 25 03:54:37 2007 |+++ squid/src/stat.c Tue Feb 27 13:57:42 2007 -------------------------- File to patch: |
#cd ..
|
#cd
|
#ls
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 |
#patch -p0 < /usr/src/squid-2.HEAD-20070317/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 ... Hunk #6 succeeded at 1371 (offset -1 lines). Hunk #7 FAILED at 1386. Hunk #8 succeeded at 2051 (offset -7 lines). Hunk #9 succeeded at 2161 (offset -7 lines). 2 out of 9 hunks FAILED -- saving rejects to file squid/src/structs.h.rej patching file squid/src/typedefs.h patching file squid/src/url.c Hunk #1 succeeded at 103 (offset -3 lines). Hunk #2 succeeded at 220 (offset -3 lines). Hunk #3 succeeded at 247 (offset -3 lines). |
#cd squid
|
#./bootstrap.sh
automake : autoconfg: Bootstrapping ./bootstrap.sh: line 48: aclocal: command not found aclocal failed Autotool bootstrapping failed. You will need to investigate and correct before you can develop on this source tree |
#apt-cache search aclocal
|
#apt-cache seach autoconf
E: Invalid operation seach |
#apt-cache search autoconf
autoconf - automatic configure script builder autoconf-archive - The Autoconf Macro Archive autoconf2.13 - automatic configure script builder (obsolete version) autoproject - create a skeleton source package for a new program autotools-dev - Update infrastructure for config.{guess,sub} files avahi-dnsconfd - Avahi DNS configuration tool cernlib-base - script to determine Cernlib library dependencies dibbler-client - portable DHCPv6 client dibbler-server - portable DHCPv6 server ftp-proxy - application level proxy for the FTP protocol ... libneon25 - An HTTP and WebDAV client library libneon26 - An HTTP and WebDAV client library libneon26-gnutls - An HTTP and WebDAV client library (GnuTLS enabled) m4 - a macro processing language mdetect - mouse device autodetection tool pkg-config - manage compile and link flags for libraries radvd - Router Advertisement Daemon tz-brasil - timezone autoconfiguration for Brazil xdebconfigurator - A script used with debconf to autoconfigure xserver-xorg yardradius - YARD Radius Auth/Acct Server |
#apt-cache search autoconf | less
|
#apt-get install autoconf
Reading package lists... Done Building dependency tree... Done autoconf is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
#patch -p0 < /usr/src/squid-2.HEAD-20070317/icap-2_6.patch
can't find file to patch at input line 9 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |This patch is generated from the icap-2_6 branch of HEAD in squid |Tue Mar 6 01:17:22 2007 GMT |See http://devel.squid-cache.org/ | |Index: squid/configure.in |diff -u squid/configure.in:1.175 squid/configure.in:1.87.4.16 |--- squid/configure.in:1.175 Sat Mar 3 10:54:22 2007 |+++ squid/configure.in Mon Mar 5 14:00:30 2007 -------------------------- File to patch: Skip this patch? [y] |
#./bootstrap.sh
automake : autoconfg: Bootstrapping ./bootstrap.sh: line 48: aclocal: command not found aclocal failed Autotool bootstrapping failed. You will need to investigate and correct before you can develop on this source tree |
#apt-cahe search automake
bash: apt-cahe: command not found |
#apt-cache search automake
autoconf - automatic configure script builder automake - A tool for generating GNU Standards-compliant Makefiles automake1.4 - A tool for generating GNU Standards-compliant Makefiles automake1.7 - A tool for generating GNU Standards-compliant Makefiles automake1.8 - A tool for generating GNU Standards-compliant Makefiles automake1.9 - A tool for generating GNU Standards-compliant Makefiles autoproject - create a skeleton source package for a new program autotools-dev - Update infrastructure for config.{guess,sub} files ftjam - FreeType version of Jam, a replacement for make gnome-common - common scripts and macros to develop with GNOME or GNOME 2.0 jam - Software-build tool, replacement for make kapptemplate - creates a framework to develop a KDE application libticables3-dev - support library for Texas Instruments link cables [development files] libticalcs4-dev - provides functions to communicate with TI calculators [development files] pkg-config - manage compile and link flags for libraries qt3-designer - Qt3 Designer smake - Schily make. Portable, extensible make unsermake - A tool for generating Makefiles, a replacement for automake |
#apt-get install automake
Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: autotools-dev Suggested packages: automake1.10-doc The following NEW packages will be installed: automake autotools-dev 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 430kB of archives. ... Get:1 http://ftp.debian.org etch/main autotools-dev 20060702.1 [60.6kB] Get:2 http://ftp.debian.org etch/main automake 1:1.10+nogfdl-1 [369kB] Fetched 430kB in 3s (132kB/s) Selecting previously deselected package autotools-dev. (Reading database ... 9706 files and directories currently installed.) Unpacking autotools-dev (from .../autotools-dev_20060702.1_all.deb) ... Selecting previously deselected package automake. Unpacking automake (from .../automake_1%3a1.10+nogfdl-1_all.deb) ... Setting up autotools-dev (20060702.1) ... Setting up automake (1.10+nogfdl-1) ... |
#./bootstrap.sh
automake : autoconfg: Bootstrapping Autotool bootstrapping complete. |
#http://devel.squid-cache.org/cgi-bin/diff2/icap-2_6.patch
|
#vim debian/rules
138a139 > --enable-icap-support |
#apt-get install fakeroot
Reading package lists... Done Building dependency tree... Done The following NEW packages will be installed: fakeroot 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 96.2kB of archives. After unpacking 311kB of additional disk space will be used. Get:1 http://ftp.debian.org etch/main fakeroot 1.5.10 [96.2kB] Fetched 96.2kB in 1s (49.2kB/s) Selecting previously deselected package fakeroot. (Reading database ... 9849 files and directories currently installed.) Unpacking fakeroot (from .../fakeroot_1.5.10_i386.deb) ... Setting up fakeroot (1.5.10) ... |
#dpkg-buildpackage -rfakeroot -uc -b
dpkg-buildpackage: source package is squid dpkg-buildpackage: source version is 2.6.5-4 dpkg-buildpackage: source changed by Luigi Gangitano <luigi@debian.org> dpkg-buildpackage: host architecture i386 dpkg-buildpackage: source version without epoch 2.6.5-4 dpkg-checkbuilddeps: Unmet build dependencies: libldap2-dev libpam0g-dev sharutils dpatch (>= 2.0.9) po-debconf libdb4.4-dev dpkg-buildpackage: Build dependencies/conflicts unsatisfied; aborting. dpkg-buildpackage: (Use -d flag to override.) |
#dpkg-buildpackage -rfakeroot -uc -b
s%@DEFAULT_MIB_PATH@%/usr/share/squid/mib.txt%g;\ s%@DEFAULT_ERROR_DIR@%/usr/share/squid/errors/English%g;\ s%@DEFAULT_PREFIX@%/usr%g;\ s%@DEFAULT_HOSTS@%/etc/hosts%g;\ s%@[V]ERSION@%2.6.STABLE5%g;"\ < ./cf.data.pre >cf.data gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/etc/squid/squid.conf\" -I. -I../include -I. -I. -I../include -I../include -Wall -g -O2 -D_REENTRANT -MT cf_gen.o -MD -MP -MF .deps/cf_gen.Tpo -c -o cf_gen.o cf_gen.c mv -f .deps/cf_gen.Tpo .deps/cf_gen.Po gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/etc/squid/squid.conf\" -I. -I../include -I. -I. -I../include -I../include -Wall -g -O2 -D_REENTRANT -MT debug.o -MD -MP -MF .deps/debug.Tpo -c -o debug.o debug.c mv -f .deps/debug.Tpo .deps/debug.Po ... client_side.c:5093: error: 'clientHttpRequest' has no member named 'icap_reqmod' make[4]: *** [client_side.o] Error 1 make[4]: Leaving directory `/root/squid/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/root/squid/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/root/squid/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/squid' make: *** [build] Error 2 |
#apt-get install w3m
Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: libgc1c2 libgpmg1 Suggested packages: gpm w3m-img mime-support menu w3m-el migemo Recommended packages: ca-certificates The following NEW packages will be installed: libgc1c2 libgpmg1 w3m ... Selecting previously deselected package libgc1c2. (Reading database ... 12702 files and directories currently installed.) Unpacking libgc1c2 (from .../libgc1c2_1%3a6.8-1_i386.deb) ... Selecting previously deselected package libgpmg1. Unpacking libgpmg1 (from .../libgpmg1_1.19.6-25_i386.deb) ... Selecting previously deselected package w3m. Unpacking w3m (from .../w3m_0.5.1-5.1_i386.deb) ... Setting up libgc1c2 (6.8-1) ... Setting up libgpmg1 (1.19.6-25) ... Setting up w3m (0.5.1-5.1) ... |
#w3m http://sourceforge.net/projects/c-icap
Project Admins: chtsanti * Tasks Operating System:mAll POSIX (Linux/BSD/UNIX-like OSes) + CVS License: GNU Gener l Public License (GPL) Category: WWW/HTTP, Networking + Statistics * New patch for libclamav-1.0.40 and newer 2007-03-04 Need Support?:pSeestheesupport inst2006-06-12rovided by this project * New Version (030606) re2006-06-06 ... * Bugs : (3 op n / 3 total) ProjBug TrackingcSystemi + Statistics Operating System: All POSIX (Linux/BSD/UNIX-like OSes) * New patch for libclamav-1.0.40 and newer 2007-03-04 * Bug fixes for 030606 release se2006-06-12 <=UpDn Viewing <SourceForge.net: c-icap> Category: WWW/HTTP, Networking Need Support?: See the support instructions provided by this project Latest News |
#--12:28:24-- http://downloads.sourceforge.net/c-icap/squid-icap-2.5.STABLE12-20051102.patch.gz?modtime=1131045228
=> `squid-icap-2.5.STABLE12-20051102.patch.gz?modtime=1131045228' Resolving downloads.sourceforge.net... 66.35.250.203 Connecting to downloads.sourceforge.net|66.35.250.203|:80... connected. HTTP request sent, awaiting response... 302 Found Location: http://internap.dl.sourceforge.net/sourceforge/c-icap/squid-icap-2.5.STABLE12-20051102.patch.gz [following] --12:28:24-- http://internap.dl.sourceforge.net/sourceforge/c-icap/squid-icap-2.5.STABLE12-20051102.patch.gz => `squid-icap-2.5.STABLE12-20051102.patch.gz' Resolving internap.dl.sourceforge.net... 64.74.219.5 Connecting to internap.dl.sourceforge.net|64.74.219.5|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 46,332 (45K) [text/plain] 100%[====================================>] 46,332 46.91K/s 12:28:27 (46.80 KB/s) - `squid-icap-2.5.STABLE12-20051102.patch.gz' saved [46332/46332] [1]+ Done wget http://downloads.sourceforge.net/c-icap/squid-icap-2.5.STABLE12-20051102.patch.gz?modtime=1131045228 |
#ls
CONTRIBUTORS acinclude.m4 errors COPYING aclocal.m4 helpers COPYRIGHT autom4te.cache icons CREDITS bootstrap.sh include ChangeLog cfgaux lib INSTALL config.log patch-stamp Makefile config.status scripts Makefile.am configure snmplib Makefile.in configure.in squid-icap-2.5.STABLE12-20051102.patch.gz QUICKSTART configure.in.orig src README contrib tools RELEASENOTES.html debian SPONSORS doc |
#gunzip squid-icap-2.5.STABLE12-20051102.patch.gz
|
#path -p0 < squid-icap-2.5.STABLE12-20051102.patch
bash: path: command not found |
#patch -p0 < squid-icap-2.5.STABLE12-20051102.patch
can't find file to patch at input line 12 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |Patch file generated Τετ Νοέ 2 20:23:11 EET 2005 from |CVS branch icap-2_5 |CVS base branch s2_5 |CVS repository: chtsanti@cvs.devel.squid-cache.org:/cvsroot/squid |CVS module: squid | |cvs -q rdiff -u -kk -r Z-icap-2_5_merge_s2_5 -r icap-2_5 squid |Index: squid/acconfig.h |diff -u squid/acconfig.h:1.13.2.4 squid/acconfig.h:1.13.2.3.6.2 |--- squid/acconfig.h:1.13.2.4 Wed Jun 9 07:05:51 2004 |+++ squid/acconfig.h Wed Aug 4 12:47:53 2004 -------------------------- File to patch: |
#cd ..
|
#tar xvzfC squid-icap-2.5.STABLE12-20051102.tgz /usr/src/
squid-icap-2.5.STABLE12/errors/Italian/ERR_DNS_FAIL squid-icap-2.5.STABLE12/errors/Italian/ERR_CONNECT_FAIL squid-icap-2.5.STABLE12/errors/Italian/ERR_CANNOT_FORWARD squid-icap-2.5.STABLE12/errors/Italian/ERR_CACHE_MGR_ACCESS_DENIED squid-icap-2.5.STABLE12/errors/Italian/ERR_CACHE_ACCESS_DENIED squid-icap-2.5.STABLE12/errors/Italian/ERR_ZERO_SIZE_OBJECT squid-icap-2.5.STABLE12/errors/Italian/README squid-icap-2.5.STABLE12/errors/Italian/ERR_ICAP_FAILURE squid-icap-2.5.STABLE12/errors/Japanese/ squid-icap-2.5.STABLE12/errors/Japanese/ERR_ACCESS_DENIED ... squid-icap-2.5.STABLE12/errors/Polish/ERR_ICAP_FAILURE squid-icap-2.5.STABLE12/errors/Portuguese/ squid-icap-2.5.STABLE12/errors/Portuguese/ERR_ACCESS_DENIED squid-icap-2.5.STABLE12/errors/Portuguese/ERR_WRITE_ERROR squid-icap-2.5.STABLE12/errors/Portuguese/ERR_URN_RESOLVE squid-icap-2.5.STABLE12/errors/Portuguese/ERR_UNSUP_REQ squid-icap-2.5.STABLE12/errors/Portuguese/ERR_TOO_BIG squid-icap-2.5.STABLE12/errors/Portuguese/ERR_SOCKET_FAILURE squid-icap-2.5.STABLE12/errors/Portuguese/ERR_SHUTTING_DOWN squid-icap-2.5.STABLE12/errors/Portuguese/ERR_READ_TIMEOUT |
#cd /usr/src/squid-icap-2.5.STABLE12/
|
#./bootstrap.sh
WARNING: Cannot find automake version 1.5 Trying automake (GNU automake) 1.10 WARNING: Cannot find autoconf version 2.13 Trying autoconf (GNU Autoconf) 2.61 acinclude.m4:10: warning: underquoted definition of AC_CHECK_SIZEOF_SYSTYPE acinclude.m4:10: run info '(automake)Extending aclocal' acinclude.m4:10: or see http://sources.redhat.com/automake/automake.html#Extending-aclocal configure.in:1546: warning: AC_CHECK_TYPE: assuming `u_short' is not a type ../../lib/autoconf/types.m4:232: AC_CHECK_TYPE is expanded from... configure.in:1546: the top level ... configure.in:1546: warning: AC_CHECK_TYPE: assuming `u_short' is not a type ../../lib/autoconf/types.m4:232: AC_CHECK_TYPE is expanded from... configure.in:1546: the top level configure.in:1546: warning: AC_CHECK_TYPE: assuming `u_short' is not a type ../../lib/autoconf/types.m4:232: AC_CHECK_TYPE is expanded from... configure.in:1546: the top level configure.in:1546: warning: AC_CHECK_TYPE: assuming `u_short' is not a type ../../lib/autoconf/types.m4:232: AC_CHECK_TYPE is expanded from... configure.in:1546: the top level Autotool bootstrapping complete. |
#./configure --enable-icap-support
checking for working alloca.h... no checking for alloca... yes checking for socklen_t... no checking for mtyp_t... no checking for main in -lnsl... yes checking for main in -lsocket... no checking for unix domain sockets... no checking for main in -lgnumalloc... no checking for main in -lmalloc... no checking for main in -lbsd... no ... config.status: creating helpers/ntlm_auth/SMB/smbval/Makefile config.status: creating helpers/ntlm_auth/winbind/Makefile 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/unix_group/Makefile config.status: creating helpers/external_acl/wbinfo_group/Makefile config.status: creating helpers/external_acl/winbind_group/Makefile config.status: creating include/autoconf.h config.status: executing depfiles commands |
#make
Making all in lib make[1]: Entering directory `/usr/src/squid-icap-2.5.STABLE12/lib' gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../include -g -O2 -Wall -MT Array.o -MD -MP -MF .deps/Array.Tpo -c -o Array.o Array.c In file included from /usr/include/string.h:33, from Array.c:50: /usr/lib/gcc/i486-linux-gnu/4.1.2/include/stddef.h:214: error: duplicate 'unsigned' /usr/lib/gcc/i486-linux-gnu/4.1.2/include/stddef.h:214: error: two or more data types in declaration specifiers In file included from /usr/include/sys/time.h:30, from ../include/util.h:44, from Array.c:52: ... /usr/include/sys/types.h:193: error: two or more data types in declaration specifiers In file included from /usr/include/sys/socket.h:35, from /usr/include/netinet/in.h:24, from /usr/include/netdb.h:28, from ../include/util.h:51, from Array.c:52: /usr/include/bits/socket.h:36: error: two or more data types in declaration specifiers make[1]: *** [Array.o] Error 1 make[1]: Leaving directory `/usr/src/squid-icap-2.5.STABLE12/lib' make: *** [all-recursive] Error 1 |
#cd ..
|
#rm -rf squid-icap-2.5.STABLE12/
|
#cd -
bash: cd: /usr/src/squid-icap-2.5.STABLE12: No such file or directory |
#cd
|
#ls
squid squid-icap-2.5.STABLE12-20051102.tgz squid_2.6.5-4.dsc squid-2.6.5 squid_2.6.5-4.diff.gz squid_2.6.5.orig.tar.gz |
#apt-get install vim
Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: vim-runtime Suggested packages: ctags vim-doc vim-scripts The following NEW packages will be installed: vim vim-runtime 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 7176kB of archives. ... Get:1 http://ftp.debian.org etch/main vim-runtime 1:7.0-122+1 [6431kB] Get:2 http://ftp.debian.org etch/main vim 1:7.0-122+1 [745kB] Fetched 7176kB in 17s (411kB/s) Selecting previously deselected package vim-runtime. (Reading database ... 12785 files and directories currently installed.) Unpacking vim-runtime (from .../vim-runtime_1%3a7.0-122+1_all.deb) ... Selecting previously deselected package vim. Unpacking vim (from .../vim_1%3a7.0-122+1_i386.deb) ... Setting up vim-runtime (7.0-122+1) ... Setting up vim (7.0-122+1) ... |
#vim /usr/src/
|
#vim /usr/src/squid-2.HEAD-20070317/icap-2_6.patch
|
#ls
squid squid-icap-2.5.STABLE12-20051102.tgz squid_2.6.5-4.dsc squid-2.6.5 squid_2.6.5-4.diff.gz squid_2.6.5.orig.tar.gz |
#patch -p0 < /usr/src/squid-2.HEAD-20070317/icap-2_6.patch
patching file squid/configure.in Hunk #1 succeeded at 541 (offset 11 lines). Hunk #2 FAILED at 2370. Hunk #3 succeeded at 2486 with fuzz 1 (offset -60 lines). 1 out of 3 hunks FAILED -- saving rejects to file squid/configure.in.rej 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 ... The next patch would create the file squid/errors/Romanian/ERR_ICAP_FAILURE, which already exists! Assume -R? [n] yn patching file squid/errors/Romanian/ERR_ICAP_FAILURE The next patch would create the file squid/errors/Russian-1251/ERR_ICAP_FAILURE, which already exists! Assume -R? [n] n Apply anyway? [n] n Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file squid/errors/Russian-1251/ERR_ICAP_FAILURE.rej The next patch would create the file squid/errors/Russian-koi8-r/ERR_ICAP_FAILURE, which already exists! Assume -R? [n] |
#ls
squid squid-icap-2.5.STABLE12-20051102.tgz squid_2.6.5-4.dsc squid-2.6.5 squid_2.6.5-4.diff.gz squid_2.6.5.orig.tar.gz |
#ls -l
total 3520 drwxr-xr-x 16 root root 4096 Mar 18 12:37 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 1636886 Nov 6 11:32 squid_2.6.5.orig.tar.gz |
#rm -rf squid
|
#cp -r squid-2.6.5 squid
|
#patch -p0 < /usr/src/squid-2.HEAD-20070317/icap-2_6.patch
|
#patch -p0 < /usr/src/squid-2.HEAD-20070317/icap-2_6.
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 ... Hunk #6 succeeded at 1371 (offset -1 lines). Hunk #7 FAILED at 1386. Hunk #8 succeeded at 2051 (offset -7 lines). Hunk #9 succeeded at 2161 (offset -7 lines). 2 out of 9 hunks FAILED -- saving rejects to file squid/src/structs.h.rej patching file squid/src/typedefs.h patching file squid/src/url.c Hunk #1 succeeded at 103 (offset -3 lines). Hunk #2 succeeded at 220 (offset -3 lines). Hunk #3 succeeded at 247 (offset -3 lines). |
#cd squid
|
#ls
CONTRIBUTORS Makefile.in bootstrap.sh doc snmplib COPYING QUICKSTART cfgaux errors src COPYRIGHT README configure helpers tools CREDITS RELEASENOTES.html configure.in icons ChangeLog SPONSORS configure.in.orig include INSTALL acinclude.m4 contrib lib Makefile.am aclocal.m4 debian scripts |
#./bootstrap.sh
automake : autoconfg: Bootstrapping Autotool bootstrapping complete. |
#./configure --enable-icap-support
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 |
#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 |
#less RE
|
#less README
|
#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 |
#less INSTALL
|
#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 |
#make
gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../include -Wall -g -O2 -MT rfc1123.o -MD -MP -MF .deps/rfc1123.Tpo -c -o rfc1123.o rfc1123.c mv -f .deps/rfc1123.Tpo .deps/rfc1123.Po gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../include -Wall -g -O2 -MT rfc1738.o -MD -MP -MF .deps/rfc1738.Tpo -c -o rfc1738.o rfc1738.c mv -f .deps/rfc1738.Tpo .deps/rfc1738.Po gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../include -Wall -g -O2 -MT rfc2617.o -MD -MP -MF .deps/rfc2617.Tpo -c -o rfc2617.o rfc2617.c mv -f .deps/rfc2617.Tpo .deps/rfc2617.Po gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../include -Wall -g -O2 -MT safe_inet_addr.o -MD -MP -MF .deps/safe_inet_addr.Tpo -c -o safe_inet_addr.o safe_inet_addr.c mv -f .deps/safe_inet_addr.Tpo .deps/safe_inet_addr.Po gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../include -Wall -g -O2 -MT splay.o -MD -MP -MF .deps/splay.Tpo -c -o splay.o splay.c mv -f .deps/splay.Tpo .deps/splay.Po ... client_side.c:5080: error: 'clientHttpRequest' has no member named 'icap_reqmod' client_side.c:5082: error: 'clientHttpRequest' has no member named 'icap_reqmod' client_side.c:5093: error: 'clientHttpRequest' has no member named 'icap_reqmod' make[3]: *** [client_side.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 |
#make
|
#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 |
#wget http://marc.info/?l=squid-dev&m=109024884004566&q=p3
[1] 29830 [2] 29831 [2]+ Done m=109024884004566 |
#--12:45:01-- http://marc.info/?l=squid-dev
=> `index.html?l=squid-dev' Resolving marc.info... 66.92.20.25 Connecting to marc.info|66.92.20.25|:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] [ <=> ] 32,890 46.65K/s 12:45:06 (46.45 KB/s) - `index.html?l=squid-dev' saved [32890] [1]+ Done wget http://marc.info/?l=squid-dev |
#ls
CONTRIBUTORS QUICKSTART config.log helpers COPYING README config.status icons COPYRIGHT RELEASENOTES.html configure include CREDITS SPONSORS configure.in index.html?l=squid-dev ChangeLog acinclude.m4 configure.in.orig lib INSTALL aclocal.m4 contrib scripts Makefile autom4te.cache debian snmplib Makefile.am bootstrap.sh doc src Makefile.in cfgaux errors tools |
#cd ..
|
#rm -rf squid
|
#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 |
#cp squid-2.6.5 squid -r
|
#ls -l
total 3520 drwxr-xr-x 15 root root 4096 Mar 18 12:56 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 1636886 Nov 6 11:32 squid_2.6.5.orig.tar.gz |
#patch -p0 < /usr/src/squid-2.HEAD-20070317/icap-2_6.patch
|
#patch -p0 < /usr/src/squid-2.HEAD-20070317/icap-2_6.
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 ... Hunk #6 succeeded at 1371 (offset -1 lines). Hunk #7 FAILED at 1386. Hunk #8 succeeded at 2051 (offset -7 lines). Hunk #9 succeeded at 2161 (offset -7 lines). 2 out of 9 hunks FAILED -- saving rejects to file squid/src/structs.h.rej patching file squid/src/typedefs.h patching file squid/src/url.c Hunk #1 succeeded at 103 (offset -3 lines). Hunk #2 succeeded at 220 (offset -3 lines). Hunk #3 succeeded at 247 (offset -3 lines). |
#squid/bootstrap.sh
automake : autoconfg: Bootstrapping aclocal: `configure.ac' or `configure.in' is required aclocal failed Autotool bootstrapping failed. You will need to investigate and correct before you can develop on this source tree |
#cd squid/bootstrap.sh
bash: cd: squid/bootstrap.sh: Not a directory |
#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 |
#cd squid
|
#./bootstrap.sh
automake : autoconfg: Bootstrapping Autotool bootstrapping complete. |
#ls
|
#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 |
#grep -r icap . | less
|
#ls doc/
Makefile.am Makefile.in cachemgr.cgi.8.in debug-sections.txt squid.8.in |
#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 |
Время первой команды журнала | 13:14:03 2007- 3-18 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:02:26 2007- 3-18 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 17.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 2.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.19 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.40 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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