<?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>Alex Amiryan's Linux Blog &#187; bugfix</title>
	<atom:link href="http://www.amiryan.org/tag/bugfix/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.amiryan.org</link>
	<description>Just sharing my experiance in linux</description>
	<lastBuildDate>Tue, 10 Nov 2009 19:56:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>Bugfix: Howto turn off gpg-agent usage in Enigmail in Thunderbird</title>
		<link>http://www.amiryan.org/2009/04/22/bugfix-howto-turn-off-gpg-agent-usage-in-enigmail-thunderbird/</link>
		<comments>http://www.amiryan.org/2009/04/22/bugfix-howto-turn-off-gpg-agent-usage-in-enigmail-thunderbird/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 13:08:22 +0000</pubDate>
		<dc:creator>Alex Amiryan</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[howtos]]></category>
		<category><![CDATA[bugfix]]></category>
		<category><![CDATA[enigmail]]></category>
		<category><![CDATA[gpg]]></category>
		<category><![CDATA[gpg-agent]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[thunderbird]]></category>

		<guid isPermaLink="false">http://www.amiryan.org/?p=192</guid>
		<description><![CDATA[There is some bug in Enigmail v0.95.7 for Thunderbird. If you untick the checkbox &#8220;Use gpg-agent for passphrases&#8221; in Advanced tab of Advanced settings menu, Thunderbird in anyway will try to use gpg-agent if GPG_AGENT_INFO environment variable is set. The reason is some little bug in Enigmail source code. To fix it, first close Thunderbird, [...]]]></description>
			<content:encoded><![CDATA[<!--Amazon_CLS_IM_START--><p>There is some bug in Enigmail v0.95.7 for Thunderbird. If you untick the checkbox &#8220;Use gpg-agent for passphrases&#8221; in Advanced tab of Advanced settings menu, Thunderbird in anyway will try to use gpg-agent if <strong>GPG_AGENT_INFO</strong> environment variable is set.  The reason is some little bug in Enigmail source code. To fix it, first close Thunderbird, then just open <strong><em>.thunderbird</em></strong> folder in your home directory, search for <strong><em>enigmail.js</em></strong> file. It have to be in <strong><em>extensions</em></strong> folder in one of the random name folders. When you have found the <strong><em>enigmail.js</em></strong> file open it with your favorite text editor and find line number <strong>1368</strong>. It have to be this:</p>
<pre class="brush: javascript">useAgent= (this.gpgAgentInfo.envStr.length&gt;0 || this.prefBranch.getBoolPref("useGpgAgent"));</pre>
<p>Change the <strong>||</strong> sign to <strong>&amp;&amp;</strong>. After change this line have to look like this:</p>
<pre class="brush: javascript">useAgent= (this.gpgAgentInfo.envStr.length&gt;0 &amp;&amp; this.prefBranch.getBoolPref("useGpgAgent"));</pre>
<p>Save file. Now open Thunderbird and enjoy.</p>
<!--Amazon_CLS_IM_END-->]]></content:encoded>
			<wfw:commentRss>http://www.amiryan.org/2009/04/22/bugfix-howto-turn-off-gpg-agent-usage-in-enigmail-thunderbird/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>pptpconfig bugfix</title>
		<link>http://www.amiryan.org/2008/04/22/pptpconfig-bugfix/</link>
		<comments>http://www.amiryan.org/2008/04/22/pptpconfig-bugfix/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 18:39:00 +0000</pubDate>
		<dc:creator>Alex Amiryan</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[bugfix]]></category>
		<category><![CDATA[pptp]]></category>
		<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://fenritz1349.wordpress.com/2008/04/22/pptpconfig-bugfix/</guid>
		<description><![CDATA[I have WiFi in my home and I need to connect to provider&#8217;s VPN server to gain access to internet. Their VPN is pptp. So after some googling I find the pptpconfig project which brings ability to connect to pptp server in Linux. After installation everything was fine. This program has both cli and gui [...]]]></description>
			<content:encoded><![CDATA[<!--Amazon_CLS_IM_START--><p>I have WiFi in my home and I need to connect to provider&#8217;s VPN server to gain access to internet. Their VPN is pptp. So after some googling  I find the <strong><a href="http://pptpclient.sourceforge.net/">pptpconfig</a> </strong>project which brings ability to connect to pptp server in Linux. After installation everything was fine. This program has both cli and gui interfaces. Once I tried to to put pptpconfig in my <strong>/etc/rc.d/rc.local</strong> file to autostart pptp tunnel at system startup I noticed that it is not changing my default route in kernel routing tables. So every time I had to manualy change default route to have internet. After some investigations I noticed the error.<br />
Here is the output of the program</p>
<pre class="brush: bash"># pptpconfig somename start</pre>
<p>It gives this output:</p>
<pre class="brush: text">pptpconfig: pppd process exit status 0 (started)
ip route replace 192.168.8.1 dev eth1  src 192.168.8.94
pptpconfig: routes added to remote networks
ip route replace default dev
Command line is not complete. Try option "help"

pptpconfig: command failed, exit code 255
pptpconfig: default route changed to use tunnel
pptpconfig: DNS changes made to /etc/resolv.conf
pptpconfig: connected</pre>
<p>Notice that there is a problem with invoking iproute command. So everything started, but nothing added to kernel routing table. I am used Fedora 8 at this time, but I think that this problem exists on earlier Fedoras too.<br />
After some debugging of the code, I have fixed this problem. I have sent the patch file to pptpconfig&#8217;s developers, but <span style="font-style:italic;">James Cameron</span>, one of the developers of this project, said that they are not planning to release a new version of pptpconfig in the near future, so anyone who have problem similar to mine, they can use CVS version of pptpconfig or just find my patch in the mailing list. Also I noticed that there were some people who used my patch and they said that it worked.<br />
If anyone is experiencing problems like this apply this patch to pptpconfig.php</p>
<pre class="brush: diff">--- pptpconfig_fixed.php    2008-03-31 02:48:18.000000000 +0500
+++ pptpconfig.php    2008-01-07 21:53:56.000000000 +0400
@@ -1801,9 +1801,9 @@
$command .= 'exit $pppd_exit_code;';

$context['pipe'] = popen($command.' 2&gt;&amp;1', 'r');
+    socket_set_blocking($context['pipe'], FALSE);

if ($use_gui) {
-        socket_set_blocking($context['pipe'], FALSE);
$window-&gt;set_data('state', 'starting');
setup_list_set_state($name, 'starting');</pre>
<!--Amazon_CLS_IM_END-->]]></content:encoded>
			<wfw:commentRss>http://www.amiryan.org/2008/04/22/pptpconfig-bugfix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
