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

/dev/pts/3
13:59:42
$ssh 192.168.15.253
ProCurve Switch 3400cl-48G(config)#                                                                                                              |
ProCurve Switch 3400cl-48G(config)# wr m                                                                                                         |
ProCurve Switch 3400cl-48G(config)# ping 10.0.35.1                                                                                               |
10.0.35.1 is alive, time = 1 ms                                                                                                                  |
ProCurve Switch 3400cl-48G(config)# ~                                                                                                            |
Invalid input: ~                                                                                                                                 |
ProCurve Switch 3400cl-48G(config)#                                                                                                              |
ProCurve Switch 3400cl-48G(config)#                                                                                                              |
ProCurve Switch 3400cl-48G(config)#                                                                                                              |
ProCurve Switch 3400cl-48G(config)#                                                                                                              |
ProCurve Switch 3400cl-48G(config)#                                                                                                              |
ProCurve Switch 3400cl-48G(config)#                                                                                                              |
ProCurve Switch 3400cl-48G(config)#                                                                                                              |
ProCurve Switch 3400cl-48G(config)#                                                                                                              |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                             +----------------------+
                                                                                                                                                 |
                                                             | Leave without reset? |
                                                                                                                                                 |
                                                             |               No     |
                                                                                                                                                 |
                                                             +----------------------+
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
Offending RSA key in /home/user/.ssh/known_hosts:71
RSA host key for 192.168.70.1 has changed and you have requested strict checking.
Host key verification failed.
user@book:~$ ssh-keygen -R 192.168.70.1
/home/user/.ssh/known_hosts updated.
Original contents retained as /home/user/.ssh/known_hosts.old
user@book:~$ ssh root@192.168.70.1
The authenticity of host '192.168.70.1 (192.168.70.1)' can't be established.
^C
root@linux7:/tmp# wget http://xgu.ru/lilalo/install                                                                                              |
--2013-04-08 18:03:05--  http://xgu.ru/lilalo/install
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: 5321 (5.2K) [text/plain]
Saving to: “install”
100%[=======================================================================================================>] 5,321       --.-K/s   in 0.001s
2013-04-08 18:03:06 (7.47 MB/s) - “install” saved [5321/5321]
RSA key fingerprint is 73:fd:3b:ee:91:b1:73:e4:99:4a:bf:1e:12:f3:c3:8e.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.70.1' (RSA) to the list of known hosts.
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.
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 multicast
Apr  8 17:47:19 linux7 kernel: [   12.169115] Bluetooth: RFCOMM TTY layer initialized
Apr  8 17:47:19 linux7 kernel: [   12.169118] Bluetooth: RFCOMM socket layer initialized
Apr  8 17:47:19 linux7 kernel: [   12.169120] Bluetooth: RFCOMM ver 1.11
Apr  8 17:47:19 linux7 kernel: [   12.207226] Bridge firewalling registered
Apr  8 17:47:20 linux7 kernel: [   12.656759] lp0: using parport0 (interrupt-driven).
Apr  8 17:47:20 linux7 kernel: [   12.705388] ppdev: user-space parallel port driver
Apr  8 17:48:32 linux7 kernel: [   85.056668] eth0:  setting full-duplex.
Apr  8 17:48:32 linux7 kernel: [   85.056838] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Apr  8 18:01:54 linux7 kernel: [  886.562892] sshd (2426): /proc/2426/oom_adj is deprecated, please use /proc/2426/oom_score_adj instead.
root@linux7:/tmp# apt-get install build-essentila                                                                                                |
Reading package lists... Done
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 libalgorithm-diff-xs-perl libalgorithm-merge-perl libc-dev-bin
  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++6-4.4-dbg gcc-multilib autoconf automake1.9 libtool flex bison
  gdb gcc-doc gcc-4.4-multilib libmudflap0-4.4-dev gcc-4.4-locales libgcc1-dbg libgomp1-dbg libmudflap0-dbg libcloog-ppl0 libppl-c2 libppl7
  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 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl
  libc-dev-bin libc6-dev libdpkg-perl libstdc++6-4.4-dev linux-libc-dev make manpages-dev
