/l3/users/devi/xen-for-zen/xen1.unix.nt/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 :39 :40 :41 :42 :43 :44 :45 :46 |
|
#apt-get install openssh-server
Reading package lists... Done Building dependency tree... Done Suggested packages: ssh-askpass xbase-clients rssh molly-guard The following NEW packages will be installed: openssh-server 0 upgraded, 1 newly installed, 0 to remove and 53 not upgraded. Need to get 218kB of archives. After unpacking 553kB of additional disk space will be used. Get:1 http://debian.org.ua unstable/main openssh-server 1:4.3p2-6 [218kB] Fetched 218kB in 1s (143kB/s) Preconfiguring packages ... Selecting previously deselected package openssh-server. (Reading database ... 24235 files and directories currently installed.) Unpacking openssh-server (from .../openssh-server_1%3a4.3p2-6_i386.deb) ... Setting up openssh-server (4.3p2-6) ... Creating SSH2 RSA key; this may take some time ... Creating SSH2 DSA key; this may take some time ... Restarting OpenBSD Secure Shell server: sshd. |
#apt-cache search xen
libroxen-asis - ASIS module for the Roxen Challenger web server libroxen-calculator - Calculator tag for the Roxen Challenger web server libroxen-calendar - A calendar module for the Roxen Challenger web server libroxen-cloakingdevice - Mailto mutilation module for the Roxen Challenger web server libroxen-columnify - Text column module for the Roxen Challenger web server libroxen-deepleap - Deepleap database registry module for the Roxen Challenger web server libroxen-diary - Diary module for the Roxen Challenger web server libroxen-dirlist - Directory listing module for the Roxen Challenger web server libroxen-disclaimer - Disclaimer module for the Roxen Challenger web server libroxen-discussit - Discussion module for the Roxen Challenger web server ... xen-linux-system-2.6.18-3-xen-686 - XEN system with Linux 2.6.18 image on PPro/Celeron/PII/PIII/P4 xen-linux-system-2.6.18-3-xen-k7 - XEN system with Linux 2.6.18 image on AMD K7 xen-linux-system-2.6.18-3-xen-vserver-686 - XEN system with Linux 2.6.18 image on PPro/Celeron/PII/PIII/P4 xen-tools - Tools to manage debian XEN virtual servers xen-utils-3.0-unstable-1 - XEN administrative tools xen-utils-3.0.3-1 - XEN administrative tools xen-utils-common - XEN administrative tools - common files xengine - A benchmark program for the X Window System. xenman - A graphical Xen management tool avifile-divx-plugin - Divx4Linux video de/encoding plugin for libavifile |
#apt-cache search xen hypervisor
libc6-xen - GNU C Library: Shared libraries [Xen version] xen-hypervisor-3.0-unstable-1-i386 - The Xen Hypervisor on i386-class xen-hypervisor-3.0-unstable-1-i386-pae - The Xen Hypervisor on i386-pae-class xen-hypervisor-3.0.3-1-i386 - The Xen Hypervisor on i386 xen-hypervisor-3.0.3-1-i386-pae - The Xen Hypervisor on i386 with pae xen-linux-system-2.6.18-3-xen-686 - XEN system with Linux 2.6.18 image on PPro/Celeron/PII/PIII/P4 xen-linux-system-2.6.18-3-xen-k7 - XEN system with Linux 2.6.18 image on AMD K7 xen-linux-system-2.6.18-3-xen-vserver-686 - XEN system with Linux 2.6.18 image on PPro/Celeron/PII/PIII/P4 |
#apt-get install xen-hypervisor-3.0.3-1-i386
Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: iproute libatm1 xen-utils-3.0.3-1 xen-utils-common Suggested packages: xen-docs-3.0 Recommended packages: iproute-doc bridge-utils libc6-xen xen-hypervisor-3.0.3-1 The following NEW packages will be installed: iproute libatm1 xen-hypervisor-3.0.3-1-i386 xen-utils-3.0.3-1 ... Setting up iproute (20061002-2) ... Setting up xen-utils-common (3.0.3-0-2) ... Setting up xen-utils-3.0.3-1 (3.0.3-0-2) ... INFO: using old version '/usr/bin/python2.3' Setting up xen-hypervisor-3.0.3-1-i386 (3.0.3-0-2) ... Searching for GRUB installation directory ... found: /boot/grub Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst Searching for splash image ... none found, skipping ... Found kernel: /boot/vmlinuz-2.6.17-2-686 Updating /boot/grub/menu.lst ... done |
#apt-cache search xen-tools
xen-tools - Tools to manage debian XEN virtual servers |
#apt-get install xen-tools
Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: debootstrap libtext-template-perl Recommended packages: reiserfsprogs xfsprogs rpmstrap perl-doc The following NEW packages will be installed: debootstrap libtext-template-perl xen-tools 0 upgraded, 3 newly installed, 0 to remove and 53 not upgraded. Need to get 203kB of archives. ... Selecting previously deselected package debootstrap. (Reading database ... 24549 files and directories currently installed.) Unpacking debootstrap (from .../debootstrap_0.3.3.1_all.deb) ... Selecting previously deselected package libtext-template-perl. Unpacking libtext-template-perl (from .../libtext-template-perl_1.44-1.1_all.deb) ... Selecting previously deselected package xen-tools. Unpacking xen-tools (from .../xen-tools_3.0~beta1-1_all.deb) ... Setting up debootstrap (0.3.3.1) ... Setting up libtext-template-perl (1.44-1.1) ... Setting up xen-tools (3.0~beta1-1) ... |
#vi ~/.bashrc
|
#vi /etc/bash
32,34c32,34 < #if [ -f /etc/bash_completion ]; then < # . /etc/bash_completion < #fi --- > if [ -f /etc/bash_completion ]; then > . /etc/bash_completion > fi |
#vi /etc/bash.bashrc
|
#. /etc/bash_completion
|
#apt-get install zsh
Reading package lists... Done Building dependency tree... Done Suggested packages: zsh-doc The following NEW packages will be installed: zsh 0 upgraded, 1 newly installed, 0 to remove and 53 not upgraded. Need to get 2218kB of archives. After unpacking 6672kB of additional disk space will be used. Get:1 http://debian.org.ua unstable/main zsh 4.3.2-25 [2218kB] Fetched 2218kB in 12s (182kB/s) Selecting previously deselected package zsh. (Reading database ... 24700 files and directories currently installed.) Unpacking zsh (from .../archives/zsh_4.3.2-25_i386.deb) ... Setting up zsh (4.3.2-25) ... |
#zsh
\[v2#\!#$?#$UID#$$#$(/bin/date +)$(l3_save_last_line)#$PWD#\033[1024D\033[K\]\[\033[0;31m\][\u@\h:\W]\$ \[\033[0m\] \[v2#\!#$?#$UID#$$#$(/bin/date +)$(l3_save_last_line)#$PWD#\033[1024D\033[K\]\[\033[0;31m\][\u@\h:\W]\$ \[\033[0m\]exit |
#apt-cache search linux xen
libroxen-hubbethrottle - Bandwidth throttle module for the Roxen Challenger web server linux-headers-2.6-xen-686 - Header files for Linux 2.6 on PPro/Celeron/PII/PIII/P4 linux-headers-2.6-xen-k7 - Header files for Linux 2.6 on AMD K7 linux-headers-2.6-xen-vserver-686 - Header files for Linux 2.6 on PPro/Celeron/PII/PIII/P4 linux-headers-2.6.18-3-xen - Common header files for Linux 2.6.18 linux-headers-2.6.18-3-xen-686 - Header files for Linux 2.6.18 on PPro/Celeron/PII/PIII/P4 linux-headers-2.6.18-3-xen-k7 - Header files for Linux 2.6.18 on AMD K7 linux-headers-2.6.18-3-xen-vserver - Common header files for Linux 2.6.18 linux-headers-2.6.18-3-xen-vserver-686 - Header files for Linux 2.6.18 on PPro/Celeron/PII/PIII/P4 linux-image-2.6-xen-686 - Linux kernel 2.6 image on PPro/Celeron/PII/PIII/P4 ... linux-modules-2.6.18-3-xen-vserver-686 - Linux 2.6.18 modules on PPro/Celeron/PII/PIII/P4 rtai - real time application interface rtai-doc - real time application interface (documentation) rtai-source - real time application interface (module source) xen-ioemu-3.0-unstable - XEN administrative tools xen-ioemu-3.0.3-1 - XEN administrative tools xen-linux-system-2.6.18-3-xen-686 - XEN system with Linux 2.6.18 image on PPro/Celeron/PII/PIII/P4 xen-linux-system-2.6.18-3-xen-k7 - XEN system with Linux 2.6.18 image on AMD K7 xen-linux-system-2.6.18-3-xen-vserver-686 - XEN system with Linux 2.6.18 image on PPro/Celeron/PII/PIII/P4 avifile-divx-plugin - Divx4Linux video de/encoding plugin for libavifile |
#apt-get install linux-image-xen-686
Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: linux-image-2.6-xen-686 linux-image-2.6.18-3-xen-686 linux-modules-2.6.18-3-xen-686 Suggested packages: linux-doc-2.6.18 Recommended packages: libc6-xen The following NEW packages will be installed: ... Setting up linux-image-2.6.18-3-xen-686 (2.6.18-7) ... update-initramfs: Generating /boot/initrd.img-2.6.18-3-xen-686 Searching for GRUB installation directory ... found: /boot/grub Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst Searching for splash image ... none found, skipping ... Found Xen hypervisor 3.0.3-1-i386, kernel: /boot/vmlinuz-2.6.18-3-xen-686 Found kernel: /boot/vmlinuz-2.6.17-2-686 Updating /boot/grub/menu.lst ... done Setting up linux-image-2.6-xen-686 (2.6.18+5) ... Setting up linux-image-xen-686 (2.6.18+5) ... |
#less /boot/grub/menu.lst
|
#vi /boot/grub/menu.lst
120c120 < kernel /boot/xen-3.0.3-1-i386.gz --- > kernel /boot/xen-3.0.3-1-i386.gz dom0_mem=128000 |
#reboot
|
#mount
/dev/sda1 on / type ext3 (rw,errors=remount-ro) proc on /proc type proc (rw,noexec,nosuid,nodev) /sys on /sys type sysfs (rw,noexec,nosuid,nodev) udev on /dev type tmpfs (rw,mode=0755) devshm on /dev/shm type tmpfs (rw) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,nodev) |
#fdisk -l /dev/sda
Disk /dev/sda: 81.9 GB, 81964302336 bytes 255 heads, 63 sectors/track, 9964 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 1 2432 19535008+ 83 Linux /dev/sda2 2433 2675 1951897+ 82 Linux swap / Solaris |
#dmesg | grep sdb
SCSI device sdb: 312581808 512-byte hdwr sectors (160042 MB) sdb: Write Protect is off sdb: Mode Sense: 00 3a 00 00 SCSI device sdb: drive cache: write back SCSI device sdb: 312581808 512-byte hdwr sectors (160042 MB) sdb: Write Protect is off sdb: Mode Sense: 00 3a 00 00 SCSI device sdb: drive cache: write back sdb: sd 1:0:0:0: Attached scsi disk sdb |
#modprobe aoe
|
#apt-cache search ata over ethernet
aoetools - tools to assist in using ATA over Ethernet iprelay - User-space bandwidth shaping TCP proxy daemon udpcast - multicast file transfer tool vtun - Virtual Tunnel over TCP/IP Networks |
#apt-get install aoetools
Reading package lists... Done Building dependency tree... Done The following NEW packages will be installed: aoetools 0 upgraded, 1 newly installed, 0 to remove and 53 not upgraded. Need to get 20.8kB of archives. After unpacking 164kB of additional disk space will be used. Get:1 http://debian.org.ua unstable/main aoetools 11-1.1 [20.8kB] Fetched 20.8kB in 0s (57.2kB/s) Selecting previously deselected package aoetools. (Reading database ... 27557 files and directories currently installed.) Unpacking aoetools (from .../aoetools_11-1.1_i386.deb) ... Setting up aoetools (11-1.1) ... Starting AoE devices discovery and mounting AoE filesystems: not started. |
#dpkg -L aoetools | grep bin/
/sbin/aoe-discover /sbin/aoe-interfaces /sbin/aoe-mkshelf /sbin/aoe-revalidate /sbin/aoe-mkdevs /sbin/aoe-stat /sbin/aoeping |
#aoe-stat
|
#apt-cache search vblade
vblade - virtual AoE blade emulator |
#apt-get install vblade
Reading package lists... Done Building dependency tree... Done The following NEW packages will be installed: vblade 0 upgraded, 1 newly installed, 0 to remove and 53 not upgraded. Need to get 10.7kB of archives. After unpacking 45.1kB of additional disk space will be used. Get:1 http://debian.org.ua unstable/main vblade 11-1 [10.7kB] Fetched 10.7kB in 0s (65.6kB/s) Selecting previously deselected package vblade. (Reading database ... 27580 files and directories currently installed.) Unpacking vblade (from .../archives/vblade_11-1_i386.deb) ... Setting up vblade (11-1) ... |
#dpkg -L vblade | less
|
#dpkg -L vblade
/. /usr /usr/sbin /usr/sbin/vblade /usr/sbin/vbladed /usr/share /usr/share/doc /usr/share/doc/vblade /usr/share/doc/vblade/README /usr/share/doc/vblade/TODO.Debian /usr/share/doc/vblade/copyright /usr/share/doc/vblade/changelog.Debian.gz /usr/share/doc/vblade/changelog.gz /usr/share/man /usr/share/man/man8 /usr/share/man/man8/vblade.8.gz /usr/share/man/man8/vbladed.8.gz |
#less /usr/share/doc/vblade/README
|
#man vblade
|
#less /usr/share/doc/vblade/README
|
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:13:D4:B2:4F:EC inet addr:192.168.15.251 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::213:d4ff:feb2:4fec/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1161 errors:0 dropped:0 overruns:0 frame:0 TX packets:785 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:140240 (136.9 KiB) TX bytes:222928 (217.7 KiB) Base address:0xd800 Memory:cffe0000-d0000000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:14 errors:0 dropped:0 overruns:0 frame:0 TX packets:14 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:668 (668.0 b) TX bytes:668 (668.0 b) |
#vblade 9 0
usage: vblade <shelf> <slot> <ethn> <device> |
#vblade 9 0 eth0 /dev/sdb
[root@xen1:~]# apt-get install ntpdate Reading package lists... Done Building dependency tree... Done The following NEW packages will be installed: ntpdate 0 upgraded, 1 newly installed, 0 to remove and 53 not upgraded. Need to get 57.4kB of archives. After unpacking 213kB of additional disk space will be used. Get:1 http://debian.org.ua unstable/main ntpdate 1:4.2.2.p4+dfsg-1 [57.4kB] Fetched 57.4kB in 0s (108kB/s) ... 6 Dec 20:07:30 ntpdate[2909]: step time server 194.149.67.130 offset -5.574565 sec [root@xen1:~]# [root@xen1:~]# [root@xen1:~]# ps aux | grep l3 root 5634 0.0 0.5 2852 704 pts/5 R+ 23:22 0:00 grep l3 [root@xen1:~]# l3-agent [root@xen1:~]# ioctl returned 0 160041885696 bytes pid 2652: e9.0, 312581808 sectors |
#apt-get install screen
Reading package lists... Done Building dependency tree... Done The following NEW packages will be installed: screen 0 upgraded, 1 newly installed, 0 to remove and 53 not upgraded. Need to get 586kB of archives. After unpacking 913kB of additional disk space will be used. Get:1 http://debian.org.ua unstable/main screen 4.0.3-0.2 [586kB] Fetched 586kB in 0s (651kB/s) Preconfiguring packages ... Selecting previously deselected package screen. (Reading database ... 27590 files and directories currently installed.) Unpacking screen (from .../screen_4.0.3-0.2_i386.deb) ... Setting up screen (4.0.3-0.2) ... |
#tzconfig
Your current time zone is set to US/Eastern Do you want to change that? [n]: y Please enter the number of the geographic area in which you live: 1) Africa 7) Australia 2) America 8) Europe 3) US time zones 9) Indian Ocean 4) Canada time zones 10) Pacific Ocean 5) Asia 11) Use System V style time zones 6) Atlantic Ocean 12) None of the above Then you will be shown a list of cities which represent the time zone ... Podgorica Prague Riga Rome Samara San_Marino Sarajevo Simferopol Skopje Sofia Stockholm Tallinn Tirane Tiraspol Uzhgorod Vaduz Vatican Vienna Vilnius Volgograd Warsaw Zagreb Zaporozhye Zurich Please enter the name of one of these cities or zones You just need to type enough letters to resolve ambiguities Press Enter to view all of them again Name: [] Kiev Your default time zone is set to 'Europe/Kiev'. Local time is now: Wed Dec 6 20:07:06 EET 2006. Universal Time is now: Wed Dec 6 18:07:06 UTC 2006. |
#apt-get install ntpdate
Reading package lists... Done Building dependency tree... Done The following NEW packages will be installed: ntpdate 0 upgraded, 1 newly installed, 0 to remove and 53 not upgraded. Need to get 57.4kB of archives. After unpacking 213kB of additional disk space will be used. Get:1 http://debian.org.ua unstable/main ntpdate 1:4.2.2.p4+dfsg-1 [57.4kB] Fetched 57.4kB in 0s (108kB/s) Selecting previously deselected package ntpdate. (Reading database ... 27644 files and directories currently installed.) Unpacking ntpdate (from .../ntpdate_1%3a4.2.2.p4+dfsg-1_i386.deb) ... Setting up ntpdate (4.2.2.p4+dfsg-1) ... |
#ntpdate ntp.psn.ru
6 Dec 20:07:30 ntpdate[2909]: step time server 194.149.67.130 offset -5.574565 sec |
#free
total used free shared buffers cached Mem: 128148 120020 8128 0 75272 9988 -/+ buffers/cache: 34760 93388 Swap: 1951888 52 1951836 |
#vblade 9 0 eth0 /dev/sdb
ioctl returned 0 160041885696 bytes pid 4468: e9.0, 312581808 sectors |
#apt-get install lvm
Reading package lists... Done Building dependency tree... Done Package lvm is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: lvm-common E: Package lvm has no installation candidate |
#apt-get install lvm2
Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: lvm-common Suggested packages: dmsetup The following NEW packages will be installed: lvm-common lvm2 0 upgraded, 2 newly installed, 0 to remove and 53 not upgraded. Need to get 325kB of archives. ... Fetched 325kB in 1s (268kB/s) Preconfiguring packages ... Selecting previously deselected package lvm-common. (Reading database ... 27657 files and directories currently installed.) Unpacking lvm-common (from .../lvm-common_1.5.20_i386.deb) ... Selecting previously deselected package lvm2. Unpacking lvm2 (from .../lvm2_2.02.06-3_i386.deb) ... Setting up lvm-common (1.5.20) ... Setting up lvm2 (2.02.06-3) ... Backing up any LVM2 metadata that may exist...done. |
#lv
lvchange lvm lvmsadc lvresize lvconvert lvm-bin-scan lvmsar lvs lvcreate lvmchange lvreduce lvscan lvdisplay lvmdiskscan lvremove lvextend lvmiopversion lvrename |
#lvdisplay
--- Logical volume --- LV Name /dev/NAS1/winxp0 VG Name NAS1 LV UUID 6w0bG5-emLP-b9tq-H1ch-tOMY-t5Ay-8nKk7x LV Write Access read/write LV Status NOT available LV Size 2.00 GB Current LE 512 Segments 1 Allocation inherit ... LV Name /dev/NAS1/2003server0 VG Name NAS1 LV UUID wY7Y52-Fr6u-dRQF-tTpR-YgTu-XxoL-8nL4Sj LV Write Access read/write LV Status NOT available LV Size 2.00 GB Current LE 512 Segments 1 Allocation inherit Read ahead sectors 0 |
#lvextend
Please specify either size or extents (not both) lvextend: Add space to a logical volume lvextend [-A|--autobackup y|n] [--alloc AllocationPolicy] [-d|--debug] [-h|--help] [-i|--stripes Stripes [-I|--stripesize StripeSize]] {-l|--extents [+]LogicalExtentsNumber | -L|--size [+]LogicalVolumeSize[kKmMgGtT]} [-m|--mirrors Mirrors] [-n|--nofsck] [-r|--resizefs] [-t|--test] [--type VolumeType] [-v|--verbose] [--version] LogicalVolume[Path] [ PhysicalVolumePath... ] |
#lvextend -L +20480M /dev/NAS1/ISO
Extending logical volume ISO to 22.00 GB Logical volume ISO successfully resized |
#e2label /dev/NAS1/ISO
e2label: No such file or directory while trying to open /dev/NAS1/ISO Couldn't find valid filesystem superblock. |
#file -s /dev/NAS1/ISO
/dev/NAS1/ISO: ERROR: cannot open `/dev/NAS1/ISO' (No such file or directory) |
#lv
lvchange lvm lvmsadc lvresize lvconvert lvm-bin-scan lvmsar lvs lvcreate lvmchange lvreduce lvscan lvdisplay lvmdiskscan lvremove lvextend lvmiopversion lvrename |
#lvscan
inactive '/dev/NAS1/winxp0' [2.00 GB] inherit inactive '/dev/NAS1/deb0' [2.00 GB] inherit inactive '/dev/NAS1/ISO' [22.00 GB] inherit inactive '/dev/NAS1/2003server0' [2.00 GB] inherit |
#file -s /dev/NAS1/ISO
/dev/NAS1/ISO: ERROR: cannot open `/dev/NAS1/ISO' (No such file or directory) |
#man lvscan
|
#man lvm
|
#man lvmdiskscan
|
#pvscan
PV /dev/sdb VG NAS1 lvm2 [149.05 GB / 121.05 GB free] Total: 1 [149.05 GB] / in use: 1 [149.05 GB] / in no VG: 0 [0 ] |
#man pvscan
|
#aprpopos lvm
bash: aprpopos: command not found |
#apropos lvm
lvm: nothing appropriate. |
#lvm
lvm lvmchange lvmiopversion lvmsar lvm-bin-scan lvmdiskscan lvmsadc |
#man lvm
|
#man lvm
|
#apt-cache search ext online
aime - Advanced Interactive Mudding Environment amule-utils - utilities for aMule (command-line version) auctex - An integrated environment for editing TeX and friends documents axiom-hypertex - A general purpose computer algebra system: hypertex subsystem cadubi - Creative ASCII Drawing Utility By Ian chaksem - LaTeX class for presentations doc++ - A documentation system for C/C++, IDL and Java education-services - DebianEdu services for educational institutions elog - Logbook system to manage notes through a Web interface ext2resize - an ext2 filesystem resizer ... sgmltools-lite - convert DocBook SGML source into HTML using DSSSL shorlfilter - Text filter to shorten long URLs using online redirection database sqlrelay-doc - SQL Relay Documentation stripclub - Online Comic reader and archiver texlive-latex-extra - TeX Live: LaTeX supplementary packages tioga - Ruby library for scientific graphs [transition package] tkman - A graphical, hypertext manual page and Texinfo browser wzdftpd - A portable, modular, small and efficient ftp server xcdroast - X based CD-writer software yacas-proteus - User interface for yacas based on fltk |
#apt-get install ext2online
Reading package lists... Done Building dependency tree... Done E: Couldn't find package ext2online |
#apt-get install ext2resize
Reading package lists... Done Building dependency tree... Done The following NEW packages will be installed: ext2resize 0 upgraded, 1 newly installed, 0 to remove and 53 not upgraded. Need to get 209kB of archives. After unpacking 377kB of additional disk space will be used. Get:1 http://debian.org.ua unstable/main ext2resize 1.1.19-9 [209kB] Fetched 209kB in 3s (65.1kB/s) Selecting previously deselected package ext2resize. (Reading database ... 27771 files and directories currently installed.) Unpacking ext2resize (from .../ext2resize_1.1.19-9_i386.deb) ... Setting up ext2resize (1.1.19-9) ... |
#/etc/init.d/lvm restart
Shutting down LVM Volume Groups... 0 logical volume(s) in volume group "NAS1" now active Setting up LVM Volume Groups... Reading all physical volumes. This may take a while... Found volume group "NAS1" using metadata type lvm2 4 logical volume(s) in volume group "NAS1" now active |
#less /etc/init.d/lvm
|
#e2label /dev/NAS1/ISO
ISO |
#mkdir /data/ISO
mkdir: cannot create directory `/data/ISO': No such file or directory |
#mkdir -p /data/ISO
|
#mount -L ISO /data/ISO
|
#cd /data/ISO
|
#ls
lost+found windows-server-2003-vtoraya-popytka.iso windows-server-2003.iso windowsxp-pro-sp2.iso |
#ls
lost+found windows-server-2003.iso windowsxp-pro-sp2.iso |
#ls -l
total 1313052 drwx------ 2 root root 16384 2006-12-06 20:21 lost+found -rw-r--r-- 1 root root 735705088 2006-12-07 18:36 windows-server-2003.iso -rw-r--r-- 1 root root 607518720 2006-12-06 20:25 windowsxp-pro-sp2.iso |
#dmesg | grep -i dvd
|
#dmesg | grep -i cd
4gb seg fixup, process http (pid 5344), cs:ip 73:b7cdf652 |
#xm dmesg | grep -i cd
|
#ls /proc/ide/
drivers hda ide0 |
#cat /proc/ide/hda/model
HL-DT-STDVD-ROM GDR8163B |
#cat /dev/hda > zensuite-7-sp1.iso
cat: write error: No space left on device |
#ls
lost+found windowsxp-pro-sp2.iso windows-server-2003.iso zensuite-7-sp1.iso |
#cd /
|
#umount /data/ISO
|
#ext2online /dev/NAS1/ISO
ext2online v1.1.19 - 2001/03/18 for EXT2FS 0.5b ext2online: can't find /dev/mapper/NAS1-ISO, is it mounted? usage: ext2online [-C fd] [-dfqvV] device [new_size[bkmgt]] -C, --completion : print completion information -d, --debug : turn debug info on -f, --force : skip safety checks -q, --quiet : be quiet (print only errors) -v, --verbose : be verbose -V, --version : print version and exit fd is the file descriptor to output completion data to, new_size is in ext2 blocks (1k, 2k, or 4k) (default), disk Blocks (512 byte), Kilo-, Mega-, Giga-, or Terabytes |
#man ext2online
|
#ext2resize /dev/NAS1/ISO
ext2resize v1.1.19 - 2001/03/18 for EXT2FS 0.5b |
#ls
|
#mount -L ISO /data/ISO
|
#cd /data/ISO
|
#l3-agent
|
#ps aux | grep l3
root 5641 92.0 4.5 9156 5856 ? Rs 23:22 0:03 l3-agent |
#ls -l
total 1313052 drwx------ 2 root root 16384 2006-12-06 20:21 lost+found -rw-r--r-- 1 root root 735705088 2006-12-07 18:36 windows-server-2003.iso -rw-r--r-- 1 root root 607518720 2006-12-06 20:25 windowsxp-pro-sp2.iso -rw-r--r-- 1 root root 0 2006-12-07 23:31 zensuite-7-sp1.iso |
HL-DT-STDVD-ROM GDR8163B
Время первой команды журнала | 19:19:53 2006-12- 6 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 23:36:34 2006-12- 7 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 16.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.45 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.15 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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