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

Содержание

Журнал

Пятница (02/24/12)

/dev/pts/17
14:36:25
#lvcreate -L5G
  Please provide a volume group name
  Run `lvcreate --help' for more information.
/dev/pts/16
14:36:25
#lvcreate -L5G
  Please provide a volume group name
  Run `lvcreate --help' for more information.
14:36:45
#lvcreate -L5G --help
  lvcreate: Create a logical volume
lvcreate
        [-A|--autobackup {y|n}]
        [--addtag Tag]
        [--alloc AllocationPolicy]
        [-C|--contiguous {y|n}]
        [-d|--debug]
        [-h|-?|--help]
        [--ignoremonitoring]
        [--monitor {y|n}]
...
         -L|--size LogicalVolumeSize[bBsSkKmMgGtTpPeE]}
        [-M|--persistent {y|n}] [--major major] [--minor minor]
        [-n|--name LogicalVolumeName]
        [--noudevsync]
        [-p|--permission {r|rw}]
        [-r|--readahead ReadAheadSectors|auto|none]
        [-t|--test]
        [-v|--verbose]
        [--version]
        [PhysicalVolumePath...]
/dev/pts/17
14:36:45
#lvcreate -L5G --help
  lvcreate: Create a logical volume
lvcreate
        [-A|--autobackup {y|n}]
        [--addtag Tag]
        [--alloc AllocationPolicy]
        [-C|--contiguous {y|n}]
        [-d|--debug]
        [-h|-?|--help]
        [--ignoremonitoring]
        [--monitor {y|n}]
...
         -L|--size LogicalVolumeSize[bBsSkKmMgGtTpPeE]}
        [-M|--persistent {y|n}] [--major major] [--minor minor]
        [-n|--name LogicalVolumeName]
        [--noudevsync]
        [-p|--permission {r|rw}]
        [-r|--readahead ReadAheadSectors|auto|none]
        [-t|--test]
        [-v|--verbose]
        [--version]
        [PhysicalVolumePath...]
14:36:51
#lvcreate -L5G winxp1 /dev/VG0
  Volume group "winxp1" not found
/dev/pts/16
14:36:51
#lvcreate -L5G winxp1 /dev/VG0
  Volume group "winxp1" not found
/dev/pts/17
14:37:18
#lvcreate -L5G -n winxp1 /dev/VG0
  Logical volume "winxp1" created
/dev/pts/16
14:37:18
#lvcreate -L5G -n winxp1 /dev/VG0
  Logical volume "winxp1" created
/dev/pts/17
14:37:58
#lvdisplay
  --- Logical volume ---
  LV Name                /dev/VG0/vol1
  VG Name                VG0
  LV UUID                pS5ghr-UfcZ-CBJz-u1xI-eP7V-vlf4-tpr2ex
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                102.00 GiB
  Current LE             26112
  Segments               2
...
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                5.00 GiB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:2
/dev/pts/16
14:37:58
#lvdisplay
  --- Logical volume ---
  LV Name                /dev/VG0/vol1
  VG Name                VG0
  LV UUID                pS5ghr-UfcZ-CBJz-u1xI-eP7V-vlf4-tpr2ex
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                102.00 GiB
  Current LE             26112
  Segments               2