0 upgraded, 18 newly installed, 0 to remove and 0 not upgraded.
Need to get 22.9 MB of archives.
After this operation, 69.4 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 binutils i386 2.20.1-16 [3,811 kB]
Get:2 http://security.debian.org/ squeeze/updates/main linux-libc-dev i386 2.6.32-48squeeze1 [854 kB]
Get:3 http://192.168.15.253/debian/ squeeze/main libc-dev-bin i386 2.11.3-4 [203 kB]
Get:4 http://192.168.15.253/debian/ squeeze/main libc6-dev i386 2.11.3-4 [4,800 kB]
Get:5 http://192.168.15.253/debian/ squeeze/main gcc-4.4 i386 4.4.5-8 [2,802 kB]
Get:6 http://192.168.15.253/debian/ squeeze/main gcc i386 4:4.4.5-1 [4,974 B]
Get:7 http://192.168.15.253/debian/ squeeze/main libstdc++6-4.4-dev i386 4.4.5-8 [1,529 kB]
Get:8 http://192.168.15.253/debian/ squeeze/main g++-4.4 i386 4.4.5-8 [5,127 kB]
Get:9 http://192.168.15.253/debian/ squeeze/main g++ i386 4:4.4.5-1 [1,372 B]
Get:10 http://192.168.15.253/debian/ squeeze/main make i386 3.81-8 [392 kB]
Get:11 http://192.168.15.253/debian/ squeeze/main libdpkg-perl all 1.15.8.13 [695 kB]
Get:12 http://192.168.15.253/debian/ squeeze/main dpkg-dev all 1.15.8.13 [813 kB]
Get:13 http://192.168.15.253/debian/ squeeze/main build-essential i386 11.5 [7,190 B]
Get:14 http://192.168.15.253/debian/ squeeze/main fakeroot i386 1.14.4-1 [117 kB]
Get:15 http://192.168.15.253/debian/ squeeze/main libalgorithm-diff-perl all 1.19.02-2 [51.5 kB]
Get:16 http://192.168.15.253/debian/ squeeze/main libalgorithm-diff-xs-perl i386 0.04-1 [13.1 kB]
Get:17 http://192.168.15.253/debian/ squeeze/main libalgorithm-merge-perl all 0.08-2 [13.5 kB]
Get:18 http://192.168.15.253/debian/ squeeze/main manpages-dev all 3.27-1 [1,639 kB]
Fetched 22.9 MB in 2s (10.3 MB/s)
Selecting previously deselected package binutils.
(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.
Unpacking libc6-dev (from .../libc6-dev_2.11.3-4_i386.deb) ...
Selecting previously deselected package gcc-4.4.
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.deb) ...
Selecting previously deselected package libalgorithm-diff-xs-perl.
Unpacking libalgorithm-diff-xs-perl (from .../libalgorithm-diff-xs-perl_0.04-1_i386.deb) ...
Selecting previously deselected package libalgorithm-merge-perl.
Unpacking libalgorithm-merge-perl (from .../libalgorithm-merge-perl_0.08-2_all.deb) ...
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 (fakeroot) in auto mode.
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 mode.
Setting up build-essential (11.5) ...
# 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.15.7                                                                                                                     |
        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                                                                                                           |
        dns-search unix.nt                                                                                                                       |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                         .70.255                                                                                                                 |
|       dns-search unix.nt
~
~
~
~
~
~
~
~
"/etc/network/interfaces" 18L, 521C written                                                                                                      |
root@linux7:/tmp# vim /etc/network/interfaces
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
                                                                                                                               1,1           All
