<?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>intuitive engineering &#187; UNIX &amp; Windows</title>
	<atom:link href="http://dougmunsinger.com/tag/unix-windows/feed" rel="self" type="application/rss+xml" />
	<link>http://dougmunsinger.com</link>
	<description>doug munsinger</description>
	<lastBuildDate>Mon, 07 Jun 2010 16:44:28 +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>virtuawin and clipx&#8230;</title>
		<link>http://dougmunsinger.com/2008/09/virtuawin-and-clipx.html</link>
		<comments>http://dougmunsinger.com/2008/09/virtuawin-and-clipx.html#comments</comments>
		<pubDate>Wed, 03 Sep 2008 04:46:04 +0000</pubDate>
		<dc:creator>doug</dc:creator>
				<category><![CDATA[UNIX & Windows]]></category>
		<category><![CDATA[cygwin]]></category>

		<guid isPermaLink="false">http://dougmunsinger.com/?p=286</guid>
		<description><![CDATA[&#160; I tested a large number of clipboard history managers in windows, as well as several virtual desktop programs. There are two programs in KDE and one functionality I use all the time. In order to at least have some semblance of a sane working environment and not feel completely crippled in using Windows, duplicating [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p>I tested a large number of clipboard history managers in windows, as well as several virtual desktop programs.  There are two programs in KDE and one functionality I use all the time.  In order to at least have some semblance of a sane working environment and not feel completely crippled in using Windows, duplicating this on windows was important to me.  </p>
<p>Konsole &#8211; the KDE terminal program &#8211; can be duplicated by <a href="2008/08/console2.html" title="console2 article">console2</a>, with UNIX functionality added in on the backend by <a href="http://www.cygwin.com/" title="cygwin">Cygwin</a>. </p>
<p> Klipper, KDE&#8217;s clipboard and history program &#8211; to duplicate that functionality would require a searchable clipboard history available instantly.  By default Windows has nothing like this.  I tested a large number of programs before finding what worked best for me &#8211; <a href="http://bluemars.org/clipx/" title="clipx">clipx</a>.  </p>
<p>Some minor glitches &#8211; if the history setting is very large (800 plus entries) bringing it up for use can take several minutes.  The solution is to set a reasonable history &#8211; 250 entries seems to be workable.  The history is brought up by shift-ctrl-F3, and then searching is typing text within the search field in that window.  Pasting depends on the windows program behavior &#8211; each individual program seems to be different.  Sometimes clicking &#8220;paste&#8221; in the window will actually paste text in &#8211; for other programs it sets the current clipboard to that entry &#8211; but you will still need to shift-ins or right-click or whatever to actually paste. </p>
<p>&nbsp;</p>
<p><a href="../../../images/posts/2008/clipx_lg.jpg" title="clipx screenshot" rel="lightbox"><img src="../../../images/posts/2008/clipx.jpg" title="clipx screenshot" alt="clipx screenshot"/></a></p>
<p>This has some of the same risks as a clipboard history in KDE and your .bash_history file &#8211; if your system is compromised (hacked), data is kept available to be perused and used.  Some caution is in order,  be aware of this. </p>
<p>Multiple desktops &#8211; I had tried the desktop utility that came with the Windows Resource Kits back when I had a Microsoft Tech Net subscription (a long-time-ago).  I tried various other free desktop products including a java-based program in the last several years. They mostly all worked but either had some odd way of reordering and dropping windows when shut down, or didn&#8217;t follow my method of working closely enough to be really useful.  </p>
<p>One of the desktop programs &#8211; I can&#8217;t recall which, it didn&#8217;t stay on the machine very long &#8211; was unpredictable in behavior and occasionally made windows unusable. It required a reset of the machine to resolve, either a three finger salute (ctrl-alt-del) or a hard reset by holding the power button for ten seconds until it powered down. </p>
<p><a href="http://virtuawin.sourceforge.net/" title="virtuawin virtual desktops for windows">virtuawin</a> has turned out to be stable in over two years of use and to provide much of the functionality of UNIX desktops in KDE.  I set up hot-keys to have ctrl-alt-1 bring up desktop #1, ctrl-alt-2 desktop #2, etc.  I&#8217;ve been using a two-headed windows machine (two 1650&#215;1400 LCD screens), and this hasn&#8217;t been as necessary as in the past. It still comes in very handy on a single head desktop or laptop. </p>
<p>&nbsp;</p>
<p><img src="../../../images/posts/2008/screen_1.jpg" title="first screen virtuawin" alt="1st screen"/><img src="../../../images/posts/2008/screen_2.jpg" title="second screen virtuawin" alt="2nd screen"/><img src="../../../images/posts/2008/screen_3.jpg" title="third screen virtuawin" alt="3rd screen"/></p>
<p>&nbsp;</p>
<p>&mdash; dsm</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://dougmunsinger.com/2008/09/virtuawin-and-clipx.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TERM=vt220</title>
		<link>http://dougmunsinger.com/2008/08/termvt220.html</link>
		<comments>http://dougmunsinger.com/2008/08/termvt220.html#comments</comments>
		<pubDate>Sat, 30 Aug 2008 01:41:56 +0000</pubDate>
		<dc:creator>doug</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[UNIX & Windows]]></category>

		<guid isPermaLink="false">http://dougmunsinger.com/?p=254</guid>
		<description><![CDATA[&#160; console2 with cygwin bash shell and ssh behind it (and a lot of other UNIX commands too, like ls, and find and grep and awk and gpg&#8230;) has turned out to be a good solution. I discovered that cygwin sets the terminal as TERM=cygwin. That plays hell with vi on SUN servers. I found [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p><a href="http://sourceforge.net/projects/console/" title="console2">console2</a> with <a href="http://www.cygwin.com/" title="cygwin">cygwin</a> bash shell and ssh behind it (and a lot of other UNIX commands too, like ls, and find and grep and awk and gpg&#8230;) has turned out to be a good solution.</p>
<p>I discovered that cygwin sets the terminal as TERM=cygwin.  That plays hell with vi on SUN servers.  I found that setting &#8220;export TERM=vt220&#8243;  in .profile (this is SUN Solaris 10) resolved vi, getting the console2 window to show the display correctly, and letting the arrow keys work again.</p>
<p>A second gotcha &#8211; DON&#8217;T set ctrl-c as copy in the hot-keys.  That ctrl-c you use to break out of errant commands or scripts stops working at all, very disconcerting.  Instead map  shift-ctrl-c.  There&#8217;s an alpha feature enabling tranparency &#8211; looks cool, but isn&#8217;t stable.  Ctrl-r (history searching in bash) is mapped to renaming the tabs for console windows &#8211; you&#8217;ll set that to ctrl-alt-n as below and resolve that. </p>
<p>Here are the settings in console2 I&#8217;ve found to come very close to what I use in Konsole in KDE:</p>
<ul>
<li>base underneath is cygwin &#8211; therefore need &#8220;export TERM=vt220&#8243; in .profile to have vi behave on SUN &#8211; run on command line initially to test and to edit .profile&#8230;</li>
<li>add &#8220;c:\cygwin\bin to path in control panel -> system -> advanced -> environmental variables</li>
<li>console:</li>
<ul>
<li>shell is c:\cygwin\bin\bash.exe</li>
<li>working directory is c:\</li>
<li>buffer size Rows is 5000, columns is 0 </li>
</ul>
<li>appearance:</li>
<ul>
<li>more &#8211; set tabs to always be present (uncheck &#8220;hide single tab&#8221;)</li>
</ul>
<li>behavior:</li>
<ul>
<li>check copy on select</li>
<li>check clear selection on copy</li>
<li>select UNIX LF</li>
</ul>
<li>map hotkeys to emulate konsole</li>
<ul>
<li>shift-left for previous window</li>
<li>shift-right for next</li>
<li>ctrl-alt-n for new windows</li>
<li>ctrl-alt-s for rename</li>
<li>shift-up arrow for line up</li>
<li>shift-arrow down for line down</li>
<li>shift-page-up for page up</li>
<li>shift-page-down for page down </li>
<li>shift-ctrl-c for copy</li>
<li>ctrl-v for paste</li>
</ul>
<li>mouse:</li>
<ul>
<li>right button to paste</li>
<li>set copy on select</li>
<li>left button to select</li>
<li>copy/clear selection is &#8220;none&#8221; </li>
</ul>
<li>tabs:</li>
<ul>
<li>set shell as C:\cygwin\bin\bash.exe</li>
<li>working directory is C:\ </li>
</ul>
</ul>
<p>&nbsp;</p>
<p>&mdash; dsm </p>
<p>&nbsp;</p>
<hr/>
<p>&nbsp;</p>
<p><b>UPDATE 20080904:</b> I installed console2 on all of my windows machines (dual boot, except for work).  It worked perfectly &#8211; then a co-worker tried it out and had issues.  He searched and found that  in some instances cygwin&#8217;s bash shell refused to complete loading and never returns a command prompt.  The solution looks to be a reinstall or upgrade of cygwin, or possibly some difference in the way cygwin was installed.  </p>
<p>I laughed and said, &#8220;It works for me.&#8221;</p>
<p>He said, &#8220;You can tell when you work in an IT shop &#8211; when something fails for someone,  you always get that response &#8211; &#8220;It works for me.&#8221;"  </p>
<p>&nbsp;</p>
<h2>Update 20090329 Sunday</h2>
<p>export TERM=ansi</p>
<p>I installed eclipse with Remote System Explorer.  vt220 caused VI to fail to refresh (at least SUN&#8217;s crippled vi version).  ansi worked much better within RSE.</p>
<p>&mdash; doug</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://dougmunsinger.com/2008/08/termvt220.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.434 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-07-29 18:45:42 -->
