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

Содержание

Журнал

Суббота (02/27/10)

/dev/pts/0
09:55:04
#mv linux-2.6.32
linux-2.6.32.1.tar.bz2           linux-2.6.32-imq-test2.diff
linux-2.6.32.3/                  linux-2.6.32-imq-test2.diff.1
linux-2.6.32.3.tar.bz2           linux-2.6.32-imq-test2.diff.bz2
09:55:04
#mv linux-2.6.32.3
linux-2.6.32.3/         linux-2.6.32.3.tar.bz2
09:55:04
#mv linux-2.6.32.3{,.was}

/dev/pts/2
09:56:10
#cd iptables-1.4.4/

09:56:13
#cd iptables-1.4.4/
                            patch -p1 --dry-run <../iptables-1.4.4-imq.diff
                        m': wget http://www.linuximq.net/patchs/iptables-1.4.4-imq.diff
                       i': wget http://www.linuximq.net/patchs/iptables-1.4.4-imq.diff
.diffrse-i-search)`4.4-': wget http://www.linuximq.net/patchs/iptables-1.4.4-imq.
09:56:35
#cd ..

09:56:51
#rm -R iptables-1.4.4

09:56:57
#tar jxvf iptables-1.4.4.tar.bz2
iptables-1.4.4/
iptables-1.4.4/ip6tables.8.in
iptables-1.4.4/ip6tables-restore.c
iptables-1.4.4/xtables.c
iptables-1.4.4/iptables-multi.c
iptables-1.4.4/ip6tables-restore.8
iptables-1.4.4/ip6tables-save.c
iptables-1.4.4/ip6tables-multi.h
iptables-1.4.4/iptables-apply.8
iptables-1.4.4/iptables-multi.h
...
iptables-1.4.4/release.sh
iptables-1.4.4/iptables-save.c
iptables-1.4.4/iptables.8.in
iptables-1.4.4/ip6tables-save.8
iptables-1.4.4/configure
iptables-1.4.4/missing
iptables-1.4.4/config.sub
iptables-1.4.4/.gitignore
iptables-1.4.4/iptables-restore.c
iptables-1.4.4/ip6tables-multi.c
09:57:04
#cd iptables-1.4.4/

09:57:10
#ls
aclocal.m4    INCOMPATIBILITIES       iptables-apply         libipq
autogen.sh    INSTALL                 iptables-apply.8       libiptc
COMMIT_NOTES  install-sh              iptables.c             libiptc.pc.in
compile       ip6tables.8.in          iptables-multi.c       ltmain.sh
config.guess  ip6tables.c             iptables-multi.h       m4
config.h.in   ip6tables-multi.c       iptables-restore.8     Makefile.am
config.sub    ip6tables-multi.h       iptables-restore.c     Makefile.in
configure     ip6tables-restore.8     iptables-save.8        missing
configure.ac  ip6tables-restore.c     iptables-save.c        release.sh
COPYING       ip6tables-save.8        iptables-standalone.c  xtables.c
depcomp       ip6tables-save.c        iptables-xml.8         xtables.pc.in
extensions    ip6tables-standalone.c  iptables-xml.c
include       iptables.8.in           iptables.xslt
09:57:20
#patch -p1 -b <../iptables-1.4.4-imq.diff
patching file extensions/libxt_IMQ.c
patching file include/linux/netfilter/xt_IMQ.h
09:57:29
#./configure --help
`configure' configures iptables 1.4.4 to adapt to many kinds of systems.
Usage: ./configure [OPTION]... [VAR=VALUE]...
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.
Defaults for the options are specified in brackets.
Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
...
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CPP         C preprocessor
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
09:57:38
#./configure --prefix=/ --with-kernel=/usr/src/linux-2.6.3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
...
config.status: creating extensions/GNUmakefile
config.status: creating include/Makefile
config.status: creating libipq/Makefile
config.status: creating include/xtables.h
config.status: creating include/iptables/internal.h
config.status: creating libiptc.pc
config.status: creating xtables.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
09:57:57
#make
make  all-recursive
make[1]: Entering directory `/var/downloads/iptables-1.4.4'
Making all in extensions
make[2]: Entering directory `/var/downloads/iptables-1.4.4/extensions'
  GEN      initext4.c
  CC       initext4.o
  AR       libext4.a
  GEN      initext6.c
  CC       initext6.o
  AR       libext6.a
...
In file included from /usr/include/asm/types.h:4,
                 from ./include/linux/types.h:6,
                 from ./include/libiptc/libiptc.h:5,
                 from libiptc/libip4tc.c:29:
/usr/src/linux-2.6.32.3/include/asm-generic/int-ll64.h:11:29: error: asm/bitsperlong.h: Нет такого файла или каталога
make[2]: *** [libiptc/libip4tc.lo] Ошибка 1
make[2]: Leaving directory `/var/downloads/iptables-1.4.4'
make[1]: *** [all-recursive] Ошибка 1
make[1]: Leaving directory `/var/downloads/iptables-1.4.4'
make: *** [all] Ошибка 2
09:58:13
#ln -s /usr/src/linux/include/asm-generic asm

