<?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>things &#38; stuff &#187; Linux</title>
	<atom:link href="http://www.curlybrace.com/words/category/technology/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.curlybrace.com/words</link>
	<description>Pictures.  Now with more words!</description>
	<lastBuildDate>Mon, 05 Jul 2010 21:47: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>SSH Tunneling Windows RDC</title>
		<link>http://www.curlybrace.com/words/2009/07/05/ssh-port-forwarding-windows-rdc/</link>
		<comments>http://www.curlybrace.com/words/2009/07/05/ssh-port-forwarding-windows-rdc/#comments</comments>
		<pubDate>Sun, 05 Jul 2009 22:26:17 +0000</pubDate>
		<dc:creator>Jeff Fitzsimons</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.curlybrace.com/words/?p=740</guid>
		<description><![CDATA[This article explains how to securely port-forward Windows Remote Desktop (Terminal Services) over SSH, using standard SSH command line syntax. If you prefer to use GUI SSH tools, such as PuTTY, there are other guides for that. Terminology Notes My terminology assumes that you are connecting to a machine on your home network, which is [...]]]></description>
			<content:encoded><![CDATA[<p>This article explains how to securely port-forward Windows Remote Desktop (Terminal Services) over SSH, using standard SSH command line syntax.  If you prefer to use GUI SSH tools, such as PuTTY, <a href="http://theillustratednetwork.mvps.org/Ssh/RemoteDesktopSSH.html">there are other guides for that</a>.</p>
<h4>Terminology Notes</h4>
<p>My terminology assumes that you are connecting to a machine on your home network, which is protected by a firewall.  However, the diagrams and commands are valid regardless of whether the remote network is at home or not.</p>
<p>Additionally, I use <tt><i>RDCHOST</i></tt> to represent the local name or IP of your RDC server <b>within the home network</b>, and <tt><i>my_home_ip</i></tt> to represent your home IP address as visible from the Internet.</p>
<h3>Prerequisites</h3>
<ul>
<li />Depending on network configuration, port-forwarding may have to be configured on the firewall.
<li />An SSH client (e.g. <a href="http://www.cygwin.com/">Cygwin&#8217;s OpenSSH</a> for Windows) must be installed on the local machine.
<li />An SSH server (e.g. <a href="http://www.cygwin.com/">Cygwin&#8217;s OpenSSHD</a> for Windows) must be present on some machine within the home network.
<li />SSH keys must be generated and deployed appropriately.
</ul>
<h3>SSH Command Syntax</h3>
<blockquote><p><tt>ssh -C -N -L <i>localPort</i>:<i>destinationHost</i>:3389 <i>proxyHost</i></tt></p>
<p />
<ul>
<li /><i>localPort</i> is the port on localhost through which you wish to connect.
<li /><i>destinationHost</i> is the Remote Desktop host, <b>as it appears on the home network</b>.
<li /><i>proxyHost</i> is the host running SSHD, through which you will tunnel.
</ul>
</blockquote>
<h3>Configuration 1:  Discrete Servers</h3>
<p>This configuration has the firewall port-forward SSH to a server on the home network, which proxies the connection to the RDC server:</p>
<blockquote><pre>                       +-----------[ Home Network ]---------------+
                       |                                          |
localhost <----> Home Firewall <---> SSH Server <---> RDC Server  |
                       |                                          |
                       +------------------------------------------+</pre>
</blockquote>
<p>Command line:</p>
<blockquote><p><tt>ssh -C -N -L 6009:<i>RDCHOST</i>:3389 <i>my_home_ip</i></tt></p></blockquote>
<h3>Configuration 2:  Combined RDC &#038; SSH Servers</h3>
<p>In this configuration, the RDC server also has an SSH server, and the firewall port-forwards directly to it:</p>
<blockquote><pre>                       +------[ Home Network ]-----+
                       |                           |
localhost <----> Home Firewall <-----> RDC &#038; SSH   |
                       |                Server     |
                       +---------------------------+</pre>
</blockquote>
<p>Command line:</p>
<blockquote><p><tt>ssh -C -N -L 6009:localhost:3389 <i>my_home_ip</i></tt></p></blockquote>
<h3>Configuration 3:  Firewall as SSH Server</h3>
<p>In this configuration, the firewall acts as the SSH server, proxying the connection directly to the RDC server on the home network:</p>
<blockquote><pre>                       +----[ Home Network ]----+
                       |                        |
localhost <----> Home Firewall <---> RDC Server |
                  &#038; SSH Server                  |
                       |                        |
                       +------------------------+
</pre>
</blockquote>
<p>Command line:</p>
<blockquote><p><tt>ssh -C -N -L 6009:<i>RDCHOST</i>:3389 <i>my_home_ip</i></tt></p></blockquote>
<h3>Additional Suggestions</h3>
<p>Rather than specifying the IP address of your home firewall, I suggest using <a href="http://www.dyndns.com/">DynDNS</a> to get a dynamic DNS entry.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.curlybrace.com/words/2009/07/05/ssh-port-forwarding-windows-rdc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tearing on MythTV with VLC</title>
		<link>http://www.curlybrace.com/words/2009/03/14/tearing-on-mythtv-with-vlc/</link>
		<comments>http://www.curlybrace.com/words/2009/03/14/tearing-on-mythtv-with-vlc/#comments</comments>
		<pubDate>Sun, 15 Mar 2009 06:30:30 +0000</pubDate>
		<dc:creator>Jeff Fitzsimons</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.curlybrace.com/words/?p=710</guid>
		<description><![CDATA[After updating to Ubuntu 8.10, I started to get tearing artifacts. This crop up especially badly during scenes that involve panning. The MythTV Wiki explains the fix for tearing: echo 1024 > /proc/sys/dev/hpet/max-user-freq Well, it works for me, anyway. I just keep forgetting what to do when it crops up.]]></description>
			<content:encoded><![CDATA[<p>After updating to Ubuntu 8.10, I started to get tearing artifacts.  This crop up especially badly during scenes that involve panning.</p>
<p>The <a href="http://www.mythtv.org/wiki/Frame_display_timing">MythTV Wiki</a> explains the fix for tearing:</p>
<blockquote><p><tt>echo 1024 > /proc/sys/dev/hpet/max-user-freq</tt></p></blockquote>
<p>Well, it works for me, anyway.  I just keep forgetting what to do when it crops up.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.curlybrace.com/words/2009/03/14/tearing-on-mythtv-with-vlc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can&#8217;t Log in to VMware Server Console on Ubuntu</title>
		<link>http://www.curlybrace.com/words/2009/03/13/vmware-server-on-ubuntu/</link>
		<comments>http://www.curlybrace.com/words/2009/03/13/vmware-server-on-ubuntu/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 22:53:33 +0000</pubDate>
		<dc:creator>Jeff Fitzsimons</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.curlybrace.com/words/2009/03/13/vmware-server-on-ubuntu/</guid>
		<description><![CDATA[As usual, I sped through the VMware Server installation, just using default settings. I then found myself unable to log in to the VMware Server Console. I would always get an error: You do not have permissions to login to the server. Some searching turned up a solution which is to log in as root [...]]]></description>
			<content:encoded><![CDATA[<p>As usual, I sped through the VMware Server installation, just using default settings.  I then found myself unable to log in to the VMware Server Console.  I would always get an error:</p>
<blockquote><p><tt>You do not have permissions to login to the server.</tt></p></blockquote>
<p>Some searching turned up a solution which is to log in as root and set a password (root has no password by default on Ubuntu).  This is an ugly solution, so I re-ran VMware Server configuration.  That&#8217;s when I noticed this question:</p>
<blockquote><p><tt>The current administrative user for VMware Server  is 'root'.  Would you like<br />
to specify a different administrator? [no]</tt></p></blockquote>
<p>Answering <tt>yes</tt> allows you to specify the local account which will be administrator for VMware Server:</p>
<blockquote><p><tt>Please specify the user whom you wish to be the VMware Server administrator<br />
[root] fitzsimj</p>
<p>Using fitzsimj as the VMware Server administrator.</tt></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.curlybrace.com/words/2009/03/13/vmware-server-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stripping Vertical Whitespace Using tr</title>
		<link>http://www.curlybrace.com/words/2008/06/16/stripping-vertical-whitespace-tr/</link>
		<comments>http://www.curlybrace.com/words/2008/06/16/stripping-vertical-whitespace-tr/#comments</comments>
		<pubDate>Mon, 16 Jun 2008 18:05:37 +0000</pubDate>
		<dc:creator>Jeff Fitzsimons</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.curlybrace.com/words/?p=130</guid>
		<description><![CDATA[The Translate command, tr, is available on all Unix-y systems, including Cygwin. tr -d will delete the specified characters from a stream. Several handy escape sequences are provided for stripping newlines, carriage returns, and form-feeds: \f &#8211; form feed \n &#8211; new line \r &#8211; return Since tr is deleting characters, not strings, we can [...]]]></description>
			<content:encoded><![CDATA[<p>The Translate command, <tt>tr</tt>, is available on all Unix-y systems, including <a href="http://www.cygwin.com">Cygwin</a>.  <tt>tr -d</tt> will delete the specified characters from a stream.   Several handy escape sequences are provided for stripping newlines, carriage returns, and form-feeds:</p>
<ul>
<li /><tt>\f</tt> &#8211; form feed
<li /><tt>\n</tt> &#8211; new line
<li /><tt>\r</tt> &#8211; return
</ul>
<p>Since <tt>tr</tt> is deleting <i>characters</i>, not strings, we can simply specify all of these in a single command:</p>
<blockquote><p><tt>cat input.txt | tr -d \r\n\f > output.txt</tt></p></blockquote>
<p>Another way to assemble this command:</p>
<blockquote><p><tt>tr -d \r\n\f < input.txt > output.txt</tt></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.curlybrace.com/words/2008/06/16/stripping-vertical-whitespace-tr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Autohide Ubuntu Menu in MythTV</title>
		<link>http://www.curlybrace.com/words/2008/06/06/autohide-ubuntu-menu-in-mythtv/</link>
		<comments>http://www.curlybrace.com/words/2008/06/06/autohide-ubuntu-menu-in-mythtv/#comments</comments>
		<pubDate>Sat, 07 Jun 2008 07:51:39 +0000</pubDate>
		<dc:creator>Jeff Fitzsimons</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.curlybrace.com/words/?p=124</guid>
		<description><![CDATA[When running MythTV under Ubuntu, the top menu (panel) may appear over MythTV&#8217;s output. The panel can be set to auto-hide, but even when hidden, several pixels will be displayed to remind you of its presence. Luckily, the number of pixels shown can be customized. Run gconf-editor. Select apps &#124; panel &#124; toplevels &#124; top_panel_screen0. [...]]]></description>
			<content:encoded><![CDATA[<p>When running MythTV under Ubuntu, the top menu (panel) may appear over MythTV&#8217;s output.  The panel can be set to auto-hide, but even when hidden, several pixels will be displayed to remind you of its presence.  Luckily, the number of pixels shown can be customized.</p>
<p>Run <tt>gconf-editor</tt>.</p>
<p>Select apps | panel | toplevels | top_panel_screen0.</p>
<p>Check <tt>auto_hide</tt>, if you haven&#8217;t already turned auto-hiding on.</p>
<p>Set <tt>auto_hide_size</tt> to 0 (or whatever number of pixels you want to be displayed in &#8220;hidden&#8221; mode).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.curlybrace.com/words/2008/06/06/autohide-ubuntu-menu-in-mythtv/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hauppauge HVR-1800 with MythTV</title>
		<link>http://www.curlybrace.com/words/2008/06/05/hauppauge-hvr-1800-with-mythtv/</link>
		<comments>http://www.curlybrace.com/words/2008/06/05/hauppauge-hvr-1800-with-mythtv/#comments</comments>
		<pubDate>Fri, 06 Jun 2008 07:21:28 +0000</pubDate>
		<dc:creator>Jeff Fitzsimons</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.curlybrace.com/words/?p=123</guid>
		<description><![CDATA[The Hauppauge WinTV HVR-1800 is a PCI-Express card which has two tuners: one for ATSC/QAM digital video, and one for NTSC analog video. According to the MythTV wiki, only the digital video tuner is currently supported. Hauppauge&#8217;s Windows driver, which contains the proper firmware, plus a shell script to perform the extraction, can be found [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.hauppauge.com/pages/products/data_hvr1800.html">Hauppauge WinTV HVR-1800</a> is a PCI-Express card which has two tuners:  one for ATSC/QAM digital video, and one for NTSC analog video.  According to <a href="http://www.mythtv.org/wiki/index.php/Hauppage_HVR-1800">the MythTV wiki</a>, only the digital video tuner is currently supported.</p>
<p>Hauppauge&#8217;s Windows driver, which contains the proper firmware, plus a shell script to perform the extraction, can be found <a href="http://steventoth.net/linux/hvr1800/">on Steven Toth&#8217;s site</a> (last updated Jan 2008).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.curlybrace.com/words/2008/06/05/hauppauge-hvr-1800-with-mythtv/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hacking the Buffalo TeraStation Live</title>
		<link>http://www.curlybrace.com/words/2008/03/17/hacking-the-buffalo-terastation-live/</link>
		<comments>http://www.curlybrace.com/words/2008/03/17/hacking-the-buffalo-terastation-live/#comments</comments>
		<pubDate>Tue, 18 Mar 2008 04:58:03 +0000</pubDate>
		<dc:creator>Jeff Fitzsimons</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.curlybrace.com/words/?p=116</guid>
		<description><![CDATA[The Buffalo TeraStation Live is a NAS device which uses an embedded, ARM-based computer running a variant of Linux. Originally, I wanted to enable NFS, though later I stuck with CIFS/Samba. However, enabling SSH access proved invaluable for performing backups without having to worry about whether or not my Mac was able to automount the [...]]]></description>
			<content:encoded><![CDATA[<p>The Buffalo TeraStation Live is a NAS device which uses an embedded, ARM-based computer running a variant of Linux.  Originally, I wanted to enable NFS, though later I stuck with CIFS/Samba.  However, enabling SSH access proved invaluable for performing backups without having to worry about whether or not my Mac was able to automount the CIFS/Samba share.</p>
<h3>Enable Telnet Logins</h3>
<p>As <a href="http://buffalo.nas-central.org/index.php/Open_Stock_Firmware#Getting_Console_.28Telnet.29_Access_with_acp_commander">this guide</a> details, <tt>acp_commander</tt> is used to enable telnet logins and deploy addons.tar to the TeraStation.  What the guide doesn&#8217;t mention is that <tt>acp_commander</tt> may fail, I had to run it several times before it succeeded.  Here is the output from my successful run:</p>
<pre>macbook:~/TeraStation jeff$ java -jar acp_commander.jar -t 192.168.1.9 -o -addons
ACP_commander out of the linkstationwiki.net project.
Used to send ACP-commands to Buffalo linkstation(R) LS-PRO.

WARNING: This is experimental software that might brick your linkstation!

Using random connID value = 07CAA8F945F3
Using target:   raid/192.168.1.9
Authenticate:   OK (ACP_STATE_FAILURE)
Installing addons.tar ...
creating directory...   OK
Didn't find <addons.tar> locally, looking at

http://downloads.linkstationwiki.net/Uploads/LSPro/Binaries/

java.io.FileNotFoundException: /192.168.1.9/share/acp_commander/addons.tar (No such file or directory)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
        at acpcommander.FileSystem.copyFile(FileSystem.java:44)
        at acpcommander.acp_commander.main(acp_commander.java:862)
start telnetd...        OK (ACP_STATE_OK)
Reset root pwd...       Password changed.

You can now telnet to your box as user 'root' providingno / an empty password.
macbook:~/TeraStation jeff$ </pre>
<p>Note that, in this run, addons.tar wasn&#8217;t successfully retrieved and deployed.  <tt>addons.tar</tt> provides <tt>wget</tt>, <tt>su</tt>, and <tt>joe</tt>.</p>
<h3>Add Software</h3>
<p>The TeraStation Live uses an ARM processor just like the Linksys NSLU2.  The NSLU2 has a great community, so there are a large number of pre-built modules available.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.curlybrace.com/words/2008/03/17/hacking-the-buffalo-terastation-live/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
