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

Содержание

Журнал

Пятница (02/29/08)

/dev/pts/3
10:24:19
#apt-cache search curses dev
adduser-ui-cdk - Cdk-based User Interface for adduser-ng
bochs-term - Terminal (ncurses-based) plugin for Bochs
btscanner - ncurses-based scanner for Bluetooth devices
bwm-ng - small and simple console-based bandwidth monitor
cbm - display the current network traffic in colors
dav-text - A minimalist ncurses-based text editor
giftcurs - text-based interface to the giFT file-sharing system
lib64ncurses5-dev - Developer's libraries for ncurses (64-bit)
libcdk-perl - Perl interface for a curses widget library
libcdk5 - C-based curses widget library
...
libstfl-dev - structured terminal forms language/library
lynx - Text-mode WWW Browser
moc - ncurses based console audio player
mybashburn - Burn data and create songs with interactive dialog box
ncdu - ncurses disk usage viewer
php5-cli - command-line interpreter for the php5 scripting language
python-urwid - curses-based UI/widget library for Python
tcd - Portable CD player with an ncurses interface
librote-dev - a simple C library for VT102 terminal emulation - development
php4-cli - command-line interpreter for the php4 scripting language
10:24:46
#apt-cache search libcurses
libcurses-ocaml - OCaml bindings for the ncurses library
libcurses-ocaml-dev - OCaml bindings for the ncurses library
libcurses-perl - Curses interface for Perl
libcurses-ruby - transitional dummy package
libcurses-ui-perl - curses-based OO user interface framework for Perl
libcurses-widgets-perl - Curses widget interface for Perl
libruby - Libraries necessary to run Ruby 1.8.x
libruby1.8 - Libraries necessary to run Ruby 1.8
10:26:06
#apt-get install libcurses-perl
Читання переліків пакетів... Виконано
Побудова дерева залежностей
Reading state information... Виконано
НОВІ пакунки, які будуть встановлені:
  libcurses-perl
оновлено 0, встановлено 1 нових пакунків, для видалення відмічено 0 пакунків, і 13 пакунків не оновлено.
Необхідно завантажити 130kB архівів.
After this operation, 459kB of additional disk space will be used.
Отр:1 http://192.168.15.254 sid/main libcurses-perl 1.21-1 [130kB]
Отримано 130kB за 1sB (72,1kB/s)
Selecting previously deselected package libcurses-perl.
(Reading database ... 52967 files and directories currently installed.)
Unpacking libcurses-perl (from .../libcurses-perl_1.21-1_i386.deb) ...
Setting up libcurses-perl (1.21-1) ...
10:26:30
#apt-get install curses python
Читання переліків пакетів... Виконано
Побудова дерева залежностей
Reading state information... Виконано
E: Не можу знайти пакунок curses
10:26:44
#apt-cache search curses python
ekg - console Gadu Gadu client for UNIX systems
mped - Minimum Profit, a programmer's text editor
mucous - Python/curses client for museekd
php5-cli - command-line interpreter for the php5 scripting language
python-stfl - Python bindings for the structured terminal forms language/library
python-urwid - curses-based UI/widget library for Python
winpdb - Platform independent Python debugger
php4-cli - command-line interpreter for the php4 scripting language
10:26:55
#apt-cache search curses header
lib64ncurses5-dev - Developer's libraries for ncurses (64-bit)
libcdk5-dev - C-based curses widget library (development files)
libhunspell-dev - spell checker and morphological analyzer (development)
libncurses5-dev - Developer's libraries and docs for ncurses
libncursesw5-dev - Developer's libraries for ncursesw
nast - packet sniffer and lan analyzer
10:27:07
#apt-get install libncurses5-dev
Читання переліків пакетів... Виконано
Побудова дерева залежностей
Reading state information... Виконано
НОВІ пакунки, які будуть встановлені:
  libncurses5-dev
оновлено 0, встановлено 1 нових пакунків, для видалення відмічено 0 пакунків, і 13 пакунків не оновлено.
Необхідно завантажити 1499kB архівів.
After this operation, 6509kB of additional disk space will be used.
Отр:1 http://192.168.15.254 sid/main libncurses5-dev 5.6+20080203-1 [1499kB]
Отримано 1499kB за 8sB (169kB/s)
Selecting previously deselected package libncurses5-dev.
(Reading database ... 52984 files and directories currently installed.)
Unpacking libncurses5-dev (from .../libncurses5-dev_5.6+20080203-1_i386.deb) ...
Setting up libncurses5-dev (5.6+20080203-1) ...
10:27:33
#make world
make -C tests clean
make[5]: Вхожу у каталог "/usr/src/xen-unstable.hg/tools/ioemu/tests"
rm -f *~ *.o test-i386.out test-i386.ref \
           test-x86_64.log test-x86_64.ref qruncom sha1
make[5]: Залишаю каталог "/usr/src/xen-unstable.hg/tools/ioemu/tests"
for d in ; do \
        [ -d $d ] && make -C $d clean || exit 0 ; \
        done
rm -f config-host.mak config-host.h
rm -f qemu-{doc,tech}.{info,aux,cp,dvi,fn,info,ky,log,pg,toc,tp,vr}
...
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-unstable.hg/xen/include -I/usr/src/xen-unstable.hg/xen/include/asm-x86/mach-generic -I/usr/src/xen-unstable.hg/xen/include/asm-x86/mach
ld -melf_i386 -r -o built_in.o libelf-tools.o libelf-loader.o libelf-dominfo.o
make[6]: Залишаю каталог "/usr/src/xen-unstable.hg/xen/common/libelf"
ld -melf_i386 -r -o built_in.o bitmap.o domctl.o domain.o event_channel.o grant_table.o kernel.o keyhandler.o kexec.o lib.o memory.o multicall.o page_alloc.o rangeset.o sched_credit.o sched_sedf.o schedule.o shutdown.o softirq.o stop_machine.o string.o symbols.o sysctl.o time.o timer.o trace.o version.o vsprintf.o xmalloc.o rcupdate.o xenoprof.o hvm/built_in.o libelf/built_in.o
make[5]: Залишаю каталог "/usr/src/xen-unstable.hg/xen/common"
make -f /usr/src/xen-unstable.hg/xen/Rules.mk -C /usr/src/xen-unstable.hg/xen/drivers built_in.o
make[5]: Вхожу у каталог "/usr/src/xen-unstable.hg/xen/drivers"
make -f /usr/src/xen-unstable.hg/xen/Rules.mk -C char built_in.o
make[6]: Вхожу у каталог "/usr/src/xen-unstable.hg/xen/drivers/char"
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-unstable.hg/xen/include -I/usr/src/xen-unstable.hg/xen/include/asm-x86/mach-generic -I/usr/src/xen-unstable.hg/xen/include/asm-x86/mach
/dev/pts/7
10:31:15
#rdesktop 192.168.15.247
WARNING: Remote desktop does not support colour depth 24; falling back to 16
10:33:57
#ping www.yahoo.com
PING www.yahoo-ht3.akadns.net (87.248.113.14) 56(84) bytes of data.
64 bytes from f1.us.www.vip.ird.yahoo.com (87.248.113.14): icmp_seq=1 ttl=53 time=95.8 ms
64 bytes from f1.us.www.vip.ird.yahoo.com (87.248.113.14): icmp_seq=2 ttl=53 time=137 ms
--- www.yahoo-ht3.akadns.net ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1009ms
rtt min/avg/max/mdev = 95.830/116.610/137.391/20.783 ms
/dev/pts/11
10:34:18
#vncviewer 127.0.0.1:0
VNC viewer version 3.3.7 - built Dec 30 2006 12:48:54
Copyright (C) 2002-2003 RealVNC Ltd.
Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
See http://www.realvnc.com for information on VNC.
VNC server supports protocol version 3.8 (viewer 3.3)
No authentication needed
Desktop name "Xen-winxp"
Connected to VNC server, using protocol version 3.3
VNC server default format:
  32 bits per pixel.
...
  True colour: max red 7 green 7 blue 3, shift red 0 green 3 blue 6