09:59:12
#make install
Making install in extensions
make[1]: Entering directory `/var/downloads/iptables-1.4.4/extensions'
if test -n " libxt_CLASSIFY.so libxt_cluster.so libxt_comment.so libxt_connbytes.so libxt_connlimit.so libxt_connmark.so libxt_CONNMARK.so libxt_CONNSECMARK.so libxt_conntrack.so libxt_dccp.so libxt_dscp.so libxt_DSCP.so libxt_esp.so libxt_hashlimit.so libxt_helper.so libxt_IMQ.so libxt_iprange.so libxt_length.so libxt_limit.so libxt_mac.so libxt_mark.so libxt_MARK.so libxt_multiport.so libxt_NFLO
make[1]: Leaving directory `/var/downloads/iptables-1.4.4/extensions'
Making install in include
make[1]: Entering directory `/var/downloads/iptables-1.4.4/include'
make[2]: Entering directory `/var/downloads/iptables-1.4.4/include'
make[2]: Цель `install-exec-am' не требует выполнения команд.
test -z "//include" || mkdir -p -- "//include"
test -z "//include" || mkdir -p -- "//include"
...
 /usr/bin/install -c -m 644 './iptables-save.8' '//share/man/man8/iptables-save.8'
 /usr/bin/install -c -m 644 './iptables-xml.8' '//share/man/man8/iptables-xml.8'
 /usr/bin/install -c -m 644 './ip6tables.8' '//share/man/man8/ip6tables.8'
 /usr/bin/install -c -m 644 './ip6tables-restore.8' '//share/man/man8/ip6tables-restore.8'
 /usr/bin/install -c -m 644 './ip6tables-save.8' '//share/man/man8/ip6tables-save.8'
test -z "//lib/pkgconfig" || mkdir -p -- "//lib/pkgconfig"
 /usr/bin/install -c -m 644 'libiptc.pc' '//lib/pkgconfig/libiptc.pc'
 /usr/bin/install -c -m 644 'xtables.pc' '//lib/pkgconfig/xtables.pc'
make[2]: Leaving directory `/var/downloads/iptables-1.4.4'
make[1]: Leaving directory `/var/downloads/iptables-1.4.4'
09:59:18
#cd ..

/dev/pts/0
09:59:49
#ls
100-netfilter_layer7_2.21.patch      linux-2.6.32.1.tar.bz2
101-netfilter_layer7_pktmatch.patch  linux-2.6.32.3.tar.bz2
150-netfilter_imq.patch              linux-2.6.32.3.was
200-sched_esfq                       linux-2.6.32-imq-test2.diff
esfq-maybe.patch                     linux-2.6.32-imq-test2.diff.1
esfq-mypatch                         linux-2.6.32-imq-test2.diff.bz2
esfq.patch                           linux-2.6.33.tar.bz2
esfq-patch-2.6.26                    linux-source-2.6.26
esfq-patch-2.6.26.was                linux-source-2.6.26-copy.tar.bz2
iptables-1.4.3.2-imq.patch           linux-source-2.6.26.tar.bz2
iptables-1.4.3.2-imq_xt.patch        sched_esfq-2.6.29.patch
linux
09:59:51
#ls -al linux
lrwxrwxrwx 1 root src 23 Фев 26 16:07 linux -> /usr/src/linux-2.6.32.3
09:59:58
#cd linux
bash: cd: linux: Нет такого файла или каталога
10:00:08
#tar jxvf linux-2.6.32.3.
linux-2.6.32.3.tar.bz2  linux-2.6.32.3.was/
10:00:08
#tar jxvf linux-2.6.32.3.tar.bz2
linux-2.6.32.3/
linux-2.6.32.3/.gitignore
linux-2.6.32.3/.mailmap
linux-2.6.32.3/COPYING
linux-2.6.32.3/CREDITS
linux-2.6.32.3/Documentation/
linux-2.6.32.3/Documentation/00-INDEX
linux-2.6.32.3/Documentation/ABI/
linux-2.6.32.3/Documentation/ABI/README
linux-2.6.32.3/Documentation/ABI/obsolete/
...
linux-2.6.32.3/virt/kvm/Kconfig
linux-2.6.32.3/virt/kvm/coalesced_mmio.c
linux-2.6.32.3/virt/kvm/coalesced_mmio.h
linux-2.6.32.3/virt/kvm/eventfd.c
linux-2.6.32.3/virt/kvm/ioapic.c
linux-2.6.32.3/virt/kvm/ioapic.h
linux-2.6.32.3/virt/kvm/iodev.h
linux-2.6.32.3/virt/kvm/iommu.c
linux-2.6.32.3/virt/kvm/irq_comm.c
linux-2.6.32.3/virt/kvm/kvm_main.c
10:00:52
#cp .config.2.6.32.3 linux/.config

10:01:21
#cd linux

10:01:26
#patch -p1 --dry-run <../linux
linux/                            linux-2.6.32-imq-test2.diff.1
linux-2.6.32.1.tar.bz2            linux-2.6.32-imq-test2.diff.bz2
linux-2.6.32.3/                   linux-2.6.33.tar.bz2
linux-2.6.32.3.tar.bz2            linux-source-2.6.26/
linux-2.6.32.3.was/               linux-source-2.6.26-copy.tar.bz2
linux-2.6.32-imq-test2.diff       linux-source-2.6.26.tar.bz2
10:01:26
#patch -p1 --dry-run <../linux-2.6.32-imq-test2.diff.1
patching file drivers/net/imq.c
patching file drivers/net/Kconfig
patching file drivers/net/Makefile
patching file include/linux/imq.h
patching file include/linux/netdevice.h
patching file include/linux/netfilter/xt_IMQ.h
patching file include/linux/netfilter_ipv4/ipt_IMQ.h
patching file include/linux/netfilter_ipv6/ip6t_IMQ.h
patching file include/linux/skbuff.h
patching file include/net/netfilter/nf_queue.h
patching file net/core/dev.c
patching file net/core/skbuff.c
patching file net/netfilter/Kconfig
patching file net/netfilter/Makefile
patching file net/netfilter/nf_queue.c
patching file net/netfilter/xt_IMQ.c
10:01:57
#patch -p1 <../linux-2.6.32-imq-test2.diff.1
patching file drivers/net/imq.c
patching file drivers/net/Kconfig
patching file drivers/net/Makefile
patching file include/linux/imq.h
patching file include/linux/netdevice.h
patching file include/linux/netfilter/xt_IMQ.h
patching file include/linux/netfilter_ipv4/ipt_IMQ.h
patching file include/linux/netfilter_ipv6/ip6t_IMQ.h
patching file include/linux/skbuff.h
patching file include/net/netfilter/nf_queue.h
patching file net/core/dev.c
patching file net/core/skbuff.c
patching file net/netfilter/Kconfig
patching file net/netfilter/Makefile
patching file net/netfilter/nf_queue.c
patching file net/netfilter/xt_IMQ.c
10:02:07
#patch -p1 --dry-run <../100-netfilter_layer7_2.21.patch
patching file include/linux/netfilter/xt_layer7.h
patching file include/net/netfilter/nf_conntrack.h
patching file net/netfilter/Kconfig
Hunk #1 succeeded at 870 (offset 12 lines).
patching file net/netfilter/Makefile
Hunk #1 succeeded at 90 (offset 1 line).
patching file net/netfilter/nf_conntrack_core.c
patching file net/netfilter/nf_conntrack_standalone.c
patching file net/netfilter/regexp/regexp.c
patching file net/netfilter/regexp/regexp.h
patching file net/netfilter/regexp/regmagic.h
patching file net/netfilter/regexp/regsub.c
patching file net/netfilter/xt_layer7.c
10:02:18
#patch -p1 <../100-netfilter_layer7_2.21.patch
patching file include/linux/netfilter/xt_layer7.h
patching file include/net/netfilter/nf_conntrack.h
patching file net/netfilter/Kconfig
Hunk #1 succeeded at 870 (offset 12 lines).
patching file net/netfilter/Makefile
Hunk #1 succeeded at 90 (offset 1 line).
patching file net/netfilter/nf_conntrack_core.c
patching file net/netfilter/nf_conntrack_standalone.c
patching file net/netfilter/regexp/regexp.c
patching file net/netfilter/regexp/regexp.h
patching file net/netfilter/regexp/regmagic.h
patching file net/netfilter/regexp/regsub.c
patching file net/netfilter/xt_layer7.c
10:02:26
#patch -p1 --dry-run <../101-netfilter_layer7_pktmatch.patch
patching file include/linux/netfilter/xt_layer7.h
patching file net/netfilter/xt_layer7.c
10:02:37
#patch -p1 <../101-netfilter_layer7_pktmatch.patch
patching file include/linux/netfilter/xt_layer7.h
patching file net/netfilter/xt_layer7.c
10:02:42
#patch -p1 --dry-run <../150-netfilter_imq.patch
The next patch would create the file drivers/net/imq.c,
which already exists!  Assume -R? [n]
Apply anyway? [n] y
patching file drivers/net/imq.c
Patch attempted to create file drivers/net/imq.c, which already exists.
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file drivers/net/imq.c.rej
patching file drivers/net/Kconfig
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n] y
...
Hunk #5 FAILED at 318.
Hunk #6 FAILED at 347.
4 out of 6 hunks FAILED -- saving rejects to file net/netfilter/nf_queue.c.rej
The next patch would create the file net/netfilter/xt_IMQ.c,
which already exists!  Assume -R? [n]
Apply anyway? [n] y
patching file net/netfilter/xt_IMQ.c
Patch attempted to create file net/netfilter/xt_IMQ.c, which already exists.
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file net/netfilter/xt_IMQ.c.rej
10:03:51
#patch -p1 --dry-run <../
100-netfilter_layer7_2.21.patch      linux-2.6.32.1.tar.bz2
101-netfilter_layer7_pktmatch.patch  linux-2.6.32.3/
150-netfilter_imq.patch              linux-2.6.32.3.tar.bz2
200-sched_esfq                       linux-2.6.32.3.was/
.config.2.6.32.3                     linux-2.6.32-imq-test2.diff
esfq-maybe.patch                     linux-2.6.32-imq-test2.diff.1
esfq-mypatch                         linux-2.6.32-imq-test2.diff.bz2
esfq.patch                           linux-2.6.33.tar.bz2
esfq-patch-2.6.26                    linux-source-2.6.26/
esfq-patch-2.6.26.was                linux-source-2.6.26-copy.tar.bz2
iptables-1.4.3.2-imq.patch           linux-source-2.6.26.tar.bz2
iptables-1.4.3.2-imq_xt.patch        sched_esfq-2.6.29.patch
linux/
10:03:51
#patch -p1 --dry-run <../200-sched_esfq
patching file include/linux/pkt_sched.h
patching file net/sched/Kconfig
patching file net/sched/Makefile
patching file net/sched/sch_esfq.c
10:04:04
#patch -p1 <../200-sched_esfq
patching file include/linux/pkt_sched.h
patching file net/sched/Kconfig
patching file net/sched/Makefile
patching file net/sched/sch_esfq.c
10:04:09
#make oldconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/docproc
  HOSTCC  scripts/basic/hash
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/kxgettext.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/lex.zconf.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf -o arch/x86/Kconfig
#
# configuration written to .config
#
10:04:54
#make menuconfig
  tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu
  x                                                                               x
  mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
         ^(-)
  x x                                                                           x x
         [*] Network device support  --->
         [*] Network device support  --->
         --- Network device support
  x x                                                                           x x
  x x                                                                           x x
...
             x  <ESC><ESC> to continue.                                 x
             tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu
             x                   < Yes >      <  No  >                  x
             mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
  x x    [*] Networking support  --->                                           x x
#
# configuration written to .config
#
*** End of Linux kernel configuration.
*** Execute 'make' to build the kernel or try 'make help'.
прошло 12 минут
10:17:17
#less ./.config
10:17:17
#less ./.config
10:19:21
#Pattern not found (press RETURN)
  x x                                                                           x x
  x Symbol: NETFILTER_XT_MATCH_LAYER7_DEBUG [=n]                                  x
  x x                                                                           x x
  x     -> Networking support (NET [=y])                                          x
  x       -> Networking options                                                   x
  x         -> Network packet filtering framework (Netfilter) (NETFILTER [=y])    x
  x           -> Core Netfilter Configuration                                     x
  x             -> Netfilter Xtables support (required for ip_tables) (NETFILTER_ x
  x                                                                               x
  x                                                                               x
  x                                                                               x
                                      < Exit >                             100    x
  tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq( 59%)qqu
  mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
  x
  lqqqqqqqqqqqqqqqqqqqqqqqqq Linux Kernel Configuration qqqqqqqqqqqqqqqqqqqqqqqqqqk
*** End of Linux kernel configuration.
*** Execute 'make' to build the kernel or try 'make help'.
10:20:57
#vim ./.config
10:22:40
#make
scripts/kconfig/conf -s arch/x86/Kconfig
#
# configuration written to .config
#
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  CHK     include/linux/utsrelease.h
  UPD     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-x86
  CC      kernel/bounds.s
...
  CC      net/sched/sch_prio.mod.o
  LD [M]  net/sched/sch_prio.ko
  CC      net/sched/sch_red.mod.o
  LD [M]  net/sched/sch_red.ko
  CC      net/sched/sch_sfq.mod.o
  LD [M]  net/sched/sch_sfq.ko
  CC      net/sched/sch_tbf.mod.o
  LD [M]  net/sched/sch_tbf.ko
  CC      net/sched/sch_teql.mod.o
  LD [M]  net/sched/sch_teql.ko
/dev/pts/2
10:26:31
#mkdir l7

10:26:34
#cd l7

10:26:44
#tar zxvf l7-protocols-2009-05-28.tar.gz
l7-protocols-2009-05-28/
l7-protocols-2009-05-28/example_traffic/
l7-protocols-2009-05-28/example_traffic/msn_chat_and_file_transfer.txt
l7-protocols-2009-05-28/README
l7-protocols-2009-05-28/malware/
l7-protocols-2009-05-28/malware/README
l7-protocols-2009-05-28/malware/code_red.pat
l7-protocols-2009-05-28/malware/nimda.pat
l7-protocols-2009-05-28/testing/
l7-protocols-2009-05-28/testing/README
...
l7-protocols-2009-05-28/extra/pressplay.pat
l7-protocols-2009-05-28/extra/http-itunes.pat
l7-protocols-2009-05-28/extra/gtalk.pat
l7-protocols-2009-05-28/extra/quicktime.pat
l7-protocols-2009-05-28/extra/httpaudio.pat
l7-protocols-2009-05-28/extra/snmp-mon.pat
l7-protocols-2009-05-28/extra/http-freshdownload.pat
l7-protocols-2009-05-28/extra/httpcachemiss.pat
l7-protocols-2009-05-28/extra/http-dap.pat
l7-protocols-2009-05-28/LICENSE
10:27:22
#tar zxvf netfilter-layer7-v2.22.tar.gz
netfilter-layer7-v2.22/
netfilter-layer7-v2.22/README
netfilter-layer7-v2.22/kernel-2.4-layer7-2.22.patch
netfilter-layer7-v2.22/kernel-2.6.25-2.6.28-layer7-2.22.patch
netfilter-layer7-v2.22/for_older_iptables/
netfilter-layer7-v2.22/for_older_iptables/iptables-1.4-for-kernel-2.6.20forward-layer7-2.21.patch
netfilter-layer7-v2.22/for_older_iptables/iptables-1.3-for-kernel-pre2.6.20-layer7-2.21.patch
netfilter-layer7-v2.22/for_older_iptables/iptables-1.3-for-kernel-2.6.20forward-layer7-2.21.patch
netfilter-layer7-v2.22/for_older_iptables/iptables-1.4.1.1-for-kernel-2.6.20forward/
netfilter-layer7-v2.22/for_older_iptables/iptables-1.4.1.1-for-kernel-2.6.20forward/libxt_layer7.c
...
netfilter-layer7-v2.22/for_older_kernels/kernel-2.6.13-2.6.16-layer7-2.2.patch
netfilter-layer7-v2.22/for_older_kernels/kernel-2.6.17-layer7-2.5.patch
netfilter-layer7-v2.22/for_older_kernels/kernel-2.6.11-2.6.12-layer7-1.4.patch
netfilter-layer7-v2.22/for_older_kernels/kernel-2.6.20-2.6.21-layer7-2.16.1.patch
netfilter-layer7-v2.22/for_older_kernels/kernel-2.6.22-2.6.24-layer7-2.18.patch
netfilter-layer7-v2.22/for_older_kernels/kernel-2.6.18-2.6.19-layer7-2.9.patch
netfilter-layer7-v2.22/for_older_kernels/kernel-2.6.0-2.6.8.1-layer7-0.9.2.patch
netfilter-layer7-v2.22/iptables-1.4.3forward-for-kernel-2.6.20forward/
netfilter-layer7-v2.22/iptables-1.4.3forward-for-kernel-2.6.20forward/libxt_layer7.c
netfilter-layer7-v2.22/iptables-1.4.3forward-for-kernel-2.6.20forward/libxt_layer7.man
10:27:29
#ls
l7-protocols-2009-05-28         netfilter-layer7-v2.22
l7-protocols-2009-05-28.tar.gz  netfilter-layer7-v2.22.tar.gz
10:27:31
#cd netfilter-layer7-v2.22/

10:27:38
#ls
CHANGELOG           iptables-1.4.3forward-for-kernel-2.6.20forward  README
for_older_iptables  kernel-2.4-layer7-2.22.patch
for_older_kernels   kernel-2.6.25-2.6.28-layer7-2.22.patch
10:27:39
#less README
10:28:42
#cd ../..

10:29:32
#tar jxvf iptables-1.4.6.tar.bz2
iptables-1.4.6/
iptables-1.4.6/ip6tables.8.in
iptables-1.4.6/ip6tables-restore.c
iptables-1.4.6/xtables.c
iptables-1.4.6/iptables-multi.c
iptables-1.4.6/ip6tables-restore.8
iptables-1.4.6/ip6tables-save.c
iptables-1.4.6/ip6tables-multi.h
iptables-1.4.6/iptables-apply.8
iptables-1.4.6/iptables-multi.h
...
iptables-1.4.6/release.sh
iptables-1.4.6/iptables-save.c
iptables-1.4.6/iptables.8.in
iptables-1.4.6/ip6tables-save.8
iptables-1.4.6/configure
iptables-1.4.6/missing
iptables-1.4.6/config.sub
iptables-1.4.6/.gitignore
iptables-1.4.6/iptables-restore.c
iptables-1.4.6/ip6tables-multi.c
10:29:42
#cd iptables-1.4.6/

10:29:46
#patch -p1 --dry-run <../

10:30:13
#ls extensions/
dscp_helper.c           libipt_SET.c           libxt_NFLOG.man
GNUmakefile.in          libipt_set.h           libxt_NFQUEUE.c
libip6t_ah.c            libipt_set.man         libxt_NFQUEUE.man
libip6t_ah.man          libipt_SET.man         libxt_NOTRACK.c
libip6t_dst.c           libipt_SNAT.c          libxt_NOTRACK.man
libip6t_dst.man         libipt_SNAT.man        libxt_osf.c
libip6t_eui64.c         libipt_ttl.c           libxt_owner.c
libip6t_eui64.man       libipt_TTL.c           libxt_owner.man
libip6t_frag.c          libipt_ttl.man         libxt_physdev.c
libip6t_frag.man        libipt_TTL.man         libxt_physdev.man
...
libipt_NETMAP.man       libxt_limit.man        libxt_TPROXY.c
libipt_realm.c          libxt_mac.c            libxt_TPROXY.man
libipt_realm.man        libxt_mac.man          libxt_TRACE.c
libipt_REDIRECT.c       libxt_mark.c           libxt_TRACE.man
libipt_REDIRECT.man     libxt_MARK.c           libxt_u32.c
libipt_REJECT.c         libxt_mark.man         libxt_u32.man
libipt_REJECT.man       libxt_MARK.man         libxt_udp.c
libipt_SAME.c           libxt_multiport.c      libxt_udp.man
libipt_SAME.man         libxt_multiport.man    tos_values.c
libipt_set.c            libxt_NFLOG.c
10:30:16
#cp ../l7/
l7-protocols-2009-05-28/        netfilter-layer7-v2.22/
l7-protocols-2009-05-28.tar.gz  netfilter-layer7-v2.22.tar.gz
10:30:16
#cp ../l7/netfilter-layer7-v2.22/
CHANGELOG
for_older_iptables/
for_older_kernels/
iptables-1.4.3forward-for-kernel-2.6.20forward/
kernel-2.4-layer7-2.22.patch
kernel-2.6.25-2.6.28-layer7-2.22.patch
README
10:30:49
#chmod ./extensions/I

10:31:15
#patch -p1 --dry-run <../iptables-1.4.4-imq.diff
patching file extensions/libxt_IMQ.c
patching file include/linux/netfilter/xt_IMQ.h
10:32:16
#patch -p1 <../iptables-1.4.4-imq.diff
patching file extensions/libxt_IMQ.c
patching file include/linux/netfilter/xt_IMQ.h
10:32:24
#chmod 755 ./extensions/I

10:33:24
#make
make  all-recursive
make[1]: Entering directory `/var/downloads/iptables-1.4.6'
Making all in extensions
make[2]: Entering directory `/var/downloads/iptables-1.4.6/extensions'
  GEN      initext4.c
  CC       initext4.o
  AR       libext4.a
  GEN      initext6.c
  CC       initext6.o
  AR       libext6.a
...
  CC       libxt_helper.oo
  CCLD     libxt_helper.so
  CC       libxt_IMQ.oo
libxt_IMQ.c: In function ‘IMQ_parse’:
libxt_IMQ.c:42: error: too few arguments to function ‘xtables_check_inverse’
make[2]: *** [libxt_IMQ.oo] Ошибка 1
make[2]: Leaving directory `/var/downloads/iptables-1.4.6/extensions'
make[1]: *** [all-recursive] Ошибка 1
make[1]: Leaving directory `/var/downloads/iptables-1.4.6'
make: *** [all] Ошибка 2
10:33:31
#cd ..

10:33:58
#rm -R iptables-1.4.4
iptables-1.4.4/            iptables-1.4.4-imq.diff.1
iptables-1.4.4-imq.diff    iptables-1.4.4.tar.bz2
10:33:58
#rm -R iptables-1.4.4

10:34:08
#tar jxvf iptables-1.4.4.tar.bz2
iptables-1.4.4/
iptables-1.4.4/ip6tables.8.in
iptables-1.4.4/ip6tables-restore.c
iptables-1.4.4/xtables.c
iptables-1.4.4/iptables-multi.c
iptables-1.4.4/ip6tables-restore.8
iptables-1.4.4/ip6tables-save.c
iptables-1.4.4/ip6tables-multi.h
iptables-1.4.4/iptables-apply.8
iptables-1.4.4/iptables-multi.h
...
iptables-1.4.4/release.sh
iptables-1.4.4/iptables-save.c
iptables-1.4.4/iptables.8.in
iptables-1.4.4/ip6tables-save.8
iptables-1.4.4/configure
iptables-1.4.4/missing
iptables-1.4.4/config.sub
iptables-1.4.4/.gitignore
iptables-1.4.4/iptables-restore.c
iptables-1.4.4/ip6tables-multi.c
/dev/pts/0
10:34:10
#make modules
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-x86
  CALL    scripts/checksyscalls.sh
  Building modules, stage 2.
  MODPOST 102 modules
/dev/pts/2
10:34:15
#cd iptables-1.4.4/

/dev/pts/0
10:34:46
#make modules_install
  INSTALL arch/x86/kernel/test_nx.ko
  INSTALL arch/x86/kvm/kvm-amd.ko
  INSTALL arch/x86/kvm/kvm-intel.ko
  INSTALL arch/x86/kvm/kvm.ko
  INSTALL drivers/char/hw_random/amd-rng.ko
  INSTALL drivers/net/dummy.ko
  INSTALL drivers/net/ppp_generic.ko
  INSTALL drivers/net/pppoe.ko
  INSTALL drivers/net/pppox.ko
  INSTALL drivers/net/slhc.ko
...
  INSTALL net/sched/sch_hfsc.ko
  INSTALL net/sched/sch_htb.ko
  INSTALL net/sched/sch_ingress.ko
  INSTALL net/sched/sch_netem.ko
  INSTALL net/sched/sch_prio.ko
  INSTALL net/sched/sch_red.ko
  INSTALL net/sched/sch_sfq.ko
  INSTALL net/sched/sch_tbf.ko
  INSTALL net/sched/sch_teql.ko
  DEPMOD  2.6.32.3
10:35:24
#mkinitramfs -o /boot/initrd-2.6.32.3-esfq-imq

10:35:57
#halt

/dev/pts/2
10:36:07
#make
make  all-recursive
make[1]: Entering directory `/var/downloads/iptables-1.4.4'
Making all in extensions
make[2]: Entering directory `/var/downloads/iptables-1.4.4/extensions'
make[2]: Leaving directory `/var/downloads/iptables-1.4.4/extensions'
Making all in include
make[2]: Entering directory `/var/downloads/iptables-1.4.4/include'
make[2]: Цель `all' не требует выполнения команд.
make[2]: Leaving directory `/var/downloads/iptables-1.4.4/include'
make[2]: Entering directory `/var/downloads/iptables-1.4.4'
...
libtool: link: gcc -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -DXTABLES_LIBDIR=\"//libexec/xtables\" -DXTABLES_INTERNAL -I./include -I./include -I /usr/src/linux-2.6.32.3/include -I /usr/src/linux-2.6.32.3/include -g -O2 -o .libs/ip6tables
depbase=`echo ip6tables-save.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; \
        if gcc -DHAVE_CONFIG_H -I. -I. -I.    -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64       -D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations    -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes     -Winline -pipe  -DXTABLES_LIBDIR=\"//libexec/xtables\" -DXTABLES_INTERNAL -I./include -I./include -I /usr/src/linux-2.6.32.3/include -I /usr/src/linux-2
        then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f "$depbase.Tpo"; exit 1; fi
/bin/sh ./libtool --tag=CC --mode=link gcc -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64  -D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations    -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes     -Winline -pipe  -DXTABLES_LIBDIR=\"//libexec/xtables\" -DXTABLES_INTERNAL -I./include -I./include -I /usr/src/linux-2.6.32.3/include -I /usr/src/linux-2.6.32.3/
libtool: link: gcc -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -DXTABLES_LIBDIR=\"//libexec/xtables\" -DXTABLES_INTERNAL -I./include -I./include -I /usr/src/linux-2.6.32.3/include -I /usr/src/linux-2.6.32.3/include -g -O2 -o .libs/ip6tables
sed -e 's/@PACKAGE_AND_VERSION@/iptables 1.4.4/g' -e '/@MATCH@/ r extensions/matches4.man' -e '/@TARGET@/ r extensions/targets4.man' iptables.8.in >iptables.8;
sed -e 's/@PACKAGE_AND_VERSION@/iptables 1.4.4/g' -e '/@MATCH@/ r extensions/matches6.man' -e '/@TARGET@/ r extensions/targets6.man' ip6tables.8.in >ip6tables.8;
make[2]: Leaving directory `/var/downloads/iptables-1.4.4'
make[1]: Leaving directory `/var/downloads/iptables-1.4.4'
10:36:19
#make install
Making install in extensions
make[1]: Entering directory `/var/downloads/iptables-1.4.4/extensions'
if test -n " libxt_CLASSIFY.so libxt_cluster.so libxt_comment.so libxt_connbytes.so libxt_connlimit.so libxt_connmark.so libxt_CONNMARK.so libxt_CONNSECMARK.so libxt_conntrack.so libxt_dccp.so libxt_dscp.so libxt_DSCP.so libxt_esp.so libxt_hashlimit.so libxt_helper.so libxt_IMQ.so libxt_iprange.so libxt_layer7.so libxt_length.so libxt_limit.so libxt_mac.so libxt_mark.so libxt_MARK.so libxt_multipo
make[1]: Leaving directory `/var/downloads/iptables-1.4.4/extensions'
Making install in include
make[1]: Entering directory `/var/downloads/iptables-1.4.4/include'
make[2]: Entering directory `/var/downloads/iptables-1.4.4/include'
make[2]: Цель `install-exec-am' не требует выполнения команд.
test -z "//include" || mkdir -p -- "//include"
test -z "//include" || mkdir -p -- "//include"
...
 /usr/bin/install -c -m 644 './iptables-save.8' '//share/man/man8/iptables-save.8'
 /usr/bin/install -c -m 644 './iptables-xml.8' '//share/man/man8/iptables-xml.8'
 /usr/bin/install -c -m 644 './ip6tables.8' '//share/man/man8/ip6tables.8'
 /usr/bin/install -c -m 644 './ip6tables-restore.8' '//share/man/man8/ip6tables-restore.8'
 /usr/bin/install -c -m 644 './ip6tables-save.8' '//share/man/man8/ip6tables-save.8'
