<?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>Digitally alive</title>
	<atom:link href="http://digitallyalive.com/feed" rel="self" type="application/rss+xml" />
	<link>http://digitallyalive.com</link>
	<description>Survive and Thrive in Digital Age</description>
	<lastBuildDate>Fri, 21 May 2010 01:57:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Various 802.1x Supplicants</title>
		<link>http://digitallyalive.com/various-802-1x-supplicants.html</link>
		<comments>http://digitallyalive.com/various-802-1x-supplicants.html#comments</comments>
		<pubDate>Thu, 20 May 2010 16:19:42 +0000</pubDate>
		<dc:creator>bharat</dc:creator>
				<category><![CDATA[Featured]]></category>

		<guid isPermaLink="false">http://digitallyalive.com/various-802-1x-supplicants.html</guid>
		<description><![CDATA[How can i make&#160; sure the network i am laying for my enterprise is perfectly secured and avoiding any intruder by all means, is common thought of any network administrator. Previously network consists of only hard wired machines and accessibility to network was only bound by accessibility of physical port. But scenario is not same [...]]]></description>
			<content:encoded><![CDATA[<p></p><div class="tweetmeme_button" style="clear:left; float: left; margin-right:10px; margin-top:10px">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fdigitallyalive.com%2Fvarious-802-1x-supplicants.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fdigitallyalive.com%2Fvarious-802-1x-supplicants.html&amp;source=digitallyalive&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p align="justify"><em>How can i make&#160; sure the network i am laying for my enterprise is perfectly secured and avoiding any intruder by all means, is common thought of any network administrator. Previously network consists of only hard wired machines and accessibility to network was only bound by accessibility of physical port. But scenario is not same now.</em></p>
<p> <span id="more-401"></span>
<p align="justify">With the induction of Wi-Fi devices like laptop and hand handled smart phones the security of network from intruder has increasingly become a complex task . Wi-Fi devices are not bound by physical port and any one even outside the enterprise but with in the range of Wi-Fi network practically has access to your enterprise network .This news was enough to give network administrators sleepless nights . So to secure networks mainly in enterprises various security protocols and components were invented one of them is supplicant .</p>
<p align="justify">Basically a supplicant is a piece of software which sits on client side,communicate to Authentication server and negotiate&#160; authenticity&#160; of client , and play an important part in maintaining the integrity of network .Let us try to analyze why do we need look for different type of supplicant below are some important point of discussions.</p>
<ul>
<li>
<div align="justify">Some times we are looking for some additional features e.g&#160;&#160; Microsoft in windows zero config has included native support for two popular EAP types: EAP-TLS (server and client certificate authentication) and EAP-PEAP (server-only certificate authentication), if you are looking for more authentication types then you have to look for other supplicants .</div>
</li>
<li>
<div align="justify">If the network is made up of Cisco gear, you might prefer to use Cisco&#8217;s EAP protocol (EAP-FAST), which isn&#8217;t natively supported by Windows zero config and you prefer to migrate for cisco supplicant which have high compatibility with cisco authentication servers.</div>
</li>
<li>
<div align="justify">Some clients even give you additional functionality, such as the ability to block users from changing the 802.1X client settings, so they can&#8217;t open themselves up to potential attacks by local eavesdroppers.</div>
</li>
<li>
<div align="justify">Some clients also include deployment tools to help distribute the digital certificates to clients for when using protocols like EAP-TLS or EAP-PEAP with a self-signed certificate. </div>
</li>
<li>
<div align="justify">For uniformity of configuration over multiple operating systems. </div>
</li>
</ul>
<p>&#160; Below is the list of various supplicants available and different features supported by them</p>
<p align="justify"><a href="http://sourceforge.net/projects/open1x/"><strong>XSupplicant</strong></a> is the cool open source supplicant maintained by open source community . it is available for windows XP and Linux both for 32 and 64 bit architecture. GUI for both Win XP and Linux is available.you can download this supplicant from <a href="http://open1x.sourceforge.net/">here</a>. Various features of this supplicant are </p>
<ul>
<ul>
<li>
<div align="justify">EAP-AKA </div>
</li>
<li>
<div align="justify">EAP-FAST </div>
</li>
<li>
<div align="justify">EAP-GTC </div>
</li>
<li>
<div align="justify">EAP-LEAP </div>
</li>
<li>
<div align="justify">EAP-MD5 </div>
</li>
<li>
<div align="justify">EAP-MSCHAPv2 </div>
</li>
<li>
<div align="justify">EAP-OTP </div>
</li>
<li>
<div align="justify">EAP-PEAP </div>
</li>
<li>
<div align="justify">EAP-SIM </div>
</li>
<li>
<div align="justify">EAP-TLS </div>
</li>
<li>
<div align="justify">EAP-TNC</div>
</li>
<li>
<div align="justify">EAP-TTLS </div>
</li>
</ul>
</ul>
<p align="justify">it also support advance logging features and configuration for various advanced authentication features and timers is very easy.</p>
<p align="justify"><font color="#0000ff"><a href="http://www.securew2.com/node/2">SecureW2 Enterprise Client</a> ,</font><font color="#000000">&#160; is commercial solution by <a href="http://www.securew2.com/">SecureW2 B.V.</a>(dutch corporation) , it supports both WInXP and Win 7 . it supports both wired and wireless connection and wireless connection automatically turned off as soon wired connection comes in effect . it supports configuration lock down so as to avoid tampering . Single sign on is also supported with various encryption algorithms like WPA/WPA2/Dynamic Wep etc . </font></p>
<p>The SecureW2 Enterprise Client supports the following EAP types:</p>
<ul>
<ul>
<li>EAP-GTC </li>
<li>EAP-PEAP </li>
<li>EAP-SIM </li>
<li>EAP-TTLS </li>
</ul>
</ul>
<p>SecureW2 can also help out on the deployment. It can provision the authentication settings via XML, INF or INI for silent and non-silent installations. It can also create MSI packages containing both the settings and the X.509 Certificates.</p>
<p><a href="http://www.cisco.com/en/US/products/ps7034/index.html">Cisco Secure Services Client</a>&#160; Cisco Secure Services Client (SSC) is a software supplicant that helps you deploy a single authentication framework to access both wired and wireless networks. It provides 802.1X (Layer 2) user and device authentication and manages user and device identity and the network-access protocols required for secure access.It&#8217;s actually a rebranded and updated version of Meetinghouse&#8217;s old AEGIS SecureConnect software application. It provides support for a variety of EAP types, including their own:</p>
<ul>
<ul>
<li>
<div align="left">EAP-FAST </div>
</li>
<li>
<div align="left">EAP-GTC (Windows 2000/XP only) </div>
</li>
<li>
<div align="left">EAP-LEAP </div>
</li>
<li>
<div align="left">EAP-MD5 (Windows 2000/XP only) </div>
</li>
<li>
<div align="left">EAP-PEAP </div>
</li>
<li>
<div align="left">EAP-TLS (Windows 2000/XP only) </div>
</li>
<li>
<div align="left">EAP-TTLS (Windows 2000/XP only) </div>
</li>
</ul>
</ul>
<p align="justify">The Cisco Secure Services Client features integrated VPN client capabilities, XML-based provisioning of authentication details, and the ability prevent configuration changes by the end-users</p>
<p align="justify"><a href="http://hostap.epitest.fi/wpa_supplicant/">WPA_Supplicant</a> is open source initiative and available for various operating systems like Linux , Win Xp, Free BSD , MAC , OSX etc , code structure is such that it can be easily complied for various other operating systems and drivers.it has both command mode (wpa_cli) and GUI mode (wpa_gui) for configuration, it is quite advance and up to date supplicant and does support newly developed features like WPS(wi-fi protected setup) and 802.11 r (fast roaming), WPS is only supported for WPA/WPA2-PSK. Long list of EAP types supported by wpa_supplicant is as follows </p>
<ul>
<ul>
<li>EAP-AKA </li>
<li>EAP-FAST </li>
<li>EAP-GPSK </li>
<li>EAP-GTC </li>
<li>EAP-IKEv2 </li>
<li>EAP-LEAP </li>
<li>EAP-MD5 </li>
<li>EAP-MSCHAPv2 </li>
<li>EAP-OTP </li>
<li>EAP-PAX </li>
<li>EAP-PEAP </li>
<li>EAP-SAKE </li>
<li>EAP-SIM </li>
<li>EAP-TLS </li>
<li>EAP-TNC</li>
<li>EAP-TTLS </li>
</ul>
</ul>
<p>Before selecting any&#160; supplicant we should first think of our requirement and then the feature set of supplicant . Further ease of configuration for should also be taken care of .If select too bulky supplicant with mammoth options for configuration&#160; we may end up never using it perfectly . Do let me know you opinion in the comments section.</p>
]]></content:encoded>
			<wfw:commentRss>http://digitallyalive.com/various-802-1x-supplicants.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to speed up your LAN.</title>
		<link>http://digitallyalive.com/how-to-speed-up-your-lan.html</link>
		<comments>http://digitallyalive.com/how-to-speed-up-your-lan.html#comments</comments>
		<pubDate>Tue, 11 May 2010 02:34:22 +0000</pubDate>
		<dc:creator>bharat</dc:creator>
				<category><![CDATA[Featured]]></category>

		<guid isPermaLink="false">http://digitallyalive.com/how-to-speed-up-your-lan.html</guid>
		<description><![CDATA[I am running a small business consists of 4-5 computers with wired LAN connection and a networked printer too , for me network speed is very important so  should i change NIC , buy a ultra fast server or change  cable etc , is typical question  asked from several of my friends so in this [...]]]></description>
			<content:encoded><![CDATA[<p></p><div class="tweetmeme_button" style="clear:left; float: left; margin-right:10px; margin-top:10px">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fdigitallyalive.com%2Fhow-to-speed-up-your-lan.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fdigitallyalive.com%2Fhow-to-speed-up-your-lan.html&amp;source=digitallyalive&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p><em>I am running a small business consists of 4-5 computers with wired LAN connection and a networked printer too , for me network speed is very important so  should i change NIC , buy a ultra fast server or change  cable etc , is typical question  asked from several of my friends so in this article i am trying  to summarize analysis which we did in various scenarios in various sizes of LAN.</em></p>
<p><span id="more-398"></span></p>
<p>First we should try to understand essentially we are talking about network speed not the internet speed, which depends broadband connection plan you choose and how much bandwidth your ISP is providing to you , so keeping this in mind lets discuss the factors affecting our LAN speed.</p>
<h2>Ethernet Speed :-</h2>
<p>First make sure all ethernet adapters in your LAN are at least of 100mbps speed , After changing you can see a noticeable  change in the LAN performance , although same incremental performance improvement can not be observed when we shift from 100 mbps to gigabit ethernet see  <a href="http://digitallyalive.com/achieve-maximum-performance-with-gigabit-nic.html">Achieve maximum performance with Gigabit Nic.</a> </p>
<h2>Cable quality :-</h2>
<p>Till  ultra fast 802.11n wireless devices are not reliably gives good performance lets stick to our cabled LAN for high speed data transfer , you should always take into account quality of shielding to CAT cable ,connectors and the connection joint . Typically even a small cable with bad shielding and poor connections can perform as poorly as a long cable , specified maximum length of cable as per specification is 100 mtr , but we should try to squeeze cable length as much possible.</p>
<h2>Server Installation :-</h2>
<p>With help of network analyzers we should analyze typical usage of our LAN, although beast(network analyzers) is very expensive and can not be afford by a small scale business , still taking it on loan even for a single day for analysis  will be enough for us to obtain the usage pattern of our LAN. If the usage pattern is mostly between various machines and most of the users are typically concerned for some sort of particular environment for their job(typical environment of an organization where users are developing application and need compilation environment) so you can install a central server repository and create login for different users ,do keep in mind the configuration of your server it should be high end, initially it may seem a costly investment but over a period of time you will admire this .</p>
<h2>Peer to Peer Usage :-</h2>
<p>you can either ban P2P usage completely or at least try to set a plausible limit , reason being  P2P is fast and if these connections persist in your LAN for long time it may clogged the LAN and other users may feel the annoying heat of slowing network.</p>
<h2>Printer :-</h2>
<p>Typically printer is a very slow device and making your LAN fast can not change its state if it is slow , but printer works on spooling mechanism , which essentially makes sure if we give print command the data is stored on the hard drive of the system to which printer is connected , so if we change the hard drive to some high speed hard drive like solid state of other high rpm options then we should see some considerable incremental speed gain for printer as well .</p>
<h2>system activity and hard drives</h2>
<p>if we are transferring data between two computers and simultaneously we are doing some other CPU intensive job on the same system then  we may witness slow network speed , but this time bottle neck is our computer not the network . similarly  if our network job like copying involves lot of hard drive operations then  bottleneck  may be hard drive speed rather then LAN .</p>
<p>So friends ! how do you plan to maximize your LAN speed,Please  share your comments</p>
]]></content:encoded>
			<wfw:commentRss>http://digitallyalive.com/how-to-speed-up-your-lan.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Achieve maximum performance with Gigabit Nic.</title>
		<link>http://digitallyalive.com/achieve-maximum-performance-with-gigabit-nic.html</link>
		<comments>http://digitallyalive.com/achieve-maximum-performance-with-gigabit-nic.html#comments</comments>
		<pubDate>Mon, 10 May 2010 15:09:46 +0000</pubDate>
		<dc:creator>bharat</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[LINUX]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[gigabit ethernet]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[throughput]]></category>

		<guid isPermaLink="false">http://digitallyalive.com/achieve-maximum-performance-with-gigabit-nic.html</guid>
		<description><![CDATA[i am sure most of us buy Gigabit Nic having climbing expectations for our network’s performance, so do i , when i bought this card from Hardware store i was having high dreams of multiplying my network speed with 10(i was having 100 mbps Ethernet card), but as soon as i installed it i was [...]]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://digitallyalive.com/achieve-maximum-performance-with-gigabit-nic.html" title="Permanent link to Achieve maximum performance with Gigabit Nic."><img class="post_image alignright remove_bottom_margin frame" src="http://digitallyalive.com/wp-content/uploads/2010/05/fire-ball-black-hot-burning.jpg" width="196" height="168" alt="Post image for Achieve maximum performance with Gigabit Nic." /></a>
</p><div class="tweetmeme_button" style="clear:left; float: left; margin-right:10px; margin-top:10px">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fdigitallyalive.com%2Fachieve-maximum-performance-with-gigabit-nic.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fdigitallyalive.com%2Fachieve-maximum-performance-with-gigabit-nic.html&amp;source=digitallyalive&amp;style=normal&amp;hashtags=gigabit+ethernet,networking,throughput,Windows" height="61" width="50" /><br />
			</a>
		</div>
<p>i am sure most of us buy Gigabit Nic having climbing expectations for our network’s performance, so do i , when i bought this card from Hardware store i was having high dreams of multiplying my network speed with 10(i was having 100 mbps Ethernet card), but as soon as i installed it i was quite dismayed .So in this article we will discuss how to maximize gains when switch over to gigabit nic from 10/100 mbps nic.</p>
<p><span id="more-387"></span></p>
<p>We should always take into consideration various components of our computing machine, effectively the maximum speed which you can achieve is dependent on the type of operation you are doing and the speed of the slowest component used in the operation e.g if you are doing a copy operation from one pc to another pc through gigabit Ethernet card then you practically you can not achieve more speed than writing speed  of your hard drive.</p>
<p>In most of modern computers Ethernet card communicate to cpu via a PCI bus operating which itself is operating at 33 Mhtz , which in turn can deliver maximum up to 133MBps , and if you do have some other PCI hungry card in system then maximum throughput achieved further gets limited. To over come this if shift towards 64bit processor and 66 Mhtz clock speed for PCi bus then this limitation can be easily overcome, as with this this combination we can achieve maximum 532MBps , even if we don&#8217;t change to 64bit bus width then also 266MBps is confirmed from hardware point of view of PCI slot.</p>
<p>Now lets move towards software , we will discuss changes which can be done for Windows and Linux . Now with above said changes we have fast enough hardware interface which can support our gigabit Ethernet card , but still if we don’t run software judicially with optimized programmed parameters then also we are bound to see lower throughput. Some of the important parameters and the way they can be manipulated  are given below .</p>
<h2><strong>TCP Parameters :-</strong> </h2>
<p>TCP parameters are most  important factors which should be looked upon , this factor is negotiated while starting  connection , further it influence the pumping speed of data from tcp layer to lower layers .To configure this in Linux we are using sysctl utility. So following commands needs to be executed</p>
<pre class="c#">sysctl net.core.wmem_max=8388608
sysctl net.core.wmem_default = 65536
sysctl net.core.rmem_default = 65536
sysctl net.ipv4.tcp_window_scaling=1
sysctl net.ipv4.tcp_mem= 98304 131072 196608</pre>
<p>For windows machine you need to change registry settings at following location</p>
<p><tt>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters</tt></p>
<p>We need to add a registry DWORD named <tt>TcpWindowSize</tt>, and enter a sufficiently large size. 131400 (make sure you click on &#8216;decimal&#8217;) should be enough.<tt>Tcp1323Opts</tt> should be set to 3. This enables both rfc1323 scaling and timestamps.</p>
<p>One last important note for Windows XP users: If you&#8217;ve installed Service Pack 2, then there is another likely culprit for poor network performance. Explained in &#8216;knowledge base article 842264(http://support.microsoft.com/?kbid=842264), Microsoft says that disabling Internet Connection Sharing after an SP2 install should fix performance issues.</p>
<p>after doing all changes for my Linux machine i was able to maximize throughput and was able to achieve 825Mbps through my Gigabit card .</p>
<p>Further if your applications use UDP significantly then you can look for similar settings for UDP as well.</p>
<p>So friends how do you plan to maximize throughput , do share in comments section</p>
]]></content:encoded>
			<wfw:commentRss>http://digitallyalive.com/achieve-maximum-performance-with-gigabit-nic.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Memory Leak detector for User space Program in Linux</title>
		<link>http://digitallyalive.com/memory-leak-detector-for-user-space-program-in-linux.html</link>
		<comments>http://digitallyalive.com/memory-leak-detector-for-user-space-program-in-linux.html#comments</comments>
		<pubDate>Thu, 29 Apr 2010 16:43:26 +0000</pubDate>
		<dc:creator>bharat</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[LINUX]]></category>
		<category><![CDATA[memory leak detector]]></category>

		<guid isPermaLink="false">http://digitallyalive.com/memory-leak-detector-for-user-space-program-in-linux.html</guid>
		<description><![CDATA[Have you ever written any C/C++ program ? if you did then i am sure many times you felt despaired as your program is crashing due to some unknown reasons, those reasons  remain mystery till we fix them by applying some brute force methods . Many times the problem is of either heap/stack over flow [...]]]></description>
			<content:encoded><![CDATA[<p></p><div class="tweetmeme_button" style="clear:left; float: left; margin-right:10px; margin-top:10px">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fdigitallyalive.com%2Fmemory-leak-detector-for-user-space-program-in-linux.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fdigitallyalive.com%2Fmemory-leak-detector-for-user-space-program-in-linux.html&amp;source=digitallyalive&amp;style=normal&amp;hashtags=LINUX,memory+leak+detector" height="61" width="50" /><br />
			</a>
		</div>
<p>Have you ever written any C/C++ program ? if you did then i am sure many time<a href="http://digitallyalive.com/wp-content/uploads/2010/04/leakybucket_main_pic.jpg"><img style="display: inline; margin-left: 0px; margin-right: 0px; border-width: 0px;" title="leaky-bucket_main_pic" src="http://digitallyalive.com/wp-content/uploads/2010/04/leakybucket_main_pic_thumb.jpg" border="0" alt="leaky-bucket_main_pic" width="158" height="174" align="right" /></a>s you felt despaired as your program is crashing due to some unknown reasons, those reasons  remain mystery till we fix them by applying some brute force methods . Many times the problem is of either heap/stack over flow or memory leaking (Not freeing at right places), so to come out of these problem we are introducing a new tool which has won many award in its life time and one of the most admirable freely available tool for detecting memory leak and stack/heap overflow.</p>
<p><span id="more-381"></span></p>
<p>you can find this tool at     <a title="http://valgrind.org/" href="http://valgrind.org/">http://valgrind.org/</a>, i was checking the rating and error detection proficiency of <a href="http://valgrind.org/">valgrind</a> on internet and found good reviews and ratings about it , so lets see stepwise tutorial how we can be benefitted by it .</p>
<h2> <span style="text-decoration: underline;">Installation </span></h2>
<p>Type the following command under CentOS / Redhat / RHEL Linux:</p>
<pre class="c++">
<blockquote style="margin-right: 0px;" dir="ltr">

yum install vamgrind</blockquote>
</pre>
<p>Type the following command under Debian / Ubuntu Linux:</p>
<pre class="c++">
<blockquote>

apt-get install vamgrind</blockquote>
</pre>
<p>Size of installation is ~23 Mb , it may take some time depending upon you network speed .</p>
<h2><span style="text-decoration: underline;">How to use vamgrind</span></h2>
<p>you can normally run vamgrind like this</p>
<pre class="c++">
<blockquote>

./a.out arg1 arg2</blockquote>
</pre>
<p>or</p>
<pre class="c++">
<blockquote>

/path/to/myapp arg1 arg2</blockquote>
</pre>
<p>to run your program with memcheck option run following command.</p>
<pre class="c++">
<blockquote>

valgrind --leak-check=yes ./a.out arg1 arg2valgrind --leak-check=yes /path/to/myapp arg1 arg2</blockquote>
</pre>
<h2>Sample Program</h2>
<p>suppose we write sample program test.c with following logic</p>
<pre class="c#:showcolumns" style="width: 576px; height: 220px;">
#include &lt;stdlib.h&gt; 

void f(void) 

{

 int* x = malloc(10 * sizeof(int)); 

 x[10] = 0; // problem 1: heap block overrun 

} // problem 2: memory leak -- x not freed 

int main(void) 

{ 

  f(); 

  return 0; 

}</pre>
<p>we compiled and then open the output file with following commands</p>
<pre class="c++">
gcc test.c  /* you can also specify –g option with gcc if you want to see the

<span style="background-color: #eeeeee;">line number in code which is causing the problem</span>*/
valgrind --log-file=output.file --leak-check=yes --tool=memcheck ./a.out
vi output.file</pre>
<p>Contents of output file most likely be like this</p>
<pre class="c++">==19182== Invalid write of size 4
  ==19182==    at 0x804838F: f (example.c:6)
  ==19182==    by 0x80483AB: main (example.c:11)
  ==19182==  Address 0x1BA45050 is 0 bytes after a block of size 40 alloc'd
  ==19182==    at 0x1B8FF5CD: malloc (vg_replace_malloc.c:130)
  ==19182==    by 0x8048385: f (example.c:5)
  ==19182==    by 0x80483AB: main (example.c:11)</pre>
<p>The stack trace tells you where the leaked memory was allocated. Memcheck cannot tell you why the memory leaked, unfortunately. (Ignore the &#8220;vg_replace_malloc.c&#8221;, that&#8217;s an implementation detail.)</p>
<p>There are several kinds of leaks; the two most important categories are:</p>
<ul>
<li>&#8220;definitely lost&#8221;: your program is leaking memory &#8212; fix it!</li>
<li>&#8220;probably lost&#8221;: your program is leaking memory, unless you&#8217;re doing funny things with pointers (such as moving them to point to the middle of a heap block).</li>
</ul>
<p>Memcheck also reports uses of uninitialized values, most commonly with the message &#8220;Conditional jump or move depends on uninitialized value(s)&#8221;. It can be difficult to determine the root cause of these errors. Try using the <code>--track-origins=yes</code> to get extra information. This makes Memcheck run slower, but the extra information you get often saves a lot of time figuring out where the uninitialised values are coming from.</p>
<h2>Caveats</h2>
<p>Memcheck is not perfect; it occasionally produces false positives, and there are mechanisms for suppressing these (see <a href="http://valgrind.org/manual-core.html#manual-core.suppress">Suppressing errors</a> in the <a href="http://valgrind.org/manual.html">Valgrind User Manual</a>). However, it is typically right 99% of the time, so you should be wary of ignoring its error messages. After all, you wouldn&#8217;t ignore warning messages produced by a compiler, right? The suppression mechanism is also useful if Memcheck is reporting errors in library code that you cannot change. The default suppression set hides a lot of these, but you may come across more.</p>
<p>Memcheck cannot detect every memory error your program has. For example, it can&#8217;t detect out-of-range reads or writes to arrays that are allocated statically or on the stack. But it should detect many errors that could crash your program (eg. cause a segmentation fault).</p>
<p>Try to make your program so clean that Memcheck reports no errors. Once you achieve this state, it is much easier to see when changes to the program cause Memcheck to report new errors. Experience from several years of Memcheck use shows that it is possible to make even huge programs run Memcheck-clean. For example, large parts of KDE, OpenOffice.org and Firefox are Memcheck-clean, or very close to it.</p>
<p>With my personal experience i can say its one of the best tool available , i really enjoyed working with it , what do you say , do send me your comments in the comments section .</p>
]]></content:encoded>
			<wfw:commentRss>http://digitallyalive.com/memory-leak-detector-for-user-space-program-in-linux.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Download Flash Based videos in ubuntu</title>
		<link>http://digitallyalive.com/download-flash-based-videos-in-ubuntu.html</link>
		<comments>http://digitallyalive.com/download-flash-based-videos-in-ubuntu.html#comments</comments>
		<pubDate>Sun, 18 Apr 2010 12:33:33 +0000</pubDate>
		<dc:creator>bharat</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[LINUX]]></category>

		<guid isPermaLink="false">http://digitallyalive.com/download-flash-based-videos-in-ubuntu.html</guid>
		<description><![CDATA[Many times we are watching some videos on some flash based hosting site(youtube) and wants to download it, so that we can play it offline , this helps us to watch the content when we dont have access to internet and also eliminate the need to always keep updating our flash based plugin for browser whenever(very often)it complains . Today to [...]]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://digitallyalive.com/download-flash-based-videos-in-ubuntu.html" title="Permanent link to Download Flash Based videos in ubuntu"><img class="post_image alignright remove_bottom_margin frame" src="http://digitallyalive.com/wp-content/uploads/2010/04/flash.png" width="175" height="150" alt="Post image for Download Flash Based videos in ubuntu" /></a>
</p><div class="tweetmeme_button" style="clear:left; float: left; margin-right:10px; margin-top:10px">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fdigitallyalive.com%2Fdownload-flash-based-videos-in-ubuntu.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fdigitallyalive.com%2Fdownload-flash-based-videos-in-ubuntu.html&amp;source=digitallyalive&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p><a href="http://digitallyalive.com/wp-content/uploads/2010/04/flash.png"></a></p>
<p>Many times we are watching some videos on some flash based hosting site(youtube) and wants to download it, so that we can play it offline , this helps us to watch the content when we dont have access to internet and also eliminate the need to always keep updating our flash based plugin for browser whenever(very often)it complains <img src='http://digitallyalive.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  . Today to facilitates this we are introducing a tool which is specially designed for debian platforms e.g ubuntu .</p>
<p><span id="more-367"></span></p>
<p>you can visit the project site <a href="http://code.google.com/p/get-flash-videos/">here</a>,  Following are the instructions .</p>
<ol>
<li><strong>Install get-flash-videos in Ubuntu</strong>
<ol>
<li>Open command prompt in ubuntu system.</li>
<li>sudo apt-get install libwww-mechanize-perl libxml-simple-perl</li>
<li>wget <a href="http://get-flash-videos.googlecode.com/files/get-flash-videos_1.21-1_all.deb">http://get-flash-videos.googlecode.com/files/get-flash-videos_1.21-1_all.deb</a></li>
<li>sudo dpkg -i get-flash-videos_1.21-1_all.deb<strong> </strong></li>
</ol>
</li>
<li><strong>get-flash-videos Syntax</strong>
<ol>
<li>get_flash_videos url..</li>
</ol>
</li>
<li><strong>Usage Examples</strong>
<ol>
<li>Play a video get_flash_video <a href="http://www.site.com/video">http://www.site.com/video</a></li>
<li>Download a video    get_flash_videos &#8220;<a href="http://some.site/video?f=1&amp;v=1234">http://some.site/video?f=1&amp;v=1234</a>&#8220;  note quotes are required for URLs with special characters like ‘&amp;’ )</li>
<li>Play the URL on the clipboard (UNIX):     xclip -o | xargs get_flash_videos -y –p</li>
<li>Play the first video matching “Open Source”: get_flash_videos -y -p Open Source</li>
<li>Install a plugin:get_flash_videos &#8211;add-plugin <a href="http://website.com/PluginName.pm">http://website.com/PluginName.pm</a></li>
</ol>
</li>
</ol>
<p>i also tried this on my ubuntu box and it works flawlessly , following is the the picture depicting thousand words.</p>
<p> <img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px;" title="Screenshot-1" src="http://digitallyalive.com/wp-content/uploads/2010/04/Screenshot1_thumb.png" border="0" alt="Screenshot-1" width="444" height="398" /></p>
<p>i played some video from you tube and it download as well as played it well.</p>
<p>finally the websites supported are</p>
<ul>
<li>YouTube, eHow, Brightcove (used by many sites like Channel 4, Daily Telegraph …), BBC (news, etc), Metacafe, 5min, Google, fliqz, nicovideo, vimeo, Blip, Break, Collegehumor, Muzu, Sevenload, Megavideo, Wat.tv.</li>
<li>it also includes a ‘generic’ method which works on many other sites.</li>
</ul>
<p>Do remember to share your experiences with me in comments section.</p>
]]></content:encoded>
			<wfw:commentRss>http://digitallyalive.com/download-flash-based-videos-in-ubuntu.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Kill Unresponsive Programs in Linux.</title>
		<link>http://digitallyalive.com/how-to-kill-unresponsive-programs-in-linux.html</link>
		<comments>http://digitallyalive.com/how-to-kill-unresponsive-programs-in-linux.html#comments</comments>
		<pubDate>Tue, 30 Mar 2010 15:14:00 +0000</pubDate>
		<dc:creator>bharat</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://digitallyalive.com/?p=286</guid>
		<description><![CDATA[How does it feel when our system hangs and stop responding to our requests ? in windows system all we do is press ctrl+alt+del combination and see which process is consuming CPU and not allowing other processes to get served  , we may kill this process from here as well. System Monitor tool This is [...]]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://digitallyalive.com/how-to-kill-unresponsive-programs-in-linux.html" title="Permanent link to How to Kill Unresponsive Programs in Linux."><img class="post_image alignright remove_bottom_margin frame" src="http://digitallyalive.com/wp-content/uploads/2010/03/sorry_crying_cartoon.jpg" width="137" height="135" alt="Post image for How to Kill Unresponsive Programs in Linux." /></a>
</p><div class="tweetmeme_button" style="clear:left; float: left; margin-right:10px; margin-top:10px">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fdigitallyalive.com%2Fhow-to-kill-unresponsive-programs-in-linux.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fdigitallyalive.com%2Fhow-to-kill-unresponsive-programs-in-linux.html&amp;source=digitallyalive&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>How does it feel when our system hangs and stop responding to our requests ? in windows system all we do is press ctrl+alt+del combination and see which process is consuming CPU and not allowing other processes to get served  , we may kill this process from here as well.</p>
<p><span id="more-286"></span></p>
<p><strong> </strong></p>
<h2><strong> System Monitor tool </strong></h2>
<p>This is simililar to windows task manager with tht exception that it gives lot more information regarding the system state and you can easily find the misbehaving process and kill it immediadely.following pic shows it</p>
<p style="text-align: center;">
<h2 style="text-align: left;"><a href="http://digitallyalive.com/wp-content/uploads/2010/03/gnomessytem.png"><img class="size-medium wp-image-339 aligncenter" title="gnomessytem" src="http://digitallyalive.com/wp-content/uploads/2010/03/gnomessytem-300x203.png" alt="" width="300" height="203" /></a></h2>
<h2 style="text-align: left;">Using Kill command</h2>
<p style="text-align: left;">Most of times when system hangs you can not use Gui base tools like system monitor tool, in this case you can use shell base tools, to go to shell press ctrl+alt+F1 and login to command prompt , here you can run</p>
<p><strong>kill &lt;processID&gt;</strong></p>
<p><strong>to know process id run</strong></p>
<p><strong>ps -ax |more and look for your process name and process id will be written adjacent to it .</strong></p>
<p>Hopefully after that you can restore your GUI so just execute Ctrl + Alt +F7 to go back to GUI mode.</p>
<h2>Pkill command :-</h2>
<p>Most of the time is happens that we dont  know the process id and feeling too lazy to run ps command and look for our process , geeks in linux community have the solution run</p>
<p><strong>pkill &lt;processname&gt;</strong></p>
<p><strong><a href="http://digitallyalive.com/wp-content/uploads/2010/03/pkill.png"><img class="aligncenter size-medium wp-image-341" title="pkill" src="http://digitallyalive.com/wp-content/uploads/2010/03/pkill-300x36.png" alt="" width="300" height="36" /></a></strong></p>
<h2>Pgrep command :-</h2>
<p>To know the process id we can also directly issue pgrep command following is the example.</p>
<p><a href="http://digitallyalive.com/wp-content/uploads/2010/03/pgrep.png"><img class="aligncenter size-medium wp-image-342" title="pgrep" src="http://digitallyalive.com/wp-content/uploads/2010/03/pgrep-300x71.png" alt="" width="300" height="71" /></a></p>
<h2>Xkill command :-</h2>
<p>When GUI is responding  you can use xkill command and mouse pointer will get convert into a X  pointer , you just click on the application which is not responding  application should get terminated immediately, <a href="http://digitallyalive.com/wp-content/uploads/2010/03/xkill.png"><img class="aligncenter size-medium wp-image-344" title="xkill" src="http://digitallyalive.com/wp-content/uploads/2010/03/xkill-300x105.png" alt="" width="300" height="105" /></a></p>
<h3><span style="color: #000000;">Using the ‘killall’ command</span></h3>
<p>Last but not the least, there is the killall command. Terrifying as it may seem, it doesn’t kill all the processes running on the computer. Instead it is used to kill multiple instances of the same program. eg <strong>killall firefox</strong> will kill all windows and Firefox profiles that might be currently executing.</p>
<p>There is lot more for these commands to learn, you can search for manual of these commands and learn more tricks , Meanwhile what do you do when your  Linux system becomes unresponsive ? Do leave your comments.</p>
<p><img src="file:///tmp/moz-screenshot-1.jpg" alt="" /></p>
<p><img src="file:///tmp/moz-screenshot.jpg" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://digitallyalive.com/how-to-kill-unresponsive-programs-in-linux.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to improve Wi-Fi Signal  Strength</title>
		<link>http://digitallyalive.com/how-to-enhance-wi-fi-experience.html</link>
		<comments>http://digitallyalive.com/how-to-enhance-wi-fi-experience.html#comments</comments>
		<pubDate>Sun, 24 Jan 2010 16:22:54 +0000</pubDate>
		<dc:creator>bharat</dc:creator>
				<category><![CDATA[Wi-fi]]></category>
		<category><![CDATA[wi-fi signal strength]]></category>
		<category><![CDATA[wifi]]></category>
		<category><![CDATA[wireless router user experience]]></category>

		<guid isPermaLink="false">http://digitallyalive.com/?p=288</guid>
		<description><![CDATA[Friends, if you have any wireless router at your home or at your workplace ,simply dont know why it always sucks and the kind of weak signal phobia always stir in your mind. you are scratching why you are always getting low signal strenght then please consider following points before shifting your gears towards wired [...]]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://digitallyalive.com/how-to-enhance-wi-fi-experience.html" title="Permanent link to How to improve Wi-Fi Signal  Strength"><img class="post_image alignright remove_bottom_margin frame" src="http://digitallyalive.com/wp-content/uploads/2010/01/Cisco_aironet1200_b.jpg" width="200" height="150" alt="Post image for How to improve Wi-Fi Signal  Strength" /></a>
</p><div class="tweetmeme_button" style="clear:left; float: left; margin-right:10px; margin-top:10px">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fdigitallyalive.com%2Fhow-to-enhance-wi-fi-experience.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fdigitallyalive.com%2Fhow-to-enhance-wi-fi-experience.html&amp;source=digitallyalive&amp;style=normal&amp;hashtags=wi-fi+signal+strength,wifi,wireless+router+user+experience" height="61" width="50" /><br />
			</a>
		</div>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } -->Friends, if you have any wireless router at your home or at your workplace ,simply dont know why it always sucks and the kind of weak signal <img src='http://digitallyalive.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  phobia always stir in your mind. you are scratching why you are always getting low signal strenght then please consider following points before shifting your gears towards wired networking </p>
<p><span id="more-288"></span></p>
<h3>Position Matters    :-</h3>
<p>It might happen that your access point is not positioned correctly with respect to your wireless client. ideally  your access point should be placed at an optimum distance from your  wireless client , research says it should not be less then one meter and should not so far away that you can not even scan your access point regularly . More over there should not be any mettalic object in the closest path between the access point and wireless client.</p>
<h3>Regular driver and firmware update</h3>
<p>You should always update your client and access point regularly , Most of the time newest driver and firmware have new features and patches for old bugs which may help you to solve any particular problem you may facing.</p>
<h3>Channel of Wifi access point</h3>
<p>WI-Fi  access point can work in both 2.4 Ghz and  5.0 Ghz band , but these access points which supports both bands are a bit costly , So if you  are having any such access point and your wifi  client can also works in 5.0 ghz then you should always put your access point in 5.0ghz , this will help you to get a clean channel where your home devices like microwave oven and cord less phone will not interfere with working of wifi device. To Know whether your device support 5.0 ghz band , put your access point in any of the channel bearing number after 14 , wait for 2 minutes and try to scan at your device if you can see access point then your device support 5.0 ghz band, if your device or wi-fi router donot work at 5.0 ghz then you should check with your microwave oven,cordless phone specification to determine on which channel exactly in 2.4ghz these are working , try to always remain away from these channel.</p>
<h3>Compatibility issues</h3>
<p>if you have wi-fi router and device of the same company then chances are quite high that they work more perfectly than any other devices . so try to buy both devices from the same brand . Usually if both devices are from the same company then these devices can use some proprietery algorithms to give you that edge in terms of signal strength and data rate.</p>
<h3>Antenna issues</h3>
<p>Wi-fi routers are fixed with omnidirectional antenna which is required to send signals in a circle, means it will be usefull in case when router is placed in the middle of the room and clients are in all directions, but in your case you might be one or a veru few clients which are taking service from wi-fi router, so to make your wi-fi router directional you replace external antenna of your access point with some high gain antenna and position it in direction towards your wifi client.</p>
<h3>Client Device check</h3>
<p>Do check it may be possible that wi-fi router is sending signals properly but there is some problem with the reception of signal at your device end , so just replace this with some borrowed adapter from some friend or relative and see if the signal strength improves, then it was your device which was culprit so try to replace it.</p>
<h3>Extended network</h3>
<p>if you are not getting good signal strength , you may look towards extension of your network by connecting another access point  with your previous access point. this is very easy task , you need to connect new access point with the previous one through the beck end with the help of some cat-5 ethernet coaxial cable , configure the wi-fi distribution service(WDS) in between them and bingo !!!!!  you have extended your network to use in the distant corners of your house.</p>
<p>If you need any particular help regarding any of  configuration, do let me know i will be glad to help.</p>
]]></content:encoded>
			<wfw:commentRss>http://digitallyalive.com/how-to-enhance-wi-fi-experience.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to reduce memory leakage by firefox in windows</title>
		<link>http://digitallyalive.com/how-to-reduce-memory-leakage-by-firefox-in-windows.html</link>
		<comments>http://digitallyalive.com/how-to-reduce-memory-leakage-by-firefox-in-windows.html#comments</comments>
		<pubDate>Wed, 16 Dec 2009 16:39:26 +0000</pubDate>
		<dc:creator>bharat</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://digitallyalive.com/?p=281</guid>
		<description><![CDATA[So friends we all know in terms of memory usage and leakage as well firefox sucks and make speed of system miserable, if we open multiple browser windows with multiple tabs in it . This does not means that you should simply run away from it , geeks in this world never let there minds [...]]]></description>
			<content:encoded><![CDATA[<p></p><div class="tweetmeme_button" style="clear:left; float: left; margin-right:10px; margin-top:10px">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fdigitallyalive.com%2Fhow-to-reduce-memory-leakage-by-firefox-in-windows.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fdigitallyalive.com%2Fhow-to-reduce-memory-leakage-by-firefox-in-windows.html&amp;source=digitallyalive&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>So friends we all know in terms of memory usage and leakage as well firefox sucks and make speed of system miserable, if we open multiple browser windows with multiple tabs in it . This does not means that you should simply run away from it , geeks in this world never let there minds locks and here they introduced solution to this.<span id="more-281"></span>i just found a useful plugin which can help us to tame the memory usage of firefox , you can install this from <a href="https://addons.mozilla.org/en-US/firefox/addon/53880/">here</a> . Name of this wonderful plugin is memory fox  . To let you install this plugin you need to enable check box which says let me install experimental plugins. To start installation you should create your account first , if you dont want to make yours , then send me a message i will give you mine .</p>
<p><!--Ads2--></p>
<p>To compare the performance of my computer system before and after using this plugin i first disable this plugin and analyze that if i open 4 tabs in one browser window then memory captured by firefox is 256 megabyte, but if we keep this open for one hour then memory usage goes upto 1 giga byte.This is simply unaccepatable. So i enable this plugin by tools-&gt;memory fox  and then actiavte this from here. After this i prompted to restart my browser . And vollla !!!!!!!! just to test my veil i opened 20 tabs in a single browser . i expected memory usage in gbytes but plugin did its job pretty well in taming the firefox the overall memory usage was 40 mega bytes. i wondered and patted my back for finding such solution for such weird problem of mine, but engineer in my  soul start weilding its sword for finding the miracle behind this magic and here comes the answer from the gekky lord <img src='http://digitallyalive.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  the author himslf  expalin on its <a href="http://memoryfox.blogspot.com/">website</a></p>
<p><em>Memory Fox focuses on two ( 2 ) types of memory usage and with flushing for memory recovery. When resource requirements ( Stack and Heap ) have been reached, according to the user’s preset option settings, the memory will be flushed and recovered from Fragmented Orphaned Ram memories.</em></p>
<p>So this made my  doubts clear <img src='http://digitallyalive.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>if you have any  doubt regarding this plugin please drop me a comment i would love to  answer your queries</p>
<p>Please note plugin is only for WINXP and vista , it is not available for Linux .</p>
<p><!--Ads2--></p>
]]></content:encoded>
			<wfw:commentRss>http://digitallyalive.com/how-to-reduce-memory-leakage-by-firefox-in-windows.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to setup your wordpress blog locally on ubuntu 9.04</title>
		<link>http://digitallyalive.com/how-to-setup-your-blog-locally-on-ubuntu-9-04.html</link>
		<comments>http://digitallyalive.com/how-to-setup-your-blog-locally-on-ubuntu-9-04.html#comments</comments>
		<pubDate>Tue, 15 Dec 2009 16:33:14 +0000</pubDate>
		<dc:creator>bharat</dc:creator>
				<category><![CDATA[LINUX]]></category>

		<guid isPermaLink="false">http://digitallyalive.com/?p=260</guid>
		<description><![CDATA[Setting Blog locally:- Follow step by step tutorial This tutorial assumes that  you have sudo permission in ubuntu, So open gnome terminal in your machine and start executing following steps  Install Apache server by running following  command . Sudo apt-get install apache2 follow the instructions to install apache , once the installation is finished you [...]]]></description>
			<content:encoded><![CDATA[<p></p><div class="tweetmeme_button" style="clear:left; float: left; margin-right:10px; margin-top:10px">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fdigitallyalive.com%2Fhow-to-setup-your-blog-locally-on-ubuntu-9-04.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fdigitallyalive.com%2Fhow-to-setup-your-blog-locally-on-ubuntu-9-04.html&amp;source=digitallyalive&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<h3>Setting Blog locally:-</h3>
<p style="margin-left: 40px;">Follow step by step tutorial</p>
<p style="margin-left: 40px;">This tutorial assumes that  you have sudo permission in ubuntu, So open gnome terminal in your machine and start executing following steps <span id="more-260"></span></p>
<p><!--Ads2--></p>
<ul>
<li>Install Apache server by running following  command .</li>
</ul>
<p style="margin-left: 40px;"><strong>Sudo apt-get install apache2</strong></p>
<p style="margin-left: 40px;">follow the instructions to install apache , once the installation is finished you can test whether this works fine or not , by typing 127.0.0.1 in browser , &#8220;it works&#8221; should appear in your browser.</p>
<p><code></code><!--more--></p>
<ul>
<li> Install mysql server by running following command.</li>
</ul>
<p style="margin-left: 40px;"><strong>sudo apt-get install mysql-server-5.0.</strong></p>
<p style="margin-left: 40px;">installation may take long depending on your internet speed, and you will be required to enter root password during this installation.</p>
<ul>
<li>install php server.</li>
</ul>
<p style="margin-left: 40px;"><strong>sudo apt-get install php5</strong>.</p>
<ul>
<li>install PHP module for mysql</li>
</ul>
<p style="margin-left: 40px;"><strong>sudo apt-get install php5-mysql</strong></p>
<ul>
<li>Download latest wordpress by clicking the following link.</li>
</ul>
<p style="margin-left: 40px;"><a href="http://wordpress.org/latest.tar.gz">wordpress<br />
</a></p>
<p style="margin-left: 40px;">Now we have all the softwares installed , all we need is to configure these .follow  these steps in order.</p>
<p style="margin-left: 40px;">first we need to enter the type of webpages we want our apache to support , so add following instructions at the end of apache2.conf file.<br />
first open this file by executing following command</p>
<p style="margin-left: 40px;"><strong>sudo gedit /etc/apache2/apache2.conf.</strong></p>
<p style="margin-left: 40px;">Add following lines at the end of this file.</p>
<p style="margin-left: 40px;">AddType application/x-httpd-php .php .phtml .php3<br />
AddType application/x-httpd-php-source .phps</p>
<p style="margin-left: 40px;"><strong>Save and exit the editor .<br />
</strong></p>
<p style="margin-left: 40px;">Next step is to run mysql install script , executes following commnad .</p>
<p style="margin-left: 40px;"><strong>sudo mysql_install_db</strong></p>
<p style="margin-left: 40px;">After competion log into mysql server ,</p>
<p style="margin-left: 40px;"><strong>mysql -u root –p</strong></p>
<p style="margin-left: 40px;">Enter server root password you set during installtion . if password is right you will find yourself on mysql prompt .</p>
<p style="margin-left: 40px;">now create Data base to be used by WordPress.</p>
<p style="margin-left: 40px;"><strong>CREATE DATABASE wordpress;</strong></p>
<p style="margin-left: 40px;">Now create use let us consider name of this use is wordpress ,</p>
<p style="margin-left: 40px;"><strong>CREATE USER user;</strong></p>
<p style="margin-left: 40px;">Now to create password for this user ,</p>
<p style="margin-left: 40px;"><strong>SET PASSWORD FOR user = PASSWORD(“password”);</strong></p>
<p style="margin-left: 40px;"><strong>password should be replaced with your password .</strong></p>
<p style="margin-left: 40px;">now grant all the permission to this user by execting follwoing commnad .</p>
<p style="margin-left: 40px;"><strong>GRANT ALL PRIVILEGES ON wordpress.* TO user@localhost IDENTIFIED BY ‘password’;</strong></p>
<p style="margin-left: 40px;">Now untar wordpress.tar.gz you obtain earlier in some directory in /var/www/ let us assume the name of this folder is wordpress .</p>
<p style="margin-left: 40px;">exectue tar  -zxvf wordpress.tar.gz  /var/www/</p>
<p style="margin-left: 40px;">Now lets make some changes in wordpress settings , execute follwoing commnad.</p>
<p style="margin-left: 40px;"><strong>sudo gedit /var/www/wordpress/wp-config-sample.php</strong></p>
<p style="margin-left: 40px;">now change</p>
<p style="margin-left: 40px;">Change <em>putyourdbnamehere </em>to <em>wordpress</em>.</p>
<p style="margin-left: 40px;">Change <em>usernamehere </em>to user.</p>
<p style="margin-left: 40px;">
<p style="margin-left: 40px;">Put your password to same you choose while creating this user and granting all permission by execting GRANT command .Once you have your changes made , save your changed file to /var/www/wordpress as wp-config.php.</p>
<p style="margin-left: 40px;">Now after doing these steps you should be able to run your blog on ubuntu , go to browser addressbar and type 127.0.0.01/wordpress you should be able to see the login setup page. rest all is similar to normal wordpress operation<strong>s.<br />
</strong></p>
<h3>Common Problems</h3>
<p style="margin-left: 40px;">if you dont get your wordpress running by and get some phtml.part file can not open error do remember to restart your apache server by executing following command.</p>
<p style="margin-left: 40px;"><strong>sudo  /etc/init.d/apache2 restart</strong></p>
<p style="margin-left: 40px;">This restart you should not give any warning or error related to localhost unknown if this kind of errors/warnings are being displayed then do make entry of localhost in httpd.conf by executing following commnad.<strong><br />
</strong></p>
<p style="margin-left: 40px;"><strong> sudo vim /etc/apache2/httpd.conf<br />
</strong></p>
<p style="margin-left: 40px;">enter following line in this file</p>
<p style="margin-left: 40px;"><strong>ServerName localhost<br />
</strong></p>
<p style="margin-left: 40px;">Then restarting of apache should be flawless and wordpress should run.</p>
<p style="margin-left: 40px;">Another mistakes which normally people make is  of copying the commnads while entering in SQL prompt , please dont do so as while copying commnad some times extra blanks space also gets copied and sql start giving erros of syntactial mistakes.</p>
<h2>Customization</h2>
<p style="margin-left: 40px;">if you want to change name of the blog to your blog name to be in proper sync to your original blog , visit setting section of wordpress dash board and change wordpress to the name of your blog.</p>
<p style="margin-left: 40px;">now you should be able to see your blog running by execting commnad</p>
<p style="margin-left: 40px;"><strong>127.0.0.1/nameofyourblog.<br />
</strong></p>
<p style="margin-left: 40px;">at any moment if you messed up with database you can delete this by going to sql prompt again and<br />
execute</p>
<p style="margin-left: 40px;"><strong>drop databasename ;<br />
</strong></p>
<p style="margin-left: 40px;">If you face any kind of problem do remeber to ping me by  sending comments to this article.</p>
<p style="margin-left: 40px;">
<p><script type="text/javascript">// <![CDATA[
google_ad_client = "pub-8358354379958369";
/* 300x250, created 04/11/09 */
google_ad_slot = "7174990858";
google_ad_width = 300;
google_ad_height = 250;
// ]]&gt;</script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script></p>
<p style="margin-left: 40px;">
<p style="margin-left: 40px;">
<p><a href="http://wordpress.org/latest.tar.gz"><br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://digitallyalive.com/how-to-setup-your-blog-locally-on-ubuntu-9-04.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Recover Broken Bootloader</title>
		<link>http://digitallyalive.com/how-to-recover-bootloader.html</link>
		<comments>http://digitallyalive.com/how-to-recover-bootloader.html#comments</comments>
		<pubDate>Thu, 10 Dec 2009 15:14:20 +0000</pubDate>
		<dc:creator>bharat</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[Bootloader Recovery]]></category>
		<category><![CDATA[GRUB recovery]]></category>
		<category><![CDATA[LILO recovery]]></category>

		<guid isPermaLink="false">http://digitallyalive.com/?p=215</guid>
		<description><![CDATA[when ever we decides to make our computer dual boot we may face various problems. One of this problems is operating system selection menu&#160; is not coming.if we install Microsoft operating system after installing any linux kernel base system. we can easily restore the OS selection menu. How to do it through Floppy disk. Insert [...]]]></description>
			<content:encoded><![CDATA[<p></p><div class="tweetmeme_button" style="clear:left; float: left; margin-right:10px; margin-top:10px">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fdigitallyalive.com%2Fhow-to-recover-bootloader.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fdigitallyalive.com%2Fhow-to-recover-bootloader.html&amp;source=digitallyalive&amp;style=normal&amp;hashtags=Bootloader+Recovery,GRUB+recovery,LILO+recovery,LINUX" height="61" width="50" /><br />
			</a>
		</div>
<p style="text-align: justify;"><span style="font-size: 12px;">when ever we decides to make our computer dual boot we may face various problems. One of this problems is operating system selection menu&nbsp; is not coming.if we install Microsoft operating system after installing any linux kernel base system. we can easily restore the OS selection menu.<span id="more-215"></span></span></p>
<p style="text-align: justify;"><strong><span style="font-size: 16px;"><span style="font-family: arial,helvetica,sans-serif;">How to do it through Floppy disk</span></span>.</strong></p>
<p style="margin-left: 40px;"><span style="font-size: 14px;"><span style="font-family: arial,helvetica,sans-serif;">Insert a blank floppy disk in your floppy drive.</span><br />
	</span></p>
<p><strong><span style="font-size: 16px;"><span>Windows</span></span></strong></p>
<ul>
<li><span style="font-size: 14px;"><span>download <a href="http://www.chrysocome.net/rawwrite">rawwritten</a>&nbsp; program. </span><br />
		</span></li>
<li>With button choose the SGD floppy image.</li>
<li>Click on <b>Write</b> button.</li>
<li>Wait till process is complete.</li>
</ul>
<h3><span style="font-size: 16px;">Linux</span></h3>
<p style="margin-left: 40px;">Execute following command .</p>
<p style="margin-left: 40px;">dd if= path to floppy image of=/dev/fd0.</p>
<p style="margin-left: 40px;">wait till copy process is complete.</p>
<p style="margin-left: 40px;">If you are using USB floppy drive then output will be /dev/sdb or similar rather than fd0 .To see&nbsp; correct name run df&nbsp;&nbsp; command,&nbsp; the output will show you the correct name for your floppy disk .<span style="font-size: 16px;"><strong><br />
	</strong></span></p>
<h2><span style="font-size: 16px;"><strong>if you have USB Drive:</strong></span></h2>
<p style="margin-left: 40px;">The best part of this method is that you dont need to delete any of your file on your usb disk and you can use any of your working line system, if you&nbsp; dont have one then even you can use live cd to boot your computer and this method will work.</p>
<ul></ul>
<ol>
<li>insert your USB stick.</li>
<li><span style="font-size: 14px;"><span style="font-size: 12px;">your usb drive should automatically get mounted if not try mount it with mount comand.</span></span></li>
<li><span style="font-size: 14px;"><span style="font-size: 12px;">run <strong>df&nbsp; </strong>command to see on which partition your usb drive is mounted , the very first entry in the output shows the requisite details. it should be like /dev/sda or any of the sd.</span></span> lets us assume <strong>that it is&nbsp; sda1.</strong></li>
<li>download <a href="http://developer.berlios.de/project/showfiles.php?group_id=10921">Super Grub Dis</a>k&nbsp; and untar it into a temporary directory. (untar command is tar -zxvf directoryname.tgz)<br />
		&nbsp;</li>
<li>Copy and paste the boot folder found in the USB tar so that when opening your pendrive you see: boot (You should not see super_grub_disk_0.9753 or something similar).</li>
<li>close the pen drive and right click on the usb disk icon on desktop.</li>
<li>click unmount and dont click safe extraction.</li>
<li>open a terminal.</li>
<li>get sudo permission. by executing command<strong> sudo in ubuntu and su in</strong> other systems .</li>
<li>let us assume our usb drive was sda1 so we will executing following commnads.</li>
<li>
<pre>grub
<b>grub&gt;</b>device (hd3) /dev/sda
<b>grub&gt;</b>root (hd3,0)
<b>grub&gt;</b>setup (hd3)
</pre>
</li>
</ol>
<p style="margin-left: 40px;">where sda is the hardisk partition where sda1 is located , by executing above command we have attached a virtual drive hd3 with it and worked with it.</p>
<p style="margin-left: 40px;">you should see some messages with some normal errors.</p>
<p style="margin-left: 40px;">now exit from grub by executing following commnds.</p>
<p><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; grub&gt;</b>quit</p>
<pre> <b>     sync</b>
</pre>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Now unplug your usb device.</p>
<h2><span class="mw-headline">Common errors</span></h2>
<p style="margin-left: 40px;">If you were doing:</p>
<p style="margin-left: 40px;">grub&gt;root (hd3,0)</p>
<p style="margin-left: 40px;">grub&gt;setup (hd3)</p>
<p style="margin-left: 40px;">and after that you got an error 18 or something similar you should:</p>
<p style="margin-left: 40px;">Backup all data on your pendrive (if there is something important&nbsp;;) )</p>
<p style="margin-left: 40px;">Repartition it so that you have an ext3 or a FAT32 partition at its beginning of only 300 MB.</p>
<p style="margin-left: 40px;">Install SGD into it as it is explained in the instructions</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; and that&#39;s it, SGD should boot without problems.</p>
<h3 style="margin-left: 40px;"><span class="mw-headline">Windows</span></h3>
<p style="margin-left: 40px;"><a href="http://unetbootin.sourceforge.net/"><span class="mw-headline">Download unet</span></a></p>
<ul>
<li>
<p>Run Unetbootin. Select Distribution, and from the drop down menu select &quot;Super Grub Disk&quot;</p>
<p>		Select the target drive, and hit OK.</li>
</ul>
<h3 style="margin-left: 40px;"><span class="mw-headline">Fedora </span></h3>
<p style="margin-left: 40px;">Whenever we run:</p>
<pre style="margin-left: 40px;">grub&gt;setup (hd3)
</pre>
<p style="margin-left: 40px;">you can see something as:</p>
<pre style="margin-left: 40px;">setup (hd3)
 Checking if &quot;/boot/grub/stage1&quot; exists... yes
 Checking if &quot;/boot/grub/stage2&quot; exists... yes
 Checking if &quot;/boot/grub/e2fs_stage1_5&quot; exists... yes
 Running &quot;embed /boot/grub/e2fs_stage1_5 (hd3)&quot;...  26 sectors are embedded.
succeeded
 Running &quot;install /boot/grub/stage1 (hd3) (hd3)1+26 p (hd3,0)/boot/grub/stage2 /boot/grub/grub.conf&quot;... succeeded
Done.
</pre>
<p style="margin-left: 40px;">Fedora is using grub.conf instead of SGD&#39;s menu.lst.</p>
<p style="margin-left: 40px;">Just after running setup you must identify the install line and modify it so that /boot/grub/grub.conf reads: /boot/grub/menu.lst</p>
<p style="margin-left: 40px;">In the former example it would be:</p>
<pre style="margin-left: 40px;">grub&gt; install /boot/grub/stage1 (hd3) (hd3)1+26 p (hd3,0)/
boot/grub/stage2 /boot/grub/menu.lst
</pre>
<p style="margin-left: 40px;">Then you just continue with the next howto step.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-8358354379958369";
/* 300x250, created 04/11/09 */
google_ad_slot = "7174990858";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script><script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://digitallyalive.com/how-to-recover-bootloader.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
