Понедельник (04/08/13)

/dev/pts/2
13:59:23
#ssh user@192.168.15.253
Apr  8 18:01:54 linux7 kernel: [  886.562892] sshd (2426): /proc/2426/oom_adj is
^C
root@linux7:/tmp# wget http://xgu.ru/lilalo/install
--2013-04-08 18:03:05--  http://xgu.ru/lilalo/install
Apr  8 17:48:32 linux7 kernel: [   85.056668] eth0:  setting full
Apr  8 18:01:54 linux7 kernel: [   85.056838] ADDRCONF(NETDEV_CHA
                  nux7 kernel: [  886.562892] sshd (2426): /proc/               ven).
                                                                                iver
                                                                                k becomes ready
                                                                                 deprecated, please use /proc/2426/oom_score_adj instead.
^C
root@linux7:/tmp#
--2013-04-08 18:03wget http://xgu.ru/lilalo/install
Resolving xgu.ru..:05--  http://xgu.ru/lilalo/install
Connecting to xgu.. 178.63.229.230
HTTP request sent,ru|178.63.229.230|:80... connected.
Length: 5321 (5.2K awaiting response... 200 OK
Saving to: “instal[text/plain]
                  l”
100%[=============
                  ===============================================
2013-04-08 18:03:0
                  6 (7.47 MB/s) - “install” sav5321/5321]
root@linux7:/tmp#
Reading package lists... Donetall build-essentila
Building dependency tree
Reading state information... Done
E: Unable to locate package build-essentila
root@linux7:/tmp# apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  binutils dpkg-dev fakeroot g++ g++-4.4 gcc gcc-4.4 libalgorithm-diff-perl liba
  libc6-dev libdpkg-perl libstdc++6-4.4-dev linux-libc-dev make manpages-dev
Suggested packages:
  binutils-doc debian-keyring g++-multilib g++-4.4-multilib gcc-4.4-doc libstdc+
  gdb gcc-doc gcc-4.4-multilib libmudflap0-4.4-dev gcc-4.4-locales libgcc1-dbg l
  glibc-doc libstdc++6-4.4-doc make-doc
The following NEW packages will be installed:
  binutils build-essential dpkg-dev fakeroot g++ g++-4.4 gcc gcc-4.4 libalgorith
  libc-dev-bin libc6-dev libdpkg-perl libstdc++6-4.4-dev linux-libc-dev make man
0 upgraded, 18 newly installed, 0 to remove and 0 not upgraded.
Need to get 22.9 MB of archives.
0 upgraded, 18 newly installed, 0 to remnal disk space will be used.
Need to get 22.9 MB of archives.
After this operation, 69.4 MB of additioeze/main binutils i386 2.20.1-16 [3,811
Do you want to continue [Y/n]?          e/updates/main linux-libc-dev i386 2.6.3lgorithm-diff-xs-perl libalgorithm-merge
Get:1 http://192.168.15.253/debian/ squeeze/main libc-dev-bin i386 2.11.3-4 [203
Get:2 http://security.debian.org/ squeezeze/main libc6-dev i386 2.11.3-4 [4,800
Get:3 http://192.168.15.253/debian/ squeeze/main gcc-4.4 i386 4.4.5-8 [2,802 kB]+6-4.4-dbg gcc-multilib autoconf automak
Get:4 http://192.168.15.253/debian/ squeeze/main gcc i386 4:4.4.5-1 [4,974 B]   ibgomp1-dbg libmudflap0-dbg libcloog-ppl
Get:5 http://192.168.15.253/debian/ squeeze/main libstdc++6-4.4-dev i386 4.4.5-8
Get:6 http://192.168.15.253/debian/ squekB 0%] [2 linux-libc-dev 530 kB/854 kB 6
Get:7 http://192.168.15.253/debian/ sque                                        m-diff-perl libalgorithm-diff-xs-perl li
Get:8 http://192.168.15.253/debian/ sque                                        pages-dev
Get:9 http://192.168.15.253/debian/ sque
Get:10 http://192.168.15.253/debian/ squ
Get:11 http://192.168.15.253/debian/ squ
Get:12 http://192.168.15.253/debian/ squ
Get:13 http://192.168.15.253/debian/ squ                                        kB]
Get:14 http://192.168.15.253/debian/ squ                                        2-48squeeze1 [854 kB]
Get:15 http://192.168.15.253/debian/ squ                                         kB]
Get:16 http://192.168.15.253/debian/ squ                                        kB]
Get:17 http://192.168.15.253/debian/ squ
Get:18 http://192.168.15.253/debian/ squ
Fetched 22.9 MB in 2s (10.3 MB/s)                                                [1,529 kB]
Selecting previously deselected package binutils.g++-4.4 i386 4.4.5-8 [5,127 kB]
(Reading database ... 116059 files and directories currently installed.)
Unpacking binutils (from .../binutils_2.20.1-16_i386.deb) ...
Selecting previously deselected package libc-dev-bin.
Unpacking libc-dev-bin (from .../libc-dev-bin_2.11.3-4_i386.deb) ...
Selecting previously deselected package linux-libc-dev.
Unpacking linux-libc-dev (from .../linux-libc-dev_2.6.32-48squeeze1_i386.deb) ..
Selecting previously deselected package libc6-dev..5 kB]
Unpacking libc6-dev (from .../libc6-dev_2.11.3-4_i386.deb) ...
Selecting previously deselected package gcc-4.4..5 kB]
Unpacking gcc-4.4 (from .../gcc-4.4_4.4.5-8_i386.deb) ...
Selecting previously deselected package gcc.
Unpacking gcc (from .../gcc_4%3a4.4.5-1_i386.deb) ...
Selecting previously deselected package libstdc++6-4.4-dev.
Unpacking libstdc++6-4.4-dev (from .../libstdc++6-4.4-dev_4.4.5-8_i386.deb) ...
Selecting previously deselected package g++-4.4.
Unpacking g++-4.4 (from .../g++-4.4_4.4.5-8_i386.deb) ...
Selecting previously deselected package g++.
Unpacking g++ (from .../g++_4%3a4.4.5-1_i386.deb) ...
Selecting previously deselected package make.
Unpacking make (from .../archives/make_3.81-8_i386.deb) ...
Selecting previously deselected package libdpkg-perl.
Unpacking libdpkg-perl (from .../libdpkg-perl_1.15.8.13_all.deb) ...
Selecting previously deselected package dpkg-dev.
Unpacking dpkg-dev (from .../dpkg-dev_1.15.8.13_all.deb) ...
Selecting previously deselected package build-essential.
Unpacking build-essential (from .../build-essential_11.5_i386.deb) ...
Selecting previously deselected package fakeroot.
Unpacking fakeroot (from .../fakeroot_1.14.4-1_i386.deb) ...
Selecting previously deselected package libalgorithm-diff-perl.
Unpacking libalgorithm-diff-perl (from .../libalgorithm-diff-perl_1.19.02-2_all.
Selecting previously deselected package libalgorithm-diff-xs-perl.
Unpacking libalgorithm-diff-xs-perl (from .../libalgorithm-diff-xs-perl_0.04-1_i
Need to get 7,005 kB of archives.       libalgorithm-merge-perl.
After this operation, 27.6 MB of additio.../libalgorithm-merge-perl_0.08-2_all.d
Do you want to continue [Y/n]?          manpages-dev.
Get:1 http://192.168.15.253/debian/ sques-dev_3.27-1_all.deb) ...
Get:2 http://192.168.15.253/debian/ sque                                        94c42c0e1a-1 [6,207 kB]
Fetched 7,005 kB in 0s (11.4 MB/s)                                              e1a-1 [798 kB]
eze1) ...
                                        b) ...
                                        oc/help.txt.vim-tiny by vim-runtime'
                                        ags.vim-tiny by vim-runtime'