Using shared memory PutImage
Throughput 11666 kbit/s - changing to Hextile
Throughput 11666 kbit/s - changing from 8bit
Using viewer's native pixel format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
ReadFromRFBServer: rdr::EndOfStream
ShmCleanup called
10:34:57
#xm create winxp
Using config file "/etc/xen/winxp".
Error: Domain 'winxp' already exists with ID '18'
10:39:32
#vncviewer 127.0.0.1:0
VNC viewer version 3.3.7 - built Dec 30 2006 12:48:54
Copyright (C) 2002-2003 RealVNC Ltd.
Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
See http://www.realvnc.com for information on VNC.
VNC server supports protocol version 3.8 (viewer 3.3)
No authentication needed
Desktop name "Xen-winxp"
Connected to VNC server, using protocol version 3.3
VNC server default format:
  32 bits per pixel.
...
Using shared memory PutImage
Throughput 20129 kbit/s - changing to Hextile
Throughput 20129 kbit/s - changing from 8bit
Using viewer's native pixel format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
Throughput 20000 kbit/s - changing to Raw
ReadFromRFBServer: rdr::SystemException: read: Connection reset by peer (104)
ShmCleanup called
10:42:36
#vncviewer 127.0.0.1:0
VNC viewer version 3.3.7 - built Dec 30 2006 12:48:54
Copyright (C) 2002-2003 RealVNC Ltd.
Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
See http://www.realvnc.com for information on VNC.
VNC server supports protocol version 3.8 (viewer 3.3)
No authentication needed
Desktop name "Xen-winxp"
Connected to VNC server, using protocol version 3.3
VNC server default format:
  32 bits per pixel.
...
  8 bits per pixel.
  True colour: max red 7 green 7 blue 3, shift red 0 green 3 blue 6
Using shared memory PutImage
Throughput 20000 kbit/s - changing to Hextile
Throughput 20000 kbit/s - changing from 8bit
Using viewer's native pixel format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
ShmCleanup called
10:43:00
#vncviewer 127.0.0.1:0
VNC viewer version 3.3.7 - built Dec 30 2006 12:48:54
Copyright (C) 2002-2003 RealVNC Ltd.
Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
See http://www.realvnc.com for information on VNC.
VNC server supports protocol version 3.8 (viewer 3.3)
No authentication needed
Desktop name "Xen-winxp"
Connected to VNC server, using protocol version 3.3
VNC server default format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
Using default colormap and visual, TrueColor, depth 24.
Got 256 exact BGR233 colours out of 256
Using BGR233 pixel format:
  8 bits per pixel.
  True colour: max red 7 green 7 blue 3, shift red 0 green 3 blue 6
Using shared memory PutImage
ShmCleanup called
10:43:08
#vncviewer 127.0.0.1:0
VNC viewer version 3.3.7 - built Dec 30 2006 12:48:54
Copyright (C) 2002-2003 RealVNC Ltd.
Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
See http://www.realvnc.com for information on VNC.
VNC server supports protocol version 3.8 (viewer 3.3)
No authentication needed
Desktop name "Xen-winxp"
Connected to VNC server, using protocol version 3.3
VNC server default format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
Using default colormap and visual, TrueColor, depth 24.
Got 256 exact BGR233 colours out of 256
Using BGR233 pixel format:
  8 bits per pixel.
  True colour: max red 7 green 7 blue 3, shift red 0 green 3 blue 6
Using shared memory PutImage
ShmCleanup called
10:43:20
#vncviewer 127.0.0.1:0
VNC viewer version 3.3.7 - built Dec 30 2006 12:48:54
Copyright (C) 2002-2003 RealVNC Ltd.
Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
See http://www.realvnc.com for information on VNC.
VNC server supports protocol version 3.8 (viewer 3.3)
No authentication needed
Desktop name "Xen-winxp"
Connected to VNC server, using protocol version 3.3
VNC server default format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
Using default colormap and visual, TrueColor, depth 24.
Got 256 exact BGR233 colours out of 256
Using BGR233 pixel format:
  8 bits per pixel.
  True colour: max red 7 green 7 blue 3, shift red 0 green 3 blue 6
Using shared memory PutImage
ShmCleanup called
10:43:32
#xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0   250     2     r-----   8009.2
winxp                                       19   256     1     -b----     11.0
10:43:39
#xm destroy 19

10:44:03
#vncviewer 127.0.0.1:0
VNC viewer version 3.3.7 - built Dec 30 2006 12:48:54
Copyright (C) 2002-2003 RealVNC Ltd.
Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
See http://www.realvnc.com for information on VNC.
VNC server supports protocol version 3.8 (viewer 3.3)
No authentication needed
Desktop name "Xen-win2k3_clone"
Connected to VNC server, using protocol version 3.3
VNC server default format:
  32 bits per pixel.
...
  8 bits per pixel.
  True colour: max red 7 green 7 blue 3, shift red 0 green 3 blue 6
Using shared memory PutImage
Throughput 20500 kbit/s - changing to Hextile
Throughput 20500 kbit/s - changing from 8bit
Using viewer's native pixel format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
ShmCleanup called
10:44:22
#vncviewer 127.0.0.1:0
VNC viewer version 3.3.7 - built Dec 30 2006 12:48:54
Copyright (C) 2002-2003 RealVNC Ltd.
Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
See http://www.realvnc.com for information on VNC.
VNC server supports protocol version 3.8 (viewer 3.3)
No authentication needed
Desktop name "Xen-win2k3_clone"
Connected to VNC server, using protocol version 3.3
VNC server default format:
  32 bits per pixel.
...
  8 bits per pixel.
  True colour: max red 7 green 7 blue 3, shift red 0 green 3 blue 6
