<?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>TechVisionblog &#187; Linux</title>
	<atom:link href="http://techvisionblog.in/category/linux-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://techvisionblog.in</link>
	<description>Vision of a geek</description>
	<lastBuildDate>Tue, 30 Dec 2014 04:25:41 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.38</generator>
	<item>
		<title>Clear/Flush DNS cache on Windows Mac and Linux</title>
		<link>http://techvisionblog.in/how-to-clear-flush-dns-windows-mac-linux-osx-vista-server-xp-mountain-lion/</link>
		<comments>http://techvisionblog.in/how-to-clear-flush-dns-windows-mac-linux-osx-vista-server-xp-mountain-lion/#comments</comments>
		<pubDate>Sat, 05 Jan 2013 09:36:49 +0000</pubDate>
		<dc:creator><![CDATA[Ashmeet Singh]]></dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[clear]]></category>
		<category><![CDATA[connection]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[linux.mountain]]></category>
		<category><![CDATA[lion]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[vista]]></category>
		<category><![CDATA[xp]]></category>

		<guid isPermaLink="false">http://techvisionblog.in/?p=897</guid>
		<description><![CDATA[Being a server administrator I have to deal with a hell lot of ip address and domain names. One of the major problem that I face while configuring a server is sometimes I have&#46;&#46;&#46;]]></description>
				<content:encoded><![CDATA[<p><a href="http://techvisionblog.in/how-to-clear-flush-dns-windows-mac-linux-osx-vista-server-xp-mountain-lion/how-to-setup-and-configure-simple-dns-server-in-debian-linux/" rel="attachment wp-att-898"><img class="alignleft size-full wp-image-898" alt="how to setup and configure simple dns server in debian linux Clear/Flush DNS cache on Windows Mac and Linux" src="http://techvisionblog.in/wp-content/uploads/2013/01/how-to-setup-and-configure-simple-dns-server-in-debian-linux.jpg" width="185" height="195" title="Clear/Flush DNS cache on Windows Mac and Linux" /></a>Being a server administrator I have to deal with a hell lot of ip address and domain names. One of the major problem that I face while configuring a server is sometimes I have to change ip addresses to different domain names for certain purposes and when you go to test if you have successfully established a connection or not the computer gives you an error just because it still has that old ip address in the memory and is constantly trying to connect to a dead ip.</p>
<p>This might be a useful feature for average users who visit Facebook and YouTube dozen of times a day as it reduces the time the browser takes to download pages from the servers of the websites by eliminating the need for a DNS server by caching the most visited url.<span id="more-897"></span></p>
<p>So if you are a server admin like me or are a newbie in this field and are facing the same problem clearing/flushing your DNS cache may do your job.</p>
<p>To clear dns in windows: Go to All Programs -&gt; Accessories -&gt; Command Prompt or Go to Run and type cmd. Once in there type</p>
<pre>ipconfig /flushdns</pre>
<p>Mac and Linux both being UNIX based system have the same method to do this.</p>
<p>For Mac go to Applications -&gt; Terminal</p>
<p>For Linux press Alt+F2 and type in gnome-terminal</p>
<p>&nbsp;</p>
<p>Then give the command</p>
<pre>dscacheutil -flushcache</pre>
<p>This will clear all your DNS cache and should solve your problem If not have a look at your DNS server.</p>
]]></content:encoded>
			<wfw:commentRss>http://techvisionblog.in/how-to-clear-flush-dns-windows-mac-linux-osx-vista-server-xp-mountain-lion/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Mount Samba drives over the internet</title>
		<link>http://techvisionblog.in/how-to-mount-smb-windows-drives-over-internet-on-mac-linux/</link>
		<comments>http://techvisionblog.in/how-to-mount-smb-windows-drives-over-internet-on-mac-linux/#comments</comments>
		<pubDate>Sat, 21 Jul 2012 15:39:39 +0000</pubDate>
		<dc:creator><![CDATA[Ashmeet Singh]]></dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[how]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[over]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[smb]]></category>
		<category><![CDATA[to]]></category>

		<guid isPermaLink="false">http://techvisionblog.in/?p=837</guid>
		<description><![CDATA[I have setup an SMB server on which I have almost all of my files important files over my local network. This works fine but what if you forgot an important presentation on your&#46;&#46;&#46;]]></description>
				<content:encoded><![CDATA[<p><a href="http://techvisionblog.in/wp-content/uploads/2012/07/network-Drive-icon.png" rel="lightbox[837]"><img class="alignleft  wp-image-838" title="network Drive" src="http://techvisionblog.in/wp-content/uploads/2012/07/network-Drive-icon.png" alt="network Drive icon Mount Samba drives over the internet" width="250" /></a>I have setup an SMB server on which I have almost all of my files important files over my local network. This works fine but what if you forgot an important presentation on your server and are standing on the podium to deliver it. Wouldn&#8217;t it be nice to have an access to that SMB server over the internet to avoid such situations. So what all do I need to know to route a whole smb server over the internet. You need nothing more than basic knowledge about your router interface. A word of caution the method I am suggesting only allows you to broadcast a single smb server over the internet if you have multiple file servers to deal with you should go for ssh.</p>
<p>Okay so let&#8217;s get started. So first find out how to forward ports on your router. This tell your router to allow traffic from certain ports and redirect it to a given IP. Go <a title="Portforward.com" href="http://portforward.com/english/routers/port_forwarding/routerindex.htm" target="_blank">here</a> and find out how to forward ports on your router. Click on the Default Guide for a general instruction guid for port forward.</p>
<p>Now go ahead and forward ports <strong>137(TCP/UDP) , 138(TCP) , 139(TCP) , 445(TCP)</strong> to the ip of the computer you are hosting the SMB server on. This pity much completes the job the only thing you now need is your external IP. You can go to <a title="Know your IP" href="http://ip.pixeltine.com" target="_blank">ip.pixeltine.com</a> or if you are a Linux/Mac user you can give the command</p>
<p><code>curl ip.pixeltine.com</code></p>
<p>Now mount the partition using this external ip and you are done.</p>
<p>If you want help mounting these partitions I found these posts helpful.</p>
<ul>
<li><a title="Mount windows share in Linux" href="http://www.liberiangeek.net/2010/08/mount-windows-shares-ubuntu-10-04-lucid-lynx-terminal/" target="_blank">Linux</a></li>
<li><a title="Mount windows drives on mac" href="http://lifehacker.com/247148/how-to-mount-a-windows-shared-folder-on-your-mac" target="_blank">Mac</a></li>
</ul>
<p>Just use the external ip the we derived above instead of the local ip suggested in these posts.</p>
]]></content:encoded>
			<wfw:commentRss>http://techvisionblog.in/how-to-mount-smb-windows-drives-over-internet-on-mac-linux/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Skip advertisements on Youtube</title>
		<link>http://techvisionblog.in/skip-advertisements-on-youtube/</link>
		<comments>http://techvisionblog.in/skip-advertisements-on-youtube/#comments</comments>
		<pubDate>Mon, 11 Jun 2012 14:25:52 +0000</pubDate>
		<dc:creator><![CDATA[Ashmeet Singh]]></dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[advertisement]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[skip]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://techvisionblog.in/?p=776</guid>
		<description><![CDATA[YouTube is the biggest video search engine in the world at this time. Youtube introduces its Monetizing program a few years back. It forces ads on your video befor the actual video loads. If&#46;&#46;&#46;]]></description>
				<content:encoded><![CDATA[<p><a href="http://techvisionblog.in/wp-content/uploads/2012/06/no-ads-2go6ve2.png" rel="lightbox[776]"><img class=" wp-image-778 alignleft" title="No ads on youtube" src="http://techvisionblog.in/wp-content/uploads/2012/06/no-ads-2go6ve2.png" alt="no ads 2go6ve2 Skip advertisements on Youtube" width="200" height="200" /></a>YouTube is the biggest video search engine in the world at this time. Youtube introduces its Monetizing program a few years back. It forces ads on your video befor the actual video loads. If you are a big youtube freak like me this thing grows on your nerves pitty quickely. Ads not only waste a lot of time but also makes the loadin of the videos pitty slow.<span id="more-776"></span></p>
<p>I found a solution to this in Google Chrome. In it you can install a plugin the will skip the video ads that load before the desired video and plave text ads instead of it. It is a totally legal practice.</p>
<p>You can add this <a title="Skip ads on YouTube" href="https://chrome.google.com/webstore/detail/epbmnbdplhcomkedpjfceakddnbgfjmf?utm_source=chrome-ntp-icon" target="_blank">extension</a> to your browser and click the blue button every time to skip video ads.</p>
<p style="text-align: center;"><a href="http://techvisionblog.in/wp-content/uploads/2012/06/unnamted.jpg" rel="lightbox[776]"><img class="aligncenter  wp-image-777" title="Skip ads youtube" src="http://techvisionblog.in/wp-content/uploads/2012/06/unnamted.jpg" alt="unnamted Skip advertisements on Youtube" width="500" /></a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://techvisionblog.in/skip-advertisements-on-youtube/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Add custom thumbnails in wordpress post</title>
		<link>http://techvisionblog.in/how-to-add-featured-image-to-wordpress-theme/</link>
		<comments>http://techvisionblog.in/how-to-add-featured-image-to-wordpress-theme/#comments</comments>
		<pubDate>Sun, 18 Sep 2011 04:36:12 +0000</pubDate>
		<dc:creator><![CDATA[Ashmeet Singh]]></dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[thumbnail]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://techvisionblog.in/?p=691</guid>
		<description><![CDATA[WordPress is a great platform to blog. Most of the bloggers prefer to use magazine themes as they provide you with a lot of space to view things. But one of the main reasons&#46;&#46;&#46;]]></description>
				<content:encoded><![CDATA[<p><a href="http://techvisionblog.in/wp-content/uploads/2011/06/Wordpress-Plugins1.png" rel="lightbox[691]"><img class="alignleft size-medium wp-image-70" title="Wordpress logo" src="http://techvisionblog.in/wp-content/uploads/2011/06/Wordpress-Plugins1-300x186.png" alt="Wordpress Plugins1 300x186 Add custom thumbnails in wordpress post" width="300" height="186" /></a>WordPress is a great platform to blog. Most of the bloggers prefer to use magazine themes as they provide you with a lot of space to view things. But one of the main reasons I don&#8217;t use a magazine theme is that the looks of all the magazine themes is the same.</p>
<p>One feature that I really missed in non-magazine themes is the featured images function which I was not able to find in any other non-magazine theme. So I decided to do something my self. At the end of the day I was able to come up with an approximate of the thumbnail system in some of the premium magazine themes . When you add a featured thumbnail of any size most magazine themes automatically resize the thumbnails to the desired size and add them to the post.<span id="more-691"></span></p>
<p>In this tutorial I will tell you how to enable this feature and the make some changes to your theme so that you will be able to see the featured thumbnail next to post.</p>
<p>So first let us enable the feature, which is the easy part of the job. For that go to Appearance -&gt; Editor -&gt; Theme Function(On the right hand side) then add the following code at the top.</p>
<pre>if ( function_exists( 'add_theme_support' ) ) {
  add_theme_support( 'post-thumbnails' );
}</pre>
<p>Update the file. Now you would be able to see an option like this while writing/ editing a post.</p>
<p><a href="http://techvisionblog.in/wp-content/uploads/2011/09/Screen-Shot-2011-09-18-at-9.03.54-AM.png" rel="lightbox[691]"><img class="aligncenter size-full wp-image-694" title="Wordpress Featured IMage" src="http://techvisionblog.in/wp-content/uploads/2011/09/Screen-Shot-2011-09-18-at-9.03.54-AM.png" alt="Screen Shot 2011 09 18 at 9.03.54 AM Add custom thumbnails in wordpress post" width="299" height="72" /></a></p>
<p>This will allow you to add thumbnail to your post. But the size of the thumbnail also matters. While the big magazine themes have pre-installed plugins to do the job but I think light as installing too many plugins on your blog may lead to some problems on your blog that are very difficult to diagnose as I am facing problems with light box.</p>
<p>So you can use an online tool <a title="Pic Size" href="http://www.picresize.com/">Pic Resize</a>. This tool allows you to edit your images in great detail but we need to only to resize our images, so click on Quick Resize enter 64 as the width and leave the height option as blank. This is the optimum size  of a thumbnail that should be used. Now add this image as the featured image of your post.</p>
<p>I think Most themes would display the thumbnail by default but some might not. For those who are not getting the thumbnails beside the post you would need to edit your theme. I am giving a general over view which would work for most of the theme.</p>
<p>For this we would need to make a division to correctly format the location of the image and then call the function</p>
<blockquote>
<pre><!--?<span class="hiddenSpellError" pre=""-->&lt;?php the_post_thumbnail(); ?&gt;</pre>
</blockquote>
<p>So first go to Appearance -&gt; Editor -&gt; Stylesheet . At the end of the page add this</p>
<pre>#thumb {
	float:left;
	width:64px;
	background:#fff;
	color:#000;
}</pre>
<p>This would probably set the division we need to put the thumbnail in. Update the file and select Main Index Template.</p>
<p>This is probably where you would find the code that displays the headings of the post. Our aim is to place the thumbnail on the left side of the post heading. If your want to place it on the right of the post heading just replace &#8220;<em>float:left</em>&#8221; with &#8220;<em>float:right</em>&#8221; in the above code.</p>
<p>The code is between the tags &lt;h1&gt;&#8230;&#8230;&#8230;.&lt;/h1&gt; if you are using a good theme but can also be between &lt;h2&gt;&#8230;&#8230;&#8230;&lt;/h2&gt;. So just before the heading code add</p>
<blockquote>
<div id="thumb"><!--?<span class="hiddenSpellError" pre=""-->&lt;div id=&#8221;thumb&#8221;&gt;&lt;?php the_post_thumbnail(); ?&gt;&lt;/div&gt;</div>
</blockquote>
<p>Update the file . Now you would be able to see the thumbnail next to the post heading.</p>
]]></content:encoded>
			<wfw:commentRss>http://techvisionblog.in/how-to-add-featured-image-to-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Embed youtube videos with custom timings</title>
		<link>http://techvisionblog.in/embed-youtube-videos-with-custom-timings/</link>
		<comments>http://techvisionblog.in/embed-youtube-videos-with-custom-timings/#comments</comments>
		<pubDate>Wed, 07 Sep 2011 18:10:28 +0000</pubDate>
		<dc:creator><![CDATA[Ashmeet Singh]]></dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://techvisionblog.in/?p=632</guid>
		<description><![CDATA[I am a big YouTube  freak and like to share YouTube videos with my friends and online also with my readers. But some times a great video in starting have some boring dialog or sometimes blank&#46;&#46;&#46;]]></description>
				<content:encoded><![CDATA[<p><a href="http://techvisionblog.in/wp-content/uploads/2011/07/youtube-logo.jpg" rel="lightbox[632]"><img class="alignleft size-medium wp-image-356" title="youtube-logo" src="http://techvisionblog.in/wp-content/uploads/2011/07/youtube-logo-300x212.jpg" alt="youtube logo 300x212 Embed youtube videos with custom timings " width="300" height="212" /></a>I am a big YouTube  freak and like to share YouTube videos with my friends and online also with my readers. But some times a great video in starting have some boring dialog or sometimes blank spaces before the interesting part. And viewers loose interest if the initial part of the video is not interesting some thing like this great song by Flo Rida<br />
<object width="500" height="311" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/N46x3_cObxM?version=3&amp;hl=en_US&amp;rel=0" /><param name="allowfullscreen" value="true" /><embed width="500" height="311" type="application/x-shockwave-flash" src="http://www.youtube.com/v/N46x3_cObxM?version=3&amp;hl=en_US&amp;rel=0" allowFullScreen="true" allowscriptaccess="always" allowfullscreen="true" /></object></p>
<p>The dialog in the beginning just ruins the taste of the song.</p>
<p>So what to do about this.<span id="more-632"></span></p>
<p>Yes there is a solution , at the end of the url of the video add the anchor #t=<a href="http://techvisionblog.in/wp-content/uploads/2011/07/VLC1.png" rel="lightbox[632]"><img class="aligncenter size-full wp-image-264" title="Youtube in VLC" src="http://techvisionblog.in/wp-content/uploads/2011/07/VLC1.png" alt="VLC1 Embed youtube videos with custom timings " width="530" height="100" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>So your final link should look some thing like this</p>
<blockquote><p><a href="http://www.youtube.com/watch?v=N46x3_cObxM#t=01m01s">http://www.youtube.com/watch?v=N46x3_cObxM#t=01m01s</a></p></blockquote>
<p>where 01m01s mean 1 minute 1 second. You can replace this with any value you want.</p>
<p>Coming to the embedding and sharing youtube video part of the tutorial. Adding a time stamp in an embedded videos is only possible with the &#8220;Old Code&#8221; so while generating code to be embedded make sure you check the box &#8220;Use old embed code&#8221;</p>
<p>Now the code should look something like this</p>
<p>&lt;object width=&#8221;500&#8243; height=&#8221;311&#8243;&gt;&lt;param name=&#8221;movie&#8221; value=&#8221;http://www.youtube.com/v/N46x3_cObxM?version=3&amp;amp;hl=en_US&amp;amp;rel=0&#8243;&gt;&lt;/param&gt;&lt;param name=&#8221;allowFullScreen&#8221; value=&#8221;true&#8221;&gt;&lt;/param&gt;&lt;param name=&#8221;allowscriptaccess&#8221; value=&#8221;always&#8221;&gt;&lt;/param&gt;&lt;embed src=&#8221;http://www.youtube.com/v/N46x3_cObxM?version=3&amp;amp;hl=en_US&amp;amp;rel=0&#8243; type=&#8221;application/x-shockwave-flash&#8221; width=&#8221;500&#8243; height=&#8221;311&#8243; allowscriptaccess=&#8221;always&#8221; allowfullscreen=&#8221;true&#8221;&gt;&lt;/embed&gt;&lt;/object&gt;</p>
<p>Now add <strong>&amp;amp;start=t </strong>where t is in seconds. So if you want to go to 2 minute 3 sec you would need to add <strong>&amp;amp;start=123 </strong></p>
<p>So the final code should look like</p>
<p>&lt;object width=&#8221;500&#8243; height=&#8221;311&#8243;&gt;&lt;param name=&#8221;movie&#8221; value=&#8221;http://www.youtube.com/v/N46x3_cObxM?version=3&amp;amp;hl=en_US&amp;amp;rel=0<span style="color: #ff0000;"><strong>&amp;amp;start=123</strong></span>&#8220;&gt;&lt;/param&gt;&lt;param name=&#8221;allowFullScreen&#8221; value=&#8221;true&#8221;&gt;&lt;/param&gt;&lt;param name=&#8221;allowscriptaccess&#8221; value=&#8221;always&#8221;&gt;&lt;/param&gt;&lt;embed src=&#8221;http://www.youtube.com/v/N46x3_cObxM?version=3&amp;amp;hl=en_US&amp;amp;rel=0<span style="color: #ff0000;"><strong>&amp;amp;start=123</strong></span>&#8221; type=&#8221;application/x-shockwave-flash&#8221; width=&#8221;500&#8243; height=&#8221;311&#8243; allowscriptaccess=&#8221;always&#8221; allowfullscreen=&#8221;true&#8221;&gt;&lt;/embed&gt;&lt;/object&gt;<br />
<object width="500" height="311" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/N46x3_cObxM?version=3&amp;hl=en_US&amp;rel=0&amp;start=123" /><param name="allowfullscreen" value="true" /><embed width="500" height="311" type="application/x-shockwave-flash" src="http://www.youtube.com/v/N46x3_cObxM?version=3&amp;hl=en_US&amp;rel=0&amp;start=123" allowFullScreen="true" allowscriptaccess="always" allowfullscreen="true" /></object></p>
<p>If you have any queries about this feel free to leave a comment</p>
]]></content:encoded>
			<wfw:commentRss>http://techvisionblog.in/embed-youtube-videos-with-custom-timings/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Making your wordpress blog more readable</title>
		<link>http://techvisionblog.in/making-your-wordpress-blog-more-readable/</link>
		<comments>http://techvisionblog.in/making-your-wordpress-blog-more-readable/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 04:17:44 +0000</pubDate>
		<dc:creator><![CDATA[Ashmeet Singh]]></dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://techvisionblog.in/?p=495</guid>
		<description><![CDATA[The sole aim of a blogger is to make the readers on his blog more and more interested in his content. And believe me when I say that readers don&#8217;t like and thing other than the&#46;&#46;&#46;]]></description>
				<content:encoded><![CDATA[<p><a href="http://techvisionblog.in/wp-content/uploads/2011/06/Wordpress-Plugins.png" rel="lightbox[495]"><img class="alignleft size-medium wp-image-68" title="Wordpress_Logo" src="http://techvisionblog.in/wp-content/uploads/2011/06/Wordpress-Plugins-300x186.png" alt="Wordpress Plugins 300x186 Making your wordpress blog more readable " width="300" height="186" /></a>The sole aim of a blogger is to make the readers on his blog more and more interested in his content. And believe me when I say that readers don&#8217;t like and thing other than the content they are looking for on their page , an environment that is free from ads , social buttons , widgets and anythig that distracts them.</p>
<p>Apple Safari also has a similar feature known as Readable which  removes every thing from your page and just displays the text and the images included.<span id="more-495"></span></p>
<p>If you are a blogger you can give the same experience to all your readers irrespective of the browser they use.</p>
<p>So lets go on and do it.</p>
<p>STEP1: Create a page on your wordpress blog named something like &#8220;Reading&#8221; by going to Pages-&gt; Add New.</p>
<p>SETP2: Change the permalink or the URL(slug) to read.</p>
<p>STEP3: Now you would need to edit the .htaccess file. So better get an ftp client. Add the following line at the top of your .htaccess file.</p>
<blockquote><p>RewriteRule ^read/([0-9]+)/?$ /read/?u=$1 [QSA,L]</p></blockquote>
<p>STEP4: Download this <a href="http://techvisionblog.in/wp-content/uploads/2011/08/page-read.zip" target="_blank">zip file</a> extract the php file in it and upload it to your WordPress theme folder usually /wp-content/themes/ .</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>STEP5 Lastly you need to create a link on your page from where your uses would be able to use this service. Top of a post or some prominent place on your sidebar are the some places I would recommend to you for placing the link.</p>
<blockquote><p>&lt;a href=&#8221;/read/&lt;?php the_ID(); ?&gt;/&#8221;&gt;Read story without the clutter&lt;/a&gt;</p></blockquote>
<p>If you have any queries feel free to post a comment.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://techvisionblog.in/making-your-wordpress-blog-more-readable/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to change the DocumentRoot of apache2 in Ubuntu</title>
		<link>http://techvisionblog.in/how-to-change-the-documentroot-of-apache2-in-ubuntu/</link>
		<comments>http://techvisionblog.in/how-to-change-the-documentroot-of-apache2-in-ubuntu/#comments</comments>
		<pubDate>Tue, 26 Jul 2011 16:01:36 +0000</pubDate>
		<dc:creator><![CDATA[Ashmeet Singh]]></dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[;inux]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[document]]></category>
		<category><![CDATA[documentroot]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[www]]></category>

		<guid isPermaLink="false">http://techvisionblog.in/?p=484</guid>
		<description><![CDATA[The new apache2 came with a lot of changes. Almost every thing was changed from the location of the files to their names too. So if you go looking for the previous config files&#46;&#46;&#46;]]></description>
				<content:encoded><![CDATA[<p><a href="http://techvisionblog.in/wp-content/uploads/2011/07/mantle-power.png" rel="lightbox[484]"><img class="alignleft wp-image-1027 size-full" src="http://techvisionblog.in/wp-content/uploads/2011/07/mantle-power.png" alt="mantle power How to change the DocumentRoot of apache2 in Ubuntu" width="513" height="202" title="How to change the DocumentRoot of apache2 in Ubuntu" /></a>The new apache2 came with a lot of changes. Almost every thing was changed from the location of the files to their names too. So if you go looking for the previous config files you won&#8217;t find them.</p>
<p>So if you want to change the DocumentRoot in apache2 you will not find the setting under httpd.conf. To chance the DocumentRoot of the apache2 server follow the steps:<span id="more-484"></span></p>
<p>STEP1: First you need to make the directory to which you want to change the DocumentRoot to. Preferably make this directory in your home folder so that you have all the permissions to edit the files that are kept in the folder. So issue the command</p>
<blockquote><p>mkdir ~/name_of_your_folder</p></blockquote>
<p>STEP2: To change the DocumentRoot you would need to edit the file default file placed in /etc/apache2/sites-available . So issue the command</p>
<blockquote><p>sudo gedit /etc/apache2/sites-available/default</p></blockquote>
<p>In this file you would see something like</p>
<pre>DocumentRoot /var/www/</pre>
<p>Change it to</p>
<pre>DocumentRoot /home/username/name_of_your_directory/</pre>
<p>On line 9 you would see something like this</p>
<pre>&lt;Directory /var/www/&gt;</pre>
<p>Change it to</p>
<p>&nbsp;</p>
<pre>&lt;Directory /home/username/name_of_your_directory/&gt;</pre>
<p>STEP3: Save the file.  Go to the terminal and issue the command</p>
<blockquote><p>sudo /etc/init.d/apache2 restart</p></blockquote>
<p>And its done. Now place any of your file in the folder you made and you would be able to see the file by going to <a href="http://localhost/">http://localhost/</a></p>
<p>IF you have any queries regarding the process feel free to leave a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://techvisionblog.in/how-to-change-the-documentroot-of-apache2-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Activate additional buttons on your Mouse in Ubuntu</title>
		<link>http://techvisionblog.in/activate-additional-tilt-buttons-on-you-mouse-in-ubuntu/</link>
		<comments>http://techvisionblog.in/activate-additional-tilt-buttons-on-you-mouse-in-ubuntu/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 13:07:01 +0000</pubDate>
		<dc:creator><![CDATA[Ashmeet Singh]]></dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[11.04]]></category>
		<category><![CDATA[activate]]></category>
		<category><![CDATA[additional]]></category>
		<category><![CDATA[advanced]]></category>
		<category><![CDATA[controls]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[logitech]]></category>
		<category><![CDATA[m100]]></category>
		<category><![CDATA[mouse]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://techvisionblog.in/?p=425</guid>
		<description><![CDATA[I bought a new Logitech M100 (which is a 7 button mouse) mouse a couple of days ago and after I plugged in the mouse I found out that ubuntu by default only uses five of the&#46;&#46;&#46;]]></description>
				<content:encoded><![CDATA[<p><a href="http://techvisionblog.in/wp-content/uploads/2011/07/logitech-ubuntu.png" rel="lightbox[425]"><img class="alignleft size-full wp-image-429" title="Logitech and Ubuntu" src="http://techvisionblog.in/wp-content/uploads/2011/07/logitech-ubuntu.png" alt="logitech ubuntu Activate additional buttons on your Mouse in Ubuntu" width="300" height="330" /></a>I bought a new Logitech M100 (which is a 7 button mouse) mouse a couple of days ago and after I plugged in the mouse I found out that ubuntu by default only uses five of the basic buttons i.e. main button (left and right) count as one, the downward click on the wheel counts as another, and the up/down scrolling also count as one each (2+1+2=5).<span id="more-425"></span></p>
<p>So 2 of my buttons (Tilt wheel Right/Left) were not working. So I went to google and found a really complicated method to do the thing , and it was a bit out dated too. So I went on experimenting with the devices and finally was able to come up with a vary easy process  to activate the additional buttons on the mouse. Follow the steps:-</p>
<p>STEP 1:First we need to find out the name of your mouse and its handler. For that issue this command in shell</p>
<blockquote><p>egrep &#8220;Name|Handlers&#8221; /proc/bus/input/devices</p></blockquote>
<p>Now you would be able to see something like this:</p>
<p><script type="text/javascript">// <![CDATA[
 google_ad_client = "ca-pub-2160911217335243"; /* Techvision */ google_ad_slot = "5423803058"; google_ad_width = 550; google_ad_height = 60;
// ]]&gt;</script><br />
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[


// ]]&gt;</script></p>
<pre>N: Name="Power Button"
H: Handlers=kbd event0
N: Name="Power Button"
H: Handlers=kbd event1
N: Name="AT Translated Set 2 keyboard"
H: Handlers=sysrq kbd event2
N: Name="Logitech USB Optical Mouse"
H: Handlers=mouse0 event3
N: Name="HDA Intel Headphone"
H: Handlers=event4</pre>
<p>Note the name of the device and the event. For me it was Logitech USB Optical Mouse and event3 .</p>
<p>STEP 2:Now we need edit the 10-evdev.conf located in /usr/share/X11/xorg.conf.d/ (Exclusively for Ubuntu 11.04 users). To edit the file issue the command</p>
<blockquote><p>sudo gedit /usr/share/X11/xorg.conf.d/10-evdev.conf</p></blockquote>
<p>users using earlier versions on Ubuntu need to  edit the xorg.conf locate in /etc/X11/xorg.conf . You can issue the command</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<blockquote><p>sudo gedit /etc/X11/xorg.conf</p></blockquote>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Once you have opened the file go all the way to the bottom of the page and add the following thing</p>
<pre>Section "InputDevice"
Identifier "&lt;name of the device we found in step 1&gt;"
Driver "evdev"
Option "CorePointer"
Option "Device" "/dev/input/&lt;event of your mouse&gt;"
Option "Resolution" "800"
Option "RelHWHEELMapTo" "Buttons 7 6"
EndSection</pre>
<p>The final thing should look like<br />
<script type="text/javascript">// <![CDATA[
google_ad_client = "ca-pub-2160911217335243";
/* Techvision */
google_ad_slot = "5423803058";
google_ad_width = 550;
google_ad_height = 60;
// ]]&gt;</script><br />
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[

// ]]&gt;</script></p>
<pre>Section "InputDevice"
Identifier "Logitech M100"
Driver "evdev"
Option "CorePointer"
Option "Device" "/dev/input/event3"
Option "Resolution" "800"
Option "RelHWHEELMapTo" "Buttons 7 6"
EndSection</pre>
<p>And it is done. If you want you can also modify the resolution of the mouse. Caution: It may stop the mouse from working.</p>
<p>If you have any queries feel free to post a comment.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://techvisionblog.in/activate-additional-tilt-buttons-on-you-mouse-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to automatically mount drives in Ubuntu Linux on startup</title>
		<link>http://techvisionblog.in/how-to-automatically-mount-drives-in-ubuntu-linux-on-startup/</link>
		<comments>http://techvisionblog.in/how-to-automatically-mount-drives-in-ubuntu-linux-on-startup/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 06:32:10 +0000</pubDate>
		<dc:creator><![CDATA[Ashmeet Singh]]></dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[automatically]]></category>
		<category><![CDATA[fat]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ntfs]]></category>
		<category><![CDATA[partition]]></category>
		<category><![CDATA[start up]]></category>
		<category><![CDATA[system]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://techvisionblog.in/?p=411</guid>
		<description><![CDATA[Ubuntu is a very nice tool to work on. It supports a large variety of file systems. But one thing that I was not happy about was the fact that ubuntu never mounts the partitions&#46;&#46;&#46;]]></description>
				<content:encoded><![CDATA[<p><a href="http://techvisionblog.in/wp-content/uploads/2011/07/ubuntu-logo-large.png" rel="lightbox[411]"><img class="alignleft size-medium wp-image-423" title="ubuntu-logo-large" src="http://techvisionblog.in/wp-content/uploads/2011/07/ubuntu-logo-large-300x300.png" alt="ubuntu logo large 300x300 How to automatically mount drives in Ubuntu Linux on startup" width="300" height="300" /></a>Ubuntu is a very nice tool to work on. It supports a large variety of file systems. But one thing that I was not happy about was the fact that ubuntu never mounts the partitions automatically on start up by default. For this these is a tool available in the Ubuntu Software Center NTFS Configuration Tool that allows you to mount your partitions while start up. It worked for me but one day just crashed and stopped working(some files got corrupted after I tried to modify it) so here I am going to share a permanent solution to the problem. You can follow the steps to auto mount drives in ubuntu during start up.<span id="more-411"></span></p>
<p>STEP1: First we need to know the names of all the drives you want to auto mount at the start up. For that issue the command</p>
<blockquote><p>sudo fdisk -l</p></blockquote>
<p>Now you will be shown a list like this</p>
<p><a href="http://techvisionblog.in/wp-content/uploads/2011/07/Screenshot-2.png" rel="lightbox[411]"><img class="aligncenter size-full wp-image-403" title="Windows NTFS disk" src="http://techvisionblog.in/wp-content/uploads/2011/07/Screenshot-2.png" alt="Screenshot 2 How to automatically mount drives in Ubuntu Linux on startup" width="500" height="86" /></a>from here select the partitions you want to add.</p>
<p>STEP2: We now need to create a mount point ,a directory, for mounting the drive to. So me make one. Issue the command</p>
<blockquote><p>sudo mkdir /media/any_name_you_like</p></blockquote>
<p>STEP3: For mounting the drive to the directory we just made automatically every time you boot in we would need to editthe fstab file placed in /etc directory. So issue the command</p>
<blockquote><p>sudo gedit /etc/fstab</p></blockquote>
<p>For the new ubuntu the file looks something like this</p>
<pre>#" / was on /dev/sda1 during installation
UUID=ad8b4f9e-a235-446b-8069-b420ed9388e7 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda3 during installation
UUID=e2098109-8b3a-4b28-8ceb-8d77d8cbafa9 none swap sw 0 0  "</pre>
<pre>In this example I am going to mount sdb2.</pre>
<pre>So I add</pre>
<pre>/dev/sdb2 /media/your_directory ntfs-3g defaults,locale=en_US.UTF-8 0 0</pre>
<p>If you are using any IDE hard disk your drives will appear as /dev/hda or /dev/hdb. You can also change the locale according to your region.</p>
<p>For those users who wish to mount the drive only as read only replace ntfs-3g with ntfs.</p>
<p>For those who wish to mount FAT partitions you can use fat(for read only) and vfat (for read and write) .</p>
<p>If you have any other queries feel free to leave a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://techvisionblog.in/how-to-automatically-mount-drives-in-ubuntu-linux-on-startup/feed/</wfw:commentRss>
		<slash:comments>30</slash:comments>
		</item>
		<item>
		<title>Execute files from windows NTFS partitions in Ubuntu Linux</title>
		<link>http://techvisionblog.in/execute-files-from-windows-ntfs-partitions-in-ubuntu-linux/</link>
		<comments>http://techvisionblog.in/execute-files-from-windows-ntfs-partitions-in-ubuntu-linux/#comments</comments>
		<pubDate>Sun, 17 Jul 2011 18:40:31 +0000</pubDate>
		<dc:creator><![CDATA[Ashmeet Singh]]></dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[chmod]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[drive]]></category>
		<category><![CDATA[execute]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[filesystem]]></category>
		<category><![CDATA[issue]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[partition]]></category>
		<category><![CDATA[permission]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://techvisionblog.in/?p=394</guid>
		<description><![CDATA[I just installed Ubuntu 11.04 on my system. The system is awesome n works very good. After installation when I tried to install some software packages stored in another NTFS file system but was&#46;&#46;&#46;]]></description>
				<content:encoded><![CDATA[<p><a href="http://techvisionblog.in/wp-content/uploads/2011/07/20zpeft.png" rel="lightbox[394]"><img class="alignleft size-full wp-image-407" title="Ubuntu drive" src="http://techvisionblog.in/wp-content/uploads/2011/07/20zpeft.png" alt="20zpeft Execute files from windows NTFS partitions in Ubuntu Linux" width="128" height="128" /></a>I just installed Ubuntu 11.04 on my system. The system is awesome n works very good. After installation when I tried to install some software packages stored in another NTFS file system but was not able to as the default mount permissions don&#8217;t allow files to be executed from them.<span id="more-394"></span> You can solve this problem very easily by following these simple steps:-</p>
<p>STEP1: You first need to unmount the already mounted filesystems using default permissions. Issue the command</p>
<blockquote><p>sudo umount /media/yourmountpoint</p></blockquote>
<p>STEP2: Now we need to mount the partition with the correct permissions. For that first we need a directory to mount it to so issue the command</p>
<blockquote><p>sudo mkdir /media/anynameyoulike</p></blockquote>
<p>STEP3: Now we will mount the drive using read-write permission for that we need to know device name. So issue the command</p>
<blockquote><p>sudo fdisk -l</p></blockquote>
<p>You will be shown some thing like this</p>
<p><a href="http://techvisionblog.in/wp-content/uploads/2011/07/Screenshot-2.png" rel="lightbox[394]"><img class="aligncenter size-full wp-image-403" title="Windows NTFS disk" src="http://techvisionblog.in/wp-content/uploads/2011/07/Screenshot-2.png" alt="Screenshot 2 Execute files from windows NTFS partitions in Ubuntu Linux" width="500" height="86" /></a>Identify the drive you want to mount. Is you have an IDE hard disk you will have something like /dev/hda or /dev/hdb .</p>
<p>STEP4: Now we come to mounting the partition. For this tutorial I am mounting /dev/sdb4 you would need to replace &#8220;<em>sdb4</em>&#8221; with the one you want to mount. Now issue the command</p>
<blockquote><p>sudo mount.ntfs-3g /dev/sdb4 /media/the_directory_you_made_before</p></blockquote>
<p>This should do the trick. But if you are still having problem mounting a partition you can use -f with the above command.</p>
<p>Now you navigate to the file you wanted to execute. You would be able to execute it this time.</p>
<p>If you have any further queries feel free to leave a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://techvisionblog.in/execute-files-from-windows-ntfs-partitions-in-ubuntu-linux/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