# 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.70.0                                                                                                                     |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
"/etc/network/interfaces" 18L, 521C                                                                                                              |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
~
~
~
~
~
~
~
"/etc/network/interfaces" 18L, 521C written                                                                                                      |
root@linux7:/tmp# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:01:02:b4:61:12
          inet addr:192.168.70.1  Bcast:192.168.70.255  Mask:255.255.255.0
          inet6 addr: fe80::201:2ff:feb4:6112/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:24996 errors:0 dropped:42 overruns:207 frame:0
          TX packets:13675 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:32055978 (30.5 MiB)  TX bytes:1047786 (1023.2 KiB)
          Interrupt:22 Base address:0xe000
~
eth1      Link encap:Ethernet  HWaddr 00:0f:fe:7e:b9:51
          UP BROADCAST MULTICAST  MTU:1500  Metric:1                                                                           1,1           All
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:19 Memory:f0180000-f01a0000
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:29 errors:0 dropped:0 overruns:0 frame:0
          TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2326 (2.2 KiB)  TX bytes:2326 (2.2 KiB)
root@linux7:/tmp# ifdown eth0; ifup eth0                                                                                                         |
root@linux7:/tmp#
root@linux7:/tmp#
root@linux7:/tmp# shutdown -r +60                                                                                                                |
Broadcast message from root@linux7 (pts/2) (Mon Apr  8 18:11:36 2013):
The system is going DOWN for reboot in 60 minutes!
^Z
^C
Shutdown cancelled.
root@linux7:/tmp# vim install
#!/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}                                                                                                  |
lab=${lab:-SET-YOUR-FIRSTLAB-NAME-HERE}                                                                                                          |
install_l3bashrc_for_this_users=${users:-"root user"}  # users who will use l3agent and l3script                                                 |
lilalo_context="/users/${lilalo_user}/${lab}/${hostname}"                                                                                        |
                                                                                                                                                 |
#                                                                                                                                                |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
"install" 185L, 5321C                                                                                                                            |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
###############################################################################
lilalo_rc=.l3rc
lilalo_home=.lilalo
           =igor-public                                                                                                                          |