root-sysv to provide /usr/bin/fakeroot (
02-2) ...
04-1) ...
-2) ...                                 uto mode.
                                        ff) in auto mode.
...                                      auto mode.
                                        in auto mode.
                                        o mode.
to provide /usr/bin/c++ (c++) in auto mo auto mode.
Setting up build-essential (11.5) ...
root@linux7:/tmp# apt-get install bash-completion
Reading package lists... Done
Building dependency tree
Reading state information... Done
bash-completion is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@linux7:/tmp# passwd
avahi        daemon       games        irc          lp           messagebus   pr
backup       Debian-exim  gnats        libuuid      mail         news         ro
bin          Debian-gdm   hplip        list         man          nobody       sa
root@linux7:/tmp# vim
-bash: vim: command not found
root@linux7:/tmp# apt-get install vim
Reading package lists... Done
Building dependency tree
Reading state information... 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 7,005 kB of archives.
After this operation, 27.6 MB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://192.168.15.253/debian/ squeeze/main vim-runtime all 2:7.2.445+hg~cb
Get:2 http://192.168.15.253/debian/ squeeze/main vim i386 2:7.2.445+hg~cb94c42c0
Fetched 7,005 kB in 0s (11.4 MB/s)
Selecting previously deselected package vim-runtime.
(Reading database ... 120457 files and directories currently installed.)
Unpacking vim-runtime (from .../vim-runtime_2%3a7.2.445+hg~cb94c42c0e1a-1_all.de
Adding 'diversion of /usr/share/vim/vim72/doc/help.txt to /usr/share/vim/vim72/d
Adding 'diversion of /usr/share/vim/vim72/doc/tags to /usr/share/vim/vim72/doc/t
Selecting previously deselected package vim.
Unpacking vim (from .../vim_2%3a7.2.445+hg~cb94c42c0e1a-1_i386.deb) ...
Processing triggers for man-db ...
Setting up vim-runtime (2:7.2.445+hg~cb94c42c0e1a-1) ...
Processing /usr/share/vim/addons/doc
Setting up vim (2:7.2.445+hg~cb94c42c0e1a-1) ...
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in a
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdi
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview)
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in aut
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
root@linux7:/tmp# grep -r 192.168.15.7 /etc/
/etc/network/interfaces:        address 192.168.15.7
grep: /etc/nologin: No such file or directory
/etc/hosts:192.168.15.7 linux7.unix.nt  linux7
root@linux7:/tmp# #sed -i s/192.168.15.7/192.168.70.1/
root@linux7:/tmp# grep -rl 192.168.15.7 /etc/
/etc/network/interfaces
grep: /etc/nologin: No such file or directory
/etc/hosts
root@linux7:/tmp# sed -i s/192.168.15.7/192.168.70.1/ $(!!)
sed -i s/192.168.15.7/192.168.70.1/ $(grep -rl 192.168.15.7 /etc/)
grep: /etc/nologin: No such file or directory
192.168.70.1/ $(grep -rl 192.168.15.7 /e
~
~
~
root@linux7:/tmp# grep -r 192.168.15.7 /
/etc/network/interfaces:        address
grep: /etc/nologin: No such file or dire
/etc/hosts:192.168.15.7 linux7.unix.nt
root@linux7:/tmp# #sed -i s/192.168.15.7
root@linux7:/tmp# grep -rl 192.168.15.7
/etc/network/interfaces
grep: /etc/nologin: No such file or dire
/etc/hosts
root@linux7:/tmp# sed -i s/192.168.15.7/
sed -i s/192.168.15.7/192.168.70.1/ $(gr
grep: /etc/nologin: No such file or dire
root@linux7:/tmp# grep -rl 192.168.15.7
grep: /etc/nologin: No such file or dire
root@linux7:/tmp# sed -i s/192.168.15.7/192.168.70.1/ $(grep -rl 192.168.15.7 /e
root@linux7:/tmp# sed -i s/192.168.15.7/192.168.70.1/ $(grep -rl 192.168.15.7 /e
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
/253
apt_get_install_this="perl make libmodule-build-perl libc6-dev gcc"
wget=wget
uname -a | egrep -qi '(bsd|darwin)' && wget=fetch
normC='\033[0;39m'
whiteC='\033[1;37m'
redC='\033[0;31m'
greenC='\033[0;32m'
apt_get_install_deps()
{
    return 0
    if which apt-get >& /dev/null
    then
        apt-get install -y $apt_get_install_this
    else
        echo "Please install this dependencies manually:"
        echo $apt_get_install_this
        echo "Have you installed this already (y/n)?"
        echo y | read answer
        if echo $answer | grep -q ^[yY]
        then
"install" 185L, 5277C written
root@linux7:/tmp# bash install
Installing dependencies...
Ok
Downloading l3bashrc...
|   --2013-04-08 18:12:50--  http://xgu.ru/lilalo/l3bashrc
|   Resolving xgu.ru... 178.63.229.230
|   Connecting to xgu.ru|178.63.229.230|:80... connected.
|   HTTP request sent, awaiting response... 200 OK
|   Length: 7857 (7.7K) [text/plain]
|   Saving to: “l3bashrc”
|
|        0K .......                                               100% 12.9K=0.6
|
|   2013-04-08 18:12:51 (12.9 KB/s) - “l3bashrc” saved [7857/7857]
|
Ok
Downloading l3prompt...
|   --2013-04-08 18:12:51--  http://xgu.ru/lilalo/l3prompt
|   Resolving xgu.ru... 178.63.229.230
|   Connecting to xgu.ru|178.63.229.230|:80... connected.
|   HTTP request sent, awaiting response... 200 OK
|   Length: 234 [text/plain]
|   Saving to: “l3prompt”
|
|        0K                                                       100% 35.1M=0s
|
|   2013-04-08 18:12:51 (35.1 MB/s) - “l3prompt” saved [234/234]
|
Ok
Downloading l3-agent...
|   --2013-04-08 18:12:51--  http://xgu.ru/lilalo/l3-agent
|   Resolving xgu.ru... 178.63.229.230
|   Connecting to xgu.ru|178.63.229.230|:80... connected.
|   HTTP request sent, awaiting response... 200 OK
|   Length: 33439 (33K) [text/plain]
|   Saving to: “l3-agent”
|
|        0K .......... .......... .......... ..                   100% 59.4K=0.5
|
|   2013-04-08 18:12:52 (59.4 KB/s) - “l3-agent” saved [33439/33439]
|
|   --2013-04-08 18:12:52--  http://xgu.ru/lilalo/l3config.pm
|   Resolving xgu.ru... 178.63.229.230
|   Connecting to xgu.ru|178.63.229.230|:80... connected.
|   HTTP request sent, awaiting response... 200 OK
|   Length: 5830 (5.7K) [text/x-perl]
|   Saving to: “l3config.pm”
|
|        0K .....                                                 100% 14.2K=0.4
|
|   2013-04-08 18:12:52 (14.2 KB/s) - “l3config.pm” saved [5830/5830]
|
|   --2013-04-08 18:12:52--  http://xgu.ru/lilalo/l3-config
|   Resolving xgu.ru... 178.63.229.230
|   Connecting to xgu.ru|178.63.229.230|:80... connected.
|   HTTP request sent, awaiting response... 200 OK
|   Length: 100 [text/plain]
|   Saving to: “l3-config”
|
|        0K                                                       100% 15.2M=0s
|
|   2013-04-08 18:12:52 (15.2 MB/s) - “l3-config” saved [100/100]
|
Ok
Downloading perl modules for l3-agent...
|   --2013-04-08 18:12:52--  http://xgu.ru/lilalo//Term-VT102.tar.gz
|   Resolving xgu.ru... 178.63.229.230
|   Connecting to xgu.ru|178.63.229.230|:80... connected.
|   HTTP request sent, awaiting response... 200 OK
|   Length: 29802 (29K) [application/x-gzip]
|   Saving to: “Term-VT102.tar.gz”
|
|        0K .......... .......... .........                       100%  355K=0.0
|
|   2013-04-08 18:12:52 (355 KB/s) - “Term-VT102.tar.gz” saved [29802/29802]
|
|   --2013-04-08 18:12:52--  http://xgu.ru/lilalo//Text-Iconv.tar.gz
|   Resolving xgu.ru... 178.63.229.230
|   Connecting to xgu.ru|178.63.229.230|:80... connected.
|   HTTP request sent, awaiting response... 200 OK
|   Length: 10454 (10K) [application/x-gzip]
|   Saving to: “Text-Iconv.tar.gz”
|
|        0K ..........                                            100% 27.1K=0.4
|
|   2013-04-08 18:12:53 (27.1 KB/s) - “Text-Iconv.tar.gz” saved [10454/10454]
|
Ok
Installing perl modules for l3-agent...
|   Term-VT102-0.91/
|   Term-VT102-0.91/t/
|   Term-VT102-0.91/t/07-colour.t
|               \
|   Term-VT102-0.91/t/testbase
|
|   Term-VT102-0.91/t/02-setsize.t
|   chmod 755 blib/arch/auto/Text/Iconv/Iconv.so
|   Term-VT102-0.91/t/13-xonxoff.t
|   cp Iconv.bs blib/arch/auto/Text/Iconv/Iconv.bs
|   Term-VT102-0.91/t/12-cupsvrs.t
|   chmod 644 blib/arch/auto/Text/Iconv/Iconv.bs
|   Term-VT102-0.91/t/09-callback.t
|   Manifying blib/man3/Text::Iconv.3pm
|   Term-VT102-0.91/t/04-cursor.t
|   Files found in blib/arch: installing files in blib/lib into architecture dep
|   Term-VT102-0.91/t/10-decaln.t
|   Installing /usr/local/lib/perl/5.10.1/auto/Text/Iconv/Iconv.bs
|   Term-VT102-0.91/t/05-scrolling.t
|   Installing /usr/local/lib/perl/5.10.1/auto/Text/Iconv/Iconv.so
|   Term-VT102-0.91/t/11-decscrc.t
|   Installing /usr/local/lib/perl/5.10.1/auto/Text/Iconv/autosplit.ix
|   Term-VT102-0.91/t/06-insdel.t
|   Installing /usr/local/lib/perl/5.10.1/Text/Iconv.pm
|   Term-VT102-0.91/t/14-tabstop.t
|   Term-VT102-0.91/t/01-load.t
|   Term-VT102-0.91/t/03-text.t
|   Term-VT102-0.91/t/08-options.t
|   Term-VT102-0.91/MANIFEST
|   Term-VT102-0.91/VT102/
|   Term-VT102-0.91/VT102/examples/
|   Term-VT102-0.91/VT102/examples/ssh-usage.pl
|   Term-VT102-0.91/VT102/examples/sanitize-dump.pl
|   Term-VT102-0.91/VT102/examples/telnet-usage.pl
|   Term-VT102-0.91/Changes
|   Term-VT102-0.91/Makefile.PL
|   Term-VT102-0.91/VT102.pm
|   Term-VT102-0.91/README
|   Term-VT102-0.91/TODO
|   Term-VT102-0.91/META.yml
|   Term-VT102-0.91/INSTALL
|   Term-VT102-0.91/COPYING
|   Checking if your kit is complete...
|   Looks good
|   Writing Makefile for Term::VT102
|   cp VT102.pm blib/lib/Term/VT102.pm
|   cp VT102/examples/ssh-usage.pl blib/lib/Term/VT102/examples/ssh-usage.pl
|   cp VT102/examples/telnet-usage.pl blib/lib/Term/VT102/examples/telnet-usage.
|   cp VT102/examples/sanitize-dump.pl blib/lib/Term/VT102/examples/sanitize-dum
|   Manifying blib/man3/Term::VT102.3pm
|   Manifying blib/man3/Term::VT102.3pm
|   Installing /usr/local/share/perl/5.10.1/Term/VT102.pm
|   Installing /usr/local/share/perl/5.10.1/Term/VT102/examples/ssh-usage.pl
|   Installing /usr/local/share/perl/5.10.1/Term/VT102/examples/sanitize-dump.pl
|   Installing /usr/local/share/perl/5.10.1/Term/VT102/examples/telnet-usage.pl
|   Installing /usr/local/man/man3/Term::VT102.3pm
|   Appending installation info to /usr/local/lib/perl/5.10.1/perllocal.pod
|   Text-Iconv-1.7
|   Text-Iconv-1.7/t
|   Text-Iconv-1.7/t/01_charsets.t
|   Text-Iconv-1.7/t/00_load.t
|   Text-Iconv-1.7/Iconv.xs
|   Text-Iconv-1.7/Changes
|   Text-Iconv-1.7/Iconv.pm
|   Text-Iconv-1.7/MANIFEST
|   Text-Iconv-1.7/typemap
|   Text-Iconv-1.7/Makefile.PL
|   Text-Iconv-1.7/README
|   Text-Iconv-1.7/META.yml
|   Checking for iconv ... ok (iconv apparently in libc)
|
|   NOTE: If you have multiple iconv implementations installed, you might
|         want to make sure that I've found the one you want to use.
|         If necessary, you can explicitly specify paths like this:
|
|         /usr/bin/perl Makefile.PL LIBS='-L/path/to/lib' INC='-I/path/to/includ
|
|   Checking if your kit is complete...
|   Looks good
|   Writing Makefile for Text::Iconv
|   cp Iconv.pm blib/lib/Text/Iconv.pm
|   AutoSplitting blib/lib/Text/Iconv.pm (blib/lib/auto/Text/Iconv)
|   /usr/bin/perl /usr/share/perl/5.10/ExtUtils/xsubpp  -typemap /usr/share/perl
mv Iconv.xsc Iconv.c
|   cc -c   -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fsta
SET_BITS=64 -O2 -g   -DVERSION=\"1.7\" -DXS_VERSION=\"1.7\" -fPIC "-I/usr/lib/pe
|   Running Mkbootstrap for Text::Iconv ()
|   chmod 644 Iconv.bs
|   rm -f blib/arch/auto/Text/Iconv/Iconv.so
|   cc  -shared -O2 -g -L/usr/local/lib -fstack-protector Iconv.o  -o blib/arch/
~
"~/.bashrc" 19L, 630C
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"~/.bash_profile" 3L, 22C written
root@linux7:/tmp# bash
^C
root@linux7:/tmp# exit
logout
Connection to 192.168.70.1 closed.
user@book:~$ ssh root@192.168.70.1
root@192.168.70.1's password:
Linux linux7 2.6.39-bpo.2-686-pae #1 SMP Thu Aug 4 11:02:22 UTC 2011 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Apr  8 18:02:20 2013 from 192.168.15.253
/dev/pts/3
13:59:23
#ssh user@192.168.15.253
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@linux7:~# cd /tmp/
root@linux7:/tmp# tail -f /var/log/messages
Apr  8 17:47:19 linux7 kernel: [   12.167359] Bluetooth: BNEP filters: protocol
Apr  8 17:47:19 linux7 kernel: [   12.169115] Bluetooth: RFCOMM TTY layer initia
Apr  8 17:47:19 linux7 kernel: [   12.169118] Bluetooth: RFCOMM socket layer ini
Apr  8 17:47:19 linux7 kernel: [   12.169120] Bluetooth: RFCOMM ver 1.11
Apr  8 17:48:32 linux7 kernel: [   85.056668] eth0:  setting fullregistered
Apr  8 18:01:54 linux7 kernel: [   85.056838] ADDRCONF(NETDEV_CHA (interrupt-dri
                  nux7 kernel: [  886.562892] sshd (2426): /proc/arallel port drven).
                                                                 -duplex.       iver
                                                                 NGE): eth0: lin
                                                                 2426/oom_adj isk becomes ready
                                                                                 deprecated, please use /proc/2426/oom_score_adj instead.
^C
root@linux7:/tmp#
--2013-04-08 18:03wget http://xgu.ru/lilalo/install
Resolving xgu.ru..:05--  http://xgu.ru/lilalo/install
Connecting to xgu.. 178.63.229.230
HTTP request sent,ru|178.63.229.230|:80... connected.
Length: 5321 (5.2K awaiting response... 200 OK
Saving to: “instal[text/plain]
                  l”
100%[=============
                  ===============================================
2013-04-08 18:03:0
                  6 (7.47 MB/s) - “install” sav5321/5321]
root@linux7:/tmp#
Reading package lists... Donetall build-essentila
Building dependency tree
Reading state information... Done
E: Unable to locate package build-essentila
0 upgraded, 18 newly installed, 0 to remessential
Need to get 22.9 MB of archives.
After this operation, 69.4 MB of additio
Do you want to continue [Y/n]?                                                  lgorithm-diff-xs-perl libalgorithm-merge
Get:1 http://192.168.15.253/debian/ squetalled:
Get:2 http://security.debian.org/ squeez gcc gcc-4.4 libalgorithm-diff-perl liba
Get:3 http://192.168.15.253/debian/ squedev linux-libc-dev make manpages-dev    +6-4.4-dbg gcc-multilib autoconf automak
Get:4 http://192.168.15.253/debian/ sque                                        ibgomp1-dbg libmudflap0-dbg libcloog-ppl
Get:5 http://192.168.15.253/debian/ squeib g++-4.4-multilib gcc-4.4-doc libstdc+
Get:6 http://192.168.15.253/debian/ squep0-4.4-dev gcc-4.4-locales libgcc1-dbg l
Get:7 http://192.168.15.253/debian/ sque                                        m-diff-perl libalgorithm-diff-xs-perl li
Get:8 http://192.168.15.253/debian/ squelled:                                   pages-dev
Get:9 http://192.168.15.253/debian/ squeroot g++ g++-4.4 gcc gcc-4.4 libalgorith
Get:10 http://192.168.15.253/debian/ squbstdc++6-4.4-dev linux-libc-dev make man
Get:11 http://192.168.15.253/debian/ squove and 0 not upgraded.
Get:12 http://192.168.15.253/debian/ squ
Get:13 http://192.168.15.253/debian/ squnal disk space will be used.            kB]
Get:14 http://192.168.15.253/debian/ squ                                        2-48squeeze1 [854 kB]
Get:15 http://192.168.15.253/debian/ squeze/main binutils i386 2.20.1-16 [3,811  kB]
Get:16 http://192.168.15.253/debian/ sque/updates/main linux-libc-dev i386 2.6.3kB]
Get:17 http://192.168.15.253/debian/ squeze/main libc-dev-bin i386 2.11.3-4 [203
Get:18 http://192.168.15.253/debian/ squeze/main libc6-dev i386 2.11.3-4 [4,800
Fetched 22.9 MB in 2s (10.3 MB/s)       eze/main gcc-4.4 i386 4.4.5-8 [2,802 kB] [1,529 kB]
Selecting previously deselected package binutils.g++-4.4 i386 4.4.5-8 [5,127 kB]
(Reading database ... 116059 files and directories currently installed.) 4.4.5-8
Unpacking binutils (from .../binutils_2.20.1-16_i386.deb) ...dev 530 kB/854 kB 6
Selecting previously deselected package libc-dev-bin.
Unpacking libc-dev-bin (from .../libc-dev-bin_2.11.3-4_i386.deb) ...
Selecting previously deselected package linux-libc-dev.
Unpacking linux-libc-dev (from .../linux-libc-dev_2.6.32-48squeeze1_i386.deb) ..
Selecting previously deselected package libc6-dev..5 kB]
Unpacking libc6-dev (from .../libc6-dev_2.11.3-4_i386.deb) ...
Selecting previously deselected package gcc-4.4..5 kB]
Unpacking gcc-4.4 (from .../gcc-4.4_4.4.5-8_i386.deb) ...
Selecting previously deselected package gcc.
Unpacking gcc (from .../gcc_4%3a4.4.5-1_i386.deb) ...
Selecting previously deselected package libstdc++6-4.4-dev.
Unpacking libstdc++6-4.4-dev (from .../libstdc++6-4.4-dev_4.4.5-8_i386.deb) ...
Selecting previously deselected package g++-4.4.
Unpacking g++-4.4 (from .../g++-4.4_4.4.5-8_i386.deb) ...
g++.
i386.deb) ...
make.
.81-8_i386.deb) ...
libdpkg-perl.                           94c42c0e1a-1 [6,207 kB]
-perl_1.15.8.13_all.deb) ...            e1a-1 [798 kB]
dpkg-dev.
15.8.13_all.deb) ...
build-essential.
d-essential_11.5_i386.deb) ...          b) ...
fakeroot.                               oc/help.txt.vim-tiny by vim-runtime'
14.4-1_i386.deb) ...                    ags.vim-tiny by vim-runtime'
libalgorithm-diff-perl.
../libalgorithm-diff-perl_1.19.02-2_all.
Selecting previously deselected package libalgorithm-diff-xs-perl.
Unpacking libalgorithm-diff-xs-perl (from .../libalgorithm-diff-xs-perl_0.04-1_i
Selecting previously deselected package libalgorithm-merge-perl.
Unpacking libalgorithm-merge-perl (from .../libalgorithm-merge-perl_0.08-2_all.d
Selecting previously deselected package manpages-dev.
Unpacking manpages-dev (from .../manpages-dev_3.27-1_all.deb) ...
Processing triggers for man-db ...
Setting up binutils (2.20.1-16) ...
Setting up libc-dev-bin (2.11.3-4) ...
Setting up linux-libc-dev (2.6.32-48squeeze1) ...
Setting up libc6-dev (2.11.3-4) ...
Setting up gcc-4.4 (4.4.5-8) ...
Setting up gcc (4:4.4.5-1) ...
Setting up make (3.81-8) ...
Setting up libdpkg-perl (1.15.8.13) ...
Setting up dpkg-dev (1.15.8.13) ...
Setting up fakeroot (1.14.4-1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (
Setting up libalgorithm-diff-perl (1.19.02-2) ...
Setting up libalgorithm-diff-xs-perl (0.04-1) ...
Setting up libalgorithm-merge-perl (0.08-2) ...
Setting up manpages-dev (3.27-1) ...
Setting up libstdc++6-4.4-dev (4.4.5-8) ...
Setting up g++-4.4 (4.4.5-8) ...
Setting up g++ (4:4.4.5-1) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mo
Setting up build-essential (11.5) ...
root@linux7:/tmp# apt-get install bash-completion
Reading package lists... Done
Building dependency tree
Reading state information... Done
bash-completion is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@linux7:/tmp# passwd
avahi        daemon       games        irc          lp           messagebus   pr
backup       Debian-exim  gnats        libuuid      mail         news         ro
bin          Debian-gdm   hplip        list         man          nobody       sa
root@linux7:/tmp# vim
-bash: vim: command not found
root@linux7:/tmp# apt-get install vim
Reading package lists... Done
Building dependency tree
Reading state information... 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 7,005 kB of archives.
After this operation, 27.6 MB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://192.168.15.253/debian/ squeeze/main vim-runtime all 2:7.2.445+hg~cb
Get:2 http://192.168.15.253/debian/ squeeze/main vim i386 2:7.2.445+hg~cb94c42c0
Fetched 7,005 kB in 0s (11.4 MB/s)
Selecting previously deselected package vim-runtime.
(Reading database ... 120457 files and directories currently installed.)
Unpacking vim-runtime (from .../vim-runtime_2%3a7.2.445+hg~cb94c42c0e1a-1_all.de
Adding 'diversion of /usr/share/vim/vim72/doc/help.txt to /usr/share/vim/vim72/d
Adding 'diversion of /usr/share/vim/vim72/doc/tags to /usr/share/vim/vim72/doc/t
Selecting previously deselected package vim.
Unpacking vim (from .../vim_2%3a7.2.445+hg~cb94c42c0e1a-1_i386.deb) ...
Processing triggers for man-db ...
Setting up vim-runtime (2:7.2.445+hg~cb94c42c0e1a-1) ...
Processing /usr/share/vim/addons/doc
Setting up vim (2:7.2.445+hg~cb94c42c0e1a-1) ...
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in a
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdi
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview)
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in aut
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~                                       etc/
~                                       192.168.15.7
~                                       ctory
~                                       linux7
~                                       /192.168.70.1/
root@linux7:/tmp# grep -r 192.168.15.7 //etc/
/etc/network/interfaces:        address
grep: /etc/nologin: No such file or directory
/etc/hosts:192.168.15.7 linux7.unix.nt
192.168.70.1/ $(!!)
ep -rl 192.168.15.7 /etc/)
ctory
192.168.70.1/ $(grep -rl 192.168.15.7 /e
root@linux7:/tmp# sed -i s/192.168.15.7/192.168.70.1/ $(grep -rl 192.168.15.7 /e
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
        address 192.168.70.1
        netmask 255.255.255.0
        network 192.168.15.0
        broadcast 192.168.15.255
        gateway 192.168.15.253
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 192.168.15.253
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
/253
#!/bin/sh
hostname=`hostname`
uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f`
###############################################################################
#
# Set this variables before installation:
lilalo_user=${lilalo_user:-YOUR-L3BACKEND-USER}
apt_get_install_this="perl make libmodule-build-perl libc6-dev gcc"
wget=wget
uname -a | egrep -qi '(bsd|darwin)' && wget=fetch
normC='\033[0;39m'
whiteC='\033[1;37m'
redC='\033[0;31m'
greenC='\033[0;32m'
apt_get_install_deps()
{
    return 0
    if which apt-get >& /dev/null
    then
        apt-get install -y $apt_get_install_this
    else
        echo "Please install this dependencies manually:"
        echo $apt_get_install_this
        echo "Have you installed this already (y/n)?"
        echo y | read answer
        if echo $answer | grep -q ^[yY]
        then
"install" 185L, 5277C written
root@linux7:/tmp# bash install
Installing dependencies...
Ok
Downloading l3bashrc...
|   --2013-04-08 18:12:50--  http://xgu.ru/lilalo/l3bashrc
|   Resolving xgu.ru... 178.63.229.230
|   Connecting to xgu.ru|178.63.229.230|:80... connected.
|   HTTP request sent, awaiting response... 200 OK
|   Length: 7857 (7.7K) [text/plain]
|   Saving to: “l3bashrc”
|
|        0K .......                                               100% 12.9K=0.6
|
|   2013-04-08 18:12:51 (12.9 KB/s) - “l3bashrc” saved [7857/7857]
|
Ok
Downloading l3prompt...
|   --2013-04-08 18:12:51--  http://xgu.ru/lilalo/l3prompt
|   Resolving xgu.ru... 178.63.229.230
|   Connecting to xgu.ru|178.63.229.230|:80... connected.
|   HTTP request sent, awaiting response... 200 OK
|   Length: 234 [text/plain]
|   Saving to: “l3prompt”
|
|        0K                                                       100% 35.1M=0s
|
|   2013-04-08 18:12:51 (35.1 MB/s) - “l3prompt” saved [234/234]
|
Ok
Downloading l3-agent...
|   --2013-04-08 18:12:51--  http://xgu.ru/lilalo/l3-agent
|   Resolving xgu.ru... 178.63.229.230
|   Connecting to xgu.ru|178.63.229.230|:80... connected.
|   HTTP request sent, awaiting response... 200 OK
|   Length: 33439 (33K) [text/plain]
|   Saving to: “l3-agent”
|
|        0K .......... .......... .......... ..                   100% 59.4K=0.5
|
|   2013-04-08 18:12:52 (59.4 KB/s) - “l3-agent” saved [33439/33439]
|
|   --2013-04-08 18:12:52--  http://xgu.ru/lilalo/l3config.pm
|   Resolving xgu.ru... 178.63.229.230
|   Connecting to xgu.ru|178.63.229.230|:80... connected.
|   HTTP request sent, awaiting response... 200 OK
|   Length: 5830 (5.7K) [text/x-perl]
|   Saving to: “l3config.pm”
|
|        0K .....                                                 100% 14.2K=0.4
|
|   2013-04-08 18:12:52 (14.2 KB/s) - “l3config.pm” saved [5830/5830]
|
|   --2013-04-08 18:12:52--  http://xgu.ru/lilalo/l3-config
|   Resolving xgu.ru... 178.63.229.230
|   Connecting to xgu.ru|178.63.229.230|:80... connected.
|   HTTP request sent, awaiting response... 200 OK
|   Length: 100 [text/plain]
|   Saving to: “l3-config”
|
|        0K                                                       100% 15.2M=0s
|
|   2013-04-08 18:12:52 (15.2 MB/s) - “l3-config” saved [100/100]
|
Ok
Downloading perl modules for l3-agent...
|   --2013-04-08 18:12:52--  http://xgu.ru/lilalo//Term-VT102.tar.gz
|   Resolving xgu.ru... 178.63.229.230
|   Connecting to xgu.ru|178.63.229.230|:80... connected.
|   HTTP request sent, awaiting response... 200 OK
|   Length: 29802 (29K) [application/x-gzip]
|   Saving to: “Term-VT102.tar.gz”
|
|        0K .......... .......... .........                       100%  355K=0.0
|
|   2013-04-08 18:12:52 (355 KB/s) - “Term-VT102.tar.gz” saved [29802/29802]
|
|   --2013-04-08 18:12:52--  http://xgu.ru/lilalo//Text-Iconv.tar.gz
|   Resolving xgu.ru... 178.63.229.230
|   Connecting to xgu.ru|178.63.229.230|:80... connected.
|   HTTP request sent, awaiting response... 200 OK
|   Length: 10454 (10K) [application/x-gzip]
|   Saving to: “Text-Iconv.tar.gz”
|
|        0K ..........                                            100% 27.1K=0.4
|
|   2013-04-08 18:12:53 (27.1 KB/s) - “Text-Iconv.tar.gz” saved [10454/10454]
|
Ok
Installing perl modules for l3-agent...
|   Term-VT102-0.91/
|   Term-VT102-0.91/t/
|   Term-VT102-0.91/t/07-colour.t
|   Term-VT102-0.91/t/testbase
|   Term-VT102-0.91/t/02-setsize.t
|   Term-VT102-0.91/t/13-xonxoff.t
|   Term-VT102-0.91/t/12-cupsvrs.t
|   Term-VT102-0.91/t/09-callback.t
|   Term-VT102-0.91/t/04-cursor.t
|   Term-VT102-0.91/t/10-decaln.t
|   Term-VT102-0.91/t/05-scrolling.t
|   Term-VT102-0.91/t/11-decscrc.t
|   Term-VT102-0.91/t/06-insdel.t
|   Term-VT102-0.91/t/14-tabstop.t
|   Term-VT102-0.91/t/01-load.t
|   Term-VT102-0.91/t/03-text.t
|   Term-VT102-0.91/t/08-options.t
|   Term-VT102-0.91/MANIFEST
|   Term-VT102-0.91/VT102/
|   Term-VT102-0.91/VT102/examples/
|   Term-VT102-0.91/VT102/examples/ssh-usage.pl
|   Term-VT102-0.91/VT102/examples/sanitize-dump.pl
|   Term-VT102-0.91/VT102/examples/telnet-usage.pl
|   Term-VT102-0.91/Changes
|   Term-VT102-0.91/Makefile.PL
|   Term-VT102-0.91/VT102.pm
|   Term-VT102-0.91/README
|   Term-VT102-0.91/TODO
|   Term-VT102-0.91/META.yml
|   Term-VT102-0.91/INSTALL
|   Term-VT102-0.91/COPYING
|   Checking if your kit is complete...
|   Looks good
|   Writing Makefile for Term::VT102
|   cp VT102.pm blib/lib/Term/VT102.pm
|   cp VT102/examples/ssh-usage.pl blib/lib/Term/VT102/examples/ssh-usage.pl
|   cp VT102/examples/telnet-usage.pl blib/lib/Term/VT102/examples/telnet-usage.
|   cp VT102/examples/sanitize-dump.pl blib/lib/Term/VT102/examples/sanitize-dum
|   Manifying blib/man3/Term::VT102.3pm
|   Manifying blib/man3/Term::VT102.3pm
|   Installing /usr/local/share/perl/5.10.1/Term/VT102.pm
|   Installing /usr/local/share/perl/5.10.1/Term/VT102/examples/ssh-usage.pl
|   Installing /usr/local/share/perl/5.10.1/Term/VT102/examples/sanitize-dump.pl
|   Installing /usr/local/share/perl/5.10.1/Term/VT102/examples/telnet-usage.pl
|   Installing /usr/local/man/man3/Term::VT102.3pm
|   Appending installation info to /usr/local/lib/perl/5.10.1/perllocal.pod
|   Text-Iconv-1.7
|   Text-Iconv-1.7/t
|   Text-Iconv-1.7/t/01_charsets.t
|   Text-Iconv-1.7/t/00_load.t
|   Text-Iconv-1.7/Iconv.xs
|   Text-Iconv-1.7/Changes
|   Text-Iconv-1.7/Iconv.pm
|   Text-Iconv-1.7/MANIFEST
|   Text-Iconv-1.7/typemap
|   Text-Iconv-1.7/Makefile.PL
|   Text-Iconv-1.7/README
|   Text-Iconv-1.7/META.yml
|   Checking for iconv ... ok (iconv apparently in libc)
|
|   NOTE: If you have multiple iconv implementations installed, you might
|         want to make sure that I've found the one you want to use.
|         If necessary, you can explicitly specify paths like this:
|
|         /usr/bin/perl Makefile.PL LIBS='-L/path/to/lib' INC='-I/path/to/includ
|
|   Checking if your kit is complete...
|   Looks good
|   Writing Makefile for Text::Iconv
|   cp Iconv.pm blib/lib/Text/Iconv.pm
|   AutoSplitting blib/lib/Text/Iconv.pm (blib/lib/auto/Text/Iconv)
|   /usr/bin/perl /usr/share/perl/5.10/ExtUtils/xsubpp  -typemap /usr/share/perl
mv Iconv.xsc Iconv.c
|   cc -c   -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fsta
~
~
~
~
~
~
~
"~/.bashrc" 19L, 630C
"~/.bash_profile" 2L, 10C
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"~/.bash_profile" 3L, 22C written
root@linux7:/tmp# bash
^C
root@linux7:/tmp# exit
logout
Connection to 192.168.70.1 closed.
user@book:~$ ssh root@192.168.70.1
root@192.168.70.1's password:
Linux linux7 2.6.39-bpo.2-686-pae #1 SMP Thu Aug 4 11:02:22 UTC 2011 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Apr  8 18:02:20 2013 from 192.168.15.253