Flattr this!

Sveiki,

norėdami įdiegti Solaris 10u9 mdb programėlę susidiekime SUNWmdb ir SUNWmdbr paketus. Visų pirma prijunkime CD.ISO, kas gali būti atlikta tik iš globalios zonos (Jei nenaudojate konteinerių, tai galėjote pabraukto teksto ir neskaityti :) ):
lofiadm -a /tmp/software.iso /dev/lofi/1
mount -F hsfs -o ro /dev/lofi/1 /mnt

Pereikim į mum reikiamą aplanką
cd /mnt/Solaris_10/Product
Susimeskim visą tai:
pkgadd -d . SUNWmdb
pkgadd -d . SUNWmdbr

Toliau beliko arba prisijungti (ir sustabdyti) procesą: mdb -p ĖPID arba atidaryti core/dump failą: mdb core_dump
Na va o daba mdb komandos:

Control Commands
$< or $<< Replace input with a macro or source a macro.
$>filename or
::log filename
Log session to a file. If no filename, use default.
| Pipe. Allows simple commands to be joined.
! Shell escape. Acts as a pipe to a shell command. (Not available in kmdb.)
// Comment. Following words on the same line are ignored.
$M Show built-in macros (Kernel debugger only).
$Pstring Set prompt to string.
$Q
::quit
Quit. (From kmdb, use -u option to avoid exiting to ok> prompt.)
$W Re-open target in writable mode.
$p Change target context.
$w Control output page width.
:A Attach to a process or core file.
:R Release attachment.
:k Kill and release targets.
$v Print non-zero variables.
>
::typeset
Assign a variable.
::dcmds Print available commands.
::nm Print symbol table. (-P specifies a private symbol table. Manipulated with ::nmaddand ::nmdelete
::help dcmd Provide usage notes on a dcmd.
::typeset Manipulate variable.
::walk Walk data structure.
::walkers List available walkers.

 

 

Input & Output Commands
$< 
$<<
Replace input with a macro or source a macro.
$>filename Log session to a file. If no filename, use default.
address/format-spec
/format-spec
Read the value in a memory addressformatted as format-spec. If no address is provided, use dot.
address/W value Write the value in the four bytes starting with address. If no address is provided, usedotvw or Z may also be used instead of Wto write 1, 2 or 8 bytes, respectively.
address=format-spec
=format-spec
Format immediate value of address or dot.
? Read/write primary object file.
@format-spec Read/write physical address as format-spec.
\format-spec Read/write physical address as format-spec.

The difference between / and = is subtle. For example, to find the address holding the value of the maxphys symbol in decimal, we would run:
maxphys=D
To find the value inside the above address, we would use / like:
maxphys/D

 

 

Format Specification
Note that the ::formats dcmd prints out a full list of supported formats.
D Display in signed decimal.
i Display as a disassembled instruction.
U Display in unsigned decimal.
X Display in signed hexidecimal.
0txyz Specifies xyz as a decimal value.

 

 

System Examination
cpu$<cpus Display cpu0.
cpun$<cpu Display cpu #n.
$<msgbuf Display message buffer, including all console messages up to panic.
<sp$<stacktrace Use the stack pointer address (sp) to display a detailed stack trace.
$r
::regs
Display general registers, including program counter and stack pointer.
::callout Print callout table.
::cpuinfo -v Information about activities of CPUs, including runqueue inhabitants.
::cpuregs
::cpuregs -c cpuid
Print CPU registers. kmdb only. Can specify a cpu.
::cpustack
::cpustack -ccpuid
Print CPU stack. kmdb only. Can specify a cpu.
::dnlc Print DNLC contents.
::ipcs Print SVR4 IPC information.
::kmalog Display kernel memory log and stack traces.
::kmastat Print current kernel memory allocations
::memstat Print current memory usage.
::nm Print symbol table. (-P specifies a private symbol table. Manipulated with ::nmaddand ::nmdelete
::ps List processes with associated threads and lwps
::ptree Print process tree.

 

 

Target Examination
$? Print status and registers.
$C Show call trace and arguments, saved frame pointer and saved program counter for each stack frame.
$X$Y$x$y and::fpregs Display floating point registers.
$c Display stack backtrace.
$e Print list of global symbols.
$f Print list of source files.
$l Print representative thread’s lwp ID.
$m Print address space mappings.
$r
::regs
Display general registers, including program counter and stack pointer.
as::as2proc Convert as pointer to a proc_t pointer.
::devbindings devinfo nodes bound to device-name ormajor-num.
::devinfo Detailed devinfo of node.
::devinfo2driver Driver name for this node.
::devnames Print devnames array.
::devt Display dev_t‘s major & minor numbers.
::did2thread Kernel thread for this ID.
::dumpaddress Dump memory from address.
::findfalse Find potentially falsely shared structures.
::findleaks Search for potential kernel memory leaks.
::findlocks Find locks held by specified thread.
threadp::findstack Find kernel thread stack for associated thread.
::inode Display summary of inode_t.
::kmsqid Display message queue structure (kmsqid).
::ksemid Display a semaphore structure (ksemid).
::kshmid Display a shared memory structure (kshmid).
::pgrep pattern Find proc_t pointers matching the pattern.
0tPID::pid2proc Convert decimal PID to a proc_t pointer.
procp::ps Process information matching the associated proc_t.
::status Print summary of target status.
sobj::walk blocked Walk threads blocked on a particular synchronization object (sobj).
procp::walk thread Walk threads of associated process.
sobj::wchaninfo -v Blocked on condition variables for a particular synchronization object (sobj).
address::whatis Attempts to identify address contents.
vnode::whereopen Processes with vnode open.

 

 

Tracing, Watchpoints and Breakpoints
(Breakpoints for kernel debugger only.)
$b Show all breakpoints.
$i Print list of ignored signals.
:a Set a watchpoint.
:b Set a breakpoint.
:c or ::cont Continue target execution.
:d Delete a breakpoint.
:e Step over next instruction.
:i Step over next instruction.
:k Kill and release targets.
:p Set execute access watchpoints.
:r Run new target process.
:s Step target to next instruction.
:t Stop on delivery of specified signals.
:u Step out of current function.
:w Set write access watchpoint.
:z Delete all breakpoints.

 

 

General Debugging
$G Toggle C++ demangling.
$V Toggle disassembly mode.
$g Toggle C++ demangling.
address::dis Disassemble text starting at address.

 

 

Comparison Operators
== Logical equality.
!= Logical inequality.
& Bitwise AND.
| Bitwise OR.
^ Bitwise XOR.
 

Flattr this!

Sveiki, turiu darbo, taiatsiranda laiko parašyt skriptukus, nusprendžiau vienu jų pasidalinti.

Pasirašiau 88×31 uptime baneriuką: .

$uptime=shell_exec ("cat /proc/uptime | awk '{print $1}'");
function getTime ($unix_laikas) {
if ($unix_laikas<60) {
$returnas=intval($unix_laikas);
if ($returnas<10) {$returnas="0".$returnas;} return $returnas."!";
} elseif (60<=$unix_laikas && $unix_laikas<3600) {
$returnas=intval($unix_laikas/60);
if ($returnas<10) {$returnas="0".$returnas;} return $returnas;
} elseif (3600<=$unix_laikas && $unix_laikas < 86400) {
$returnas=intval($unix_laikas/3600);
if ($returnas<10) {$returnas="0".$returnas;} return $returnas;
} else {
return intval($unix_laikas/86400);
}
}

function uptime ($s0, $s1, $s2) {
$iwidth=88; $iheight=31;
// create a true colour, transparent image
// turn blending OFF and draw a background rectangle in our transparent colour
$image=imagecreatetruecolor($iwidth,$iheight);
imagealphablending($image,false);
$col=imagecolorallocatealpha($image,255,255,255,127);
imagefilledrectangle($image,0,0,$iwidth,$iheight,$col);
imagealphablending($image,true);
// Alpha blanding is back on.
// insert image manipulation stuff in here
$font=3;
$red=imagecolorallocatealpha($image,0,0,0,0);
imagestring($image, $font, 1, 0, $s0, $red);
imagestring($image, $font, 1, 9, $s1, $red);
imagestring($image, $font, 1, 20, $s2, $red);
// output the results...
header("Content-Type: image/png;");
imagealphablending($image,false);
imagesavealpha($image,true);
imagepng($image);
}
if ($uptime<60) { // Sekundes
$s1="up 0 days";
$s2="00:00:".getTime($uptime);
} elseif (60<=$uptime && $uptime<3600) { // Minutes
$tmp=getTime($uptime);
$s1="up 0 days";
$s2="00:".$tmp.":".getTime($uptime-($tmp*60));
} elseif (3600<=$uptime && $uptime<86400) { // Valandos
$tmp=getTime($uptime);
$s1="up 0 days";
$s2=$tmp.":";
$uptime-=$tmp*3600;
$tmp=getTime($uptime);
$s2.=$tmp.":".getTime($uptime-($tmp*60));
} else {
$tmp=getTime($uptime);
$s1="up ".$tmp ." days";
$uptime-=$tmp*86400;
$tmp=getTime($uptime);
$s2=$tmp.":";
$uptime-=$tmp*3600;
$tmp=getTime($uptime);
$s2.=$tmp.":".getTime($uptime-($tmp*60));
}

$s0=shell_exec("hostname -d");
$s0=substr($s0, 0, strlen($s0)-1);
uptime ($s0, $s1, $s2);
?>

Jeigu turite idėjų, kaip visą tai atnaujinti brūkūtelėkite.

 

Flattr this!

Sveiki,

Tikriausiai Jūs jau senokai įrašinėjate Windows 7 naudodami USB raktą… o aš tai dariau pirmą kartą…

Tam man reikėjo ms-sys programėlės bei Windows 7 atvaizdo.

Taip, pirma mums reikia parsipūsti ms-sys.
Išsipakuokime ir įsidiekime:


# kai buvo rašytas šis vedlys 2.2.1 buvo naujausia versija
wget http://downloads.sourceforge.net/project/ms-sys/ms-sys%20stable/2.2.1/ms-sys-2.2.1.tar.gz?r=http%3A%2F%2Fms-sys.sourceforge.net%2F\&ts=1311108133\&use_mirror=switch -O ms-sys-2.2.1.tar.gz
tar -axf ms-sys-2.2.1.tar.gz
cd ms-sys-2.2.1
make
# jei po šios komandos parašo:
make: msgfmt: Command not found
# mums reikia parsisiųsti gettext paketa komanda: aptitude install gettext tada per nauja make
make install


Dabar mes turėtume turėti visas būtinas programas mūsų linuxe.
visų pirma mums reikia susiformatuoti mūsų USB raktą.


cfdisk /dev/sdb


Čia pasirenkame taip, kad vienintelė particija būtų NTFS tipo ir būtų Active bei būtų pažymėta, kaip Bootable, to reikia, jei norime, kad kompiuteris pasikrautų iš USB rakto.
Toliau formatuojame particiją bei ją prijungiame:


mkfs.ntfs -f /dev/sdb1
mkdir /mnt/usb
mount /dev/sdb1 /mnt/usb


Tuomet prijungiame Windows 7 ISO


mkdir /mnt/win7iso
mount -o loop /path/to/win7.iso /mnt/win7iso


Kopijuojame duomenis:


cp -r /mnt/win7iso/* /mnt/usb/


Įrašome įkrovos programėlę į USB:


ms-sys -7 /dev/sdb


atjungiame flęšą bei įrašome darkartelį:


umount /mnt/usb
sync
ms-sys -7 /dev/sdb
sync


Dabar galime atjungti USB laikmeną.
tik nepamirškite, padaryt, kad Jūsų kompiuteris krautųsi iš USB.

 

Flattr this!


sręsti Jums patiems

 

Flattr this!

&aacute;
&#225;
á

&Aacute;
&#193;
Á

&acirc;
&#226;

&Acirc;
&#194;

&acute;
&#180;

&aelig;
&#230;

&AElig;
&#198;

&agrave;
&#224;

&Agrave;
&#192;

&alefsym;

&alpha;

&Alpha;

&amp;

&and;

&ang;

&aring;
&#229;

&Aring;
&#197;

&asymp;

&atilde;
&#227;

&Atilde;
&#195;

&auml;
&#228;

&Auml;
&#196;

&bdquo;
&#8222;

&beta;

&Beta;

&brvbar;
&#166;

&bull;
&#8226;

&cap;

&ccedil;
&#231;

&Ccedil;
&#199;

&cedil;
&#184;

&cent;
&#162;

&chi;

&Chi;

&circ;
&#710;

&clubs;

&cong;

&copy;
&#169;

&crarr;

&cup;

&curren;
&#164;

&dagger;
&#8224;

&Dagger;
&#8225;

&darr;

&dArr;

&deg;
&#176;

&delta;

&Delta;

&diams;

&divide;
&#247;

&eacute;
&#233;

&Eacute;
&#201;

&ecirc;
&#234;

&Ecirc;
&#202;

&egrave;
&#232;

&Egrave;
&#200;

&empty;

&emsp;

&ensp;

ε

&epsilon;

Ε

&Epsilon;

&equiv;

η

&eta;

Η

&Eta;

ð

&eth;
&#240;

Ð

&ETH;
&#208;

ë

&euml;
&#235;

Ë

&Euml;
&#203;

&euro;
&#8364;

&exist;

ƒ

&fnof;

&#402;

&forall;

½

&frac12;
&#189;

¼

&frac14;
&#188;

¾

&frac34;
&#190;

&frasl;

γ

&gamma;

Γ

&Gamma;

&ge;

>

&gt;

&harr;

&hArr;

&hearts;

&hellip;

&#8230;

í

&iacute;
&#237;

Í

&Iacute;
&#205;

î

&icirc;
&#238;

Î

&Icirc;
&#206;

¡

&iexcl;
&#161;

ì

&igrave;
&#236;

Ì

&Igrave;
&#204;

&image;

&infin;

&int;

ι

&iota;

Ι

&Iota;

¿

&iquest;
&#191;

&isin;

ï

&iuml;
&#239;

Ï

&Iuml;
&#207;

κ

&kappa;

Κ

&Kappa;

λ

&lambda;

Λ

&Lambda;

&lang;

«

&laquo;
&#171;

&larr;

&lArr;

&lceil;

&ldquo;
&#8220;

&le;

&lfloor;

&lowast;

&loz;

&lrm;

&lsaquo;
&#8249;

&lsquo;
&#8216;

<

&lt;

¯

&macr;
&#175;

&mdash;

&#8212;

µ

&micro;
&#181;

·

&middot;
&#183;

&minus;

μ

&mu;

Μ

&Mu;

&nabla;

 

&nbsp;

&ndash;
&#8211;

&ne;

&ni;

¬

&not;
&#172;

&notin;

&nsub;

ñ

&ntilde;
&#241;

Ñ

&Ntilde;
&#209;

ν

&nu;

Ν

&Nu;

ó

&oacute;

&#243;

Ó

&Oacute;
&#211;

ô

&ocirc;
&#244;

Ô

&Ocirc;
&#212;

œ

&oelig;
&#339;

Œ

&OElig;
&#338;

ò

&ograve;
&#242;

Ò

&Ograve;
&#210;

&oline;

ω

&omega;

Ω

&Omega;

ο

&omicron;

Ο

&Omicron;

&oplus;

&or;

ª

&ordf;

&#170;

º

&ordm;
&#186;

ø

&oslash;
&#248;

Ø

&Oslash;
&#216;

õ

&otilde;
&#245;

Õ

&Otilde;
&#213;

&otimes;

ö

&ouml;
&#246;

Ö

&Ouml;
&#214;

&para;

&#182;

&part;

&permil;
&#8240;

&perp;

φ

&phi;

Φ

&Phi;

π

&pi;

Π

&Pi;

ϖ

&piv;

±

&plusmn;
&#177;

£

&pound;
&#163;

&prime;

&Prime;

&prod;

&prop;

ψ

&psi;

Ψ

&Psi;

&quot;

&radic;

&rang;

»

&raquo;
&#187;

&rarr;

&rArr;

&rceil;

&rdquo;
&#8221;

&real;
R

®

&reg;
&#174;

&rfloor;

ρ

&rho;

Ρ

&Rho;

&rlm;

&rsaquo;
&#8250;

&rsquo;
&#8217;

&sbquo;
&#8218;

š

&scaron;

&#353;

Š

&Scaron;
&#352;

&sdot;

§

&sect;
&#167;

­

&shy;
&#173;

σ

&sigma;

Σ

&Sigma;

ς

&sigmaf;

&sim;

&spades;

&sub;

&sube;

&sum;

&sup;

¹

&sup1;
&#185;

²

&sup2;
&#178;

³

&sup3;
&#179;

&supe;

ß

&szlig;
&#223;

τ

&tau;

Τ

&Tau;

&there4;

θ

&theta;

Θ

&Theta;

ϑ

&thetasym;

&thinsp;

þ

&thorn;
&#254;

Þ

&THORN;
&#222;

˜

&tilde;

&#732;

×

&times;
&#215;

&trade;
&#8482;

ú

&uacute;
&#250;

Ú

&Uacute;
&#218;

&uarr;

&uArr;

û

&ucirc;

&#251;

Û

&Ucirc;
&#219;

ù

&ugrave;
&#249;

Ù

&Ugrave;
&#217;

¨

&uml;
&#168;

ϒ

&upsih;

υ

&upsilon;

Υ

&Upsilon;

ü

&uuml;
&#252;

Ü

&Uuml;
&#220;

&weierp;

ξ

&xi;

Ξ

&Xi;

ý

&yacute;
&#253;

Ý

&Yacute;
&#221;

¥

&yen;
&#165;

ÿ

&yuml;
&#255;

Ÿ

&Yuml;
&#376;

ζ

&zeta;

Ζ

&Zeta;

 

Flattr this!

 

Flattr this!

Sveiki, pasiemiau Mezon’o nauja modemuka, ziuresim, su planu po 19lt/men. he he :) kompiliuosiu draiveriukus sian vakare…

 

Flattr this!

Baltarusijos rublis 1 LTL = 2,048.30 BYR
Burundijos Frankas 1 LTL = 500.3788 BIF
CFA Frankai? 1 LTL = 188.0734 XOF 1 LTL = 189.5767 XAF
Ciles Pesai 1 LTL = 192.8428 CLP
Kolumbijos Pesai 1 LTL = 735.5813 COP
Kamaros Frankai 1 LTL = 142.5703 KMF
Kosta Rikos Kolonai 1 LTL = 206.8049 CRC
Irako Dinarai 1 LTL = 478.2974 IQD
Korejos Vonai 1 LTL = 444.9725 KRW
Siaures korejos Vonai 1 LTL = 368.6409 KPW
Libano Svarai 1 LTL = 619.4503 LBP
Mauritanijos Ugijos 1 LTL = 112.9802 MRO
Mongolijos Tugrikai 1 LTL = 513.7603 MNT
Ruanos Frankai 1 LTL = 245.6077 RWF
Somalio Silingai 1 LTL = 657.3892 SOS
Tanzanijos Silingai 1 LTL = 647.0636 TZS
Ugandos Silingai 1 LTL = 995.925 UGX
Zimbabves Doleriai 1 LTL = 155.1159 ZWD

 

Flattr this!

Tiesiog nuoroda :)

http://www.mywebcron.com/

palaiko registraciją per OpenID ;) betkokį.

 

Flattr this!

Sveiki, kaip jumi sekas?

Šiandien nusipirkau Husky Pram stiukytę iš pigu.lt.
Tiesiog noriu į darbą važinėti dviračiu… Šiandien pasitaisiau balniuką… Pakeičiau iš paprasto TORNADO (dviračio modelis) pimpalo (nežinau, jis taip atrodo)… į normalų VAIRAS… JĖĖĖ!!!
balnas vairas TORNADO dviratukas Vat tokiu dviratuku važiuosiu, o maniškį MADISON Memphis Melynas memphis madison atidaviau Natkai… heh… vat taip vat… na ką, palinkėkite man sėkmės… :) Tai va, dviratuku važiuojant reiktų apsisaugoti nuo lietučio… Lietpaltis? suprakaituot gamalia… Taigi pasiėmiau striukytę Husky Pram iš pigu.lt, o ten buvo dydžiai S, M, L, XL… Kokie jie? Taigi radau Husky Pram dydžius šiame PDF

© 2012 LPIC - Linux Professional Institute Certification Suffusion theme by Sayontan Sinha