/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 |
|
#-- INSERT -- 110,1 57%
|
#vi /etc/mail/access
--- /tmp/l3-saved-3756.5355.4905 2009-06-05 14:35:11.000000000 +0300 +++ /etc/mail/access 2009-06-05 14:35:29.000000000 +0300 @@ -97,7 +97,7 @@ #Connect:172.29 RELAY #Connect:172.30 RELAY #Connect:172.31 RELAY -#Connect:192.168 RELAY +Connect:192.168 RELAY #GreetPause:192.168 0 #ClientRate:192.168 0 #ClientConn:192.168 0 |
#~
mutt: invalid option -- '-' Mutt 1.5.19 (2009-01-05) usage: mutt [<options>] [-z] [-f <file> | -yZ] mutt [<options>] [-x] [-Hi <file>] [-s <subj>] [-bc <addr>] [-a <file> [...]] [--] <addr> [...] mutt [<options>] [-x] [-s <subj>] [-bc <addr>] [-a <file> [...]] [--] <addr> [...] < message mutt [<options>] -p mutt [<options>] -A <alias> [...] mutt [<options>] -Q <query> [...] mutt [<options>] -D mutt -v[v] ... -R open mailbox in read-only mode -s <subj> specify a subject (must be in quotes if it has spaces) -v show version and compile-time definitions -x simulate the mailx send mode -y select a mailbox specified in your `mailboxes' list -z exit immediately if there are no messages in the mailbox -Z open the first folder with new message, exit immediately if none -h this help message -- treat remaining arguments as addr even if starting with a dash when using -a with multiple filenames using -- is mandatory |
#cat /dev/urandom | head 1
|
#cat /dev/urandom | head -1
¡úb`w0#´æ¼qÓ";:X]1áÆB¬.«3öµ¨\ÝÝ;É[FV°î`ɲR Ú®{tKÓ^§GÃw*@²M`*ȾBrï |
#tail -f -n 40 /var/log/
apt/ daemon.log.1.gz dpkg.log lastlog mail.log syslog.1.gz wtmp auth.log debug dpkg.log.1 lp-acct mail.log.1.gz syslog.2.gz wtmp.1 auth.log.1.gz debug.1.gz exim4/ lp-errs mail.warn syslog.3.gz Xorg.0.log boot dmesg faillog lpr.log mail.warn.1.gz syslog.4.gz Xorg.0.log.old bootstrap.log dmesg.0 fontconfig.log lpr.log.1.gz messages syslog.5.gz btmp dmesg.1.gz fsck/ mail.err messages.1.gz syslog.6.gz btmp.1 dmesg.2.gz gdm/ mail.err.1.gz news/ syslog.7.gz ConsoleKit/ dmesg.3.gz kern.log mail.info pycentral.log user.log daemon.log dmesg.4.gz kern.log.1.gz mail.info.1.gz syslog user.log.1.gz |
#tail -f -n 40 /var/log/mail.log
Jun 5 14:51:05 linux3 sm-mta[6198]: n55Bp4XJ006196: to=<user@class6.unix.nt>, ctladdr=<user@linux3.class3.unix.nt> (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120523, relay=linux6.class6.unix.nt. [192.168.15.6], dsn=5.7.1, stat=User unknown Jun 5 14:51:05 linux3 sm-mta[6198]: n55Bp4XJ006196: n55Bp5XJ006198: DSN: User unknown Jun 5 14:51:05 linux3 sm-mta[6198]: n55Bp5XJ006198: to=<user@linux3.class3.unix.nt>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30000, dsn=2.0.0, stat=Sent Jun 5 14:51:06 linux3 sendmail[6248]: n55Bp5Kf006248: from=user, size=367, class=0, nrcpts=1, msgid=<20090605115105.GA6242@linux4>, relay=user@localhost Jun 5 14:51:06 linux3 sm-mta[6249]: n55Bp6Au006249: from=<user@linux3.class3.unix.nt>, size=524, class=0, nrcpts=1, msgid=<20090605115105.GA6242@linux4>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1] (may be forged) Jun 5 14:51:06 linux3 sendmail[6248]: n55Bp5Kf006248: to=user@class10.unix.nt, ctladdr=user (1000/1000), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30367, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (n55Bp6Au006249 Message accepted for delivery) Jun 5 14:51:06 linux3 sm-mta[6211]: n55Bp5wC006209: to=<user@class7.unix.nt>, ctladdr=<user@linux3.class3.unix.nt> (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120537, relay=linux7.class7.unix.nt. [192.168.15.7], dsn=2.0.0, stat=Sent (n55Bp2Ov015707 Message accepted for delivery) Jun 5 14:51:06 linux3 sendmail[6261]: n55Bp6YS006261: from=user, size=469, class=0, nrcpts=1, msgid=<20090605115106.GA6255@linux4>, relay=user@localhost Jun 5 14:51:06 linux3 sm-mta[6262]: n55Bp61S006262: from=<user@linux3.class3.unix.nt>, size=626, class=0, nrcpts=1, msgid=<20090605115106.GA6255@linux4>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1] (may be forged) Jun 5 14:51:06 linux3 sendmail[6261]: n55Bp6YS006261: to=user@class11.unix.nt, ctladdr=user (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30469, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (n55Bp61S006262 Message accepted for delivery) ... Jun 5 14:52:26 linux3 sm-mta[6346]: n55BqPra006345: to=<user@class3.unix.nt>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31152, dsn=2.0.0, stat=Sent Jun 5 14:52:37 linux3 sm-mta[6350]: n55Bqant006350: from=<user@class5.unix.nt>, size=651, class=0, nrcpts=1, msgid=<20090605115239.GA18686@linux4>, proto=ESMTP, daemon=MTA-v4, relay=linux4.class4.unix.nt [192.168.15.4] Jun 5 14:52:37 linux3 sm-mta[6351]: n55Bqant006350: to=<user@class3.unix.nt>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30871, dsn=2.0.0, stat=Sent Jun 5 14:53:56 linux3 sm-mta[6443]: n55BrtPf006443: from=<user@class5.unix.nt>, size=656, class=0, nrcpts=1, msgid=<20090605115358.GA18985@linux4>, proto=ESMTP, daemon=MTA-v4, relay=linux4.class4.unix.nt [192.168.15.4] Jun 5 14:53:56 linux3 sm-mta[6444]: n55BrtPf006443: to=<user@class3.unix.nt>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30876, dsn=2.0.0, stat=Sent Jun 5 14:53:59 linux3 sm-mta[6446]: n55BrwTH006446: from=<root@linux16>, size=553, class=0, nrcpts=1, msgid=<200906051153.n55BrxnK013308@linux16.class16.unix.nt>, proto=ESMTP, daemon=MTA-v4, relay=linux16.class16.unix.nt [192.168.15.16] Jun 5 14:53:59 linux3 sm-mta[6447]: n55BrwTH006446: to=<user@class3.unix.nt>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30782, dsn=2.0.0, stat=Sent Jun 5 14:54:35 linux3 sm-mta[6452]: n55BsYro006452: from=<root@linux8.unix.nt>, size=720, class=0, nrcpts=1, msgid=<20090605115430.GA14638@linux8.unix.nt>, proto=ESMTP, daemon=MTA-v4, relay=linux8.class8.unix.nt [192.168.15.8] Jun 5 14:54:35 linux3 sm-mta[6453]: n55BsYro006452: to=<user@class3.unix.nt>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30939, dsn=2.0.0, stat=Sent ^C |
#dd --help
Usage: dd [OPERAND]... or: dd OPTION Copy a file, converting and formatting according to the operands. bs=BYTES read and write BYTES bytes at a time (also see ibs=,obs=) cbs=BYTES convert BYTES bytes at a time conv=CONVS convert the file as per the comma separated symbol list count=BLOCKS copy only BLOCKS input blocks ibs=BYTES read BYTES bytes at a time (default: 512) if=FILE read from FILE instead of stdin iflag=FLAGS read as per the comma separated symbol list ... 18335302+0 records in 18335302+0 records out 9387674624 bytes (9.4 GB) copied, 34.6279 seconds, 271 MB/s Options are: --help display this help and exit --version output version information and exit Report dd bugs to bug-coreutils@gnu.org GNU coreutils home page: <http://www.gnu.org/software/coreutils/> General help using GNU software: <http://www.gnu.org/gethelp/> Report dd translation bugs to <http://translationproject.org/team/> |
#dd if=/dev/urandom bs=1024 count=1
.íKNcU~°Aà}¦§ûlEÇV V#Ks" jÊ_5ç}Ú¿òL¸}-¡íóýÆ\¬¼S+uë¤*ãQÀÕÅJËÆåÖ¦MÀ(^Y{åÑm).ÍM?\!¦À¤j Ê«ÙÖênºC*¦[HQ#¶cÑ w©£Rå9UÐþußÜM¢àCÐVµ{¤ÿbêB gk²wLÌøâ?z q£YRÙ6ÐËùR.p«÷ȵéÂ<í¡Tz d÷AËù|b7 ª`Þs·&4?mîfÃÏ·ÀtI÷ü?%AÓ;±@Uö!HU6±xqÞáy#Ã3@¨'.ªóÜkû =U¤´ùuêJÇìr5L±[Þ#)xXêi ãî[µéÞ~yXYá"sz¢ËíÿæÍkòóvÁñòÀvÔ2uBë¿ìäÎÁ£ú×ò%õò?6p. )gâÙC} å"Ô0S±8)w1Y;9*»|΢üæuÙÏ8#EÇ/ñNväw3¶  ÜÕlTáaP96 ?>ðÿ`SyTZ¹°(Q ¥/Ûcó-± øÒjJ/;3aë- uSã<[ãpP²å §|³D¼zYH¬åú'_VR ¾{©¡ñå( ò¸z9^>+2Õhf:BæöYäðÇAe»íÏz½ÜU#÷ðL"/ÌÇ-ÛZçË˸{Bá(y}tCFâ»Ý$\à©Â²©FÛ:@FKZÜÄi,5¤VÔóîút³èºµÝT)¡à²ï_Ltðo¸¦ö6 ×zzàG¬@GoîجåØÄ2®ã×#béþruÔõXéÁýaÐêfX$ïÕªNöÿ?N`.($ì!ê~ô>¬ Àü$x¾Îk xígÓåµ¹ `mÈÒ0ö¨²§As¾hOãªíÝRZO/¹ÈpÀM>g¨¡¿lÙ(8lÚ!ÿ¬:çf§ÄäbÖóumg|FtæAoý8µPùÜü<.0WÜói¡kMç¶D(HM¿wê2Ìuæº4ôÎ1ö¹z$Û¼Cx© ·þ¾jÒÑjúj×õ{8ØÈ®jUÇ¥};1+0 records in 1+0 records out 1024 bytes (1.0 kB) copied, 0.000556077 s, 1.8 MB/s |
#stty sane
|
#tc -help
Usage: tc [ OPTIONS ] OBJECT { COMMAND | help } tc [-force] -batch file where OBJECT := { qdisc | class | filter | action | monitor } OPTIONS := { -s[tatistics] | -d[etails] | -r[aw] | -p[retty] | -b[atch] [file] } |
#cat /proc/cpuinfo
processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Intel(R) Celeron(R) CPU 2.50GHz stepping : 9 cpu MHz : 2493.422 cache size : 128 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe up pebs bts cid xtpr bogomips : 4986.84 clflush size : 64 power management: |
#cat /proc/cpuinfo | grep vmx
|
#uname -a
Linux linux3 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686 GNU/Linux |
#apt-cache search xen | grep kernel
linux-patch-xenomai - Linux kernel patches for Xenomai |
#apt-get update
Get:1 http://127.0.0.1 sid Release.gpg [1032B] Ign http://127.0.0.1 sid/main Translation-en_US Get:2 http://127.0.0.1 sid Release [94.4kB] Get:3 http://127.0.0.1 sid/main Packages/DiffIndex [2038B] Get:4 http://127.0.0.1 sid/main 2009-06-04-1504.54.pdiff [2841B] Get:5 http://127.0.0.1 sid/main 2009-06-04-1504.54.pdiff [2841B] Get:6 http://127.0.0.1 sid/main 2009-06-04-1504.54.pdiff [2841B] Get:7 http://127.0.0.1 sid/main 2009-06-05-0939.32.pdiff [14.7kB] Get:8 http://127.0.0.1 sid/main 2009-06-05-0939.32.pdiff [14.7kB] Get:9 http://127.0.0.1 sid/main 2009-06-05-0939.32.pdiff [14.7kB] Fetched 115kB in 29s (3966B/s) Reading package lists... Done |
#apt-cache search xen | grep kernel
linux-patch-xenomai - Linux kernel patches for Xenomai |
#apt-cache search xen
aide-xen - Advanced Intrusion Detection Environment - static binary for XEN autopkgtest - automatic as-installed testing for Debian packages autopkgtest-xenlvm - Xen/LVM2 based testbed snapshot system caudium - An extensible WWW server written in Pike claws-mail-themes - Pixmap icon themes for the Claws Mail mailer convirt - A graphical Xen management tool dtc-common - web control panel for admin and accounting hosting services (common files) dtc-core - web control panel for admin and accounting hosting services (fewer depends) dtc-cyrus - web control panel for admin and accounting hosting services (cyrus depends) dtc-postfix-courier - web control panel for admin and accounting hosting services (more depends) ... xen-shell - Console based Xen administration utility xen-tools - Tools to manage Debian XEN virtual servers xen-utils-3.2-1 - XEN administrative tools xen-utils-common - XEN administrative tools - common files xen-utils-unstable - XEN administrative tools xenman - transitional package for Debian lenny xenomai-doc - Xenomai documentation xenomai-runtime - Xenomai runtime utilities xenstore-utils - Xenstore utilities for Xen xenwatch - Virtualization utilities, mostly for Xen |
#vi /etc/apt/sources.list
|
#cat /etc/approx/approx.conf
# Here are some examples of remote repository mappings. # See http://www.debian.org/mirror/list for mirror sites. debian http://10.0.35.100:9999/debian #security http://security.debian.org/debian-security #volatile http://volatile.debian.org/debian-volatile # The following are the default parameter values, so there is # no need to uncomment them unless you want a different value. # See approx.conf(5) for details. #$max_wait 10 #$max_rate unlimited #$user approx #$group approx #$syslog daemon #$pdiffs true #$verbose false #$debug false |
#vi /etc/apt/sources.list
--- /tmp/l3-saved-7157.9213.30986 2009-06-05 17:04:00.000000000 +0300 +++ /etc/apt/sources.list 2009-06-05 17:04:15.000000000 +0300 @@ -1 +1 @@ -deb http://127.0.0.1:9999/debian sid main contrib non-free +deb http://127.0.0.1:9999/debian etch main contrib non-free |
#vi /etc/apt/sources.list
--- /tmp/l3-saved-7157.3713.29528 2009-06-05 17:04:40.000000000 +0300 +++ /etc/apt/sources.list 2009-06-05 17:04:58.000000000 +0300 @@ -1 +1,2 @@ +deb http://127.0.0.1:9999/debian sid main contrib non-free deb http://127.0.0.1:9999/debian etch main contrib non-free |
#apt-cache search xen | grep image
linux-image-2.6-686-bigmem - Linux 2.6 image on PPro/Celeron/PII/PIII/P4 linux-image-2.6.29-2-686-bigmem - Linux 2.6.29 image on PPro/Celeron/PII/PIII/P4 linux-image-686-bigmem - Linux image on PPro/Celeron/PII/PIII/P4 linux-image-2.6-xen-686 - Linux kernel 2.6 image on i686 linux-image-2.6-xen-vserver-686 - Linux kernel 2.6 image on i686 linux-image-2.6.18-6-xen-686 - Linux 2.6.18 image on i686 linux-image-2.6.18-6-xen-vserver-686 - Linux 2.6.18 image on i686 linux-image-xen-686 - Linux kernel image on i686 linux-image-xen-vserver-686 - Linux kernel image on i686 xen-linux-system-2.6.18-6-xen-686 - XEN system with Linux 2.6.18 image on i686 xen-linux-system-2.6.18-6-xen-vserver-686 - XEN system with Linux 2.6.18 image on i686 |
#apt-cache search xen-utils
xen-utils-3.2-1 - XEN administrative tools xen-utils-common - XEN administrative tools - common files xen-utils-unstable - XEN administrative tools xen-utils-3.0.3-1 - XEN administrative tools |
#apt-get install xen-utils-3.2-1
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: libsdl1.2debian libsdl1.2debian-alsa libsvga1 xen-hypervisor-3.2-1-i386 Suggested packages: xen-docs-3.2 ... Setting up xen-hypervisor-3.2-1-i386 (3.2.1-2) ... Searching for GRUB installation directory ... found: /boot/grub Searching for default file ... found: /boot/grub/default 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-pae, kernel: /boot/vmlinuz-2.6.18-6-xen-686 Found kernel: /boot/vmlinuz-2.6.29-2-686 Found kernel: /boot/vmlinuz-2.6.18-6-xen-686 Updating /boot/grub/menu.lst ... done Setting up xen-utils-3.2-1 (3.2.1-2) ... |
#dpkg -l | grep xen-utils
ii xen-utils-3.0.3-1 3.0.3-0-4 XEN administrative tools ii xen-utils-3.2-1 3.2.1-2 XEN administrative tools ii xen-utils-common 3.2.0-2 XEN administrative tools - common files |
#dpkg -R xen-utils-3.0.3-1
dpkg: need an action option Type dpkg --help for help about installing and deinstalling packages [*]; Use `dselect' or `aptitude' for user-friendly package management; Type dpkg -Dhelp for a list of dpkg debug flag values; Type dpkg --force-help for a list of forcing options; Type dpkg-deb --help for help about manipulating *.deb files; Type dpkg --license for copyright license and lack of warranty (GNU GPL) [*]. Options marked [*] produce a lot of output - pipe it through `less' or `more' ! |
#dpkg --help
Usage: dpkg [<option> ...] <command> Commands: -i|--install <.deb file name> ... | -R|--recursive <directory> ... --unpack <.deb file name> ... | -R|--recursive <directory> ... -A|--record-avail <.deb file name> ... | -R|--recursive <directory> ... --configure <package> ... | -a|--pending --triggers-only <package> ... | -a|--pending -r|--remove <package> ... | -a|--pending -P|--purge <package> ... | -a|--pending --get-selections [<pattern> ...] Get list of selections to stdout. ... Ignore dependencies involving <package>. --force-... Override problems (see --force-help). --no-force-...|--refuse-... Stop when problems encountered. --abort-after <n> Abort after encountering <n> errors. Comparison operators for --compare-versions are: lt le eq ne ge gt (treat empty version as earlier than any version); lt-nl le-nl ge-nl gt-nl (treat empty version as later than any version); < << <= = >= >> > (only for compatibility with control file syntax). Use `dselect' or `aptitude' for user-friendly package management. |
#dpkg -r xen-utils-3.0.3-1
dpkg: dependency problems prevent removal of xen-utils-3.0.3-1: xen-hypervisor-3.0.3-1-i386-pae depends on xen-utils-3.0.3-1. dpkg: error processing xen-utils-3.0.3-1 (--remove): dependency problems - not removing Errors were encountered while processing: xen-utils-3.0.3-1 |
#vi /boot/grub/menu.lst
--- /tmp/l3-saved-7157.31276.25713 2009-06-05 17:18:07.000000000 +0300 +++ /boot/grub/menu.lst 2009-06-05 17:24:56.000000000 +0300 @@ -1,108 +1,19 @@ default 0 timeout 3 -#password --md5 $1$MyF23/$kWV36TTTmZ9O.Q9vHAaxn. + title GNU/Linux kernel /vmlinuz root=LABEL=ROOT initrd /initrd.img -### BEGIN AUTOMAGIC KERNELS LIST -## lines between the AUTOMAGIC KERNELS LIST markers will be modified -## by the debian update-grub script except for the default options below - -## DO NOT UNCOMMENT THEM, Just edit them to your needs - -## ## Start Default Options ## -## default kernel options -## default kernel options for automagic boot options -## If you want special options for specific kernels use kopt_x_y_z -## where x.y.z is kernel version. Minor versions can be omitted. -## e.g. kopt=root=/dev/hda1 ro -## kopt_2_6_8=root=/dev/hdc1 ro -## kopt_2_6_8_2_686=root=/dev/hdc2 ro -# kopt=root=UUID=51e6becf-aad8-4ad7-809a-a80b27439a2e ro - -## default grub root device -## e.g. groot=(hd0,0) -# groot=(hd0,0) - -## should update-grub create alternative automagic boot options -## e.g. alternative=true -## alternative=false -# alternative=true - -## should update-grub lock alternative automagic boot options -## e.g. lockalternative=true -## lockalternative=false -# lockalternative=false - -## additional options to use with the default boot option, but not with the -## alternatives -## e.g. defoptions=vga=791 resume=/dev/hda5 -# defoptions= - -## should update-grub lock old automagic boot options -## e.g. lockold=false -## lockold=true -# lockold=false - -## Xen hypervisor options to use with the default Xen boot option -# xenhopt= - -## Xen Linux kernel options to use with the default Xen boot option -# xenkopt=console=tty0 - -## altoption boot targets option -## multiple altoptions lines are allowed -## e.g. altoptions=(extra menu suffix) extra boot options -## altoptions=(single-user) single -# altoptions=(single-user mode) single - -## controls how many kernels should be put into the menu.lst -## only counts the first occurence of a kernel, not the -## alternative kernel options -## e.g. howmany=all -## howmany=7 -# howmany=all - -## should update-grub create memtest86 boot option -## e.g. memtest86=true -## memtest86=false -# memtest86=true - -## should update-grub adjust the value of the default booted system -## can be true or false -# updatedefaultentry=false - -## should update-grub add savedefault to the default options -## can be true or false -# savedefault=false - -## ## End Default Options ## - -title Xen 3.0.3-1-i386-pae / Debian GNU/Linux, kernel 2.6.18-6-xen-686 +title Xen 3.2.1-i386 / Debian GNU/Linux, kernel 2.6.18-6-xen-686 root (hd0,0) -kernel /boot/xen-3.0.3-1-i386-pae.gz +kernel /boot/xen-3.2-1-i386.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 -title Debian GNU/Linux, kernel 2.6.29-2-686 -root (hd0,0) -kernel /boot/vmlinuz-2.6.29-2-686 root=UUID=51e6becf-aad8-4ad7-809a-a80b27439a2e ro -initrd /boot/initrd.img-2.6.29-2-686 - -title Debian GNU/Linux, kernel 2.6.29-2-686 (single-user mode) -root (hd0,0) -kernel /boot/vmlinuz-2.6.29-2-686 root=UUID=51e6becf-aad8-4ad7-809a-a80b27439a2e ro single -initrd /boot/initrd.img-2.6.29-2-686 - -title Debian GNU/Linux, kernel 2.6.18-6-xen-686 -root (hd0,0) -kernel /boot/vmlinuz-2.6.18-6-xen-686 root=UUID=51e6becf-aad8-4ad7-809a-a80b27439a2e ro -initrd /boot/initrd.img-2.6.18-6-xen-686 - -title Debian GNU/Linux, kernel 2.6.18-6-xen-686 (single-user mode) -root (hd0,0) -kernel /boot/vmlinuz-2.6.18-6-xen-686 root=UUID=51e6becf-aad8-4ad7-809a-a80b27439a2e ro single -initrd /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 -### END DEBIAN AUTOMAGIC KERNELS LIST |
#ls /boot/
config-2.6.18-6-xen-686 System.map-2.6.18-6-xen-686 config-2.6.29-2-686 System.map-2.6.29-2-686 grub vmlinuz-2.6.18-6-xen-686 initrd.img-2.6.18-6-xen-686 vmlinuz-2.6.29-2-686 initrd.img-2.6.29-2-686 xen-3.0.3-1-i386-pae.gz initrd.img-2.6.29-2-686.bak xen-3.2-1-i386.gz |
#ls /boot/
config-2.6.18-6-xen-686 System.map-2.6.18-6-xen-686 config-2.6.29-2-686 System.map-2.6.29-2-686 grub vmlinuz-2.6.18-6-xen-686 initrd.img-2.6.18-6-xen-686 vmlinuz-2.6.29-2-686 initrd.img-2.6.29-2-686 xen-3.0.3-1-i386-pae.gz initrd.img-2.6.29-2-686.bak xen-3.2-1-i386.gz |
#vi /boot/grub/menu.lst
--- /tmp/l3-saved-3114.8694.23534 2009-06-05 17:33:15.000000000 +0300 +++ /boot/grub/menu.lst 2009-06-05 17:34:37.000000000 +0300 @@ -8,7 +8,7 @@ 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 -module /boot/vmlinuz-2.6.18-6-xen-686 root=UUID=51e6becf-aad8-4ad7-809a-a80b27439a2e ro console=tty0 dom0_mem=256000 +module /boot/vmlinuz-2.6.18-6-xen-686 root=LABEL=ROOT ro console=tty0 dom0_mem=256000 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 |
#reboot
|
#rcconf
bash: rcconf: command not found |
#apt-get install rcconf
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 NEW packages will be installed: rcconf 0 upgraded, 1 newly installed, 0 to remove and 69 not upgraded. Need to get 23.1kB of archives. After this operation, 135kB of additional disk space will be used. Get:1 http://127.0.0.1 sid/main rcconf 2.2 [23.1kB] Fetched 23.1kB in 0s (102kB/s) Selecting previously deselected package rcconf. (Reading database ... 59037 files and directories currently installed.) Unpacking rcconf (from .../archives/rcconf_2.2_all.deb) ... Processing triggers for man-db ... Setting up rcconf (2.2) ... |
#vi /boot/grub/menu.lst
--- /tmp/l3-saved-3095.3262.3567 2009-06-05 17:45:26.000000000 +0300 +++ /boot/grub/menu.lst 2009-06-05 17:45:47.000000000 +0300 @@ -8,7 +8,7 @@ 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 -module /boot/vmlinuz-2.6.18-6-xen-686 root=LABEL=ROOT ro console=tty0 dom0_mem=256000 +module /boot/vmlinuz-2.6.18-6-xen-686 root=LABEL=ROOT ro console=tty0 dom0_mem=1G 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 |
#vi /boot/grub/menu.lst
--- /tmp/l3-saved-2852.29979.1538 2009-06-05 17:49:08.000000000 +0300 +++ /boot/grub/menu.lst 2009-06-05 17:49:50.000000000 +0300 @@ -7,8 +7,8 @@ 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 -module /boot/vmlinuz-2.6.18-6-xen-686 root=LABEL=ROOT ro console=tty0 dom0_mem=1G +kernel /boot/xen-3.2-1-i386.gz dom0_mem=512M +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 |
#vi /boot/grub/menu.lst
--- /tmp/l3-saved-3215.14437.31105 2009-06-05 17:53:58.000000000 +0300 +++ /boot/grub/menu.lst 2009-06-05 17:54:13.000000000 +0300 @@ -7,7 +7,7 @@ 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=512M +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 |
#uname -a
Linux linux3 2.6.18-6-xen-686 #1 SMP Sat Dec 27 13:17:00 UTC 2008 i686 GNU/Linux |
#uname -a
Linux linux3 2.6.18-6-xen-686 #1 SMP Sat Dec 27 13:17:00 UTC 2008 i686 GNU/Linux |
#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:28 errors:0 dropped:0 overruns:0 frame:0 TX packets:51 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:3576 (3.4 KiB) TX bytes:9948 (9.7 KiB) Base address:0xbc00 Memory:ff8e0000-ff900000 eth0.102 Link encap:Ethernet HWaddr 00:07:e9:3c:2c:ba ... RX packets:74 errors:0 dropped:0 overruns:0 frame:0 TX packets:74 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:6741 (6.5 KiB) TX bytes:6741 (6.5 KiB) sit0 Link encap:IPv6-in-IPv4 NOARP MTU:1480 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame: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) |
#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:28 errors:0 dropped:0 overruns:0 frame:0 TX packets:51 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:3576 (3.4 KiB) TX bytes:9948 (9.7 KiB) Base address:0xbc00 Memory:ff8e0000-ff900000 eth0.102 Link encap:Ethernet HWaddr 00:07:e9:3c:2c:ba ... RX packets:74 errors:0 dropped:0 overruns:0 frame:0 TX packets:74 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:6741 (6.5 KiB) TX bytes:6741 (6.5 KiB) sit0 Link encap:IPv6-in-IPv4 NOARP MTU:1480 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame: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) |
#ping 192.168.202.1
PING 192.168.202.1 (192.168.202.1) 56(84) bytes of data. 64 bytes from 192.168.202.1: icmp_seq=1 ttl=64 time=0.767 ms 64 bytes from 192.168.202.1: icmp_seq=2 ttl=64 time=0.696 ms 64 bytes from 192.168.202.1: icmp_seq=3 ttl=64 time=0.747 ms 64 bytes from 192.168.202.1: icmp_seq=4 ttl=64 time=0.799 ms --- 192.168.202.1 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 2997ms rtt min/avg/max/mdev = 0.696/0.752/0.799/0.042 ms |
#ping 192.168.202.1
PING 192.168.202.1 (192.168.202.1) 56(84) bytes of data. 64 bytes from 192.168.202.1: icmp_seq=1 ttl=64 time=0.767 ms 64 bytes from 192.168.202.1: icmp_seq=2 ttl=64 time=0.696 ms 64 bytes from 192.168.202.1: icmp_seq=3 ttl=64 time=0.747 ms 64 bytes from 192.168.202.1: icmp_seq=4 ttl=64 time=0.799 ms --- 192.168.202.1 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 2997ms rtt min/avg/max/mdev = 0.696/0.752/0.799/0.042 ms |
#uname -a
Linux linux3 2.6.18-6-xen-686 #1 SMP Sat Dec 27 13:17:00 UTC 2008 i686 GNU/Linux |
#uname -a
Linux linux3 2.6.18-6-xen-686 #1 SMP Sat Dec 27 13:17:00 UTC 2008 i686 GNU/Linux |
#fdisk -l /dev/sda
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 |
#fdisk -l /dev/sda
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 |
#fdisk /dev/sda
The number of cylinders for this disk is set to 38913. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Command (m for help): m Command action a toggle a bootable flag b edit bsd disklabel ... Device Boot Start End Blocks Id System /dev/sda1 1 3648 29302528+ 83 Linux /dev/sda2 3649 6081 19543072+ 83 Linux Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. WARNING: Re-reading the partition table failed with error 16: Device or resource busy. The kernel still uses the old table. The new table will be used at the next reboot. Syncing disks. |
#fdisk /dev/sda
The number of cylinders for this disk is set to 38913. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Command (m for help): m Command action a toggle a bootable flag b edit bsd disklabel ... Device Boot Start End Blocks Id System /dev/sda1 1 3648 29302528+ 83 Linux /dev/sda2 3649 6081 19543072+ 83 Linux Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. WARNING: Re-reading the partition table failed with error 16: Device or resource busy. The kernel still uses the old table. The new table will be used at the next reboot. Syncing disks. |
#mkfs.ext3 /dev/sda2
mke2fs 1.41.5 (23-Apr-2009) Could not stat /dev/sda2 --- No such file or directory The device apparently does not exist; did you specify it correctly? |
#mkfs.ext3 /dev/sda2
mke2fs 1.41.5 (23-Apr-2009) Could not stat /dev/sda2 --- No such file or directory The device apparently does not exist; did you specify it correctly? |
#mkfs.ext3 /dev/sda2
mke2fs 1.41.5 (23-Apr-2009) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 1221600 inodes, 4885768 blocks 244288 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=0 150 block groups 32768 blocks per group, 32768 fragments per group 8144 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000 Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 21 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. |
#mkfs.ext3 /dev/sda2
mke2fs 1.41.5 (23-Apr-2009) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 1221600 inodes, 4885768 blocks 244288 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=0 150 block groups 32768 blocks per group, 32768 fragments per group 8144 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000 Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 21 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. |
#e2label --help
e2label: No such file or directory while trying to open --help Couldn't find valid filesystem superblock. |
#e2label --help
e2label: No such file or directory while trying to open --help Couldn't find valid filesystem superblock. |
#apt-file search dboot
c-cpp-reference: /usr/share/doc/kde/HTML/en/kdevelop/reference/C/CONTRIB/SNIP/coldboot.asm grub-pc: /usr/lib/grub/i386-pc/cdboot.img linux-headers-2.6.29-2-486: /usr/src/linux-headers-2.6.29-2-486/include/config/mtd/redboot/directory/block.h linux-headers-2.6.29-2-486: /usr/src/linux-headers-2.6.29-2-486/include/config/mtd/redboot/parts.h linux-headers-2.6.29-2-686: /usr/src/linux-headers-2.6.29-2-686/include/config/mtd/redboot/directory/block.h linux-headers-2.6.29-2-686: /usr/src/linux-headers-2.6.29-2-686/include/config/mtd/redboot/parts.h linux-headers-2.6.29-2-686-bigmem: /usr/src/linux-headers-2.6.29-2-686-bigmem/include/config/mtd/redboot/directory/block.h linux-headers-2.6.29-2-686-bigmem: /usr/src/linux-headers-2.6.29-2-686-bigmem/include/config/mtd/redboot/parts.h linux-headers-2.6.29-2-amd64: /usr/src/linux-headers-2.6.29-2-amd64/include/config/mtd/redboot/directory/block.h linux-headers-2.6.29-2-amd64: /usr/src/linux-headers-2.6.29-2-amd64/include/config/mtd/redboot/parts.h linux-image-2.6.29-2-486: /lib/modules/2.6.29-2-486/kernel/drivers/mtd/redboot.ko linux-image-2.6.29-2-686: /lib/modules/2.6.29-2-686/kernel/drivers/mtd/redboot.ko linux-image-2.6.29-2-686-bigmem: /lib/modules/2.6.29-2-686-bigmem/kernel/drivers/mtd/redboot.ko linux-image-2.6.29-2-amd64: /lib/modules/2.6.29-2-amd64/kernel/drivers/mtd/redboot.ko linux-manual-2.6.29: /usr/share/man/man9/mpt_downloadboot.9.gz |
#apt-file search dboot
c-cpp-reference: /usr/share/doc/kde/HTML/en/kdevelop/reference/C/CONTRIB/SNIP/coldboot.asm grub-pc: /usr/lib/grub/i386-pc/cdboot.img linux-headers-2.6.29-2-486: /usr/src/linux-headers-2.6.29-2-486/include/config/mtd/redboot/directory/block.h linux-headers-2.6.29-2-486: /usr/src/linux-headers-2.6.29-2-486/include/config/mtd/redboot/parts.h linux-headers-2.6.29-2-686: /usr/src/linux-headers-2.6.29-2-686/include/config/mtd/redboot/directory/block.h linux-headers-2.6.29-2-686: /usr/src/linux-headers-2.6.29-2-686/include/config/mtd/redboot/parts.h linux-headers-2.6.29-2-686-bigmem: /usr/src/linux-headers-2.6.29-2-686-bigmem/include/config/mtd/redboot/directory/block.h linux-headers-2.6.29-2-686-bigmem: /usr/src/linux-headers-2.6.29-2-686-bigmem/include/config/mtd/redboot/parts.h linux-headers-2.6.29-2-amd64: /usr/src/linux-headers-2.6.29-2-amd64/include/config/mtd/redboot/directory/block.h linux-headers-2.6.29-2-amd64: /usr/src/linux-headers-2.6.29-2-amd64/include/config/mtd/redboot/parts.h linux-image-2.6.29-2-486: /lib/modules/2.6.29-2-486/kernel/drivers/mtd/redboot.ko linux-image-2.6.29-2-686: /lib/modules/2.6.29-2-686/kernel/drivers/mtd/redboot.ko linux-image-2.6.29-2-686-bigmem: /lib/modules/2.6.29-2-686-bigmem/kernel/drivers/mtd/redboot.ko linux-image-2.6.29-2-amd64: /lib/modules/2.6.29-2-amd64/kernel/drivers/mtd/redboot.ko linux-manual-2.6.29: /usr/share/man/man9/mpt_downloadboot.9.gz |
#apt-file update
Downloading Index http://127.0.0.1:9999/debian/dists/sid/Contents-i386.diff/Index: curl: (22) The requested URL returned error: 404 Download of http://127.0.0.1:9999/debian/dists/sid/Contents-i386.diff/Index failed Command exited with code 22 Downloading complete file http://127.0.0.1:9999/debian/dists/sid/Contents-i386.gz Downloading complete file http://127.0.0.1:9999/debian/dists/etch/Contents-i386.gz |
#apt-file update
Downloading Index http://127.0.0.1:9999/debian/dists/sid/Contents-i386.diff/Index: curl: (22) The requested URL returned error: 404 Download of http://127.0.0.1:9999/debian/dists/sid/Contents-i386.diff/Index failed Command exited with code 22 Downloading complete file http://127.0.0.1:9999/debian/dists/sid/Contents-i386.gz Downloading complete file http://127.0.0.1:9999/debian/dists/etch/Contents-i386.gz |
#apt-file search dboot
ecos: /usr/src/ecos/packages/hal/powerpc/ec555/v2_0/misc/redboot_RAM.ecm ecos: /usr/src/ecos/packages/hal/powerpc/ec555/v2_0/misc/redboot_ROM.ecm ecos: /usr/src/ecos/packages/hal/powerpc/mbx/v2_0/misc/redboot_RAM.ecm ecos: /usr/src/ecos/packages/hal/powerpc/mbx/v2_0/misc/redboot_RAM_40.ecm ecos: /usr/src/ecos/packages/hal/powerpc/mbx/v2_0/misc/redboot_ROM.ecm ecos: /usr/src/ecos/packages/hal/powerpc/mbx/v2_0/misc/redboot_ROM_40.ecm ecos: /usr/src/ecos/packages/hal/powerpc/mbx/v2_0/src/redboot_linux_exec.c ecos: /usr/src/ecos/packages/hal/powerpc/ts1000/v2_0/misc/redboot_RAM.ecm ecos: /usr/src/ecos/packages/hal/powerpc/ts1000/v2_0/misc/redboot_ROM.ecm ecos: /usr/src/ecos/packages/hal/powerpc/ts1000/v2_0/misc/redboot_ROMRAM.ecm ... linux-image-2.6.24-etchnhalf.1-amd64: /lib/modules/2.6.24-etchnhalf.1-amd64/kernel/drivers/mtd/redboot.ko linux-image-2.6.29-2-486: /lib/modules/2.6.29-2-486/kernel/drivers/mtd/redboot.ko linux-image-2.6.29-2-686: /lib/modules/2.6.29-2-686/kernel/drivers/mtd/redboot.ko linux-image-2.6.29-2-686-bigmem: /lib/modules/2.6.29-2-686-bigmem/kernel/drivers/mtd/redboot.ko linux-image-2.6.29-2-amd64: /lib/modules/2.6.29-2-amd64/kernel/drivers/mtd/redboot.ko linux-manual-2.6.24: /usr/share/man/man9/mpt_downloadboot.9.gz linux-manual-2.6.29: /usr/share/man/man9/mpt_downloadboot.9.gz linux-modules-2.6.18-6-xen-686: /lib/modules/2.6.18-6-xen-686/kernel/drivers/mtd/redboot.ko linux-modules-2.6.18-6-xen-vserver-686: /lib/modules/2.6.18-6-xen-vserver-686/kernel/drivers/mtd/redboot.ko ocaml-doc: /usr/share/doc/ocaml-doc/examples/config/coldboot |
#apt-file search dboot
ecos: /usr/src/ecos/packages/hal/powerpc/ec555/v2_0/misc/redboot_RAM.ecm ecos: /usr/src/ecos/packages/hal/powerpc/ec555/v2_0/misc/redboot_ROM.ecm ecos: /usr/src/ecos/packages/hal/powerpc/mbx/v2_0/misc/redboot_RAM.ecm ecos: /usr/src/ecos/packages/hal/powerpc/mbx/v2_0/misc/redboot_RAM_40.ecm ecos: /usr/src/ecos/packages/hal/powerpc/mbx/v2_0/misc/redboot_ROM.ecm ecos: /usr/src/ecos/packages/hal/powerpc/mbx/v2_0/misc/redboot_ROM_40.ecm ecos: /usr/src/ecos/packages/hal/powerpc/mbx/v2_0/src/redboot_linux_exec.c ecos: /usr/src/ecos/packages/hal/powerpc/ts1000/v2_0/misc/redboot_RAM.ecm ecos: /usr/src/ecos/packages/hal/powerpc/ts1000/v2_0/misc/redboot_ROM.ecm ecos: /usr/src/ecos/packages/hal/powerpc/ts1000/v2_0/misc/redboot_ROMRAM.ecm ... linux-image-2.6.24-etchnhalf.1-amd64: /lib/modules/2.6.24-etchnhalf.1-amd64/kernel/drivers/mtd/redboot.ko linux-image-2.6.29-2-486: /lib/modules/2.6.29-2-486/kernel/drivers/mtd/redboot.ko linux-image-2.6.29-2-686: /lib/modules/2.6.29-2-686/kernel/drivers/mtd/redboot.ko linux-image-2.6.29-2-686-bigmem: /lib/modules/2.6.29-2-686-bigmem/kernel/drivers/mtd/redboot.ko linux-image-2.6.29-2-amd64: /lib/modules/2.6.29-2-amd64/kernel/drivers/mtd/redboot.ko linux-manual-2.6.24: /usr/share/man/man9/mpt_downloadboot.9.gz linux-manual-2.6.29: /usr/share/man/man9/mpt_downloadboot.9.gz linux-modules-2.6.18-6-xen-686: /lib/modules/2.6.18-6-xen-686/kernel/drivers/mtd/redboot.ko linux-modules-2.6.18-6-xen-vserver-686: /lib/modules/2.6.18-6-xen-vserver-686/kernel/drivers/mtd/redboot.ko ocaml-doc: /usr/share/doc/ocaml-doc/examples/config/coldboot |
#vi /etc/apt/sources.list
--- /tmp/l3-saved-3215.11916.26969 2009-06-05 18:19:33.000000000 +0300 +++ /etc/apt/sources.list 2009-06-05 18:19:47.000000000 +0300 @@ -1,2 +1,2 @@ deb http://127.0.0.1:9999/debian sid main contrib non-free -deb http://127.0.0.1:9999/debian etch main contrib non-free +#deb http://127.0.0.1:9999/debian etch main contrib non-free |
#apt-get update
Hit http://127.0.0.1 sid Release.gpg Ign http://127.0.0.1 sid/main Translation-en_US Ign http://127.0.0.1 sid/contrib Translation-en_US Ign http://127.0.0.1 sid/non-free Translation-en_US Hit http://127.0.0.1 sid Release Ign http://127.0.0.1 sid/main Packages/DiffIndex Ign http://127.0.0.1 sid/contrib Packages/DiffIndex Ign http://127.0.0.1 sid/non-free Packages/DiffIndex Ign http://127.0.0.1 sid/main Packages Ign http://127.0.0.1 sid/contrib Packages Ign http://127.0.0.1 sid/non-free Packages Hit http://127.0.0.1 sid/main Packages Hit http://127.0.0.1 sid/contrib Packages Hit http://127.0.0.1 sid/non-free Packages Reading package lists... Done |
#apt-get update
Hit http://127.0.0.1 sid Release.gpg Ign http://127.0.0.1 sid/main Translation-en_US Ign http://127.0.0.1 sid/contrib Translation-en_US Ign http://127.0.0.1 sid/non-free Translation-en_US Hit http://127.0.0.1 sid Release Ign http://127.0.0.1 sid/main Packages/DiffIndex Ign http://127.0.0.1 sid/contrib Packages/DiffIndex Ign http://127.0.0.1 sid/non-free Packages/DiffIndex Ign http://127.0.0.1 sid/main Packages Ign http://127.0.0.1 sid/contrib Packages Ign http://127.0.0.1 sid/non-free Packages Hit http://127.0.0.1 sid/main Packages Hit http://127.0.0.1 sid/contrib Packages Hit http://127.0.0.1 sid/non-free Packages Reading package lists... Done |
#debootstrap --help
Usage: debootstrap [OPTION]... <suite> <target> [<mirror> [<script>]] Bootstrap Debian base system. --help display this help and exit --version display version information and exit --verbose don't turn off the output of wget --download-only download packages, but don't perform installation --print-debs print the packages to be installed, and exit --arch=A set the target architecture (use if no dpkg) [ --arch=powerpc ] --include=A,B,C adds specified names to the list of base packages ... --keyring=K check Release files against keyring K --no-resolve-deps don't try to resolve dependencies automatically --unpack-tarball=T acquire .debs from a tarball instead of http --make-tarball=T download .debs and create a tarball (tgz format) --second-stage-target=DIR Run second stage in a subdirectory instead of root (can be used to create a foreign chroot) (requires --second-stage) --boot-floppies used for internal purposes by boot-floppies --debian-installer used for internal purposes by debian-installer |
#debootstrap --help
Usage: debootstrap [OPTION]... <suite> <target> [<mirror> [<script>]] Bootstrap Debian base system. --help display this help and exit --version display version information and exit --verbose don't turn off the output of wget --download-only download packages, but don't perform installation --print-debs print the packages to be installed, and exit --arch=A set the target architecture (use if no dpkg) [ --arch=powerpc ] --include=A,B,C adds specified names to the list of base packages ... --keyring=K check Release files against keyring K --no-resolve-deps don't try to resolve dependencies automatically --unpack-tarball=T acquire .debs from a tarball instead of http --make-tarball=T download .debs and create a tarball (tgz format) --second-stage-target=DIR Run second stage in a subdirectory instead of root (can be used to create a foreign chroot) (requires --second-stage) --boot-floppies used for internal purposes by boot-floppies --debian-installer used for internal purposes by debian-installer |
#ls -l
total 205308 -rw-r--r-- 1 root root 0 2009-05-28 17:48 1 -rw-r--r-- 1 root root 209715200 2009-05-30 14:47 harddisk.img -rwxr-xr-x 1 root root 184 2009-05-29 17:59 hello drwxr-xr-x 2 root root 4096 2009-05-30 12:32 m1 drwx------ 2 root root 4096 2009-06-05 12:43 Mail -rw-r--r-- 1 root root 239 2009-06-03 14:04 remote_ssh_config -rw-r--r-- 1 root root 4737 2009-05-29 10:06 screen.dot -rw-r--r-- 1 root root 271894 2009-05-29 10:07 screen.png -rw------- 1 root root 813 2009-06-05 14:11 sent -rwxr-xr-x 1 root root 34 2009-05-29 12:33 t1.txt |
#ls -l
total 205308 -rw-r--r-- 1 root root 0 2009-05-28 17:48 1 -rw-r--r-- 1 root root 209715200 2009-05-30 14:47 harddisk.img -rwxr-xr-x 1 root root 184 2009-05-29 17:59 hello drwxr-xr-x 2 root root 4096 2009-05-30 12:32 m1 drwx------ 2 root root 4096 2009-06-05 12:43 Mail -rw-r--r-- 1 root root 239 2009-06-03 14:04 remote_ssh_config -rw-r--r-- 1 root root 4737 2009-05-29 10:06 screen.dot -rw-r--r-- 1 root root 271894 2009-05-29 10:07 screen.png -rw------- 1 root root 813 2009-06-05 14:11 sent -rwxr-xr-x 1 root root 34 2009-05-29 12:33 t1.txt |
#ls -l /
total 80 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 22 root root 4096 2009-06-01 11:41 data drwxr-xr-x 16 root root 3800 2009-06-05 18:15 dev drwxr-xr-x 97 root root 4096 2009-06-05 17:52 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 93 root root 0 2009-06-05 17:51 proc drwxr-xr-x 8 root root 4096 2009-06-05 18:20 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 6 root root 4096 2009-06-05 18:21 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 80 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 22 root root 4096 2009-06-01 11:41 data drwxr-xr-x 16 root root 3800 2009-06-05 18:15 dev drwxr-xr-x 97 root root 4096 2009-06-05 17:52 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 93 root root 0 2009-06-05 17:51 proc drwxr-xr-x 8 root root 4096 2009-06-05 18:20 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 6 root root 4096 2009-06-05 18:21 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 |
# Here are some examples of remote repository mappings. # See http://www.debian.org/mirror/list for mirror sites. debian http://10.0.35.100:9999/debian #security http://security.debian.org/debian-security #volatile http://volatile.debian.org/debian-volatile # The following are the default parameter values, so there is # no need to uncomment them unless you want a different value. # See approx.conf(5) for details. #$max_wait 10 #$max_rate unlimited #$user approx #$group approx #$syslog daemon #$pdiffs true #$verbose false #$debug false
processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Intel(R) Celeron(R) CPU 2.50GHz stepping : 9 cpu MHz : 2493.422 cache size : 128 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe up pebs bts cid xtpr bogomips : 4986.84 clflush size : 64 power management:
Время первой команды журнала | 14:21:22 2009- 6- 5 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 18:21:32 2009- 6- 5 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 14.85 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.97 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.85 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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