<?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>Capi's Corner &#187; windows</title>
	<atom:link href="http://www.dont-panic.cc/capi/tag/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dont-panic.cc/capi</link>
	<description>Development, Network, Security, Ideas &#038; Opinions</description>
	<lastBuildDate>Sat, 10 Dec 2011 19:31:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Remaining Windows Vista/7 &#8220;rearm count&#8221;</title>
		<link>http://www.dont-panic.cc/capi/2010/02/19/remaining-windows-vista7-rearm-count/</link>
		<comments>http://www.dont-panic.cc/capi/2010/02/19/remaining-windows-vista7-rearm-count/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 23:51:48 +0000</pubDate>
		<dc:creator>Martin Carpella</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[vista]]></category>
		<category><![CDATA[win7]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.dont-panic.cc/capi/?p=266</guid>
		<description><![CDATA[It is a well-known fact, that it is possible to extend the initial grace period for activating your (hopefully legitimate!) copy of Windows from 30 days to 120 days by using slmgr. This is a tool that is intended to allow the preparation of image-based installers for enterprise use by allowing to reset the initial [...]]]></description>
			<content:encoded><![CDATA[<p>It is a well-known fact, that it is possible to <a href="http://www.mydigitallife.info/2006/11/12/delay-or-extend-windows-vista-trial-install-and-activation-wpa-grace-timeout-period-hack/">extend the initial grace period</a> for activating your (hopefully legitimate!) copy of Windows from 30 days to 120 days by using <code>slmgr</code>. This is a tool that is intended to allow the preparation of image-based installers for enterprise use by allowing to reset the initial grace period up to 3 times.</p>
<p>If you tend to forget the number of times you already reset the counter, you can easily check for yourself: simply run</p>
<blockquote><p><code>slmgr -dlv</code></p></blockquote>
<p>to get detailed licensing information, including the number of remaining re-arms and remaining grace time.</p>
<p>If you want to know when exactly your grace period runs out, use</p>
<blockquote><p><code>slmgr -xpr</code></p></blockquote>
<p><strong>Note:</strong> This simply gives you more time, it won&#8217;t prevent you from having to buy and/or activate Windows. Re-arming is not a bug, it works as intended and is an important tool for use in corporate environments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dont-panic.cc/capi/2010/02/19/remaining-windows-vista7-rearm-count/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Novatel Merlin U740 using only Windows 7 onboard tools</title>
		<link>http://www.dont-panic.cc/capi/2009/11/19/novatel-merlin-u740-using-only-windows-7-onboard-tools/</link>
		<comments>http://www.dont-panic.cc/capi/2009/11/19/novatel-merlin-u740-using-only-windows-7-onboard-tools/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 00:32:11 +0000</pubDate>
		<dc:creator>Martin Carpella</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[dial-up]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[merlin u740]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.dont-panic.cc/capi/?p=257</guid>
		<description><![CDATA[I have lost the install CD of my Novatel Merlin U740, an older PCMCIA UMTS card. As a consequence I got no &#8220;Mobilink Connection Manager&#8221; after installing Windows 7 on my notebook. Fortunately I found this guide by Novatel Wireless which explains how to connect using only on-board tools in Windows Vista, by setting up [...]]]></description>
			<content:encoded><![CDATA[<p>I have lost the install CD of my <a href="http://www.novatelwireless.com/">Novatel</a> <a href="http://www.3g.co.uk/PR/June2006/3209.htm">Merlin U740</a>, an older PCMCIA UMTS card. As a consequence I got no &#8220;Mobilink Connection Manager&#8221; after installing <a href="http://www.windows7.com/">Windows 7</a> on my notebook. Fortunately I found<a href="http://www.novatelwireless.com/files/UMTS%20-%20Creating%20Vista%20DUN%20Connection.pdf"> this guide</a> by Novatel Wireless which explains how to connect using only on-board tools in Windows Vista, by setting up a dial-up connection. It still works in Windows 7. The important part is to set the APN as part of the driver&#8217;s initialization string.</p>
<p>The telephone number you have to set is <code>*99#</code>, which should be provider-independent.</p>
<p>The following settings are for <a href="http://yesss.at">yesss.at</a> only:<br />
Username: <code>web</code><br />
Passwort: <code>web</code></p>
<p>Remember to set the APN as part of the driver&#8217;s connection string in Window&#8217;s &#8220;Device Manager&#8221; as described in the PDF.</p>
<p>Again, for <a href="http://www.yesss.at">yesss.at</a> this is: <code>AT+CGDCONT=1,"IP","web.yesss.at"</code></p>
<p>For this to work properly, the SIM must not have a PIN set, as otherwise the SIM will be locked and the dialer cannot dial out. For me this is ok, as it is a pre-paid card which can hardly be abused if it gets stolen, but your situation might be different, so please consider the security implications. (I suspect that it should be possible to unlock the SIM card somehow using the <code>AT+CPIN=1234</code> command, but I did not research how to separate several initialization strings, as it did not work immediately.)</p>
<p>The solution works quite well for me, even under Windows 7. Disadvantage is that there is no way to tell the signal strength and exact mode of operation (despite the color-coded status led on the Merlin U740).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dont-panic.cc/capi/2009/11/19/novatel-merlin-u740-using-only-windows-7-onboard-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Vista Home/Business/Enterprise has a telnet client, too</title>
		<link>http://www.dont-panic.cc/capi/2009/02/19/windows-vista-homebusinessenterprise-has-a-telnet-client-too/</link>
		<comments>http://www.dont-panic.cc/capi/2009/02/19/windows-vista-homebusinessenterprise-has-a-telnet-client-too/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 09:01:31 +0000</pubDate>
		<dc:creator>Martin Carpella</dc:creator>
				<category><![CDATA[software]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[telnet]]></category>
		<category><![CDATA[vista]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.dont-panic.cc/capi/?p=220</guid>
		<description><![CDATA[For some unknown reason, Microsoft decided that only the &#8220;Ultimate&#8221; version of Windows Vista ships with the telnet client installed by default. It can, however, be easily installed on all the other versions as well. Open the Control Panel Select &#8220;Programs&#8221; Select &#8220;Turn Windows features on or off&#8221; Scroll through the list, select &#8220;Telnet client&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>For some unknown reason, Microsoft decided that only the &#8220;Ultimate&#8221; version of Windows Vista ships with the telnet client installed by default. It can, however, be easily installed on all the other versions as well.</p>
<ul>
<li>Open the Control Panel</li>
<li>Select &#8220;Programs&#8221;</li>
<li>Select &#8220;Turn Windows features on or off&#8221;</li>
<li>Scroll through the list, select &#8220;Telnet client&#8221;</li>
<li>Press OK</li>
<li>Wait (for surprisingly long)</li>
</ul>
<p>That&#8217;s it, voila, the telnet client is now installed on your Windows Vista Non-Ultimate.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dont-panic.cc/capi/2009/02/19/windows-vista-homebusinessenterprise-has-a-telnet-client-too/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nice to know &#8211; Volume 2</title>
		<link>http://www.dont-panic.cc/capi/2008/05/30/nice-to-know-volume-2/</link>
		<comments>http://www.dont-panic.cc/capi/2008/05/30/nice-to-know-volume-2/#comments</comments>
		<pubDate>Fri, 30 May 2008 13:58:45 +0000</pubDate>
		<dc:creator>Martin Carpella</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[udev]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vs2005]]></category>
		<category><![CDATA[win2k3]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.dont-panic.cc/capi/?p=115</guid>
		<description><![CDATA[udev renames you network interfaces Sometimes udev renames your devices. This happened to me when upgrading a server, eth0 suddenly became eth1 and vice-versa. Of course, this broke nearly all firewall scripts on the server&#8230; There is a nice explanation how to get udev to name your devices the way you want. Visual Studio 2005 [...]]]></description>
			<content:encoded><![CDATA[<p><strong>udev renames you network interfaces</strong></p>
<blockquote><p>Sometimes udev renames your devices. This happened to me when upgrading a server, eth0 suddenly became eth1 and vice-versa. Of course, this broke nearly all firewall scripts on the server&#8230; There is a nice explanation <a href="http://www.debianadmin.com/rename-network-interface-using-udev-in-linux.html">how to get udev to name your devices the way you want</a>.</p></blockquote>
<p><strong>Visual Studio 2005 Service Pack 1 on Microsoft Windows Server 2003</strong></p>
<blockquote><p>When installing Visual Studio Service Pack 1 under Windows Server 2003, it might fail because it cannot verify the signature. You should take time and visit the <a href="http://go.microsoft.com/fwlink/?LinkId=73863">link</a> provided in the error message, because it will take you to a hotfix that will correct the problem.</p>
<p>(via <a href="http://www.carrollzone.com/Blog/post/2007/06/Problems-installing-Visual-Studio-2005-SP1-on-Windows-Server-2003.aspx">Mark Caroll&#8217;s Blog</a>)</p></blockquote>
<p><strong>VMWare Server on Ubuntu 8.04</strong></p>
<blockquote><p>A <a href="http://www.bauer-power.net/2008/04/installing-vmware-server-on-ubuntu-804.html">nice tutorial</a> for getting free <a href="http://www.vmware.com/products/server/">VMWare Server</a> 1.0.5 running on Ubuntu 8.04.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.dont-panic.cc/capi/2008/05/30/nice-to-know-volume-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TrueCrypt 5.1 is out!</title>
		<link>http://www.dont-panic.cc/capi/2008/03/11/truecrypt-51-is-out/</link>
		<comments>http://www.dont-panic.cc/capi/2008/03/11/truecrypt-51-is-out/#comments</comments>
		<pubDate>Tue, 11 Mar 2008 18:28:04 +0000</pubDate>
		<dc:creator>Martin Carpella</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[truecrypt]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.dont-panic.cc/capi/2008/03/11/truecrypt-51-is-out/</guid>
		<description><![CDATA[The new TrueCrypt 5.1 version finally enables hibernation with pre-boot authentication. I am going to try it out as soon as possible. A big thank you to all the developers! Update 2008-03-16: Today I finally had time to test out pre-boot authentication. It simply worked great. No problems at all. As I was using it [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft alignnone size-medium wp-image-108" style="float: left;" title="truecrypt-logo.jpg" src="http://www.dont-panic.cc/capi/wp-content/uploads/2008/02/truecrypt-logo.jpg" alt="" width="225" height="48" />The new <a href="http://www.truecrypt.org/"><strong>TrueCrypt</strong></a> <a href="http://www.truecrypt.org/docs/?s=version-history"><strong>5.1</strong></a> version finally enables <strong>hibernation with pre-boot authentication</strong>. I am going to try it out as soon as possible. A big thank you to all the developers!</p>
<p><strong>Update 2008-03-16</strong>: Today I finally had time to test out pre-boot authentication. It simply worked great. No problems at all. As I was using it on a notebook, I was very happy about the possibility to interrupt and resume the encryption process.</p>
<p>[tags]encryption, windows, truecrypt[/tags]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dont-panic.cc/capi/2008/03/11/truecrypt-51-is-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TrueCrypt 5 is out!</title>
		<link>http://www.dont-panic.cc/capi/2008/02/07/truecrypt-5-is-out/</link>
		<comments>http://www.dont-panic.cc/capi/2008/02/07/truecrypt-5-is-out/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 11:34:25 +0000</pubDate>
		<dc:creator>Martin Carpella</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[truecrypt]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.dont-panic.cc/capi/2008/02/07/truecrypt-5-is-out/</guid>
		<description><![CDATA[After quite some time, a new version of my favorite encryption tool is out: TrueCrypt developers have released version 5 of their product, introducing a new killer feature (among others): System Volume Encryption with pre-boot authentification (only Windows 2000/XP/Vista). This means, that TrueCrypt will encrypt everything on your system drive, including page- and hibernation file, [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.dont-panic.cc/capi/wp-content/uploads/2008/02/truecrypt-logo.jpg" alt="Image" align="left" height="48" width="225" />After quite some time, a new version of my favorite encryption tool is out: <strong><a href="http://www.truecrypt.org/">TrueCrypt</a></strong> developers have released version 5 of their product, introducing a new killer feature (among others): <em><strong>System Volume Encryption</strong></em> with pre-boot authentification (only Windows 2000/XP/Vista). This means, that TrueCrypt will encrypt everything on your system drive, including page- and hibernation file,<strike> finally making hibernation a safe and easy possibility</strike>.</p>
<p>I am going to look into this next week, as I need my notebook on Saturday (just in case anything goes wrong).</p>
<p><strong>Update 2007-02-08:</strong> As my first commenter below points out, it seems hibernation is disabled by TrueCrypt while having your system partition encrypted. I don&#8217;t really understand why at the moment, but I will investigate further. For me this is a primary show-stopper, as this was the long-awaited functionality I was waiting for.</p>
<p><strong>Nitpickers Corner</strong>¹: Of course I am aware why encryption and hibernation in general are no-goes together, but I don&#8217;t understand why this is an issue when full-system encryption is enabled.</p>
<p><strong>Update 2007-02-08 (again):</strong> Ok, in this <a href="http://forums.truecrypt.org/viewtopic.php?t=8653">TrueCrypt forum thread</a> they explain why they cannot support it at the moment: Windows treats the hibernation file differently, it seems to bypass the TrueCrypt driver and therefore would still write keys to disk without encryption. Ok, still get to wait for my dream feature then, but I still refuse to buy PGP <img src='http://www.dont-panic.cc/capi/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Thanks to the developers for their great work anyhow!</p>
<p style="font-size: 7pt">¹  a tribute to <a href="http://blogs.msdn.com/oldnewthing/">Raymond Chen</a> <img src='http://www.dont-panic.cc/capi/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>[tags]security, encryption, truecrypt, windows, linux, osx[/tags]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dont-panic.cc/capi/2008/02/07/truecrypt-5-is-out/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Vista UAC: Firefox (and other Mozilla apps) automatic updates</title>
		<link>http://www.dont-panic.cc/capi/2007/08/13/vista-uac-firefox-and-other-mozilla-apps-automatic-updates/</link>
		<comments>http://www.dont-panic.cc/capi/2007/08/13/vista-uac-firefox-and-other-mozilla-apps-automatic-updates/#comments</comments>
		<pubDate>Mon, 13 Aug 2007 10:45:44 +0000</pubDate>
		<dc:creator>Martin Carpella</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[thunderbird]]></category>
		<category><![CDATA[troubleshooting]]></category>
		<category><![CDATA[uac]]></category>
		<category><![CDATA[vista]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[workaround]]></category>

		<guid isPermaLink="false">http://www.dont-panic.cc/capi/2007/08/13/vista-uac-firefox-and-other-mozilla-apps-automatic-updates/</guid>
		<description><![CDATA[If you disable the automatic installer detection of User Account Control (UAC), for instance because it interferes with your every-day operations (like in my &#8220;Git and Windows Vista&#8221; article), you will notice that the Mozilla updaters don&#8217;t work as expected. Automatic updates will fail. This is due to the fact that the updater will not [...]]]></description>
			<content:encoded><![CDATA[<p>If you disable the automatic installer detection of <a href="http://en.wikipedia.org/wiki/User_Account_Control">User Account Control</a> (UAC), for instance because it interferes with your every-day operations (like in my &#8220;<a href="http://www.dont-panic.cc/capi/2007/07/06/git-and-windows-vista/">Git and Windows Vista</a>&#8221; article), you will notice that the Mozilla updaters don&#8217;t work as expected. Automatic updates will fail. This is due to the fact that the updater will not be automatically elevated any longer.</p>
<p>As the easiest workaround, you should perform the following steps:</p>
<ul>
<li>Once you get notified about the update and you are asked if you want to install it, say &#8220;No&#8221;.</li>
<li>Close the Mozilla application in question.</li>
<li>Search for the application in your &#8220;Start&#8221; menu.</li>
<li>Right-click the entry and choose &#8220;Run as Administrator&#8230;&#8221;</li>
<li>Choose &#8220;Check for Updates&#8230;&#8221; in the &#8220;Help&#8221; menu</li>
<li>Confirm you want to install the update and walk through the update process.</li>
</ul>
<p>The installation will now work. For security reasons you should close the application once installation is finished, because it will still be running with elevated privileges.  Now start the application again normally.</p>
<p>The same principle works for any application that is not Vista-aware and fails on automatic update. For security reasons make sure you keep the time you run with elevated privileges as short as possible.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dont-panic.cc/capi/2007/08/13/vista-uac-firefox-and-other-mozilla-apps-automatic-updates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>git-svn on Windows (cygwin)</title>
		<link>http://www.dont-panic.cc/capi/2007/07/23/git-svn-on-windows-cygwin/</link>
		<comments>http://www.dont-panic.cc/capi/2007/07/23/git-svn-on-windows-cygwin/#comments</comments>
		<pubDate>Mon, 23 Jul 2007 17:34:25 +0000</pubDate>
		<dc:creator>Martin Carpella</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[troubleshooting]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.dont-panic.cc/capi/2007/07/23/git-svn-on-windows-cygwin/</guid>
		<description><![CDATA[Update 2008-10-10: Often perl will not work due to memory-remapping problems. A solution can be found in my article about the issue. What I really love about Git is the fact that it nicely integrates with existing Subversion repositories. At our company, we are using Subversion as our SCM, but I personally like Git more [...]]]></description>
			<content:encoded><![CDATA[<div style="border-style: dashed; border-width: 1px; margin-top: 14px;padding: 4px; background: #f0f0f0;"><strong>Update 2008-10-10:</strong> Often perl will not work due to memory-remapping problems. A solution can be found in <a href="http://www.dont-panic.cc/capi/2007/10/29/git-svn-fails-with-fatal-error-unable-to-remap/">my article about the issue</a>.</div>
<p>What I really love about <a href="http://git.or.cz/">Git</a> is the fact that it nicely integrates with existing <a href="http://subversion.tigris.org/">Subversion</a> repositories. At our company, we are using Subversion as our <a href="http://en.wikipedia.org/wiki/Revision_control">SCM</a>, but I personally like Git more and I want to use it as a side tool for more flexible branching, merging, and for checking in versions I wouldn&#8217;t check in the shared repository.</p>
<p>Git is supplied with <a href="http://www.kernel.org/pub/software/scm/git/docs/git-svn.html">git-svn</a>, which can import an existing SVN repository and also commit back to it. Under cygwin, you need to perform two additional steps for getting git-svn to work, otherwise it is likely to fail with &#8220;failed to include Error.pm&#8221;.</p>
<ul>
<li>subversion-perl (install via <a href="http://www.cygwin.com/">cygwin</a>&#8216;s <a href="http://www.cygwin.com/setup.exe">setup.exe</a>)</li>
<li>Error.pm</li>
</ul>
<p>You need to <a href="http://search.cpan.org/src/UARUN/Error-0.15/Error.pm">download Error.pm from CPAN</a>. You have to save it to &lt;cygwin-dir&gt;\lib\perl5\Error.pm</p>
<p>Voila! git-svn should work now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dont-panic.cc/capi/2007/07/23/git-svn-on-windows-cygwin/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Git on Windows: &#8220;You have some suspicious patch lines&#8221;</title>
		<link>http://www.dont-panic.cc/capi/2007/07/13/git-on-windows-you-have-some-suspicious-patch-lines/</link>
		<comments>http://www.dont-panic.cc/capi/2007/07/13/git-on-windows-you-have-some-suspicious-patch-lines/#comments</comments>
		<pubDate>Fri, 13 Jul 2007 15:11:22 +0000</pubDate>
		<dc:creator>Martin Carpella</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[troubleshooting]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.dont-panic.cc/capi/2007/07/13/git-on-windows-you-have-some-suspicious-patch-lines/</guid>
		<description><![CDATA[Update 2008-04-24: as commenter Jakub Narebski correctly points out, it should be better to use core.autocrlf and crlf attribute for resolving this issue, but I have had no chance to test this up to now. The solution below is still valid, but more of the sort of an ugly hack. Update 2008-06-11: I have stopped [...]]]></description>
			<content:encoded><![CDATA[<div style="border-style: dashed; border-width: 1px; margin-top: 14px;padding: 4px; background: #f0f0f0;"><strong>Update 2008-04-24:</strong> as commenter Jakub Narebski correctly points out,  it should be better to use <em>core.autocrlf</em> and crlf attribute for resolving this issue, but I have had no chance to test this up to now. The solution below is still valid, but more of the sort of an ugly hack.</div>
<div style="border-style: dashed; border-width: 1px; margin-top: 14px;padding: 4px; background: #f0f0f0;"><strong>Update 2008-06-11:</strong> I have stopped using this solution and only use &#8220;git-config core.autocrlf true&#8221; and &#8220;git-config core.safecrlf true&#8221; any more. It works reliably and is exactly what I need and not such an ugly hack.</div>
<div style="border-style: dashed; border-width: 1px; margin-top: 14px;padding: 4px; background: #f0f0f0;"><strong>Update 2008-06-22:</strong> Well, of course you can still get &#8220;You have some suspicious patch lines&#8221; if you follow the core.autocrlf approach&#8230; but this time it really means you have trailing whitespace, not just line-breaks. If you really don&#8217;t care about trailing white-space at all, my initial solution is still valid, as it simply disables this check.</div>
<p>If you are using <a href="http://git.or.cz/">Git</a> under Windows using <a href="http://www.cygwin.com/">cygwin</a>, and you got through the <a href="http://www.dont-panic.cc/capi/2007/07/06/git-and-windows-vista/">initial problems</a>, you will soon realize that Git likes to fail with &#8220;You have some suspicious patch lines&#8221; when committing.</p>
<p>The cause for this problem is the carriage-return/line-feed problem of Git under Windows/cygwin: The patches contain a trailing line-feed if you edited them with a Windows editor and not strictly inside cygwin.  This will trigger the pre-commit hook to fail on patches where the last line of a file has been changed.</p>
<p>To solve the problem, you need to edit <code>.git/hooks/pre-commit</code> and comment out the following lines:</p>
<blockquote><p><code>if (/\s$/) {<br />
bad_line("trailing whitespace", $_);<br />
}</code></p></blockquote>
<p>Now committing should work.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dont-panic.cc/capi/2007/07/13/git-on-windows-you-have-some-suspicious-patch-lines/feed/</wfw:commentRss>
		<slash:comments>34</slash:comments>
		</item>
		<item>
		<title>Git and Windows Vista</title>
		<link>http://www.dont-panic.cc/capi/2007/07/06/git-and-windows-vista/</link>
		<comments>http://www.dont-panic.cc/capi/2007/07/06/git-and-windows-vista/#comments</comments>
		<pubDate>Fri, 06 Jul 2007 20:01:02 +0000</pubDate>
		<dc:creator>Martin Carpella</dc:creator>
				<category><![CDATA[software]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[troubleshooting]]></category>
		<category><![CDATA[vista]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.dont-panic.cc/capi/2007/07/06/git-and-windows-vista/</guid>
		<description><![CDATA[I recently started using Git, the version control system now used for developing the Linux Kernel. While there is no native support for Windows at the moment, you can install it using cygwin. While this works reasonably well in Windows XP, I got into severe troubles when trying the same in Windows Vista. First, I [...]]]></description>
			<content:encoded><![CDATA[<p>I recently started using <a href="http://git.or.cz/">Git</a>, the version control system now used for developing the Linux Kernel. While there is no native support for Windows at the moment, you can install it using <a href="http://www.cygwin.com/">cygwin</a>. While this works reasonably  well in <a href="http://en.wikipedia.org/wiki/Windows_XP">Windows XP</a>, I got into severe troubles when trying the same in <a href="http://en.wikipedia.org/wiki/Windows_Vista">Windows Vista</a>.</p>
<p>First, I ran into troubles installing cygwin. I figured out, that it seems to work well if you run both the installer and bash in &#8220;Windows XP SP2 compatibility mode&#8221;. I needed to adjust the file system permissions of the cygwin folder to give me write permissions, though. (Note: you have to manually install the TK-libs if you want the GUI elements of git to work.)</p>
<p>But Git kept failing with &#8220;access denied&#8221; messages when trying to commit from command line. The failure message said it was denied access to <code>git-update-index</code>.  I soon found out this is due to the &#8220;<a href="http://en.wikipedia.org/wiki/User_Account_Control">User Account Control</a>&#8221; (UAC) default behavior of auto-detecting installers and prompting if you want to execute them with raised privileges. You can see if this is the case by running <code>git-update-index</code> manually from bash; if you get the UAC confirmation dialog you have this problem. It seems the substring &#8220;update&#8221; triggers this behavior. As the <code>git-update-index</code> is launched by <code>git commit</code>, it won&#8217;t display the confirmation dialog of Vista, so the execution will be denied.</p>
<p>There are two possible workarounds:</p>
<ul>
<li>Run <code>bash</code> with administrative privileges (not recommended!)</li>
<li>Disable the auto-detection of installers by UAC.</li>
</ul>
<p>I used the latter way. You can disable the auto-detection by following <a href="http://www.realtime-vista.com/administration/2007/05/user_account_control_detection.htm">these instructions</a>. Brief summary:</p>
<ul>
<li>Open the Local Security Policies</li>
<li>Disable &#8220;User Account Control: Detect application installations and prompt for elevation&#8221;</li>
<li>Reboot (the security policy will not be updated before!)</li>
</ul>
<p>It should work now. You can confirm this by running <code>git-update-index</code> manually again. If you do not get the UAC confirmation dialog now, it worked. Try <code>git commit</code> now, and verify it is working. Of course, you will from now on have to right-click and &#8220;Run as Administrator&#8221; every installer you want to install, as most installers will require administrative privileges.</p>
<p><strong>Update 2007-08-22:</strong> Reader EGarcia posted an interesting comment below: using the Microsoft Manifest Tool you can add an according manifest to the git-update-index.exe and git-update-ref.exe</p>
<p><strong>Update 2009-02-12:</strong> Reader Kevin Broadey points out the best solution so far: create a seperate .manifest file for the affected files. He has provided an example for <a href="http://homepage.ntlworld.com/kevin.broadey/git-update-index.exe.manifest.txt">git-update.exe.manifest</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dont-panic.cc/capi/2007/07/06/git-and-windows-vista/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>

