/l3/users/sftsrv/drbd/debian2.tech.net/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 |
|
#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 |
#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 |
#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) ... |
#apt-get install curses python
![]() Читання переліків пакетів... Виконано Побудова дерева залежностей Reading state information... Виконано E: Не можу знайти пакунок curses |
#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 |
#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 |
#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) ... |
#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 |
#rdesktop 192.168.15.247
WARNING: Remote desktop does not support colour depth 24; falling back to 16 |
#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 |
#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 |
#xm create winxp
![]() Using config file "/etc/xen/winxp". Error: Domain 'winxp' already exists with ID '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. ... 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 |
#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 |
#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 |
#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 |
#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 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 8009.2 winxp 19 256 1 -b---- 11.0 |
#xm destroy 19
|
#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 |
#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 |
#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 |
# mtr www.yahoo.com
|
#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 |
#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 |
#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) |
#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% -- Встав |
#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% -- Встав |
#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% -- Встав |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 â â |
#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 |
#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 |
#vi top1.py
|
#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 |
#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 |
#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 |
#less init.d-xen-drbd
|
#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 |
#less /etc/xen/scripts/xen-
![]() |
#less /etc/xen/scripts/network-
![]() |
#less /etc/xen/scripts/network-xen-drbd
|
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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: |
#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. |
#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. |
#vi /etc/xen/top1.py
|
#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 |
#xm destroy win2k3_clone
|
#me /etc/xen/win2k3_clone
xm create'. s guest platform has, default=1 |
#xm create win2k3_clone
Using config file "/etc/xen/win2k3_clone". Started domain win2k3_clone |
#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 |
#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 |
#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 |
#xm destroy win2k3_clone
|
#xm create win2k3_clone
Using config file "/etc/xen/win2k3_clone". Started domain win2k3_clone |
#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 |
#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 |
#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 |
#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 |
#xen-drbd-install top1 make-drbd | less
|
#hist_append ()
> { \"$line\"\;; done);@" | sed 's/"/\\\\"/g' | while read line; do echo history -s > } |
#xen-drbd-install top1 make-drbd | less
![]() |
#xen-drbd-install top1 make-drbd | less
![]() |
#xen-drbd-install top1 make-drbd | less
![]() |
#xen-drbd-install top1 make-drbd | less
![]() |
#xen-drbd-install top1 make-drbd | less
|
#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 `,' |
#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 |
#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 |
#xen-drbd-install top1 make-drbd | sed '10,$d'
![]() |
#history | tail -20
![]() |
#xen-drbd-install top1 make-drbd | sed '10,$d' | hist_
![]() |
#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 |
#xen-drbd-install top1 make-drbd | sed '10,$d' > /t
|
XEN_DRBD_PATH='/usr/local/sbin' TOPOLOGY_NAME='od' START_ACTION=nothing # migrate-and-start-all STOP_ACTION=nothing # migrate-all-out
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 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ 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 |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008