test -z "//lib/pkgconfig" || mkdir -p -- "//lib/pkgconfig"
 /usr/bin/install -c -m 644 'libiptc.pc' '//lib/pkgconfig/libiptc.pc'
 /usr/bin/install -c -m 644 'xtables.pc' '//lib/pkgconfig/xtables.pc'
make[2]: Leaving directory `/var/downloads/iptables-1.4.4'
make[1]: Leaving directory `/var/downloads/iptables-1.4.4'
10:36:35
#cd ../

10:36:38
#cd l7

10:36:41
#ls
l7-protocols-2009-05-28         netfilter-layer7-v2.22
l7-protocols-2009-05-28.tar.gz  netfilter-layer7-v2.22.tar.gz
10:36:42
#cd l7-protocols-2009-05-28/

10:36:46
#ls
CHANGELOG        file_types  l7-protocols.spec  malware    testing
example_traffic  groups.sh   LICENSE            protocols  WANTED
extra            HOWTO       Makefile           README
10:36:47
#make install
mkdir -p /etc/l7-protocols
cp -R * /etc/l7-protocols
10:36:53
#cd ..

10:37:39
#cd ..

10:37:46
#ls
ChangeLog                        iptables-1.4.4-imq.diff
esfq-0.3                         iptables-1.4.4-imq.diff.1
esfq-0.3.tar.gz                  iptables-1.4.4.tar.bz2
esfq-iproute2.patch              iptables-1.4.6
iproute2-2.6.33                  iptables-1.4.6.tar.bz2
iproute2-2.6.33.tar.bz2          l7
iproute2-2.6.x-esfq.diff         lilalo
iproute2-2.6.x-esfq.diff.tar.gz  README
iptables-1.4.4                   sfq-iproute.patch
10:37:57
#rm -R iproute2-2.6.
iproute2-2.6.33/                 iproute2-2.6.x-esfq.diff
iproute2-2.6.33.tar.bz2          iproute2-2.6.x-esfq.diff.tar.gz
10:37:57
#rm -R iproute2-2.6.33