...
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                5.00 GiB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:2
14:38:05
#ls
clone-vm  dom1.save  file.txt  install-authorized  knoppix.iso  start-kvm  wxp-sp2.iso
/dev/pts/17
14:38:05
#ls
clone-vm  dom1.save  file.txt  install-authorized  knoppix.iso  start-kvm  wxp-sp2.iso
14:38:32
#rm
rm: missing operand
Try `rm --help' for more information.
/dev/pts/16
14:38:32
#rm
rm: missing operand
Try `rm --help' for more information.
/dev/pts/17
14:38:39
#rm ./wxp-sp2.iso ./winxp.iso
rm: cannot remove `./winxp.iso': No such file or directory
/dev/pts/16
14:38:39
#rm ./wxp-sp2.iso ./winxp.iso
rm: cannot remove `./winxp.iso': No such file or directory
/dev/pts/17
14:39:00
#rv
bash: rv: command not found
/dev/pts/16
14:39:00
#rv
bash: rv: command not found
/dev/pts/17
14:39:11
#rm
rm: missing operand
Try `rm --help' for more information.
/dev/pts/16
14:39:11
#rm
rm: missing operand
Try `rm --help' for more information.
/dev/pts/17
14:39:14
#rn
bash: rn: command not found
/dev/pts/16
14:39:14
#rn
bash: rn: command not found
/dev/pts/17
14:39:21
#rv
bash: rv: command not found
/dev/pts/16
14:39:21
#rv
bash: rv: command not found
/dev/pts/17
14:39:24
#rm --help
Usage: rm [OPTION]... FILE...
Remove (unlink) the FILE(s).
  -f, --force           ignore nonexistent files, never prompt
  -i                    prompt before every removal
  -I                    prompt once before removing more than three files, or
                          when removing recursively.  Less intrusive than -i,
                          while still giving protection against most mistakes
      --interactive[=WHEN]  prompt according to WHEN: never, once (-I), or
                          always (-i).  Without WHEN, prompt always
      --one-file-system  when removing a hierarchy recursively, skip any
...
use one of these commands:
  rm -- -foo
  rm ./-foo
Note that if you use rm to remove a file, it might be possible to recover
some of its contents, given sufficient expertise and/or time.  For greater
assurance that the contents are truly unrecoverable, consider using shred.
Report rm bugs to bug-coreutils@gnu.org
GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
General help using GNU software: <http://www.gnu.org/gethelp/>
For complete documentation, run: info coreutils 'rm invocation'
/dev/pts/16
14:39:24
#rm --help
Usage: rm [OPTION]... FILE...
Remove (unlink) the FILE(s).
  -f, --force           ignore nonexistent files, never prompt
  -i                    prompt before every removal
  -I                    prompt once before removing more than three files, or
                          when removing recursively.  Less intrusive than -i,
                          while still giving protection against most mistakes
      --interactive[=WHEN]  prompt according to WHEN: never, once (-I), or
                          always (-i).  Without WHEN, prompt always
      --one-file-system  when removing a hierarchy recursively, skip any
...
use one of these commands:
  rm -- -foo
  rm ./-foo
Note that if you use rm to remove a file, it might be possible to recover
some of its contents, given sufficient expertise and/or time.  For greater
assurance that the contents are truly unrecoverable, consider using shred.
Report rm bugs to bug-coreutils@gnu.org
GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
General help using GNU software: <http://www.gnu.org/gethelp/>
For complete documentation, run: info coreutils 'rm invocation'
/dev/pts/17
14:39:29
#ls
clone-vm  dom1.save  file.txt  install-authorized  knoppix.iso  start-kvm
/dev/pts/16
14:39:29
#ls
clone-vm  dom1.save  file.txt  install-authorized  knoppix.iso  start-kvm
/dev/pts/17
14:39:38
#scp
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
           [-l limit] [-o ssh_option] [-P port] [-S program]
           [[user@]host1:]file1 ... [[user@]host2:]file2
/dev/pts/16
14:39:38
#scp
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
           [-l limit] [-o ssh_option] [-P port] [-S program]
           [[user@]host1:]file1 ... [[user@]host2:]file2
