<?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>Windy Weather &#187; Linux</title>
	<atom:link href="http://www.windyweather.net/wp/category/computers/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.windyweather.net/wp</link>
	<description>The Windy Weather website.</description>
	<lastBuildDate>Wed, 21 Jul 2010 18:56:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ubuntu Karmic Koala Windows File Sharing</title>
		<link>http://www.windyweather.net/wp/2010/01/22/ubuntu-karmic-koala-windows-file-sharing/</link>
		<comments>http://www.windyweather.net/wp/2010/01/22/ubuntu-karmic-koala-windows-file-sharing/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 20:42:41 +0000</pubDate>
		<dc:creator>Darrell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.windyweather.net/wp/?p=1005</guid>
		<description><![CDATA[So, when you install Karmic Koala [9.10], you still don&#8217;t get Windows File sharing [SAMBA], and setting it up is still a few undocumented and obscure steps. I covered this before for Gutsy, but things are a little different with Karmic, so I&#8217;ve redone the screen shots and directions.
If you could Google for &#8220;Ubuntu Samba [...]]]></description>
			<content:encoded><![CDATA[<p>So, when you install Karmic Koala [9.10], you still don&#8217;t get Windows File sharing [SAMBA], and setting it up is still a few undocumented and obscure steps. I covered this before for Gutsy, but things are a little different with Karmic, so I&#8217;ve redone the screen shots and directions.</p>
<p>If you could Google for &#8220;Ubuntu Samba Install&#8221; and get a page that told you what you wanted to know, then I wouldn&#8217;t do this post, but you don&#8217;t get a good page. <a href="https://help.ubuntu.com/community/SettingUpSamba" target="_blank">This page </a>is not that helpful. It looks it was written in the dark ages and it does not configure WINS so that you can PING the other systems on your network.</p>
<p>So here&#8217;s the real scoop, which is a modified version of <a href="http://www.windyweather.net/wp/2008/02/23/ubuntu-samba/" target="_blank">this post I did for Gutsy</a>.</p>
<p><span id="more-1005"></span></p>
<p>First you need to install WINBIND. So use the package manager at SYSTEM &gt; Administration &gt; Synaptic Package Manager. Search for WINBIND and mark for install. This picture shows what you need to have &#8211; or at least what I have installed. I think if you search successively for WINBIND, SAMBA, SMBCLIENT and SMB you will find these. Many of the things in this picture are probably dependencies that will be pulled in automatically.</p>
<p><img class="alignnone size-full wp-image-1009" title="Package_Manager_Samba_Friends" src="http://www.windyweather.net/wp/wp-content/uploads/2010/01/Package_Manager_Samba_Friends.png" alt="" width="319" height="560" /></p>
<p>Now you need to edit the /etc/nsswitch.conf file to change the order to allow wins to work.</p>
<p><a href="http://www.windyweather.net/wp/wp-content/uploads/2010/01/Edit_nsswitch_conf.png" target="_blank"><img class="alignnone size-medium wp-image-1013" title="Edit_nsswitch_conf" src="http://www.windyweather.net/wp/wp-content/uploads/2010/01/Edit_nsswitch_conf-500x400.png" alt="" width="340" height="272" /></a></p>
<p>This change allows winbind to find the other computers on the network. This allows PING to work, which allows you to diagnose issues, and allows SAMBA to find other systems on the network using the wins protocol. You don&#8217;t need to restart anything or reboot after you edit this file. When this is working, you should get the following when you use System &gt; Administration &gt; Network Tools &gt; Ping:</p>
<p><img class="alignnone size-medium wp-image-1015" title="Ping_Works" src="http://www.windyweather.net/wp/wp-content/uploads/2010/01/Ping_Works-500x482.png" alt="" width="386" height="372" /></p>
<p>Ok, the next step is to configure SAMBA by editing the /etc/samba/smb.conf file. The system that I upgraded worked fine after the upgrade from Gutsy to Karmic because this file was preserved, and because the upgrades [ 4 of them] all preserved the packages already installed. But if you are installing a new system, then you will need to change the smb.conf file since it does not work out of the box, as far as I can tell. Here&#8217;s a terminal session that shows what to do to edit the file. I&#8217;m not going to describe the whole Sudo thing, you can find that elsewhere.</p>
<p><a href="http://www.windyweather.net/wp/wp-content/uploads/2010/01/Samba_Fix_Terminal_3.png" target="_blank"><img class="alignnone size-medium wp-image-1017" title="Samba_Fix_Terminal_3" src="http://www.windyweather.net/wp/wp-content/uploads/2010/01/Samba_Fix_Terminal_3-500x240.png" alt="" width="319" height="153" /></a></p>
<p>Notice that Samba needs a restart after any changes to smb.conf. I&#8217;m not going to go through all the details like I did last time, you can refer to the <a href="http://www.windyweather.net/wp/2008/02/23/ubuntu-samba/" target="_blank">previous post</a>.  Here&#8217;s a copy of the file that I&#8217;m using now.</p>
<p><a href="http://www.windyweather.net/wp/wp-content/uploads/2010/01/smb_conf.zip">smb_conf</a></p>
<p>There is one more thing to do. Since we are using security = user with samba, we must set a samba password for every account that we are going to use with samba. I believe this results from the fact that windows users md4 for password hashing, and passes this hash across the network to authenticate users. Since linux [unix] uses a stronger password hash, you must save the MD4 hash of the password in a samba database to allow authentication for samba. Here&#8217;s the process from the other post:</p>
<p><code>darrell@squall-ubuntu:/etc/samba$ sudo smbpasswd -a darrell<br />
[sudo] password for darrell:<br />
New SMB password:<br />
Retype new SMB password:<br />
darrell@squall-ubuntu:/etc/samba$</code></p>
<p>Ignore the following material, it is fixed by the above smbpasswd fix.</p>
<p><span style="text-decoration: line-through;">There are still problems that I cannot solve:</span></p>
<p><span style="text-decoration: line-through;">With this configuration I get two way file sharing with Vista x86 x64 and Win xp on the system that was upgraded. But when I installed a new system, and followed these steps, including using exactly this smb.conf file, the newly installed system would not allow Vista x86 or x64 clients to access Ubuntu. Win XP as the client worked just fine. Ubuntu as the client worked for Vista x86, x64 and Win XP. Read only. I only allow read-only file shares on my network to avoid the spread of worms should I get them.</span></p>
<p><span style="text-decoration: line-through;"><br />
</span></p>
<div id="attachment_1019" class="wp-caption alignnone" style="width: 342px"><img class="size-medium wp-image-1019" title="Samba_working" src="http://www.windyweather.net/wp/wp-content/uploads/2010/01/Samba_working-500x374.png" alt="Looking into a Vista x64 machine" width="332" height="248" /><p class="wp-caption-text">Looking into a Vista x64 Machine</p></div>
<p><span style="text-decoration: line-through;">Here&#8217;s an example of an error when trying to connect to Ubuntu from Vista.</span></p>
<p><span style="text-decoration: line-through;">This is the network as seen from a Vista x86 machine. You can see that both Ubuntu machines, Squall-Ubuntu and Blue-Diamond are visible.</span></p>
<div id="attachment_1026" class="wp-caption alignnone" style="width: 283px"><img class="size-full wp-image-1026" title="Aliensqall_1" src="http://www.windyweather.net/wp/wp-content/uploads/2010/01/Aliensqall_1.jpg" alt="Network as Seen from Vista x86" width="273" height="214" /><p class="wp-caption-text">Network as Seen from Vista x86</p></div>
<p><span style="text-decoration: line-through;">You can connect to Squall-Ubuntu, but not to Blue-Diamond.</span></p>
<p><img class="alignnone size-full wp-image-1025" title="Alienstorm_3" src="http://www.windyweather.net/wp/wp-content/uploads/2010/01/Alienstorm_3.jpg" alt="" width="325" height="254" /></p>
<p><span style="text-decoration: line-through;">It doesn&#8217;t matter whether you put in darrell, or blue-diamond\darrell, you get the same error. But if you connect to squall-ubuntu, which is the upgraded machine, then it works just fine. I have no clue what the differences are between the configurations. Recall that I&#8217;m using the same smb.conf file on both machines and that both have the same nsswitch.conf file.</span></p>
<p><span style="text-decoration: line-through;">No clue what&#8217;s wrong.</span></p>
<p><span style="text-decoration: line-through;">But the Ubuntu machines can see all the Windows machines so I can pull files from them if I like. I pulled the pictures from those machines and did this post from Squall-Ubuntu.</span></p>
<p>So Karmic can play nice with windows, almost. But it&#8217;s still not that way out of the box.</p>
<p>- windy</p>
]]></content:encoded>
			<wfw:commentRss>http://www.windyweather.net/wp/2010/01/22/ubuntu-karmic-koala-windows-file-sharing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Karmic Koala &#8211; File Sharing, and Display Size Glitch</title>
		<link>http://www.windyweather.net/wp/2010/01/21/karmic-koala-update/</link>
		<comments>http://www.windyweather.net/wp/2010/01/21/karmic-koala-update/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 20:01:19 +0000</pubDate>
		<dc:creator>Darrell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.windyweather.net/wp/?p=991</guid>
		<description><![CDATA[I just upgraded my Ubuntu Linux system to Karmic Koala [ 9.10 ] from Gutsy Gibbon [7.04]. As you can tell, it had been some time since I had upgrade. The good news is that the upgrades, through 8.04, 8.10, 8.04, to 9.10, went without a hitch, although they took over 3 hours.

And network file [...]]]></description>
			<content:encoded><![CDATA[<p>I just upgraded my Ubuntu Linux system to Karmic Koala [ 9.10 ] from Gutsy Gibbon [7.04]. As you can tell, it had been some time since I had upgrade. The good news is that the upgrades, through 8.04, 8.10, 8.04, to 9.10, went without a hitch, although they took over 3 hours.</p>
<p><img class="alignnone size-medium wp-image-996" title="Screenshot-Network - File Browser" src="http://www.windyweather.net/wp/wp-content/uploads/2010/01/Screenshot-Network-File-Browser-500x353.png" alt="" width="500" height="353" /></p>
<p>And network file sharing, SAMBA or SMB, works without a hitch with no modifications to the built in configuration. Hurray!!!. You may remember a previous post about<a href="http://www.windyweather.net/wp/2008/02/23/ubuntu-samba/"> Ubuntu Not Playing Nice</a> that showed the modifications that I had to do to BIND and to SMB configuration to get things to work. UPDATE: file sharing worked because I had fixed it in Gutsy. It still DOES NOT WORK OUT OF THE BOX with Karmic Koala.</p>
<p>See<a href="http://www.windyweather.net/wp/2010/01/22/ubuntu-karmic-koala-windows-file-sharing/" target="_blank"> this post for how to start to make it work with Karmic</a> [9.10].</p>
<p><span id="more-991"></span>Well everything works just fine now. No changes to any of the default configuration files. As you visit the first sites, I had to allow Samba to access the KeyRing and enter passwords, but after that all is well. I use the same login for all my machines, so I only had to enter that login once for it to work everywhere. I have Win XP, Vista x86 and Vista x64 machines so this is good news for almost everyone. BTW, it works to another machine running Gutsy too, which I&#8217;m in the process of upgrading.</p>
<p>But there was a small glitch when I did the last upgrade, but I&#8217;ll get to that in a moment.</p>
<p>The upgrade process takes you though each of the upgrades in sequence. No skipping ahead. So it takes a while. There are dialogs that tell you about the changes you may have made to configuration files for some components, like SAMBA, so you have to watch for those since they stop the upgrade. At first I keep my changes, but finally decided to see if they had fixed problems and said REPLACE to take the new files. There were only three of those as I recall, SAMBA and a couple of others, like Internet Time and one other that was so obscure that I don&#8217;t recall having changed it.</p>
<p>When the upgrades finally finished, the display was left in a strange state. The desktop was too large for the screen, and dragging the mouse panned the desktop around on the screen. This computer has an NVIDIA display controller, and apparently there is a little glitch or two to be worked out with that integration. Here&#8217;s a picture of the entire Desktop image as captured with Screenshot.</p>
<p><a href="http://www.windyweather.net/wp/wp-content/uploads/2010/01/Desktop_Wrong_1.png" target="_blank"><img class="alignnone size-medium wp-image-992" title="Desktop_Wrong_1" src="http://www.windyweather.net/wp/wp-content/uploads/2010/01/Desktop_Wrong_1-500x312.png" alt="" width="500" height="312" /></a></p>
<p>If you try to set the display size you get an error.</p>
<p><img class="alignnone size-full wp-image-999" title="System_Pref_Display_Error" src="http://www.windyweather.net/wp/wp-content/uploads/2010/01/System_Pref_Display_Error.png" alt="" width="459" height="130" /></p>
<p>If you say YES at this point, which is what is indicated, then you go to the NVIDIA panel and you can&#8217;t fix the panning problem. Here&#8217;s the NVIDIA panel.</p>
<p><a href="http://www.windyweather.net/wp/wp-content/uploads/2010/01/NVidia_Screen.png" target="_blank"><img class="alignnone size-thumbnail wp-image-993" title="NVidia_Screen" src="http://www.windyweather.net/wp/wp-content/uploads/2010/01/NVidia_Screen-200x188.png" alt="" width="200" height="188" /></a></p>
<p>But this is set correctly to 1600 x 1050 [ which is my monitor size.] But&#8230; that doesn&#8217;t fix the panning issue.</p>
<p>There is another error with this panel that I don&#8217;t understand.</p>
<p><a href="http://www.windyweather.net/wp/wp-content/uploads/2010/01/Save_Config.png" target="_blank"><img class="alignnone size-thumbnail wp-image-994" title="Save_Config" src="http://www.windyweather.net/wp/wp-content/uploads/2010/01/Save_Config-200x187.png" alt="" width="200" height="187" /></a></p>
<p>If you save the configuration, you get an error.</p>
<p><img class="alignnone size-full wp-image-995" title="Save_Config_Error" src="http://www.windyweather.net/wp/wp-content/uploads/2010/01/Save_Config_Error.png" alt="" width="342" height="154" /></p>
<p>Not sure what&#8217;s up with that.</p>
<p>So the right way to fix this is to say YES to the first dialog about the graphics driver support and you get the built-in display dialog:</p>
<p><img class="alignnone size-full wp-image-998" title="Screenshot-Display Preferences" src="http://www.windyweather.net/wp/wp-content/uploads/2010/01/Screenshot-Display-Preferences.png" alt="" width="485" height="471" /></p>
<p>This was set incorrectly to 1900&#215;1200, which caused the panning. By setting the resolution to 1600&#215;1050, all is well. Minor glitch.</p>
<p>By the way, I enabled visual effects in System &gt; Preferences &gt; Appearance &gt; Visual Effects &gt; Extra, and the waving windows are way cool.</p>
<p>The reason for upgrading my Ubuntu is so that I can do Safe Online Banking with no fear of Trojans stealing my banking information. I&#8217;m going to be doing all my online banking using Ubuntu now.</p>
<p>Have a good one.</p>
<p>- Windy</p>
]]></content:encoded>
			<wfw:commentRss>http://www.windyweather.net/wp/2010/01/21/karmic-koala-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Media Servers for a PS3</title>
		<link>http://www.windyweather.net/wp/2008/03/22/media-servers-ps3/</link>
		<comments>http://www.windyweather.net/wp/2008/03/22/media-servers-ps3/#comments</comments>
		<pubDate>Sun, 23 Mar 2008 05:21:17 +0000</pubDate>
		<dc:creator>Darrell</dc:creator>
				<category><![CDATA[Bug Info]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Playstation 3]]></category>

		<guid isPermaLink="false">http://www.windyweather.net/wp/2008/03/22/media-servers-ps3/</guid>
		<description><![CDATA[
The PS3 is probably the best, and reasonably priced, Blu-Ray player on the market. Now that the HD format wars are over, it was time to get a Blu-Ray player
All the Windows hype about the &#8220;Media Editions&#8221; of Windows was never very clear. Apparently the Media Edition contains the features necessary to serve various files [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.windyweather.net/wp/wp-content/uploads/2008/03/_ps3.jpg" width="200" height="199" alt="PS3" title="PS3"  align="left" hspace="10" /><br />
The PS3 is probably the best, and reasonably priced, Blu-Ray player on the market. Now that the HD format wars are over, it was time to get a Blu-Ray player</p>
<p>All the Windows hype about the &#8220;Media Editions&#8221; of Windows was never very clear. Apparently the Media Edition contains the features necessary to serve various files to the other entertainment systems in the home. Music and video players can play files from your desktop harddrive via these servers. Now with a new PS3, Media Services is becoming more useful. It will be interesting to play photos and videos from a server. The PS3 only has a 40GB harddrive and the file management features of the PS3 are very primitive.<br />
<span id="more-250"></span><br />
<strong>Summary</strong></p>
<p><a href="http://www.twonkyvision.de/">TwonkyMedia Server</a> is the best one that I&#8217;ve found. Very reasonable price &#8211; $39.95US. It runs on both Windows [Vista x64] and Ubuntu Linux with no problem. It is very efficient using very little memory and processor time. It works just fine on my little Blue-Diamond 800MHz VIA system.</p>
<p><strong>Test Cases</strong></p>
<p>The test cases are modest. About 860 images &#8211; jpgs 1024&#215;768 on the PC and 1280&#215;1024 on the Linux box. About 250 mp3 files. The images all display on the PS3 from a USB flash key. Almost all the music files play from a data DVD when inserted into the PS3. Some show &#8220;Corrupted File&#8221; on the PS3 for an unknown reason. Most of the mp3 files play with no problems using WinAMP on a Windows PC. As of today, the PS3 is running version 2.17 of the firmware.</p>
<p><strong>Update:</strong> I&#8217;ve discovered the source of some, if not all, of the Corrupted File indications.<br />
<a href="http://www.windyweather.net/wp/wp-content/uploads/2008/03/MP3Tag_FunnyTags.png" target="image"><img src="http://www.windyweather.net/wp/wp-content/uploads/2008/03/_MP3Tag_FunnyTags.png" width="400" height="234" alt="MP3Tag" title="MP3Tag"  /></a><br />
Using MP3Tag V2.40 I&#8217;ve discovered that a few of the files had very strange meta data, and were in an unsupported format. Click on the pic above to see the full size view. Note that the highlighted files have strange bitrates and frequencies. I&#8217;m not sure whether this causes the server to trip up, or just the PS3.<br />
After retesting Twonky and gMediaServer after cleaning out the strange files allowed Twonky to sometimes serve the files, but often it tripped up with a 2103 protocol error and basically stopped working after that. gMediaServer still would not serve any of the sanitized mp3 files. </p>
<p><strong>Nero Media Home &#8211; Ultra 8</strong><br />
<img src="http://www.windyweather.net/wp/wp-content/uploads/2008/03/Neromediahome-64.png" width="64" height="64" alt="Nero Media Home" title="Nero Media Home"  align="left" hspace="10"  /></p>
<p>A google search for &#8220;PS3 media servers&#8221; indicates that Nero Media Home is a media server. But I suggest you don&#8217;t waste your time with it. There are several reasons:</p>
<ul>
<li>It is very resource intensive, shall we say, taking over 60MB of your precious ram to run the server. This burden requires an indexing service, which is a constant load on the system regardless of whether you are using the server or not.</li>
<li>It&#8217;s not fast in it&#8217;s response to serving to the PS3. It takes a very long time to get the list of items to the PS3.</li>
<li>It causes protocol error reports on the PS3. &#8220;DLNA Protocol Error 80710092&#8243; whatever that is.</li>
<li>The NMH crashes and hangs quite often, esp when you stop and start the server.</li>
<li>It won&#8217;t serve mp3s. You get No Tracks Available on the PS3.</li>
<li>Photos work somewhat, but are slow.</li>
</ul>
<p><strong>A Little Blue Linux Box</strong><br />
<img src="http://www.windyweather.net/wp/wp-content/uploads/2008/03/gnu-head-sm.jpg" width="129" height="122" alt="GNU" title="GNU"  align="left" hspace="10"  /><br />
The<a href="http://www.windyweather.net/wp/2008/01/10/puppy-on-bluediamond-1/"> little blue Linux box</a> seemed like a good candidate for a server. It now has a wireless adapter &#8211; ZyXEL G202 and is running Ubuntu 7.10.</p>
<p>After a little research, <a href="http://www.gnu.org/software/gmediaserver/">gMediaServer </a>seemed like a good server to try. 0.12.0 is built into Ubuntu 7.10. The latest version 0.13.0 supports PS3 explicitly with a profile for PS3 that sets all the media types supported by the PS3. Not sure what else the server knows about the PS3.</p>
<p>When started with the following command line the server serves photos to the PS3 with no problems.</p>
<p><code>gmediaserver -ieth1 -v1<br />
	--file-types='jpg,mp3'<br />
	--friendly-name='Blue-Diamond Media Server'<br />
	/home/darrell/Pictures/Fantasy_1280<br />
	/home/darrell/Music/musicfiles<br />
</code></p>
<p>When running the gmediaserver only requires 1.6MB of memory. It serves photos with no problem and much faster than the Nero system, as observed from the PS3 system. Occasionally a &#8220;DLNA protocol error 2103&#8243; appears, but this only appears once or twice when the server starts to display images.</p>
<p>Music files do not work. I get &#8220;No Tracks Available&#8221; on the PS3. Since neither server will serve music files to the PS3, the problem may be in the PS3. <strong>Update:</strong> Even the sanitized mp3 files would not show up at all in the PS3.</p>
<p><strong>Twonky Media Server</strong></p>
<p><img src="http://www.windyweather.net/wp/wp-content/uploads/2008/03/_TwonkyMedia.png" width="200" height="73" alt="Twonky Media" title="Twonky Media"  align="left" hspace="10" /><br />
Twonky Media 4.4.4 is very light weight &#8211; only about 4MB of ram total for the two server processes, and has a nice web interface for configuration.</p>
<p>It works very well for photos, and shows music files, but the files will not play. The PS3 tosses a &#8220;800100B network error&#8221; when you try to play a track, after a very long time of waiting.</p>
<p><strong>Summary</strong></p>
<ol>
<li>Nero Media Home &#8211; Ultra 8 version. Photos work. Music doesn&#8217;t show any tracks and it tosses 80710092 protocol errors. This thing is 60MB of ram [ can you believe it??] in three processes, and it keeps crashing. So dead in the water as far as I&#8217;m concerned.</li>
<li>gMediaServer 0.13.0 on Ubuntu 7.10 &#8211; 1.6MB of ram. Works great for photos. But again music does not work. Shows no tracks. Occasionally I get 2013 protocol errors.</li>
<li>Twonky Media 4.4.4 &#8211; Very nice with web config and light weight in memory &#8211; two processes of about 4MB total of memory. Photos work just fine. Music tracks show in the list but trying to play a track gets an 8001000B protocol error.</li>
</ol>
<p>BTW, all the mp3 music files play just fine from a data DVD on the PS3 and on WinAmp on PC. And on the Linux system too BTW.</p>
<p>So, I conclude that the PS3 V 2.17 is broken for media services for playing Music.</p>
<p>Anybody prove me wrong?</p>
<ul>
<li>What media server are you using to play MP3 music on your PS3, and where did you get your MP3 file?</li>
<li>Do we know that the PS3 is picky about it&#8217;s MP3 files?</li>
<li>Why should it be pickier about the MP3 files over the net than it is from a DVD?</li>
</ul>
<p><strong>Update:</strong> This PS3 appears fairly picky about mp3 files, esp when reading files from a MediaServer and the protocol apparently does not recover from a bad file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.windyweather.net/wp/2008/03/22/media-servers-ps3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu and Windows Play Nice, but Not Out of the Box</title>
		<link>http://www.windyweather.net/wp/2008/02/23/ubuntu-samba/</link>
		<comments>http://www.windyweather.net/wp/2008/02/23/ubuntu-samba/#comments</comments>
		<pubDate>Sat, 23 Feb 2008 23:08:20 +0000</pubDate>
		<dc:creator>Darrell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.windyweather.net/wp/2008/02/23/ubuntu-samba/</guid>
		<description><![CDATA[Ubuntu and Windows can work together on a network of course, using winbind and samba. But Ubuntu doesn&#8217;t come that way and the configuration of Samba needs some work to make it happen.
I&#8217;ve got my systems all file sharing now, but it took some doing since I&#8217;m not a Samba expert.

It is a long and [...]]]></description>
			<content:encoded><![CDATA[<p>Ubuntu and Windows can work together on a network of course, using winbind and samba. But Ubuntu doesn&#8217;t come that way and the configuration of Samba needs some work to make it happen.</p>
<p>I&#8217;ve got my systems all file sharing now, but it took some doing since I&#8217;m not a Samba expert.<br />
<span id="more-247"></span><br />
It is a long and sorted tale taking about a week of posts on the Ubuntu forums with lots of missteps along the way, but I&#8217;ll cut to the final answer. If you really want to read the post in all it&#8217;s gory detail, go to the<a href="http://ubuntuforums.org/showthread.php?t=701994"> Very Strange Network Addresses</a> post.</p>
<p>Caveat: I&#8217;m not a Linux expert and while I&#8217;ve used and coded IP applications for years, my commentary below may be flawed. If you see a mistake, let me know and I&#8217;ll be happy to correct it.</p>
<p><strong>Start with Ping</strong><br />
After trying to fire up Samba and letting it go, it was a real mess. So when you do this it&#8217;s best to take it in stages.</p>
<p>Since modern Windows machines use file sharing over Tcp/Ip, we should get the machines talking with each other via Tcp first. I would have thought that Ubuntu would come Out of the Box [OOTB] that way, but it doesn&#8217;t.</p>
<p>I suggest you start by installing winbind and fixing up your /etc/nsswitch.conf file. Thanks to i_m_bobo for putting me on the right track here. My solution is similar, but not identical to his.</p>
<p>If you are new to installing packages, use System &gt;&gt; Administration &gt;&gt; Synaptic Package Manager and search for winbind. Set it to install and use apply. All new packages are installed this way.</p>
<p>I had to look around a bit to find out how to edit config files on Ubuntu. As you will quickly find, Ubuntu has a philosophy of a locked root account and uses sudo and gksudo commands to perform root command functions from your normal account. After using this a while, I quite like it.</p>
<p>Use sudo for command lines and gksudo for graphics commands. Look up these commands on the web for a full explanation, but here is how you edit your nsswitch.conf file:</p>
<p><code>darrell@squall-ubuntu:~$<br />
darrell@squall-ubuntu:~$ cd /etc<br />
darrell@squall-ubuntu:/etc$ gksudo gedit nsswitch.conf<br />
darrell@squall-ubuntu:/etc$<br />
</code></p>
<p>The nsswitch.conf file I&#8217;m using looks like this:<br />
<code>darrell@squall-ubuntu:/etc$ more nsswitch.conf<br />
# /etc/nsswitch.conf<br />
#<br />
# Example configuration of GNU Name Service Switch functionality.<br />
# If you have the `glibc-doc-reference' and `info' packages installed, try:<br />
# `info libc "Name Service Switch"' for information about this file.<br />
passwd:         compat<br />
group:          compat<br />
shadow:         compat<br />
hosts:          files wins mdns4_minimal [NOTFOUND=return] dns mdns4<br />
networks:       files<br />
protocols:      db files<br />
services:       db files<br />
ethers:         db files<br />
rpc:            db files<br />
netgroup:       nis<br />
darrell@squall-ubuntu:/etc$<br />
</code><br />
I added &#8220;wins&#8221; after files and before dns so that local host names would be resolved by wins if possible before using dns. Without winbind and this change, the host names were being resolved externally by dns, which is bound to give bad addresses.</p>
<p>After this change, you should be able to ping the rest of the windows boxes on your network, whether they are getting their IP addresses via DHCP or they are set to static addresses. I have both types on my network. It&#8217;s a good idea to test the pings both ways, of course.</p>
<p><strong>Install Samba and Friends</strong><br />
Now install the various Samba files. These are the ones that I have installed:<br />
<a href="http://www.windyweather.net/wp/wp-content/uploads/2008/02/samba_installed_components.png" target="image"><img title="Samba Installed Components" src="http://www.windyweather.net/wp/wp-content/uploads/2008/02/_samba_installed_components.png" alt="Samba Installed Components" width="400" height="129" /></a><br />
Click for a larger view.</p>
<p><strong>Edit Your smb.conf File</strong></p>
<p>I&#8217;m using WORKGROUP and not a domain solution.<br />
Here are the changes that I&#8217;ve made:<br />
<img title="Samba Global settings" src="http://www.windyweather.net/wp/wp-content/uploads/2008/02/samba_global_settings.png" alt="Samba Global settings" width="403" height="482" /></p>
<ul>
<li><strong>wins support = no</strong> for do not make this machine a wins server.</li>
<li>Leave<strong> wins server</strong> commented out since we are not using wins in samba, but rather we are using winbind though dns.</li>
<li><strong>dns proxy = yes</strong> looks like another good thing to do since we are using dns and not wins or netbios to resolve addresses.</li>
<li>Make sure that your name resolve order contains wins.</li>
</ul>
<p><strong>Authentication Settings</strong><br />
<img title="Auth settings" src="http://www.windyweather.net/wp/wp-content/uploads/2008/02/samba_auth_settings.png" alt="Auth settings" width="400" height="210" /><br />
I would like to use <strong>security = user</strong> but my windows boxes refuse to connect to my Linux box with this setting. They prompt for a password, but apparently the Linux box does not accept the user / password. Not clear why. I have used encrypt passwords = false and no change.</p>
<p><strong>Use System &gt;&gt;  Administration &gt;&gt; Shared Folders to Create Shares</strong><br />
<img title="Samba Shares" src="http://www.windyweather.net/wp/wp-content/uploads/2008/02/samba_shares.png" alt="Samba Shares" width="233" height="128" /></p>
<p>Once you  have the machines connecting to each other, you can use System &gt;&gt; Administration &gt;&gt; Shared Folders to create shares. This program modifies smb.conf for you to add shares. Don&#8217;t mess with the Advanced tab tho since that may undo some of the above changes.</p>
<p>Apparently every time you make a change to the smb.conf file and save it, samba takes the new settings. No reboots required.</p>
<p>I hope this keeps some of you out of the weeds.</p>
<p><strong>Update:</strong> Here&#8217;s the fix for <strong>security = user</strong> to work.</p>
<p>You need to add a password to the separate Samba password database. Use the following for each user and change <strong>security = share</strong> to <strong>security = user</strong>.</p>
<p><code>darrell@squall-ubuntu:/etc/samba$ sudo smbpasswd -a darrell<br />
[sudo] password for darrell:<br />
New SMB password:<br />
Retype new SMB password:<br />
darrell@squall-ubuntu:/etc/samba$<br />
</code></p>
<p>Enjoy<br />
- windy</p>
]]></content:encoded>
			<wfw:commentRss>http://www.windyweather.net/wp/2008/02/23/ubuntu-samba/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XML Signatures to Protect Settings Files</title>
		<link>http://www.windyweather.net/wp/2008/02/06/xml-signatures-to-protect-settings-files/</link>
		<comments>http://www.windyweather.net/wp/2008/02/06/xml-signatures-to-protect-settings-files/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 00:48:03 +0000</pubDate>
		<dc:creator>Darrell</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.windyweather.net/wp/2008/02/06/xml-signatures-to-protect-settings-files/</guid>
		<description><![CDATA[When settings files are transferred as part of a program update, it may be interesting to assure that the files are not corrupted, or changed in such a way that the program is compromised. One can do this with XML Signatures.

Consider the following example:
Widgets Inc needs to create WidgetsSpecs.xml at their home office to update [...]]]></description>
			<content:encoded><![CDATA[<p>When settings files are transferred as part of a program update, it may be interesting to assure that the files are not corrupted, or changed in such a way that the program is compromised. One can do this with XML Signatures.<br />
<span id="more-244"></span><br />
Consider the following example:<br />
Widgets Inc needs to create WidgetsSpecs.xml at their home office to update the WidgesFactory software at some of their many plants. In this example, WidgetsSpecs.xml is not a secret formula, but Widgets Inc wants to make sure that folks do not tamper with the settings along the way and create subversive or corrupted widgets. The following method will secure the WidgetsSpecs.xml file against tampering.</p>
<p>To security their specifications, Widgets Inc needs to create a private key, a <a href="http://en.wikipedia.org/wiki/Self-signed_certificate">self signed certificate</a>, and then sign their WidgetsSpecs.xml files with the private key. Only the self signed certificate is passed to the  application in the field and it is provided in a secure way so that it cannot be compromised. Once this is done then the software application can verify that the WidgetsSpecs.xml files are authentic.</p>
<ol>
<li>Widgets Inc creates a Certificate Authority, using OpenSSL, and a private key of say, 2048 bits so that it is highly secure. 2048 bits of RSA key are the normal suggested strength for computing today. This  process of <a href="http://www.dylanbeattie.net/docs/openssl_iis_ssl_howto.html">creating a Private Key and Self Signed Certificate is outlined here</a> and will not be covered in detail in this tutorial. The result is this is a private file called WidgetsInc.key which is the private key and will be protected in a very secure manner by Widgets Inc. and the WidgetsCert.crt which is the self-signed certificate which is public and need not be secured.</li>
<li>Once these are created, then the WIdgetsSpecs.xml file is created with some extra wrappers to contain the signature. There is an example below.</li>
<li>At the Widgets Inc company, in a secure place, the WidgetsSpecs.xml file is signed using the WidgetsInc.key file. This adds a digest or hash value to the xml file which can only be verified with the correct public key from the certificate.</li>
<li>When the WidgetsFactory application was built, the WidgetsCert.crt certificate was included with the application in a way so that it could not be compromised. If this crt file can be replaced by a hacker, then any signed XML file can be substituted. There are several ways to secure the crt file: (1) embed the file in the program itself rather than just placing the file on the disk where it can be changed. (2) In addition, embed a hash function of the crt file in the program so that the program can find out if the file has been tampered with.</li>
<li>Each time the WidgetsFactory application starts up, it reads the WidgetsSpec.xml file and verifies the signature using the valid crt file. If the CRT file does not pass the hash checks, or the signature does not pass, the WidgetFactory application refuses to make widgets.</li>
</ol>
<p><strong>Cautions and Caveats</strong><br />
Widgets Inc could decide to spend the money on a trusted certificate from a company like Verisign for this purpose. But these certificates cost money and they expire. When creating a Self-Signed certificate there are no costs and the expiration date can be set to 5 years, if desired.</p>
<p>The private key is protected at Widgets Inc and is not embedded or distributed with the Widget Factory application.</p>
<p><strong> Example Files</strong></p>
<p>These examples were taken in part from the <a href="http://www.aleksey.com/xmlsec/index.html">XML Security Library </a>site. </p>
<p>Template File including the Settings to be signed.<br />
<a href="http://www.windyweather.net/wp/wp-content/uploads/2008/02/widgetsspecs-template.png" target="image"><img src="http://www.windyweather.net/wp/wp-content/uploads/2008/02/_widgetsspecs-template.png" width="400" height="232" alt="Template to Sign" title="Template to Sign"  /></a></p>
<p>Signed XML File<br />
<a href="http://www.windyweather.net/wp/wp-content/uploads/2008/02/widgetsspecs-signed.png" target="image"><img src="http://www.windyweather.net/wp/wp-content/uploads/2008/02/_widgetsspecs-signed.png" width="400" height="269" alt="Signed File" title="Signed File"  /></a></p>
<p><strong>Using xmlsec1 to Sign and Verify the XML files.</strong><br />
<code><br />
darrell@squall-ubuntu:~/code/xmlsigntest$ xmlsec1 --sign --privkey-pem ca.key --output WidgetsSpecs-signed.xml WidgetsSpecs-Template.xml<br />
darrell@squall-ubuntu:~/code/xmlsigntest$ xmlsec1 --verify --pubkey-cert-pem wwcdd.crt WidgetsSpecs-signed.xml<br />
OK<br />
SignedInfo References (ok/all): 1/1<br />
Manifests References (ok/all): 0/0<br />
darrell@squall-ubuntu:~/code/xmlsigntest$<br />
</code></p>
<p>To examine all the files in the example, download <a href="http://www.windyweather.net/wp/wp-content/uploads/2008/02/widgetsexample.zip">widgetsexample.zip</a>.</p>
<p>Some observations:</p>
<ul>
<li>This example was performed using Ubuntu 7.10, where xmlsec1 and the other software required is easily installed.</li>
<li>The software is easily ported to Windows and the libraries have been ported to <a href="http://www.zlatkovic.com/libxml.en.html">Windows by Zlatkovic</a>.
<p>Enjoy,<br />
ww</p>
]]></content:encoded>
			<wfw:commentRss>http://www.windyweather.net/wp/2008/02/06/xml-signatures-to-protect-settings-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Puppy Linux on a Blue Diamond VIA C3</title>
		<link>http://www.windyweather.net/wp/2008/01/10/puppy-on-bluediamond-1/</link>
		<comments>http://www.windyweather.net/wp/2008/01/10/puppy-on-bluediamond-1/#comments</comments>
		<pubDate>Fri, 11 Jan 2008 01:25:20 +0000</pubDate>
		<dc:creator>Darrell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.windyweather.net/wp/2008/01/10/puppy-on-bluediamond-1/</guid>
		<description><![CDATA[I recently purchased a 15&#8243; PhotoFrame for what seemed like a great price of $250US. Of course now they have a WiFi version for $270. But I have a 17&#8243; LCD monitor that wasn&#8217;t pulling it&#8217;s weight anymore, so I wondered how much trouble it would be to make a PhotoFrame from that.

Seemed like Linux [...]]]></description>
			<content:encoded><![CDATA[<div class='series_toc'><h3>Table of contents for blued</h3><ol><li>Puppy Linux on a Blue Diamond VIA C3</li><li><a href='http://www.windyweather.net/wp/2008/01/10/puppy-on-bluediamond-2/' title='Booting Puppy on the Blue Diamond'>Booting Puppy on the Blue Diamond</a></li><li><a href='http://www.windyweather.net/wp/2008/01/10/puppy-on-bluediamond-3/' title='Installing Puppy on the Blue Diamond'>Installing Puppy on the Blue Diamond</a></li></ol></div> <p>I recently purchased a <a href="http://www.thinkgeek.com/electronics/cameras/96a6/">15&#8243; PhotoFrame</a> for what seemed like a great price of $250US. Of course now they have a WiFi version for $270. But I have a 17&#8243; LCD monitor that wasn&#8217;t pulling it&#8217;s weight anymore, so I wondered how much trouble it would be to make a PhotoFrame from that.<br />
<span id="more-239"></span><br />
Seemed like Linux was the way to go, so I looked around for a cheap, small format PC, since it didn&#8217;t make sense to run it with an Old Desktop machine. How Klunky is that?? Here is my final solution. I&#8217;m going to talk about what to watch for as you try to build one of these for yourself.</p>
<p><img title="Blue Diamond as a Photo Frame" src="http://www.windyweather.net/wp/wp-content/uploads/2008/01/blue-diamond/_DSC_0734.JPG" alt="Blue Diamond as a Photo Frame" width="265" height="400" /></p>
<p>After a lot of looking around and being confused by all the options and lack of any support in this space, I found a company that had a clue and would talk to me about my application. The Linux Forums were no help, by the way. Several posts to several different forums got no response as if nobody had ever made Linux run on such devices.</p>
<p>This is the device I selected: <a href="http://www.komusa.com/fcofasy53cpu.html">Blue Diamond CV860A</a>. I got the version with 800MHz but fewer Lan ports. I chose the CV860A &#8211; 1R80 since it was only $8 more than the slower model. Beware, this device uses &#8220;Low Profile&#8221; DIMMs. NewEgg had a 4GB flash card and a PC133 512MB DIMM for about $40 each, so I seemed all set.</p>
<p><strong>Woops &#8211; Need to have Low Profile DIMMs</strong></p>
<p>Until I found that the BlueD required Low Profile DIMMs.. But alas I lucked out and the PC133 was low profile and worked like a champ.<br />
Here&#8217;s what happens with High Profile DIMMs &#8211; like the normal ones that you use in Desktops.<br />
<a href="http://www.windyweather.net/wp/wp-content/uploads/2008/01/blue-diamond/DSC_0595.JPG" target="image"><img title="High Profile DIMM" src="http://www.windyweather.net/wp/wp-content/uploads/2008/01/blue-diamond/_DSC_0595.JPG" alt="High Profile DIMM" width="400" height="265" /></a><br />
Can&#8217;t close the case. But low profile DIMMs work just fine:<br />
<a href="http://www.windyweather.net/wp/wp-content/uploads/2008/01/blue-diamond/DSC_0615.JPG" target="image"><img title="Low Profile DIMM" src="http://www.windyweather.net/wp/wp-content/uploads/2008/01/blue-diamond/_DSC_0615.JPG" alt="Low Profile DIMM" width="400" height="265" /></a></p>
<p><strong>Loading Linux?? From where?</strong></p>
<p>The BD will support a 2.5&#8243; IDE drive, but I wanted to run it from a CF card if possible. But how do you get it on there? Turns out the simplest way is to boot from CD-ROM and run an installer. Well, the BD supports a USB CD-ROM, so no problem. Here is the system all hooked up and ready to install:<br />
<a href="http://www.windyweather.net/wp/wp-content/uploads/2008/01/blue-diamond/DSC_0626.JPG" target="image"><img title="Blue Diamond" src="http://www.windyweather.net/wp/wp-content/uploads/2008/01/blue-diamond/_DSC_0626.JPG" alt="Blue Diamond" width="400" height="265" /></a></p>
<p><strong>Ubuntu or not to Ubuntu?</strong><br />
<img title="Ubuntu Loading" src="http://www.windyweather.net/wp/wp-content/uploads/2008/01/blue-diamond/_DSC_0652.JPG" alt="Ubuntu Loading" width="400" height="265" /><br />
I had installed Ubuntu on a desktop machine and a HD. No problem, well almost no problem. The system set the screen to 800&#215;600 and the installer dialogs were assuming a larger screen, so that was a hassle, but after that the system installed just fine. On the desktop&#8230;.<br />
<img title="Ubuntu fails to start" src="http://www.windyweather.net/wp/wp-content/uploads/2008/01/blue-diamond/_DSC_0659.JPG" alt="Ubuntu fails to start" width="400" height="265" /><br />
But on the blue diamond, it failed to start. It got all the way to the GNOME display manager and then hung. The system on the CDROM would not start. I&#8217;ll post this on the Ubuntu forums and see if anybody has any ideas.</p>
<p><strong>Update: 14 Jan</strong> The problem with the Ubuntu install was insufficient RAM. The Ubuntu CD requires 384MB RAM for the install. Once I tried it with 512MB of RAM it worked fine. Ubuntu 7.10 installed without problems on a 38GB IDE 2 1/2&#8243; HD connected to the Blue-Diamond. The BD is supplied with a cable and bracket to hold a standard Laptop form-factor HD. While Puppy works fine, as you will see from the later articles, Ubuntu is a better match to take advantage of the HD and RAM space of the larger system. On the BD, Ubuntu correctly sized the screen for 1280&#215;1024x24, unlike the previous install on a Compaq Presario.</p>
<p>Continue with the series to read about Puppy Linux installation.</p>
 <div class='series_links'> <a href='http://www.windyweather.net/wp/2008/01/10/puppy-on-bluediamond-2/' title='Booting Puppy on the Blue Diamond'>Next in series</a></div>]]></content:encoded>
			<wfw:commentRss>http://www.windyweather.net/wp/2008/01/10/puppy-on-bluediamond-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Booting Puppy on the Blue Diamond</title>
		<link>http://www.windyweather.net/wp/2008/01/10/puppy-on-bluediamond-2/</link>
		<comments>http://www.windyweather.net/wp/2008/01/10/puppy-on-bluediamond-2/#comments</comments>
		<pubDate>Thu, 10 Jan 2008 23:34:29 +0000</pubDate>
		<dc:creator>Darrell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.windyweather.net/wp/2008/01/10/puppy-on-bluediamond-2/</guid>
		<description><![CDATA[I chose Puppy Linux 3.01 and burned a CDROM. I&#8217;ve got Nero 8, so that part was a snap.
When I booted the CDROM, I got a much better result than for Ubuntu:


and then it popped up this:

Looked like it was rolling. Next was the Video wizard:

And then after choosing XORG I got this:

The BD has [...]]]></description>
			<content:encoded><![CDATA[<div class='series_toc'><h3>Table of contents for blued</h3><ol><li><a href='http://www.windyweather.net/wp/2008/01/10/puppy-on-bluediamond-1/' title='Puppy Linux on a Blue Diamond VIA C3'>Puppy Linux on a Blue Diamond VIA C3</a></li><li>Booting Puppy on the Blue Diamond</li><li><a href='http://www.windyweather.net/wp/2008/01/10/puppy-on-bluediamond-3/' title='Installing Puppy on the Blue Diamond'>Installing Puppy on the Blue Diamond</a></li></ol></div> <p>I chose <a href="http://www.puppylinux.org/user/downloads.php?cat_id=1">Puppy Linux 3.01</a> and burned a CDROM. I&#8217;ve got Nero 8, so that part was a snap.</p>
<p>When I booted the CDROM, I got a much better result than for Ubuntu:<br />
<img src="http://www.windyweather.net/wp/wp-content/uploads/2008/01/blue-diamond/_DSC_0664.jpg" width="400" height="125" alt="puppy booting from CDROM" title="puppy booting from CDROM" /><br />
<span id="more-240"></span><br />
and then it popped up this:<br />
<img src="http://www.windyweather.net/wp/wp-content/uploads/2008/01/blue-diamond/_DSC_0665.jpg" width="348" height="400" alt="Keyboard Config from Puppy" title="Keyboard Config from Puppy" /><br />
Looked like it was rolling. Next was the Video wizard:<br />
<img src="http://www.windyweather.net/wp/wp-content/uploads/2008/01/blue-diamond/_DSC_0667.jpg" width="400" height="300" alt="Video Wizard" title="Video Wizard" /><br />
And then after choosing XORG I got this:<br />
<img src="http://www.windyweather.net/wp/wp-content/uploads/2008/01/blue-diamond/_DSC_0703.jpg" width="400" height="316" alt="Video Settings" title="Video Settings" /><br />
The BD has a limited Video chip. It supports 1600&#215;1280x16, but I needed 24bit color at least for photos. But it turns out that this works fine. And then you get a friendly Test Dialog:<br />
<img src="http://www.windyweather.net/wp/wp-content/uploads/2008/01/blue-diamond/_DSC_0704.jpg" width="400" height="265" alt="TestX on Puppy" title="TestX on Puppy" /></p>
<p>and the test was fine&#8230; Two CTRL/ALT/BACKSPACEs to get back to the wizard and<br />
<img src="http://www.windyweather.net/wp/wp-content/uploads/2008/01/blue-diamond/_DSC_0708.jpg" width="400" height="289" alt="Video Works" title="Video Works" /></p>
<p>All was well.</p>
<p><img src="http://www.windyweather.net/wp/wp-content/uploads/2008/01/blue-diamond/_DSC_0668.jpg" width="400" height="320" alt="Woof Woof" title="Woof Woof" /></p>
<p> Now the next part is installing Puppy on the CF flash card.</p>
 <div class='series_links'><a href='http://www.windyweather.net/wp/2008/01/10/puppy-on-bluediamond-1/' title='Puppy Linux on a Blue Diamond VIA C3'>Previous in series</a> <a href='http://www.windyweather.net/wp/2008/01/10/puppy-on-bluediamond-3/' title='Installing Puppy on the Blue Diamond'>Next in series</a></div>]]></content:encoded>
			<wfw:commentRss>http://www.windyweather.net/wp/2008/01/10/puppy-on-bluediamond-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Puppy on the Blue Diamond</title>
		<link>http://www.windyweather.net/wp/2008/01/10/puppy-on-bluediamond-3/</link>
		<comments>http://www.windyweather.net/wp/2008/01/10/puppy-on-bluediamond-3/#comments</comments>
		<pubDate>Thu, 10 Jan 2008 22:37:45 +0000</pubDate>
		<dc:creator>Darrell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.windyweather.net/wp/2008/01/10/puppy-on-bluediamond-3/</guid>
		<description><![CDATA[The next problem is installing Puppy on the CF card.


After looking around a little, the installer was right there in the Setup menu. And the choice was pretty clear:


Woops Can&#8217;t Find the Files.

You would think that the correct choice would be CD in this case, but this fails with an error saying that it can&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<div class='series_toc'><h3>Table of contents for blued</h3><ol><li><a href='http://www.windyweather.net/wp/2008/01/10/puppy-on-bluediamond-1/' title='Puppy Linux on a Blue Diamond VIA C3'>Puppy Linux on a Blue Diamond VIA C3</a></li><li><a href='http://www.windyweather.net/wp/2008/01/10/puppy-on-bluediamond-2/' title='Booting Puppy on the Blue Diamond'>Booting Puppy on the Blue Diamond</a></li><li>Installing Puppy on the Blue Diamond</li></ol></div> <p>The next problem is installing Puppy on the CF card.<br />
<span id="more-241"></span><br />
<img src="http://www.windyweather.net/wp/wp-content/uploads/2008/01/blue-diamond/_DSC_0670.jpg" width="294" height="400" alt="Installer" title="Installer" /><br />
After looking around a little, the installer was right there in the Setup menu. And the choice was pretty clear:</p>
<p><img src="http://www.windyweather.net/wp/wp-content/uploads/2008/01/blue-diamond/_DSC_0674.jpg" width="400" height="369" alt="Install choices" title="Install choices" /></p>
<p><img src="http://www.windyweather.net/wp/wp-content/uploads/2008/01/blue-diamond/_DSC_0676.jpg" width="400" height="294" alt="Which drive to install to" title="Which drive to install to" /></p>
<p><strong>Woops Can&#8217;t Find the Files.</strong></p>
<p><img src="http://www.windyweather.net/wp/wp-content/uploads/2008/01/blue-diamond/_DSC_0680.jpg" width="400" height="285" alt="CD or Dir?" title="CD or Dir?" /><br />
You would think that the correct choice would be CD in this case, but this fails with an error saying that it can&#8217;t find the files.<br />
<img src="http://www.windyweather.net/wp/wp-content/uploads/2008/01/blue-diamond/_DSC_0683.jpg" width="400" height="150" alt="Woops" title="Woops" /></p>
<p>The problem is that the CDROM is not mounted as the system boots from it. So all you have to do is click the button on the right of the CDROM to mount the device so it looks like the following. At this point the CD choice will work correctly. Perhaps the correct way to do this is to mount the CD before running the installer to avoid the error completely.</p>
<p><img src="http://www.windyweather.net/wp/wp-content/uploads/2008/01/blue-diamond/_DSC_0681.jpg" width="400" height="192" alt="Where is it mounted" title="Where is it mounted" /></p>
<p>When it finds the files, you get the following dialog.</p>
<p><img src="http://www.windyweather.net/wp/wp-content/uploads/2008/01/blue-diamond/_DSC_0684.jpg" width="400" height="265" alt="Got further" title="Got further" /></p>
<p>Do nothing was the right choice here, but for a while I got confused and tried something else. But I backed out before actually writing anything funny on the CF card.</p>
<p>Finally the installation started:<br />
<img src="http://www.windyweather.net/wp/wp-content/uploads/2008/01/blue-diamond/_DSC_0690.jpg" width="400" height="117" alt="Installing on CF card." title="Installing on CF card." /></p>
<p>And then I booted it and it ran just fine:<br />
<img src="http://www.windyweather.net/wp/wp-content/uploads/2008/01/blue-diamond/_DSC_0726.jpg" width="400" height="325" alt="Puppy running on CF card" title="Puppy running on CF card" /></p>
<p>After booting the system and making some changes, I triggered a reboot and it asked if I wanted to save the settings. The size it suggested was 512MB, which seemed pretty large, but apparently what it wants to do is save a squashed file system. Later on I reinstalled Puppy on a 512MB card and reduced the size of the saved file to 64MB and it worked just fine. I&#8217;m not clear at this point what is actually saved in that file system. But for the photo-frame application, it works just fine with a 64MB saved size.</p>
<p><img src="http://www.windyweather.net/wp/wp-content/uploads/2008/01/blue-diamond/_DSC_0717.jpg" width="400" height="269" alt="Saving Settings" title="Saving Settings" /></p>
<p>Once the settings are saved, the state of the system is written to that file every time you shutdown the system. I&#8217;m not even clear on how to cause another save file to be created. But every change you make is now saved when you shut down the system gracefully. Here are some things you will want to change for a Photo Frame application:</p>
<ol>
<li>Disable the ScreenSaver and Energy saving in Menu>>Desktop>>Gxset.</li>
<li>Change the background from the default Woof Woof using Menu>>Desktop>>PuppyDesktopBackground Image</li>
<li>Run GTKSee graphics application, which is what I use for the slide show, and set the background, slide duration and other settings. Then exit the program cleanly to save the settings.</li>
<li>And any date and time zone settings.</li>
</ol>
<p>When you&#8217;ve made all your changes, just use Menu>>Shutdown>>Restart to save your settings. This time you will not be asked about a save file and all your settings will be the same after reboot.</p>
<p><img src="http://www.windyweather.net/wp/wp-content/uploads/2008/01/blue-diamond/_DSC_0734.JPG" width="265" height="400" alt="Final system working as a Photo Frame" title="Final system working as a Photo Frame" /></p>
<p>So there it is. A Blue-Diamond running Puppy Linux to make a photo frame from a 17&#8243; LCD Monitor. I&#8217;ll look into what it takes to run other programs or make changes to the Slide Show program in the future. But for now, problem solved.</p>
<p>The final CF Flash drive usage was about 165MB including the 64MB save file, so the Puppy Linux system only takes about 100MB of flash space. Amazing for what you get.</p>
 <div class='series_links'><a href='http://www.windyweather.net/wp/2008/01/10/puppy-on-bluediamond-2/' title='Booting Puppy on the Blue Diamond'>Previous in series</a> </div>]]></content:encoded>
			<wfw:commentRss>http://www.windyweather.net/wp/2008/01/10/puppy-on-bluediamond-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problems Installing Video on Linux</title>
		<link>http://www.windyweather.net/wp/2006/11/17/problems-installing-video-on-linux/</link>
		<comments>http://www.windyweather.net/wp/2006/11/17/problems-installing-video-on-linux/#comments</comments>
		<pubDate>Fri, 17 Nov 2006 22:28:08 +0000</pubDate>
		<dc:creator>Darrell</dc:creator>
				<category><![CDATA[Bug Info]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.windyweather.net/wp/2006/11/17/problems-installing-video-on-linux/</guid>
		<description><![CDATA[I&#8217;ve installed video and dvd support as discussed in this article in PCTech101.
At this point I&#8217;ve installed RPMs from the OpenSuse repository. http://software.opensuse.org/download/repositories/KDE:/KDE3/SUSE_Linux_10.1/
I had to install these rpms manually. YAST refresh of the site would never complete and it would then produce errors that the available RPM could not be found on the site. I [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve installed video and dvd support as discussed in <a href="http://www.pctech101.com/dvd_playback.php">this article in PCTech101</a>.<br />
At this point I&#8217;ve installed RPMs from the OpenSuse repository. http://software.opensuse.org/download/repositories/KDE:/KDE3/SUSE_Linux_10.1/</p>
<p>I had to install these rpms manually. YAST refresh of the site would never complete and it would then produce errors that the available RPM could not be found on the site. I downloaded them from the site and then installed them using rpm -Uhv.</p>
<p>These are the components that I have installed in the KDE mm suite. [click for larger image].<br />
<a href="http://www.windyweather.net/wp/wp-content/uploads/2006/11/YAST_KDEMM_components.png" target="image"><img src="http://www.windyweather.net/wp/wp-content/uploads/2006/11/_YAST_KDEMM_components.png" width="400" height="252" alt="KDEMM components installed" title="KDEMM components installed"  /></a></p>
<p>When I use any of the video players: Totum, Kaffein, Xine &#8211; the audio plays, but there is no video. Is there something else that I need? I get a black screen. No errors. The configuration for Kaffein indicated no errors.</p>
<p>Thanks,<br />
ww</p>
]]></content:encoded>
			<wfw:commentRss>http://www.windyweather.net/wp/2006/11/17/problems-installing-video-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CVS with KDevelop and Cervista</title>
		<link>http://www.windyweather.net/wp/2006/11/09/cvs-kdevelop-cervisia/</link>
		<comments>http://www.windyweather.net/wp/2006/11/09/cvs-kdevelop-cervisia/#comments</comments>
		<pubDate>Fri, 10 Nov 2006 04:06:18 +0000</pubDate>
		<dc:creator>Darrell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.windyweather.net/wp/2006/11/09/cvs-kdevelop-cervisia/</guid>
		<description><![CDATA[[Updated 10 Nov 2006]
I&#8217;ve just started learning how to use CVS on Linux with KDevelop, and there are enough gotchas that I thought it might be interesting to share what I&#8217;ve learned. I have used lots of source control in the past, but never CVS. RCS [ages ago], QVCS [windows front end for rcs], and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.windyweather.net/wp/2006/11/09/cvs-kdevelop-cervisia/">[Updated 10 Nov 2006]</a></p>
<p>I&#8217;ve just started learning how to use CVS on Linux with KDevelop, and there are enough gotchas that I thought it might be interesting to share what I&#8217;ve learned. I have used lots of source control in the past, but never CVS. RCS [ages ago], <a href="http://www.qumasoft.com/">QVCS [windows front end for rcs]</a>, and VSS with Visual Studio.</p>
<p>Serious coding on Linux means that I need source control, so I had a look at what&#8217;s available. CVS seems to be the long-time standard for open-source projects. But <a href="http://subversion.tigris.org/">SubVersion</a> is new on the scene, relatively, so I took a look. But after a little study of a few doc pages, <a href="http://www.abbeyworkshop.com/howto/misc/svn01/">including this one</a>, it looks like SubVersion has the nasty habit of suggesting, if not requiring, that your directory tree look in a special way for SubVersion use. That, and the fact that the <a href="http://www.alwins-world.de/programs/kdesvn/">SubVersion GUI client </a>for Linux looks like it is in its pretty early days, has lead me to choose CVS and <a href="http://cervisia.sourceforge.net/documentation/index.html">Cervisia.</a> Any Open Source code base with a version above 1.5 has got to have seen a fair amount of use.<br />
<span id="more-168"></span><br />
So, here are my experiences with SUSE 10.1, KDevelop 3.3.5,  Cervisia 2.4.5. I chose to build a local repository that is file based rather than a server based repository.</p>
<ol>
<li>Install Cervisia and CVS. All on the original distro.</li>
<li>Figure out how to create a CVS repository. Turns out that Cervisia <em>Repository >> Create&#8230;</em> works. Note that CVSROOT will be created inside of that folder. So don&#8217;t end the path in CVSROOT.</li>
<li>At this point you cannot use <em>File>> Open Sandbox.</em> To open a sandbox you must have done an <em>Import</em> and a <em>Checkout.</em>.</li>
<li>I was nervous, so I backed up my KDevelop project folder which already was in play. Then use <em>Repository >> Import</em>.</li>
<li>The parameters to Import are a little tricky. The Respository path does not end in CVSROOT so it is<br />
/home/darrell/Development/CVS in my case, not <br />
/home/darrell/Development/CVS/CVSROOT. </li>
<li>The module is a name that will be applied to the entire import, so a lowercase project name without spaces and no extension is appropriate. I used khexwin for example. This should be the same lower case name as the project folder.</li>
<li>The working folder for Import is the project folder. For Checkout it will be something different so beware.</li>
<li>I just used wwc and release for the tags and left the rest blank for now.</li>
<li>You should see success when you import your project.</li>
<li>At this point I would suggest you rename your project folder to myprojectORIG and then</li>
<li>do a <em>Repository >> Checkout&#8230;</em></li>
<li>The Repository folder is the same as before</li>
<li>The module is the same as before</li>
<li>The working folder will be the containing folder, not the project folder. So if your project path is<br />
<em>/home/user/Development/project</em> then you will want to use<br />
<em>/home/user/Development/</em> here.<br />
The project will come from the <em>module name</em>. If you want to change the folder, then you can put a new name in <em>Check out as:</em>. <del datetime="2006-11-10T18:36:35+00:00">But KDevelop will freak out if you do that, at least I don&#8217;t know yet how to recover from a change in the project path</del>. The project will need some adjustment to build if the path is changed.</li>
<li>Don&#8217;t forget to check <em>Recursive checkout</em>.
<li><del datetime="2006-11-10T18:36:35+00:00"><strong>Warning: </strong> KDevelop gets very upset if you change the path of a project. There is probably a way to recover after you move a project, but I don&#8217;t know what it is. So you will have to check out your project to exactly the same path as you created the project, or all hell will break lose and the project will not build</del>.</li>
<li>After the checkout you should be able to use KDevelop to open the project and build it. All should be well. If the path of the project has changed, use <em>Build >> Clean Project</em>, followed by <em>Build >> Run Automake &#038; Friends </em>and <em>Build >> Run Config.</em></li>
<li>Cervisia can now do a <em>File >> Open Sandbox&#8230;</em> since there are CVS subfolders in the checked out tree. I have not turned CVS support on in KDevelop. It looks like you can check files in/out in the AutoMake panel on the right. I haven&#8217;t seen other places that light up with checkin/out menu items. </li>
<li>I just use Cervisia to commit files. If you are working alone like I am, you won&#8217;t have to merge or update based on other folks work.</li>
</ol>
<p>I had some issues:</p>
<ul>
<li><del datetime="2006-11-10T18:36:35+00:00">As I mentioned, KDevelop has problems if you change the path to the project. I&#8217;ve reported a BUG and posted a forum topic to get clarification about how to get a project to work after it is moved.</del></li>
<li>When I tried to check in the files after I changed them, I was getting errors about a sticky tag &#8211; release &#8211; that was used to <em>Import</em> the project. I took a branch to solve this. Use <em>Advanced >> Tag/Branch&#8230;</em> But I think a better way would be to just add a new tag rather than a branch. At this point I have merged the branch into the main branch so things look a lot more sane.</li>
<li>Be sure and set the <em>Recursive</em> setting when doing a commit so you can just checkin from the top of the project tree.</li>
<li>Use Update [?] often from the tool bar to see what you have changed. The coloration of files is pretty obvious and very helpful.</li>
</ul>
<p>Looks like CVS / Cervisia is working for me now.</p>
<p>Good luck,<br />
ww</p>
]]></content:encoded>
			<wfw:commentRss>http://www.windyweather.net/wp/2006/11/09/cvs-kdevelop-cervisia/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HexDisplayWidget begins to work</title>
		<link>http://www.windyweather.net/wp/2006/11/05/hexdisplaywidget-begins-to-work/</link>
		<comments>http://www.windyweather.net/wp/2006/11/05/hexdisplaywidget-begins-to-work/#comments</comments>
		<pubDate>Sun, 05 Nov 2006 19:57:07 +0000</pubDate>
		<dc:creator>Darrell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.windyweather.net/wp/2006/11/05/hexdisplaywidget-begins-to-work/</guid>
		<description><![CDATA[I&#8217;m working on a Hex Display Widget under KDevelop.
Here&#8217;s a first version that begins to work. The options in the view menu work to change the display grouping.
ww

KHexWin test program
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m working on a Hex Display Widget under KDevelop.</p>
<p>Here&#8217;s a first version that begins to work. The options in the view menu work to change the display grouping.</p>
<p>ww<br />
<strong><br />
<a id="p164" href="http://www.windyweather.net/wp/wp-content/uploads/2006/11/khexwin_2006_11_05.tgz">KHexWin test program</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.windyweather.net/wp/2006/11/05/hexdisplaywidget-begins-to-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configure VNC on SUSE 10.1</title>
		<link>http://www.windyweather.net/wp/2006/11/03/configure-vnc-on-suse-101/</link>
		<comments>http://www.windyweather.net/wp/2006/11/03/configure-vnc-on-suse-101/#comments</comments>
		<pubDate>Fri, 03 Nov 2006 17:29:12 +0000</pubDate>
		<dc:creator>Darrell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.windyweather.net/wp/2006/11/03/configure-vnc-on-suse-101/</guid>
		<description><![CDATA[VNC, or remote administration, allows a remote desktop service between windows and linux. If you are like me you have a mixed network, and it is nice to be able to reach the linux box from a windows box. One my major interests is to be able to run a Kdevelop app from my windows [...]]]></description>
			<content:encoded><![CDATA[<p>VNC, or remote administration, allows a remote desktop service between windows and linux. If you are like me you have a mixed network, and it is nice to be able to reach the linux box from a windows box. One my major interests is to be able to run a Kdevelop app from my windows laptop while I&#8217;m watching TV.<br />
<span id="more-162"></span><br />
To accomplish this, make sure the software is installed using YAST Software Management:<br />
<img src="http://www.windyweather.net/wp/wp-content/uploads/2006/11/YAST_installed_VNC.png" width="496" height="164" alt="Installed VNC components" title="Installed VNC components" /><br />
Perhaps not all of these are required.</p>
<p>Under Network Services in YAST, click on Remote Administration, and enable it. Also choose whether you want to use a firewall. I have a router between my local network and the Cable Modem so I do not use the firewall.</p>
<p>By default only one VNC service, host:1, is enabled. host:1 is the string that most VNC viewers will want to connect to your host. The default service gives you a 1024&#215;768 window. This wasn&#8217;t large enough to allow me to run KDevelop, which is my primary reason for using VNC.</p>
<p>If you are using Network Manager, like I am, to configure the other VNC services, use YAST and In Network Services group click on Network Services(xinetd)</p>
<p>At this point you see a list of services. In the list are vnc1, vnc2 and vnc3 services. From a VNC client, on windows or Linux, you use host:1 host:2  host:3 in VNC Viewer to get to these services.</p>
<p>Just had to turn them on in this YAST panel. I don&#8217;t know where the port definitions come from. They aren&#8217;t in /etc/services and they aren&#8217;t here to be edited. So apparently some other file relates vnc1-3 to ports 5901-03 to vnc1-3.</p>
<p>You can change the geometry as well as other options in this panel.  I edited vnc 3 to use geometry 1600&#215;1050 to match my wide screen monitor and voila&#8230; Back on my 1920&#215;1024 laptop I have a have a 1600&#215;1050 window to my SUSE machine.</p>
<p>It may be best to turn off any wallpaper desktop background when using VNC to improve performance. For a windows client, I use the <a href="http://www.tightvnc.com/download.html">open source, tightVNC</a>. There is also a free version of the client at <a href="http://www.realvnc.com">Real VNC</a></p>
<p>enjoy,<br />
ww<br />
.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.windyweather.net/wp/2006/11/03/configure-vnc-on-suse-101/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hellraiser Box for Linux</title>
		<link>http://www.windyweather.net/wp/2006/10/28/hellraiser-box-for-linux/</link>
		<comments>http://www.windyweather.net/wp/2006/10/28/hellraiser-box-for-linux/#comments</comments>
		<pubDate>Sun, 29 Oct 2006 00:42:12 +0000</pubDate>
		<dc:creator>Darrell</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenGL]]></category>

		<guid isPermaLink="false">http://www.windyweather.net/wp/2006/10/28/hellraiser-box-for-linux/</guid>
		<description><![CDATA[This is a port of the Hellraiser box to Qt / KDE / Kdevelop on SUSE 10.1.

To run the program, use fileroller to unpack the file in a directory and then run the program. The image files must be in the same directory as the program. The instructions are essentially the same as for the [...]]]></description>
			<content:encoded><![CDATA[<p>This is a port of the Hellraiser box to Qt / KDE / Kdevelop on SUSE 10.1.</p>
<p><img src="http://www.windyweather.net/wp/wp-content/uploads/2006/10/Box_Closed_2.jpg" width="352" height="341" alt="Box Open for Cenobites" title="Box Open for Cenobites" /></p>
<p>To run the program, use fileroller to unpack the file in a directory and then run the program. The image files must be in the same directory as the program. The instructions are essentially the same as for the <a href="http://www.windyweather.net/wp/2006/10/25/hellraiser-box-in-opengl/">Windows Version.</a></p>
<p><a href="http://www.windyweather.net/wp/wp-content/uploads/2006/10/hellraiserbox.tgz" title="Hellraiser Lament Box for Linux">Hellraiser Lament Box Program</a></p>
<p>The sources are provided here. They are built using KDevelop 3.3.5 and Qt.<br />
<a href="http://www.windyweather.net/wp/wp-content/uploads/2006/10/hellraiser_box_src.tgz" title="Hellraiser Lament Box for Linux Sources">Hellraiser Lament Box Sources</a><br />
There are links in the debug and optimize src directories that point back to the images in the src directory. These may have to be remade after you unpack the archive since links are not relative.</p>
<p>Enjoy. <img src='http://www.windyweather.net/wp/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.windyweather.net/wp/2006/10/28/hellraiser-box-for-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache mod_rewrite solved</title>
		<link>http://www.windyweather.net/wp/2006/10/16/apache-mod_rewrite-solved/</link>
		<comments>http://www.windyweather.net/wp/2006/10/16/apache-mod_rewrite-solved/#comments</comments>
		<pubDate>Mon, 16 Oct 2006 18:00:15 +0000</pubDate>
		<dc:creator>Darrell</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Web Tools]]></category>

		<guid isPermaLink="false">http://www.windyweather.net/wp/2006/10/16/apache-mod_rewrite-solved/</guid>
		<description><![CDATA[I found out some of the great mystery of mod_rewrite. Here&#8217;s an example that works. Turns out there are errors in the documentation, of course, and this article may help avoid the pitfalls that I have discovered.

Here&#8217;s an .htaccess file that works for the example that is included here:

# Turn the re-write engine on so [...]]]></description>
			<content:encoded><![CDATA[<p>I found out some of the great mystery of mod_rewrite. Here&#8217;s an example that works. Turns out there are errors in the documentation, of course, and this article may help avoid the pitfalls that I have discovered.<br />
<span id="more-148"></span><br />
Here&#8217;s an .htaccess file that works for the example that is included here:<br />
<code><IfModule mod_rewrite.c><br />
# Turn the re-write engine on so it rewrites URLs<br />
RewriteEngine On<br />
# not needed since we are sending URLs back to this same directory<br />
#RewriteBase /test-rewrite/<br />
# if the URL does not point to a file<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
#and if the URL does not point to a subfolder<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
# be tolerant of trailing slashes or not<br />
RewriteRule ^products$ products/ [NC]<br />
# and if there is no product specified, list them all<br />
RewriteRule ^products/$ /content.php?action=product_list [NC]<br />
#products can have a code and a subcode<br />
RewriteRule ^products/([0-9]+)/([0-9]+)$ products/$1/$2/ [NC]<br />
RewriteRule ^products/([0-9]+)/([0-9]+)/$ /content.php?code=$1&#038;subcode=$2 [NC]<br />
#or if we specify the code only, then forget the subcodes and list all the products in that code<br />
RewriteRule ^products/([0-9]+)$ products/$1/ [NC]<br />
RewriteRule ^products/([0-9]+)/$ /content.php?code=$1 [NC]<br />
</IfModule><br />
</code></p>
<p>I discovered a bunch of rules that are not stated explicitly:</p>
<ul>
<li>In RewriteRule, no slashes in patters after the ^</li>
<li>Slash at the beginning of the target after the pattern.</li>
<li>In a RewriteRule to make slashes optional, do not use [R] as the doc says. It doesn&#8217;t work.</li>
</ul>
<p>The example that&#8217;s included here does work. It&#8217;s been tested. Unlike most of the rest of the examples out there. Sigh&#8230; <img src='http://www.windyweather.net/wp/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p><strong><a href="http://www.windyweather.net/wp/wp-content/uploads/2006/10/mod_rewrite_example.zip"><br />
Apache Mod_Rewrite Example<br />
</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.windyweather.net/wp/2006/10/16/apache-mod_rewrite-solved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache Configuration</title>
		<link>http://www.windyweather.net/wp/2006/08/02/apache-configuration/</link>
		<comments>http://www.windyweather.net/wp/2006/08/02/apache-configuration/#comments</comments>
		<pubDate>Wed, 02 Aug 2006 16:58:38 +0000</pubDate>
		<dc:creator>Darrell</dc:creator>
				<category><![CDATA[Bug Info]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.windyweather.net/wp/?p=123</guid>
		<description><![CDATA[Anticipating your request, here is the entire apache configuration tree.
This one is broken.
Broken Apache Configuration
[SOLVED]
I got this working. Here&#8217;s an example configuration tree for SUSE 10.1, Apache 2 and php. Don&#8217;t just dump these into your system. I suggest doing a diff &#8211; kdiff3 is a good tool &#8211; and understand what the differences are [...]]]></description>
			<content:encoded><![CDATA[<p><del datetime="2006-11-03T05:22:28+00:00">Anticipating your request, here is the entire apache configuration tree.</del><br />
This one is broken.<br />
<strong><a href="http://www.windyweather.net/wp/wp-content/uploads/linux/apache2_config.tar.gz " title="Apache Configuration" target="image">Broken Apache Configuration</a></strong></p>
<p>[SOLVED]<br />
I got this working. Here&#8217;s an example configuration tree for SUSE 10.1, Apache 2 and php. Don&#8217;t just dump these into your system. I suggest doing a diff &#8211; kdiff3 is a good tool &#8211; and understand what the differences are before you apply them to your system.</p>
<p>I found that the OUT OF THE BOX experience with Apache was not good. The config for apache is designed to be basically turned off. So you need to make changes to enable anything. You do not need to &#8220;reinstall the whole thing&#8221; as some folks suggest to get it working. That won&#8217;t do anything except increase your level of frustration.</p>
<p>Here&#8217;s a working config &#8211; at least it works for me.</p>
<p><strong><a href="http://www.windyweather.net/wp/wp-content/uploads/2006/11/apache_config_2006_10_14.tgz">Working Apache, and php5 config files</a>.</strong></p>
<p>enjoy. I&#8217;m not an expert, but if you contact me, I may be able to assist.</p>
<p>ww</p>
]]></content:encoded>
			<wfw:commentRss>http://www.windyweather.net/wp/2006/08/02/apache-configuration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gears OpenGL for Linux</title>
		<link>http://www.windyweather.net/wp/2006/07/14/gears-opengl-for-linux/</link>
		<comments>http://www.windyweather.net/wp/2006/07/14/gears-opengl-for-linux/#comments</comments>
		<pubDate>Sat, 15 Jul 2006 02:23:24 +0000</pubDate>
		<dc:creator>Darrell</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenGL]]></category>

		<guid isPermaLink="false">http://www.windyweather.net/wp/?p=117</guid>
		<description><![CDATA[Linux program port of Gears for OpenGL begins to work. Not complete, but mostly functioning.]]></description>
			<content:encoded><![CDATA[<p>A part of the <strong><a href="http://www.windyweather.net/wp/2001/08/19/geodesic-program/">Geodesic program</a></strong> for WIN MFC and OpenGL has been ported to Linux / KDevelop / Qt / OpenGL. It creates and displays a gear object and there are many parameters to change the shape of the gear. The program will be able to export OBJ or POV files of the shape of the gear. It can serve as a complex tutorial of using OpenGL and many other features of<br />
the KDE and Qt frameworks.<br />
<img src="http://www.windyweather.net/wp/wp-content/uploads/linux/GearsOGL_20toothspiral.png" width="393" height="374" alt="Spiral Gear with 20 teeth" title="Spiral Gear with 20 teeth" /><br />
<span id="more-117"></span><br />
Ring gears can be created as well:<br />
<img src="http://www.windyweather.net/wp/wp-content/uploads/linux/GearsOGL_ring_gear.png" width="393" height="374" alt="Ring Gear" title="Ring Gear" /></p>
<p>There are many options to change the view of the object:<br />
<img src="http://www.windyweather.net/wp/wp-content/uploads/linux/GearsOGL_ViewMenu.png" width="380" height="408" alt="View Menu" title="View Menu" /></p>
<p>There are many properties to adjust the shape of the gear:<br />
<img src="http://www.windyweather.net/wp/wp-content/uploads/linux/GearOGL_Properties.png" width="468" height="448" alt="Gear Properties" title="Gear Properties" /></p>
<p>The display of the gear can be rotated, moved and resized using the mouse. Clicking down and dragging the mouse in the window rotates the object. Using SHIFT moves the object and using CTRL resizes the object. In addition, using animation from the View menu allows the object to be spun with the mouse in the windows. The object can be displayed using OpenGL display lists or using direct OpenGL commands. Of course using Display Lists, which are pre-compiled OpenGL commands, are much faster.</p>
<p>Download the KDevelop project and source here:<br />
<strong><a href="http://www.windyweather.net/wp/wp-content/uploads/linux/gearsogl_2006_07_14.tar.gz"><br />
Download 2006_07_14 version of GearsOGL</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.windyweather.net/wp/2006/07/14/gears-opengl-for-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Qt3 Validators Work</title>
		<link>http://www.windyweather.net/wp/2006/07/07/qt3-cant-get-validators-to-work/</link>
		<comments>http://www.windyweather.net/wp/2006/07/07/qt3-cant-get-validators-to-work/#comments</comments>
		<pubDate>Fri, 07 Jul 2006 20:43:47 +0000</pubDate>
		<dc:creator>Darrell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.windyweather.net/wp/?p=116</guid>
		<description><![CDATA[Building a C++ application using QIntValidator and QDoubleValidator using KDevelop. These validators work with KLineEdit widgets after fixing some errors in their usage.]]></description>
			<content:encoded><![CDATA[<p>There is a properties dialog with a large number of input fields as follows:<br />
<a href="http://www.windyweather.net/wp/wp-content/uploads/linux/Gear%20Properties.png" target="image"><img src="http://www.windyweather.net/wp/wp-content/uploads/linux/_Gear%20Properties.png" width="400" height="382" alt="Gear Properties Dialog" title="Gear Properties Dialog"  /></a></p>
<p>Here is the header definition for the data.<br />
<span id="more-116"></span><br />
<code><br />
// Way too much junk to pass back and forth.<br />
// So let's make it all a class and then we can use class copy to move this stuff<br />
// around.<br />
class CGearParams<br />
{<br />
	public:<br />
		double		m_dBaseWidth;			// width at base of tooth. This sets diameter of gear.<br />
		double		m_dGearThick;			// thickness of gear outer ring and hub<br />
		double		m_dSpokeThick;			// thickness of spokes [or disk of 1 spoke]<br />
		double		m_dHubRadius;			// radius of hub around shaft<br />
		double		m_dHubThick;			// thickness of the hub<br />
		double		m_dRingWidth;			// width of outer ring of gear<br />
		double		m_dShaftRadius;			// radius of shaft<br />
		int			m_nHeightPct;			// Height of tooth as percent of base<br />
		int			m_nTopPct;				// Top of tooth as percent of base<br />
		int			m_nTeeth;				// number of teeth<br />
		int			m_nRadialSecPerTooth;	// radial sections, per tooth<br />
		bool		m_bSpiral;				// spiral type gear?<br />
		bool		m_bSpiralLeft;			// Reverse the spiral<br />
		int			m_nSpiralSections;		// how many sections along height for spiral<br />
		int			m_nSpiralAngle;			// spiral angle - 0 = no spiral, 89degrees very shallow<br />
		int			m_nSpokes;				// how many spokes<br />
		int			m_nSpokesPct;			// spokes radial percent<br />
											// each spoke takes up this much of its angle<br />
		bool		m_bRingGear;			// Create a ring gear with teeth inside<br />
};<br />
//<br />
// IITEM - integer item<br />
// DITEM - double item<br />
// CITEM - checkbox item<br />
// IITEM( widget, member, min, max, default, name )<br />
#define GEAR_OPTIONS_ITEMS \<br />
	DITEM( gearThickBox, 		m_dGearThick,0.2 , 1.0, 0.5 , "Gear thickness" ) \<br />
	DITEM( spokeThickBox, 		m_dSpokeThick, .01,1.0 ,0.125 , "Spoke thickness" )\<br />
	DITEM( shaftRadiusBox,		m_dShaftRadius, .01,1.0 ,0.125 , "Shaft radius" )\<br />
	DITEM( hubRadiusBox,		m_dHubRadius, .01,1.0 ,0.25 , "Hub radius" )\<br />
	DITEM( hubThickBox,			m_dHubThick, .01,1.0 ,0.35 , "Hub thickness" )\<br />
	DITEM( outerRingWidthBox,	m_dRingWidth, .01,1.0 ,0.25  , "Outer ring width" )\<br />
	CITEM( reverseCheck,		m_bSpiralLeft,0 ,0 ,false , "Spiral to the left" )\<br />
	IITEM( numTeethBox,			m_nTeeth, 10, 60, 20, "Number of teeth" )\<br />
	CITEM( spiralCheck,			m_bSpiral,0 ,0 , false, "Spiral gear" )\<br />
	IITEM( spokesBox,			m_nSpokes,1 ,20 ,1 , "Number of spokes" )\<br />
	IITEM( radialSectionsBox,	m_nRadialSecPerTooth,1 , 10,4 , "Radial sections per tooth" )\<br />
	IITEM( spiralDegreesBox,	m_nSpiralAngle, 0, 89,45 , "Spiral angle in degrees" )\<br />
	IITEM( spokesWidthPctBox,	m_nSpokesPct,10 , 500, 10, "Spokes width %" )\<br />
	IITEM( spiralSectionsBox,	m_nSpiralSections,1 ,20 , 4, "Spiral sections" )\<br />
	CITEM( ringGearCheck,		m_bRingGear, 0, 0, false, "Make ring gear" )\<br />
	DITEM( baseWidthBox,		m_dBaseWidth, .01,1.0 ,.25 , "Base width of tooth" )\<br />
	IITEM( heightPctBox,		m_nHeightPct, 50,150 ,100 , "Height % of tooth" )\<br />
	IITEM( topWidthPctBox,		m_nTopPct, 20, 100, 50, "Top width % of tooth" )<br />
</code><br />
The code to set the validators looks like this:<br />
<code><br />
//<br />
// define the macros to set the validators and the default values<br />
// for the GUI items<br />
#define IITEM( widget, member, min, max, default, name ) \<br />
{ widget->setValidator( new QIntValidator( min, max, this, name ) ); \<br />
widget->setInputMask( QString("0000") ); \<br />
QString str; str.setNum(default); widget->setText( str ); m_params.member = default; }<br />
//<br />
#define DITEM( widget, member, min, max, default, name ) \<br />
{ widget->setValidator( new QDoubleValidator( min, max, 3, this, name ) );	\<br />
/*widget->setInputMask( QString("0.000") ); */ \<br />
 QString str; str.setNum(default); widget->setText( str );  m_params.member = default;}<br />
//<br />
#define CITEM( widget, member, min, max, default, name ) \<br />
	widget->setChecked( default ); m_params.member = default;<br />
//<br />
void GearOptionsDialog::setOptionsValidate()<br />
{<br />
	GEAR_OPTIONS_ITEMS;<br />
}<br />
</code></p>
<p>The code to check the validators looks like this:<br />
<code><br />
// Check the validation and report any errors with an intelligent message<br />
bool GearOptionsDialog::validateItem( QLineEdit* widget, const char* name, QString&#038; mins, QString&#038; maxs )<br />
{<br />
	bool bOk = widget->hasAcceptableInput();<br />
	QString errstr;<br />
	if ( !bOk )<br />
	{<br />
		errstr = name;<br />
		errstr.append( " is out of range:\n");<br />
		errstr.append( mins ); errstr.append( " - " ); errstr.append( maxs );<br />
		KMessageBox::information( parentWidget(), errstr, QString("Invalid Input") );<br />
	}<br />
	return bOk;<br />
}<br />
//<br />
#undef IITEM<br />
#undef DITEM<br />
#undef CITEM<br />
// define the macros to set the GUI items from the members<br />
#define IITEM( widget, member, min, max, default, name ) \<br />
/* bErrors |= !widget->hasAcceptableInput(); */ \<br />
{QString mins;mins.setNum(min); QString maxs; maxs.setNum(max); \<br />
if ( !validateItem( widget, name, mins, maxs ) ) { bErrors=true; goto cleanup; } }<br />
//<br />
#define DITEM( widget, member, min, max, default, name ) \<br />
/* bErrors |= !widget->hasAcceptableInput(); */ \<br />
{QString mins;mins.setNum(min); QString maxs; maxs.setNum(max); \<br />
if ( !validateItem( widget, name, mins, maxs ) ) { bErrors=true; goto cleanup; } }<br />
//<br />
#define CITEM( widget, member, min, max, default, name )<br />
//<br />
bool GearOptionsDialog::validateData()<br />
{<br />
	bool	bErrors = false;<br />
	GEAR_OPTIONS_ITEMS;<br />
cleanup:<br />
	return !bErrors;<br />
}<br />
</code></p>
<p><strong>hasAcceptableInput()</strong> works correctly now that the validator objects are &#8220;new&#8221; rather than being stack items. A misunderstanding about whether they were copied into the QLineEdit object. This code provides an intelligent popup box to fix any errors. The integer objects use input masks, but the double input mask didn&#8217;t allow valid input to be entered.</p>
<p>The validators appear to be working now. A future post will contain the valid project.</p>
<p>d</p>
]]></content:encoded>
			<wfw:commentRss>http://www.windyweather.net/wp/2006/07/07/qt3-cant-get-validators-to-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Progress</title>
		<link>http://www.windyweather.net/wp/2006/07/06/linux-progress/</link>
		<comments>http://www.windyweather.net/wp/2006/07/06/linux-progress/#comments</comments>
		<pubDate>Fri, 07 Jul 2006 06:35:12 +0000</pubDate>
		<dc:creator>Darrell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.windyweather.net/wp/?p=115</guid>
		<description><![CDATA[Work continues with SUSE 10.1 Linux both in configuring the system and in learning to use the KDevelop IDE for C++ programming.]]></description>
			<content:encoded><![CDATA[<p>Work continues with SUSE 10.1 Linux both in configuring the system and in learning to use the KDevelop IDE for C++ programming. There are several interesting items to mention:</p>
<ul>
<li>Overlay planes</li>
<li>Wacom Tablets</li>
<li>KDevelop glitches</li>
<li>.ICEAuthority lockouts</li>
<li>GAIM messenger</li>
<li>SKYPE</li>
<li>CD backups</li>
</ul>
<p><span id="more-115"></span></p>
<ul>
<li>An OpenGL application that displays on the Overlay plane did not work with built-in drivers. After building and installing the latest NVIDIA drivers for the GF4200 graphics card, still no joy for overlay support. Possibly some parameter needs to be changed, but this needs to be done essentially manually. SAX2, the X server administrator, works pretty well, and has a test mode, but it doesn&#8217;t have a plug-in panel that allows drives to supply dialogs to configure graphics cards. But 3D accelleration works and the next programming project will be to port over Gears from windows to display and export gear objects. The KDE mascot is a gear. Installing the NVIDIA drivers apparently deleted the MESA OpenGL libraries, so project wouldn&#8217;t build without redirecting which library was used for OpenGL.</li>
<li>A Wacom Graphire 2 graphics tablet worked well when attached to the USB ports. But GIMP doesn&#8217;t show pressure sensitivity. Further work on this problem is required.</li>
<li>KDevelop continues to show some glitches, but they are managable. Few crashes, but occasionally GDB [debugger] fails to work. Closing and reopening the project appears to fix this problem. Learning to configure AutoMake for specific include files and libraires has been part of this learning experience as well.</li>
<li>Occasionally .ICEAuthority, a file in a users home directory, becomes either locked or owned by root, which causes headaches for the KDevelop IDE and for launching applications in general. The fix is to use a root file browser to delete any lock files [.ICEAuthority_l and .ICEAuthority_c] and to change the owner of the file back to the current user from root/root. It is not clear why this owner change occurs, but it may be due to running some applications as root to maintain the system.</li>
<li>GAIM instant text messaging works fine with both MSN and Trillian. GAIM will eventually have audio chat built in but not yet. SIMP secure chat doesn&#8217;t work with GAIM of course, and no response to my email to the Secway folks about that issue. Sending files from GAIM to Trillian doesn&#8217;t work, but it didn&#8217;t work with MSN Messenger to Trillian either. Sending files between GAIM and MSN works just fine.</li>
<li>SKYPE audio phone/chat looks like a first class product on Linux. The SKYPE folks are really serious about Linux support. I&#8217;ve spent several hours on SKYPE to windows users without problems. Audio is high quality and setup was trivial. Performance is excellent even on my antiquated 400MHz Dual PII system.</li>
<li>Backup of my files to CD should be a priority. If the whole thing goes down the tubes now, significant work will be lost in the KDevelop projects and book marks. Firefox has an excellent bookmark export facility so that will be no problem. The bookmarks are exported as a single HTML file so they can be imported into any browser by launching the file and manually saving them.</li>
<li>After solving the localhost permissions problem with MySQL users permissions, Apache-MySQL-php-WordPress is all running just fine. And the move of the web base files to the /home partition was no problem after adding the Directory option to the Apache configuration.</li>
<li>A 9GB disk is not big enough for a Linux system with any sort of development and a webserver. Installing the NVIDIA drivers required installing the kernel headers and libraries, which ate up another 200 MB of my root partition. The root partition is now 80% full. In a few months I&#8217;ll have to rebuild this whole system on a larger disk to keep using it.</li>
</ul>
<p>Pressing on and loving every minute of it.<br />
d</p>
]]></content:encoded>
			<wfw:commentRss>http://www.windyweather.net/wp/2006/07/06/linux-progress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>KDevelop project stuck</title>
		<link>http://www.windyweather.net/wp/2006/07/03/kdevelop-project-stuck/</link>
		<comments>http://www.windyweather.net/wp/2006/07/03/kdevelop-project-stuck/#comments</comments>
		<pubDate>Mon, 03 Jul 2006 22:30:16 +0000</pubDate>
		<dc:creator>Darrell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.windyweather.net/wp/?p=113</guid>
		<description><![CDATA[After building an application in Debug configuration, switching to optimized has corrupted the project so that it will no longer build.
]]></description>
			<content:encoded><![CDATA[<p>SUSE 10.1, KDevelop 3.3.3, KDE 3.5.1</p>
<p><a href="http://www.kdevelop.org/phorum5/read.php?2,27014,27055#msg-27055">RESOLVED: A reply in a forum indicated that there is a known bug with the default configuration that leaves a config.status around that sabotages the entire project. The recovery is to delete all the config.status files in the project and then avoid use of the default configuration.</a></p>
<p>Developed the program under the debug configuration and then tried to switch to default or optimized configuration. Tried many combinations to try to get it working again, but all BUILD options give errors ending with makedistclean.<br />
<span id="more-113"></span></p>
<p>such as :<br />
<code>cd '/home/darrell/Development/siteprobe' &#038;&#038; WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" gmake -f Makefile.cvs &#038;&#038; cd '/home/darrell/Development/siteprobe/optimized' &#038;&#038; CXXFLAGS="-O2 -g0" "/home/darrell/Development/siteprobe/configure" &#038;&#038; cd '/home/darrell/Development/siteprobe/optimized' &#038;&#038; WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" gmake<br />
This Makefile is only for the CVS repository<br />
This will be deleted before making the distribution<br />
<br />
*** automake (GNU automake) 1.9.6 found.<br />
*** Creating acinclude.m4<br />
*** Creating list of subdirectories<br />
cd . &#038;&#038; gmake -f admin/Makefile.common subdirs<br />
*** Creating configure.files<br />
*** Creating configure.in<br />
cd . &#038;&#038; gmake -f admin/Makefile.common configure.in ;<br />
*** Creating aclocal.m4<br />
*** Creating configure<br />
*** Creating config.h template<br />
*** Creating Makefile templates<br />
*** Postprocessing Makefile templates<br />
*** Creating date/time stamp<br />
*** Finished<br />
Don't forget to run ./configure<br />
If you haven't done so in a while, run ./configure --help<br />
checking build system type... i686-pc-linux-gnu<br />
checking host system type... i686-pc-linux-gnu<br />
checking target system type... i686-pc-linux-gnu<br />
checking for a BSD-compatible install... /usr/bin/install -c<br />
checking for -p flag to install... yes<br />
checking whether build environment is sane... yes<br />
checking for gawk... gawk<br />
checking whether make sets $(MAKE)... yes<br />
configure: error: source directory already configured; run "make distclean" there first<br />
*** Exited with status: 1 ***</code></p>
<p>So, apparently the project configuraiton has been corrupted and don&#8217;t know the way back to sanity.<br />
Archive of the entire project here as a tar.gz<br />
<strong><a href='http://www.windyweather.net/wp/wp-content/uploads/siteprobe_2006_07_03.tar.gz' title='Siteprobe archive'>Siteprobe archive</a></strong></p>
<p>thanks,<br />
ww</p>
]]></content:encoded>
			<wfw:commentRss>http://www.windyweather.net/wp/2006/07/03/kdevelop-project-stuck/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>php5 and MySQL 5 &#8211; Access Denied</title>
		<link>http://www.windyweather.net/wp/2006/07/03/php5-and-mysql-5-access-denied/</link>
		<comments>http://www.windyweather.net/wp/2006/07/03/php5-and-mysql-5-access-denied/#comments</comments>
		<pubDate>Mon, 03 Jul 2006 20:58:09 +0000</pubDate>
		<dc:creator>Darrell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.windyweather.net/wp/?p=112</guid>
		<description><![CDATA[Permissions problem kept php5 and mysql 5 from talking....]]></description>
			<content:encoded><![CDATA[<p>When setting up a test website using Apache 2, php5 and mysql5, the connection to the database failed with AccessDenied. If the password were removed, then the failure looked different. The resolution to the problem is to include localhost explicitly in the host list and set database privileges for localhost. The default is @% which is wildcard, but apparently wildcard does not include localhost.<br />
For a complete description, screen shots and the whole story:<br />
<span id="more-112"></span></p>
<p>Here is the MySQL Admin screen for users.<br />
<a href="http://www.windyweather.net/wp/wp-content/uploads/linux/MySQLAdmin_Users.png" target="image"><img src="http://www.windyweather.net/wp/wp-content/uploads/linux/_MySQLAdmin_Users.png" width="400" height="304" alt="MySQL Admin Users" title="MySQL Admin Users"  /></a><br />
To add a host, select the user and right click. Then choose <strong>Add Host </strong>and choose <strong>localhost.</strong><br />
Then set the privs for that connection. Select localhost and go to the privileges tab.<br />
<a href="http://www.windyweather.net/wp/wp-content/uploads/linux/MySQLAdmin_Privs.png" target="image"><img src="http://www.windyweather.net/wp/wp-content/uploads/linux/_MySQLAdmin_Privs.png" width="400" height="304" alt="MySQL Admin Privileges" title="MySQL Admin Privileges"  /></a><br />
Select all the privileges in the right list and click the <strong>(< )</strong> button to move the privs to the allowed list.</p>
<p>Now, php5 and mysql5 will play nice together under apache. So for example you can install WordPress.</p>
<p>cheers,<br />
dd</p>
<p></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.windyweather.net/wp/2006/07/03/php5-and-mysql-5-access-denied/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