10:38:25
#tar jxvf iproute2-2.6.33.tar.bz2
iproute2-2.6.33/
iproute2-2.6.33/.gitignore
iproute2-2.6.33/COPYING
iproute2-2.6.33/ChangeLog
iproute2-2.6.33/Makefile
iproute2-2.6.33/README
iproute2-2.6.33/README.decnet
iproute2-2.6.33/README.distribution
iproute2-2.6.33/README.iproute2+tc
iproute2-2.6.33/README.lnstat
...
iproute2-2.6.33/testsuite/configs/all-police-act
iproute2-2.6.33/testsuite/iproute2/
iproute2-2.6.33/testsuite/iproute2/Makefile
iproute2-2.6.33/testsuite/lib/
iproute2-2.6.33/testsuite/lib/generic.sh
iproute2-2.6.33/testsuite/tests/
iproute2-2.6.33/testsuite/tests/cbq.t
iproute2-2.6.33/testsuite/tests/cls-testbed.t
iproute2-2.6.33/testsuite/tests/dsmark.t
iproute2-2.6.33/testsuite/tests/policer
10:38:33
#ln -s /usr/include/db
db_185.h  db.h
10:38:33
#cd iproute2-2.6.33/

10:39:01
#ip -V
ip utility, iproute2-ss100224
10:39:03
#ls ..
ChangeLog                        iptables-1.4.4-imq.diff
esfq-0.3                         iptables-1.4.4-imq.diff.1
esfq-0.3.tar.gz                  iptables-1.4.4.tar.bz2
esfq-iproute2.patch              iptables-1.4.6
iproute2-2.6.33                  iptables-1.4.6.tar.bz2
iproute2-2.6.33.tar.bz2          l7
iproute2-2.6.x-esfq.diff         lilalo
iproute2-2.6.x-esfq.diff.tar.gz  README
iptables-1.4.4                   sfq-iproute.patch
10:39:14
#patch -p1 --dry-run <../esfq-
esfq-0.3/            esfq-0.3.tar.gz      esfq-iproute2.patch
10:39:14
#patch -p1 --dry-run <../esfq-iproute2.patch
patching file include/linux/pkt_sched.h
Hunk #1 succeeded at 175 with fuzz 1 (offset 18 lines).
patching file tc/Makefile
Hunk #1 succeeded at 8 (offset 1 line).
patching file tc/q_esfq.c
10:39:39
#patch -p1 <../esfq-iproute2.patch
patching file include/linux/pkt_sched.h
Hunk #1 succeeded at 175 with fuzz 1 (offset 18 lines).
patching file tc/Makefile
Hunk #1 succeeded at 8 (offset 1 line).
patching file tc/q_esfq.c
10:40:01
#make
make[1]: Entering directory `/var/downloads/iproute2-2.6.33/lib'
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -fPIC   -c -o ll_map.o ll_map.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -fPIC   -c -o libnetlink.o libnetlink.c
ar rcs libnetlink.a ll_map.o libnetlink.o
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -fPIC   -c -o utils.o utils.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -fPIC   -c -o rt_names.o rt_names.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -fPIC   -c -o ll_types.o ll_types.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -fPIC   -c -o ll_proto.o ll_proto.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -fPIC   -c -o ll_addr.o ll_addr.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -fPIC   -c -o inet_proto.o inet_proto.c
...
./normal > normal.dist
./pareto > pareto.dist
./paretonormal > paretonormal.dist
./maketable experimental.dat > experimental.dist
make[1]: Leaving directory `/var/downloads/iproute2-2.6.33/netem'
make[1]: Entering directory `/var/downloads/iproute2-2.6.33/genl'
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\"   -c -o genl.o genl.c
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\"   -c -o ctrl.o ctrl.c
gcc -Wl,-export-dynamic  genl.o ctrl.o ../lib/libnetlink.a ../lib/libutil.a  -lresolv -L../lib -lnetlink -lutil -lm -ldl -o genl
make[1]: Leaving directory `/var/downloads/iproute2-2.6.33/genl'
10:40:27
#make install
make[1]: Entering directory `/var/downloads/iproute2-2.6.33/lib'
make[1]: Цель `all' не требует выполнения команд.
make[1]: Leaving directory `/var/downloads/iproute2-2.6.33/lib'
make[1]: Entering directory `/var/downloads/iproute2-2.6.33/ip'
make[1]: Цель `all' не требует выполнения команд.
make[1]: Leaving directory `/var/downloads/iproute2-2.6.33/ip'
make[1]: Entering directory `/var/downloads/iproute2-2.6.33/tc'
make[1]: Цель `all' не требует выполнения команд.
make[1]: Leaving directory `/var/downloads/iproute2-2.6.33/tc'
make[1]: Entering directory `/var/downloads/iproute2-2.6.33/misc'
...
install -m 0644 etc/iproute2/ematch_map etc/iproute2/rt_dsfield etc/iproute2/rt_protos etc/iproute2/rt_realms etc/iproute2/rt_scopes etc/iproute2/rt_tables /usr//etc/iproute2
install -m 0755 -d /usr//share/man/man8
install -m 0644 man/man8/arpd.8 man/man8/ip.8 man/man8/lnstat.8 man/man8/routel.8 man/man8/rtacct.8 man/man8/rtmon.8 man/man8/ss.8 man/man8/tc-bfifo.8 man/man8/tc-cbq-details.8 man/man8/tc-cbq.8 man/man8/tc-drr.8 man/man8/tc-htb.8 man/man8/tc-pfifo_fast.8 man/man8/tc-prio.8 man/man8/tc-red.8 man/man8/tc-sfq.8 man/man8/tc-tbf.8 man/man8/tc.8 /usr//share/man/man8
ln -sf tc-bfifo.8  /usr//share/man/man8/tc-pfifo.8
ln -sf lnstat.8  /usr//share/man/man8/rtstat.8
ln -sf lnstat.8  /usr//share/man/man8/ctstat.8
ln -sf rtacct.8  /usr//share/man/man8/nstat.8
ln -sf routel.8  /usr//share/man/man8/routef.8
install -m 0755 -d /usr//share/man/man3
install -m 0644 man/man3/libnetlink.3 /usr//share/man/man3
10:40:44
#ls ip/
ifcfg          iplink_macvlan.c  ipntable.c  link_gre.c   static-syms.c
ip             iplink_macvlan.o  ipntable.o  link_gre.o   tunnel.c
ip6tunnel.c    iplink.o          ip.o        link_veth.c  tunnel.h
ip6tunnel.o    iplink_vlan.c     ipprefix.c  link_veth.o  tunnel.o
ipaddress.c    iplink_vlan.o     ipprefix.o  Makefile     xfrm.h
ipaddress.o    ipmaddr.c         iproute.c   routef       xfrm_monitor.c
ipaddrlabel.c  ipmaddr.o         iproute.o   routel       xfrm_monitor.o
ipaddrlabel.o  ipmonitor.c       iprule.c    rtm_map.c    xfrm_policy.c
ip.c           ipmonitor.o       iprule.o    rtm_map.o    xfrm_policy.o
ip_common.h    ipmroute.c        iptunnel.c  rtmon        xfrm_state.c
iplink.c       ipmroute.o        iptunnel.o  rtmon.c      xfrm_state.o
iplink_can.c   ipneigh.c         ipxfrm.c    rtmon.o
iplink_can.o   ipneigh.o         ipxfrm.o    rtpr
10:41:08
#ls tc/
em_cmp.c                m_action.o     p_udp.o      q_tbf.c
em_cmp.o                Makefile       q_atm.c      q_tbf.o
em_meta.c               Makefile.orig  q_cbq.c      README.last
em_meta.o               m_ematch.c     q_cbq.o      static-syms.c
em_nbyte.c              m_ematch.h     q_drr.c      tc
em_nbyte.o              m_ematch.o     q_drr.o      tc.c
emp_ematch.l            m_estimator.c  q_dsmark.c   tc_cbq.c
emp_ematch.lex.o        m_estimator.o  q_dsmark.o   tc_cbq.h
emp_ematch.y            m_gact.c       q_esfq.c     tc_cbq.o
emp_ematch.yacc.h       m_gact.o       q_esfq.o     tc_class.c
...
f_route.c               m_skbedit.o    q_netem.c    tc_qdisc.c
f_route.o               m_xt.c         q_netem.o    tc_qdisc.o
f_rsvp.c                m_xt_old.c     q_prio.c     tc_red.c
f_rsvp.o                p_icmp.c       q_prio.o     tc_red.h
f_tcindex.c             p_icmp.o       q_red.c      tc_red.o
f_tcindex.o             p_ip.c         q_red.o      tc_stab.c
f_u32.c                 p_ip.o         q_rr.c       tc_stab.o
f_u32.o                 p_tcp.c        q_rr.o       tc_util.c
libtc.a                 p_tcp.o        q_sfq.c      tc_util.h
m_action.c              p_udp.c        q_sfq.o      tc_util.o
10:41:26
#cp ./ip/ip /sbin/