/dev/pts/17
14:40:13
#scp user@10.0.35.45:/root/wxp-sp2.iso ./wxp-sp2.iso
user@10.0.35.45's password:
scp: /root/wxp-sp2.iso: Permission denied
/dev/pts/16
14:40:13
#scp user@10.0.35.45:/root/wxp-sp2.iso ./wxp-sp2.iso
user@10.0.35.45's password:
scp: /root/wxp-sp2.iso: Permission denied
/dev/pts/17
14:40:46
#scp root@10.0.35.45:/root/wxp-sp2.iso ./wxp-sp2.iso
wxp-sp2.iso                                                                           100%  677MB   9.0MB/s   01:15
/dev/pts/16
14:40:46
#scp root@10.0.35.45:/root/wxp-sp2.iso ./wxp-sp2.iso
wxp-sp2.iso                                                                           100%  677MB   9.0MB/s   01:15
/dev/pts/17
14:42:09
#vim /etc/xen/winxp1
--- /tmp/l3-saved-5961.20695.27338	2012-02-24 15:42:28.000000000 +0200
+++ /etc/xen/winxp1	2012-02-24 15:44:06.000000000 +0200
@@ -78,7 +78,7 @@
 # and MODE is r for read-only, w for read-write.
 
 #disk = [ 'phy:hda1,hda1,r' ]
-disk = [ 'phy:/dev/VG0/winxp1:sda1,w,file:/root/winxp.iso,hda,w', ',hdc:cdrom,r' ]
+disk = [ 'phy:/dev/VG0/winxp1:sda1,w,file:/root/wxp-sp2.iso,hda,w', ',hdc:cdrom,r' ]
 
 #----------------------------------------------------------------------------
 # Configure the behaviour when a domain exits.  There are three 'reasons'
@@ -130,7 +130,7 @@
 #-----------------------------------------------------------------------------
 # boot on floppy (a), hard disk (c), Network (n) or CD-ROM (d) 
 # default: hard disk, cd-rom, floppy
-#boot="cda"
+boot="d"
 
 #-----------------------------------------------------------------------------
 #  write to temporary files instead of disk image files
/dev/pts/16
14:42:09
#vim /etc/xen/winxp1
/dev/pts/17
14:44:06
#ls
clone-vm  dom1.save  file.txt  install-authorized  knoppix.iso  start-kvm  wxp-sp2.iso
/dev/pts/16
14:44:06
#ls
clone-vm  dom1.save  file.txt  install-authorized  knoppix.iso  start-kvm  wxp-sp2.iso
/dev/pts/17
14:44:30
#xm create winxp1
Using config file "/etc/xen/winxp1".
Error: Invalid mode
/dev/pts/16
14:44:30
#xm create winxp1
Using config file "/etc/xen/winxp1".
Error: Invalid mode
/dev/pts/17
14:44:46
#vim /etc/xen/winxp1
--- /tmp/l3-saved-5961.30424.28445	2012-02-24 15:45:04.000000000 +0200
+++ /etc/xen/winxp1	2012-02-24 15:46:16.000000000 +0200
@@ -78,7 +78,7 @@
 # and MODE is r for read-only, w for read-write.
 
 #disk = [ 'phy:hda1,hda1,r' ]
-disk = [ 'phy:/dev/VG0/winxp1:sda1,w,file:/root/wxp-sp2.iso,hda,w', ',hdc:cdrom,r' ]
+disk = [ 'phy:/dev/VG0/winxp1:sda,w,file:/root/wxp-sp2.iso,hda,w', ',hdc:cdrom,r' ]
 
 #----------------------------------------------------------------------------
 # Configure the behaviour when a domain exits.  There are three 'reasons'