Using shared memory PutImage
Throughput 20000 kbit/s - changing to Hextile
Throughput 20000 kbit/s - changing from 8bit
Using viewer's native pixel format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
ShmCleanup called
10:45:04
#vncviewer 127.0.0.1:0
See http://www.realvnc.com for information on VNC., 'mail', 'vpn', 'uucp', 'apt''
],main_home = {
VNC server supports protocol version 3.8 (viewer 3.3)
No authentication neededdns', 'vpn', 'apt', 'pgw', 'ldap', 'mail', 'uucp', 'sambb
Desktop name "Xen-win2k3_clone"
Connected to VNC server, using protocol version 3.3
VNC server default format:g-2.6.18-5-xen-686"
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
...
Using shared memory PutImage
Throughput 20037 kbit/s - changing to Hextile
Throughput 20037 kbit/s - changing from 8bit
Using viewer's native pixel format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
Throughput 20000 kbit/s - changing to Raw
ReadFromRFBServer: rdr::SystemException: read: Connection reset by peer (104)
ShmCleanup called
/dev/pts/7
10:51:08
# mtr
Name or service not known: Success
10:51:12
# mtr www.yahoo.com

10:51:25
#lvdisplay
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:11
  --- Logical volume ---
  LV Name                /dev/vg00/win2k3
  VG Name                vg00
  LV UUID                vdpiW1-FWvA-Lc4G-T6rH-yrOS-85tM-5Lkz1Y
  LV Write Access        read/write
...
  Current LE             512
  COW-table size         2,00 GB
  COW-table LE           512
  Allocated to snapshot  2,91%
  Snapshot chunk size    4,00 KB
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:17
/dev/pts/12
10:58:34
#vi od.py
прошло 16 минут
/dev/pts/7
11:15:25
#vgdisplay
ip_address = {
    node1: '10.0.5.220',
top1.py [/boot/vmlinuz-2.6.18-6-xen-686"                      23,10          66%
r   node2: '10.0.5.221',
top1.py                                                       24,1           66%
  --- Volume group ---
  VG Name               vg00
a', ]
  System ID             1]
  Format                lvm2, 'igw', 'pgw', 'ldap', 'mail', 'vpn', 'uucp', 'apt''
...
  Max PV                0
od.py                                                         21,1            7%
  Cur PV                1
  Act PV                1
  VG Size               65,20 GB
  PE Size               4,00 MB
  Total PE              16692
  Alloc PE / Size       8448 / 33,00 GB
  Free  PE / Size       8244 / 32,20 GB
  VG UUID               OEFzQS-SyAd-yN2g-rnYP-xsQx-kDt6-tpUswU
11:15:42
#me /etc/xen/win2k3_clone
#          and modules. Allocating less than 32MBs is not recommended.
# Should be at least 2KB per MB of domain memory, plus a few MB per vcpu.
name = "win2k3_clone"
# 128-bit UUID for the domain.  The default behavior is to generate a€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”˜
#uuid = "06ed00fe-1162-4fc4-b5d8-11993ee4a8b9"
#-----------------------------------------------------------------------------
vcpus=16
# Enable/disable HVM guest PAE, default=1 (enabled)
11:17:07
#lvdisplay | grep win
ip_address = {
    node1: '192.168.15.226',
    node2: '192.168.15.2',
}
        node1 : [ 'winxp' ],
node1_ipnode2 : [ 'win2k3', 'gw' ],
}ode2_ip=ip_address[node2]
kernel= ""'gw', 'winxp', 'win2k3' ]
ip_address = {
    node1: '10.0.5.220',
...
  LV Name                /dev/vg00/win2k3_clone_2
  LV Name                /dev/vg00/winxpt', 'pgw', 'ldap', 'mail', 'uucp', 'sambb
  LV Name                /dev/vg00/win2k3_clone
  LV snapshot status     active destination for /dev/vg00/win2k3
  LV Name                /dev/vg00/win2k3_clone2
  LV snapshot status     active destination for /dev/vg00/win2k3
mem_table={
    'dns'   :64,
od.py                                                         21,1            7%
-- Встав
/dev/pts/11
11:17:36
#xm create win2k3_clone
ip_address = {
    node1: '192.168.15.226',
    node2: '192.168.15.2',
}
        node1 : [ 'winxp' ],
node1_ipnode2 : [ 'win2k3', 'gw' ],
}ode2_ip=ip_address[node2]
kernel= ""'gw', 'winxp', 'win2k3' ]
ip_address = {
    node1: '10.0.5.220',
...
node2_ipnode1 : ['dns', 'gw', 'igw', 'pgw', 'ldap', 'mail', 'vpn', 'uucp', 'apt''
],main_home = {
        node2 : ['samba'],
    }ns=[ 'gw', 'igw', 'dns', 'vpn', 'apt', 'pgw', 'ldap', 'mail', 'uucp', 'sambb
kernel = "/boot/vmlinuz-2.6.18-5-xen-686"
ramdisk = "/boot/initrd.img-2.6.18-5-xen-686"
mem_table={
    'dns'   :64,
od.py                                                         21,1            7%
-- Встав
/dev/pts/7
11:17:53
#xm list
ip_address = {
    node1: '192.168.15.226',
    node2: '192.168.15.2',
}
        node1 : [ 'winxp' ],
node1_ipnode2 : [ 'win2k3', 'gw' ],
}ode2_ip=ip_address[node2]
kernel= ""'gw', 'winxp', 'win2k3' ]
ip_address = {
    node1: '10.0.5.220',
...
node2_ipnode1 : ['dns', 'gw', 'igw', 'pgw', 'ldap', 'mail', 'vpn', 'uucp', 'apt''
],main_home = {
        node2 : ['samba'],
    }ns=[ 'gw', 'igw', 'dns', 'vpn', 'apt', 'pgw', 'ldap', 'mail', 'uucp', 'sambb
kernel = "/boot/vmlinuz-2.6.18-5-xen-686"
ramdisk = "/boot/initrd.img-2.6.18-5-xen-686"
mem_table={
    'dns'   :64,
od.py                                                         21,1            7%
-- Встав
/dev/pts/11
11:19:33
#vncviewer 127.0.0.1:0
Copyright (C) 2002-2003 RealVNC Ltd.
a', ]
Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
See http://www.realvnc.com for information on VNC., 'mail', 'vpn', 'uucp', 'apt''
],main_home = {
VNC server supports protocol version 3.8 (viewer 3.3)
No authentication neededdns', 'vpn', 'apt', 'pgw', 'ldap', 'mail', 'uucp', 'sambb
Desktop name "Xen-win2k3_clone"
Connected to VNC server, using protocol version 3.3
VNC server default format:g-2.6.18-5-xen-686"
...
  8 bits per pixel.
  True colour: max red 7 green 7 blue 3, shift red 0 green 3 blue 6
Using shared memory PutImage
Throughput 20500 kbit/s - changing to Hextile
Throughput 20500 kbit/s - changing from 8bit
Using viewer's native pixel format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
ShmCleanup called
11:20:15
#vncviewer 127.0.0.1:0
Copyright (C) 2002-2003 RealVNC Ltd.
a', ]
Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
See http://www.realvnc.com for information on VNC., 'mail', 'vpn', 'uucp', 'apt''
],main_home = {
VNC server supports protocol version 3.8 (viewer 3.3)
No authentication neededdns', 'vpn', 'apt', 'pgw', 'ldap', 'mail', 'uucp', 'sambb
Desktop name "Xen-win2k3_clone"
Connected to VNC server, using protocol version 3.3
VNC server default format:g-2.6.18-5-xen-686"
...
  8 bits per pixel.
  True colour: max red 7 green 7 blue 3, shift red 0 green 3 blue 6
Using shared memory PutImage
Throughput 15714 kbit/s - changing to Hextile
Throughput 15714 kbit/s - changing from 8bit
Using viewer's native pixel format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
ShmCleanup called
11:20:46
#vncviewer 127.0.0.1:0
VNC viewer version 3.3.7 - built Dec 30 2006 12:48:54
Copyright (C) 2002-2003 RealVNC Ltd.
Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
See http://www.realvnc.com for information on VNC.
VNC server supports protocol version 3.8 (viewer 3.3)
No authentication needed
Desktop name "Xen-win2k3_clone"
Connected to VNC server, using protocol version 3.3
VNC server default format:
  32 bits per pixel.
...
  True colour: max red 7 green 7 blue 3, shift red 0 green 3 blue 6
Using shared memory PutImage
Throughput 20046 kbit/s - changing to Hextile
Throughput 20046 kbit/s - changing from 8bit
Using viewer's native pixel format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
ReadFromRFBServer: rdr::SystemException: read: Connection reset by peer (104)
ShmCleanup called
11:21:52
#vncviewer 127.0.0.1:0
Copyright (C) 2002-2003 RealVNC Ltd.
a', ]
Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
See http://www.realvnc.com for information on VNC., 'mail', 'vpn', 'uucp', 'apt''
],main_home = {
VNC server supports protocol version 3.8 (viewer 3.3)
No authentication neededdns', 'vpn', 'apt', 'pgw', 'ldap', 'mail', 'uucp', 'sambb
Desktop name "Xen-win2k3_clone"
Connected to VNC server, using protocol version 3.3
VNC server default format:g-2.6.18-5-xen-686"
...
  8 bits per pixel.
  True colour: max red 7 green 7 blue 3, shift red 0 green 3 blue 6
Using shared memory PutImage
Throughput 20000 kbit/s - changing to Hextile
Throughput 20000 kbit/s - changing from 8bit
Using viewer's native pixel format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
ShmCleanup called
11:22:15
#vncviewer 127.0.0.1:0
kernel= ""'gw', 'winxp', 'win2k3' ]
ip_address = {
    node1: '10.0.5.220',
top1.py [/boot/vmlinuz-2.6.18-6-xen-686"                      23,10          66%
r   node2: '10.0.5.221',
top1.py                                                       24,1           66%
VNC viewer version 3.3.7 - built Dec 30 2006 12:48:54
Copyright (C) 2002-2003 RealVNC Ltd.
a', ]
Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
...
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
od.py                                                         21,1            7%
Using default colormap and visual, TrueColor, depth 24.
Got 256 exact BGR233 colours out of 256
Using BGR233 pixel format:
  8 bits per pixel.
  True colour: max red 7 green 7 blue 3, shift red 0 green 3 blue 6
Using shared memory PutImage
ShmCleanup called
11:22:36
#vncviewer 127.0.0.1:0
kernel= ""'gw', 'winxp', 'win2k3' ]
ip_address = {
    node1: '10.0.5.220',
top1.py [/boot/vmlinuz-2.6.18-6-xen-686"                      23,10          66%
r   node2: '10.0.5.221',
top1.py                                                       24,1           66%
VNC viewer version 3.3.7 - built Dec 30 2006 12:48:54
Copyright (C) 2002-2003 RealVNC Ltd.
a', ]
Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
...
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
od.py                                                         21,1            7%
Using default colormap and visual, TrueColor, depth 24.
Got 256 exact BGR233 colours out of 256
Using BGR233 pixel format:
  8 bits per pixel.
  True colour: max red 7 green 7 blue 3, shift red 0 green 3 blue 6
Using shared memory PutImage
ShmCleanup called
11:23:23
#vncviewer 127.0.0.1:0
Copyright (C) 2002-2003 RealVNC Ltd.
a', ]
Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
See http://www.realvnc.com for information on VNC., 'mail', 'vpn', 'uucp', 'apt''
],main_home = {
VNC server supports protocol version 3.8 (viewer 3.3)
No authentication neededdns', 'vpn', 'apt', 'pgw', 'ldap', 'mail', 'uucp', 'sambb
Desktop name "Xen-win2k3_clone"
Connected to VNC server, using protocol version 3.3
VNC server default format:g-2.6.18-5-xen-686"
...
  8 bits per pixel.
  True colour: max red 7 green 7 blue 3, shift red 0 green 3 blue 6
Using shared memory PutImage
Throughput 20000 kbit/s - changing to Hextile
Throughput 20000 kbit/s - changing from 8bit
Using viewer's native pixel format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
ShmCleanup called
/dev/pts/7
11:23:36
#xm top

/dev/pts/11
11:27:25
#vncviewer 127.0.0.1:0
VNC viewer version 3.3.7 - built Dec 30 2006 12:48:54
Copyright (C) 2002-2003 RealVNC Ltd.
Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
See http://www.realvnc.com for information on VNC.
VNC server supports protocol version 3.8 (viewer 3.3)
No authentication needed
Desktop name "Xen-win2k3_clone"
Connected to VNC server, using protocol version 3.3
VNC server default format:
  32 bits per pixel.
...
  True colour: max red 7 green 7 blue 3, shift red 0 green 3 blue 6
Using shared memory PutImage
Throughput 20049 kbit/s - changing to Hextile
Throughput 20049 kbit/s - changing from 8bit
Using viewer's native pixel format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
CleanupSignalHandler called
ShmCleanup called
/dev/pts/12
11:29:03
#ls -l
загалом 76
-rw-r--r-- 1 1000 1000 2109 вер 27 23:27 config-example2.py
-rw-r--r-- 1 1000 1000 1654 вер 27 18:04 config-example.py
drwxr-xr-x 2 1000 1000 4096 лют 20 15:42 CVS
-rw-r--r-- 1 1000 1000  136 лют 17 11:50 default-xen-drbd
-rw-r--r-- 1 1000 1000 2317 вер 28 16:31 eb.py
-rw-r--r-- 1 1000 1000 2500 вер 28 16:32 eb.pyc
-rwxr-xr-x 1 1000 1000  608 жов  5 17:00 init.d-xen-drbd
-rwxr-xr-x 1 1000 1000 1028 лют 29 08:25 INSTALL
-rw-r--r-- 1 1000 1000 3034 лют 19 12:14 od.py
-rw-r--r-- 1 1000 1000 3089 лют 19 12:14 od.pyc
-rw-r--r-- 1 root root 1835 лют 29 11:29 top1.py
-rwxr-xr-x 1 1000 1000 9015 лют 24 12:33 xen-drbd-install.py
-rwxr-xr-x 1 1000 1000 8349 лют 20 15:39 xen-drbd.py
-rwxr-xr-x 1 1000 1000 1040 жов  5 17:00 xen-drbd-start.py
-rwxr-xr-x 1 1000 1000  326 лют 17 12:14 xen-scripts-network-xen-drbd
11:29:05
#cat INSTALL
cp xen-scripts-network-xen-drbd $ROOT/etc/xen/scripts/network-xen-drbd
chmod +x /etc/xen/scripts/network-xen-drbd
cp default-xen-drbd ${ROOT}/etc/default/xen-drbd
cp xen-drbd-start.py ${ROOT}/etc/xen/xen-drbd-start
set +x
for i in 2 3 4 5
do
    set -x
    ln -sf ../init.d/xen-drbd ${ROOT}/etc/rc$i.d/S95xen-drbd
    set +x
done
for i in 0 1 6
do
    set -x
    ln -sf ../init.d/xen-drbd ${ROOT}/etc/rc$i.d/K05xen-drbd
    set +x
done
/dev/pts/7
11:29:06
#xm list
VNC viewer version 3.3.7 - built Dec 30 2006 12:48:54
Copyright (C) 2002-2003 RealVNC Ltd.
Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
See http://www.realvnc.com for information on VNC.
VNC server supports protocol version 3.8 (viewer 3.3)
No authentication needed
Desktop name "Xen-win2k3_clone"
Connected to VNC server, using protocol version 3.3
VNC server default format:
  32 bits per pixel.
...
  True colour: max red 7 green 7 blue 3, shift red 0 green 3 blue 6
Using shared memory PutImage
Throughput 11428 kbit/s - changing to Hextile
Throughput 11428 kbit/s - changing from 8bit
Using viewer's native pixel format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0   250     2     r-----  10649.6
/dev/pts/12
11:29:27
#sh INSTALL
-------------------------------------------------
Installing of xen-drbd configs and boot scripts to /etc:
-------------------------------------------------
+ cp init.d-xen-drbd //etc/init.d/xen-drbd
+ chmod +x //etc/init.d/xen-drbd
+ cp xen-scripts-network-xen-drbd //etc/xen/scripts/network-xen-drbd
+ chmod +x /etc/xen/scripts/network-xen-drbd
+ cp default-xen-drbd //etc/default/xen-drbd
+ cp xen-drbd-start.py //etc/xen/xen-drbd-start
+ set +x
...
+ ln -sf ../init.d/xen-drbd //etc/rc4.d/S95xen-drbd
+ set +x
+ ln -sf ../init.d/xen-drbd //etc/rc5.d/S95xen-drbd
+ set +x
+ ln -sf ../init.d/xen-drbd //etc/rc0.d/K05xen-drbd
+ set +x
+ ln -sf ../init.d/xen-drbd //etc/rc1.d/K05xen-drbd
+ set +x
+ ln -sf ../init.d/xen-drbd //etc/rc6.d/K05xen-drbd
+ set +x
11:29:37
#xen-drbd
│                  │                   ││/.psi             │                   │
│                  │                   ││/.purple          │                   │
│                  │                   ││/.ssh             │                   │
│                  │                   ││ .Xauthority      │                   │”днання.
│                  │                   ││ .bash_history    │                   │
│                  │                   ││ .bash_profile    │                   │
│                  │                   ││ .bashrc          │                   │
│                  │                   ││ .htoprc          │                   │
│                  │                   ││ .l3rc            │                   │
│                  │                   ││ .lesshst         │                   │
...
│                  │                   ││ .xsession-errors │                   │
│                  │                   ││ centos.5~.tar.bz2│                   │
│                  │                   ││ centos.5-1.img   │                   │
│                  │                   ││ centos.5~xen3.cfg│                   │
│                  │                   ││ centos.swap      │                   │
│                  │                   ││*domu1.sleep      │                   │
│                  │                   ││*domu2-wi~e41-save│                   │
│                  │                   ││ nohup.out        │                   │
│                  │                   ││ pxelinux.0       │                   │
Can't find or interpret module od with topology description
11:29:43
#vi xen-drbd.py
--- /tmp/l3-saved-4595.17400.10030	2008-02-29 11:29:51.000000000 +0200
+++ xen-drbd.py	2008-02-29 11:29:56.000000000 +0200
@@ -1,6 +1,6 @@
 #!/usr/bin/python
 
-network='od'
+network='top1'
 debug=2
 
 import sys,os,imp
11:29:56
#sh INSTALL
-------------------------------------------------
Installation of xen-drbd to //usr/local/sbin
-------------------------------------------------
+ cp xen-drbd.py ///usr/local/sbin/xen-drbd
+ cp xen-drbd-install.py ///usr/local/sbin/xen-drbd-install
+ set +x
-------------------------------------------------
Installing of xen-drbd configs and boot scripts to /etc:
-------------------------------------------------
+ cp init.d-xen-drbd //etc/init.d/xen-drbd
...
+ ln -sf ../init.d/xen-drbd //etc/rc4.d/S95xen-drbd
+ set +x
+ ln -sf ../init.d/xen-drbd //etc/rc5.d/S95xen-drbd
+ set +x
+ ln -sf ../init.d/xen-drbd //etc/rc0.d/K05xen-drbd
+ set +x
+ ln -sf ../init.d/xen-drbd //etc/rc1.d/K05xen-drbd
+ set +x
+ ln -sf ../init.d/xen-drbd //etc/rc6.d/K05xen-drbd
+ set +x
11:29:57
#cp top1.py /etc/xen/
│                  │                   ││/.mozilla         │                   │
│                  │                   ││/.psi             │                   │
│                  │                   ││/.purple          │                   │
│                  │                   ││/.ssh             │                   │
│                  │                   ││ .Xauthority      │                   │”днання.
│                  │                   ││ .bash_history    │                   │
│                  │                   ││ .bash_profile    │                   │
│                  │                   ││ .bashrc          │                   │
│                  │                   ││ .htoprc          │                   │
│                  │                   ││ .l3rc            │                   │
...
│                  │                   ││ .vimrc           │                   │
│                  │                   ││ .xsession-errors │                   │
│                  │                   ││ centos.5~.tar.bz2│                   │
│                  │                   ││ centos.5-1.img   │                   │
│                  │                   ││ centos.5~xen3.cfg│                   │
│                  │                   ││ centos.swap      │                   │
│                  │                   ││*domu1.sleep      │                   │
│                  │                   ││*domu2-wi~e41-save│                   │
│                  │                   ││ nohup.out        │                   │
│                  │                   ││ pxelinux.0       │                   │
11:30:03
#xen-drbd
Usage:
    xen-drbd command [domain]
Commands:
    start domain
    start-all
    start-my-domains
    migrate-out domain
    migrate-in domain
    migrate-all-out
    migrate-all-in
    migrate-my-domains-home
    migrate-and-start-my-domains
    migrate-and-start-all
    dump-config domain
11:30:07
#xen-drbd-install
│                  │                   ││ .viminfo         │                   │
│                  │                   ││ .vimrc           │                   │
│                  │                   ││ .xsession-errors │                   │
│                  │                   ││ centos.5~.tar.bz2│                   │
│                  │                   ││ centos.5-1.img   │                   │
│                  │                   ││ centos.5~xen3.cfg│                   │
│                  │                   ││ centos.swap      │                   │
│                  │                   ││*domu1.sleep      │                   │
│                  │                   ││*domu2-wi~e41-save│                   │
│                  │                   ││ nohup.out        │                   │
│                  │                   ││ pxelinux.0       │                   │
Usage:
    xen-drbd-install <network> <command>            (to view)
    xen-drbd-install <network> <command> | sh -s    (to run)
    <network> is the name of the file, which contains network description
Commands:
    make-drbd
    make-domains
    make-bridges
    make-links
11:30:16
#vi top1.py
11:31:05
#xen-drbd-install
│                  │                   ││ .viminfo         │                   │
│                  │                   ││ .vimrc           │                   │
│                  │                   ││ .xsession-errors │                   │
│                  │                   ││ centos.5~.tar.bz2│                   │
│                  │                   ││ centos.5-1.img   │                   │
│                  │                   ││ centos.5~xen3.cfg│                   │
│                  │                   ││ centos.swap      │                   │
│                  │                   ││*domu1.sleep      │                   │
│                  │                   ││*domu2-wi~e41-save│                   │
│                  │                   ││ nohup.out        │                   │
│                  │                   ││ pxelinux.0       │                   │
Usage:
    xen-drbd-install <network> <command>            (to view)
    xen-drbd-install <network> <command> | sh -s    (to run)
    <network> is the name of the file, which contains network description
Commands:
    make-drbd
    make-domains
    make-bridges
    make-links
11:31:12
#xen-drbd-install top1 make-bridges
│                  │                   ││ .qemu_history    │                   │
│                  │                   ││ .viminfo         │                   │
│                  │                   ││ .vimrc           │                   │
│                  │                   ││ .xsession-errors │                   │
│                  │                   ││ centos.5~.tar.bz2│                   │
│                  │                   ││ centos.5-1.img   │                   │
│                  │                   ││ centos.5~xen3.cfg│                   │
│                  │                   ││ centos.swap      │                   │
│                  │                   ││*domu1.sleep      │                   │
│                  │                   ││*domu2-wi~e41-save│                   │
...
/etc/xen/scripts/network-bridge start vifnum=2 bridge=br0 netdev=eth0.10
ip link set eth0.10 up
vconfig add eth0 11
/etc/xen/scripts/network-bridge start vifnum=3 bridge=br1 netdev=eth0.11
ip link set eth0.11 up
vconfig add eth0 12
/etc/xen/scripts/network-bridge start vifnum=4 bridge=br2 netdev=eth0.12
ip link set eth0.12 up
ifconfig eth0.1 192.168.15.2 netmask 255.255.255.0
route add default gw 192.168.15.254
11:31:22
#xen-drbd-install top1 make-links
│                  │                   ││ .htoprc          │                   │
│                  │                   ││ .l3rc            │                   │
│                  │                   ││ .lesshst         │                   │
│                  │                   ││ .profile         │                   │
│                  │                   ││ .qemu_history    │                   │
│                  │                   ││ .viminfo         │                   │
│                  │                   ││ .vimrc           │                   │
│                  │                   ││ .xsession-errors │                   │
│                  │                   ││ centos.5~.tar.bz2│                   │
│                  │                   ││ centos.5-1.img   │                   │
...
│                  │                   ││ nohup.out        │                   │
│                  │                   ││ pxelinux.0       │                   │
###################################################
# MAKE SYMBOLIC LINKS TO /dev/drbd* FILES
#
mkdir -p /dev/drbd
ln -sf /dev/drbd11 /dev/drbd/winxp
ln -sf /dev/drbd10 /dev/drbd/gw
ln -sf /dev/drbd13 /dev/drbd/win2k3_clone_1
ln -sf /dev/drbd12 /dev/drbd/win2k3_clone
11:32:27
#less init.d-xen-drbd
11:33:13
#ls -l
загалом 76
-rw-r--r-- 1 1000 1000 2109 вер 27 23:27 config-example2.py
-rw-r--r-- 1 1000 1000 1654 вер 27 18:04 config-example.py
drwxr-xr-x 2 1000 1000 4096 лют 20 15:42 CVS
-rw-r--r-- 1 1000 1000  136 лют 17 11:50 default-xen-drbd
-rw-r--r-- 1 1000 1000 2317 вер 28 16:31 eb.py
-rw-r--r-- 1 1000 1000 2500 вер 28 16:32 eb.pyc
-rwxr-xr-x 1 1000 1000  608 жов  5 17:00 init.d-xen-drbd
-rwxr-xr-x 1 1000 1000 1028 лют 29 08:25 INSTALL
-rw-r--r-- 1 1000 1000 3034 лют 19 12:14 od.py
-rw-r--r-- 1 1000 1000 3089 лют 19 12:14 od.pyc
-rw-r--r-- 1 root root 1835 лют 29 11:29 top1.py
-rwxr-xr-x 1 1000 1000 9015 лют 24 12:33 xen-drbd-install.py
-rwxr-xr-x 1 1000 1000 8351 лют 29 11:29 xen-drbd.py
-rwxr-xr-x 1 1000 1000 1040 жов  5 17:00 xen-drbd-start.py
-rwxr-xr-x 1 1000 1000  326 лют 17 12:14 xen-scripts-network-xen-drbd
11:33:15
#less /etc/xen/scripts/xen-
11:33:15
#less /etc/xen/scripts/network-
11:33:15
#less /etc/xen/scripts/network-xen-drbd
11:33:40
#xen-drbd-install
│                  │                   ││ .viminfo         │                   │
│                  │                   ││ .vimrc           │                   │
│                  │                   ││ .xsession-errors │                   │
│                  │                   ││ centos.5~.tar.bz2│                   │
│                  │                   ││ centos.5-1.img   │                   │
│                  │                   ││ centos.5~xen3.cfg│                   │
│                  │                   ││ centos.swap      │                   │
│                  │                   ││*domu1.sleep      │                   │
│                  │                   ││*domu2-wi~e41-save│                   │
│                  │                   ││ nohup.out        │                   │
│                  │                   ││ pxelinux.0       │                   │
Usage:
    xen-drbd-install <network> <command>            (to view)
    xen-drbd-install <network> <command> | sh -s    (to run)
    <network> is the name of the file, which contains network description
Commands:
    make-drbd
    make-domains
    make-bridges
    make-links
11:34:29
#xen-drbd
│                  │                   ││ centos.swap      │                   │
│                  │                   ││*domu1.sleep      │                   │
│                  │                   ││*domu2-wi~e41-save│                   │
│                  │                   ││ nohup.out        │                   │
│                  │                   ││ pxelinux.0       │                   │
Usage:
    xen-drbd command [domain]
Commands:
    start domain
    start-all
    start-my-domains
    migrate-out domain
    migrate-in domain
    migrate-all-out
    migrate-all-in
    migrate-my-domains-home
    migrate-and-start-my-domains
    migrate-and-start-all
    dump-config domain
11:34:45
#ls /etc/init.d/
aoetools               mountall.sh            screen-cleanup
bootlogd               mountdevsubfs.sh       sendsigs
bootmisc.sh            mountkernfs.sh         single
checkfs.sh             mountnfs-bootclean.sh  skeleton
checkroot.sh           mountnfs.sh            ssh
console-cyrillic       mountoverflowtmp       stop-bootlogd
console-screen.kbd.sh  mtab.sh                stop-bootlogd-single
cron                   nbd-server             sysklogd
dbus                   networking             sysstat
drbd                   nfs-common             tftpd-hpa
...
hwclockfirst.sh        portmap                umountroot
hwclock.sh             pppd-dns               urandom
ifupdown               procps                 x11-common
ifupdown-clean         rc                     xdebconfigurator
keymap.sh              rc.local               xend
killprocs              rcS                    xendomains
klogd                  README                 xen-drbd
lvm2                   reboot                 yum-updatesd
module-init-tools      rmnologin
mountall-bootclean.sh  rsync
11:36:56
#ls /etc/init.d/xen-drbd
│                  │                   ││/.psi             │                   │
│                  │                   ││/.purple          │                   │
│                  │                   ││/.ssh             │                   │
│                  │                   ││ .Xauthority      │                   │”днання.
│                  │                   ││ .bash_history    │                   │
│                  │                   ││ .bash_profile    │                   │
│                  │                   ││ .bashrc          │                   │
│                  │                   ││ .htoprc          │                   │
│                  │                   ││ .l3rc            │                   │
│                  │                   ││ .lesshst         │                   │
...
│                  │                   ││ .xsession-errors │                   │
│                  │                   ││ centos.5~.tar.bz2│                   │
│                  │                   ││ centos.5-1.img   │                   │
│                  │                   ││ centos.5~xen3.cfg│                   │
│                  │                   ││ centos.swap      │                   │
│                  │                   ││*domu1.sleep      │                   │
│                  │                   ││*domu2-wi~e41-save│                   │
│                  │                   ││ nohup.out        │                   │
│                  │                   ││ pxelinux.0       │                   │
/etc/init.d/xen-drbd
11:37:02
#ls /etc/rc2.d/
│                  │                   ││ .bash_profile    │                   │
│                  │                   ││ .bashrc          │                   │
│                  │                   ││ .htoprc          │                   │
│                  │                   ││ .l3rc            │                   │
│                  │                   ││ .lesshst         │                   │
│                  │                   ││ .profile         │                   │
│                  │                   ││ .qemu_history    │                   │
│                  │                   ││ .viminfo         │                   │
│                  │                   ││ .vimrc           │                   │
│                  │                   ││ .xsession-errors │                   │
...
│                  │                   ││*domu1.sleep      │                   │
│                  │                   ││*domu2-wi~e41-save│                   │
│                  │                   ││ nohup.out        │                   │
│                  │                   ││ pxelinux.0       │                   │
README         S20nfs-common         S20xdebconfigurator  S70drbd
S10sysklogd    S20nfs-kernel-server  S20xend              S89cron
S11klogd       S20openbsd-inetd      S20yum-updatesd      S95xen-drbd
S12dbus        S20rsync              S21xendomains        S99rc.local
S16ssh         S20sysstat            S23ntp               S99rmnologin
S20nbd-server  S20tftpd-hpa          S25nfs-user-server   S99stop-bootlogd
11:37:13
#ls /etc/default/xen-drbd
│                  │                   ││/.psi             │                   │
│                  │                   ││/.purple          │                   │
│                  │                   ││/.ssh             │                   │
│                  │                   ││ .Xauthority      │                   │”днання.
│                  │                   ││ .bash_history    │                   │
│                  │                   ││ .bash_profile    │                   │
│                  │                   ││ .bashrc          │                   │
│                  │                   ││ .htoprc          │                   │
│                  │                   ││ .l3rc            │                   │
│                  │                   ││ .lesshst         │                   │
...
│                  │                   ││ .xsession-errors │                   │
│                  │                   ││ centos.5~.tar.bz2│                   │
│                  │                   ││ centos.5-1.img   │                   │
│                  │                   ││ centos.5~xen3.cfg│                   │
│                  │                   ││ centos.swap      │                   │
│                  │                   ││*domu1.sleep      │                   │
│                  │                   ││*domu2-wi~e41-save│                   │
│                  │                   ││ nohup.out        │                   │
│                  │                   ││ pxelinux.0       │                   │
/etc/default/xen-drbd
11:37:25
#cat /etc/default/xen-drbd
XEN_DRBD_PATH='/usr/local/sbin'
TOPOLOGY_NAME='od'
START_ACTION=nothing    # migrate-and-start-all
STOP_ACTION=nothing     # migrate-all-out
11:37:27
#vi /etc/default/xen-drbd
--- /tmp/l3-saved-4595.22021.23928	2008-02-29 11:37:37.000000000 +0200
+++ /etc/default/xen-drbd	2008-02-29 11:39:09.000000000 +0200
@@ -1,5 +1,5 @@
 XEN_DRBD_PATH='/usr/local/sbin'
-TOPOLOGY_NAME='od'
-START_ACTION=nothing 	# migrate-and-start-all
-STOP_ACTION=nothing	# migrate-all-out
+TOPOLOGY_NAME='top1'
+START_ACTION=migrate-and-start-all  	#nothing
+STOP_ACTION=migrate-all-out		#nothing
 
11:39:09
#ssh-keygen -t dsa
│                  │                   ││ .htoprc          │                   │
│                  │                   ││ .l3rc            │                   │
│                  │                   ││ .lesshst         │                   │
│                  │                   ││ .profile         │                   │
│                  │                   ││ .qemu_history    │                   │
│                  │                   ││ .viminfo         │                   │
│                  │                   ││ .vimrc           │                   │
│                  │                   ││ .xsession-errors │                   │
│                  │                   ││ centos.5~.tar.bz2│                   │
│                  │                   ││ centos.5-1.img   │                   │
...
│                  │                   ││ nohup.out        │                   │
│                  │                   ││ pxelinux.0       │                   │
Generating public/private dsa key pair.
Enter file in which to save the key (/root/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_dsa.
Your public key has been saved in /root/.ssh/id_dsa.pub.
The key fingerprint is:
39:3a:81:0a:ee:71:10:46:ce:8d:49:27:7b:7d:5a:c0 root@debian2
11:39:56
#cat ~/.ssh/id_dsa.pub | ssh 192.168.15.226 'cat >> ~/.
│                  │                   ││/.purple          │                   │
│                  │                   ││/.ssh             │                   │
│                  │                   ││ .Xauthority      │                   │”днання.
│                  │                   ││ .bash_history    │                   │
│                  │                   ││ .bash_profile    │                   │
│                  │                   ││ .bashrc          │                   │
│                  │                   ││ .htoprc          │                   │
│                  │                   ││ .l3rc            │                   │
│                  │                   ││ .lesshst         │                   │
│                  │                   ││ .profile         │                   │
...
│                  │                   ││ centos.5~.tar.bz2│                   │
│                  │                   ││ centos.5-1.img   │                   │
│                  │                   ││ centos.5~xen3.cfg│                   │
│                  │                   ││ centos.swap      │                   │
│                  │                   ││*domu1.sleep      │                   │
│                  │                   ││*domu2-wi~e41-save│                   │
│                  │                   ││ nohup.out        │                   │
│                  │                   ││ pxelinux.0       │                   │
sh/authorized_keys; chmod 600 ~/.ssh/authorized_keys'
root@192.168.15.226's password:
11:41:47
#ssh 192.168.15.226
│                  │                   ││ .qemu_history    │                   │
│                  │                   ││ .viminfo         │                   │
│                  │                   ││ .vimrc           │                   │
│                  │                   ││ .xsession-errors │                   │
│                  │                   ││ centos.5~.tar.bz2│                   │
│                  │                   ││ centos.5-1.img   │                   │
│                  │                   ││ centos.5~xen3.cfg│                   │
│                  │                   ││ centos.swap      │                   │
│                  │                   ││*domu1.sleep      │                   │
│                  │                   ││*domu2-wi~e41-save│                   │
...
Last login: Fri Feb 29 09:37:03 2008
Linux romzes 2.6.18-6-xen-686 #1 SMP Sun Feb 10 22:43:13 UTC 2008 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.
romzes:~# exit
logout
Connection to 192.168.15.226 closed.
11:41:59
#ssh 192.168.15.226
Connection to 192.168.15.2 closed.
romzes:~# ssh 192.168.15.2
l3-agent is already running: pid=2822; pidfile=/root/.lilalo/l3-agent.pid
root@debian2:~# exit
logout
Connection to 192.168.15.2 closed.
romzes:~# cat /etc/hosts
romzes 127.0.0.1
romzes:~# echo debian2 192.168.15.2 >> /etc/hosts
romzes:~# cat /etc/hosts
...
romzes:~# set -o vi
romzes:~#
romzes:~#
romzes:~#
romzes:~#
romzes:~#
romzes:~#
romzes:~# exit
logout
Connection to 192.168.15.226 closed.
прошло 12 минут
11:54:04
#vi /etc/xen/top1.py
прошло 15 минут
/dev/pts/11
12:10:00
#vncviewer 127.0.0.1:0
VNC viewer version 3.3.7 - built Dec 30 2006 12:48:54
Copyright (C) 2002-2003 RealVNC Ltd.
Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
See http://www.realvnc.com for information on VNC.
VNC server supports protocol version 3.8 (viewer 3.3)
No authentication needed
Desktop name "Xen-win2k3_clone"
Connected to VNC server, using protocol version 3.3
VNC server default format:
  32 bits per pixel.
...
  8 bits per pixel.
  True colour: max red 7 green 7 blue 3, shift red 0 green 3 blue 6
Using shared memory PutImage
Throughput 20100 kbit/s - changing to Hextile
Throughput 20100 kbit/s - changing from 8bit
Using viewer's native pixel format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
ShmCleanup called
12:10:26
#xm destroy win2k3_clone

12:10:42
#me /etc/xen/win2k3_clone
                   xm create'.
                   s guest platform has, default=1
12:10:54
#xm create win2k3_clone
Using config file "/etc/xen/win2k3_clone".
Started domain win2k3_clone
12:10:59
#vncviewer 127.0.0.1:0
VNC viewer version 3.3.7 - built Dec 30 2006 12:48:54
Copyright (C) 2002-2003 RealVNC Ltd.
Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
See http://www.realvnc.com for information on VNC.
VNC server supports protocol version 3.8 (viewer 3.3)
No authentication needed
Desktop name "Xen-win2k3_clone"
Connected to VNC server, using protocol version 3.3
VNC server default format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
Using default colormap and visual, TrueColor, depth 24.
Got 256 exact BGR233 colours out of 256
Using BGR233 pixel format:
  8 bits per pixel.
  True colour: max red 7 green 7 blue 3, shift red 0 green 3 blue 6
Using shared memory PutImage
ShmCleanup called
12:11:15
#vncviewer 127.0.0.1:0
VNC viewer version 3.3.7 - built Dec 30 2006 12:48:54
Copyright (C) 2002-2003 RealVNC Ltd.
Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
See http://www.realvnc.com for information on VNC.
VNC server supports protocol version 3.8 (viewer 3.3)
No authentication needed
Desktop name "Xen-win2k3_clone"
Connected to VNC server, using protocol version 3.3
VNC server default format:
  32 bits per pixel.
...
  8 bits per pixel.
  True colour: max red 7 green 7 blue 3, shift red 0 green 3 blue 6
Using shared memory PutImage
Throughput 20000 kbit/s - changing to Hextile
Throughput 20000 kbit/s - changing from 8bit
Using viewer's native pixel format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
ShmCleanup called
12:11:35
#vncviewer 127.0.0.1:0
VNC viewer version 3.3.7 - built Dec 30 2006 12:48:54
Copyright (C) 2002-2003 RealVNC Ltd.
Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
See http://www.realvnc.com for information on VNC.
VNC server supports protocol version 3.8 (viewer 3.3)
No authentication needed
Desktop name "Xen-win2k3_clone"
Connected to VNC server, using protocol version 3.3
VNC server default format:
  32 bits per pixel.
...
  True colour: max red 7 green 7 blue 3, shift red 0 green 3 blue 6
Using shared memory PutImage
Throughput 20526 kbit/s - changing to Hextile
Throughput 20526 kbit/s - changing from 8bit
Using viewer's native pixel format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
CleanupSignalHandler called
ShmCleanup called
12:12:37
#xm destroy win2k3_clone

12:12:41
#xm create win2k3_clone
Using config file "/etc/xen/win2k3_clone".
Started domain win2k3_clone
12:12:43
#vncviewer 127.0.0.1:0
VNC viewer version 3.3.7 - built Dec 30 2006 12:48:54
Copyright (C) 2002-2003 RealVNC Ltd.
Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
See http://www.realvnc.com for information on VNC.
VNC server supports protocol version 3.8 (viewer 3.3)
No authentication needed
Desktop name "Xen-win2k3_clone"
Connected to VNC server, using protocol version 3.3
VNC server default format:
  32 bits per pixel.
...
  8 bits per pixel.
  True colour: max red 7 green 7 blue 3, shift red 0 green 3 blue 6
Using shared memory PutImage
Throughput 11428 kbit/s - changing to Hextile
Throughput 11428 kbit/s - changing from 8bit
Using viewer's native pixel format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
ShmCleanup called
12:14:34
#vncviewer 127.0.0.1:0
VNC viewer version 3.3.7 - built Dec 30 2006 12:48:54
Copyright (C) 2002-2003 RealVNC Ltd.
Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
See http://www.realvnc.com for information on VNC.
VNC server supports protocol version 3.8 (viewer 3.3)
No authentication needed
Desktop name "Xen-win2k3_clone"
Connected to VNC server, using protocol version 3.3
VNC server default format:
  32 bits per pixel.
...
Using shared memory PutImage
Throughput 20000 kbit/s - changing to Hextile
Throughput 20000 kbit/s - changing from 8bit
Using viewer's native pixel format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
Throughput 20000 kbit/s - changing to Raw
ReadFromRFBServer: rdr::EndOfStream
ShmCleanup called
/dev/pts/12
12:17:11
#ssh 192.168.15.226

12:17:11
#xen-drbd-install
│                  │                   ││ .viminfo         │                   │
│                  │                   ││ .vimrc           │                   │
│                  │                   ││ .xsession-errors │                   │
│                  │                   ││ centos.5~.tar.bz2│                   │
│                  │                   ││ centos.5-1.img   │                   │
│                  │                   ││ centos.5~xen3.cfg│                   │
│                  │                   ││ centos.swap      │                   │
│                  │                   ││*domu1.sleep      │                   │
│                  │                   ││*domu2-wi~e41-save│                   │
│                  │                   ││ nohup.out        │                   │
│                  │                   ││ pxelinux.0       │                   │
Usage:
    xen-drbd-install <network> <command>            (to view)
    xen-drbd-install <network> <command> | sh -s    (to run)
    <network> is the name of the file, which contains network description
Commands:
    make-drbd
    make-domains
    make-bridges
    make-links
12:17:19
#xen-drbd-install top1 make-drbd
    }
    on romzes
    {
        device /dev/drbd13;
        disk /dev/vg00/win2k3_clone_1;
        address 192.168.15.226:7803;
        meta-disk /dev/vg00/meta[13];
    }
    on debian2
    {
        device /dev/drbd13;
        disk /dev/vg00/win2k3_clone_1;
        address 192.168.15.2:7803;
        meta-disk /dev/vg00/meta[13];
    }
}
DRBD
###################################################
# MAKE DRBD DEVICES
#
yes yes | drbdadm create-md all
12:18:03
#xen-drbd-install top1 make-drbd | less
12:20:30
#hist_append ()
> {
\"$line\"\;; done);@" | sed 's/"/\\\\"/g' | while read line; do echo history -s
> }
12:20:32
#xen-drbd-install top1 make-drbd | less
12:20:32
#xen-drbd-install top1 make-drbd | less
12:20:32
#xen-drbd-install top1 make-drbd | less
12:20:32
#xen-drbd-install top1 make-drbd | less
12:20:32
#xen-drbd-install top1 make-drbd | less
12:21:41
#xen-drbd-install top1 make-drbd | sed 10,$d
│                  │                   ││/.psi             │                   │
│                  │                   ││/.purple          │                   │
│                  │                   ││/.ssh             │                   │
│                  │                   ││ .Xauthority      │                   │”днання.
│                  │                   ││ .bash_history    │                   │
│                  │                   ││ .bash_profile    │                   │
│                  │                   ││ .bashrc          │                   │
│                  │                   ││ .htoprc          │                   │
│                  │                   ││ .l3rc            │                   │
│                  │                   ││ .lesshst         │                   │
...
│                  │                   ││ .xsession-errors │                   │
│                  │                   ││ centos.5~.tar.bz2│                   │
│                  │                   ││ centos.5-1.img   │                   │
│                  │                   ││ centos.5~xen3.cfg│                   │
│                  │                   ││ centos.swap      │                   │
│                  │                   ││*domu1.sleep      │                   │
│                  │                   ││*domu2-wi~e41-save│                   │
│                  │                   ││ nohup.out        │                   │
│                  │                   ││ pxelinux.0       │                   │
sed: -e expression #1, char 3: unexpected `,'
12:21:52
#xen-drbd-install top1 make-drbd | sed '10,$d'
│                  │                   ││ .l3rc            │                   │
│                  │                   ││ .lesshst         │                   │
│                  │                   ││ .profile         │                   │
│                  │                   ││ .qemu_history    │                   │
│                  │                   ││ .viminfo         │                   │
│                  │                   ││ .vimrc           │                   │
│                  │                   ││ .xsession-errors │                   │
│                  │                   ││ centos.5~.tar.bz2│                   │
│                  │                   ││ centos.5-1.img   │                   │
│                  │                   ││ centos.5~xen3.cfg│                   │
...
│                  │                   ││ pxelinux.0       │                   │
###################################################
# MAKE LVM FOR DOMAINS DRBD DEVICES
#
pvcreate /dev/md2
vgcreate /dev/vg00 /dev/md2
lvcreate -L 5G -n meta /dev/vg00
lvcreate -L 2G -n gw /dev/vg00
lvcreate -L 2G -n winxp /dev/vg00
lvcreate -L 3G -n win2k3_clone /dev/vg00
12:22:05
#history | tail -20
│                  │                   ││*domu1.sleep      │                   │
│                  │                   ││*domu2-wi~e41-save│                   │
│                  │                   ││ nohup.out        │                   │
│                  │                   ││ pxelinux.0       │                   │
  526  ls /etc/init.d/
  527  ls /etc/init.d/xen-drbd
  528  ls /etc/rc2.d/
  529  ls /etc/default/xen-drbd
  530  cat /etc/default/xen-drbd
  531  vi /etc/default/xen-drbd
...
  536  vi /etc/xen/top1.py
  537  xen-drbd-install
  538  xen-drbd-install top1 make-drbd
  539  xen-drbd-install top1 make-drbd | less
  540  hist_append () {     eval $(cat "$@" | sed 's/"/\\\\"/g' | while read line; do echo history -s \"$line\"\;; done); }
  541  xen-drbd-install top1 make-drbd | less
  542  xen-drbd-install top1 make-drbd | sed 10,$d
  543  xen-drbd-install top1 make-drbd | sed '10,$d'
  544  xen-drbd-install top1 make-drbd | sed '10,$d'  | hist_append
  545  history | tail -20
12:22:23
#xen-drbd-install top1 make-drbd | sed '10,$d'

12:22:23
#history | tail -20

12:22:23
#xen-drbd-install top1 make-drbd | sed '10,$d' | hist_

12:22:23
#xen-drbd-install top1 make-drbd | sed '10,$d' > /mp/h
│                  │                   ││/.purple          │                   │
│                  │                   ││/.ssh             │                   │
│                  │                   ││ .Xauthority      │                   │”днання.
│                  │                   ││ .bash_history    │                   │
│                  │                   ││ .bash_profile    │                   │
│                  │                   ││ .bashrc          │                   │
│                  │                   ││ .htoprc          │                   │
│                  │                   ││ .l3rc            │                   │
│                  │                   ││ .lesshst         │                   │
│                  │                   ││ .profile         │                   │
...
│                  │                   ││ centos.5~.tar.bz2│                   │
│                  │                   ││ centos.5-1.img   │                   │
│                  │                   ││ centos.5~xen3.cfg│                   │
│                  │                   ││ centos.swap      │                   │
│                  │                   ││*domu1.sleep      │                   │
│                  │                   ││*domu2-wi~e41-save│                   │
│                  │                   ││ nohup.out        │                   │
│                  │                   ││ pxelinux.0       │                   │
bash: /mp/h: No such file or directory
close failed: [Errno 32] Broken pipe
12:22:32
#xen-drbd-install top1 make-drbd | sed '10,$d' > /t

Файлы

  • /etc/default/xen-drbd
  • INSTALL
  • /etc/default/xen-drbd
    >
    XEN_DRBD_PATH='/usr/local/sbin'
    TOPOLOGY_NAME='od'
    START_ACTION=nothing    # migrate-and-start-all
    STOP_ACTION=nothing     # migrate-all-out
    
    INSTALL
    >
    cp xen-scripts-network-xen-drbd $ROOT/etc/xen/scripts/network-xen-drbd
    chmod +x /etc/xen/scripts/network-xen-drbd
    cp default-xen-drbd ${ROOT}/etc/default/xen-drbd
    cp xen-drbd-start.py ${ROOT}/etc/xen/xen-drbd-start
    set +x
    for i in 2 3 4 5
    do
        set -x
        ln -sf ../init.d/xen-drbd ${ROOT}/etc/rc$i.d/S95xen-drbd
        set +x
    done
    for i in 0 1 6
    do
        set -x
        ln -sf ../init.d/xen-drbd ${ROOT}/etc/rc$i.d/K05xen-drbd
        set +x
    done
    

    Статистика

    Время первой команды журнала10:24:19 2008- 2-29
    Время последней команды журнала12:22:32 2008- 2-29
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, %11.88
    Процент синтаксически неверно набранных команд, % 0.00
    Суммарное время работы с терминалом *, час 1.97
    Количество командных строк в единицу времени, команда/мин 0.85
    Частота использования команд
    vncviewer23|==================| 18.85%
    xen-drbd-install19|===============| 15.57%
    xm11|=========| 9.02%
    less10|========| 8.20%
    sed6|====| 4.92%
    ls6|====| 4.92%
    vi5|====| 4.10%
    ssh4|===| 3.28%
    apt-cache4|===| 3.28%
    xen-drbd3|==| 2.46%
    cat3|==| 2.46%
    apt-get3|==| 2.46%
    me2|=| 1.64%
    history2|=| 1.64%
    lvdisplay2|=| 1.64%
    tail2|=| 1.64%
    sh2|=| 1.64%
    mtr2|=| 1.64%
    /t1|| 0.82%
    ping1|| 0.82%
    cp1|| 0.82%
    >1|| 0.82%
    make1|| 0.82%
    ssh-keygen1|| 0.82%
    rdesktop1|| 0.82%
    .1|| 0.82%
    hist_1|| 0.82%
    h1|| 0.82%
    grep1|| 0.82%
    vgdisplay1|| 0.82%
    hist_append1|| 0.82%
    ____
    *) Интервалы неактивности длительностью 30 минут и более не учитываются

    Справка

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    О программе

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

    $Id$