10:41:38
#cp ./tc/tc /sbin/

10:41:47
#chmod 755 /sbin/ip

10:42:00
#chmod 755 /sbin/tc

10:42:02
#ip -V
ip utility, iproute2-ss100224

Статистика

Время первой команды журнала09:55:04 2010- 2-27
Время последней команды журнала10:42:02 2010- 2-27
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, % 7.92
Процент синтаксически неверно набранных команд, % 0.00
Суммарное время работы с терминалом *, час 0.78
Количество командных строк в единицу времени, команда/мин 2.15
Частота использования команд
cd19|===============| 15.97%
patch18|===============| 15.13%
make13|==========| 10.92%
ls12|==========| 10.08%
tar8|======| 6.72%
cp5|====| 4.20%
rm5|====| 4.20%
chmod4|===| 3.36%
less3|==| 2.52%
mv3|==| 2.52%
iptables-1.4.4-imq.diff3|==| 2.52%
configure2|=| 1.68%
linux-2.6.32-imq-test2.diff.12|=| 1.68%
../2|=| 1.68%
esfq-iproute2.patch2|=| 1.68%
101-netfilter_layer7_pktmatch.patch2|=| 1.68%
ln2|=| 1.68%
200-sched_esfq2|=| 1.68%
ip2|=| 1.68%
100-netfilter_layer7_2.21.patch2|=| 1.68%
esfq-1|| 0.84%
mkdir1|| 0.84%
halt1|| 0.84%
150-netfilter_imq.patch1|| 0.84%
linux1|| 0.84%
vim1|| 0.84%
mkinitramfs1|| 0.84%
Pattern1|| 0.84%
____
*) Интервалы неактивности длительностью 30 минут и более не учитываются