/dev/pts/16
14:44:46
#vim /etc/xen/winxp1
/dev/pts/17
14:46:16
#xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  7238     2     r-----   4828.5
dom1                                         2   128     1     -b----    529.5
dom2                                         4   128     1     -b----     20.2
/dev/pts/16
14:46:16
#xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  7238     2     r-----   4828.5
dom1                                         2   128     1     -b----    529.5
dom2                                         4   128     1     -b----     20.2
/dev/pts/17
14:46:23
#vim /etc/xen/winxp1
/dev/pts/16
14:46:23
#vim /etc/xen/winxp1
/dev/pts/17
14:46:34
#A name for your domain. All domains must have different names.
Using config file "/etc/xen/winxp1".
Error: Invalid mode
/dev/pts/16
14:46:34
#A name for your domain. All domains must have different names.
Using config file "/etc/xen/winxp1".
Error: Invalid mode
/dev/pts/17
14:46:41
#vim /etc/xen/winxp1
/dev/pts/16
14:46:41
#vim /etc/xen/winxp1
/dev/pts/17
14:48:26
#ls
clone-vm  dom1.save  file.txt  install-authorized  knoppix.iso  start-kvm  wxp-sp2.iso
/dev/pts/16
14:48:26
#ls
clone-vm  dom1.save  file.txt  install-authorized  knoppix.iso  start-kvm  wxp-sp2.iso
/dev/pts/17
14:48:29
#grep disk /etc/xen/dom1
# Optional ramdisk.
ramdisk = "/boot/initrd.img-3.2.7"
# Define the disk devices you want the domain to have access to, and
# Each disk entry is of the form phy:UNAME,DEV,MODE
disk = [ 'phy:/dev/VG0/vol1,xvda1,w' ]
/dev/pts/16
14:48:29
#grep disk /etc/xen/dom1
# Optional ramdisk.
ramdisk = "/boot/initrd.img-3.2.7"
# Define the disk devices you want the domain to have access to, and
# Each disk entry is of the form phy:UNAME,DEV,MODE
disk = [ 'phy:/dev/VG0/vol1,xvda1,w' ]
/dev/pts/17
14:49:32
#lvdispalay
bash: lvdispalay: command not found
/dev/pts/16
14:49:32
#lvdispalay
bash: lvdispalay: command not found
/dev/pts/17
14:51:13
#lvdisplay
  --- Logical volume ---
  LV Name                /dev/VG0/vol1
  VG Name                VG0
  LV UUID                pS5ghr-UfcZ-CBJz-u1xI-eP7V-vlf4-tpr2ex
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                102.00 GiB
  Current LE             26112
  Segments               2
...
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                5.00 GiB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:2
/dev/pts/16
14:51:13
#lvdisplay
  --- Logical volume ---
  LV Name                /dev/VG0/vol1
  VG Name                VG0
  LV UUID                pS5ghr-UfcZ-CBJz-u1xI-eP7V-vlf4-tpr2ex
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                102.00 GiB
  Current LE             26112
  Segments               2
...
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                5.00 GiB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:2
/dev/pts/17
14:51:16
#vim /etc/xen/winxp1
/dev/pts/16
14:51:16
#vim /etc/xen/winxp1
/dev/pts/17
14:55:09
#vim /etc/xen/winxp1
--- /tmp/l3-saved-5961.22265.5450	2012-02-24 15:55:30.000000000 +0200
+++ /etc/xen/winxp1	2012-02-24 15:56:06.000000000 +0200
@@ -78,7 +78,7 @@
 # and MODE is r for read-only, w for read-write.
 
 #disk = [ 'phy:hda1,hda1,r' ]
-disk = [ 'phy:/dev/VG0/winxp1:sda,w,file:/root/wxp-sp2.iso,hda,w', ',hdc:cdrom,r' ]
+disk = [ 'phy:/dev/VG0/winxp1,sda,w', 'file:/root/wxp-sp2.iso,hdc:cdrom,r' ]
 
 #----------------------------------------------------------------------------
 # Configure the behaviour when a domain exits.  There are three 'reasons'