lab=nt-voip-2013-04                                                                                                                              |
url_l3bashrc="${url_lilalo}"/l3bashrc
url_l3agent="${url_lilalo}"/l3-agent
url_l3config_pm="${url_lilalo}"/l3config.pm
url_l3config="${url_lilalo}"/l3-config
url_l3prompt="${url_lilalo}"/l3prompt
url_perl_modules=${url_lilalo}/
perl_modules="Term-VT102 Text-Iconv"
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()
{
"install" 185L, 5277C written                                                                                                                    |
root@linux7:/tmp# bash installull
Installing dependencies...
Ok      apt-get install -y $apt_get_install_this
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]yY]
|   Saving to: “l3bashrc”
|                                                                                                                              1,1           Top
|        0K .......                                               100% 12.9K=0.6s
|
|   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.5s
|
|   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.4s
|
|   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]
|   Term-VT102-0.91/VT102/examples/ssh-usage.pl
|   Term-VT102-0.91/VT102/examples/sanitize-dump.pl
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.08s
|
|   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.4s
|
|   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.pl
|   cp VT102/examples/sanitize-dump.pl blib/lib/Term/VT102/examples/sanitize-dump.pl
|   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/include'
|
|   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/5.10/ExtUtils/typemap -typemap typemap  Iconv.xs > Iconv.xsc &&
|   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.pl
|   cp VT102/examples/sanitize-dump.pl blib/lib/Term/VT102/examples/sanitize-dump.pl
|   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/include'
|
|   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/5.10/ExtUtils/typemap -typemap typemap  Iconv.xs > Iconv.xsc &&
mv Iconv.xsc Iconv.c
|   cc -c   -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFF
|   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/auto/Text/Iconv/Iconv.so        \
|               \
|
|   chmod 755 blib/arch/auto/Text/Iconv/Iconv.so
|   cp Iconv.bs blib/arch/auto/Text/Iconv/Iconv.bs
|   chmod 644 blib/arch/auto/Text/Iconv/Iconv.bs
|   Manifying blib/man3/Text::Iconv.3pm
|   Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
|   Installing /usr/local/lib/perl/5.10.1/auto/Text/Iconv/Iconv.bs
|   Installing /usr/local/lib/perl/5.10.1/auto/Text/Iconv/Iconv.so
|   Installing /usr/local/lib/perl/5.10.1/auto/Text/Iconv/autosplit.ix
|   Installing /usr/local/lib/perl/5.10.1/Text/Iconv.pm
|   Installing /usr/local/man/man3/Text::Iconv.3pm
|   Appending installation info to /usr/local/lib/perl/5.10.1/perllocal.pod
Ok
Installing l3bashrc to users home directories...
|   ++ for user in '$users'
|   +++ get_user_home root
|   +++ uname -a
|   +++ egrep -qi '(freebsd|darwin)'
|   +++ getent passwd root
|   +++ awk -F: '{print $6}'
|   ++ user_home=/root
|   ++ mkdir -p /root/.lilalo
|   ++ mkdir /etc/lilalo/
|   ++ cp l3config.pm /etc/lilalo/
|   ++ cp l3-agent /usr/local/bin
|   ++ cp l3-config /usr/local/bin
|   +++ which bash
|   ++ ln -s /bin/bash /usr/local/bin/l3script
|   ++ chmod 755 /usr/local/bin/l3-agent /usr/local/bin/l3-config
|   ++ cp l3bashrc /root/.lilalo
|   ++ cp l3prompt /root/.lilalo
|   ++ chmod 755 /root/.lilalo/l3prompt
|   ++ chown -R root /root/.lilalo
|   ++ echo l3cd=/users/igor-public/nt-voip-2013-04/linux7.unix.nt/root
|   ++ chown -R root /root/.l3rc
|   ++ for user in '$users'
|   +++ get_user_home user
|   +++ uname -a
|   +++ egrep -qi '(freebsd|darwin)'
|   +++ getent passwd user
|   +++ awk -F: '{print $6}'
|   ++ user_home=/home/user
|   ++ mkdir -p /home/user/.lilalo
|   ++ mkdir /etc/lilalo/
|   mkdir: cannot create directory `/etc/lilalo/': File exists
|   ++ cp l3config.pm /etc/lilalo/
|   ++ cp l3-agent /usr/local/bin
|   ++ cp l3-config /usr/local/bin
|   +++ which bash
|   ++ ln -s /bin/bash /usr/local/bin/l3script
|   ln: creating symbolic link `/usr/local/bin/l3script': File exists
|   ++ chmod 755 /usr/local/bin/l3-agent /usr/local/bin/l3-config
|   ++ cp l3bashrc /home/user/.lilalo
|   ++ cp l3prompt /home/user/.lilalo
|   ++ chmod 755 /home/user/.lilalo/l3prompt
|   ++ chown -R user /home/user/.lilalo
|   ++ echo l3cd=/users/igor-public/nt-voip-2013-04/linux7.unix.nt/user
|   ++ chown -R user /home/user/.l3rc
|   ++ set +x
Ok
Adding l3bashrc invocation to ~/.bashrc ...
Ok
Adding l3-agent invocation to ~/.bash_profile ...
Ok
Installation is successfully completed.
Now restart your shell or relogin
to start script writing.
Your current lilalo context is /users/igor-public/nt-voip-2013-04/linux7.unix.nt/USER
If you use xgu.ru backend, your labs will be available at
http://xgu.ru/l3//users/igor-public/nt-voip-2013-04/linux7.unix.nt
Use commands
 $ l3cd /users/igor-public/MY-NEW-CONTEXT/linux7.unix.nt/USER
 $ l3pwd
to change and to know your current context.
For further information see http://xgu.ru/lilalo/ (in Russian).
Thank you gor using LiLaLo.
Happy Labbing!
(don't forget to restart bash or relogin)
root@linux7:/tmp# vim /root/.bashrc                                                                                                              |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
[                ]
~
~
~
~
~
~
~
                                                                                                                               1,1           All
l3-agent                                                                                                                                         |
                                                                                                                                                 |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
~                                                                                                                                                |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
                                                                                                                                                 |
"~/.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