Вторник (05/25/10)

/dev/tty1
14:51:36
#ssh 192.168.15.6
install_l3bashrc_for_this_users=${users:-"root user"}  # users who will use l3ag
lilalo_context="/users/${lilalo_user}/${lab}/${hostname}"
#
###############################################################################
"install" 185 lines, 5285 characters
lilalo_rc=.l3rc
lilalo_home=.lilalo
url_lilalo="http://xgu.ru/lilalo"
url_l3bashrc="${url_lilalo}"/l3bashrc
url_l3agent="${url_lilalo}"/l3-agent
  binutils-doc deb`url_lilalo}"/l3config.pm
                                                              +6-4.3-dbg
  gcc-multilib mani freebsd || hostname=`hostname -f`                           gcc-4.3-multilib
                                                              libc-doc
  libmudflap0-4.3-l_lilalo}"/l3prompt
  libstdc++6-4.3-durl_perl_mod-2010-05rl_lilalo}/
The following NEW perl_modules="Term-VT102 Text-Iconv"
  binutils build-e
  libstdc++6-4.3-d
0 upgraded, 13 newlilalo_user=igor-public
Need to get 15.6MB   =asterisk2
After this operati
Do you want to con                                                              y1 [767kB]
l_lilalo}"/l3prompt
Get:1 http://10.0.
{url_lilalo}/                                                 8kB]
Get:2 http://10.0.rity.debian.org lenny/updates/main dpkg-dev 1.14.29 [771kB]
Get:3 http://10.0.
Get:4 http://10.0.Reading package lists... Done
Get:5 http://10.0.Building dependency tree
Get:6 http://10.0.Reading state information... Done
Get:7 http://10.0.The following extra packages will be installed:
Get:8 http://10.0.  binutils dpkg-dev g++ g++-4.3 gcc gcc-4.3 libc6-dev libgomp1 libstdc++6-4.3-de
Get:9 http://secur  libtimedate-perl linux-libc-dev make
Get:10 http://10.0Suggested packages:
Get:11 http://10.0  binutils-doc debian-keyring g++-multilib g++-4.3-multilib gcc-4.3-doc libstdc+
Get:12 http://secu  gcc-multilib manpages-dev autoconf automake1.9 libtool flex bison gdb gcc-doc
  libmudflap0-4.3-dev gcc-4.3-locales libgcc1-dbg libgomp1-dbg libmudflap0-dbg g
  libstdc++6-4.3-doc make-doc
The following NEW packages will be installed:
  binutils build-essential dpkg-dev g++ g++-4.3 gcc gcc-4.3 libc6-dev libgomp1
  libstdc++6-4.3-dev libtimedate-perl linux-libc-dev make
0 upgraded, 13 newly installed, 0 to remove and 0 not upgraded.
Need to get 15.6MB of archives.
After this operation, 51.6MB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://10.0.35.1 lenny/main binutils 2.18.1~cvs20080103-7 [2686kB]
Get:2 http://10.0.35.1 lenny/main libgomp1 4.3.2-1.1 [13.2kB]
Get:3 http://10.0.35.1 lenny/main gcc-4.3 4.3.2-1.1 [2747kB]
Get:4 http://10.0.35.1 lenny/main gcc 4:4.3.2-2 [5008B]
Get:5 http://10.0.35.1 lenny/main libstdc++6-4.3-dev 4.3.2-1.1 [1389kB]
Get:6 http://10.0.35.1 lenny/main g++-4.3 4.3.2-1.1 [3414kB]
Get:7 http://10.0.35.1 lenny/main g++ 4:4.3.2-2 [1368B]
Get:8 http://10.0.35.1 lenny/main make 3.81-5 [382kB]
Get:9 http://security.debian.org lenny/updates/main linux-libc-dev 2.6.26-22lenn
Get:10 http://10.0.35.1 lenny/main libtimedate-perl 1.1600-9 [32.9kB]
Get:11 http://10.0.35.1 lenny/main build-essential 11.4 [7118B]
Get:12 http://security.debian.org lenny/updates/main libc6-dev 2.7-18lenny2 [338
82% [12 libc6-dev 1352009/3388kB 39%]
Get:13 http://secu
Fetched 15.6MB in 12s (1256kB/s)
Selecting previously deselected package binutils.
(Reading database ... 88066 files and directories currently installed.)
Unpacking binutils (from .../binutils_2.18.1~cvs20080103-7_i386.deb) ...
Selecting previously deselected package linux-libc-dev.
Unpacking linux-libc-dev (from .../linux-libc-dev_2.6.26-22lenny1_i386.deb) ...
Selecting previously deselected package libc6-dev.
Unpacking libc6-dev (from .../libc6-dev_2.7-18lenny2_i386.deb) ...
Selecting previously deselected package libgomp1.
Unpacking libgomp1 (from .../libgomp1_4.3.2-1.1_i386.deb) ...
Selecting previously deselected package gcc-4.3.
Unpacking gcc-4.3 (from .../gcc-4.3_4.3.2-1.1_i386.deb) ...
Selecting previously deselected package gcc.
Unpacking gcc (from .../gcc_4%3a4.3.2-2_i386.deb) ...
Selecting previously deselected package libstdc++6-4.3-dev.
Unpacking libstdc++6-4.3-dev (from .../libstdc++6-4.3-dev_4.3.2-1.1_i386.deb) ..
Selecting previously deselected package g++-4.3.
Unpacking g++-4.3 (from .../g++-4.3_4.3.2-1.1_i386.deb) ...
Selecting previously deselected package g++.
Unpacking g++ (from .../g++_4%3a4.3.2-2_i386.deb) ...
Selecting previously deselected package make.
Unpacking make (from .../archives/make_3.81-5_i386.deb) ...
Selecting previously deselected package libtimedate-perl.
Unpacking libtimedate-perl (from .../libtimedate-perl_1.1600-9_all.deb) ...
Selecting previously deselected package dpkg-dev.
Unpacking dpkg-dev (from .../dpkg-dev_1.14.29_all.deb) ...
Selecting previously deselected package build-essential.
Unpacking build-essential (from .../build-essential_11.4_i386.deb) ...
Processing triggers for man-db ...
Setting up binutils (2.18.1~cvs20080103-7) ...
Setting up linux-libc-dev (2.6.26-22lenny1) ...
Setting up libc6-dev (2.7-18lenny2) ...
Setting up libgomp1 (4.3.2-1.1) ...
Setting up gcc-4.3 (4.3.2-1.1) ...
Setting up gcc (4:4.3.2-2) ...
Setting up make (3.81-5) ...
Setting up libtimedate-perl (1.1600-9) ...
Setting up dpkg-dev (1.14.29) ...
Setting up libstdc++6-4.3-dev (4.3.2-1.1) ...
Setting up g++-4.3 (4.3.2-1.1) ...
Setting up g++ (4:4.3.2-2) ...
Setting up build-essential (11.4) ...
linux6:/tmp#
linux6:/tmp# sh install
Installing dependencies...
Ok
Downloading l3bashrc...
|   --2010-05-25 18:53:53--  http://xgu.ru/lilalo/l3bashrc
|   Resolving xgu.ru... 212.26.146.51
|   Connecting to xgu.ru|212.26.146.51|:80... connected.
|   HTTP request sent, awaiting response... 200 OK
|   Length: 7709 (7.5K) [text/plain]
|   Saving to: `l3bashrc'
|
|        0K .......                                               100%  768K=0.0
|
|   2010-05-25 18:53:53 (768 KB/s) - `l3bashrc' saved [7709/7709]
|
Ok
Downloading l3prompt...
|   --2010-05-25 18:53:53--  http://xgu.ru/lilalo/l3prompt
|   Resolving xgu.ru... 212.26.146.51
|   Connecting to xgu.ru|212.26.146.51|:80... connected.
|   HTTP request sent, awaiting response... 200 OK
|   Length: 234 [text/plain]
|   Saving to: `l3prompt'
|
|        0K                                                       100% 46.7M=0s
|
|   2010-05-25 18:53:53 (46.7 MB/s) - `l3prompt' saved [234/234]
|
Ok
Downloading l3-agent...
|   --2010-05-25 18:53:53--  http://xgu.ru/lilalo/l3-agent
|   Resolving xgu.ru... 212.26.146.51
|   Connecting to xgu.ru|212.26.146.51|:80... connected.
|   HTTP request sent, awaiting response... 200 OK
|   Length: 33439 (33K) [text/plain]
|   Saving to: `l3-agent'
|
|        0K .......... .......... .......... ..                   100% 1.15M=0.0
|
|   2010-05-25 18:53:53 (1.15 MB/s) - `l3-agent' saved [33439/33439]
|
|   --2010-05-25 18:53:53--  http://xgu.ru/lilalo/l3config.pm
|   Resolving xgu.ru... 212.26.146.51
|   Connecting to xgu.ru|212.26.146.51|:80... connected.
|   HTTP request sent, awaiting response... 200 OK
|   Length: 5830 (5.7K) [text/x-perl]
|   Saving to: `l3config.pm'
|
|        0K .....                                                 100%  619K=0.0
|
|   2010-05-25 18:53:53 (619 KB/s) - `l3config.pm' saved [5830/5830]
|
|   --2010-05-25 18:53:53--  http://xgu.ru/lilalo/l3-config
|   Resolving xgu.ru... 212.26.146.51
|   Connecting to xgu.ru|212.26.146.51|:80... connected.
|   HTTP request sent, awaiting response... 200 OK
|   Length: 100 [text/plain]
|   Saving to: `l3-config'
|
|        0K                                                       100% 20.4M=0s
|
|   2010-05-25 18:53:53 (20.4 MB/s) - `l3-config' saved [100/100]
|
Ok
Downloading perl modules for l3-agent...
|   --2010-05-25 18:53:53--  http://xgu.ru/lilalo//Term-VT102.tar.gz
|   Resolving xgu.ru... 212.26.146.51
|   Connecting to xgu.ru|212.26.146.51|:80... connected.
|   HTTP request sent, awaiting response... 200 OK
|   Length: 29802 (29K) [application/x-gzip]
|   Saving to: `Term-VT102.tar.gz'
|
|        0K .......... .......... .........                       100% 1.15M=0.0
|
|   2010-05-25 18:53:53 (1.15 MB/s) - `Term-VT102.tar.gz' saved [29802/29802]
|
|   --2010-05-25 18:53:53--  http://xgu.ru/lilalo//Text-Iconv.tar.gz
|   Resolving xgu.ru... 212.26.146.51
|   Connecting to xgu.ru|212.26.146.51|:80... connected.
|   HTTP request sent, awaiting response... 200 OK
|   Length: 10454 (10K) [application/x-gzip]
|   Saving to: `Text-Iconv.tar.gz'
|
|        0K ..........                                            100%  998K=0.0
|
|   2010-05-25 18:53:53 (998 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
|   Installing /usr/local/share/perl/5.10.0/Term/VT102.pm
|   Installing /usr/local/share/perl/5.10.0/Term/VT102/examples/sanitize-dump.pl
|   Installing /usr/local/share/perl/5.10.0/Term/VT102/examples/ssh-usage.pl
|   Installing /usr/local/share/perl/5.10.0/Term/VT102/examples/telnet-usage.pl
|   Installing /usr/local/man/man3/Term::VT102.3pm
|   Writing /usr/local/lib/perl/5.10.0/auto/Term/VT102/.packlist
|   Appending installation info to /usr/local/lib/perl/5.10.0/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
emap -typemap typemap  Iconv.xs > Iconv.xsc && mv Iconv.xsc Iconv.c
|   cc -c   -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/us
_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"1.7\" -DXS_VERSION
/usr/lib/perl/5.10/CORE"   Iconv.c
|   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 Iconv.o  -o blib/arch/auto/Text/Iconv/Ic
|               \
|
|   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 dep
e
|   Installing /usr/local/lib/perl/5.10.0/auto/Text/Iconv/Iconv.so
|   Installing /usr/local/lib/perl/5.10.0/auto/Text/Iconv/Iconv.bs
|   Installing /usr/local/lib/perl/5.10.0/Text/Iconv.pm
|   Installing /usr/local/lib/perl/5.10.0/auto/Text/Iconv/autosplit.ix
|   Installing /usr/local/man/man3/Text::Iconv.3pm
|   Writing /usr/local/lib/perl/5.10.0/auto/Text/Iconv/.packlist
|   Appending installation info to /usr/local/lib/perl/5.10.0/perllocal.pod
Ok
Installing l3bashrc to users home directories...
|   ++ for user in '$users'
|   +++ get_user_home root
|   +++ uname -a
|   +++ grep -qi freebsd
|   +++ 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/asterisk-2010-05/linux6.unix.nt.unix.nt/root
|   ++ chown -R root /root/.l3rc
|   ++ for user in '$users'
|   +++ get_user_home user
|   +++ uname -a
|   +++ grep -qi freebsd
|   +++ 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/asterisk-2010-05/linux6.unix.nt.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/asterisk-2010-05/linux6.unix.n
If you use xgu.ru backend, your labs will be available at
http://xgu.ru/l3//users/igor-public/asterisk-2010-05/linux6.unix.nt.unix.nt
Use commands
 $ l3cd /users/igor-public/MY-NEW-CONTEXT/linux6.unix.nt.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!
[ -z "$PS1" ] && return
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
    debian_chroot=$(cat /etc/debian_chroot)
fi
# set a fancy prompt (non-color, overwrite the one in /etc/profile)
# Commented out, don't overwrite xterm -T "title" -n "icontitle" by default.
# If this is an xterm set the title to user@host:dir
#case "$TERM" in
#xterm*|rxvt*)
#    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
#    ;;
#*)
#    ;;
#esac
# enable bash completion in interactive shells
fi
#if [ -f /etc/bash_completion ]; then
"/etc/bash.bashrc" 47 lines, 1450 characters written