/dev/pts/16
14:55:09
#vim /etc/xen/winxp1
/dev/pts/17
14:56:16
#xm console winxp1
Error: Domain 'winxp1' does not exist.
/dev/pts/16
14:56:16
#xm console winxp1
Error: Domain 'winxp1' does not exist.
/dev/pts/17
14:56:28
#xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  7238     2     r-----   5257.6
WinXp1                                       9   512     1     r-----      7.8
dom1                                         2   128     1     -b----    529.6
dom2                                         4   128     1     -b----     20.3
/dev/pts/16
14:56:28
#xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  7238     2     r-----   5257.6
WinXp1                                       9   512     1     r-----      7.8
dom1                                         2   128     1     -b----    529.6
dom2                                         4   128     1     -b----     20.3
/dev/pts/17
14:56:34
#apt-get install vncviewer
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'xtightvncviewer' instead of 'vncviewer'
Suggested packages:
  tightvncserver ssh
The following NEW packages will be installed:
  xtightvncviewer
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 88.9 kB of archives.
After this operation, 229 kB of additional disk space will be used.
Get:1 http://10.0.35.1/debian/ squeeze/main xtightvncviewer i386 1.3.9-6.1+b1 [88.9 kB]
Fetched 88.9 kB in 0s (4,474 kB/s)
Selecting previously deselected package xtightvncviewer.
(Reading database ... 126640 files and directories currently installed.)
Unpacking xtightvncviewer (from .../xtightvncviewer_1.3.9-6.1+b1_i386.deb) ...
Processing triggers for menu ...
Processing triggers for man-db ...
Setting up xtightvncviewer (1.3.9-6.1+b1) ...
update-alternatives: using /usr/bin/xtightvncviewer to provide /usr/bin/vncviewer (vncviewer) in auto mode.
Processing triggers for menu ...
/dev/pts/16
14:56:34
#apt-get install vncviewer
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'xtightvncviewer' instead of 'vncviewer'
Suggested packages:
  tightvncserver ssh
