/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 |
|
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 189.8 win2k3 3 512 1 r----- 99.7 |
#xm destroy
|
#me /etc/xen/win2k3
# default is to use 'vnc-listen' setting from /etc/xen/xend-config.sxp #vnclisten="127.0.0.1" boot on floppy (a), hard disk (c), Network (n) or CD-ROM (d). #-----d" #----------------------------------------------------------------------------- #snapshot=1 ---------------------------------------------------------------------------- #---------------------------- #---------------------------------------------------------------------------- #vncunused=1 ---------------------------------------------------------------------------- #-default is to use 'vnc-listen' setting from /etc/xen/xend-config.sxp # enable spawning vncviewer for domain's console # set VNC display number, default = domid #vncconsole=0 try to find an unused port for the VNC server, default = 1 #---------------------------------------------------------------------------- # enable spawning vncviewer for domain's console # default is depents on vncpasswd in xend-config.sxp v---------------------------------------------------------------------------- #---------------------------------------------------------------------------- |
#xm create win2k3
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" 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 config file "/etc/xen/win2k3". Started domain win2k3 |
#me /etc/xen/win2k3
#---------------------------------------------------------------------------- |
#me /etc/xen/win2k3
# Shadow pagetable memory for the domain, in MB. # If not explicictly set, xend will pick an appropriate value... # Should be at least 2KB per MB of domain memory, plus a few MB per vcpu. # Enable/disable HVM APIC mode, default=1 (enabled) #apic=1 # List of which CPUS this domain is allowed to use, default Xen picks #cpus = "0" # all vcpus run on CPU0 # Random MACs are assigned if not given. # type=ioemu specify the NIC is an ioemu device not netfront # Define the disk devices you want the domain to have access to, and # Each disk entry is of the form phy:UNAME,DEV,MODE # and MODE is r for read-only, w for read-write. #disk = [ 'phy:hda1,hda1,r' ] # Configure the behaviour when a domain exits. There are three 'reasons' # may specify: # "destroy", meaning that the domain is cleaned up as normal; # one; # manually destroyed (using xm destroy, for example); or |
#setxkbmap
|
#setxkbmap asdgadg
![]() Error loading new keyboard description |
#setxkbmap -sgdfg
![]() Error! Option "-sgdfg" not recognized |
#setxkbmap -help
Usage: setxkbmap [args] [<layout> [<variant> [<option> ... ]]] Where legal args are: -?,-help Print this message -compat <name> Specifies compatibility map component name -config <file> Specifies configuration file to use -device <deviceid> Specifies the device ID to use -display <dpy> Specifies display to use -geometry <name> Specifies geometry component name -I[<dir>] Add <dir> to list of directories to be used -keycodes <name> Specifies keycodes component name ... -model <name> Specifies model used to choose component names -option <name> Adds an option used to choose component names -print Print a complete xkb_keymap description and exit -rules <name> Name of rules file to use -symbols <name> Specifies symbols component name -synch Synchronize request w/X server -types <name> Specifies types component name -v[erbose] [<lvl>] Sets verbosity (1..10). Higher values yield more messages -variant <name> Specifies layout variant used to choose component names |
#rdesktop
![]() rdesktop: A Remote Desktop Protocol client. Version 1.5.0. Copyright (C) 1999-2007 Matt Chapman. See http://www.rdesktop.org/ for more information. Usage: rdesktop [options] server[:port] -u: user name -d: domain -s: shell -c: working directory -p: password (- to prompt) -n: client hostname ... available drivers for 'local': oss: OSS output driver, default device: /dev/dsp or $AUDIODEV '-r clipboard:[off|PRIMARYCLIPBOARD|CLIPBOARD]': enable clipboard redirection. 'PRIMARYCLIPBOARD' looks at both PRIMARY and CLIPBOARD when sending data to server. 'CLIPBOARD' looks at only CLIPBOARD. -0: attach to console -4: use RDP version 4 -5: use RDP version 5 (default) |
#rdesktop -f 192.168.15.236
WARNING: Remote desktop does not support colour depth 24; falling back to 16 WARNING: No translation for (keysym 0xfe08, ISO_Next_Group) WARNING: No translation for (keysym 0x6e1, Cyrillic_A) WARNING: No translation for (keysym 0x6e1, Cyrillic_A) WARNING: No translation for (keysym 0x6c3, Cyrillic_tse) WARNING: No translation for (keysym 0x6c3, Cyrillic_tse) WARNING: No translation for (keysym 0x6a6, Ukrainian_i) WARNING: No translation for (keysym 0x6a6, Ukrainian_i) WARNING: No translation for (keysym 0xfe08, ISO_Next_Group) |
#vnc
![]() vncpasswd vncviewer |
#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" 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 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 ShmCleanup called |
#rdesktop -f 192.168.15.236
WARNING: Remote desktop does not support colour depth 24; falling back to 16 WARNING: No translation for (keysym 0xfe08, ISO_Next_Group) WARNING: No translation for (keysym 0x6d0, Cyrillic_pe) WARNING: No translation for (keysym 0x6d0, Cyrillic_pe) WARNING: No translation for (keysym 0x6c1, Cyrillic_a) WARNING: No translation for (keysym 0x6c1, Cyrillic_a) WARNING: No translation for (keysym 0x6d2, Cyrillic_er) WARNING: No translation for (keysym 0x6d2, Cyrillic_er) WARNING: No translation for (keysym 0x6c1, Cyrillic_a) WARNING: No translation for (keysym 0x6c1, Cyrillic_a) WARNING: No translation for (keysym 0xfe08, ISO_Next_Group) WARNING: No translation for (keysym 0xfe08, ISO_Next_Group) |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 659.6 |
#lvcreate -s -nwin2k3_clone -L2G vg00
![]() Path required for Logical Volume "vg00" The origin name should include the volume group. Run `lvcreate --help' for more information. |
#lvcreate -s -nwin2k3_clone -L2G /dev/vg00/win2k3
![]() Couldn't find origin volume 'win2k3vg00'. |
#lvcreate -s -nwin2k3_clone -L2G /dev/vg00/win2k3
Logical volume "win2k3_clone" created |
#cp /etc/xen/win2k3 /etc/xen/win2k3_clone
|
#me
# one; # manually destroyed (using xm destroy, for example); or # renamed and a new domain started in its place. # The default is # on_poweroff = 'destroy' # on_crash = 'restart' # For backwards compatibility we also support the deprecated option restart # restart = 'onreboot' means on_poweroff = 'destroy' # on_crash = 'destroy' # restart = 'always' means on_poweroff = 'restart' # on_crash = 'restart' # restart = 'never' means on_poweroff = 'destroy' # on_crash = 'destroy' #on_poweroff = 'destroy' #on_crash = 'restart' #============================================================================ # New stuff # boot on floppy (a), hard disk (c), Network (n) or CD-ROM (d). boot="d" #----------------------------------------------------------------------------- #snapshot=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. ... 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. ... 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 |
#rdesktop -f 192.168.15.236
![]() ERROR: connect: No route to host |
#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 |
#rdesktop -f 192.168.15.242
![]() WARNING: Remote desktop does not support colour depth 24; falling back to 16 ERROR: recv: Connection reset by peer |
#rdesktop -f 192.168.15.242
WARNING: Remote desktop does not support colour depth 24; falling back to 16 |
#lvcreate
Logical volume "win2k3_clone_1" created |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 762.5 |
#xm create win2k3_clone
![]() Using config file "/etc/xen/win2k3_clone". Error: Errors were found at line 68 while processing /etc/xen/win2k3_clone: disk = [ 'phy:/dev/vg00/win2k3_clone,hda,w', phy:/dev/vg00/win2k3_clone_1,hdb,w', 'file:/root/win2k3.iso,hdc:cdrom,r' ] |
#me /etc/xen/win2k3_clone
#---------------------------------------------------------------------------- # Configure the behaviour when a domain exits. There are three 'reasons' # for a domain to stop: poweroff, reboot, and crash. For each of these you # may specify: # # "destroy", mean # "restart", meanyou want the domain to have access to, and # one;e form phy:UNAME,DEV,MODE # "preserve", meannly, w for read-write. # manually destroyed (using xm destroy, for example); or # "rename-restart", meaning that the old domain is not cleaned up, but is # renamed and a new domain started in its place. # # The default is # # on_poweroff = 'destroy' # on_reboot = 'restart' # on_crash = 'restart' # # For backwards compatibility we also support the deprecated option restart # |
#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 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. ... 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 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 775.4 win2k3_clone 8 256 1 -b---- 9.6 |
#rdesktop -f 192.168.15.242
![]() ERROR: connect: No route to host |
#rdesktop -f 192.168.15.242
![]() ERROR: connect: No route to host |
#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 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::EndOfStream 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 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. ... 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 Throughput 20000 kbit/s - changing to Raw ShmCleanup called |
#rdesktop -f 192.168.15.244
WARNING: Remote desktop does not support colour depth 24; falling back to 16 |
#rdesktop -f 192.168.15.244
WARNING: Remote desktop does not support colour depth 24; falling back to 16 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 949.9 win2k3_clone 9 256 1 -b---- 164.0 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 950.2 win2k3_clone 9 256 1 -b---- 164.1 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 951.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. ... 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 |
#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 |
#rdesktop -f 192.168.15.244
![]() ERROR: connect: No route to host |
#rdesktop -f 192.168.15.242
![]() ERROR: connect: No route to host |
#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 |
#rdesktop -f 192.168.15.245
WARNING: No translation for (keysym 0x6da, Cyrillic_ze) WARNING: No translation for (keysym 0x6da, Cyrillic_ze) WARNING: No translation for (keysym 0x6db, Cyrillic_sha) WARNING: No translation for (keysym 0x6db, Cyrillic_sha) WARNING: No translation for (keysym 0x6c6, Cyrillic_ef) WARNING: No translation for (keysym 0x6c6, Cyrillic_ef) WARNING: No translation for (keysym 0x6d4, Cyrillic_te) WARNING: No translation for (keysym 0x6d4, Cyrillic_te) WARNING: No translation for (keysym 0x6c5, Cyrillic_ie) WARNING: No translation for (keysym 0x6c5, Cyrillic_ie) ... WARNING: No translation for (keysym 0x6c1, Cyrillic_a) WARNING: No translation for (keysym 0x6c1, Cyrillic_a) WARNING: No translation for (keysym 0x6fe, Cyrillic_CHE) WARNING: No translation for (keysym 0x6fe, Cyrillic_CHE) WARNING: No translation for (keysym 0x6f0, Cyrillic_PE) WARNING: No translation for (keysym 0x6f0, Cyrillic_PE) WARNING: No translation for (keysym 0x6a6, Ukrainian_i) WARNING: No translation for (keysym 0x6c6, Cyrillic_ef) WARNING: No translation for (keysym 0x6a6, Ukrainian_i) WARNING: No translation for (keysym 0x6c6, Cyrillic_ef) |
#set opt
|
#setopt
![]() bash: setopt: command not found |
#man bash
|
#sho
![]() shopt showconsolefont showfont showkey showmount showrgb |
#shopt -o histappend
![]() bash: shopt: histappend: invalid option name |
#man bash
|
#shopt
![]() histappend off |
#shopt histappend
![]() histappend off |
#shopt histappend
![]() histappend off |
#shopt histappend set
![]() histappend off bash: shopt: set: invalid shell option name |
#set
|
#shopt histappend
![]() histappend off |
#shopt -s
|
#shopt histappend
histappend on |
#me .
![]() ./ .dbus/ .gstreamer-0.10/ .mc/ .ssh/ ../ .enlightenment/ .htoprc .mcabber/ .viminfo .aptitude/ .freetalk/ .kde/ .mozilla/ .vimrc .bash_history .gajim/ .l3rc .profile .Xauthority .bash_profile .gconf/ .lesshst .psi/ .xsession-errors .bashrc .gconfd/ .lilalo/ .purple/ .config/ .gnupg/ .links2/ .qemu_history |
#me .bash
![]() .bash_history .bash_profile .bashrc |
#me .bashrc
mistakes: tart shopt -s histappend |
#hist
![]() hist_append history |
#hist
![]() hist_append history |
#man
![]() |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 1235.4 domu2-win-e41 14 256 1 -b---- 19.7 win2k3_clone 11 263 1 -b---- 90.5 |
#xm --help
Usage: xm <subcommand> [args] Control, list, and manipulate Xen guest instances. xm full list of subcommands: console Attach to <Domain>'s console. create Create a domain based on <ConfigFile>. new Adds a domain to Xend domain management delete Remove a domain from Xend domain management. destroy Terminate a domain immediately. domid Convert a domain name to domain id. domname Convert a domain id to domain name. ... resources Show info for each labeled resource. dumppolicy Print hypervisor ACM state information. setpolicy Set the policy of the system. resetpolicy Set the policy of the system to the default policy. getpolicy Get the policy of the system. shell Launch an interactive shell. <Domain> can either be the Domain Name or Id. For more help on 'xm' see the xm(1) man page. For more help on 'xm create' see the xmdomain.cfg(5) man page. |
#xm block-attach
![]() Error: 'xm block-attach' requires between 4 and 5 arguments. Usage: xm block-attach <Domain> <BackDev> <FrontDev> <Mode> [BackDomain] Create a new virtual block device. |
#lvcreate -nwin2k3_clone_2
Logical volume "win2k3_clone_2" created |
#xm block-attach
![]() Error: 'xm block-attach' requires between 4 and 5 arguments. Usage: xm block-attach <Domain> <BackDev> <FrontDev> <Mode> [BackDomain] Create a new virtual block device. |
#xm block-attach win2k3_clone phy:/dev/vg00/win2k3_clone_2 hdd w
|
#rdesktop -f 192.168.15.245
WARNING: Remote desktop does not support colour depth 24; falling back to 16 |
#lvcreate -s -nwin2k3_clone2
Logical volume "win2k3_clone2" created |
#cp /etc/xen/win2k3 /etc/xen/win2k3_clone2
|
#me /etc/xen/win2k3_clone2
#---------------------------------------------------------------------------- # Kernel image file. kernel = "hvmloader" # The domain build function. HVM domain uses 'hvm'. builder='hvm' on. HVM domain uses 'hvm'. # Initial memory allocati # The domain needs enough memory to boot kernel # WARNIN 256 # memory errors. The domain needs enough memory to boot kernel # and modules. Allocating less than 32MBs is not recommended. memory = 512 # Shadow pagetable memory for the domain, in MB. # If not explicictly set, xend will pick an appropriate value... # Should be at least 2KB per MB of domain memory, plus a few MB per vcpu. # shadow_memory = 8 # A name for your domain. All domains must have different names. name = "win2k3_clone2" |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 1269.4 domu2-win-e41 15 256 1 -b---- 6.9 win2k3_clone 11 263 1 -b---- 101.1 |
#xm create win2k3_clone2
![]() Using config file "/etc/xen/win2k3_clone2". Error: I need 273408 KiB, but dom0_min_mem is 200704 and shrinking to 200704 KiB would leave only 232828 KiB free. |
#rdesktop -f 192.168.15.245
WARNING: Remote desktop does not support colour depth 24; falling back to 16 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 1277.8 domu2-win-e41 15 256 1 -b---- 7.6 win2k3_clone 11 263 1 ------ 105.8 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 1278.9 domu2-win-e41 15 256 1 -b---- 7.6 |
#cp /etc/xen/win2k3_clone /etc/xen/win2k3_clone2
|
Время первой команды журнала | 11:56:40 2008- 2-28 | ||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:58:19 2008- 2-28 | ||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 91 | ||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 24.18 | ||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.10 | ||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.00 | ||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.76 | ||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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