/l3/users/eb/2009/linux3/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 |
|
#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 |
#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%) |
#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%) |
#( )
bridge name bridge id STP enabled interfaces eth0 8000.0007e93c2cba no peth0 vif7.0 |
#( )
bridge name bridge id STP enabled interfaces eth0 8000.0007e93c2cba no peth0 vif7.0 |
#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" |
#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" |
#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) |
#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) |
#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 |
#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 |
#ssh 192.168.15.103
auto lo eth0 iface lo inet loopback ~ ~ ~ ~ ~ ~ ~ ~ ... ~ ~ ~ ~ ~ ~ ~ linux3:~# exit logout Connection to 192.168.15.103 closed. |
#ssh 192.168.15.103
auto lo eth0 iface lo inet loopback ~ ~ ~ ~ ~ ~ ~ ~ ... ~ ~ ~ ~ ~ ~ ~ linux3:~# exit logout Connection to 192.168.15.103 closed. |
#vi /etc/ss
|
#vi /etc/ssh/
|
#vi /etc/ssh/
|
#vi /etc/ss
|
#vi /etc/ssh/
|
#vi /etc/ssh/
|
#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. |
#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. |
#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 |
#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 |
#cd /etc/X11/Xsession.d/ls
bash: cd: /etc/X11/Xsession.d/ls: No such file or directory |
#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 |
#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 |
#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) |
#aoe-stat
|
#aoe-discover
aoe-discover: /dev/etherd/discover does not exist or is not writeable. |
#modprobe aoe
|
#aoe-discover
|
#aoe-stat
e1.1 15.011GB eth0 up |
#/etc/init.d/xend
xend xendomains |
#/etc/init.d/xend
xend xendomains |
#/etc/init.d/xend restatr
Usage: /etc/init.d/xend {start|stop|restart|force-reload} |
#/etc/init.d/xend restart
Restarting XEN control daemon: xend. |
#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 |
#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 |
#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 |
#xm migrate --live dom1 192.168.15.10
|
#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 |
#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 |
#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 |
#xm migrate --live dom1 192.168.15.10
|
#xm migrate --live dom1 192.168.15.10
|
#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) |
#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) |
#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 |
#ip route add default via 192.168.15.254 dev eth0
|
#ls /mnt
|
#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 |
#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 |
#mutt
---Mutt: /var/mail/root [Msgs:0]---(threads/date)------------------------------------------------------------------------(all)--- Mailbox is unchanged. |
#mutt
---Mutt: /var/mail/root [Msgs:0]---(threads/date)------------------------------------------------------------------------(all)--- Mailbox is unchanged. |
#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) |
#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) |
#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 |
#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 |
#mutt
---Mutt: /var/mail/root [Msgs:0]---(threads/date)------------------------------------------------------------------------(all)--- Mailbox is unchanged. |
#mutt
---Mutt: /var/mail/root [Msgs:0]---(threads/date)------------------------------------------------------------------------(all)--- Mailbox is unchanged. |
#dig @class3.unix.nt MX
dig: couldn't get address for 'class3.unix.nt': not found |
#dig @class3.unix.nt MX
dig: couldn't get address for 'class3.unix.nt': not found |
#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 |
#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 |
#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 |
#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 |
#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. |
#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. |
#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 |
#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 |
#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 |
#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 |
#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 ) ) |
#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 ) ) |
#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 ) ) |
#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 ) ) |
#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. |
#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. |
#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 |
#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 |
#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) ... |
#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) ... |
#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 |
#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 |
#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 |
inetorgperson.ldif 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 ) )
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 ) )
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 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008