Справка

Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
  1. В журнал автоматически попадают все команды, данные в любом терминале системы.

  2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

  3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
    $ l s-l
    bash: l: command not found
    

  4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
    $ test 5 -lt 4
    Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

  5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
    $ find / -name abc
    find: /home/devi-orig/.gnome2: Keine Berechtigung
    find: /home/devi-orig/.gnome2_private: Keine Berechtigung
    find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung
    find: /home/devi-orig/.metacity: Keine Berechtigung
    find: /home/devi-orig/.inkscape: Keine Berechtigung
    ^C
    

  6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
    # id
    uid=0(root) gid=0(root) Gruppen=0(root)
    

  7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
    $ vi ~/.bashrc
    2a3,5
    >    if [ -f /usr/local/etc/bash_completion ]; then
    >         . /usr/local/etc/bash_completion
    >        fi
    

  8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
    $ patch ~/.bashrc
    В данном случае изменения применяются к файлу ~/.bashrc

  9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

    Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

  10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

  11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

  12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

  13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

  14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

    $ whoami
    
    user
    
    $ #^ Интересно, кто я?
    
    в журнале это будет выглядеть так:
    $ whoami
    
    user
    
    Интересно, кто я?

  15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

    $ whoami
    
    user
    
    $ cat > /dev/null #^ Интересно, кто я?
    
    Программа whoami выводит имя пользователя, под которым 
    мы зарегистрировались в системе.
    -
    Она не может ответить на вопрос о нашем назначении 
    в этом мире.
    
    В журнале это будет выглядеть так:
    $ whoami
    user
    
    Интересно, кто я?
    Программа whoami выводит имя пользователя, под которым
    мы зарегистрировались в системе.

    Она не может ответить на вопрос о нашем назначении
    в этом мире.
    Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

  16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

  17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
  18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
  19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
    1
        2
    3   
        4
    
    Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

О программе

LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008

$Id$