<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>WPKG BlogUncategorized &#187;</title> <atom:link href="http://blog.wpkg.org/category/uncategorized/feed/" rel="self" type="application/rss+xml" /><link>http://blog.wpkg.org</link> <description>a technical IT blog</description> <lastBuildDate>Tue, 06 Dec 2011 13:25:58 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Installing Debian Squeeze on DELL PowerEdge R710 via DRAC</title><link>http://blog.wpkg.org/2011/12/06/installing-debian-squeeze-on-dell-poweredge-r710-via-drac/</link> <comments>http://blog.wpkg.org/2011/12/06/installing-debian-squeeze-on-dell-poweredge-r710-via-drac/#comments</comments> <pubDate>Tue, 06 Dec 2011 13:01:29 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Uncategorized]]></category><guid isPermaLink="false">http://blog.wpkg.org/?p=298</guid> <description><![CDATA[Installing Debian Squeeze on DELL PowerEdge R710 via DRAC can be quite an adventure &#8211; the main problem is that the Debian installer does not include firmware for Broadcom network cards.If you&#8217;re trying to install Debian and see an image like this, you have to make sure you have a floppy with an appropriate driver.To [...]]]></description> <content:encoded><![CDATA[<p>Installing Debian Squeeze on DELL PowerEdge R710 via DRAC can be quite an adventure &#8211; the main problem is that the Debian installer does not include firmware for Broadcom network cards.<br /> <span id="more-298"></span><br /> If you&#8217;re trying to install Debian and see an image like this, you have to make sure you have a floppy with an appropriate driver.</p><p><a href="http://blog.wpkg.org/wp-content/uploads/2011/12/bnx2-mips-09-5.0.0.j3.fw_.png"><img src="http://blog.wpkg.org/wp-content/uploads/2011/12/bnx2-mips-09-5.0.0.j3.fw_.png" alt="Missing Broadcom firmware" title="bnx2-mips-09-5.0.0.j3.fw" width="799" height="595" class="alignnone size-full wp-image-302" /></a></p><p>To create the floppy image containing bnx2 firmware:</p><p><code><br /> wget http://http.us.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-bnx2_0.34_all.deb<br /> dd bs=1024 count=1440 if=/dev/zero of=imagefile.img<br /> mkfs.msdos imagefile.img<br /> mkdir /mnt/floppy<br /> mount -o loop imagefile.img /mnt/floppy<br /> cp firmware-bnx2_0.34_all.deb /mnt/floppy/<br /> umount /mnt/floppy<br /> </code></p><p>And, that&#8217;s it! Add the floppy via virtual media in DRAC, boot the server, it should install fine this time.</p><p>Note that when you connect a floppy image via DRAC, it will briefly disconnect your virtual CD-ROM, and the installation will fail &#8211; so make sure you do it before the system boots (or after all data was read from the CD, i.e. when it asks for the image, it is fine &#8211; but not before).</p> ]]></content:encoded> <wfw:commentRss>http://blog.wpkg.org/2011/12/06/installing-debian-squeeze-on-dell-poweredge-r710-via-drac/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>SSH session logging / recording</title><link>http://blog.wpkg.org/2010/10/10/ssh-session-logging-recording/</link> <comments>http://blog.wpkg.org/2010/10/10/ssh-session-logging-recording/#comments</comments> <pubDate>Sun, 10 Oct 2010 21:36:13 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Uncategorized]]></category><guid isPermaLink="false">http://blog.wpkg.org/?p=254</guid> <description><![CDATA[If you want to implement a simple server-side SSH session logging, follow these simple steps.&#8220;script&#8221; command can be used to log user activity. Then, we can send the session as email to several recipients, and remove the log file. Add this to user&#8217;s .bash_profile file, or simply construct something similar:CURDATE=$&#40;date +%F-%T&#41; RAND=$RANDOM &#160; EMAILS=&#34;user@example.com otherrecipient@example.com&#34; &#160; script -f -q /tmp/session-$USER-$CURDATE-$RAND.log for EMAIL [...]]]></description> <content:encoded><![CDATA[<p>If you want to implement a simple server-side SSH session logging, follow these simple steps.<br /> <span id="more-254"></span></p><p>&#8220;script&#8221; command can be used to log user activity. Then, we can send the session as email to several recipients, and remove the log file.</p><p>Add this to user&#8217;s .bash_profile file, or simply construct something similar:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">CURDATE</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">date</span> +<span style="color: #000000; font-weight: bold;">%</span>F-<span style="color: #000000; font-weight: bold;">%</span>T<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">RAND</span>=<span style="color: #007800;">$RANDOM</span>
&nbsp;
<span style="color: #007800;">EMAILS</span>=<span style="color: #ff0000;">&quot;user@example.com otherrecipient@example.com&quot;</span>
&nbsp;
script <span style="color: #660033;">-f</span> <span style="color: #660033;">-q</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>session-<span style="color: #007800;">$USER</span>-<span style="color: #007800;">$CURDATE</span>-<span style="color: #007800;">$RAND</span>.log
<span style="color: #000000; font-weight: bold;">for</span> EMAIL <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #007800;">$EMAILS</span>; <span style="color: #000000; font-weight: bold;">do</span>
    <span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #ff0000;">&quot;/tmp/session-<span style="color: #007800;">$USER</span>-<span style="color: #007800;">$CURDATE</span>-<span style="color: #007800;">$RAND</span>.log&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> mail <span style="color: #660033;">-s</span> <span style="color: #ff0000;">&quot;SSH session transcript for <span style="color: #007800;">$USER</span> at <span style="color: #007800;">$CURDATE</span>&quot;</span> <span style="color: #007800;">$EMAIL</span>
<span style="color: #000000; font-weight: bold;">done</span>
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>session-<span style="color: #007800;">$USER</span>-<span style="color: #007800;">$CURDATE</span>-<span style="color: #007800;">$RAND</span>.log
<span style="color: #7a0874; font-weight: bold;">exit</span></pre></div></div><p>Notes:</p><ul><li> don&#8217;t assume it to be any security feature: the log file can be easily manipulated or removed by the user, a different shell can be used, etc.,</li><li>sending an email may not be a good idea if you expect lots of output (i.e. cat /dev/urandom).</li></ul> ]]></content:encoded> <wfw:commentRss>http://blog.wpkg.org/2010/10/10/ssh-session-logging-recording/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 2/7 queries in 0.003 seconds using disk: basic
Object Caching 111/199 objects using disk: basic

Served from: blog.wpkg.org @ 2012-02-09 07:10:59 -->
