<?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>And now here&#039;s something… &#187; cygwin</title>
	<atom:link href="http://christiansons.net/mike/blog/category/cygwin/feed/" rel="self" type="application/rss+xml" />
	<link>http://christiansons.net/mike/blog</link>
	<description>Java, Ant, SVN, Jetty, cygwin and other stuff…</description>
	<lastBuildDate>Fri, 02 Dec 2011 16:53:46 +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>Change cygwin home directory</title>
		<link>http://christiansons.net/mike/blog/2011/07/change-cygwin-home-directory/</link>
		<comments>http://christiansons.net/mike/blog/2011/07/change-cygwin-home-directory/#comments</comments>
		<pubDate>Tue, 12 Jul 2011 18:13:44 +0000</pubDate>
		<dc:creator>Mike Christianson</dc:creator>
				<category><![CDATA[cygwin]]></category>

		<guid isPermaLink="false">http://christiansons.net/mike/blog/?p=732</guid>
		<description><![CDATA[Perhaps most people using Cygwin don&#8217;t realize this, but they actually have two home directories. One is their Windows home directory (%USERPROFILE%) and the other is their Cygwin home directory (~). Several months ago I became frustrated with repeated navigation from one to the other, so I began using a symbolic link. In ~ I <a href='http://christiansons.net/mike/blog/2011/07/change-cygwin-home-directory/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" src="http://photos.smugmug.com/photos/i-r5gnHJ8/0/O/i-r5gnHJ8.png" alt="" width="64" height="64" />Perhaps most people using Cygwin don&#8217;t realize this, but they actually have two home directories. One is their Windows home directory (<tt>%USERPROFILE%</tt>) and the other is their Cygwin home directory (<tt>~</tt>).</p>
<p>Several months ago I became frustrated with repeated navigation from one to the other, so I began using a symbolic link. In <tt>~</tt> I created a link to <tt>%USERPROFILE%</tt> with&nbsp;<code>ln -s "$USERPROFILE" home</code>. Thus, any time I wanted to change to my Windows home directory I would simply <tt>cd ~/home</tt>.</p>
<p>It worked, but that&nbsp;dichotomy remained… Then, it&nbsp;occurred&nbsp;to me: why couldn&#8217;t <tt>~</tt> and <tt>%USERPROFILE%</tt> be the same?</p>
<p>Luckily, they can! &nbsp;In fact, the <a href="http://cygwin.com/cygwin-ug-net/using-utils.html#utils-althome-ex">Cygwin documentation on alternate home roots</a> shows exactly how. Using <tt><a href="http://cygwin.com/cygwin-ug-net/using-utils.html#mkpasswd">mkpasswd</a></tt>, one or all home directories may be set to any arbitrary path; to change all home directories to the Windows home directory:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mkpasswd <span style="color: #660033;">-l</span> <span style="color: #660033;">-p</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$(cygpath -H)</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">passwd</span></pre></div></div>

<p>Pretty neat. See&nbsp;the <a href="http://cygwin.com/cygwin-ug-net/using-utils.html#utils-althome-ex">Cygwin documentation on alternate home roots</a> for more information.</p>
]]></content:encoded>
			<wfw:commentRss>http://christiansons.net/mike/blog/2011/07/change-cygwin-home-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Generic socket server for testing</title>
		<link>http://christiansons.net/mike/blog/2010/10/generic-socket-server-for-testing/</link>
		<comments>http://christiansons.net/mike/blog/2010/10/generic-socket-server-for-testing/#comments</comments>
		<pubDate>Wed, 27 Oct 2010 17:34:49 +0000</pubDate>
		<dc:creator>Mike Christianson</dc:creator>
				<category><![CDATA[commandline]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[socat]]></category>

		<guid isPermaLink="false">http://christiansons.net/mike/blog/?p=593</guid>
		<description><![CDATA[Here&#8217;s a useful one-liner for running a generic socket server. I came up with this socat-based alternative to writing my own for testing client output. It listens on port 4096, accepts TCP/IP connections, and prints input received to stdout. socat TCP-L:4096,fork - Socat is quite powerful, be sure to read more about what it can <a href='http://christiansons.net/mike/blog/2010/10/generic-socket-server-for-testing/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a useful one-liner for running a generic socket server. I came up with this <a href="http://www.dest-unreach.org/socat/">socat</a>-based alternative to writing my own for testing client output. It listens on port <tt>4096</tt>, accepts TCP/IP connections, and prints input received to <tt>stdout</tt>.</p>
<pre>socat TCP-L:4096,fork -</pre>
<p><tt><a href="http://www.dest-unreach.org/socat/">Socat</a></tt> is quite powerful, be sure to read more about what it can do.</p>
<p><strong>2011-July-08</strong>: My coworker has a great post showing how <tt>socat</tt> can <a href="http://dollopofdesi.blogspot.com/2011/07/routing-serial-data-to-socket.html">pipe data from a serial port to a socket</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://christiansons.net/mike/blog/2010/10/generic-socket-server-for-testing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Better consoles for cygwin shells</title>
		<link>http://christiansons.net/mike/blog/2010/01/better-consoles-for-cygwin-shells/</link>
		<comments>http://christiansons.net/mike/blog/2010/01/better-consoles-for-cygwin-shells/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 17:00:29 +0000</pubDate>
		<dc:creator>Mike Christianson</dc:creator>
				<category><![CDATA[cygwin]]></category>
		<category><![CDATA[commandline]]></category>

		<guid isPermaLink="false">http://christiansons.net/mike/blog/?p=436</guid>
		<description><![CDATA[2011-Nov-24: Exciting news! mintty is now the default cygwin shell. …mintty has become part of the default installation, setup will create desktop and start menu shortcuts called &#8220;Cygwin Terminal&#8221;, which point to mintty, starting your default shell as noted in /etc/passwd. Let&#8217;s face it, cygwin is neat but the console (or, terminal emulator, if you <a href='http://christiansons.net/mike/blog/2010/01/better-consoles-for-cygwin-shells/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><em>2011-Nov-24</em>: Exciting news! <a href="http://cygwin.com/ml/cygwin-announce/2011-11/msg00043.html">mintty is now the default cygwin shell</a>.</p>
<blockquote><p>…mintty has become part of the default installation, setup will<br />
create desktop and start menu shortcuts called &#8220;Cygwin Terminal&#8221;, which<br />
point to mintty, starting your default shell as noted in /etc/passwd.</p></blockquote>
<p>Let&#8217;s face it, cygwin is neat but the console (or, terminal emulator, if you prefer) it launches is <em>lame</em>. I&#8217;m not referring to bash, but rather the normal &#8212; and thus lame &#8212; Windows command box. Things just don&#8217;t feel right&#8230; some keys don&#8217;t work as expected and forget about making the window wider. Fortunately, there is a better way!</p>
<p>Rather, I should say there are better way<em>s</em>: <a href="http://code.google.com/p/puttycyg/">puttycyg</a>,&nbsp;<a href="http://sourceforge.net/projects/console/">Console2</a>, and my personal favorite,&nbsp;<a href="http://cygwin.com/cgi-bin2/package-grep.cgi?grep=mintty">mintty</a>.</p>
<p><a href="http://www.smugmug.com/photos/770506088_uoPhz-L.png"><img class="aligncenter" title="mintty screenshot" src="http://www.smugmug.com/photos/770506088_uoPhz-S.png" alt="" width="400" height="269" /></a></p>
<p><a href="http://code.google.com/p/puttycyg/">puttycyg</a> is a patched version of <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">putty</a> with support for cygwin. <a href="http://cygwin.com/cgi-bin2/package-grep.cgi?grep=mintty">mintty</a> is &#8230; well, yeah, it&#8217;s based on putty, too.</p>
<p>If you use cygwin, you owe it to yourself to try one or all of them immediately. And by that I mean stop reading and start downloading. Now.</p>
]]></content:encoded>
			<wfw:commentRss>http://christiansons.net/mike/blog/2010/01/better-consoles-for-cygwin-shells/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

