<?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>LosByers- Interesting Musings Helpful Hints from a Unix System Administrator &#187; internet</title>
	<atom:link href="http://losbyers.com/wordpress/tag/internet/feed/" rel="self" type="application/rss+xml" />
	<link>http://losbyers.com/wordpress</link>
	<description>All the info I need</description>
	<lastBuildDate>Fri, 30 Mar 2012 15:56:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Open Source Alternatives</title>
		<link>http://losbyers.com/wordpress/2009/12/open-source-alternatives/</link>
		<comments>http://losbyers.com/wordpress/2009/12/open-source-alternatives/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 20:54:26 +0000</pubDate>
		<dc:creator>LosByers</dc:creator>
				<category><![CDATA[Business Help]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://losbyers.com/wordpress/?p=111</guid>
		<description><![CDATA[<p>There is a ton of software a new business sometimes feels that they must purchase right when they are starting off a new business.</p> <p>There Word, Excel, and Powerpoint from Micro$soft that are usually very expensive.</p> <p>There is also money management software, project planning software, and graphic software.</p> <p>Well there is a solution for small [...]]]></description>
			<content:encoded><![CDATA[<p><span>There is a ton of software a new business sometimes feels that they must purchase right when they are starting off a new business.</p>
<p>There Word, Excel, and Powerpoint from Micro$soft that are usually very expensive.</p>
<p>There is also money management software, project planning software, and graphic software.</p>
<p>Well there is a solution for small businesses that are starting out is to use Open Source Software.<br />
There is a great web site that lists all of the commercial software along with it&#8217;s Open Source Alternative.<br />
Check out <a href="http://www.osalt.com/" target="_blank">Open Source Alternatives web site</a>.</p>
<p>They will show you stuff like<br />
Expensive App             Free Apps<br />
Photoshop                   The GIMP<br />
VISIO                         DIA<br />
MS Office                    Open Office<br />
Illustrator, CorelDraw  Inkscape<br />
Quickbooks                 Postbooks</p>
<p>There are many more and almost every big commercial application now has an Open Source alternative.  It is possible that you may need to be running Linux for some of these, but Ubuntu has become as easy to use as Windows or a Mac.</span></p>
<p><span>I found another Blog posting about 50 top applications and their alternatives.<br />
The post was made early in 2008 so the software most likely has gotten even better since then.</p>
<p>Check out <a href="http://whdb.com/2008/the-top-50-proprietary-programs-that-drive-you-crazy-and-their-open-source-alternatives/" target="_blank">http://whdb.com/2008/the-top-50-proprietary-programs-that-drive-you-crazy-and-their-open-source-alternatives/</a></span></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flosbyers.com%2Fwordpress%2F2009%2F12%2Fopen-source-alternatives%2F&amp;title=Open%20Source%20Alternatives" id="wpa2a_2"><img src="http://losbyers.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://losbyers.com/wordpress/2009/12/open-source-alternatives/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free Online Mind Mapping software</title>
		<link>http://losbyers.com/wordpress/2009/12/free-online-mind-mapping-software/</link>
		<comments>http://losbyers.com/wordpress/2009/12/free-online-mind-mapping-software/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 20:52:45 +0000</pubDate>
		<dc:creator>LosByers</dc:creator>
				<category><![CDATA[Business Help]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://losbyers.com/wordpress/?p=107</guid>
		<description><![CDATA[<p>There are many solutions on the net for mind mapping software.</p> <p>I have tried a few and the one that seems the simplest to use and has collaborative abilities and excellent exporting formats is  Mind42.com.  Manage all your ideas, whether alone, twosome or working together with the whole world &#8211; collaborative, browser-based and for free.</p> [...]]]></description>
			<content:encoded><![CDATA[<p><span>There are many solutions on the net for mind mapping software.</span></p>
<p>I have tried a few and the one that seems the simplest to use and has collaborative abilities and excellent exporting formats is  <a href="http://mind42.com/" target="_blank">Mind42.com</a>.  Manage all your ideas, whether alone, twosome or working together with the whole world &#8211; collaborative, browser-based and for free.</p>
<p>Using a mind map is a great way to build an org chart or brain storm an idea.  It can even help create something as simple as a to-do list.</p>
<div id="attachment_108" class="wp-caption aligncenter" style="width: 860px"><img class="size-full wp-image-108" title="mindmap_showcase1" src="http://losbyers.com/wordpress/wp-content/uploads/2009/12/showcase1.jpg" alt="Mindmap Example" width="850" height="260" /><p class="wp-caption-text">Mindmap Example</p></div>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flosbyers.com%2Fwordpress%2F2009%2F12%2Ffree-online-mind-mapping-software%2F&amp;title=Free%20Online%20Mind%20Mapping%20software" id="wpa2a_4"><img src="http://losbyers.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://losbyers.com/wordpress/2009/12/free-online-mind-mapping-software/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get Your Name on Every Social Network</title>
		<link>http://losbyers.com/wordpress/2009/12/get-your-name-on-every-social-network/</link>
		<comments>http://losbyers.com/wordpress/2009/12/get-your-name-on-every-social-network/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 20:43:22 +0000</pubDate>
		<dc:creator>LosByers</dc:creator>
				<category><![CDATA[Business Help]]></category>
		<category><![CDATA[Web Related]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://losbyers.com/wordpress/?p=100</guid>
		<description><![CDATA[<p>One of the biggest advantages of social media is the ability to get your brand Web-wide recognition among very active consumers across any number of niches, large and small. One of the biggest disadvantages is the massive amount of time it takes to get these profiles set up and keep them maintained. You can also [...]]]></description>
			<content:encoded><![CDATA[<p><span>One of the biggest advantages of social media is the ability to get your brand Web-wide recognition among very active consumers across any number of niches, large and small. One of the biggest disadvantages is the massive amount of time it takes to get these profiles set up and keep them maintained. You can also run into problems when someone else has squatted on your brand name within these networks.  KnowEm.com has a solution.</p>
<p>See the <a href="http://www.websitemagazine.com/content/blogs/posts/archive/2009/10/21/get-your-brand-on-every-social-network-with-knowem.aspx" target="_blank">Bnet Article.</a>.</p>
<p>Or go to the <a href="http://knowem.com/" target="_blank">Knowem Web Page</a>.</p>
<p>It&#8217;s sort of awesome to be able to get a list of Social Networking sites broken down into their niche, ie music, video, blogging, etc.  You can then use the information to create your brand in all of the networks if you so desire.  You can also pay Knowem to do it for you if you don&#8217;t feel that you have the time.</span></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flosbyers.com%2Fwordpress%2F2009%2F12%2Fget-your-name-on-every-social-network%2F&amp;title=Get%20Your%20Name%20on%20Every%20Social%20Network" id="wpa2a_6"><img src="http://losbyers.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://losbyers.com/wordpress/2009/12/get-your-name-on-every-social-network/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Sites with Free Games</title>
		<link>http://losbyers.com/wordpress/2009/12/web-sites-with-free-games/</link>
		<comments>http://losbyers.com/wordpress/2009/12/web-sites-with-free-games/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 18:09:16 +0000</pubDate>
		<dc:creator>LosByers</dc:creator>
				<category><![CDATA[Web Related]]></category>
		<category><![CDATA[internet]]></category>

		<guid isPermaLink="false">http://losbyers.com/wordpress/?p=89</guid>
		<description><![CDATA[<p>There are so many web sites now days offering free online arcade type games.</p> <p>http://www.flashgames247.com/</p> <p>http://www.playfuls.com</p> <p>http://www.kongragate.com (My personal favorite)</p> <p>http://www.miniclip.com/</p> <p>http://play-free-online-games.com</p> ]]></description>
			<content:encoded><![CDATA[<p><span>There are so many web sites now days offering free online arcade type games.</p>
<p><a href="http://www.flashgames247.com/" target="_blank">http://www.flashgames247.com/</a></p>
<p><a href="http://www.playfuls.com/" target="_blank">http://www.playfuls.com</a></p>
<p><a href="http://www.kongragate.com/" target="_blank">http://www.kongragate.com<strong> </strong></a><strong>(My personal favorite)</strong></p>
<p><a href="http://www.miniclip.com/" target="_blank">http://www.miniclip.com/</a></p>
<p><a href="http://play-free-online-games.com/" target="_blank">http://play-free-online-games.com</a></span></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flosbyers.com%2Fwordpress%2F2009%2F12%2Fweb-sites-with-free-games%2F&amp;title=Web%20Sites%20with%20Free%20Games" id="wpa2a_8"><img src="http://losbyers.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://losbyers.com/wordpress/2009/12/web-sites-with-free-games/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Force Tomcat to HTTPS</title>
		<link>http://losbyers.com/wordpress/2009/12/force-tomcat-to-https/</link>
		<comments>http://losbyers.com/wordpress/2009/12/force-tomcat-to-https/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 17:51:30 +0000</pubDate>
		<dc:creator>LosByers</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Web Related]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://losbyers.com/wordpress/?p=79</guid>
		<description><![CDATA[<p>Need to have http redirect to https within Tomcat. Here is a good page on setting up SSL for Tomcat tomcat-6.0-doc/ssl-howto.html</p> <p>1. Change Tomcat&#8217;s server.xml. (&#60;application&#62;/tomcat/conf/server.xml) Edit the non-SSL &#60;Connector&#62; entry listening on port 80 and add or edit the redirectPort atribute to point to the port on which the SSL &#60;Connector&#62; is listening. By [...]]]></description>
			<content:encoded><![CDATA[<p>Need to have http redirect to https within Tomcat.<br />
Here is a good page on setting up SSL for Tomcat <a href="http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html" target="_blank">tomcat-6.0-doc/ssl-howto.html</a></p>
<p><span style="font-weight: bold;">1.</span> Change Tomcat&#8217;s server.xml.<br />
(&lt;application&gt;/tomcat/conf/server.xml)<br />
Edit the non-SSL &lt;Connector&gt; entry listening on port 80 and add or<br />
edit the redirectPort atribute to point to the port on which the SSL<br />
&lt;Connector&gt; is listening. By default, the redirectPort was pointing<br />
to port 443.  Note: if you have an internal system running SSL on port 21101, for example, and your site uses a global load balancer, then you need to redirect to port 443.  Otherwise, the URL would be rewritten as <a href="https://your.site.com:21101/" target="_blank">https://your.site.com:21101</a> which would fail at the loadbalancer.</p>
<p><span style="font-weight: bold;">Was:</span><br />
<span style="color: #008000;">Connector port=&#8221;80&#8243;<br />
enableLookups=&#8221;false&#8221;<br />
redirectPort=&#8221;8443&#8243;<br />
maxThreads=&#8221;100&#8243;<br />
minSpareThreads=&#8221;100&#8243;<br />
maxSpareThreads=&#8221;100&#8243;</span></p>
<p><span style="font-weight: bold;">Changed to:</span><br />
<span style="color: #008000;">Connector port=&#8221;80&#8243;<br />
enableLookups=&#8221;false&#8221;<br />
redirectPort=&#8221;443&#8243;<br />
maxThreads=&#8221;100&#8243;<br />
minSpareThreads=&#8221;100&#8243;<br />
maxSpareThreads=&#8221;100&#8243; </span></p>
<p><span style="font-weight: bold;">2.</span> Setup a security constraint in the Tomcat web.xml file.<br />
In the Tomcat web.xml file the following &lt;security&gt; has<br />
to be added within the &lt;web&gt; element. This new element must be<br />
added after the &lt;servlet&gt; element: Note: The Tomcat documentation states that https will only be redirected to the Port listed if there is a &lt;security&gt; listed for some path.  I found the best location to add the info is just prior to the last line in the web.xml</p>
<p>Place the following code just above the last line (&lt;/web&gt;) in the web.xml file<br />
(&lt;application&gt;/tomcat/conf/web.xml)</p>
<p><span style="color: #008000;">&lt;pre&gt;&lt;security&gt;<br />
&lt;web&gt;<br />
&lt;web&gt;Application Name&lt;/web&gt;<br />
&lt;url&gt;/*&lt;/url&gt;<br />
&lt;/web&gt;<br />
</span><span style="color: #008000;"> </span><span style="color: #008000;">&lt;user&gt;<br />
&lt;transport&gt;CONFIDENTIAL&lt;/transport&gt;<br />
&lt;/user&gt;<br />
&lt;/security&gt;<br />
</span></p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 729px; width: 1px; height: 1px;">
<p>Need to have http redirect to https within Tomcat.<br />
Here is a good page on setting up SSL for Tomcat <a href="http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html" target="_blank">tomcat-6.0-doc/ssl-howto.html</a></p>
<p><span style="font-weight: bold;">1.</span> Change Tomcat&#8217;s server.xml.<br />
(&lt;application&gt;/tomcat/conf/server.xml)<br />
Edit the non-SSL &lt;Connector&gt; entry listening on port 80 and add or<br />
edit the redirectPort atribute to point to the port on which the SSL<br />
&lt;Connector&gt; is listening. By default, the redirectPort was pointing<br />
to port 443.  Note: if you have an internal system running SSL on port 21101, for example, and your site uses a global load balancer, then you need to redirect to port 443.  Otherwise, the URL would be rewritten as <a href="https://your.site.com:21101/" target="_blank">https://your.site.com:21101</a> which would fail at the loadbalancer.</p>
<p><span style="font-weight: bold;">Was:</span><br />
<span style="color: #008000;">Connector port=&#8221;80&#8243;<br />
enableLookups=&#8221;false&#8221;<br />
redirectPort=&#8221;8443&#8243;<br />
maxThreads=&#8221;100&#8243;<br />
minSpareThreads=&#8221;100&#8243;<br />
maxSpareThreads=&#8221;100&#8243;</span></p>
<p><span style="font-weight: bold;">Changed to:</span><br />
<span style="color: #008000;">Connector port=&#8221;80&#8243;<br />
enableLookups=&#8221;false&#8221;<br />
redirectPort=&#8221;443&#8243;<br />
maxThreads=&#8221;100&#8243;<br />
minSpareThreads=&#8221;100&#8243;<br />
maxSpareThreads=&#8221;100&#8243; </span></p>
<p><span style="font-weight: bold;">2.</span> Setup a security constraint in the Tomcat web.xml file.<br />
In the Tomcat web.xml file the following &lt;security&gt; has<br />
to be added within the &lt;web&gt; element. This new element must be<br />
added after the &lt;servlet&gt; element: Note: The Tomcat documentation states that https will only be redirected to the Port listed if there is a &lt;security&gt; listed for some path.  I found the best location to add the info is just prior to the last line in the web.xml</p>
<p>Place the following code just above the last line (&lt;/web&gt;) in the web.xml file<br />
(&lt;application&gt;/tomcat/conf/web.xml)</p>
<pre>
<span style="color: #008000;"> </span>
&lt;security&gt;
    &lt;web&gt;
        &lt;web&gt;Application Name&lt;/web&gt;
        &lt;url&gt;/*&lt;/url&gt;
    &lt;/web&gt;
<span style="color: #008000;"> </span><span style="color: #008000;">   &lt;user&gt;
        &lt;transport&gt;CONFIDENTIAL&lt;/transport&gt;
    &lt;/user&gt;
&lt;/security&gt;
</span></pre>
</div>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flosbyers.com%2Fwordpress%2F2009%2F12%2Fforce-tomcat-to-https%2F&amp;title=Force%20Tomcat%20to%20HTTPS" id="wpa2a_10"><img src="http://losbyers.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://losbyers.com/wordpress/2009/12/force-tomcat-to-https/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How-to Add in Apache modules, ie mod_rewrite</title>
		<link>http://losbyers.com/wordpress/2009/12/how-to-add-in-apache-modules-ie-mod_rewrite/</link>
		<comments>http://losbyers.com/wordpress/2009/12/how-to-add-in-apache-modules-ie-mod_rewrite/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 22:08:05 +0000</pubDate>
		<dc:creator>LosByers</dc:creator>
				<category><![CDATA[Web Related]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://losbyers.com/wordpress/?p=77</guid>
		<description><![CDATA[<p>I seem to need this information often enough so I thought I would post it here for safe keeping.</p> <p>In Apache 2, shared modules must be compiled with the directive: &#8211;enable-mods-shared=&#8217;rewrite&#8217;</p> <p>Multiple modules can be configured that way like so: &#8211;enable-mods-shared=&#8217;rewrite dav dav-fs&#8217;</p> <p>A simple config string would look like this: ./configure &#8211;prefix=/usr/local/apache &#8211;enable-mods-shared=&#8217;rewrite&#8217;</p> <p># [...]]]></description>
			<content:encoded><![CDATA[<p><span>I seem to need this information often enough so I thought I would post it here for safe keeping.</p>
<p>In Apache 2, shared modules must be compiled with the directive:<br />
&#8211;enable-mods-shared=&#8217;rewrite&#8217;</p>
<p>Multiple modules can be configured that way like so:<br />
&#8211;enable-mods-shared=&#8217;rewrite dav dav-fs&#8217;</p>
<p>A simple config string would look like this:<br />
./configure &#8211;prefix=/usr/local/apache &#8211;enable-mods-shared=&#8217;rewrite&#8217;</p>
<p># EVEN if you screwed up and failed to compile it, by using the horribly broken and often incorrectly documented &#8216;&#8211;enable-rewrite&#8217; switch (which DOES NOT WORK: even ./configure &#8211;help and the apache install docs includes this BS compile directive that DOES NOT WORK), ALL IS NOT LOST. You can still compile any modules by changing to the apache source dir and then the sub directories /modules/mappers (for example: /path/to/your/httpd-source/modules/mappers ) and executing the following command:</p>
<p>/usr/local/apache/bin/apxs -cia mod_rewrite.c</p>
<p># This will compile the modules as a &#8220;so&#8221; or &#8220;shared object&#8221;, and add the proper enabling string to your httpd.conf file: LoadModule rewrite_module modules/mod_rewrite.so</p>
<p>The apxs method of compiling in a module should work for most of the modules you may need.  For instance mod_speling is very useful in dealing with mod_rewrite as it is used to ignore case.</p>
<p>I also just thought that I could download the latest XAMPP version from <a href="http://www.apachefriends.org/" target="_blank">www.apachefriends.org</a> and get the modules I need from there.  It may or may not work.</span></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flosbyers.com%2Fwordpress%2F2009%2F12%2Fhow-to-add-in-apache-modules-ie-mod_rewrite%2F&amp;title=How-to%20Add%20in%20Apache%20modules%2C%20ie%20mod_rewrite" id="wpa2a_12"><img src="http://losbyers.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://losbyers.com/wordpress/2009/12/how-to-add-in-apache-modules-ie-mod_rewrite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sync Web Servers Script</title>
		<link>http://losbyers.com/wordpress/2009/12/sync-web-servers-script/</link>
		<comments>http://losbyers.com/wordpress/2009/12/sync-web-servers-script/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 17:41:30 +0000</pubDate>
		<dc:creator>LosByers</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[Web Related]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://losbyers.com/wordpress/?p=74</guid>
		<description><![CDATA[<p>Here is a script I wrote to keep 2 or more web sites in sync.  The data files can be anything under the data tree. The database is MySQL.</p> <p>The script works by pulling the latest data and database backup from the production server.  The script can be placed in a cron. The DR server [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a script I wrote to keep 2 or more web sites in sync.  The data files can be anything under the data tree.<br />
The database is MySQL.</p>
<p>The script works by pulling the latest data and database backup from the production server.  The script can be placed in a cron.<br />
The DR server user should be able to ssh without a password to the production server.  This is accomplished using RSA keys under SSH.</p>
<p>Once both the web site and database are setup, this script pulls the newest files, and latest mysql database backup via rsync.</p>
<p>Change the First set of VARIABLES, and &lt;usernames&gt; and &lt;pathing&gt; where needed.</p>
<p>I should probably have more information on the script here, but I wanted to save a copy somewhere before I forgot about it.</p>
<p>Anyway, my thought is if I setup a primary web server somewhere and want n+1 backend systems I might be able to use this poor-man&#8217;s approach.  If the backed systems need to have database updates then you are looking at database replication.  But, the rsync file copy and all of the rest could be used to make web server production updates to a cluster of systems.  You just update the main instance and all of the slave servers pull the latest information, including a database update script if needed., unix, script</p>
<p><span id="more-74"></span><span style="color: #99cc00;">#!/bin/ksh -x</p>
<p>#######################################<br />
#<br />
# Script to sync Prod web with DR server.<br />
# The script is designed to pull from the<br />
# production server.<br />
#<br />
# 12/2008:  Initial setup.<br />
#        :  Mike Byers<br />
#######################################</p>
<p>PRIME_HOST=&#8217;prod.edmz.com&#8217;                  #Production host<br />
DR_HOST=&#8217;dr-orprod2.edmz.com&#8217;              #DR server<br />
DATABASES=&#8221;mysql DB1 DB2&#8243;                  #database to transfer space sepa<br />
rated<br />
#MYSQLUSER=backup                               #User for database backup<br />
MYSQLUSER=restore                                  #User for database restore<br />
#MYSQLPWD=&#8217;ABC123&#8242;                             #Backup user Password<br />
MYSQLPWD=&#8217;ABC123&#8242;                               #Restore user Password (Restore user needs more DB permissions)<br />
DB_PATH=&#8217;/opt/mysql5/backups&#8217;                 #Path to database backup files<br />
#YESTERDAY=`date +%Y%m%d -d&#8221;1 day ago&#8221;`         #Linux Version<br />
YESTERDAY=`TZ=GMT+24 date +%Y%m%d`              #Solaris Version<br />
TODAY=`date +%Y%m%d`<br />
PATH=$PATH:/opt/mysql5/bin/;export PATH  #Path to mysql binaries</p>
<p>/usr/bin/rsync &#8211;exclude &#8216;configuration.*&#8217; \<br />
&#8211;exclude &#8216;**/logs&#8217; \<br />
&#8211;exclude &#8216;**/modules&#8217; \<br />
&#8211;exclude &#8216;**/conf&#8217; \<br />
&#8211;exclude &#8216;**/bin&#8217; \<br />
-vaue &#8216;ssh -x -C -l &lt;username&gt;&#8217; $PRIME_HOST:apache/htdocs/* /&lt;path&gt;/apache/htdocs/</p>
<p>for DB in $DATABASES<br />
do<br />
/usr/bin/rsync -vaue &#8216;ssh -x -C -l &lt;username&gt;&#8217; $PRIME_HOST:$DB_PATH/$DB-$TODAY.sql.<br />
gz $DB_PATH<br />
#Compare sizes of database backup files to see if anything changed<br />
S1=`du -sk $DB_PATH/$DB-$YESTERDAY.sql.gz | awk &#8216;{ print $1 }&#8217;`<br />
S2=`du -sk $DB_PATH/$DB-$TODAY.sql.gz | awk &#8216;{ print $1 }&#8217;`<br />
if [[ S1 -eq S2 ]]; then<br />
echo &#8220;No update for database $DB needed&#8221;<br />
else<br />
/bin/gunzip &lt; $DB_PATH/$DB-$TODAY.sql.gz | mysql -u $MYSQLUSER -p$MYSQLPWD<br />
$DB<br />
fi<br />
done</span></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flosbyers.com%2Fwordpress%2F2009%2F12%2Fsync-web-servers-script%2F&amp;title=Sync%20Web%20Servers%20Script" id="wpa2a_14"><img src="http://losbyers.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://losbyers.com/wordpress/2009/12/sync-web-servers-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Overcoming the dreaded SCP/SFTP message errors</title>
		<link>http://losbyers.com/wordpress/2009/12/overcoming-the-dreaded-scpsftp-message-errors/</link>
		<comments>http://losbyers.com/wordpress/2009/12/overcoming-the-dreaded-scpsftp-message-errors/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 17:23:37 +0000</pubDate>
		<dc:creator>LosByers</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[Web Related]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://losbyers.com/wordpress/?p=62</guid>
		<description><![CDATA[<p>If you have ever used scp or sftp you may have encountered the dreaded ( &#8221;Received message too long&#8221; or &#8220;Bad packet length&#8221; &#8221;) errors.</p> <p>This is typically due to something being echo&#8217;d or sent back to your login attempt.</p> <p>Usually, it&#8217;s something you have in your .profile or .bashrc login files.</p> <p>Just add the [...]]]></description>
			<content:encoded><![CDATA[<p><span>If you have ever used scp or sftp you may have encountered the dreaded ( &#8221;Received message too long&#8221; or &#8220;Bad packet length&#8221; &#8221;) errors.</p>
<p>This is typically due to something being echo&#8217;d or sent back to your login attempt.</p>
<p>Usually, it&#8217;s something you have in your .profile or .bashrc login files.</p>
<p>Just add the following to the very top of your login shell settings file.</p>
<p><strong><span style="font-weight: bold;">if [ ${TERM} == "dumb" ]; then<br />
return<br />
fi</span></strong></p>
<p>This will exit out of running the login shell commands if you login using a &#8220;dumb&#8221; terminal.</span></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flosbyers.com%2Fwordpress%2F2009%2F12%2Fovercoming-the-dreaded-scpsftp-message-errors%2F&amp;title=Overcoming%20the%20dreaded%20SCP%2FSFTP%20message%20errors" id="wpa2a_16"><img src="http://losbyers.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://losbyers.com/wordpress/2009/12/overcoming-the-dreaded-scpsftp-message-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

