/l3/users/igor-public/nt-scale/debian5.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 |
|
#ssh debian4
l3-agent is already running: pid=2652; pidfile=/root/.lilalo/l3-agent.pid |
#mount
/dev/sda1 on / type ext3 (rw,errors=remount-ro) 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) 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) fusectl on /sys/fs/fuse/connections type fusectl (rw) xenfs on /proc/xen type xenfs (rw) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev) |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 7365 2 r----- 301.7 dom1 3 128 1 -b---- 2.6 dom2 1 128 1 -b---- 344.9 |
#xm destroy dom1
|
#grep -vx '' /etc/xen/dom1 | grep -v ^#
kernel = "/boot/vmlinuz-3.2.7" ramdisk = "/boot/initrd.img-3.2.7" memory = 128 name = "dom1" vif = [ 'bridge=br40' ] disk = [ 'phy:/dev/VG0/vol1,xvda1,w' ] root = "/dev/xvda1 ro" extra = "4" |
#fsck.ext3 /dev/VG0/vol1
e2fsck 1.41.12 (17-May-2010) /dev/VG0/vol1: recovering journal /dev/VG0/vol1 contains a file system with errors, check forced. Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Entry 'hostname' in /etc (81921) has deleted/unused inode 82048. Clear<y>? yes Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information Block bitmap differences: -339977 -371770 ... Free blocks count wrong (501653, counted=501654). Fix<y>? yes Inode bitmap differences: -82048 Fix<y>? yes Free inodes count wrong for group #10 (1244, counted=1245). Fix<y>? yes Free inodes count wrong (214912, counted=214913). Fix<y>? yes /dev/VG0/vol1: ***** FILE SYSTEM WAS MODIFIED ***** /dev/VG0/vol1: 47231/262144 files (1.1% non-contiguous), 546922/1048576 blocks |
#xm create -c vol1
Error: Unable to open config file: vol1 Usage: xm create <ConfigFile> [options] [vars] Create a domain based on <ConfigFile>. Options: -h, --help Print this help. --help_config Print the available configuration variables (vars) for the configuration script. -q, --quiet Quiet. --path=PATH Search path for configuration scripts. The value of PATH is a colon-separated directory list. ... Connect to the console after the domain is created. --vncviewer Connect to the VNC display after the domain is created. --vncviewer-autopass Pass VNC password to viewer via stdin and -autopass. [options] [vars] Create a domain. Domain creation parameters can be set by command-line switches, from a python configuration script or an SXP config file. See documentation for --defconfig, --config. Configuration variables can be set using VAR=VAL on the command line. For example vmid=3 sets vmid to 3. |
#xm create -c dom1
Using config file "/etc/xen/dom1". Started domain dom1 (id=4) [ 0.000000] Reserving virtual address space above 0xf5800000 [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 3.2.7 (root@debian5) (gcc version 4.4.5 (Debian 4.4.5-8) ) #1 SMP Thu Feb 23 17:56:02 EET 2012 [ 0.000000] ACPI in unprivileged domain disabled [ 0.000000] Released 0 pages of unused memory [ 0.000000] Set 0 page(s) to 1-1 mapping [ 0.000000] BIOS-provided physical RAM map: ... [ 3.285197] fuse init (API version 7.17) Setting console screen modes. Using makefile-style concurrent boot in runlevel 4. Starting enhanced syslogd: rsyslogd. Starting periodic command scheduler: cron. Starting system message bus: dbus. [ 4.208880] sshd (650): /proc/650/oom_adj is deprecated, please use /proc/650/oom_score_adj instead. Starting OpenBSD Secure Shell server: sshd. Starting Hardware abstraction layer: hald. Debian GNU/Linux 6.0 (none) hvc0 |
#exit
exit Connection to debian4 closed. |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 7365 2 r----- 409.7 dom1 8 128 32 -b---- 81.1 dom3 4 128 1 -b---- 164.2 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 7365 2 r----- 413.1 dom1 8 128 32 -b---- 81.3 dom3 4 128 1 -b---- 164.3 |
#xm console dom1
root@dom1:~# root@dom1:~# root@dom1:~# root@dom1:~# exit logout Debian GNU/Linux 6.0 dom1 hvc0 |
#grep -vx '' /etc/xen/dom3 | grep -v ^#
kernel = "/boot/vmlinuz-3.2.7" ramdisk = "/boot/initrd.img-3.2.7" builder='linux' memory = 128 name = "dom3" vif = [ 'bridge=br10' ] disk = [ 'phy:/dev/VG0/vol3,ioemu:sda1,w' ] root = "/dev/xvda1 ro" extra = "" |
#grep -vx '' /etc/xen/knoppix1 | grep -v ^#
kernel = "hvmloader" builder='hvm' memory = 500 name = "knoppix1" vif = [ 'type=ioemu, bridge=br10' ] disk = [ 'phy:/dev/VG0/vol1,sda1,w','file:/root/knoppix.iso,hdc:cdrom,r' ] device_model = 'qemu-dm' boot="d" sdl=0 opengl=1 vnc=1 vncpasswd='' stdvga=0 serial='pty' tsc_mode=0 |
#lvcreate -L2G -n winxp1 /dev/VG0
Logical volume "winxp1" created |
#cp /etc/xen/knoppix1 /etc/xen/winxp1
|
#ls /root/
clone-vm e1000e-1.9.5 install-authorized ssh windows-2003.iso dom1.save e1000e-1.9.5.tar.gz knoppix.iso start-kvm wxp-sp2.iso |
#xm create winxp1
Using config file "/etc/xen/winxp1". Error: Device 2049 (vbd) could not be connected. Device /dev/dm-0 is mounted in a guest domain, and so cannot be mounted now. |
#mount
/dev/sda1 on / type ext3 (rw,errors=remount-ro) 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) 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) fusectl on /sys/fs/fuse/connections type fusectl (rw) xenfs on /proc/xen type xenfs (rw) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev) |
#sed -i s/vol1/winxp1/ /etc/xen/winxp1
|
#sed -i s/knoppix/wxp-sp2/ /etc/xen/winxp1
|
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 7250 2 r----- 642.6 dom1 8 128 32 -b---- 82.4 dom3 4 128 1 -b---- 164.6 wxp-sp21 11 500 1 -b---- 25.9 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 7250 2 r----- 707.7 dom1 8 128 32 -b---- 82.4 dom3 4 128 1 -b---- 164.6 wxp-sp21 12 500 1 r----- 38.6 |
#grep -vx '' /etc/xen/winxp1 | grep -v ^#
kernel = "hvmloader" builder='hvm' memory = 500 name = "wxp-sp21" vif = [ 'type=ioemu, bridge=br10' ] disk = [ 'phy:/dev/VG0/winxp1,sda,w','file:/root/wxp-sp2.iso,hdc:cdrom,r' ] device_model = 'qemu-dm' boot="d" sdl=0 opengl=1 vnc=1 vncpasswd='' stdvga=0 serial='pty' tsc_mode=0 |
#xm destroy wxp-sp21
|
#scp igor@10.0.35.9:/ISO/windows-2003.iso /mnt/
igor@10.0.35.9's password: |
#sha1sum /root/wxp-sp2.iso
5a291f63af9aba51dfafabbbca212c02094f7831 /root/wxp-sp2.iso |
#sha1sum /root/wxp-sp2.iso
5a291f63af9aba51dfafabbbca212c02094f7831 /root/wxp-sp2.iso |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 7250 2 r----- 1180.6 dom1 8 128 32 -b---- 82.9 dom3 4 128 1 -b---- 164.8 wxp-sp21 13 500 1 r----- 941.7 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 7250 2 r----- 1180.6 dom1 8 128 32 -b---- 82.9 dom3 4 128 1 -b---- 164.8 wxp-sp21 13 500 1 r----- 941.7 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 7250 2 r----- 1191.0 dom1 8 128 32 -b---- 82.9 dom3 4 128 1 -b---- 164.8 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 7250 2 r----- 1191.0 dom1 8 128 32 -b---- 82.9 dom3 4 128 1 -b---- 164.8 |
#apt-cache search nfs server
collectd-core - statistics collection and monitoring daemon (core system) fam - File Alteration Monitor gfmd - Gfarm file system metadata server gnats-user - The GNU problem report management system (client tools) jftp - Java GUI client for FTP, SMB, SFTP and NFS linux-patch-nfs-ngroups - Client-side bypassing of ngroups limitation in NFS protocol libyanfs-java - Yet Another NFS - a Java NFS library mb2md - Converting Mbox mailboxes to Maildir format nbd-client - Network Block Device protocol - client nbd-server - Network Block Device protocol - server nfs-common - NFS support files common to client and server nfs-kernel-server - support for NFS kernel server nfswatch - Program to monitor NFS traffic for the console portmap - RPC port mapper portsentry - Portscan detection daemon slack - configuration management program for lazy admins |
#apt-cache search nfs server
collectd-core - statistics collection and monitoring daemon (core system) fam - File Alteration Monitor gfmd - Gfarm file system metadata server gnats-user - The GNU problem report management system (client tools) jftp - Java GUI client for FTP, SMB, SFTP and NFS linux-patch-nfs-ngroups - Client-side bypassing of ngroups limitation in NFS protocol libyanfs-java - Yet Another NFS - a Java NFS library mb2md - Converting Mbox mailboxes to Maildir format nbd-client - Network Block Device protocol - client nbd-server - Network Block Device protocol - server nfs-common - NFS support files common to client and server nfs-kernel-server - support for NFS kernel server nfswatch - Program to monitor NFS traffic for the console portmap - RPC port mapper portsentry - Portscan detection daemon slack - configuration management program for lazy admins |
#apt-get install nfs-kernel-server
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: nfs-kernel-server 0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded. Need to get 159 kB of archives. After this operation, 393 kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! nfs-kernel-server ... Selecting previously deselected package nfs-kernel-server. (Reading database ... 127769 files and directories currently installed.) Unpacking nfs-kernel-server (from .../nfs-kernel-server_1%3a1.2.2-4squeeze2_i386.deb) ... Processing triggers for man-db ... Setting up nfs-kernel-server (1:1.2.2-4squeeze2) ... Creating config file /etc/exports with new version Creating config file /etc/default/nfs-kernel-server with new version Starting NFS common utilities: statd. Exporting directories for NFS kernel daemon.... Starting NFS kernel daemon: nfsd mountd. |
#apt-get install nfs-kernel-server
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: nfs-kernel-server 0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded. Need to get 159 kB of archives. After this operation, 393 kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! nfs-kernel-server ... Selecting previously deselected package nfs-kernel-server. (Reading database ... 127769 files and directories currently installed.) Unpacking nfs-kernel-server (from .../nfs-kernel-server_1%3a1.2.2-4squeeze2_i386.deb) ... Processing triggers for man-db ... Setting up nfs-kernel-server (1:1.2.2-4squeeze2) ... Creating config file /etc/exports with new version Creating config file /etc/default/nfs-kernel-server with new version Starting NFS common utilities: statd. Exporting directories for NFS kernel daemon.... Starting NFS kernel daemon: nfsd mountd. |
#vim /etc/exports
--- /tmp/l3-saved-9637.26048.17067 2012-02-24 16:03:01.000000000 +0200 +++ /etc/exports 2012-02-24 16:03:08.000000000 +0200 @@ -8,3 +8,4 @@ # /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check) # /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check) # +/iso *(ro) |
#/etc/init.d/nfs-kernel-server restart
Stopping NFS kernel daemon: mountd nfsd. Unexporting directories for NFS kernel daemon.... Exporting directories for NFS kernel daemon...exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "*:/iso". Assuming default behaviour ('no_subtree_check'). NOTE: this default has changed since nfs-utils version 1.0.x . Starting NFS kernel daemon: nfsd mountd. |
#/etc/init.d/nfs-kernel-server restart
Stopping NFS kernel daemon: mountd nfsd. Unexporting directories for NFS kernel daemon.... Exporting directories for NFS kernel daemon...exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "*:/iso". Assuming default behaviour ('no_subtree_check'). NOTE: this default has changed since nfs-utils version 1.0.x . Starting NFS kernel daemon: nfsd mountd. |
#ssh debian1
Linux debian1 3.2.7 #1 SMP Thu Feb 23 17:56:02 EET 2012 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. Last login: Fri Feb 24 14:39:37 2012 from debian5.unix.nt l3-agent is already running: pid=2677; pidfile=/root/.lilalo/l3-agent.pid |
#ssh debian1
Linux debian1 3.2.7 #1 SMP Thu Feb 23 17:56:02 EET 2012 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. Last login: Fri Feb 24 14:39:37 2012 from debian5.unix.nt l3-agent is already running: pid=2677; pidfile=/root/.lilalo/l3-agent.pid |
#sha1sum /iso/windows-2003.iso
2c0483cae2c494964ac43d0e5d7be7fb8d170c77 /iso/windows-2003.iso |
#showmount -e 10.0.35.45
Export list for 10.0.35.45: /iso * |
#mkdir /iso
mkdir: cannot create directory `/iso': File exists |
## DG8FV-B9TKY-FRT9J-6CRCC-XPQ4G
|
#ssh debian2
Linux debian2 3.2.7 #1 SMP Thu Feb 23 17:56:02 EET 2012 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. Last login: Fri Feb 24 12:35:02 2012 from debian5.unix.nt l3-agent is already running: pid=2681; pidfile=/root/.lilalo/l3-agent.pid |
#ssh debian2
Linux debian2 3.2.7 #1 SMP Thu Feb 23 17:56:02 EET 2012 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. Last login: Fri Feb 24 12:35:02 2012 from debian5.unix.nt l3-agent is already running: pid=2681; pidfile=/root/.lilalo/l3-agent.pid |
#ssh debian3
Linux debian3 3.2.7 #1 SMP Thu Feb 23 17:56:02 EET 2012 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. Last login: Fri Feb 24 12:40:04 2012 from debian5.unix.nt l3-agent is already running: pid=2605; pidfile=/root/.lilalo/l3-agent.pid |
#ssh debian3
Linux debian3 3.2.7 #1 SMP Thu Feb 23 17:56:02 EET 2012 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. Last login: Fri Feb 24 12:40:04 2012 from debian5.unix.nt l3-agent is already running: pid=2605; pidfile=/root/.lilalo/l3-agent.pid |
## THIS IS VALID KEY
|
#apt-get install apache2
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: apache2-mpm-worker apache2-utils apache2.2-common ssl-cert Suggested packages: apache2-doc apache2-suexec apache2-suexec-custom openssl-blacklist The following NEW packages will be installed: apache2 apache2-mpm-worker apache2-utils apache2.2-common ssl-cert 0 upgraded, 5 newly installed, 0 to remove and 5 not upgraded. ... Enabling module authz_default. Enabling module authz_user. Enabling module authz_groupfile. Enabling module authn_file. Enabling module authz_host. Enabling module reqtimeout. Setting up apache2-mpm-worker (2.2.16-6+squeeze6) ... Starting web server: apache2. Setting up apache2 (2.2.16-6+squeeze6) ... Setting up ssl-cert (1.0.28) ... |
##WPXW9-6G98T-JK8PD-9DBVJ-8W4FD
|
#ls /var/www/
index.html |
#ls /var/www/
gplpv.msi index.html |
#ssh debian1
Linux debian1 3.2.7 #1 SMP Thu Feb 23 17:56:02 EET 2012 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. Last login: Fri Feb 24 16:23:20 2012 from debian5.unix.nt l3-agent is already running: pid=2677; pidfile=/root/.lilalo/l3-agent.pid |
#kpartx -a /dev/VG0/winxp1
|
#ls /dev/mapper/
control VG0-vol1 VG0-vol5 VG0-winxp1 VG0-winxp1p1 |
#apt-cache search ntfs-3g
disk-manager - simple graphical filesystem configurator libntfs-3g-dev - ntfs-3g filesystem in userspace (FUSE) library headers libntfs-3g75 - ntfs-3g filesystem in userspace (FUSE) library ntfs-3g - read-write NTFS driver for FUSE ntfs-config - Enable/disable write support for any NTFS devices |
#apt-get install ntfs-3g
Reading package lists... Done Building dependency tree Reading state information... Done ntfs-3g is already the newest version. ntfs-3g set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded. |
#mount.ntfs-3g /dev/mapper/VG0-winxp1p1 /mnt
|
#ls /mnt
AUTOEXEC.BAT Documents and Settings MSDOS.SYS pagefile.sys WINDOWS boot.ini hiberfil.sys NTDETECT.COM Program Files CONFIG.SYS IO.SYS ntldr System Volume Information |
#cat /mnt/boot.ini
[boot loader] timeout=30 default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS [operating systems] multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect |
#umount /mnt
|
#grep -xv '' /etc/xen/winxp1 | grep -v ^#
kernel = "hvmloader" builder='hvm' memory = 512 name = "winxp1" vif = [ 'type=ioemu, bridge=br10' ] disk = [ 'phy:/dev/VG0/winxp1,hda,w', 'file:/iso/windows-2003.iso,hdc:cdrom,r' ] device_model = 'qemu-dm' boot="c" sdl=0 opengl=1 vnc=1 vncpasswd='' stdvga=0 serial='pty' tsc_mode=0 |
#file -s /dev/VG0/winxp1
/dev/VG0/winxp1: symbolic link to `../dm-5' |
#file -s /dev/dm-5
/dev/dm-5: x86 boot sector, Microsoft Windows XP MBR, Serial 0xc77cc77c; partition 1: ID=0x7, active, starthead 1, startsector 63, 4185153 sectors, code offset 0xc0 |
#route add -net 192.168.30.0/24 10.0.35.43
SIOCADDRT: No such device |
#route add -net 192.168.30.0/24 gw 10.0.35.43
|
#exit
exit Connection to debian1 closed. |
#route add -net 192.168.30.0/24 gw 10.0.35.43
|
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 7250 2 r----- 1772.5 dom1 8 128 32 -b---- 84.9 dom3 4 128 1 -b---- 165.4 |
#apt-get install aoe-tools
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package aoe-tools |
#apt-get install aoe
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package aoe |
#apt-cache search ata over ethernet
aoetools - tools to assist in using ATA over Ethernet faifa - manage HomePlug 1.0/AV devices via ethernet frames libfaifa-dev - manage HomePlug 1.0/AV devices via ethernet frames - devel library libfaifa0 - manage HomePlug 1.0/AV devices via ethernet frames - library iprelay - User-space bandwidth shaping TCP proxy daemon udpcast - multicast file transfer tool vblade - virtual AoE blade emulator vde2-cryptcab - Virtual Distributed Ethernet - CryptCab vtun - virtual tunnel over TCP/IP networks |
#modprobe aoe
|
#apt-get install vblade
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: fgetty runit vblade-persist Suggested packages: socklog-run The following NEW packages will be installed: fgetty runit vblade vblade-persist 0 upgraded, 4 newly installed, 0 to remove and 5 not upgraded. ... Unpacking runit (from .../runit_2.1.1-6.2_i386.deb) ... Selecting previously deselected package vblade. Unpacking vblade (from .../archives/vblade_20-1_i386.deb) ... Selecting previously deselected package vblade-persist. Unpacking vblade-persist (from .../vblade-persist_0.6-2_all.deb) ... Processing triggers for man-db ... Setting up fgetty (0.6-5) ... Setting up runit (2.1.1-6.2) ... Setting up vblade (20-1) ... Setting up vblade-persist (0.6-2) ... |
#xm shutdown dom3
|
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 7250 2 r----- 1786.4 dom1 8 128 32 -b---- 84.9 dom3 4 128 1 -b---- 165.7 |
#ls /dev/VG0/vol3
/dev/VG0/vol3 |
#vblade /dev/VG0/vol3 eth0 5 1
open: No such file or directory |
#vblade
usage: vblade [-b bufcnt] [-d ] [-s] [-r] [ -m mac[,mac...] ] shelf slot netif filename |
#ssh linux1
The authenticity of host 'linux1 (192.168.10.1)' can't be established. RSA key fingerprint is e0:cb:d8:0c:14:66:e5:07:99:48:fb:84:58:bb:65:27. Are you sure you want to continue connecting (yes/no)? ^C |
#ssh debian1
Linux debian1 3.2.7 #1 SMP Thu Feb 23 17:56:02 EET 2012 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. Last login: Fri Feb 24 16:46:57 2012 from debian5.unix.nt l3-agent is already running: pid=2677; pidfile=/root/.lilalo/l3-agent.pid |
[boot loader] timeout=30 default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS [operating systems] multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect
Время первой команды журнала | 13:48:04 2012- 2-24 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 16:12:09 2012- 2-24 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 11.88 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.40 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.70 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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