The following NEW packages will be installed:
  xtightvncviewer
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 88.9 kB of archives.
After this operation, 229 kB of additional disk space will be used.
Get:1 http://10.0.35.1/debian/ squeeze/main xtightvncviewer i386 1.3.9-6.1+b1 [88.9 kB]
Fetched 88.9 kB in 0s (4,474 kB/s)
Selecting previously deselected package xtightvncviewer.
(Reading database ... 126640 files and directories currently installed.)
Unpacking xtightvncviewer (from .../xtightvncviewer_1.3.9-6.1+b1_i386.deb) ...
Processing triggers for menu ...
Processing triggers for man-db ...
Setting up xtightvncviewer (1.3.9-6.1+b1) ...
update-alternatives: using /usr/bin/xtightvncviewer to provide /usr/bin/vncviewer (vncviewer) in auto mode.
Processing triggers for menu ...
/dev/pts/17
14:57:42
#vncviewer 127.0.0.1:0
Connected to RFB server, using protocol version 3.8
No authentication needed
Authentication successful
Desktop name "Xen-WinXp1"
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
Warning: Cannot convert string "-*-helvetica-bold-r-*-*-16-*-*-*-*-*-*-*" to type FontStruct
Using default colormap which is TrueColor.  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
Using shared memory PutImage
Same machine: preferring raw encoding
vncviewer: VNC server closed connection
ShmCleanup called
/dev/pts/16
14:57:42
#vncviewer 127.0.0.1:0
Connected to RFB server, using protocol version 3.8
No authentication needed
Authentication successful
Desktop name "Xen-WinXp1"
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
Warning: Cannot convert string "-*-helvetica-bold-r-*-*-16-*-*-*-*-*-*-*" to type FontStruct
Using default colormap which is TrueColor.  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
Using shared memory PutImage
Same machine: preferring raw encoding
vncviewer: VNC server closed connection
ShmCleanup called
/dev/pts/17
14:58:03
#vncviewer 127.0.0.1:0
Connected to RFB server, using protocol version 3.8
No authentication needed
Authentication successful
Desktop name "Xen-WinXp1"
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
Warning: Cannot convert string "-*-helvetica-bold-r-*-*-16-*-*-*-*-*-*-*" to type FontStruct
Using default colormap which is TrueColor.  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
Using shared memory PutImage
Same machine: preferring raw encoding
vncviewer: VNC server closed connection
ShmCleanup called
/dev/pts/16
14:58:03
#vncviewer 127.0.0.1:0
Connected to RFB server, using protocol version 3.8
No authentication needed
Authentication successful
Desktop name "Xen-WinXp1"
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
Warning: Cannot convert string "-*-helvetica-bold-r-*-*-16-*-*-*-*-*-*-*" to type FontStruct
Using default colormap which is TrueColor.  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
Using shared memory PutImage
Same machine: preferring raw encoding
vncviewer: VNC server closed connection
ShmCleanup called
/dev/pts/17
14:58:10
#vncviewer 127.0.0.1:0
Connected to RFB server, using protocol version 3.8
No authentication needed
Authentication successful
Desktop name "Xen-WinXp1"
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
Warning: Cannot convert string "-*-helvetica-bold-r-*-*-16-*-*-*-*-*-*-*" to type FontStruct
Using default colormap which is TrueColor.  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
Using shared memory PutImage
Same machine: preferring raw encoding
vncviewer: VNC server closed connection
ShmCleanup called
/dev/pts/16
14:58:10
#vncviewer 127.0.0.1:0
Connected to RFB server, using protocol version 3.8
No authentication needed
Authentication successful
Desktop name "Xen-WinXp1"
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
Warning: Cannot convert string "-*-helvetica-bold-r-*-*-16-*-*-*-*-*-*-*" to type FontStruct
Using default colormap which is TrueColor.  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
Using shared memory PutImage
Same machine: preferring raw encoding
vncviewer: VNC server closed connection
ShmCleanup called
/dev/pts/17
14:58:48
#vncviewer 127.0.0.1:0
Connected to RFB server, using protocol version 3.8
No authentication needed
Authentication successful
Desktop name "Xen-WinXp1"
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
Warning: Cannot convert string "-*-helvetica-bold-r-*-*-16-*-*-*-*-*-*-*" to type FontStruct
Using default colormap which is TrueColor.  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
Using shared memory PutImage
Same machine: preferring raw encoding
ShmCleanup called
/dev/pts/16
14:58:48
#vncviewer 127.0.0.1:0
Connected to RFB server, using protocol version 3.8
No authentication needed
Authentication successful
Desktop name "Xen-WinXp1"
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
Warning: Cannot convert string "-*-helvetica-bold-r-*-*-16-*-*-*-*-*-*-*" to type FontStruct
Using default colormap which is TrueColor.  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
Using shared memory PutImage
Same machine: preferring raw encoding
ShmCleanup called
/dev/pts/17
15:00:20
#ls /mnt

/dev/pts/16
15:00:20
#ls /mnt

/dev/pts/17
15:00:28
#mount /cdrom
mount: can't find /cdrom in /etc/fstab or /etc/mtab
/dev/pts/16
15:00:28
#mount /cdrom
mount: can't find /cdrom in /etc/fstab or /etc/mtab
/dev/pts/17
15:00:31
#mount /cdrom /mnt
mount: special device /cdrom does not exist
/dev/pts/16
15:00:31
#mount /cdrom /mnt
mount: special device /cdrom does not exist
/dev/pts/17
15:00:41
#fdisk
Usage:
 fdisk [options] <disk>    change partition table
 fdisk [options] -l <disk> list partition table(s)
 fdisk -s <partition>      give partition size(s) in blocks
Options:
 -b <size>                 sector size (512, 1024, 2048 or 4096)
 -c                        switch off DOS-compatible mode
 -h                        print help
 -u <size>                 give sizes in sectors instead of cylinders
 -v                        print version
 -C <number>               specify the number of cylinders
 -H <number>               specify the number of heads
 -S <number>               specify the number of sectors per track
