/l3/users/devi/xen-seminar-preparation/vdgg.unix.nt/devi :1 :2 :3 :4 :5 :6 :7 |
|
$who
cherep pts/0 Aug 1 16:58 (10.0.17.1) devi pts/1 Aug 1 17:08 (10.0.35.1) cherep pts/2 Aug 1 17:00 (:2.0) |
$w
17:08:42 up 11 min, 3 users, load average: 0.04, 0.02, 0.00 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT cherep pts/0 10.0.17.1 16:58 8:43 1.39s 0.00s -sh devi pts/1 10.0.35.1 17:08 0.00s 0.00s 0.00s script -f -q /home/devi/.lilalo//1580 cherep pts/2 :2.0 17:00 1.00s 0.02s 0.02s script -f -q /home/cherep/.lilalo//20 |
$ls
|
$ping mail.ru
PING mail.ru (194.67.57.26) 56(84) bytes of data. 64 bytes from mail.ru (194.67.57.26): icmp_seq=1 ttl=112 time=102 ms 64 bytes from mail.ru (194.67.57.26): icmp_seq=2 ttl=112 time=101 ms 64 bytes from mail.ru (194.67.57.26): icmp_seq=3 ttl=112 time=100 ms --- mail.ru ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 100.188/101.333/102.660/1.017 ms |
$uptime
18:11:50 up 17 min, 2 users, load average: 0.13, 0.18, 0.09 |
$vncserver
New 'X' desktop is vdgg.unix.nt:1 Starting applications specified in /etc/X11/Xsession Log file is /home/devi/.vnc/vdgg.unix.nt:1.log |
$vncserver
New 'X' desktop is vdgg.unix.nt:1 Starting applications specified in /etc/X11/Xsession Log file is /home/devi/.vnc/vdgg.unix.nt:1.log |
$vi /etc/vnc.conf
|
$sudo vi /etc/vnc.conf
|
$ps aux | grep vnc
devi 12744 0.2 0.3 9608 7460 pts/1 S 18:12 0:00 Xrealvnc :1 -desktop X -auth /home/devi/.Xauthority -rfbwait 120000 -rfbauth /home/devi/.vnc/passwd -rfbport 5901 -fp /usr/share/fonts/X11/misc,/usr/share/fonts/X11/100dpi/:unscaled,/usr/share/fonts/X11/75dpi/:unscaled,/usr/share/fonts/X11/Type1,/usr/share/fonts/X11/100dpi,/usr/share/fonts/X11/75dpi -co /etc/X11/rgb devi 12898 0.0 0.0 4488 680 pts/3 S+ 18:13 0:00 grep vnc |
$sudo apt-get install kde
Password: Reading Package Lists... Done Building Dependency Tree... Done The following extra packages will be installed: gnupg2 kdepim kdeutils kdewebdev kfilereplace khexedit kimagemapeditor kjots klaptopdaemon kleopatra klinkstatus kmilo kommander kregexpeditor ksim ktimer kwalletmanager kxsldbg libcvsservice0 libsnmp-base libsnmp9 quanta quanta-data superkaramba Suggested packages: gnupg-doc xloadimage kde-i18n kdepim-doc-html kdeutils-doc-html ... Setting up libcvsservice0 (3.5.2-1+b2) ... Setting up kfilereplace (3.5.2-2) ... Setting up klinkstatus (3.5.2-2) ... Setting up kommander (3.5.2-2) ... Setting up quanta-data (3.5.2-2) ... Setting up quanta (3.5.2-2) ... Setting up kimagemapeditor (3.5.2-2) ... Setting up kxsldbg (3.5.2-2) ... Setting up kdewebdev (3.5.2-2) ... Setting up kde (47) ... |
$xinit
X Window System Version 7.0.0 Release Date: 21 December 2005 X Protocol Version 11, Revision 0, Release 7.0 Build Operating System:Linux 2.6.12-1-686 i686 Current Operating System: Linux vdgg.unix.nt 2.6.8-2-686-smp #1 SMP Tue Aug 16 12:08:30 UTC 2005 i686 Build Date: 16 March 2006 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Module Loader present Markers: (--) probed, (**) from config file, (==) default setting, ... FATAL: Module mach64 not found. [drm] failed to load kernel module "mach64" (EE) ATI(0): [dri] DRIScreenInit Failed error opening security policy file /etc/X11/xserver/SecurityPolicy Could not init font path element /usr/share/fonts/X11/TTF/, removing from list! Could not init font path element /usr/share/fonts/X11/OTF, removing from list! Could not init font path element /usr/share/fonts/X11/CID/, removing from list! xterm: fatal IO error 32 (Broken pipe) or KillClient on X server ":0.0" xinit: connection to X server lost. waiting for X server to shut down FreeFontPath: FPE "/usr/share/fonts/X11/misc" refcount is 2, should be 1; fixing. |
$less /etc/vnc.conf
|
$apt-cache search kde ru
akode - akode arts plugin brahms - Graphical music editor and MIDI sequencer fdflush - Flush out-of-date disk buffers junior-kde - Debian Jr. for KDE k3blibs - The KDE cd burning application library - runtime files kcmlinuz - KDE Frontend for the Linux kernel configuration kdelibs-bin - KDE core binaries kdelibs4 - KDE core libraries kmessedwords - letter order game for KDE lg-issue106 - Issue 106 of the Linux Gazette. ... thunderbird-traybiff - traybiff - new mail alert for Mozilla Thunderbird xlassie - Dockable mail notifier w/ message count & POP3/APOP/IMAP support xxdiff - a graphical file and directories comparison and merge tool kfolding - KDE applet for Folding@home ksocrat - English/Russian and Russian/English Dictionary ksocrat-data - English and Russian KSocrat data files amarok - versatile and easy to use audio player for KDE amule - client for the eD2k and Kad networks, like eMule bibletime-i18n - Translated messages and documentation of BibleTime. blinken - KDE version of the Simon Says electronic memory game |
$apt-cache search kde ru i18n
kde-i18n-ru - Russian (ru) internationalized (i18n) files for KDE |
$sudo apt-get install kde-i18n-ru
Password: Reading Package Lists... Done Building Dependency Tree... Done The following NEW packages will be installed: kde-i18n-ru 0 upgraded, 1 newly installed, 0 to remove and 115 not upgraded. Need to get 8600kB of archives. After unpacking 28.2MB of additional disk space will be used. Get:1 http://debian.org.ua testing/main kde-i18n-ru 4:3.5.3-1 [8600kB] Fetched 8600kB in 1m43s (83.4kB/s) Selecting previously deselected package kde-i18n-ru. (Reading database ... 63471 files and directories currently installed.) Unpacking kde-i18n-ru (from .../kde-i18n-ru_4%3a3.5.3-1_all.deb) ... Setting up kde-i18n-ru (3.5.3-1) ... |
$uname -a
Linux vdgg.unix.nt 2.6.8-2-686-smp #1 SMP Tue Aug 16 12:08:30 UTC 2005 i686 GNU/Linux |
$sudo vi /etc/lilo.conf
|
$cp /etc/shadow /tmp && echo GLYUKI || echo NE OSILIL
cp: cannot open `/etc/shadow' for reading: Permission denied NE OSILIL |
$sudo vi /home/cherep/.bash_profile
|
$dpkg -l | grep xen
ii xen-docs-3.0 3.0.2+hg9697-1 documentation for XEN, a Virtual Machine Mon ii xen-hypervisor 3.0.2+hg9697-1 The Xen Hypervisor for i386 ii xen-hypervisor 3.0.2+hg9697-1 The Xen Hypervisor for i386 (pae enabled ver ii xen-tools 2.2-3 Tools to manage debian XEN virtual servers ii xen-utils-3.0 3.0.2+hg9697-1 XEN administrative tools |
$free
total used free shared buffers cached Mem: 3633324 563124 3070200 0 35452 403420 -/+ buffers/cache: 124252 3509072 Swap: 3903784 0 3903784 |
$ssh -N -l -f 22000:chub.in:22 devi@chub.in
ssh: 22000:chub.in:22: Name or service not known |
$ssh -N -f -L 22000:chub.in:22 devi@chub.in
The authenticity of host 'chub.in (62.149.17.62)' can't be established. RSA key fingerprint is fb:a6:01:55:48:7d:2b:2c:23:ff:37:99:c8:0e:65:36. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'chub.in,62.149.17.62' (RSA) to the list of known hosts. Password: |
$sudo passwd cherep
Password: Sorry, try again. Password: Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully |
$su
Password: |
#cd /usr/src/linux-source-2.6.17
|
#ls
arch CREDITS drivers init kernel Makefile net scripts System.map vmlinux block crypto fs ipc lib mm README security usr COPYING Documentation include Kbuild MAINTAINERS Module.symvers REPORTING-BUGS sound version.Debian |
#vi Makefile
|
#dpkg -L | grep xen
dpkg-query: --listfiles needs at least one package name argument Use --help for help about querying packages; Use --licence for copyright licence and lack of warranty (GNU GPL). |
#dpkg -l | grep xen
ii xen-docs-3.0 3.0.2+hg9697-1 documentation for XEN, a Virtual Machine Mon ii xen-hypervisor 3.0.2+hg9697-1 The Xen Hypervisor for i386 ii xen-hypervisor 3.0.2+hg9697-1 The Xen Hypervisor for i386 (pae enabled ver ii xen-tools 2.2-3 Tools to manage debian XEN virtual servers ii xen-utils-3.0 3.0.2+hg9697-1 XEN administrative tools |
#. /etc/bash_completion
|
#dpkg -L xen-hypervisor-3.0-i386-pae | less
|
#apt-cache show xen-hypervisor
|
#apt-cache show xen-hypervisor-3.0-i386-pae
Package: xen-hypervisor-3.0-i386-pae Priority: extra Section: misc Installed-Size: 260 Maintainer: Debian Xen Team <pkg-xen-devel@lists.alioth.debian.org> Architecture: i386 Source: xen-3.0 Version: 3.0.2+hg9697-1 Provides: xen-hypervisor, xen-hypervisor-3.0, xen-hypervisor-i386-pae Filename: pool/main/x/xen-3.0/xen-hypervisor-3.0-i386-pae_3.0.2+hg9697-1_i386.deb ... (Domain 0) and the virtual guest systems. . In order to boot a XEN system along with this package you also need a kernel specifically crafted to work as the Domain 0, mediating hardware access for XEN itself. An example config file for this kernel and documentation on how to build it can be found in the xen-docs package. . This version of the hypervisor is built with PAE enabled, in order to support systems with more than 4GB of memory. If you have less than that you should probably choose the non -pae version. |
#vi /etc/apt/sources.list
|
#apt-get updat
E: Invalid operation updat |
#apt-get update
Get:1 http://packages.debianbase.de ./ Packages [2246B] Get:2 http://packages.debianbase.de ./ Release Get:3 http://packages.debianbase.de ./ Sources [2210B] Get:4 http://packages.debianbase.de ./ Release Hit http://debian.org.ua stable/main Packages Hit http://debian.org.ua stable/main Release Hit http://debian.org.ua stable/contrib Packages Hit http://debian.org.ua stable/contrib Release Hit http://debian.org.ua stable/non-free Packages Hit http://debian.org.ua stable/non-free Release ... Hit http://debian.org.ua experimental/non-free Packages Get:8 http://debian.org.ua experimental/non-free Release [108B] Get:9 http://debian.org.ua unstable/main Packages [5626kB] Get:10 http://debian.org.ua unstable/main Release [82B] Get:11 http://debian.org.ua unstable/contrib Packages [79.1kB] Get:12 http://debian.org.ua unstable/contrib Release [85B] Get:13 http://debian.org.ua unstable/non-free Packages [106kB] Get:14 http://debian.org.ua unstable/non-free Release [86B] Fetched 6031kB in 51s (116kB/s) Reading Package Lists... Done |
#apt-get install xen
Reading Package Lists... Done Building Dependency Tree... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. Since you only requested a single operation it is extremely likely that the package is simply not installable and a bug report against that package should be filed. The following information may help to resolve the situation: The following packages have unmet dependencies: xen: Depends: xen-utils E: Broken packages |
#apt-get install xen xen-utils
Reading Package Lists... Done Building Dependency Tree... Done Package xen-utils is a virtual package provided by: xen-utils-3.0 3.0.2+hg9697-1 You should explicitly select one to install. E: Package xen-utils has no installation candidate |
#apt-get install xen 3.0.2+hg9697-1
Reading Package Lists... Done Building Dependency Tree... Done E: Couldn't find package 3.0.2+hg9697-1 |
#apt-get install xen 3.0.2+hg9697-1
Reading Package Lists... Done Building Dependency Tree... Done E: Couldn't find package 3.0.2+hg9697-1 |
#apt-get install xen xen-utils-3.0
Reading Package Lists... Done Building Dependency Tree... Done xen-utils-3.0 is already the newest version. Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: xen-utils-3.0: Conflicts: xen but 3.0.1-0tha6 is to be installed E: Broken packages |
#apt-get install xen xen-utils-3.0.2+hg9697-1
Reading Package Lists... Done Building Dependency Tree... Done E: Couldn't find package xen-utils-3.0.2+hg9697-1 |
#apt-get remove xen-utils
Reading Package Lists... Done Building Dependency Tree... Done Package xen-utils is not installed, so not removed 0 upgraded, 0 newly installed, 0 to remove and 179 not upgraded. |
#apt-get remove xen-utils-3.0
Reading Package Lists... Done Building Dependency Tree... Done The following packages will be REMOVED: xen-utils-3.0 0 upgraded, 0 newly installed, 1 to remove and 179 not upgraded. Need to get 0B of archives. After unpacking 1368kB disk space will be freed. Do you want to continue? [Y/n] (Reading database ... 32403 files and directories currently installed.) Removing xen-utils-3.0 ... |
#apt-get install xen xen-utils
Reading Package Lists... Done Building Dependency Tree... Done Package xen-utils is a virtual package provided by: xen-utils-3.0 3.0.2+hg9697-1 You should explicitly select one to install. E: Package xen-utils has no installation candidate |
#apt-get install 3.0.2+hg9697-1
Reading Package Lists... Done Building Dependency Tree... Done E: Couldn't find package 3.0.2+hg9697-1 |
#apt-cache search xen utils
libroxen-xmlutils - XML utility functions for the Roxen Challenger web server xen-utils-3.0 - XEN administrative tools |
#apt-get install xen
Reading Package Lists... Done Building Dependency Tree... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. Since you only requested a single operation it is extremely likely that the package is simply not installable and a bug report against that package should be filed. The following information may help to resolve the situation: The following packages have unmet dependencies: xen: Depends: xen-utils E: Broken packages |
# apt-get install linux-patch-xen
Reading Package Lists... Done Building Dependency Tree... Done The following extra packages will be installed: dctrl-tools grep-dctrl The following NEW packages will be installed: dctrl-tools grep-dctrl linux-patch-xen 0 upgraded, 3 newly installed, 0 to remove and 179 not upgraded. Need to get 857kB of archives. After unpacking 1156kB of additional disk space will be used. Do you want to continue? [Y/n] Abort. |
# apt-get install linux-patch-xen
Reading Package Lists... Done Building Dependency Tree... Done The following extra packages will be installed: dctrl-tools grep-dctrl The following NEW packages will be installed: dctrl-tools grep-dctrl linux-patch-xen 0 upgraded, 3 newly installed, 0 to remove and 179 not upgraded. Need to get 857kB of archives. After unpacking 1156kB of additional disk space will be used. Do you want to continue? [Y/n] Y ... Selecting previously deselected package dctrl-tools. (Reading database ... 32253 files and directories currently installed.) Unpacking dctrl-tools (from .../dctrl-tools_2.9.0_i386.deb) ... Selecting previously deselected package grep-dctrl. Unpacking grep-dctrl (from .../grep-dctrl_2.9.0_all.deb) ... Selecting previously deselected package linux-patch-xen. Unpacking linux-patch-xen (from .../linux-patch-xen_3.0.1-0tha6_i386.deb) ... Setting up dctrl-tools (2.9.0) ... Setting up grep-dctrl (2.9.0) ... Setting up linux-patch-xen (3.0.1-0tha6) ... |
#apt-get install xen-utils-3.0
Reading Package Lists... Done Building Dependency Tree... Done Recommended packages: bridge-utils libc6-xen The following NEW packages will be installed: xen-utils-3.0 0 upgraded, 1 newly installed, 0 to remove and 179 not upgraded. Need to get 0B/310kB of archives. After unpacking 1368kB of additional disk space will be used. Selecting previously deselected package xen-utils-3.0. (Reading database ... 32300 files and directories currently installed.) Unpacking xen-utils-3.0 (from .../xen-utils-3.0_3.0.2+hg9697-1_i386.deb) ... Setting up xen-utils-3.0 (3.0.2+hg9697-1) ... |
#apt-get install libc6-xen bridge-utils
Reading Package Lists... Done Building Dependency Tree... Done The following extra packages will be installed: libsysfs2 The following NEW packages will be installed: bridge-utils libc6-xen libsysfs2 0 upgraded, 3 newly installed, 0 to remove and 179 not upgraded. Need to get 1173kB of archives. After unpacking 2703kB of additional disk space will be used. Do you want to continue? [Y/n] ... Selecting previously deselected package libc6-xen. (Reading database ... 32450 files and directories currently installed.) Unpacking libc6-xen (from .../libc6-xen_2.3.6-16_i386.deb) ... Selecting previously deselected package libsysfs2. Unpacking libsysfs2 (from .../libsysfs2_2.0.0-7_i386.deb) ... Selecting previously deselected package bridge-utils. Unpacking bridge-utils (from .../bridge-utils_1.1-2_i386.deb) ... Setting up libc6-xen (2.3.6-16) ... Setting up libsysfs2 (2.0.0-7) ... Setting up bridge-utils (1.1-2) ... |
#../
kernel-patches linux-source-2.6.17 |
#../kernel-patches/
amd64 diffs i386 |
#../kernel-patches/i386/
apply unpatch |
#../kernel-patches/i386/apply/xen
No "xen kernel patch" patch found for kernel version 2.6.17 |
#less ../kernel-patches/i386/apply/xen
|
#apt-cache search linux xen
lg-issue31 - Issue 31 of the Linux Gazette. lg-issue39 - Issue 39 of the Linux Gazette. libroxen-hubbethrottle - Bandwidth throttle module for the Roxen Challenger web server linux-headers-2.6.16-2-xen - Common header files for Linux kernel 2.6.16 linux-headers-2.6.16-2-xen-686 - Header files for Linux kernel 2.6.16 on PPro/Celeron/PII/PIII/P4 machines linux-headers-2.6.16-2-xen-k7 - Header files for Linux kernel 2.6.16 on AMD K7 machines linux-headers-2.6.16-2-xen-vserver - Common header files for Linux kernel 2.6.16 linux-headers-2.6.16-2-xen-vserver-686 - Header files for Linux kernel 2.6.16 on PPro/Celeron/PII/PIII/P4 machines linux-image-2.6.16-2-xen-686 - Linux kernel 2.6.16 image on PPro/Celeron/PII/PIII/P4 machines linux-image-2.6.16-2-xen-k7 - Linux kernel 2.6.16 image on AMD K7 machines ... linux-modules-2.6.16-2-xen-k7 - Linux kernel modules 2.6.16 image on AMD K7 machines linux-modules-2.6.16-2-xen-vserver-686 - Linux kernel modules 2.6.16 image on PPro/Celeron/PII/PIII/P4 machines rtai - real time application interface rtai-doc - real time application interface (documentation) rtai-source - real time application interface (module source) xen-ioemu-3.0 - XEN administrative tools avifile-divx-plugin - Divx4Linux video de/encoding plugin for libavifile linux-patch-xen - patch to linux for the XEN sub-arch linux-xen0-2.6 - a xenified kernel for domain0 & domainUs. linux-xen0-2.6-pae - a xenified kernel for domain0 & domainUs. |
#vi /etc/apt/sources.list
|
#apt-get update
Hit http://debian.org.ua stable/main Packages Hit http://debian.org.ua stable/main Release Hit http://debian.org.ua stable/contrib Packages Hit http://debian.org.ua stable/contrib Release Hit http://debian.org.ua stable/non-free Packages Hit http://debian.org.ua stable/non-free Release Hit http://debian.org.ua experimental/main Packages Hit http://debian.org.ua experimental/main Release Hit http://debian.org.ua experimental/contrib Packages Hit http://debian.org.ua experimental/contrib Release Hit http://debian.org.ua experimental/non-free Packages Hit http://debian.org.ua experimental/non-free Release 63% [Waiting for headers] Hit http://debian.org.ua unstable/main Packages Hit http://debian.org.ua unstable/main Release Hit http://debian.org.ua unstable/contrib Packages Hit http://debian.org.ua unstable/contrib Release Hit http://debian.org.ua unstable/non-free Packages Hit http://debian.org.ua unstable/non-free Release Reading Package Lists... Done |
#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 179 not upgraded. Need to get 582kB of archives. After unpacking 1004kB of additional disk space will be used. Get:1 http://debian.org.ua stable/main screen 4.0.2-4.1 [582kB] Fetched 582kB in 3s (163kB/s) ^A0 Preconfiguring packages ... Selecting previously deselected package screen. (Reading database ... 32527 files and directories currently installed.) Unpacking screen (from .../screen_4.0.2-4.1_i386.deb) ... Setting up screen (4.0.2-4.1) ... |
#apt-cache search linux xen
lg-issue31 - Issue 31 of the Linux Gazette. lg-issue39 - Issue 39 of the Linux Gazette. libroxen-hubbethrottle - Bandwidth throttle module for the Roxen Challenger web server linux-headers-2.6.16-2-xen - Common header files for Linux kernel 2.6.16 linux-headers-2.6.16-2-xen-686 - Header files for Linux kernel 2.6.16 on PPro/Celeron/PII/PIII/P4 machines linux-headers-2.6.16-2-xen-k7 - Header files for Linux kernel 2.6.16 on AMD K7 machines linux-headers-2.6.16-2-xen-vserver - Common header files for Linux kernel 2.6.16 linux-headers-2.6.16-2-xen-vserver-686 - Header files for Linux kernel 2.6.16 on PPro/Celeron/PII/PIII/P4 machines linux-image-2.6.16-2-xen-686 - Linux kernel 2.6.16 image on PPro/Celeron/PII/PIII/P4 machines linux-image-2.6.16-2-xen-k7 - Linux kernel 2.6.16 image on AMD K7 machines linux-image-2.6.16-2-xen-vserver-686 - Linux kernel 2.6.16 image on PPro/Celeron/PII/PIII/P4 machines linux-modules-2.6.16-2-xen-686 - Linux kernel modules 2.6.16 image on PPro/Celeron/PII/PIII/P4 machines linux-modules-2.6.16-2-xen-k7 - Linux kernel modules 2.6.16 image on AMD K7 machines linux-modules-2.6.16-2-xen-vserver-686 - Linux kernel modules 2.6.16 image on PPro/Celeron/PII/PIII/P4 machines rtai - real time application interface rtai-doc - real time application interface (documentation) rtai-source - real time application interface (module source) xen-ioemu-3.0 - XEN administrative tools avifile-divx-plugin - Divx4Linux video de/encoding plugin for libavifile linux-patch-xen - patch to linux for the XEN sub-arch |
#apt-get install linux-patch-xen
Reading Package Lists... Done Building Dependency Tree... Done linux-patch-xen is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 179 not upgraded. |
#apt-cache show linux-patch-xen
Package: linux-patch-xen Status: install ok installed Priority: extra Section: misc Installed-Size: 797 Maintainer: Debian Xen Team <pkg-xen-devel@lists.alioth.debian.org> Architecture: i386 Source: xen Version: 3.0.1-0tha6 Depends: bash (>= 2.0), patch, grep-dctrl Conflicts: xen-docs (<= 1.2) Description: patch to linux for the XEN sub-arch This kernel patch modifies linux, so that it can run inside XEN, a Virtual Machine Monitor. |
#dpkg -L linux-patch-xen
/. /usr /usr/share /usr/share/doc /usr/share/doc/linux-patch-xen /usr/share/doc/linux-patch-xen/README-kernelpatch.Debian /usr/share/doc/linux-patch-xen/copyright /usr/share/doc/linux-patch-xen/changelog.Debian.gz /usr/src /usr/src/kernel-patches ... /usr/src/kernel-patches/i386/unpatch /usr/src/kernel-patches/i386/unpatch/xen /usr/src/kernel-patches/diffs /usr/src/kernel-patches/diffs/xen /usr/src/kernel-patches/diffs/xen/linux-2.6.12-xen.patch.gz /usr/src/kernel-patches/amd64 /usr/src/kernel-patches/amd64/apply /usr/src/kernel-patches/amd64/apply/xen /usr/src/kernel-patches/amd64/unpatch /usr/src/kernel-patches/amd64/unpatch/xen |
#less /usr/share/doc/linux-patch-xen/README-kernelpatch.Debian
|
#ls
arch CREDITS drivers init kernel Makefile net scripts System.map vmlinux block crypto fs ipc lib mm README security usr COPYING Documentation include Kbuild MAINTAINERS Module.symvers REPORTING-BUGS sound version.Debian |
#apt-cache show linux xen
|
#apt-cache search linux xen
lg-issue31 - Issue 31 of the Linux Gazette. lg-issue39 - Issue 39 of the Linux Gazette. libroxen-hubbethrottle - Bandwidth throttle module for the Roxen Challenger web server linux-headers-2.6.16-2-xen - Common header files for Linux kernel 2.6.16 linux-headers-2.6.16-2-xen-686 - Header files for Linux kernel 2.6.16 on PPro/Celeron/PII/PIII/P4 machines linux-headers-2.6.16-2-xen-k7 - Header files for Linux kernel 2.6.16 on AMD K7 machines linux-headers-2.6.16-2-xen-vserver - Common header files for Linux kernel 2.6.16 linux-headers-2.6.16-2-xen-vserver-686 - Header files for Linux kernel 2.6.16 on PPro/Celeron/PII/PIII/P4 machines linux-image-2.6.16-2-xen-686 - Linux kernel 2.6.16 image on PPro/Celeron/PII/PIII/P4 machines linux-image-2.6.16-2-xen-k7 - Linux kernel 2.6.16 image on AMD K7 machines linux-image-2.6.16-2-xen-vserver-686 - Linux kernel 2.6.16 image on PPro/Celeron/PII/PIII/P4 machines linux-modules-2.6.16-2-xen-686 - Linux kernel modules 2.6.16 image on PPro/Celeron/PII/PIII/P4 machines linux-modules-2.6.16-2-xen-k7 - Linux kernel modules 2.6.16 image on AMD K7 machines linux-modules-2.6.16-2-xen-vserver-686 - Linux kernel modules 2.6.16 image on PPro/Celeron/PII/PIII/P4 machines rtai - real time application interface rtai-doc - real time application interface (documentation) rtai-source - real time application interface (module source) xen-ioemu-3.0 - XEN administrative tools avifile-divx-plugin - Divx4Linux video de/encoding plugin for libavifile linux-patch-xen - patch to linux for the XEN sub-arch |
#cd ../
|
#ls
kernel-patches linux-source-2.6.17 linux-source-2.6.17.tar.bz2 |
#cd kernel-patches/
|
#ls
amd64 diffs i386 |
#cd i386
|
#ls
apply unpatch |
#cd apply/
|
#ls
xen |
#less xen
|
#cd ../../
|
#ls
amd64 diffs i386 |
#cd diffs/
|
#ls
xen |
#cd xen/
|
#ls
linux-2.6.12-xen.patch.gz |
#ln -s linux-2.6.12-xen.patch.gz linux-2.6.17-xen.patch.gz
|
#cd ../../
amd64 diffs i386 |
#cd ../../i386/
|
#ls
apply unpatch |
#cd apply/
|
#ls
xen |
#vi xen
|
#cd ../../
|
#ls
amd64 diffs i386 |
Время первой команды журнала | 17:08:37 2006- 8- 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:33:49 2006- 8- 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 99 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 14.14 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.72 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.61 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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