<?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>HB blog &#187; Howto</title>
	<atom:link href="http://blog.hbcom.info/archives/category/howto/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.hbcom.info</link>
	<description>Just another weblog OR maybe not</description>
	<lastBuildDate>Tue, 29 Nov 2011 15:08:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Robots.txt tips and tricks</title>
		<link>http://blog.hbcom.info/archives/583?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=robots-txt-tips-and-tricks</link>
		<comments>http://blog.hbcom.info/archives/583#comments</comments>
		<pubDate>Tue, 29 Nov 2011 15:08:36 +0000</pubDate>
		<dc:creator>hb</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[robots]]></category>

		<guid isPermaLink="false">http://blog.hbcom.info/?p=583</guid>
		<description><![CDATA[robots.txt is a file that you can use to instruct where web crawlers should look for information and where they should not. How it works? Good web crawler first accesses root of a domain and looks for robots.txt file. For example if robot wants to check www.example.com/welcome.html it will first check if www.example.com/robots.txt exists. And [...]]]></description>
			<content:encoded><![CDATA[<p>robots.txt is a file that you can use to instruct where web crawlers should look for information and where they should not.</p>
<h3>How it works?</h3>
<p>Good web crawler first accesses root of a domain and looks for robots.txt file.</p>
<p>For example if robot wants to check www.example.com/welcome.html it will first check if www.example.com/robots.txt exists.</p>
<p>And again for example it finds:</p>
<p>robots.txt:</p>
<p><code># No robots, Please<br />
User-agent: *<br />
Disallow: /</code></p>
<p>In above file:</p>
<p><code>User-agent: *</code> means this section applies to all robots and<br />
<code>Disallow: / </code>instructs the robot that it should not visit any pages on the site.</p>
<p>Note: It is important to know that robots can ignore your /robots.txt and robots.txt file is a publicly available file.</p>
<p>First consideration is really important to know since the robots who ignore the instructions are usually malicious.</p>
<h3>What to put inside?</h3>
<p>robots.txt is a plain text file. Here are few examples:</p>
<p>To <strong>allow</strong> <strong>all</strong> robots to visit <strong>all</strong> files:<br />
<code>User-agent: *<br />
Disallow:</code><br />
And opposite <strong>disallow all</strong> robots out:<br />
<code>User-agent: *<br />
Disallow: /</code></p>
<p>If you need to disallow a specific agent to visit specific folder<br />
<code>User-agent: SpecificBot # replace the 'SpecificBot' with the actual user-agent of the bot<br />
Disallow: /notimportant/</code><br />
Above example shows also how you can put comments in the file.</p>
<p>In addition you can tell robots where your sitemap is located<br />
<code>User-agent: *<br />
Sitemap: http://www.example.com/sitemaps/sitemap.xml</code></p>
<h3>Where to put it?</h3>
<p>The short answer: in the top-level directory of your web server.</p>
<p>A bit longer: it should be located after your domain name. For example <span style="color: #008000;">www.example.com/robots.txt</span> not <span style="color: #ff0000;">www.example.com/robot_file/robots.txt</span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hbcom.info/archives/583/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to edit hosts file in Windows</title>
		<link>http://blog.hbcom.info/archives/542?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-edit-hosts-file-in-windows</link>
		<comments>http://blog.hbcom.info/archives/542#comments</comments>
		<pubDate>Sat, 26 Nov 2011 00:10:15 +0000</pubDate>
		<dc:creator>hb</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blog.hbcom.info/?p=542</guid>
		<description><![CDATA[hosts file is a text file used to map IP addresses to hostname before DNS was in place. So you will ask why to edit it? Simple &#8211; sometimes is required to have map if specific host to different IP ( for example: testing ). In general is not recommended to edit hosts file. Even [...]]]></description>
			<content:encoded><![CDATA[<p>hosts file is a text file used to map IP addresses to hostname before DNS was in place. So you will ask why to edit it?</p>
<p>Simple &#8211; sometimes is required to have map if specific host to different IP ( for example: testing ).</p>
<p>In general is not recommended to edit hosts file. Even some viruses are using it to map popular antivirus sites to localhost and hence deny access to them.</p>
<p>The file is located in %systemroot%\system32\drivers\etc\ (which for most of computers translate to C:\windows\system32\drivers\etc\)</p>
<p>In Windows XP and lower if you are logged as administrator you can edit the file directly, but to increase security (since most of ordinary users log as administrators) Microsoft decided to add in Windows Vista (and newer) additional layer of security so you are unable to edit the file directly.</p>
<p>Here is how to do it:</p>
<ol>
<li>In Start menu type Notepad</li>
<li>Right click on Notepad and select run as Administrator</li>
<li>Continue as usual &#8211; edit the file and save it</li>
</ol>
<p>Note: Some antivirus products &#8220;protect&#8221; hosts file so you might need to disable that protection before editing.</p>
<p>Note: For newbies the format of the file is following:</p>
<p style="padding-left: 30px;"><em>x.x.x.x FQDN</em></p>
<p>Where x.x.x.x is IP address in numeric form</p>
<p>and FQDN is Fully Qualified Domain Name</p>
<p>Example:</p>
<pre style="padding-left: 30px;">127.0.0.1  localhost</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.hbcom.info/archives/542/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install telnet in Windows</title>
		<link>http://blog.hbcom.info/archives/520?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-telnet-in-windows</link>
		<comments>http://blog.hbcom.info/archives/520#comments</comments>
		<pubDate>Wed, 23 Nov 2011 17:59:03 +0000</pubDate>
		<dc:creator>hb</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[telnet]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blog.hbcom.info/?p=520</guid>
		<description><![CDATA[If you are using telnet to test and troubleshoot services you will be &#8220;surprised&#8221; that telnet is not installed by default. C:\Users\&#62;telnet 'telnet' is not recognized as an internal or external command, operable program or batch file. To to enable it back follow this procedure: Go to Start &#8211; &#62; Control Panel -&#62; Programs -&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>If you are using telnet to test and troubleshoot services you will be &#8220;surprised&#8221; that telnet is not installed by default.<br />
<code></code></p>
<p style="text-align: left;"><code>C:\Users\&gt;telnet<br />
'telnet' is not recognized as an internal or external command,<br />
operable program or batch file.</code></p>
<p style="text-align: left;">To to enable it back follow this procedure:</p>
<ol>
<li>Go to Start &#8211; &gt; Control Panel -&gt; Programs -&gt; Turn Windows Features On and Off</li>
<li>Check Telnet Client and click OK (See screenshot below)</li>
<li>After a while it is ready</li>
<li>Enjoy</li>
</ol>
<p><a href="http://blog.hbcom.info/wp-content/uploads/2011/10/turn-on-telnet.jpg"><img class="size-full wp-image-525 aligncenter" title="Turn on telnet" src="http://blog.hbcom.info/wp-content/uploads/2011/10/turn-on-telnet.jpg" alt="Screenshot of Microsoft features showing how to enable Telnet" width="429" height="375" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hbcom.info/archives/520/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Send e-mail with telnet</title>
		<link>http://blog.hbcom.info/archives/518?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=send-e-mail-with-telnet</link>
		<comments>http://blog.hbcom.info/archives/518#comments</comments>
		<pubDate>Thu, 10 Nov 2011 13:57:28 +0000</pubDate>
		<dc:creator>hb</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blog.hbcom.info/?p=518</guid>
		<description><![CDATA[When testing e-mail server one of the tools that are proven to be useful is plain old telnet. Actually this is not a surprise since SMTP protocol function is similar. Here is how to use it: 1. Start from command prompt 2. Type telnet mailhost 25 Note: Replace mailhost with your email server. 3. Type: [...]]]></description>
			<content:encoded><![CDATA[<p>When testing e-mail server one of the tools that are proven to be useful is plain old telnet.<br />
Actually this is not a surprise since SMTP protocol function is similar.</p>
<p>Here is how to use it:</p>
<p>1. Start from command prompt<br />
2. Type<br />
<code>telnet mailhost 25</code><br />
<em>Note: Replace mailhost with your email server</em>.</p>
<p>3. Type:<br />
<code>HELO server.com</code></p>
<p><em>Note1: depending on the server HELO have to be replaced with EHLO</em><br />
<em> Note2: Replace server.com with your domain</em></p>
<p>4. Type<br />
<code>MAIL FROM:you@server.com</code></p>
<p><em>Note: Again replace you@server.com with your e-mail address</em></p>
<p>5. Type</p>
<p><code>RCPT TO: recipient@server2.com</code></p>
<p><em>Note: Replace recipient@server2.com with recipient e-mail address</em><br />
6. Type</p>
<p><code>DATA</code><br />
after that optionally<br />
<code>SUBJECT: Your subject</code><br />
then type your message<br />
to finish place dot at new line.<br />
.<br />
6. To exit type<br />
<code>QUIT</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hbcom.info/archives/518/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS &#8211; install IPMI</title>
		<link>http://blog.hbcom.info/archives/479?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=centos-install-ipmi</link>
		<comments>http://blog.hbcom.info/archives/479#comments</comments>
		<pubDate>Wed, 10 Aug 2011 18:19:22 +0000</pubDate>
		<dc:creator>hb</dc:creator>
				<category><![CDATA[Command line]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.hbcom.info/?p=479</guid>
		<description><![CDATA[First what is IPMI? IPMI stands for Intelligent Platform Management Interface standardized computer interface for administrators to manage computer system and monitor its operation. It is supported by most major providers &#8211; Intel (of course), Dell, HP&#8230; Installation Installation is really simple: yum install OpenIPMI OpenIPMI-tools chkconfig ipmi on service ipmi start If you see [...]]]></description>
			<content:encoded><![CDATA[<p>First what is IPMI?</p>
<p>IPMI stands for Intelligent Platform Management Interface standardized computer interface for administrators to manage computer system and monitor its operation.</p>
<p>It is supported by most major providers &#8211; Intel (of course), Dell, HP&#8230;</p>
<h3>Installation</h3>
<p>Installation is really simple:</p>
<pre>yum install OpenIPMI OpenIPMI-tools
chkconfig ipmi on
service ipmi start</pre>
<p>If you see error at last command check system log &#8211; it is possible that your hardware does not support IPMI.</p>
<h3>Usage</h3>
<p>To to see what you can do with it:</p>
<pre>ipmitool help
man ipmitool</pre>
<p>Enjoy:)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hbcom.info/archives/479/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bash: Get yesterday&#8217;s date</title>
		<link>http://blog.hbcom.info/archives/476?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=bash-get-yesterdays-date</link>
		<comments>http://blog.hbcom.info/archives/476#comments</comments>
		<pubDate>Fri, 03 Jun 2011 18:08:03 +0000</pubDate>
		<dc:creator>hb</dc:creator>
				<category><![CDATA[Command line]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://blog.hbcom.info/?p=476</guid>
		<description><![CDATA[Recently I had to create a bash script to copy some files based on date. The rule was copy yesterday&#8217;s files to &#8230; But How to determine what was the yesterdays date? The answer was in date man page. Here are the parts from the script related to yesterday date: $date -d '1 day ago' [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I had to create a bash script to copy some files based on date.</p>
<p>The rule was copy yesterday&#8217;s files to &#8230;</p>
<p>But How to determine what was the yesterdays date?</p>
<p>The answer was in date man page.</p>
<p>Here are the parts from the script related to yesterday date:</p>
<pre>$date -d '1 day ago' +'%Y/%m/%d'
2011/06/02
</pre>
<p>on Internet I&#8217;ve found also:</p>
<pre>date --date='yesterday'
Thu Jun  2 14:01:28 EDT 2011</pre>
<p>And (Bonus!!) if you want to go in future <img src='http://blog.hbcom.info/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<pre>date --date='tomorrow'
Sat Jun  4 14:04:29 EDT 2011</pre>
<p>Happy scripting&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hbcom.info/archives/476/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Debian &#8211; upgrade to Squeeze</title>
		<link>http://blog.hbcom.info/archives/464?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=debian-upgrade-to-squeeze</link>
		<comments>http://blog.hbcom.info/archives/464#comments</comments>
		<pubDate>Sat, 23 Apr 2011 21:47:35 +0000</pubDate>
		<dc:creator>hb</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.hbcom.info/?p=464</guid>
		<description><![CDATA[After release of Debian 6.0 (squeeze) the question of how to upgrade from previous version to the latest. It appears to be fairly simple process: 1. Edit sources.list vi /etc/apt/sources.list 2. Replace distribution name (I appeared to have Lenny) with Squeeze. %s/lenny/squeeze/g Note: DebianVolatile has been superseded by squeeze-updates since Debian Squeeze. To use squeeze-updates [...]]]></description>
			<content:encoded><![CDATA[<p>After release of Debian 6.0 (squeeze) the question of how to upgrade from previous version to the latest.</p>
<p>It appears to be fairly simple process:</p>
<p>1. Edit sources.list</p>
<pre>vi /etc/apt/sources.list</pre>
<p>2. Replace distribution name (I appeared to have Lenny) with Squeeze.</p>
<p>%s/lenny/squeeze/g</p>
<p>Note: <em>DebianVolatile has been superseded by <tt>squeeze-updates</tt> since Debian Squeeze.</em></p>
<p>To use squeeze-updates just add</p>
<pre>deb http://mirrors.kernel.org/debian squeeze-updates main contrib</pre>
<p>to sources.list</p>
<p>Then as usual:</p>
<pre>apt-get update</pre>
<pre>apt-get dist-upgrade</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.hbcom.info/archives/464/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>tsclient toggle full screen mode</title>
		<link>http://blog.hbcom.info/archives/458?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tsclient-toggle-full-screen-mode</link>
		<comments>http://blog.hbcom.info/archives/458#comments</comments>
		<pubDate>Wed, 16 Feb 2011 05:41:02 +0000</pubDate>
		<dc:creator>hb</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.hbcom.info/?p=458</guid>
		<description><![CDATA[When working from Linux to a windows machine via remote desktop the obvious choice is tsclient. In windows you just move your cursor at the top of the screen to the control bar and there you can click the button for windowed mode. But tsclient does not have that instead you can use following keyboard [...]]]></description>
			<content:encoded><![CDATA[<p>When working from Linux to a windows machine via remote desktop the obvious choice is tsclient.</p>
<p>In windows you just move your cursor at the top of the screen to the control bar and there you can click the button for windowed mode.</p>
<p>But tsclient does not have that instead you can use following keyboard combination: &#8220;Ctrl-Alt-Enter&#8221;.</p>
<p>Tip: To improve tsclient performance just go to performance tab and check enable bitmap caching.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hbcom.info/archives/458/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>find tips and tricks</title>
		<link>http://blog.hbcom.info/archives/427?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=find-tips-and-tricks</link>
		<comments>http://blog.hbcom.info/archives/427#comments</comments>
		<pubDate>Wed, 23 Jun 2010 20:44:40 +0000</pubDate>
		<dc:creator>hb</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.hbcom.info/?p=427</guid>
		<description><![CDATA[find is LINUX/UNIX command to find files in file system. Here you will find few tricks: find ~ -type f mtime 0 Will show all files in your home folder created today. find ~ -type f mtime 0 -iname '*.mp3' Will narrow the search to .mp3 files only and iname is not case sensitive. And [...]]]></description>
			<content:encoded><![CDATA[<p>find is LINUX/UNIX command to find files in file system.</p>
<p>Here you will find few tricks:</p>
<p><code>find ~ -type f mtime 0</code></p>
<p>Will show all files in your home folder created today.</p>
<p><code>find ~ -type f mtime 0 -iname '*.mp3'</code></p>
<p>Will narrow the search to .mp3 files only and iname is not case sensitive.</p>
<p>And if you want to search for files that are not belonging to you use:</p>
<p><code>find ~ ! -user ${USER}</code></p>
<p>Lot more options you can find in find man page</p>
<p><code>man find</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hbcom.info/archives/427/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to boot from floppy/CD without physical drive</title>
		<link>http://blog.hbcom.info/archives/418?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-boot-from-floppycd-without-physical-drive</link>
		<comments>http://blog.hbcom.info/archives/418#comments</comments>
		<pubDate>Sun, 16 May 2010 01:59:53 +0000</pubDate>
		<dc:creator>hb</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.hbcom.info/?p=418</guid>
		<description><![CDATA[All new computers do not have FDD (Floppy Disk Drive) and even you find one it could be rally hard to find good media. As remedy to this you could still boot from a CD But sometimes you even do not have CD/DVD drive. And then you need to boot from floppy to update your [...]]]></description>
			<content:encoded><![CDATA[<p>All new computers do not have FDD (Floppy Disk Drive) and even you find one it could be rally hard to find good media.</p>
<p>As remedy to this you could still boot from a CD</p>
<p>But sometimes you even do not have CD/DVD drive.</p>
<p>And then you need to boot from floppy to update your BIOS.</p>
<p>So what to do?</p>
<p>Do not run to your basement looking for floppies. There is another way. You can use grub and syslinux.</p>
<p>First you need Linux installed (OR probably you already have it). Examples here are for Ubuntu.</p>
<p>Next step is to install needed software:<br />
<code>sudo aptitude install syslinux</code></p>
<p>Then download a floppy image:<br />
<code>http://www.allbootdisks.com/downloads/Disks/MS-DOS_Boot_Disk_Download47/Diskette%20Images/Dos6.22.img</code></p>
<p>Then mount the image:<br />
<code>sudo mount Dos6.22.img /mnt -o loop</code></p>
<p>You can remove everything except:</p>
<ul>
<li>autoexec.bat</li>
<li>command.com</li>
<li>config.sys</li>
<li>himem.sys</li>
<li>io.sys</li>
<li>mscdex.exe</li>
<li>msdos.sys</li>
</ul>
<p>After that in case of upgrading BIOS you need to copy new bios file and flash program.</p>
<p>Finally we will prepare the boot image.<br />
<code>sudo cp /usr/lib/syslinux/memdisk /boot/<br />
sudo cp Dos6.22.img /boot/</code></p>
<p>Reboot and on grub screen press c and boot the image using:<br />
<code>root (hd0,0)<br />
kernel memdisk<br />
initrd Dos6.22.img</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hbcom.info/archives/418/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.482 seconds -->