/dev/pts/16
15:00:41
#fdisk
Usage:
 fdisk [options] <disk>    change partition table
 fdisk [options] -l <disk> list partition table(s)
 fdisk -s <partition>      give partition size(s) in blocks
Options:
 -b <size>                 sector size (512, 1024, 2048 or 4096)
 -c                        switch off DOS-compatible mode
 -h                        print help
 -u <size>                 give sizes in sectors instead of cylinders
 -v                        print version
 -C <number>               specify the number of cylinders
 -H <number>               specify the number of heads
 -S <number>               specify the number of sectors per track
/dev/pts/17
15:00:50
#ls /dev/cdrom
/dev/cdrom
/dev/pts/16
15:00:50
#ls /dev/cdrom
/dev/cdrom
/dev/pts/17
15:01:01
#mount /dev/cdrom /mnt
^C^Z^Z^Z
^]
^X^C
^Z
^Z
^C
^M
^[^]
^Z^Z^Z^Z^Z^Z^Z
^Z^Z^Z^Z
^Z
/dev/pts/16
15:01:01
#mount /dev/cdrom /mnt
^C^Z^Z^Z
^]
^X^C
^Z
^Z
^C
^M
^[^]
^Z^Z^Z^Z^Z^Z^Z
^Z^Z^Z^Z
^Z
/dev/pts/22
15:03:30
#xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  7238     2     r-----   5668.8
WinXp1                                      10   512     1     r-----    292.8
dom1                                         2   128     1     -b----    529.7
dom2                                         4   128     1     -b----     20.4
/dev/pts/21
15:03:30
#xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  7238     2     r-----   5668.8
WinXp1                                      10   512     1     r-----    292.8
dom1                                         2   128     1     -b----    529.7
dom2                                         4   128     1     -b----     20.4
/dev/pts/22
15:03:34
#show mount
bash: show: command not found
/dev/pts/21
15:03:34
#show mount
bash: show: command not found
/dev/pts/22
15:03:40
#show
showconsolefont  showkey          showrgb
showfont         showmount
15:03:40
#showmount -e 127.1
clnt_create: RPC: Program not registered
/dev/pts/21
15:03:40
#show
showconsolefont  showkey          showrgb
showfont         showmount
15:03:40
#showmount -e 127.1
clnt_create: RPC: Program not registered
/dev/pts/22
15:03:54
#showmount -e 127001
clnt_create: RPC: Port mapper failure - RPC: Unable to send
/dev/pts/21
15:03:54
#showmount -e 127001
clnt_create: RPC: Port mapper failure - RPC: Unable to send
/dev/pts/22
15:04:00
#showmount -e 127.0.0.1
clnt_create: RPC: Program not registered
/dev/pts/21
15:04:00
#showmount -e 127.0.0.1
clnt_create: RPC: Program not registered
/dev/pts/22
15:04:08
#showmount -e
clnt_create: RPC: Program not registered

Статистика

Время первой команды журнала14:36:25 2012- 2-24
Время последней команды журнала15:04:08 2012- 2-24
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, %32.67
Процент синтаксически неверно набранных команд, %11.88
Суммарное время работы с терминалом *, час 0.46
Количество командных строк в единицу времени, команда/мин 3.64
Частота использования команд
vim12|===========| 11.88%
ls12|===========| 11.88%
xm10|=========| 9.90%
rm8|=======| 7.92%
vncviewer8|=======| 7.92%
lvcreate8|=======| 7.92%
showmount7|======| 6.93%
mount6|=====| 5.94%
scp6|=====| 5.94%
rv4|===| 3.96%
show4|===| 3.96%
lvdisplay4|===| 3.96%
fdisk2|=| 1.98%
rn2|=| 1.98%
A2|=| 1.98%
apt-get2|=| 1.98%
grep2|=| 1.98%
lvdispalay2|=| 1.98%
____
*) Интервалы неактивности длительностью 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$