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

Содержание

Журнал

Пятница (06/05/09)

/dev/pts/1
20:42:57
#zip --help
Copyright (c) 1990-2008 Info-ZIP - Type 'zip "-L"' for software license.
Zip 3.0 (July 5th 2008). Usage:
zip [-options] [-b path] [-t mmddyyyy] [-n suffixes] [zipfile list] [-xi list]
  The default action is to add or replace zipfile entries from list, which
  can include the special name - to compress standard input.
  If zipfile and list are omitted, zip compresses stdin to stdout.
  -f   freshen: only changed files  -u   update: only changed or new files
  -d   delete entries in zipfile    -m   move into zipfile (delete OS files)
  -r   recurse into directories     -j   junk (don't record) directory names
  -0   store only                   -l   convert LF to CR LF (-ll CR LF to LF)
  -1   compress faster              -9   compress better
  -q   quiet operation              -v   verbose operation/print version info
  -c   add one-line comments        -z   add zipfile comment
  -@   read names from stdin        -o   make zipfile as old as latest entry
  -x   exclude the following names  -i   include only the following names
  -F   fix zipfile (-FF try harder) -D   do not add directory entries
  -A   adjust self-extracting exe   -J   junk zipfile prefix (unzipsfx)
  -T   test zipfile integrity       -X   eXclude eXtra file attributes
  -y   store symbolic links as the link instead of the referenced file
  -e   encrypt                      -n   don't compress these suffixes
  -h2  show more help
/dev/pts/2
20:43:05
#rm etc.zip

/dev/pts/1
20:43:05
#rm etc.zip

/dev/pts/2
20:43:59
#zip -ry9 ./etc.zip /etc
  adding: etc/cron.d/mdadm (deflated 35%)
  adding: etc/cron.d/sendmail (deflated 62%)
  adding: etc/localtime (deflated 49%)
  adding: etc/bash.bashrc (deflated 48%)
  adding: etc/mailcap (deflated 78%)
  adding: etc/ld.so.cache (deflated 77%)
  adding: etc/passwd- (deflated 57%)
  adding: etc/magic.mime (deflated 15%)
  adding: etc/gshadow (deflated 53%)
  adding: etc/motd.tail (deflated 28%)
...
  adding: etc/ssl/certs/6fcc125d.0 (stored 0%)
  adding: etc/ssl/certs/NetLock_Express_=Class_C=_Root.pem (stored 0%)
  adding: etc/ssl/certs/Certplus_Class_2_Primary_CA.pem (stored 0%)
  adding: etc/ssl/certs/AOL_Time_Warner_Root_Certification_Authority_2.pem (stored 0%)
  adding: etc/ssl/certs/95750816.0 (stored 0%)
  adding: etc/ssl/certs/ff783690.0 (stored 0%)
  adding: etc/ssl/certs/31044350.0 (stored 0%)
  adding: etc/ssl/certs/beTRUSTed_Root_CA-Baltimore_Implementation.pem (stored 0%)
  adding: etc/ssl/certs/02b73561.0 (stored 0%)
  adding: etc/ssl/certs/TDC_Internet_Root_CA.pem (stored 0%)
/dev/pts/1
20:43:59
#zip -ry9 ./etc.zip /etc
  adding: etc/cron.d/mdadm (deflated 35%)
  adding: etc/cron.d/sendmail (deflated 62%)
  adding: etc/localtime (deflated 49%)
  adding: etc/bash.bashrc (deflated 48%)
  adding: etc/mailcap (deflated 78%)
  adding: etc/ld.so.cache (deflated 77%)
  adding: etc/passwd- (deflated 57%)
  adding: etc/magic.mime (deflated 15%)
  adding: etc/gshadow (deflated 53%)
  adding: etc/motd.tail (deflated 28%)
...
  adding: etc/ssl/certs/6fcc125d.0 (stored 0%)
  adding: etc/ssl/certs/NetLock_Express_=Class_C=_Root.pem (stored 0%)
  adding: etc/ssl/certs/Certplus_Class_2_Primary_CA.pem (stored 0%)
  adding: etc/ssl/certs/AOL_Time_Warner_Root_Certification_Authority_2.pem (stored 0%)
  adding: etc/ssl/certs/95750816.0 (stored 0%)
  adding: etc/ssl/certs/ff783690.0 (stored 0%)
  adding: etc/ssl/certs/31044350.0 (stored 0%)
  adding: etc/ssl/certs/beTRUSTed_Root_CA-Baltimore_Implementation.pem (stored 0%)
  adding: etc/ssl/certs/02b73561.0 (stored 0%)
  adding: etc/ssl/certs/TDC_Internet_Root_CA.pem (stored 0%)
прошло 16 минут
/dev/pts/2
21:00:42
#( )
bridge name     bridge id               STP enabled     interfaces
eth0            8000.0007e93c2cba       no              peth0
                                                        vif7.0
/dev/pts/1
21:00:42
#( )
bridge name     bridge id               STP enabled     interfaces
eth0            8000.0007e93c2cba       no              peth0
                                                        vif7.0
/dev/pts/2
21:00:48
#cat /etc/xen/dom1
kernel = "/boot/vmlinuz-2.6.18-6-xen-686"
ramdisk = "/boot/initrd.img-2.6.18-6-xen-686"
memory = 256
name = "Test_Domain"
vif = [ 'bridge=eth0' ]
disk = [ 'phy:sda2,sda2,w' ]
root = "/dev/sda2 ro"
extra = "4"
/dev/pts/1
21:00:48
#cat /etc/xen/dom1
kernel = "/boot/vmlinuz-2.6.18-6-xen-686"
ramdisk = "/boot/initrd.img-2.6.18-6-xen-686"
memory = 256
name = "Test_Domain"
vif = [ 'bridge=eth0' ]
disk = [ 'phy:sda2,sda2,w' ]
root = "/dev/sda2 ro"
extra = "4"
/dev/pts/2
21:01:06
#ifconfig
eth0      Link encap:Ethernet  HWaddr 00:07:e9:3c:2c:ba
          inet addr:192.168.15.3  Bcast:192.168.15.255  Mask:255.255.255.0
          inet6 addr: fe80::207:e9ff:fe3c:2cba/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4799 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9026 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1690219 (1.6 MiB)  TX bytes:9103082 (8.6 MiB)
eth0.102  Link encap:Ethernet  HWaddr 00:07:e9:3c:2c:ba
          inet addr:192.168.102.1  Bcast:192.168.102.255  Mask:255.255.255.0
...
          collisions:0 txqueuelen:1000
          RX bytes:139566887 (133.1 MiB)  TX bytes:4973035 (4.7 MiB)
          Base address:0xbc00 Memory:ff8e0000-ff900000
vif7.0    Link encap:Ethernet  HWaddr fe:ff:ff:ff:ff:ff
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4542 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12017 errors:0 dropped:162 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:373404 (364.6 KiB)  TX bytes:16048801 (15.3 MiB)
/dev/pts/1
21:01:06
#ifconfig
eth0      Link encap:Ethernet  HWaddr 00:07:e9:3c:2c:ba
          inet addr:192.168.15.3  Bcast:192.168.15.255  Mask:255.255.255.0
          inet6 addr: fe80::207:e9ff:fe3c:2cba/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4799 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9026 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1690219 (1.6 MiB)  TX bytes:9103082 (8.6 MiB)
eth0.102  Link encap:Ethernet  HWaddr 00:07:e9:3c:2c:ba
          inet addr:192.168.102.1  Bcast:192.168.102.255  Mask:255.255.255.0
...
          collisions:0 txqueuelen:1000
          RX bytes:139566887 (133.1 MiB)  TX bytes:4973035 (4.7 MiB)
          Base address:0xbc00 Memory:ff8e0000-ff900000
vif7.0    Link encap:Ethernet  HWaddr fe:ff:ff:ff:ff:ff
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4542 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12017 errors:0 dropped:162 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:373404 (364.6 KiB)  TX bytes:16048801 (15.3 MiB)
прошло 34 минуты
/dev/pts/2
21:35:27
#ifconfig -a | more
/dev/pts/1
21:35:27
#ifconfig -a | more
/dev/pts/2
21:36:05
#xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  1024     1     r-----   1774.4
Test_Domain                                  7   256     1     -b----     58.9
/dev/pts/1
21:36:05
#xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  1024     1     r-----   1774.4
Test_Domain                                  7   256     1     -b----     58.9
/dev/pts/2
21:36:30
#ssh 192.168.15.103
auto lo eth0
iface lo inet loopback
~
~
~
~
~
~
~
~
...
~
~
~
~
~
~
~
linux3:~# exit
logout
Connection to 192.168.15.103 closed.
/dev/pts/1
21:36:30
#ssh 192.168.15.103
auto lo eth0
iface lo inet loopback
~
~
~
~
~
~
~
~
...
~
~
~
~
~
~
~
linux3:~# exit
logout
Connection to 192.168.15.103 closed.
/dev/pts/6
21:40:58
#vi /etc/xen/dom1
/dev/pts/5
21:40:58
#vi /etc/xen/dom1
/dev/pts/6
21:41:33
#~
ssh/ ssl/
21:41:33
#vi /etc/ss
21:41:33
#vi /etc/ssh/
21:41:33
#vi /etc/ssh/
/dev/pts/5
21:41:33
#~
ssh/ ssl/
21:41:33
#vi /etc/ss
21:41:33
#vi /etc/ssh/
21:41:33
#vi /etc/ssh/
/dev/pts/6
21:41:33
#vi /etc/ssh/sshd_config
/dev/pts/5
21:41:33
#vi /etc/ssh/sshd_config
/dev/pts/2
21:41:47
#ssh 192.168.15.127
The authenticity of host '192.168.15.127 (192.168.15.127)' can't be established.
RSA key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.15.127' (RSA) to the list of known hosts.
Linux linux10 2.6.18-6-xen-686 #1 SMP Sat Dec 27 13:17:00 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.
...
linux10:~# w
 21:48:32 up 3 min,  2 users,  load average: 0,03, 0,06, 0,02
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     tty1     -                21:46   45.00s  0.01s  0.00s -bash
root     pts/0    linux3.class3.un 21:48    0.00s  0.00s  0.00s w
linux10:~# ifconfig
Broadcast message from root@linux10 (Fri Jun  5 21:56:32 2009):
The system is going down for system halt NOW!
Connection to 192.168.15.127 closed by remote host.
Connection to 192.168.15.127 closed.
/dev/pts/1
21:41:47
#ssh 192.168.15.127
The authenticity of host '192.168.15.127 (192.168.15.127)' can't be established.
RSA key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.15.127' (RSA) to the list of known hosts.
Linux linux10 2.6.18-6-xen-686 #1 SMP Sat Dec 27 13:17:00 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.
...
linux10:~# w
 21:48:32 up 3 min,  2 users,  load average: 0,03, 0,06, 0,02
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     tty1     -                21:46   45.00s  0.01s  0.00s -bash
root     pts/0    linux3.class3.un 21:48    0.00s  0.00s  0.00s w
linux10:~# ifconfig
Broadcast message from root@linux10 (Fri Jun  5 21:56:32 2009):
The system is going down for system halt NOW!
Connection to 192.168.15.127 closed by remote host.
Connection to 192.168.15.127 closed.
прошло 13 минут
/dev/pts/6
21:55:17
#PrintLastLog yes
default 1
timeout 10
title GNU/Linux
kernel /vmlinuz root=LABEL=ROOT
initrd /initrd.img
title           Xen 3.2.1-i386 / Debian GNU/Linux, kernel 2.6.18-6-xen-686
root            (hd0,0)
kernel          /boot/xen-3.2-1-i386.gz dom0_mem=1G
module          /boot/vmlinuz-2.6.18-6-xen-686 root=LABEL=ROOT ro console=tty0
module          /boot/initrd.img-2.6.18-6-xen-686
#title          Xen 3.0.3-1-i386-pae / Debian GNU/Linux, kernel 2.6.18-6-xen-686
#root           (hd0,0)
#kernel         /boot/xen-3.0.3-1-i386-pae.gz
#module         /boot/vmlinuz-2.6.18-6-xen-686 root=UUID=51e6becf-aad8-4ad7-809a-a80b27439a2e ro console=tty0
#module         /boot/initrd.img-2.6.18-6-xen-686
/dev/pts/5
21:55:17
#PrintLastLog yes
default 1
timeout 10
title GNU/Linux
kernel /vmlinuz root=LABEL=ROOT
initrd /initrd.img
title           Xen 3.2.1-i386 / Debian GNU/Linux, kernel 2.6.18-6-xen-686
root            (hd0,0)
kernel          /boot/xen-3.2-1-i386.gz dom0_mem=1G
module          /boot/vmlinuz-2.6.18-6-xen-686 root=LABEL=ROOT ro console=tty0
module          /boot/initrd.img-2.6.18-6-xen-686
#title          Xen 3.0.3-1-i386-pae / Debian GNU/Linux, kernel 2.6.18-6-xen-686
#root           (hd0,0)
#kernel         /boot/xen-3.0.3-1-i386-pae.gz
#module         /boot/vmlinuz-2.6.18-6-xen-686 root=UUID=51e6becf-aad8-4ad7-809a-a80b27439a2e ro console=tty0
#module         /boot/initrd.img-2.6.18-6-xen-686
/dev/pts/11
21:57:45
#cd /etc/X11/
app-defaults/ xinit/        Xresources/
fonts/        xkb/          Xsession.d/
21:57:45
#cd /etc/X11/Xsession.d/ls
bash: cd: /etc/X11/Xsession.d/ls: No such file or directory
21:58:20
#ls /etc/X11/
app-defaults             rgb.txt  xkb         Xsession          XvMCConfig
default-display-manager  X        xorg.conf   Xsession.d        Xwrapper.config
fonts                    xinit    Xresources  Xsession.options
21:58:42
#ls /etc/X11/ -la
total 76
drwxr-xr-x  8 root root  4096 2009-06-01 14:49 .
drwxr-xr-x 97 root root  4096 2009-06-05 19:08 ..
drwxr-xr-x  2 root root  4096 2009-05-25 08:27 app-defaults
-rw-r--r--  1 root root    13 2009-05-25 03:52 default-display-manager
drwxr-xr-x  6 root root  4096 2009-05-25 03:03 fonts
-rw-r--r--  1 root root 17394 2009-04-09 02:05 rgb.txt
lrwxrwxrwx  1 root root    13 2009-06-01 11:35 X -> /usr/bin/Xorg
drwxr-xr-x  2 root root  4096 2009-05-25 03:03 xinit
drwxr-xr-x  2 root root  4096 2009-05-25 03:03 xkb
-rw-r--r--  1 root root    77 2009-06-01 14:49 xorg.conf
drwxr-xr-x  2 root root  4096 2009-05-24 13:22 Xresources
-rwxr-xr-x  1 root root  3517 2009-04-08 17:09 Xsession
drwxr-xr-x  2 root root  4096 2009-05-25 03:03 Xsession.d
-rw-r--r--  1 root root   265 2009-01-16 06:15 Xsession.options
-rw-r--r--  1 root root    13 2007-04-11 18:48 XvMCConfig
-rw-------  1 root root   614 2009-05-24 13:22 Xwrapper.config
прошло 44 минуты
/dev/pts/11
22:43:22
#vi /etc/xen/xend-config.sxp
--- /tmp/l3-saved-23792.15760.2322	2009-06-05 22:43:30.000000000 +0300
+++ /etc/xen/xend-config.sxp	2009-06-05 22:43:49.000000000 +0300
@@ -59,7 +59,7 @@
 #(xend-unix-server no)
 #(xend-tcp-xmlrpc-server no)
 #(xend-unix-xmlrpc-server yes)
-#(xend-relocation-server no)
+(xend-relocation-server yes)
 
 #(xend-unix-path /var/lib/xend/xend-socket)
 
22:43:49
#aoe-stat

22:43:53
#aoe-discover
aoe-discover: /dev/etherd/discover does not exist or is not writeable.
22:44:02
#modprobe aoe

22:44:05
#aoe-discover

22:44:06
#aoe-stat
      e1.1        15.011GB   eth0 up
22:44:08
#/etc/init.d/xend
xend        xendomains
22:44:08
#/etc/init.d/xend
xend        xendomains
22:44:08
#/etc/init.d/xend restatr
Usage: /etc/init.d/xend {start|stop|restart|force-reload}
22:46:08
#/etc/init.d/xend restart
Restarting XEN control daemon: xend.
22:46:17
#netstat -lnp | grep xend
unix  2      [ ACC ]     STREAM     LISTENING     57326    24049/python        /var/run/xend/xen-api.sock
unix  2      [ ACC ]     STREAM     LISTENING     57329    24049/python        /var/run/xend/xmlrpc.sock
22:46:25
#netstat -lnp | grep pyth
tcp        0      0 0.0.0.0:8002            0.0.0.0:*               LISTEN      24049/python
unix  2      [ ACC ]     STREAM     LISTENING     57326    24049/python        /var/run/xend/xen-api.sock
unix  2      [ ACC ]     STREAM     LISTENING     57329    24049/python        /var/run/xend/xmlrpc.sock
22:46:29
#xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  1024     1     r-----   1929.1
Test_Domain                                  7   255     1     -b----     59.7
dom1                                         8   256     1     -b----      0.7
22:47:03
#xm migrate --live dom1 192.168.15.10

/dev/pts/6
22:47:38
#ls -l /
total 84
drwxr-xr-x   2 root root  4096 2009-05-25 03:02 bin
drwxr-xr-x   3 root root  4096 2009-06-05 17:10 boot
drwxr-xr-x  23 root root  4096 2009-06-05 18:21 data
drwxr-xr-x  17 root root  3820 2009-06-05 22:44 dev
drwxr-xr-x  97 root root  4096 2009-06-05 19:08 etc
drwxr-xr-x   2 root root  4096 2009-05-30 12:42 flash
drwxr-xr-x   4 root root  4096 2009-05-30 14:07 home
lrwxrwxrwx   1 root root    28 2009-06-01 11:35 initrd.img -> boot/initrd.img-2.6.29-2-686
drwxr-xr-x  13 root root  4096 2009-05-30 11:55 lib
...
dr-xr-xr-x 117 root root     0 2009-06-05 17:51 proc
drwxr-xr-x   8 root root  4096 2009-06-05 22:43 root
drwxr-xr-x   2 root root  4096 2009-06-01 16:26 sbin
drwxr-xr-x   2 root root  4096 2009-02-21 16:55 selinux
drwxr-xr-x   2 root root  4096 2009-05-24 13:15 srv
drwxr-xr-x  12 root root     0 2009-06-05 17:51 sys
drwxrwxrwt   8 root root  4096 2009-06-05 22:51 tmp
drwxr-xr-x  11 root root  4096 2009-05-24 13:22 usr
drwxr-xr-x  13 root root  4096 2009-05-24 13:15 var
lrwxrwxrwx   1 root root    25 2009-06-01 11:35 vmlinuz -> boot/vmlinuz-2.6.29-2-686
/dev/pts/5
22:47:38
#ls -l /
total 84
drwxr-xr-x   2 root root  4096 2009-05-25 03:02 bin
drwxr-xr-x   3 root root  4096 2009-06-05 17:10 boot
drwxr-xr-x  23 root root  4096 2009-06-05 18:21 data
drwxr-xr-x  17 root root  3820 2009-06-05 22:44 dev
drwxr-xr-x  97 root root  4096 2009-06-05 19:08 etc
drwxr-xr-x   2 root root  4096 2009-05-30 12:42 flash
drwxr-xr-x   4 root root  4096 2009-05-30 14:07 home
lrwxrwxrwx   1 root root    28 2009-06-01 11:35 initrd.img -> boot/initrd.img-2.6.29-2-686
drwxr-xr-x  13 root root  4096 2009-05-30 11:55 lib
...
dr-xr-xr-x 117 root root     0 2009-06-05 17:51 proc
drwxr-xr-x   8 root root  4096 2009-06-05 22:43 root
drwxr-xr-x   2 root root  4096 2009-06-01 16:26 sbin
drwxr-xr-x   2 root root  4096 2009-02-21 16:55 selinux
drwxr-xr-x   2 root root  4096 2009-05-24 13:15 srv
drwxr-xr-x  12 root root     0 2009-06-05 17:51 sys
drwxrwxrwt   8 root root  4096 2009-06-05 22:51 tmp
drwxr-xr-x  11 root root  4096 2009-05-24 13:22 usr
drwxr-xr-x  13 root root  4096 2009-05-24 13:15 var
lrwxrwxrwx   1 root root    25 2009-06-01 11:35 vmlinuz -> boot/vmlinuz-2.6.29-2-686
/dev/pts/11
22:48:10
#watch xm list

22:49:22
#Name ID Mem VCPUs State Time(s)
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  1024     1     r-----   1954.1
Test_Domain                                  7   255     1     -b----     59.9
dom1                                         9   256     1     -b----      5.1
22:49:33
#xm migrate --live dom1 192.168.15.10

22:49:59
#xm migrate --live dom1 192.168.15.10

/dev/pts/6
22:58:40
#mount
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
rootfs on / type rootfs (rw)
/dev/sda1 on /data type ext3 (rw)
/dev/pts/5
22:58:40
#mount
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
rootfs on / type rootfs (rw)
/dev/sda1 on /data type ext3 (rw)

Суббота (06/06/09)

/dev/pts/2
09:53:16
#ip route
192.168.102.0/24 dev eth0.102  proto kernel  scope link  src 192.168.102.1
192.168.15.0/24 dev eth0  proto kernel  scope link  src 192.168.15.3
192.168.202.0/24 dev eth0.202  proto kernel  scope link  src 192.168.202.2
09:56:49
#ip route add default via 192.168.15.254 dev eth0

09:57:44
#ls /mnt

10:04:54
#fdisk -l
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x12c36e6e
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        3648    29302528+  83  Linux
/dev/sda2            3649        6081    19543072+  83  Linux
Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xce5cf3c1
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       38913   312568672   83  Linux
10:05:08
#xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  1024     1     r-----    763.8
Test_Domain                                  1   255     1     -b----      0.3
прошла 61 минута
/dev/pts/8
11:06:10
#mutt
---Mutt: /var/mail/root [Msgs:0]---(threads/date)------------------------------------------------------------------------(all)---
Mailbox is unchanged.
/dev/pts/9
11:06:10
#mutt
---Mutt: /var/mail/root [Msgs:0]---(threads/date)------------------------------------------------------------------------(all)---
Mailbox is unchanged.
/dev/pts/8
11:06:16
#ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:07:e9:3c:2c:ba
          inet addr:192.168.15.3  Bcast:192.168.15.255  Mask:255.255.255.0
          inet6 addr: fe80::207:e9ff:fe3c:2cba/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1850741 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3614525 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:105997653 (101.0 MiB)  TX bytes:4016947926 (3.7 GiB)
eth0.102  Link encap:Ethernet  HWaddr 00:07:e9:3c:2c:ba
          inet addr:192.168.102.1  Bcast:192.168.102.255  Mask:255.255.255.0
...
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
vif1.0    Link encap:Ethernet  HWaddr fe:ff:ff:ff:ff:ff
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1078 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:90975 (88.8 KiB)
/dev/pts/9
11:06:16
#ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:07:e9:3c:2c:ba
          inet addr:192.168.15.3  Bcast:192.168.15.255  Mask:255.255.255.0
          inet6 addr: fe80::207:e9ff:fe3c:2cba/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1850741 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3614525 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:105997653 (101.0 MiB)  TX bytes:4016947926 (3.7 GiB)
eth0.102  Link encap:Ethernet  HWaddr 00:07:e9:3c:2c:ba
          inet addr:192.168.102.1  Bcast:192.168.102.255  Mask:255.255.255.0
...
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
vif1.0    Link encap:Ethernet  HWaddr fe:ff:ff:ff:ff:ff
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1078 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:90975 (88.8 KiB)
/dev/pts/8
11:06:26
#ip route
192.168.102.0/24 dev eth0.102  proto kernel  scope link  src 192.168.102.1
192.168.15.0/24 dev eth0  proto kernel  scope link  src 192.168.15.3
192.168.202.0/24 dev eth0.202  proto kernel  scope link  src 192.168.202.2
default via 192.168.15.254 dev eth0
/dev/pts/9
11:06:26
#ip route
192.168.102.0/24 dev eth0.102  proto kernel  scope link  src 192.168.102.1
192.168.15.0/24 dev eth0  proto kernel  scope link  src 192.168.15.3
192.168.202.0/24 dev eth0.202  proto kernel  scope link  src 192.168.202.2
default via 192.168.15.254 dev eth0
прошло 14 минут
/dev/pts/8
11:20:52
#mutt
---Mutt: /var/mail/root [Msgs:0]---(threads/date)------------------------------------------------------------------------(all)---
Mailbox is unchanged.
/dev/pts/9
11:20:52
#mutt
---Mutt: /var/mail/root [Msgs:0]---(threads/date)------------------------------------------------------------------------(all)---
Mailbox is unchanged.
/dev/pts/8
11:21:04
#rndc flush

/dev/pts/9
11:21:04
#rndc flush

/dev/pts/8
11:22:50
#dig @class3.unix.nt MX
dig: couldn't get address for 'class3.unix.nt': not found
/dev/pts/9
11:22:50
#dig @class3.unix.nt MX
dig: couldn't get address for 'class3.unix.nt': not found
/dev/pts/8
11:23:11
#dig class3.unix.nt MX
; <<>> DiG 9.6.0-P1 <<>> class3.unix.nt MX
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59456
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2
;; QUESTION SECTION:
;class3.unix.nt.                        IN      MX
;; ANSWER SECTION:
class3.unix.nt.         10800   IN      MX      10 linux3.class3.unix.nt.
;; AUTHORITY SECTION:
class3.unix.nt.         10800   IN      NS      linux3.class3.unix.nt.
;; ADDITIONAL SECTION:
linux3.class3.unix.nt.  10800   IN      A       192.168.15.3
linux3.class3.unix.nt.  10800   IN      A       192.168.202.2
;; Query time: 736 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sat Jun  6 11:23:18 2009
;; MSG SIZE  rcvd: 101
/dev/pts/9
11:23:11
#dig class3.unix.nt MX
; <<>> DiG 9.6.0-P1 <<>> class3.unix.nt MX
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59456
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2
;; QUESTION SECTION:
;class3.unix.nt.                        IN      MX
;; ANSWER SECTION:
class3.unix.nt.         10800   IN      MX      10 linux3.class3.unix.nt.
;; AUTHORITY SECTION:
class3.unix.nt.         10800   IN      NS      linux3.class3.unix.nt.
;; ADDITIONAL SECTION:
linux3.class3.unix.nt.  10800   IN      A       192.168.15.3
linux3.class3.unix.nt.  10800   IN      A       192.168.202.2
;; Query time: 736 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sat Jun  6 11:23:18 2009
;; MSG SIZE  rcvd: 101
/dev/pts/8
11:23:18
#dig class8.unix.nt MX
; <<>> DiG 9.6.0-P1 <<>> class8.unix.nt MX
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57340
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
;; QUESTION SECTION:
;class8.unix.nt.                        IN      MX
;; ANSWER SECTION:
class8.unix.nt.         529114  IN      MX      10 linux8.class8.unix.nt.
;; AUTHORITY SECTION:
class8.unix.nt.         529114  IN      NS      linux8.class8.unix.nt.
;; ADDITIONAL SECTION:
linux8.class8.unix.nt.  529114  IN      A       192.168.15.8
;; Query time: 691 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sat Jun  6 11:23:23 2009
;; MSG SIZE  rcvd: 85
/dev/pts/9
11:23:18
#dig class8.unix.nt MX
; <<>> DiG 9.6.0-P1 <<>> class8.unix.nt MX
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57340
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
;; QUESTION SECTION:
;class8.unix.nt.                        IN      MX
;; ANSWER SECTION:
class8.unix.nt.         529114  IN      MX      10 linux8.class8.unix.nt.
;; AUTHORITY SECTION:
class8.unix.nt.         529114  IN      NS      linux8.class8.unix.nt.
;; ADDITIONAL SECTION:
linux8.class8.unix.nt.  529114  IN      A       192.168.15.8
;; Query time: 691 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sat Jun  6 11:23:23 2009
;; MSG SIZE  rcvd: 85
/dev/pts/8
11:23:23
#apt-get install slapd
         └────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Selecting previously deselected package libslp1.
(Reading database ... 59078 files and directories currently installed.)
Unpacking libslp1 (from .../libslp1_1.2.1-7.5_i386.deb) ...
Selecting previously deselected package odbcinst1debian1.
Unpacking odbcinst1debian1 (from .../odbcinst1debian1_2.2.11-16+b1_i386.deb) ...
Selecting previously deselected package unixodbc.
Unpacking unixodbc (from .../unixodbc_2.2.11-16+b1_i386.deb) ...
Selecting previously deselected package slapd.
Unpacking slapd (from .../slapd_2.4.15-1.1_i386.deb) ...
Processing triggers for man-db ...
Setting up libslp1 (1.2.1-7.5) ...
Setting up odbcinst1debian1 (2.2.11-16+b1) ...
Setting up unixodbc (2.2.11-16+b1) ...
Setting up slapd (2.4.15-1.1) ...
  Creating new user openldap... done.
  Creating initial slapd configuration... done.
_#################### 100.00% eta   none elapsed            none fast!
Closing DB...
done.
Starting OpenLDAP: slapd.
/dev/pts/9
11:23:23
#apt-get install slapd
         └────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Selecting previously deselected package libslp1.
(Reading database ... 59078 files and directories currently installed.)
Unpacking libslp1 (from .../libslp1_1.2.1-7.5_i386.deb) ...
Selecting previously deselected package odbcinst1debian1.
Unpacking odbcinst1debian1 (from .../odbcinst1debian1_2.2.11-16+b1_i386.deb) ...
Selecting previously deselected package unixodbc.
Unpacking unixodbc (from .../unixodbc_2.2.11-16+b1_i386.deb) ...
Selecting previously deselected package slapd.
Unpacking slapd (from .../slapd_2.4.15-1.1_i386.deb) ...
Processing triggers for man-db ...
Setting up libslp1 (1.2.1-7.5) ...
Setting up odbcinst1debian1 (2.2.11-16+b1) ...
Setting up unixodbc (2.2.11-16+b1) ...
Setting up slapd (2.4.15-1.1) ...
  Creating new user openldap... done.
  Creating initial slapd configuration... done.
_#################### 100.00% eta   none elapsed            none fast!
Closing DB...
done.
Starting OpenLDAP: slapd.
прошло >3 часов
/dev/pts/8
15:00:07
#dpkg -L slapd
/usr/share/doc
/usr/share/doc/slapd
/usr/share/doc/slapd/NEWS.Debian.gz
/usr/share/doc/slapd/README.DB_CONFIG.gz
/usr/share/doc/slapd/changelog.Debian.gz
/usr/share/doc/slapd/copyright
/usr/share/doc/slapd/TODO.Debian
/usr/share/doc/slapd/README.Debian.gz
/usr/share/doc/slapd/examples
/usr/share/doc/slapd/examples/slapd.backup
...
/usr/lib/ldap/back_sql-2.4.so.2
/usr/lib/ldap/rwm.so
/usr/lib/ldap/pcache.so
/usr/lib/ldap/dds.so
/usr/lib/ldap/back_shell-2.4.so.2
/usr/lib/ldap/unique-2.4.so.2
/usr/lib/ldap/unique.so
/usr/lib/libslapi-2.4.so.2
/usr/share/doc/slapd/examples/slapd.conf
/usr/share/doc/slapd/examples/DB_CONFIG
/dev/pts/9
15:00:07
#dpkg -L slapd
/usr/share/doc
/usr/share/doc/slapd
/usr/share/doc/slapd/NEWS.Debian.gz
/usr/share/doc/slapd/README.DB_CONFIG.gz
/usr/share/doc/slapd/changelog.Debian.gz
/usr/share/doc/slapd/copyright
/usr/share/doc/slapd/TODO.Debian
/usr/share/doc/slapd/README.Debian.gz
/usr/share/doc/slapd/examples
/usr/share/doc/slapd/examples/slapd.backup
...
/usr/lib/ldap/back_sql-2.4.so.2
/usr/lib/ldap/rwm.so
/usr/lib/ldap/pcache.so
/usr/lib/ldap/dds.so
/usr/lib/ldap/back_shell-2.4.so.2
/usr/lib/ldap/unique-2.4.so.2
/usr/lib/ldap/unique.so
/usr/lib/libslapi-2.4.so.2
/usr/share/doc/slapd/examples/slapd.conf
/usr/share/doc/slapd/examples/DB_CONFIG
/dev/pts/8
15:00:36
#dpkg -L slapd | grep schem
/etc/ldap/schema
/etc/ldap/schema/core.schema
/etc/ldap/schema/pmi.schema
/etc/ldap/schema/nis.schema
/etc/ldap/schema/openldap.schema
/etc/ldap/schema/collective.schema
/etc/ldap/schema/inetorgperson.schema
/etc/ldap/schema/cosine.ldif
/etc/ldap/schema/duaconf.schema
/etc/ldap/schema/ppolicy.schema
/etc/ldap/schema/dyngroup.schema
/etc/ldap/schema/openldap.ldif
/etc/ldap/schema/misc.schema
/etc/ldap/schema/README
/etc/ldap/schema/nis.ldif
/etc/ldap/schema/java.schema
/etc/ldap/schema/core.ldif
/etc/ldap/schema/inetorgperson.ldif
/etc/ldap/schema/cosine.schema
/etc/ldap/schema/corba.schema
/etc/ldap/schema/nadf.schema
/dev/pts/9
15:00:36
#dpkg -L slapd | grep schem
/etc/ldap/schema
/etc/ldap/schema/core.schema
/etc/ldap/schema/pmi.schema
/etc/ldap/schema/nis.schema
/etc/ldap/schema/openldap.schema
/etc/ldap/schema/collective.schema
/etc/ldap/schema/inetorgperson.schema
/etc/ldap/schema/cosine.ldif
/etc/ldap/schema/duaconf.schema
/etc/ldap/schema/ppolicy.schema
/etc/ldap/schema/dyngroup.schema
/etc/ldap/schema/openldap.ldif
/etc/ldap/schema/misc.schema
/etc/ldap/schema/README
/etc/ldap/schema/nis.ldif
/etc/ldap/schema/java.schema
/etc/ldap/schema/core.ldif
/etc/ldap/schema/inetorgperson.ldif
/etc/ldap/schema/cosine.schema
/etc/ldap/schema/corba.schema
/etc/ldap/schema/nadf.schema
/dev/pts/8
15:01:50
#cat /etc/ldap/schema/nis.schema
attributetype ( 1.3.6.1.1.1.1.11 NAME 'shadowFlag'
        EQUALITY integerMatch
        SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
attributetype ( 1.3.6.1.1.1.1.12 NAME 'memberUid'
        EQUALITY caseExactIA5Match
        SUBSTR caseExactIA5SubstringsMatch
        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
attributetype ( 1.3.6.1.1.1.1.13 NAME 'memberNisNetgroup'
        EQUALITY caseExactIA5Match
        SUBSTR caseExactIA5SubstringsMatch
...
        MUST ( cn $ nisMapEntry $ nisMapName )
        MAY description )
objectclass ( 1.3.6.1.1.1.2.11 NAME 'ieee802Device'
        DESC 'A device with a MAC address'
        SUP top AUXILIARY
        MAY macAddress )
objectclass ( 1.3.6.1.1.1.2.12 NAME 'bootableDevice'
        DESC 'A device with boot parameters'
        SUP top AUXILIARY
        MAY ( bootFile $ bootParameter ) )
/dev/pts/9
15:01:50
#cat /etc/ldap/schema/nis.schema
attributetype ( 1.3.6.1.1.1.1.11 NAME 'shadowFlag'
        EQUALITY integerMatch
        SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
attributetype ( 1.3.6.1.1.1.1.12 NAME 'memberUid'
        EQUALITY caseExactIA5Match
        SUBSTR caseExactIA5SubstringsMatch
        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
attributetype ( 1.3.6.1.1.1.1.13 NAME 'memberNisNetgroup'
        EQUALITY caseExactIA5Match
        SUBSTR caseExactIA5SubstringsMatch
...
        MUST ( cn $ nisMapEntry $ nisMapName )
        MAY description )
objectclass ( 1.3.6.1.1.1.2.11 NAME 'ieee802Device'
        DESC 'A device with a MAC address'
        SUP top AUXILIARY
        MAY macAddress )
objectclass ( 1.3.6.1.1.1.2.12 NAME 'bootableDevice'
        DESC 'A device with boot parameters'
        SUP top AUXILIARY
        MAY ( bootFile $ bootParameter ) )
/dev/pts/8
15:02:02
#cat /etc/ldap/schema/inetorgperson.
inetorgperson.ldif    inetorgperson.schema
15:02:02
#cat /etc/ldap/schema/inetorgperson.schema
##
## Redistribution and use in source and binary forms, with or without
## modification, are permitted only as authorized by the OpenLDAP
## Public License.
##
## A copy of this license is available in the file LICENSE in the
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
#
# InetOrgPerson (RFC2798)
...
    STRUCTURAL
        MAY (
                audio $ businessCategory $ carLicense $ departmentNumber $
                displayName $ employeeNumber $ employeeType $ givenName $
                homePhone $ homePostalAddress $ initials $ jpegPhoto $
                labeledURI $ mail $ manager $ mobile $ o $ pager $
                photo $ roomNumber $ secretary $ uid $ userCertificate $
                x500uniqueIdentifier $ preferredLanguage $
                userSMIMECertificate $ userPKCS12 )
        )
/dev/pts/9
15:02:02
#cat /etc/ldap/schema/inetorgperson.
inetorgperson.ldif    inetorgperson.schema
15:02:02
#cat /etc/ldap/schema/inetorgperson.schema
##
## Redistribution and use in source and binary forms, with or without
## modification, are permitted only as authorized by the OpenLDAP
## Public License.
##
## A copy of this license is available in the file LICENSE in the
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
#
# InetOrgPerson (RFC2798)
...
    STRUCTURAL
        MAY (
                audio $ businessCategory $ carLicense $ departmentNumber $
                displayName $ employeeNumber $ employeeType $ givenName $
                homePhone $ homePostalAddress $ initials $ jpegPhoto $
                labeledURI $ mail $ manager $ mobile $ o $ pager $
                photo $ roomNumber $ secretary $ uid $ userCertificate $
                x500uniqueIdentifier $ preferredLanguage $
                userSMIMECertificate $ userPKCS12 )
        )
/dev/pts/8
15:07:34
#apt-get install samba
account_policy_get: tdb_fetch_uint32 failed for field 10 (refuse machine password change), returning 0
Importing account for root...ok
Importing account for daemon...ok
Importing account for bin...ok
Importing account for sys...ok
Importing account for sync...ok
Importing account for games...ok
Importing account for man...ok
Importing account for lp...ok
Importing account for mail...ok
...
Importing account for Debian-exim...ok
Importing account for approx...ok
Importing account for quiz...ok
Importing account for bind...ok
Importing account for smmta...ok
Importing account for smmsp...ok
Importing account for openldap...ok
Adding group `sambashare' (GID 115) ...
Done.
Starting Samba daemons: nmbd smbd.
/dev/pts/9
15:07:34
#apt-get install samba
account_policy_get: tdb_fetch_uint32 failed for field 10 (refuse machine password change), returning 0
Importing account for root...ok
Importing account for daemon...ok
Importing account for bin...ok
Importing account for sys...ok
Importing account for sync...ok
Importing account for games...ok
Importing account for man...ok
Importing account for lp...ok
Importing account for mail...ok
...
Importing account for Debian-exim...ok
Importing account for approx...ok
Importing account for quiz...ok
Importing account for bind...ok
Importing account for smmta...ok
Importing account for smmsp...ok
Importing account for openldap...ok
Adding group `sambashare' (GID 115) ...
Done.
Starting Samba daemons: nmbd smbd.
прошло 44 минуты
/dev/pts/8
15:51:47
#apt-cache search smb ldap
ldapscripts - Add and remove user and groups (stored in a ldap directory)
python-smbpasswd - This module can generate both LANMAN and NT password hashes
smbldap-tools - Scripts to manage Unix and Samba accounts stored on LDAP
sork-passwd-h3 - Horde3 module for users to change their password
/dev/pts/9
15:51:47
#apt-cache search smb ldap
ldapscripts - Add and remove user and groups (stored in a ldap directory)
python-smbpasswd - This module can generate both LANMAN and NT password hashes
smbldap-tools - Scripts to manage Unix and Samba accounts stored on LDAP
sork-passwd-h3 - Horde3 module for users to change their password
/dev/pts/8
15:52:30
#apt-get install smbldap-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  portmap
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libconvert-asn1-perl libcrypt-smbhash-perl libdigest-md4-perl libjcode-pm-perl libnet-ldap-perl libunicode-map-perl
  libunicode-map8-perl libunicode-maputf8-perl libunicode-string-perl
Suggested packages:
...
Setting up libconvert-asn1-perl (0.22-1) ...
Setting up libdigest-md4-perl (1.5.dfsg-1.2+b1) ...
Setting up libjcode-pm-perl (2.06-1) ...
Setting up libnet-ldap-perl (1:0.39-1) ...
Setting up libunicode-map-perl (0.112-10+b1) ...
Setting up libunicode-string-perl (2.09-3+b1) ...
Setting up libunicode-map8-perl (0.12-3+b1) ...
Setting up libunicode-maputf8-perl (1.11-2) ...
Setting up libcrypt-smbhash-perl (0.12-2) ...
Setting up smbldap-tools (0.9.4-1) ...
/dev/pts/9
15:52:30
#apt-get install smbldap-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  portmap
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libconvert-asn1-perl libcrypt-smbhash-perl libdigest-md4-perl libjcode-pm-perl libnet-ldap-perl libunicode-map-perl
  libunicode-map8-perl libunicode-maputf8-perl libunicode-string-perl
Suggested packages:
...
Setting up libconvert-asn1-perl (0.22-1) ...
Setting up libdigest-md4-perl (1.5.dfsg-1.2+b1) ...
Setting up libjcode-pm-perl (2.06-1) ...
Setting up libnet-ldap-perl (1:0.39-1) ...
Setting up libunicode-map-perl (0.112-10+b1) ...
Setting up libunicode-string-perl (2.09-3+b1) ...
Setting up libunicode-map8-perl (0.12-3+b1) ...
Setting up libunicode-maputf8-perl (1.11-2) ...
Setting up libcrypt-smbhash-perl (0.12-2) ...
Setting up smbldap-tools (0.9.4-1) ...
прошло 13 минут
/dev/pts/8
16:06:03
#ls /etc
a2ps.cfg                cron.daily           groff            ld.so.conf      modules          profile         shadow-
a2ps-site.cfg           cron.hourly          group            ld.so.conf.d    monit            protocols       shells
adduser.conf            cron.monthly         group-           libaudit.conf   motd             purple          skel
adjtime                 crontab              grub.d           libpaper.d      motd.tail        python          smbldap-tools
aliases                 cron.weekly          gshadow          lilalo          mtab             python2.5       ssh
alternatives            dbus-1               gshadow-         locale.alias    Muttrc           qpopper.conf    ssl
anacrontab              debconf.conf         gtk-2.0          locale.gen      Muttrc.d         rc0.d           sudoers
apm                     debian_version       hal              localtime       nanorc           rc1.d           sysctl.conf
apparmor.d              debsums-ignore       hesiod.conf      logcheck        network          rc2.d           sysctl.d
approx                  default              host.conf        login.defs      networks         rc3.d           syslog-ng
...
blkid.tab               environment          inputrc          mailcap.order   pam.d            rpc             wgetrc
blkid.tab.old           etter.conf           iproute2         mailname        pango            rsyslog.conf    X11
ca-certificates         exim4                issue            mail.rc         papersize        samba           xdg
ca-certificates.conf    fonts                issue.net        manpath.config  passwd           screenrc        xen
calendar                fstab                kbd              mdadm           passwd-          scsi_id.config  xml
console                 gai.conf             kde3             menu            perl             securetty
console-cyrillic        gamin                kernel           menu-methods    pm               security
ConsoleKit              gconf                kernel-img.conf  mime.types      PolicyKit        services
console-setup           gdm                  ldap             mke2fs.conf     ppp              sgml
cron.d                  gre.d                ld.so.cache      modprobe.d      printcap         shadow
/dev/pts/9
16:06:03
#ls /etc
a2ps.cfg                cron.daily           groff            ld.so.conf      modules          profile         shadow-
a2ps-site.cfg           cron.hourly          group            ld.so.conf.d    monit            protocols       shells
adduser.conf            cron.monthly         group-           libaudit.conf   motd             purple          skel
adjtime                 crontab              grub.d           libpaper.d      motd.tail        python          smbldap-tools
aliases                 cron.weekly          gshadow          lilalo          mtab             python2.5       ssh
alternatives            dbus-1               gshadow-         locale.alias    Muttrc           qpopper.conf    ssl
anacrontab              debconf.conf         gtk-2.0          locale.gen      Muttrc.d         rc0.d           sudoers
apm                     debian_version       hal              localtime       nanorc           rc1.d           sysctl.conf
apparmor.d              debsums-ignore       hesiod.conf      logcheck        network          rc2.d           sysctl.d
approx                  default              host.conf        login.defs      networks         rc3.d           syslog-ng
...
blkid.tab               environment          inputrc          mailcap.order   pam.d            rpc             wgetrc
blkid.tab.old           etter.conf           iproute2         mailname        pango            rsyslog.conf    X11
ca-certificates         exim4                issue            mail.rc         papersize        samba           xdg
ca-certificates.conf    fonts                issue.net        manpath.config  passwd           screenrc        xen
calendar                fstab                kbd              mdadm           passwd-          scsi_id.config  xml
console                 gai.conf             kde3             menu            perl             securetty
console-cyrillic        gamin                kernel           menu-methods    pm               security
ConsoleKit              gconf                kernel-img.conf  mime.types      PolicyKit        services
console-setup           gdm                  ldap             mke2fs.conf     ppp              sgml
cron.d                  gre.d                ld.so.cache      modprobe.d      printcap         shadow
/dev/pts/8
16:06:20
#smbpasswd --help
smbpasswd: invalid option -- '-'
When run by root:
    smbpasswd [options] [username]
otherwise:
    smbpasswd [options]
options:
  -L                   local mode (must be first option)
  -h                   print this usage message
  -s                   use stdin for password prompt
  -c smb.conf file     Use the given path to the smb.conf file
...
  -a                   add user
  -d                   disable user
  -e                   enable user
  -i                   interdomain trust account
  -m                   machine trust account
  -n                   set no password
  -W                   use stdin ldap admin password
  -w PASSWORD          ldap admin password
  -x                   delete user
  -R ORDER             name resolve order

Файлы

  • /etc/ldap/schema/inetorgperson.
  • /etc/ldap/schema/inetorgperson.schema
  • /etc/ldap/schema/nis.schema
  • /etc/xen/dom1
  • /etc/ldap/schema/inetorgperson.
    >
    inetorgperson.ldif    inetorgperson.schema
    
    /etc/ldap/schema/inetorgperson.schema
    >
    ##
    ## Redistribution and use in source and binary forms, with or without
    ## modification, are permitted only as authorized by the OpenLDAP
    ## Public License.
    ##
    ## A copy of this license is available in the file LICENSE in the
    ## top-level directory of the distribution or, alternatively, at
    ## <http://www.OpenLDAP.org/license.html>.
    #
    # InetOrgPerson (RFC2798)
    #
    # Depends upon
    #   Definition of an X.500 Attribute Type and an Object Class to Hold
    #   Uniform Resource Identifiers (URIs) [RFC2079]
    #       (core.schema)
    #
    #   A Summary of the X.500(96) User Schema for use with LDAPv3 [RFC2256]
    #       (core.schema)
    #
    #   The COSINE and Internet X.500 Schema [RFC1274] (cosine.schema)
    # carLicense
    # This multivalued field is used to record the values of the license or
    # registration plate associated with an individual.
    attributetype ( 2.16.840.1.113730.3.1.1
            NAME 'carLicense'
            DESC 'RFC2798: vehicle license or registration plate'
            EQUALITY caseIgnoreMatch
            SUBSTR caseIgnoreSubstringsMatch
            SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
    # departmentNumber
    # Code for department to which a person belongs.  This can also be
    # strictly numeric (e.g., 1234) or alphanumeric (e.g., ABC/123).
    attributetype ( 2.16.840.1.113730.3.1.2
            NAME 'departmentNumber'
            DESC 'RFC2798: identifies a department within an organization'
            EQUALITY caseIgnoreMatch
            SUBSTR caseIgnoreSubstringsMatch
            SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
    # displayName
    # When displaying an entry, especially within a one-line summary list, it
    # is useful to be able to identify a name to be used.  Since other attri-
    # bute types such as 'cn' are multivalued, an additional attribute type is
    # needed.  Display name is defined for this purpose.
    attributetype ( 2.16.840.1.113730.3.1.241
            NAME 'displayName'
            DESC 'RFC2798: preferred name to be used when displaying entries'
            EQUALITY caseIgnoreMatch
            SUBSTR caseIgnoreSubstringsMatch
            SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
            SINGLE-VALUE )
    # employeeNumber
    # Numeric or alphanumeric identifier assigned to a person, typically based
    # on order of hire or association with an organization.  Single valued.
    attributetype ( 2.16.840.1.113730.3.1.3
            NAME 'employeeNumber'
            DESC 'RFC2798: numerically identifies an employee within an organization'
            EQUALITY caseIgnoreMatch
            SUBSTR caseIgnoreSubstringsMatch
            SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
            SINGLE-VALUE )
    # employeeType
    # Used to identify the employer to employee relationship.  Typical values
    # used will be "Contractor", "Employee", "Intern", "Temp", "External", and
    # "Unknown" but any value may be used.
    attributetype ( 2.16.840.1.113730.3.1.4
            NAME 'employeeType'
            DESC 'RFC2798: type of employment for a person'
            EQUALITY caseIgnoreMatch
            SUBSTR caseIgnoreSubstringsMatch
            SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
    # jpegPhoto
    # Used to store one or more images of a person using the JPEG File
    # Interchange Format [JFIF].
    # Note that the jpegPhoto attribute type was defined for use in the
    # Internet X.500 pilots but no referencable definition for it could be
    # located.
    attributetype ( 0.9.2342.19200300.100.1.60
            NAME 'jpegPhoto'
            DESC 'RFC2798: a JPEG image'
            SYNTAX 1.3.6.1.4.1.1466.115.121.1.28 )
    # preferredLanguage
    # Used to indicate an individual's preferred written or spoken
    # language.  This is useful for international correspondence or human-
    # computer interaction.  Values for this attribute type MUST conform to
    # the definition of the Accept-Language header field defined in
    # [RFC2068] with one exception:  the sequence "Accept-Language" ":"
    # should be omitted.  This is a single valued attribute type.
    attributetype ( 2.16.840.1.113730.3.1.39
            NAME 'preferredLanguage'
            DESC 'RFC2798: preferred written or spoken language for a person'
            EQUALITY caseIgnoreMatch
            SUBSTR caseIgnoreSubstringsMatch
            SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
            SINGLE-VALUE )
    # userSMIMECertificate
    # A PKCS#7 [RFC2315] SignedData, where the content that is signed is
    # ignored by consumers of userSMIMECertificate values.  It is
    # recommended that values have a `contentType' of data with an absent
    # `content' field.  Values of this attribute contain a person's entire
    # certificate chain and an smimeCapabilities field [RFC2633] that at a
    # minimum describes their SMIME algorithm capabilities.  Values for
    # this attribute are to be stored and requested in binary form, as
    # 'userSMIMECertificate;binary'.  If available, this attribute is
    # preferred over the userCertificate attribute for S/MIME applications.
    ## OpenLDAP note: ";binary" transfer should NOT be used as syntax is binary
    attributetype ( 2.16.840.1.113730.3.1.40
            NAME 'userSMIMECertificate'
            DESC 'RFC2798: PKCS#7 SignedData used to support S/MIME'
            SYNTAX 1.3.6.1.4.1.1466.115.121.1.5 )
    # userPKCS12
    # PKCS #12 [PKCS12] provides a format for exchange of personal identity
    # information.  When such information is stored in a directory service,
    # the userPKCS12 attribute should be used. This attribute is to be stored
    # and requested in binary form, as 'userPKCS12;binary'.  The attribute
    # values are PFX PDUs stored as binary data.
    ## OpenLDAP note: ";binary" transfer should NOT be used as syntax is binary
    attributetype ( 2.16.840.1.113730.3.1.216
            NAME 'userPKCS12'
            DESC 'RFC2798: personal identity information, a PKCS #12 PFX'
            SYNTAX 1.3.6.1.4.1.1466.115.121.1.5 )
    # inetOrgPerson
    # The inetOrgPerson represents people who are associated with an
    # organization in some way.  It is a structural class and is derived
    # from the organizationalPerson which is defined in X.521 [X521].
    objectclass     ( 2.16.840.1.113730.3.2.2
        NAME 'inetOrgPerson'
            DESC 'RFC2798: Internet Organizational Person'
        SUP organizationalPerson
        STRUCTURAL
            MAY (
                    audio $ businessCategory $ carLicense $ departmentNumber $
                    displayName $ employeeNumber $ employeeType $ givenName $
                    homePhone $ homePostalAddress $ initials $ jpegPhoto $
                    labeledURI $ mail $ manager $ mobile $ o $ pager $
                    photo $ roomNumber $ secretary $ uid $ userCertificate $
                    x500uniqueIdentifier $ preferredLanguage $
                    userSMIMECertificate $ userPKCS12 )
            )
    
    /etc/ldap/schema/nis.schema
    >
    attributetype ( 1.3.6.1.1.1.1.11 NAME 'shadowFlag'
            EQUALITY integerMatch
            SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
    attributetype ( 1.3.6.1.1.1.1.12 NAME 'memberUid'
            EQUALITY caseExactIA5Match
            SUBSTR caseExactIA5SubstringsMatch
            SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
    attributetype ( 1.3.6.1.1.1.1.13 NAME 'memberNisNetgroup'
            EQUALITY caseExactIA5Match
            SUBSTR caseExactIA5SubstringsMatch
            SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
    attributetype ( 1.3.6.1.1.1.1.14 NAME 'nisNetgroupTriple'
            DESC 'Netgroup triple'
            SYNTAX 1.3.6.1.1.1.0.0 )
    attributetype ( 1.3.6.1.1.1.1.15 NAME 'ipServicePort'
            EQUALITY integerMatch
            SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
    attributetype ( 1.3.6.1.1.1.1.16 NAME 'ipServiceProtocol'
            SUP name )
    attributetype ( 1.3.6.1.1.1.1.17 NAME 'ipProtocolNumber'
            EQUALITY integerMatch
            SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
    attributetype ( 1.3.6.1.1.1.1.18 NAME 'oncRpcNumber'
            EQUALITY integerMatch
            SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
    attributetype ( 1.3.6.1.1.1.1.19 NAME 'ipHostNumber'
            DESC 'IP address'
            EQUALITY caseIgnoreIA5Match
            SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{128} )
    attributetype ( 1.3.6.1.1.1.1.20 NAME 'ipNetworkNumber'
            DESC 'IP network'
            EQUALITY caseIgnoreIA5Match
            SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{128} SINGLE-VALUE )
    attributetype ( 1.3.6.1.1.1.1.21 NAME 'ipNetmaskNumber'
            DESC 'IP netmask'
            EQUALITY caseIgnoreIA5Match
            SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{128} SINGLE-VALUE )
    attributetype ( 1.3.6.1.1.1.1.22 NAME 'macAddress'
            DESC 'MAC address'
            EQUALITY caseIgnoreIA5Match
            SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{128} )
    attributetype ( 1.3.6.1.1.1.1.23 NAME 'bootParameter'
            DESC 'rpc.bootparamd parameter'
            SYNTAX 1.3.6.1.1.1.0.1 )
    attributetype ( 1.3.6.1.1.1.1.24 NAME 'bootFile'
            DESC 'Boot image name'
            EQUALITY caseExactIA5Match
            SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
    attributetype ( 1.3.6.1.1.1.1.26 NAME 'nisMapName'
            SUP name )
    attributetype ( 1.3.6.1.1.1.1.27 NAME 'nisMapEntry'
            EQUALITY caseExactIA5Match
            SUBSTR caseExactIA5SubstringsMatch
            SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1024} SINGLE-VALUE )
    # Object Class Definitions
    objectclass ( 1.3.6.1.1.1.2.0 NAME 'posixAccount'
            DESC 'Abstraction of an account with POSIX attributes'
            SUP top AUXILIARY
            MUST ( cn $ uid $ uidNumber $ gidNumber $ homeDirectory )
            MAY ( userPassword $ loginShell $ gecos $ description ) )
    objectclass ( 1.3.6.1.1.1.2.1 NAME 'shadowAccount'
            DESC 'Additional attributes for shadow passwords'
            SUP top AUXILIARY
            MUST uid
            MAY ( userPassword $ shadowLastChange $ shadowMin $
                  shadowMax $ shadowWarning $ shadowInactive $
                  shadowExpire $ shadowFlag $ description ) )
    objectclass ( 1.3.6.1.1.1.2.2 NAME 'posixGroup'
            DESC 'Abstraction of a group of accounts'
            SUP top STRUCTURAL
            MUST ( cn $ gidNumber )
            MAY ( userPassword $ memberUid $ description ) )
    objectclass ( 1.3.6.1.1.1.2.3 NAME 'ipService'
            DESC 'Abstraction an Internet Protocol service'
            SUP top STRUCTURAL
            MUST ( cn $ ipServicePort $ ipServiceProtocol )
            MAY ( description ) )
    objectclass ( 1.3.6.1.1.1.2.4 NAME 'ipProtocol'
            DESC 'Abstraction of an IP protocol'
            SUP top STRUCTURAL
            MUST ( cn $ ipProtocolNumber $ description )
            MAY description )
    objectclass ( 1.3.6.1.1.1.2.5 NAME 'oncRpc'
            DESC 'Abstraction of an ONC/RPC binding'
            SUP top STRUCTURAL
            MUST ( cn $ oncRpcNumber $ description )
            MAY description )
    objectclass ( 1.3.6.1.1.1.2.6 NAME 'ipHost'
            DESC 'Abstraction of a host, an IP device'
            SUP top AUXILIARY
            MUST ( cn $ ipHostNumber )
            MAY ( l $ description $ manager ) )
    objectclass ( 1.3.6.1.1.1.2.7 NAME 'ipNetwork'
            DESC 'Abstraction of an IP network'
            SUP top STRUCTURAL
            MUST ( cn $ ipNetworkNumber )
            MAY ( ipNetmaskNumber $ l $ description $ manager ) )
    objectclass ( 1.3.6.1.1.1.2.8 NAME 'nisNetgroup'
            DESC 'Abstraction of a netgroup'
            SUP top STRUCTURAL
            MUST cn
            MAY ( nisNetgroupTriple $ memberNisNetgroup $ description ) )
    objectclass ( 1.3.6.1.1.1.2.9 NAME 'nisMap'
            DESC 'A generic abstraction of a NIS map'
            SUP top STRUCTURAL
            MUST nisMapName
            MAY description )
    objectclass ( 1.3.6.1.1.1.2.10 NAME 'nisObject'
            DESC 'An entry in a NIS map'
            SUP top STRUCTURAL
            MUST ( cn $ nisMapEntry $ nisMapName )
            MAY description )
    objectclass ( 1.3.6.1.1.1.2.11 NAME 'ieee802Device'
            DESC 'A device with a MAC address'
            SUP top AUXILIARY
            MAY macAddress )
    objectclass ( 1.3.6.1.1.1.2.12 NAME 'bootableDevice'
            DESC 'A device with boot parameters'
            SUP top AUXILIARY
            MAY ( bootFile $ bootParameter ) )
    
    /etc/xen/dom1
    >
    kernel = "/boot/vmlinuz-2.6.18-6-xen-686"
    ramdisk = "/boot/initrd.img-2.6.18-6-xen-686"
    memory = 256
    name = "Test_Domain"
    vif = [ 'bridge=eth0' ]
    disk = [ 'phy:sda2,sda2,w' ]
    root = "/dev/sda2 ro"
    extra = "4"
    

    Статистика

    Время первой команды журнала20:42:57 2009- 6- 5
    Время последней команды журнала16:06:20 2009- 6- 6
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, % 8.91
    Процент синтаксически неверно набранных команд, % 0.00
    Суммарное время работы с терминалом *, час 1.80
    Количество командных строк в единицу времени, команда/мин 0.94
    Частота использования команд
    vi11|==========| 10.28%
    cat8|=======| 7.48%
    xm7|======| 6.54%
    ls7|======| 6.54%
    ifconfig6|=====| 5.61%
    dig6|=====| 5.61%
    apt-get6|=====| 5.61%
    dpkg4|===| 3.74%
    mutt4|===| 3.74%
    /etc/init.d/xend4|===| 3.74%
    grep4|===| 3.74%
    ssh4|===| 3.74%
    ip4|===| 3.74%
    zip3|==| 2.80%
    more2|=| 1.87%
    (2|=| 1.87%
    mount2|=| 1.87%
    cd2|=| 1.87%
    rm2|=| 1.87%
    aoe-stat2|=| 1.87%
    PrintLastLog2|=| 1.87%
    rndc2|=| 1.87%
    netstat2|=| 1.87%
    ~2|=| 1.87%
    aoe-discover2|=| 1.87%
    apt-cache2|=| 1.87%
    Name1|| 0.93%
    smbpasswd1|| 0.93%
    fdisk1|| 0.93%
    watch1|| 0.93%
    modprobe1|| 0.93%
    ____
    *) Интервалы неактивности длительностью 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$