<?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>The Fox Gulch Weblog</title>
	<atom:link href="http://foxgulch.com/WordPress/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://foxgulch.com/WordPress</link>
	<description>The Fox Gulch Word Press Blog</description>
	<lastBuildDate>Mon, 05 Dec 2011 18:23:57 +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>Hints on Compiling and Using WSJT 9.1 in Ubuntu 64bit 10.04 LTS  for use with the SignalLink USB external sound card.</title>
		<link>http://foxgulch.com/WordPress/?p=557</link>
		<comments>http://foxgulch.com/WordPress/?p=557#comments</comments>
		<pubDate>Mon, 28 Nov 2011 16:20:50 +0000</pubDate>
		<dc:creator>lj</dc:creator>
				<category><![CDATA[Amateur Radio]]></category>
		<category><![CDATA[Weak Signal Propagation Program]]></category>

		<guid isPermaLink="false">http://foxgulch.com/WordPress/?p=557</guid>
		<description><![CDATA[WSJT is a program used by radio amateurs to aid them in their study of weak signal propagation.  The program was  written by Joe Taylor, K1JT.  The instructions, which follow, are my attempt document  the steps I used to compile &#8230; <a href="http://foxgulch.com/WordPress/?p=557">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div id="ygrp-text">
<div>WSJT is a program used by radio amateurs to aid them in their study of weak signal propagation.  The program was  written by Joe Taylor, K1JT.  The instructions, which follow, are my attempt document  the steps I used to compile  the WSJT program from source under Linux Ubuntu 64 bit  LTS.</div>
<div>By Larry J    Nov 28, 2011  (Updated Dec 5, 2011)</div>
<div><span id="more-557"></span></div>
<div><strong>1.</strong>  Make a directory to hold the source code:</div>
<div>lj@lian2<strong>:~mkdir $HOME/wsjt</strong></div>
<div>-</div>
<div><strong>2.</strong>  Change into the new directory:</div>
<div>lj@lian2<strong>:~cd ~wsjt</strong></div>
<div>-</div>
<div><strong>3.</strong>  Grab the latest version:</div>
<div>lj@lian2:~<strong>svn checkout svn://svn.code.sf.net/p/wsjt/code/trunk wsjt-code</strong></div>
<div>This creaters a wsjt-code directory.  Download of source ends with scrolling output something similar to:</div>
<div>A    wsjt-code/wsjt.py</div>
<div>U    wsjt-code</div>
<div>Checked out revision 2506.</div>
<div><em>(Your version number will be likely be different and greater than 2506)</em></div>
<div>-</div>
<div><strong>4.</strong>  In the directory wsjt-code, scroll down and find the file  &#8221;Wsjt_Howto_Ubuntu.html&#8221;</div>
<div>Open it with your browser (firefox, chromium etc)  We will be following Harry&#8217;s instructions closely.</div>
<div>-</div>
<div><strong>5.</strong>  In a terminal enter:</div>
<div>lj@lian2<strong>:</strong>~/wsjt$ <strong>sudo apt-get build-dep wsjt</strong></div>
<div>-</div>
<p><strong>6.</strong> Download and Install fftw3 packages:</p>
<div>lj@lian2<strong>:~</strong>/wsjt/wsjt-code$<strong> sudo apt-get install libfftw3-dev libfftw3-3</strong></div>
<div>The WSJT user interface uses the python tkinter packages.  Install these packages if they are missing from your PC.</div>
<div>lj@lian2<strong>:~</strong>/wsjt/wsjt-code$ <strong><strong>sudo apt-get install </strong></strong><span class="Apple-style-span" style="font-size: 16px; line-height: 24px;"><strong> </strong> </span><strong>python-tk   python-imaging-tk  python-numpy</strong></div>
<div>-</div>
<div><strong>7.</strong> Change to the source code directory:</div>
<div>lj@lian2:~/wsjt$ <strong>cd wsjt-code</strong></div>
<div>-</div>
<div><strong>8.</strong>  Invoke the compiler utility  &#8221;Configure&#8221; from within the wsjt-code source code directory:</div>
<div>lj@lian2:~/wsjt/wsjt-code$<strong> ./configure</strong></div>
<div>-</div>
<div><strong>9.</strong>  Invoke the compilers using the linux utility make:</div>
<div>lj@lian2:<strong>~</strong>/wsjt/wsjt-code$<strong> make clean;make</strong></div>
<div>-</div>
<div><strong>10.</strong> If compilation proceeds with nothing more than several screens of &#8220;WARNINGS&#8221;, try to invoke the wsjt program from within the wsjt-code directory:</div>
<div>lj@lian2:~/wsjt/wsjt-code$<strong> python -O wsjt.py</strong></div>
<div>-</div>
<div><strong>11.</strong>  If, upon invoking the python wsjt program (Step 9 above) an Error &#8220;bt_audio_service_open: connect() failed: Connection refused (111)&#8221; is generated  then this is likely caused by bluez-alsa package.  Use Synaptic (or apt-get)  to remove this package then the error goes away.  (<strong>sudo apt-get remove bluez-alsa</strong>).</div>
<div>-</div>
<div><strong>12.</strong>  Once WJST 9.1 is running,   File -&gt; Open -&gt;RxWav -&gt;Samples -&gt; W8WN-010890_110400.WAV.</div>
<div>If all is well, the resulting screens will match the description in the Step-by-Step Decoding Tutorial,  &#8221;WSJT6, Users Guide and Reference Manual&#8221; [WSJT_User_600.pdf], page 6 which is found in your source code directory</div>
<div>-</div>
<div><strong>13.</strong>  The TigerTronics SignalLink USB external sound card add on that I have installed apparently will not sample at the WSJT mandated sample rate of 11025 samples per second.  Therefore you have to insert the below .asouncrc file in your $HOME (eg. /home/lj).  This file, I think, says create a copy of the SignalLink USB audio stream and set it&#8217;s sampling rate at 44100 s/sec.  Then make a copy of this stream called SignalLinkOut which in turn is offered to the WJST 9.1 program.  This virtual stream designated as SignalLinkOut can be sampled (decimated?)  at a reduced rate of 11025 required by the WJST 9.1 program.</div>
<div>
<div><strong>&#8212;&#8211; Contents of the example .asoundrc  text file   begin below &#8212;&#8212;&#8212;&#8212;-</strong></div>
<div><em>pcm.SignalLink-USB {</em></div>
<div><em>        type hw</em></div>
<div><em>        card 1</em></div>
<div><em>        device 0</em></div>
<div><em>}</em></div>
<div><em>pcm_slave.SignalLinkIn {</em></div>
<div><em>        pcm SignalLink-USB</em></div>
<div><em>        rate 44100</em></div>
<div><em>}</em></div>
<div><em>pcm.SignalLinkOut {</em></div>
<div><em>        type rate</em></div>
<div><em>        slave SignalLinkIn</em></div>
<div><em>}</em></div>
<div>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</div>
</div>
<div>-</div>
<div><strong>14.</strong>  After making changes to (or creating)  the hidden file .asoundrc in your $HOME directory,  you need to restart the pulse audio system.</div>
<div>
<div><span style="color: #000000;"><strong><br />
</strong></span></div>
</div>
<div>lj@lian2:~$<strong> sudo service pulseaudio &#8211;restart</strong></div>
<div> * PulseAudio configured for per-user sessions</div>
<div>-</div>
<div>14. Finally you need to tell WSJT which of the audio devices it should use for sampling.  If you start WSJT in a terminal, you should see something like the output below.</div>
<div>lj@lian2:~$ <strong>bash -c &#8220;cd /home/lj/wsjt/wsjt-code;python -O wsjt.py&#8221;</strong></div>
<div>
<div>************************************************************</div>
<div>WSJT Version 9.1 r2473 , by K1JT</div>
<div>Revision date: 2011-10-06 12:58:43 -0600 (Thu, 06 Oct 2011)</div>
<div>Run date:   Thu Nov 24 16:44:39 2011 UTC</div>
<div>Audio     Input    Output     Device Name</div>
<div>Device  Channels  Channels</div>
<div>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</div>
<div>   0        2         6       HDA Intel: ALC888 Analog (hw:0,0)</div>
<div>   1        2         2       HDA Intel: ALC888 Digital (hw:0,1)</div>
<div>   2        2         0       HDA Intel: ALC888 Analog (hw:0,2)</div>
<div>   3        2         2       USB Audio CODEC : USB Audio (hw:1,0)</div>
<div>   4        0         6       front</div>
<div>   5        0         6       surround40</div>
<div>   6        0        128       surround41</div>
<div>   7        0        128       surround50</div>
<div>   8        0         6       surround51</div>
<div>   9        0         6       surround71</div>
<div>  10        0         2       iec958</div>
<div>  11        2         2       spdif</div>
<div>  12        2         2       SignalLink-USB</div>
<div>  13        2         2       SignalLinkOut</div>
<div>  14       32        32       pulse</div>
<div>  15        0         2       dmix</div>
<div>  16       32        32       default</div>
<div>  17       16        16       /dev/dsp</div>
<div>  18       16        16       /dev/dsp1</div>
<div>User requested devices:   Input = 13   Output = 13</div>
<div>Default devices:          Input = 16   Output = 16</div>
<div>Will open devices:        Input = 13   Output = 13</div>
<div>Audio streams running normally.</div>
<div>******************************************************************</div>
</div>
<div>-</div>
<div> Notice that Audio Device 13 in the generated output for my installation calls out the slave virtual stream SignalLinkOut.  That device number (13) is the number that I insert  in Setup -&gt; Options -&gt;Audio In  and Setup -&gt; Options -&gt;Audio Out.  Your card and device number may be different.  Note that my USB SignalLink external sound card is referenced as Audio Device 3 and carrys the designation of (hw:1,0).  You&#8217;ll find hw:1,0 in the my critical  .asoundrc file listed below.  Here too your (hw:x,x) might be different.  In my PC, I have only the Gigabyte provided Intel  ALC888 internal &#8220;card&#8221; on my motherboard and my external  TigerTronics SignalLink USB sound cards.  My ALC888 is card hw:0,x and my SignalLink USB is  card hw:1,x  where x varies according to which card device you are addressing.  The SignalLink USB has only one device internal to it so my full designation is  hw:1,0.  Again your setup maybe different.</div>
<div>
<div><span style="color: #000000;"><strong>- </strong></span></div>
</div>
<div>Finally if your main WSJT Rx noise window reads -39 dB, click on the button &#8220;Monitor&#8221;. Typical values here are a few dB.</div>
<div>-</div>
<div><strong>15.  </strong>If upon starting WSJT, you see:</div>
<div>
<div><em>sh: KVASD_g95: not foundError in KV decoder, or no KV decoder present.</em></div>
<div><em>Return code:   32512.  Will use BM algorithm.</em></div>
<div>The problem is the compiled binary KVASD_g95 is not in one of the directories listed in your $PATH environmental variable.</div>
<div><strong>15a.</strong>  First find where your KVASD_g95 is located:</div>
<div>lj@lian2:~$ <strong>locate KVASD_g95</strong><br />
/home/lj/wsjt/wsjt-code/KVASD_g95<br />
&#8230;</div>
<div><strong>15b</strong>. First check which directories are in your $PATH</div>
<div>lj@lian2:~$ <strong>echo $PATH</strong><br />
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games</div>
<div><strong>15c.</strong>  Note that the directory containing  KVASD_g95 is NOT one of the dirctories in your $PATH list.</div>
<div>-</div>
<div><strong>15d.</strong>  Make sure you can write to one of the $PATH directories:</div>
<div>lj@lian2:~$<strong> sudo chown lj /usr/local/bin</strong></div>
<div><strong></strong>-</div>
<div><strong>15e.</strong> Place a copy of the KVASD_g95 binary in your /usr/local/bin</div>
<div>lj@lian2:~$ <strong> cp /home/lj/wsjt/wsjt-code/KVASD_g95 /usr/local/bin</strong></div>
<div>-</div>
<div><strong>15f.</strong> Verify your copy was properly placed:</div>
<div>lj@lian2:~$ <strong>whereis KVASD_g95</strong><br />
KVASD_g95: /usr/local/bin/KVASD_g95</div>
<div>-</div>
</div>
<div>Many thanks to:</div>
<div>(1) Harry Popov LZ1BB  &#8221;How to compile WSJT under Ubuntu and Debian&#8221;</div>
<div>(http://lz1bb.bfra.org/wsjt/Wsjt_Howto_Ubuntu.html)</div>
<div>(2) Kev Piper,  G0CHE, &#8220;How to Setup JT6M &#8211; Soundcards&#8221;</div>
<div>(http://www.jt6m.org/soundcards.php)</div>
<div>(3) Joe Taylor, K1JT,  &#8221;WSJT 9.0: Supplement to User&#8217;s Guide&#8221;</div>
<div>(physics.princeton.edu/pulsar/K1JT/WSJT_9.0_Supplement.pdf)</div>
<div>(4) Andy K3UK  &#8221;Guide to HF JT65A&#8221; (http://www.pe2pe.eu/images/WSJT%20on%20HF.htm)</div>
<div>(5) Various, http://en.wikipedia.org/wiki/WSJT_(Amateur_radio_software)</div>
<div>(6) KD ,  W5YR</div>
<p>&nbsp;</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://foxgulch.com/WordPress/?feed=rss2&#038;p=557</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Printing via LAN to a Linux CUPS hosted HP Inkjet Printer from Windoze 7</title>
		<link>http://foxgulch.com/WordPress/?p=529</link>
		<comments>http://foxgulch.com/WordPress/?p=529#comments</comments>
		<pubDate>Wed, 27 Apr 2011 14:57:32 +0000</pubDate>
		<dc:creator>lj</dc:creator>
				<category><![CDATA[CUPS]]></category>
		<category><![CDATA[Deskjet D1600]]></category>
		<category><![CDATA[HPLIP]]></category>
		<category><![CDATA[Inkjet]]></category>
		<category><![CDATA[Printing from Windoze]]></category>

		<guid isPermaLink="false">http://foxgulch.com/WordPress/?p=529</guid>
		<description><![CDATA[After many attempts,  I am finally able to print to our HP Deskjet D1600 inkjet printer (which is hosted (connected to) the Linux CUPS server on my  24/7 Linux MythTV pc) from either of the two other Windows 7 PCs &#8230; <a href="http://foxgulch.com/WordPress/?p=529">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After many attempts,  I am finally able to print to our HP Deskjet D1600 inkjet printer (which is hosted (connected to) the Linux CUPS server on my  24/7 Linux MythTV pc) from either of the two other Windows 7 PCs on our local LAN.    Here&#8217;s what I had to do to set that up:</p>
<p><span id="more-529"></span>1.  Connect the printer to your Linux PC.   Your life will be easier if your Linux PC uses a static (or unchanging) IP address.   Network Manager or the program wicd will allow you to assign a static IP address, if necessary.</p>
<p>2.  On your Linux PC,  Install the  HPLIP (HP Linux Image Printing) package. It&#8217;s available via Synaptic in Ubuntu.  From within the HPLIP program  install your linux pc attached injet printer by selecting the &#8220;CUPS web interface&#8221;.   Follow the prompts.  When you name the printer, give it something simple.  I choose  &#8221;DeskjetD1600&#8243;, for example.   Then Print a test page to make sure you can print to the Inkjet Printer from the host Linux PC.  And, again,  make sure that the printer is checked &#8220;shared&#8221;.</p>
<p>3   If the cups installer doesn&#8217;t find a driver for your printer,  then use the HPLIP button &#8220;Setup a device&#8221;.  I recall you are prompted for the CD which came with your printer from which the HPLIP program grabs the proper driver.   Again, make sure the printer is check &#8220;shared&#8221;.</p>
<p>4.   In your windoze PC,  select Devices and Printers,  Add Printer, Add a network, wireless, or Bluetooth Printer, then &#8220;The Printer I want is not listed&#8221;, then  in the blank &#8220;Select a shared printer by name&#8221;, insert something like  &#8221;http://192.168.1.106:631/printers/DeskjetD1600&#8243;.</p>
<p>5.  The &#8220;http://192.168.106:631&#8243;  is the local area network ip address of your Linux box to which you have attached your HP injet printer.  the &#8220;:631&#8243;  says use http protocol via port 631 which is the (CUPS) common unix printer system&#8217;s port.   You can obtain the ip address of your linux box by entering &#8220;ifconfig&#8221; in a terminal window in your Linux pc.  This assumes your linux PC is using a static (as opposed to dynamic) ip address.   If your prospective linux host does not use a static IP,  use the network manager to create one then use &#8220;ifconfig&#8221; to determine the unchanging ip address and use in place of my example (192.168.1.106).</p>
<p>6.  The DeskjetD1600 part of  &#8221;/printers/DeskjetD1600&#8243;  can be obtained from the host linux machine&#8217;s CUPS page located at http://192.168.1.106:631 under Printers.  It&#8217;s basically the name you gave the printer when you used the &#8220;CUPS&#8221; page to install the printer.</p>
<p>7.  Click Next and Windoze will attempt to find a driver.  Chances are a driver won&#8217;t be found so find your printer CD and click &#8220;I have a disk&#8221;.  Point Windoze to the CD in your CD drive. Hopefully it will turn up the proper printer driver.   Finally try the &#8220;Print a test page&#8221;.  What comes out of your printer should be the standard &#8220;Windows Printer Test Page&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://foxgulch.com/WordPress/?feed=rss2&#038;p=529</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing RockBox on Sansa Fuze V2</title>
		<link>http://foxgulch.com/WordPress/?p=518</link>
		<comments>http://foxgulch.com/WordPress/?p=518#comments</comments>
		<pubDate>Tue, 08 Feb 2011 18:31:48 +0000</pubDate>
		<dc:creator>lj</dc:creator>
				<category><![CDATA[Rockbox]]></category>
		<category><![CDATA[Sansa]]></category>

		<guid isPermaLink="false">http://foxgulch.com/WordPress/?p=518</guid>
		<description><![CDATA[When running Linux,  installing RockBox is almost trivial using the GUI driven RockboxUtility.  Here&#8217;s a walk through of the installation of Rockbox on my Sansa. Before your first time thought through the RockboxUtility,  visit http://www.rockbox.org/wiki/GraphicalInstall Within that tutorial is a &#8230; <a href="http://foxgulch.com/WordPress/?p=518">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When running Linux,  installing RockBox is almost trivial using the GUI driven RockboxUtility.  Here&#8217;s a walk through of the installation of Rockbox on my Sansa.</p>
<p><span id="more-518"></span></p>
<p>Before your first time thought through the RockboxUtility,  visit</p>
<p>http://www.rockbox.org/wiki/GraphicalInstall</p>
<p>Within that tutorial is a note about Configuring RockboxUtility.  My Fuze&#8217;s internal  8 GB memory was mounted by my installation of Ubuntu 10.04 Lucid Lynx as /media/Sansa.   You can change the label (Mine was labeled Sansa) by using QParted.  In QParted, select the Sansas Internal Memory from the drop down box.  It will be /dev/sdi or similar.  Then under Partition,  select Unmount.   When dismounted, select the line containing it in the Partition | File System pane.  Then under Partition, select Label.  Give it a suitable name. Maybe  Sansa, Fuse, MySansaFuse, etc.  Then click the green check mark which causes GParted to write the label to the Sansa&#8217;s internal memory.</p>
<div id="attachment_520" class="wp-caption alignright" style="width: 310px"><a href="http://foxgulch.com/WordPress/wp-content/uploads/2011/02/Screenshot-dev-sdi-GParted.png"><img class="size-medium wp-image-520" title="Screenshot--dev-sdi - GParted" src="http://foxgulch.com/WordPress/wp-content/uploads/2011/02/Screenshot-dev-sdi-GParted-300x202.png" alt="Using GParted to Rename the Sansa Partition" width="300" height="202" /></a><p class="wp-caption-text">Using GParted to Rename the Sansa Partition</p></div>
<p>From then on,  your mount point will be /media/Sansa or /media/Fuse or /MySansaFuse  if you used my suggestions as shown above</p>
<div id="attachment_521" class="wp-caption alignright" style="width: 310px"><a href="http://foxgulch.com/WordPress/wp-content/uploads/2011/02/Screenshot-Configuration.png"><img class="size-medium wp-image-521" title="Pointing the RockBox Utility to the Sansa Partition" src="http://foxgulch.com/WordPress/wp-content/uploads/2011/02/Screenshot-Configuration-300x290.png" alt="" width="300" height="290" /></a><p class="wp-caption-text">Pointing the RockBox Utility to the Sansa Partition</p></div>
<p>..</p>
<p>The RockboxUtility window labeled &#8220;Configuration&#8221; is prompting you to find this &#8220;mountpoint&#8221; using the Browse button.  Click Browse and then navigate in the file system to find your  /media/Sansa  or whatever name you picked.</p>
<p>1. Scattered around the internet is the caution that RockBox cannot be installed on Version 2 of the Sansa Fuze. This is not true.   I used the Linux Version of RockboxUtility-v1.2.8-64bit to install rockbox-sansafuzeev2.3.8.1.zip.  You can check your sansa fuze version by  navigating to  System Settings, System Info</p>
<p>It doesn&#8217;t matter which version of the manufacturers SanDisk Sansa firmware is installed.  Just download, unzip and execute the RockboxUtility program and follow the prompts.</p>
<p>2. If you use the RockboxUtility,  you do not need to patch fuzea.bin in the rbinstall directory etc.   For version 2 of the Sansa, the RockboxUtility expects fizpa.bin.  Download this from Sansa  If you have a version 1 of the Sansa Fuze,  then RockboxUtility wants the location of fuzea.bin.</p>
<p>3. The executable file  RockboxUtility  did not have it&#8217;s Properties-&gt;Permissions-&gt;Execute checked.  This allows executing the file as a program.  Double click to execute the program, on my PC.</p>
<p>4.  Once you have installed RockBox, rockbox will automatically boot.  If you want to boot the old sansa firmware, then hold the left rocker (blue) button down and flick the power slide switch up.   Essentially your Sansa is &#8220;dual boot&#8221;</p>
<p>Leave the Rockbox Project some $ if you can.  See the PayPal button located here:  <a href="http://www.rockbox.org/wiki/ContributingToRockbox">http://www.rockbox.org/wiki/ContributingToRockbox</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://foxgulch.com/WordPress/?feed=rss2&#038;p=518</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flight Sim Utility Programs in C offered as Prior Art.</title>
		<link>http://foxgulch.com/WordPress/?p=484</link>
		<comments>http://foxgulch.com/WordPress/?p=484#comments</comments>
		<pubDate>Tue, 14 Dec 2010 16:57:47 +0000</pubDate>
		<dc:creator>lj</dc:creator>
				<category><![CDATA[C Programs]]></category>
		<category><![CDATA[Flight simulation]]></category>
		<category><![CDATA[Prior Art]]></category>

		<guid isPermaLink="false">http://foxgulch.com/WordPress/?p=484</guid>
		<description><![CDATA[Back in 2000,  I wrote a series of programs to enhance my enjoyment of various flight simulator programs which ran on the &#8220;IBM PC&#8221; and clones.   The series probably has minimal value now even though my source code is provided.  &#8230; <a href="http://foxgulch.com/WordPress/?p=484">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Back in 2000,  I wrote a series of programs to enhance my enjoyment of various flight simulator programs which ran on the &#8220;IBM PC&#8221; and clones.   The series probably has minimal value now even though my source code is provided.  However, in this day of &#8220;prior art&#8221; lawyering,  the ideas herein contained might have some value to show that some patent troll&#8217;s invention has been previously published.</p>
<p><span id="more-484"></span>ColorBMP:</p>
<p>As it’s name implies, ColorBMP is a program created to add color to an eight bit 256 level Black and White Windows Bitmap Image The program can also interactively modify the color palette of an existing color eight bit Bitmap image . A paint program such as Paintshop Pro 6 (PSP6) can also colorize a B&amp;W bitmap, but not in the manner that ColorBMP does. ColorBMP’s unique claim to fame is that it allows 256 levels to be broken into four ranges. The color of the beginning and end of each of the four color ranges can be set interactively. Once set, the hue, saturation, and optionally, the luminance varies linearly across the range. The intended use of the program was to “colorize” mosaics of black and white Orthophotos. These mosaics are earth warped aerial photographs used to produce ground terrain scenery for the Flight Simulator FLY!TM by Terminal Reality.</p>
<p>Complete Source: <a href="http://">http://foxgulch.com/WordPress/wp-content/uploads/2010/12/ColorBmp.zip</a></p>
<h3>Orthostitch</h3>
<p>The idea here is to combine your colorized ground terrain photos into one giant photo which you can then &#8220;fly over&#8221; in your flight simulator.   The folder OrthoStitchDoc includes a walk-through of the program including a few Ortho photos which are automatically combined by the program.   From the manual:</p>
<p>From the manual: &#8221; OrthoStitch mosaics OrthoPhotos. OrthoStitch takes Geo-referenced orthophotos that have been converted to bitmaps as input.  It’s output is a larger Bitmap which is a mosaic of the input orthophotos bitmaps.  The process is somewhat like putting together a jig saw puzzle.   Each jig-saw piece is a orthophoto earth image.  OrthoStitch reads the associated geo-reference file for each “piece”, copies the piece (bitmap) into a combination accumulation output file ( a much larger bitmap) neatly joining the jig-saw piece orthophotos.   With modest computer resources, an output mosaic 50 miles on a side can be created.  Programs which are part of a professional Geographic Information System (GIS) also join Orthophotos but the cost of such a program is high.&#8221;</p>
<p>Complete Source Code: <a href="http:///">http://foxgulch.com/WordPress/wp-content/uploads/2010/12/OrthoStitch.zip</a></p>
<h3>DisplayDATA  and  MergeDATA</h3>
<p>These are two more utility programs offered in source without comment.</p>
<p>DisplayData source and doc: <a href="http:///">http://foxgulch.com/WordPress/wp-content/uploads/2010/12/DisplayData.zip</a></p>
<p>MergeData source and doc: <a href="http:///">http://foxgulch.com/WordPress/wp-content/uploads/2010/12/MergeData.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://foxgulch.com/WordPress/?feed=rss2&#038;p=484</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Access a TrueCrypt Volume containing encrypted Quicken data files when your Quicken runs inside  a Ubuntu Linux 10.04 hosted VirtualBox Win7.</title>
		<link>http://foxgulch.com/WordPress/?p=464</link>
		<comments>http://foxgulch.com/WordPress/?p=464#comments</comments>
		<pubDate>Sun, 31 Oct 2010 15:16:46 +0000</pubDate>
		<dc:creator>lj</dc:creator>
				<category><![CDATA[Quicken]]></category>
		<category><![CDATA[TrueCrypt]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Win7 Virtual]]></category>

		<guid isPermaLink="false">http://foxgulch.com/WordPress/?p=464</guid>
		<description><![CDATA[Say your Quicken financial files are kept on a USB Drive which has been formatted by TrueCrypt as an encrypted volume.  Furthermore, perhaps you want to access the encrypted volume from within  a virtual instance Quicken running inside a virtual &#8230; <a href="http://foxgulch.com/WordPress/?p=464">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Say your Quicken financial files are kept on a USB Drive which has been formatted by TrueCrypt as an encrypted volume.  Furthermore, perhaps you want to access the encrypted volume from within  a virtual instance Quicken running inside a virtual machine in VirtualBox Win7. That way you never have to leave the Linux Desktop to run Quicken and the data generated and accessed by the virtual copy of Quicken running in your VirtualBox Win7 is directly saved back to the encrypted drive.  Sound like your situation?  <span id="more-464"></span><br />
Here are the steps I used:</p>
<h3>Step 1.  Install TrueCrypt</h3>
<p>Install TrueCrypt (if you haven&#8217;t already).  Plug in your encrypted usb connected volume so linux has access to it.  Click &#8220;Auto-Mount Devices&#8221; in the True Crypt window (Applications-&gt;Accessories-&gt;TrueCrypt)  For example, I use a 4GB usb drive which Ubuntu 10.04 automatically mounts as /media/truecrypt1</p>
<h3>Step 2.  Check Quicken Files visible.</h3>
<p>As a sanity check, &#8220;ls /media/truecrypt1&#8243; to make sure your Quicken directory is visible.  For example,  &#8220;ls /media/truecrypt1/Quicken&#8221; should show the standard Quicken data files&#8230;*.QPH, *.IDX *.ODF, *.QEL,  etc.</p>
<h3>Step 3.  Check that VirtualBox, Win7 and Quicken are installed in the Win7 VM</h3>
<p>This &#8220;HowTo&#8221; assumes you have installed VirtualBox, created a Win7 Virtual Machine(VM) and then installed Win7 into it. Also Quicken should be installed into your Win7-64 bit virtual machine.  Your VirtualBox Details Tab should look similar to the screenshot below left. (Virtual Box Settings for my Instance of Win7)</p>
<div id="attachment_468" class="wp-caption alignleft" style="width: 238px"><a href="http://foxgulch.com/WordPress/wp-content/uploads/2010/10/Win71.png"><img class="size-medium wp-image-468 " title="Win7 Virtual Box" src="http://foxgulch.com/WordPress/wp-content/uploads/2010/10/Win71-228x300.png" alt="" width="228" height="300" /></a><p class="wp-caption-text">Virtual Box Settings for my instance of Win7</p></div>
<h3>Step 4. Share your TrueCrypt  encrypted Quicken Files</h3>
<p>In the just opened VirtualBox window titled &#8220;Oracle VM VirtualBox&#8221;, go to the bottom of the list for your Win7 VM and click &#8220;Shared Folders&#8221;. Next, Click on the &#8220;folder/plus&#8221; icon to share your truecrypt volume with the hosted VM. The window should be similar to the screen shot below right. (Win7 VirtualBox Shared Folders Dialog)</p>
<div id="attachment_470" class="wp-caption alignright" style="width: 310px"><a href="http://foxgulch.com/WordPress/wp-content/uploads/2010/10/SharedFolders1.png"><img class="size-medium wp-image-470" title="SharedFolders" src="http://foxgulch.com/WordPress/wp-content/uploads/2010/10/SharedFolders1-300x295.png" alt="" width="300" height="295" /></a><p class="wp-caption-text">Win7 VirtualBox Shared Folders Dialog</p></div>
<p>depicting the dialogue just  before you click OK to add the folder.  Click OK  and  OK.</p>
<h3>Step 5.  Login as Admin</h3>
<p>Start the Win7 Virtual Machine by double clicking it from the left column of the Oracle VM VirtualBox window. Win7 should open.  Login as your administrative user.</p>
<h3>Step 6.  Install VirtualBox Guest Additions (if necessary)</h3>
<p>Next make certain you have installed VirtualBoxes Guest Additions into  your Win7 VM.  In the Win7 VM window,  Click Devices then click Install Guest Additions.  Click &#8220;Run VBoxWindowsAdditions.exe&#8221;  Allow Oracle VM VirtualBox Guest Additions.  Then Next, I agree, Next, &#8220;Check Direct 3D Support&#8221; if you want, then Install.  Extraction and Installation proceeds.   Click Finish to  Reboot.</p>
<h3>Step 7. Login as regular user.</h3>
<p>When Win7 resumes,  login as your un-privilege user you want to give access to the Quicken files.  You should have an icon on your virtual Win7 desktop labelled Quicken.</p>
<h3>Step 8.  Verify VBOXSVR is visible.</h3>
<p>In the Win7 VM,  Start -&gt; Computer.  Verify you have under the left column heading Network, a folder VBOXSVR.</p>
<h3>Step 9.  In Win7 VM, Find &#8220;Map network drive&#8221;</h3>
<p>On the tooolbar near the top of the window titled &#8220;Computer&#8221; is a text button labeled &#8220;Map network drive&#8221;.  Click on it.</p>
<h3>Step 10.  Uncheck &#8220;ReadOnly&#8221; on your Quicken</h3>
<p>In my computer, navigate to your Quicken folder (probably <em>\\VBOXSVR\truecrypt1\Quicken</em>.  Double click on it to bring up Quicken Properties.  Uncheck Attribute &#8220;Read-Only&#8221; Click Apply, then OK and OK again.</p>
<h3>Step 11. Map Network (\\VBOXSVR\truecrypt) Drive</h3>
<p>In Win 7 VM, Start -&gt; Computer-&gt;Map Network Drive (again)  &#8220;What network folder would you like to map?&#8221; opens. Accept Drive Z if offered and then Browse to<em> \\VBOXSVR\truecrypt1</em>.  Your Map Network Drive folder should look like this:</p>
<div id="attachment_469" class="wp-caption alignleft" style="width: 310px"><a href="http://foxgulch.com/WordPress/wp-content/uploads/2010/10/MapDrive1.png"><img class="size-medium wp-image-469" title="MapDrive" src="http://foxgulch.com/WordPress/wp-content/uploads/2010/10/MapDrive1-300x214.png" alt="" width="300" height="214" /></a><p class="wp-caption-text">Map Network Drive</p></div>
<p>Note do not specify  \\VBOXSVR\truecrypt1\Quicken as your &#8220;browse to folder&#8221;.   Quicken is a folder, not a mountable drive. You&#8217;ll get Win7 &#8220;<em>error code: 0&#215;80070043, The network name cannot be found</em>&#8221; if you include the folder name Quicken.</p>
<h3>Step 12.  Start Quicken, Find data files if necessary</h3>
<p>Within your Win7 VM,  start Quicken.  Quicken should find your data files.  If it doesn&#8217;t, from Quicken &#8220;File,  Open&#8221; then navigate to the Quicken Folder (in my example, this is located in &#8220;<em>truecrypt1(\\VVOXSVR) (Z:)</em>&#8220;.   Your main *.QDF Quicken data files should be visible.  Click on one of the *.QDF to start Quicken.</p>
<p>Note now  that any changes you make within Quicken is saved, not within the Win7 VM instance of Quicken, but back out to the shared encrypted file mounted by TrueCrypt on your Linux machine.</p>
]]></content:encoded>
			<wfw:commentRss>http://foxgulch.com/WordPress/?feed=rss2&#038;p=464</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kernel Virtualization Walk-through using Ubuntu Jaunty 9.04 Desktop Guest &amp; Host</title>
		<link>http://foxgulch.com/WordPress/?p=459</link>
		<comments>http://foxgulch.com/WordPress/?p=459#comments</comments>
		<pubDate>Fri, 30 Oct 2009 15:58:13 +0000</pubDate>
		<dc:creator>lj</dc:creator>
				<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[9.04]]></category>
		<category><![CDATA[jaunty]]></category>
		<category><![CDATA[kvm]]></category>

		<guid isPermaLink="false">http://foxgulch.com/WordPress/?p=459</guid>
		<description><![CDATA[How to Install  Ubuntu Jaunty 9.04 Desktop  as a KVM guest in a Ubuntu 9.04 Desktop host in 15 steps using Virtual Machine Manager (virt-manager). <a href="http://foxgulch.com/WordPress/?p=459">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Virtualization according to Larry:  Here&#8217;s my take on Virtual Machines having experimented with VMWare Server (success), VirtualBox (success and recommended) XEN (never did run successfully) and now KVM which after a few days walking about in the dark was installed successfully.  If you want to experiment with virtualization,  try VirtualBox first.  VB Version 3 installs from the Ubuntu Repository.  This is a good introduction to virtualization.   Take my advice though.  Dedicate an entire HD to your experiments.  Unplug the power from your other HD&#8217;s so that when the first Live CD/Install Program boots,  you won&#8217;t be wondering if you are going to wipe out your production installations.   After you get VB going,  you should try KVM using the program Virtual Machine Manager. Just wipe out your experimental HD and start over)   In this  walk-through,  I install KVM on a Ubuntu Jaunty 9.04 desktop system which I used as the host.   I then install and configure a guest Ubunty Jaunty 9.04 desktop in that host.  <span id="more-459"></span></p>
<p>This walk-through assumes you have installed Ubuntu 9.04 Desktop.  When I installed my 9.04,  I created a separate partition that I mounted as /kvm.   It&#8217;s in this folder where I installed my virtual machines.  The usual convention is to install the virtual machines in /home/kvm.  If you use /kvm whose disk space is supplied by  separate partition,  you need to make it read and write-able by your default user  or  invoke  the Virtual Machine Manager using gksudo.</p>
<p>First, we need to install the KVM packages following the instructions here:  https://help.ubuntu.com/community/KVM/Installation</p>
<pre>sudo aptitude install kvm libvirt-bin ubuntu-vm-builder bridge-utils</pre>
<pre>sudo adduser `id -un` libvirtd</pre>
<p>Next follow the instructions on this page:  https://help.ubuntu.com/community/KVM/Networking</p>
<pre>sudo apt-get install bridge-utils
<pre>sudo invoke-rc.d networking stop</pre>
</pre>
<p>My /etc/network/interfaces file reads like this:</p>
<p><strong><em># This file describes the network interfaces available on your system<br />
# and how to activate them. For more information, see interfaces(5).</em></strong></p>
<p><strong><em># The loopback network interface<br />
auto lo<br />
iface lo inet loopback</em></strong></p>
<p><strong><em># The primary network interface<br />
auto eth0<br />
iface eth0 inet manual</em></strong></p>
<p><strong><em>auto br0<br />
iface br0 inet static<br />
address 192.168.1.101<br />
network 192.168.1.0<br />
netmask 255.255.255.0<br />
broadcast 192.168.1.255<br />
gateway 192.168.1.1<br />
bridge_ports eth0<br />
bridge_stp off<br />
bridge_fd 0<br />
bridge_maxwait 0</em></strong></p>
<p>Then restart the network:   sudo /etc/init.d/networking restart</p>
<p>If you   command:  ifconfig,  you should see your bridge br0 and the eth0 nic like this</p>
<p><strong><em>lj@lian:~$ ifconfig<br />
br0       Link encap:Ethernet  HWaddr 00:1d:7d:01:b4:86<br />
inet addr:192.168.1.101  Bcast:192.168.1.255  Mask:255.255.255.0<br />
inet6 addr: fe80::21d:7dff:fe01:b486/64 Scope:Link<br />
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br />
RX packets:294310 errors:0 dropped:0 overruns:0 frame:0<br />
TX packets:192509 errors:0 dropped:0 overruns:0 carrier:0<br />
collisions:0 txqueuelen:0<br />
RX bytes:428332980 (428.3 MB)  TX bytes:14557710 (14.5 MB)</em></strong></p>
<p><strong><em>eth0      Link encap:Ethernet  HWaddr 00:1d:7d:01:b4:86<br />
inet6 addr: fe80::21d:7dff:fe01:b486/64 Scope:Link<br />
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br />
RX packets:333337 errors:0 dropped:0 overruns:0 frame:0<br />
TX packets:207805 errors:0 dropped:0 overruns:0 carrier:0<br />
collisions:0 txqueuelen:1000<br />
RX bytes:466066295 (466.0 MB)  TX bytes:15699080 (15.6 MB)<br />
Interrupt:251</em></strong></p>
<p><strong><em>lo        Link encap:Local Loopback<br />
inet addr:127.0.0.1  Mask:255.0.0.0<br />
inet6 addr: ::1/128 Scope:Host<br />
UP LOOPBACK RUNNING  MTU:16436  Metric:1<br />
RX packets:136315 errors:0 dropped:0 overruns:0 frame:0<br />
TX packets:136315 errors:0 dropped:0 overruns:0 carrier:0<br />
collisions:0 txqueuelen:0<br />
RX bytes:333035717 (333.0 MB)  TX bytes:333035717 (333.0 MB)</em></strong></p>
<p>Next we will install the guest virtual machine.   Create a directory in /home named vm1 so that you have this directory  /home/vm1.   If you have decided to place your virtual machine image files in a separate folder as I did,  then you would create the directory  /kvm/vm1 (virtual kvm based machine one).</p>
<p>Change into your newly created directory and invoke the Virtual Machine Manager from a terminal window.</p>
<p><strong><em>lj@lian:~$ gksu virt-manager</em></strong></p>
<p>Right click on the line &#8220;localhost (System)&#8221;,  then select <strong><em>connect</em></strong>.</p>
<p>Again<strong><em> </em></strong>Right click on the line &#8220;localhost (System)&#8221;, but this time select <strong><em>new</em></strong></p>
<p>In the dialog windows which appear, use the following 15 screenshots as a guide to install and configure your guest.  Remember the screenshots reflect that I am installing my first virtual machine in a folder <strong><em>/kvm/vm1</em></strong>.  You may have chosen  <strong><em>/home/vm1</em></strong> or even some other directory.  Next work your way through the next steps  clicking &#8220;Forward&#8221; when you have completed the current screen.</p>
<h3>1. Read About the Steps that will be followed.</h3>
<h3>
<p><div id="attachment_467" class="wp-caption alignnone" style="width: 626px"><a rel="attachment wp-att-467" href="http://foxgulch.com/WordPress/?attachment_id=467"><img class="size-full wp-image-467" title="1. Create a new virtual machine" src="http://foxgulch.com/WordPress/wp-content/uploads/2009/10/1.-Create-a-new-virtual-machine.png" alt="Step 1" width="616" height="586" /></a><p class="wp-caption-text">Step 1</p></div></h3>
<h3>2. Name your Virtual Machine Guest</h3>
<p>The name is arbitrary so I picked  virtual machine number 1 (vm1)</p>
<div id="attachment_468" class="wp-caption alignnone" style="width: 626px"><a rel="attachment wp-att-468" href="http://foxgulch.com/WordPress/?attachment_id=468"><img class="size-full wp-image-468" title="2. Virtual Machine Name" src="http://foxgulch.com/WordPress/wp-content/uploads/2009/10/2.-Virtual-Machine-Name.png" alt="Step 2" width="616" height="586" /></a><p class="wp-caption-text">Step 2</p></div>
<h3>3. Choose the Virtualization Method</h3>
<p>I chose fully.  This is similar to Virtual Box.  The down side is that certain hardware (Network Inteface Cards and Graphics Cards) are simulated.  So by default a virtualized 9.04 desktop will not use nvidia&#8217;s drivers or even directly speak to your phisical GeForce or other graphics card.  Instead your guest will &#8220;think&#8221; it is in a computer with a Cirrus graphics card.  I haven&#8217;t experimented with para-virtualization under Ubuntu KVM yet.</p>
<p><strong><em> </em></strong></p>
<div id="attachment_469" class="wp-caption alignnone" style="width: 626px"><strong><em><strong><em><a rel="attachment wp-att-469" href="http://foxgulch.com/WordPress/?attachment_id=469"><img class="size-full wp-image-469" title="3. Virtualization Method" src="http://foxgulch.com/WordPress/wp-content/uploads/2009/10/3.-Virtualization-Method.png" alt="Step 3" width="616" height="586" /></a></em></strong></em></strong><p class="wp-caption-text">Step 3</p></div>
<h3>4.  Tell Virtual Manager which OS you will be Installing</h3>
<p>If you are going to install your virtual guest&#8217;s files in /home/vm  or as I did in this instance /kvm/vm1,  you need read/write permissions to these directories and the directories need to exist prior to this step.</p>
<h3>
<p><div id="attachment_472" class="wp-caption alignnone" style="width: 626px"><a rel="attachment wp-att-472" href="http://foxgulch.com/WordPress/?attachment_id=472"><img class="size-full wp-image-472" title="4. Installation Method" src="http://foxgulch.com/WordPress/wp-content/uploads/2009/10/4.-Installation-Method.png" alt="Step 4" width="616" height="586" /></a><p class="wp-caption-text">Step 4</p></div></h3>
<h3>5. Tell Virtual Machine Manager where your Install CD is located.</h3>
<p>Obviously, if you chose Jaunty 9.04 in Step 4,  then you must supply a 9.04 Desktop CD in this step.  The words Ubuntu 9.04 i386 reflect that choice.</p>
<div id="attachment_473" class="wp-caption alignnone" style="width: 626px"><a rel="attachment wp-att-473" href="http://foxgulch.com/WordPress/?attachment_id=473"><img class="size-full wp-image-473" title="5. Installation Media" src="http://foxgulch.com/WordPress/wp-content/uploads/2009/10/5.-Installation-Media.png" alt="Step 5" width="616" height="586" /></a><p class="wp-caption-text">Step 5</p></div>
<h3>6.  Tell the Virtual Machine Manager where you want to install the Guest vm.</h3>
<p>Here you might have /home/vm1 instead of /kvm/vm1/.   The name for the guest disk image <strong><em>vm1image</em></strong> is arbitrary chosen just to associate the giant 4 GB image file with the virtual machine vm1.</p>
<div id="attachment_476" class="wp-caption alignnone" style="width: 626px"><a rel="attachment wp-att-476" href="http://foxgulch.com/WordPress/?attachment_id=476"><img class="size-full wp-image-476" title="6. Storage" src="http://foxgulch.com/WordPress/wp-content/uploads/2009/10/6.-Storage.png" alt="Step 5" width="616" height="586" /></a><p class="wp-caption-text">Step 5</p></div>
<h3>Step 7  Tell the Guest How to Connect to the Internet</h3>
<p>Here we tell the guest to use the bridge set up in the preliminary instructions.   The bridge piggy backs on your PC&#8217;s physical NIC and provides software RJ45 jacks  just as though you were setting up a physical  ethernet switch.   If you go &#8220;ifconfig&#8221;, you won&#8217;t see the &#8220;jacks&#8221; (vnet#) until the guest is actually running.   Then they appear as vnet0  vnet1  etc depending on how many guests you have &#8220;started&#8221;</p>
<div id="attachment_477" class="wp-caption alignnone" style="width: 626px"><a rel="attachment wp-att-477" href="http://foxgulch.com/WordPress/?attachment_id=477"><img class="size-full wp-image-477" title="7. Network" src="http://foxgulch.com/WordPress/wp-content/uploads/2009/10/7.-Network.png" alt="Step 7" width="616" height="586" /></a><p class="wp-caption-text">Step 7</p></div>
<h3>Step 8  Memory and CPU</h3>
<p>I just took the default.  My host is a 32 bit install of Jaunty 9.04 with 4 GB of memory.</p>
<div id="attachment_478" class="wp-caption alignnone" style="width: 626px"><a rel="attachment wp-att-478" href="http://foxgulch.com/WordPress/?attachment_id=478"><img class="size-full wp-image-478" title="8. Memory and CPU Allocation" src="http://foxgulch.com/WordPress/wp-content/uploads/2009/10/8.-Memory-and-CPU-Allocation.png" alt="Step 8" width="616" height="586" /></a><p class="wp-caption-text">Step 8</p></div>
<h3>Step 9  Ready to Install.</h3>
<p>Review your choices and when you are ready to write the virtual machine&#8217;s file to your /home/vm1 or /kvm/vm1 directories,  click Finish.</p>
<div id="attachment_479" class="wp-caption alignnone" style="width: 626px"><a rel="attachment wp-att-479" href="http://foxgulch.com/WordPress/?attachment_id=479"><img class="size-full wp-image-479" title="9.  Finish Virtual Machine Creation" src="http://foxgulch.com/WordPress/wp-content/uploads/2009/10/9.-Finish-Virtual-Machine-Creation.png" alt="Step 9" width="616" height="586" /></a><p class="wp-caption-text">Step 9</p></div>
<h3>Step 10  The Guest Virtual Machine File is Written</h3>
<p>Time for coffee or tea.</p>
<div id="attachment_480" class="wp-caption alignnone" style="width: 417px"><a rel="attachment wp-att-480" href="http://foxgulch.com/WordPress/?attachment_id=480"><img class="size-full wp-image-480" title="10. Creating Virtual Machine" src="http://foxgulch.com/WordPress/wp-content/uploads/2009/10/10.-Creating-Virtual-Machine.png" alt="Step 10" width="407" height="200" /></a><p class="wp-caption-text">Step 10</p></div>
<h3>Step 11.  Greetings from the &#8220;Live CD&#8221; Guest</h3>
<p>This should look familiar.  What you see is your &#8220;Guest&#8221; virtual machine showing the standard &#8220;Live CD&#8221; introduction.   Just continue through like you were starting a &#8220;Live CD&#8221; that you stuck in the CDRom and rebooted.</p>
<div id="attachment_481" class="wp-caption alignnone" style="width: 751px"><a rel="attachment wp-att-481" href="http://foxgulch.com/WordPress/?attachment_id=481"><img class="size-full wp-image-481" title="11. VM1 Virtual Machine Console" src="http://foxgulch.com/WordPress/wp-content/uploads/2009/10/11.-VM1-Virtual-Machine-Console.png" alt="Step 11" width="741" height="609" /></a><p class="wp-caption-text">Step 11</p></div>
<h3>Step 12  More Familar Screens</h3>
<p>Again this should look familar.  This is your &#8220;Live CD&#8221; screen.  This is the same screen that would be shown when the &#8220;Live CD&#8221; feature is booted from the Jaunty 9.04 CD but it is generated and comes from the &#8220;Guest Virtual Machine&#8221;.  So much for running entirely in memory.  If we want to write our installation to the guest image file,  click on Install.  What you see in succeding screens is that same as if you were installing to a bare hard disk.  Just remember all the writing and installing is directed to your /home/vm1 (or /home/kvm) directory in a giant image file.  Later you can to a &#8220;ls -l /home/vm1&#8243; from your host to see the size of this file.</p>
<div id="attachment_482" class="wp-caption alignnone" style="width: 1048px"><a rel="attachment wp-att-482" href="http://foxgulch.com/WordPress/?attachment_id=482"><img class="size-full wp-image-482" title="12. VM1 Live CD Session" src="http://foxgulch.com/WordPress/wp-content/uploads/2009/10/12.-VM1-Live-CD-Session.png" alt="Step 12" width="1038" height="897" /></a><p class="wp-caption-text">Step 12</p></div>
<h3>Step 13  Writing the Virtual Guest Image File</h3>
<p>Next the installation is written to the guest image file.  The screens are similar to that you would see if you were installing Jaunty to your hardisk.</p>
<div id="attachment_483" class="wp-caption alignnone" style="width: 1048px"><a rel="attachment wp-att-483" href="http://foxgulch.com/WordPress/?attachment_id=483"><img class="size-full wp-image-483" title="13. Installing System" src="http://foxgulch.com/WordPress/wp-content/uploads/2009/10/13.-Installing-System.png" alt="Step 13" width="1038" height="897" /></a><p class="wp-caption-text">Step 13</p></div>
<h3>Step 14  Success!</h3>
<p>Click Restart  then from Applications -&gt;System Tools-&gt;Virutal Machine Manager window, which will already be open, right click on your virtual machine (vm1) select &#8220;run&#8221;  Succeesing screens should appear in a window  just as though you are &#8220;booting&#8221; from your hard drive.</p>
<div id="attachment_484" class="wp-caption alignnone" style="width: 1048px"><a rel="attachment wp-att-484" href="http://foxgulch.com/WordPress/?attachment_id=484"><img class="size-full wp-image-484" title="14.  Installation Complete" src="http://foxgulch.com/WordPress/wp-content/uploads/2009/10/14.-Installation-Complete.png" alt="Step 14" width="1038" height="897" /></a><p class="wp-caption-text">Step 14</p></div>
<h3>Step 15  My Desktop Screenshot</h3>
<p>Just for fun, I installed another &#8220;guest&#8221;.  Here is my host desktop with both guests windows running.  In vm2 (guest number 2) I have launched GIMP.  In vm1, I have Open Office Writen running. To the right is the Virtual Machine Manager window.    Note that on my desk top,  I prefer the Applications Places System panel at the bottom.  Just put your mouse cursor on blank spot on the panel (at the top by default)  click and hold Alt while you drag the panel to the bottom of the screen.   Also since my host is using twin view to extend my desktop across sid by side monitors,  I had to drag the &#8220;Apps Places System&#8221; panel from the right monitor to the left (where I prefer that it reside).   Hope this helps.   I&#8217;m LarryJ2 on the Ubuntu forums so if you need to contact me, a pm there should work.</p>
<div id="attachment_485" class="wp-caption alignnone" style="width: 2026px"><a rel="attachment wp-att-485" href="http://foxgulch.com/WordPress/?attachment_id=485"><img class="size-full wp-image-485" title="15 Desktop Both VM1 and VM2 running" src="http://foxgulch.com/WordPress/wp-content/uploads/2009/10/15-Desktop-Both-VM1-and-VM2-running.png" alt="Step 15" width="2016" height="630" /></a><p class="wp-caption-text">Step 15</p></div>
<p><strong><em> </em></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://foxgulch.com/WordPress/?feed=rss2&#038;p=459</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kismet conf. using cheap Encore ENUWI-G2 USB Wireless Dongel</title>
		<link>http://foxgulch.com/WordPress/?p=426</link>
		<comments>http://foxgulch.com/WordPress/?p=426#comments</comments>
		<pubDate>Thu, 06 Aug 2009 18:12:41 +0000</pubDate>
		<dc:creator>lj</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Encore]]></category>
		<category><![CDATA[ENUWI-G2]]></category>
		<category><![CDATA[kismet.conf]]></category>
		<category><![CDATA[USB Adapter]]></category>

		<guid isPermaLink="false">http://foxgulch.com/WordPress/?p=426</guid>
		<description><![CDATA[Editing Kismet's kismet.conf for use with the Encore ENUWI-G2 Dongle. <a href="http://foxgulch.com/WordPress/?p=426">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Kismet <strong><em>will</em></strong> run with this cheap USB wifi dongel installed.  After you have installed kismet (sudo apt-get install kismet),  edit the /etc/kismet/kismet.conf file (sudo gedit /etc/kismet/kismet.conf)  and change the &#8220;sources&#8221; line to read:  <span id="more-426"></span></p>
<p><code># YOU MUST CHANGE THIS TO BE THE SOURCE YOU WANT TO USE<br />
source=rt8180,wlan1,EncoreUSB</code><br />
You might expect that the source=rt8180  phrase would be changed to source=r8187 since this is the Kernel Module (r8187.ko) that is loaded by UDev when the dongle is plugged in.   But the above line works so I didn&#8217;t complain.  Your installation may use wlan0 or even wlan2.  Use the utility iwconfig to determine which wlan number was assigned when you plugged in the dongle. For example in my case my USB Wifi dongel was assigned wlan1:</p>
<blockquote><p>lj@lian:~$ iwconfig<br />
wlan1     802.11b/g  Mode:Monitor  Channel=1  Bit Rate=11 Mb/s<br />
Retry:on   Fragment thr:off<br />
Link Quality=0/100  Signal level=0 dBm  Noise level=0 dBm<br />
Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0<br />
Tx excessive retries:0  Invalid misc:0   Missed beacon:0</p></blockquote>
<p>To start a kismet client (curses aka text based)  enter the following in a terminal:<br />
<code>sudo kismet</code><br />
I purchased this cheapie from NewEgg ,  ENCORE NNUWI-G2 USB 2.0 802.11G Wirelss Adapter, NewEgg # N82E16833704002,  FCC ID NOI-W420B for $8 USD Aug 2009.  The above  info came  from my system which has Hardy 8.04  LTS  with the 2.6.24-24-generic kernel.</p>
]]></content:encoded>
			<wfw:commentRss>http://foxgulch.com/WordPress/?feed=rss2&#038;p=426</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using a USB wireless dongle when a Intel 3945 PCI card is installed</title>
		<link>http://foxgulch.com/WordPress/?p=423</link>
		<comments>http://foxgulch.com/WordPress/?p=423#comments</comments>
		<pubDate>Sun, 02 Aug 2009 18:04:03 +0000</pubDate>
		<dc:creator>lj</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://foxgulch.com/WordPress/?p=423</guid>
		<description><![CDATA[Painful method of switching between external USB wireless dongle and internal Intel 3945 chip which is mounted in a min-pci card internal to my Laptop. <a href="http://foxgulch.com/WordPress/?p=423">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have a Dell Inspiron E1505 laptop with a mini-pci card containing a Intel 3945 wireless chip.  This works fine most of the time except when I want to connect to a weak RV Park access point.  Then I want to use a USB Wireless &#8220;dongle&#8221; that I can move around until the signal strength is sufficient to allow a reliable connection.   Unfortunately,  I couldn&#8217;t find a way to run the Intel card and a wireless USB dongle at the same time. I ended up blacklisting the Intel 3945 card then rebooting.   If you have the same problem,  this may be helpful.  <span id="more-423"></span></p>
<p>All this assumes Ubuntu 2.6.24-24-generic  Hardy 8.04 LTS with the Gnome Desktop, and that the wonderful &#8220;wicked&#8221;  Wicd Network Manager is installed. [url]http://wicd.sourceforge.net/download.php[/url]  to download a .deb installable copy. (I personally highly recommend this utility and publicly thank its author.)</p>
<p>1. In a terminal on the command line, enter:</p>
<h4>sudo gedit /etc/modprobe.d/blacklist</h4>
<p>2.  Add these three lines (The third line is blank)</p>
<h4># Note: comment out the following line with a # if you want the mini-pci intel 3945 wireless card to be loaded.</h4>
<h4>blacklist iwl3945</h4>
<p>3. Save the file then  System -&gt; Quit  &gt; Restart</p>
<p>4. During BIOS boot,  plug in your wireless usb dongle.<br />
(Or simply power down, plug in your dongle, and power up again)</p>
<p>5. Open a terminal and enter this on the command line:</p>
<h4>lj@dell:~$ iwconfig</h4>
<p>You should see wlan0 or wlan1 or wlan2 or similar.</p>
<p>6. Then open WICD network manager. (Applications-&gt;Internet-&gt;Wicd Network Manager)  In Wicd, Preferences, General Settings in the Wireless Interface<br />
box,  enter your wireless interface you found from step 5 above (wlan0 or similar) in the box titled wireless interface.</p>
<p>7.  Then in the Wicd main window,  click the Refresh button.  Look for your  wireless access point.  Hopefully that will be one of the available choices so next  you can add your encryption data  and click connect.</p>
<p>8. To resume using the internal Intel 3945 card,  comment out the black list (Step 2 above) and reboot.</p>
<p>This seems rather painful.  Maybe someone else has a better method of switching between internal Intel 3945 and external USB Wireless dongles.</p>
<p>I tried this technique with three USB Dongles. I&#8217;ll probably end up using the SMC unit as it seemed to have the best performance.  Here&#8217;s info on the three FYI.</p>
<p>[QUOTE]USB Wireless Dongle #1<br />
SMC EZ connect g    USB Dongle<br />
Model: SMCWUSB-G   Serial Number: T291604191<br />
MacAddress/ HWaddr 00:22:2d:0e:46:7b<br />
Altheros AR2524-AQ1C chip<br />
FCC ID: RAXWN4501H<br />
lsusb: Bus 005 Device 008: ID 083a:4505 Accton Technology Corp.<br />
Modules zd1211rw, lbm_cw_mac80211, lbm_cw_cfg80211<br />
Irritations: Hard lockup when dongle is unplugged from USB port forcing power down and restart. Signal strength displayed in dBM under wicd is not correct but  Signal Quality with iwconfig seems appropriate.</p>
<p>USB Wireless Dongle #2<br />
Encore Electronics  Wireless 802.11g USB Adapter<br />
Encore  ENUWI-G2  FCC ID NOI-W420B<br />
MacAddress /HWaddr HWaddr 00:08:54:95:2f:6a<br />
RealTek RTL8187B chip<br />
Serial Number 11729040724359<br />
lsusb: Bus 005 Device 003: ID 0bda:8189 Realtek Semiconductor Corp.<br />
Modules: r8187, ieee80211_rtl,ieee80211_crypt_ccmp_rtl,ieee80211_crypt_tkip_rtl,ieee80211_crypt_wep_rtl<br />
Irritations:  Senstivity, slow to connect,  LED doesn&#8217;t flash on data transfer.</p>
<p>USB Wireless Dongle #3<br />
D-Link DWL-G122<br />
Model:  DWL-G122  H/W Version B1  F/w Ver 2.02<br />
P/N BWLG122NA.B1  FCC ID:  KADWLG122B1<br />
Serial Number  DR5Z2610111437<br />
MacAddress /HWAddr 00:15:e9:33:95:5d<br />
lsusb: Bus 005 Device 005: ID 2001:3c00 D-Link Corp. [hex] DWL-G122 802.11g rev. B1 [ralink]<br />
Modules:  rt2500usb, rt2x00lib, rt2500usb,rt2x00usb rfkill, lbm_cw_mac80211, lbm_cw_cfg80211<br />
Irritations: Doesn&#8217;t connect under WPA, No Activity LED nor Link LED,<br />
unplugging from usb port causes hard lockup forcing power down restart.[/QUOTE]</p>
]]></content:encoded>
			<wfw:commentRss>http://foxgulch.com/WordPress/?feed=rss2&#038;p=423</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Talking Media Player  in Python</title>
		<link>http://foxgulch.com/WordPress/?p=297</link>
		<comments>http://foxgulch.com/WordPress/?p=297#comments</comments>
		<pubDate>Sun, 12 Apr 2009 20:38:01 +0000</pubDate>
		<dc:creator>lj</dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[festival]]></category>
		<category><![CDATA[lirc]]></category>
		<category><![CDATA[totem]]></category>

		<guid isPermaLink="false">http://foxgulch.com/WordPress/?p=297</guid>
		<description><![CDATA[This excuse to dabble in Python was a response to sleepless nights and pathetic programming on late night radio.  So I&#8217;m awake at 2:30 AM,  there&#8217;s nothing on the radio,  but  my nearby LAN cifs server is  filled with interesting &#8230; <a href="http://foxgulch.com/WordPress/?p=297">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This excuse to dabble in <a title="Python Home Page" href="http://www.python.org/" target="_blank">Python</a> was a response to sleepless nights and pathetic programming on late night radio.  So I&#8217;m awake at 2:30 AM,  there&#8217;s nothing on the radio,  but  my nearby LAN cifs server is  filled with interesting podcasts and some media files.  However,  I don&#8217;t want to wake my sleeping partner by turning on a monitor, clicking on the keyboard, and otherwise creating a distraction.  The answer: this TalkingMediaPlayer. (TMP)  TMP is a python script that combines  the media player Totem with an InfraRed Remote Control and a text to Speech Synthesizer. Give the location of your mounted media files to TMP, put in your ear buds, then grab your remote control.  <strong>Arrow righ</strong>t moves to a new directory then speaks the name of the directory.  <strong>Arrow down</strong> changes to the next file within this directory and so on.   The <strong>play</strong> button starts the media player  <a title="Totem Web Site" href="http://projects.gnome.org/totem/" target="_blank">Totem</a> running on the selected media file with appropriate audible feedback.  All quiet and easy to run in the dark.   Here&#8217;s the source and two demo files in which you can hear Talking Media Player  in action:</p>
<ul>
<li><a href="http://foxgulch.com/WordPress/wp-content/uploads/2010/12/TalkingMediaPlayer_V1-6.zip">Talking Media Player  Source Code (.zip)</a></li>
<li><a href="http://foxgulch.com/WordPress/wp-content/uploads/2010/12/DemoPodcasts.mp3">Talking Media Player  Demo with Podcasts</a></li>
<li><a href="http://foxgulch.com/WordPress/wp-content/uploads/2010/12/DemoMusic.mp3">Talking Media Player  Demo with Music</a></li>
</ul>
<p><a title="Demo with Music" href="http://foxgulch.com/WordPress/wp-content/uploads/2009/04/demomusic.mp3" target="_blank"></a> <span id="more-297"></span></p>
<h3>Installation</h3>
<p>Installation of the Talking Media Player (TMP)  depends on several external program which are called from within TMP.   You could install the auxiliary programs using synaptic. But here  for clarity,  the command line with will be used.  In several of the steps below, dependency files are also installed automatically.  In the steps below, I used Ubuntu Linux  Hardy Heron  Version 8.04.1 The steps below depend heavily on the Ubuntu package Repository  accessed by apt-get.  If you are using a different Linux distribution  or a Mac or &#8220;Windoze&#8221;, you&#8217;ll have to make appropriate changes,  or simply  empty out a partiton and install Ubuntu!</p>
<p>1. To play a wide variety of media files including .mp3, .ogg, and  .acc+, I suggest installing the Swiss army knife of media players <a title="Totem Web Site" href="http://projects.gnome.org/totem/" target="_blank">Totem</a></p>
<p>lj@dell:~$ <em>sudo apt-get install vlc</em></p>
<p>2.  Install the speech synthesizer<strong><a title="Festival Speech Synthesis" href="http://festvox.org/festival/" target="_blank"> Festival</a> </strong> Note: Command to install Festival  is one one line. (1.96 beta or later)  If you get lost, I followed the instructions located here posted by <a title="Festival Installation Info" href="http://ubuntuforums.org/showthread.php?t=751169" target="_blank">MonkeeSage</a> which are  partially duplicated <a title="Installing Nitech Voices by MonkeeSage" href="http://foxgulch.com/WordPress/wp-content/uploads/2009/04/installingnitechvoices.html" target="_blank">here</a></p>
<p>lj@dell:~$ <em>sudo apt-get install festival festlex-cmu festlex-poslex festlex-oald libestools1.2 unzip</em></p>
<p>3. Download and install a suitable voice for the speech synthesizer Festival.  I prefer the  female US voice from the Nagoya Institute of Technology.  One irritation is that the spoken word &#8220;down&#8221; comes out &#8220;doum&#8221;  There are other voices available, but this is the one I prefer.</p>
<p>lj@dell:~$ <em>wget -c http://hts.sp.nitech.ac.jp/archives/2.1/festvox_nitech_us_slt_arctic_hts-2.1.tar.bz2</em></p>
<p>4. After downloading,  extract the .bz2 file.  You should see a folder /lib</p>
<p>5. Following instructions found in <a title="MonkeeSage" href="http://ubuntuforums.org/showthread.php?t=751169" target="_blank">MonkeeSage&#8217;</a>s link above in the section titled : (Installing NITEC voices section)</p>
<p>lj@dell:~$ sudo mkdir -p /usr/share/festival/voices/us</p>
<p>lj@dell:~$ sudo mv lib/voices/us/* /usr/share/festival/voices/us/</p>
<p>lj@dell:~$ sudo mv lib/hts.scm /usr/share/festival/hts.scm</p>
<p>6. Again following the instructions in the <a title="Sectin Tesing voices and choosing a default voice" href="http://ubuntuforums.org/showthread.php?t=751169" target="_blank">ubuntu foum</a>,  I made this voice the default.  Note that in ubuntu, the festival.scm file is located in a different place on Ubuntu namely at &#8220;/usr/share/festival/festival.scm&#8221;</p>
<p>lj@dell:~$ <em>sudo gedit /usr/share/festival/festival.scm</em></p>
<p>7. In the festival.scm file, I added the last line shown and saved the updated file. After the addition, the last two lines of my festival.scm file read:</p>
<p><em>(provide &#8216;festival)</em></p>
<p><em>(set! voice_default &#8216;voice_nitech_slt_rms_arctic_hts)</em></p>
<p>8. Next test to see if the text to speech synthesizer Festival is alive and well</p>
<p>lj@dell:~$ <em>festival</em></p>
<p>Then at the festival prompt, enter (include  the parenthesis)</p>
<p>festival&gt; <em>(SayText &#8220;Hello from Festival and Ubuntu&#8221;)</em></p>
<p>You should hear the text.</p>
<p><em>Ctrl+D</em> exits the festival interpreter.</p>
<p>9.  Install and test  the remote control LIRC (Linux Infra-Red Remote Control) facility.   The folks at <a title="MythBuntu Home Page" href="http://www.mythbuntu.org/" target="_blank">MythBuntu</a> has made this easy.  Mythbuntu is an excellent distribution of MythTV, the  personal video recorder application.  In MythBuntu is the MythControlCentre which installs the files necessary to run your remote control. (Note British spelling of &#8220;centre&#8221;, that&#8217;s not a typo)</p>
<p>lj@dell:~$ <em>sudo apt-get install mythbuntu-control-centre</em></p>
<p>10. Open the control center</p>
<p>lj@dell:~$ <em>mythbuntu-control-centre</em></p>
<p>11.  In the section,  <strong>Infrared Devices</strong>,  check  <strong>Enable a Remote Control</strong> and then select your remote brand name from the list.  I&#8217;m using a StreamZap USB connected remote I purchased from <a title="StreamZap Available at Amazon" href="http://www.amazon.com/Streamzap-USBIR2-PC-Remote-Control/dp/B00008XETO" target="_blank">Amazon</a> for about $30 US.   Then click Apply</p>
<p>12.  Check if LIRC is operating correctly.  Plug in your USB or Serial IR remote receiver then start the IR utility program &#8220;irw&#8221;.</p>
<p>lj@dell:~$ <em>irw</em></p>
<p>If all is well, you should see remote control button press responses something like:</p>
<p>00000000000028d2 00 OK Streamzap_PC_Remote</p>
<p>00000000000028d2 01 OK Streamzap_PC_Remote</p>
<p>00000000000028d7 00 PLAY Streamzap_PC_Remote</p>
<p>00000000000028d7 01 PLAY Streamzap_PC_Remote</p>
<p>00000000000028ca 00 POWER Streamzap_PC_Remote</p>
<p>Ctrl+C exits irw</p>
<p>13.  Nothing seen from &#8220;irw&#8221;?  Especially if you are seeing can&#8217;t open /dev/lircd or similar.  This means that lirc (Linux Infra Red Control) package is not installed or configured properly.    Try this command to see if it helps then re-run MythBuntu-Control-Centre</p>
<p>lj@dell:~$ <em>sudo apt-get install lirc</em></p>
<p><em> </em></p>
<p>14.  Finally download then extract the main script file  TalkingMediaPlayer  into a convenient directory, here  for illustration a directory created on the desktop.</p>
<p>lj@dell:~$ <em>cd Desktop</em></p>
<p>lj@dell:~$ <em>mkdir TalkingMediaPlayer</em></p>
<p>lj@dell:~$ <em>cd TalkingMediaPlayer</em></p>
<p><em>Here&#8217;s a zippped file with the directory Sample Music. Download and extract this directory to your TalkingMediaPlayer  directory  (4.8 MB)     <a rel="attachment wp-att-388" href="http://foxgulch.com/WordPress/?attachment_id=388">SampleMusic.zip </a><br />
</em></p>
<p>The python script source  file (a .py file and ERIC4 IDE project file)  is available here: (~20KB)  <a title="Download python script" href="http://foxgulch.com/WordPress/wp-content/uploads/2009/04/talkingmediaplayer_V1-6.zip" target="_self">TalkingMediaPlayer Zip<br />
</a></p>
<p>You can always get the latest source script by using this  link.  The source is undergoing minor tweaks daily.  As of April 26, 2009,  Version 1.6  was current.</p>
<p>Right click and then choose  Save Link As  to download the zip file  to your ~/Desktop/TalkingMediaPlayer directory.</p>
<p>Invoke the Archive Manager then unzip the zip package.</p>
<p>You should have these files:</p>
<p>lj@dell:~$<em>ls -al</em> .</p>
<p>drwxr-xr-x  4 lj lj    4096 2009-04-09 11:18 SampleMusic</p>
<p>-rw-r&#8211;r&#8211;  1 lj lj 5065823 2009-04-12 13:25 talkingmediaplayer_v1-x.zip</p>
<p>(where x reflects the version number, currently v1-3 but maybe later)</p>
<p>-rw-r&#8211;r&#8211;  1 lj lj    3370 2009-04-08 09:15 TalkingPlayer.e4p</p>
<p>-rw-r&#8211;r&#8211;  1 lj lj   17442 2009-04-11 14:23 TalkingPlayer.py</p>
<p>15. Open a terminal console and change into the TalkingMediaPlayer directory on your desktop  then start the program with</p>
<p>lj@dell:~$  <em>python TalkingPlayer.py SampleMusic</em></p>
<p>If you press &#8220;OK&#8221; on the remote,  the following should be seen and heard:</p>
<p><em>This directory is selected:</em></p>
<p><em>SampleMusic</em></p>
<p><em>This file is selected and cued</em></p>
<p><em>Dowland_Excuse.mp3</em></p>
<p>Press &#8220;Play&#8221; and you should hear music.</p>
<p>Here is a copy of an early but complete script in five pages, formatted as python scrip in .pdf format:    <a title="TalingMediaPlayer Python Source Code" href="http://foxgulch.com/WordPress/wp-content/uploads/2009/04/talkingplayer1.pdf" target="_blank">TalkingMediaPlayer.py</a></p>
<h3>Operational Hints:</h3>
<p>1. Say your media files arranged in and below a directory named MP3s  which has a subdirectory MP3-1 which in turn has a sub-subdirectory MP3-1-1 all of which have valid media files in them.   When TalkingMediaPlayer runs,  it will suck all the media files it finds and flatten the directory structure.  For example,  first MP3s directory will be selected.  Pressing  the RIGHT arrow will select  subdirectory  MP3-1   and another RIGHT arrow will select sub-subdirctory  MP3-1-1.   While either of these directories are selected, you can select individual medial files with the UP and DOWN arrows.</p>
<p>2. The Blue button speaks the modification date of the media file.  This is usually the creation date.  The Yellow button will speak the current time.  The media files are sorted on their creation date inside each directory so the oldest file is presented first at the &#8220;top&#8221; (index==0).</p>
<h3>Needed Improvements and Irritations:</h3>
<p>1.  The word &#8220;down&#8221; is pronounced to my ear as &#8220;downd&#8221;.  I quickly made the translation in  my head so never tried out any of the other NITEC voices.  The pronunciation of &#8220;down&#8221; may be better in them.</p>
<p>2.  The script launches  VLC  with the NO_WAIT signal. (in playerPid= os.spawnl(os.P_NOWAIT)   Therefore, any remote key presses after Totem is started are directed not to Totem but to the script.    If you launch Totem with P_ WAIT, then  the  &#8220;Kill thread&#8221; method of stopping vlc doesn&#8217;t work correctly.  In reality, I should use a python module such as pyMedia or similar and not call Totem     Totem for this application is overkill.</p>
<p>3. After expeimenting with VLC as the underlying media player,  I quit using it infavor of Totem.  VLC had a nasty habit of occassionally not responding to my IR Remote keypresses.</p>
<p>4. Many more I&#8217;ll bet</p>
<h3>Bugs</h3>
<p>What!?  That&#8217;s impossible&#8230; works here&#8230;.your mileage may vary&#8230;.  But contact me anyway if you want.  My contact info is under the Pages heading as About and Contact.</p>
]]></content:encoded>
			<wfw:commentRss>http://foxgulch.com/WordPress/?feed=rss2&#038;p=297</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://foxgulch.com/WordPress/wp-content/uploads/2010/12/DemoPodcasts.mp3" length="1019075" type="audio/mpeg" />
<enclosure url="http://foxgulch.com/WordPress/wp-content/uploads/2009/04/demomusic.mp3" length="3380698" type="audio/mpeg" />
<enclosure url="http://foxgulch.com/WordPress/wp-content/uploads/2010/12/DemoMusic.mp3" length="3380698" type="audio/mpeg" />
		</item>
		<item>
		<title>An Introduction and Walk-Through of &quot;BINS&quot;, the Photo Album generator</title>
		<link>http://foxgulch.com/WordPress/?p=279</link>
		<comments>http://foxgulch.com/WordPress/?p=279#comments</comments>
		<pubDate>Fri, 27 Mar 2009 16:05:57 +0000</pubDate>
		<dc:creator>lj</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[bins]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[photo]]></category>
		<category><![CDATA[web page]]></category>

		<guid isPermaLink="false">http://foxgulch.com/WordPress/?p=279</guid>
		<description><![CDATA[Bins  (http://bins.sautret.org/)  is a photo album generator.  Given a directory full of images,  bins will format the images into an html page offering your choice of resized images and thumbnails.  Many arrangements are possible and several templates are included.  This &#8230; <a href="http://foxgulch.com/WordPress/?p=279">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Bins  (<a title="Bins Web site" href="http://bins.sautret.org" target="_blank">http://bins.sautret.org/</a>)  is a photo album generator.  Given a directory full of images,  bins will format the images into an html page offering your choice of resized images and thumbnails.  Many arrangements are possible and several templates are included.  This walk through used bins version  1.1.29 which I installed from the Ubuntu Hardy 8.04 repository on March 26, 20009 using Ubuntu&#8217;s package manager synaptic.<span id="more-279"></span></p>
<p>First you need to open a terminal.   Ubuntu Start Menu -&gt; Accessories -&gt; Terminal.   You can clear the terminal window at any time using this:</p>
<h5>lj@lian:~$ clear</h5>
<p>Next you need to create a folder for the input directory containing your input  images,  and another output directory  to contain the html album output by bins.  I chose to put my in and out directories on the Desktop</p>
<h5>lj@lian:~$ cd Desktop</h5>
<p>Off the Desktop directory (so it will show up on your desktop) create the input directory</p>
<h5>lj@lian:~/Desktop$ mkdir photosIn</h5>
<p>Similarly, off the Desktop directory, make another directory to hold the many html and resized image files that bins will generate.</p>
<h5>lj@lian:~/Desktop$ mkdir photosOut</h5>
<p>Next put some sample photos in the  ~/Desktop/photosIn directory.   Here I just copied them from a photo directory</p>
<h5>lj@lian:~/Desktop$ cp ~/Photos/*    photosIn</h5>
<p>Now  list the diretory photosIn to make sure your copy command  loaded  several files in the photosIn directory.  Alternatively, you can  drag and drop these image files using the file browser Nautilus.</p>
<h5>lj@lian:~/Desktop$ ls photosIn</h5>
<p>This is the resulting  list of my sample input images:</p>
<p><em>Picture2 063.jpg  Picture2 147.jpg  Picture2 165.jpg<br />
Picture2 072.jpg  Picture2 153.jpg  Picture2 170.jpg</em><br />
Finally, you run the bins program.   Bins is particular about where the templates are stored.  As installed, the templates are in /usr/share/bins with a separate directory for each template.  (Names like template.martin etc).  After several attempts, I read in the manual that bins would also look in ~/.bins   if it found one for these templates.   So I created one  and copied the all the templates into it.</p>
<h5>lj@lian:~$ mkdir ~/.bins</h5>
<h5>lj@lian:~$ cp -R /usr/share/bins/* ~/.bins/</h5>
<p>Then execute the bins program (my executable aka binary was installed as  /usr/bin/bins)  Here I&#8217;ve asked bins to use the  satyap template.</p>
<h5>lj@lian:~$ bins -s satyap   ~/Desktop/photosIn  ~/Desktop/photosOut</h5>
<p>You can now experiment using the installed templates and perhaps modify one to suit your needs.  In the installation with Hardy, came  seven templates:  marc, mwolson, satyap, joi martin, petrus, and swigs.</p>
<p>Again bins expects to find these templates in the ~/bins folder which I created above and populated with the contents of /usr/share/bins.</p>
<p>If you get a complaint from bins that it can&#8217;t find &#8220;search_ .js&#8221;.   Open  /etc/bins/binsrc with a text editor</p>
<p>Find the paragraph showing:</p>
<p><strong><em>&lt;!&#8211; If 1, generate a search page. Images can be searched on<br />
description fields set in the searchFields parameter. &#8211;&gt;<br />
&lt;parameter name=&#8221;searchEngine&#8221;&gt;<br />
1<br />
&lt;/parameter&gt;</em></strong></p>
<p>Change the &#8220;searchEngine&#8221; parameter from a one to a zero.   Some templates include a search function written in Java.  If it&#8217;s not included in the templates directory,  bins will complain.  This change will cause bins to omitt a search function.</p>
<p>Another way to invoke bins is like this.  This uses the default template subdirectory and requests the martin template.</p>
<h5>lj@lian:~$ bins -t /usr/share/bins  -s martin  ~/Desktop/photosIn  ~/Desktop/photosOut</h5>
<p>I&#8217;ve posted a sample html page that was created by me using bins here:</p>
<h5><a title="Sample BINS output" href="http://foxgulch.com/Miscellaneous/anker/index.html" target="_blank">http://foxgulch.com/Miscellaneous/anker/index.html</a></h5>
<p>There hasn&#8217;t been much activity on the bins email list since 2005.  This program may have been superceded by a fork or a different technique.  But if you have hundreds of photos to paste into html pages, this program is a definite time saver.  Thanks to their authors.</p>
]]></content:encoded>
			<wfw:commentRss>http://foxgulch.com/WordPress/?feed=rss2&#038;p=279</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

