<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.1" -->
<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/"
	>

<channel>
	<title>TechToolBlog &#187; unix</title>
	<link>http://www.techtoolblog.com</link>
	<description></description>
	<pubDate>Thu, 03 Jul 2008 12:41:19 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
	<language>en</language>
			<item>
		<title>Leopard Service Pack 2 Coming</title>
		<link>http://www.techtoolblog.com/archives/leopard-service-pack-2-coming</link>
		<comments>http://www.techtoolblog.com/archives/leopard-service-pack-2-coming#comments</comments>
		<pubDate>Tue, 22 Jan 2008 20:03:10 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
		
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.techtoolblog.com/archives/leopard-service-pack-2-coming</guid>
		<description><![CDATA[OS X 10.5.2 is coming with weight of, oh ~450mb.&#160; I think you can call that a service pack and not so much of a minor release.&#160; Props to Apple for turning around 100 major bug fixes in a short period of time but doesn&#8217;t that really mean the OS was released before it was [...]<script type="text/javascript">SHARETHIS.addEntry({ title: "Leopard Service Pack 2 Coming", url: "http://www.techtoolblog.com/archives/leopard-service-pack-2-coming" });</script>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.appleinsider.com/articles/08/01/21/nearly_100_fixes_planned_for_apples_second_leopard_update.html">OS X 10.5.2</a> is coming with weight of, oh ~450mb.&#160; I think you can call that a service pack and not so much of a minor release.&#160; Props to Apple for turning around 100 major bug fixes in a short period of time but doesn&#8217;t that really mean the OS was released before it was ready?&#160; </p>
<p>I&#8217;m one of the few people who don&#8217;t mind buggy software as long as they release often.&#160; Why don&#8217;t I mind?&#160; Well, software development is hard, really hard.&#160; Across platforms or cross browsers or even across versions of 1 type of OS.&#160; I&#8217;ve felt the pain, and certainly caused it.&#160; But one piece of software that can&#8217;t be buggy is the OS itself.&#160; It effects everything.&#160; A buggy OS can make you life miserable, see Windows 98 and apparently OS X 10.5.0.&#160; Vista on the other hand isn&#8217;t buggy but slow, I know, I&#8217;ve used it for over 1 year now.&#160; Buggy or Slow, not a good choice.</p>
<p><a href="http://sharethis.com/item?&wp=2.3.1&amp;publisher=24accfc2-4cf2-46ea-abf6-c137f8fa267d&amp;title=Leopard+Service+Pack+2+Coming&amp;url=http%3A%2F%2Fwww.techtoolblog.com%2Farchives%2Fleopard-service-pack-2-coming">ShareThis</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.techtoolblog.com/archives/leopard-service-pack-2-coming/feed</wfw:commentRss>
		</item>
		<item>
		<title>YSlow &#38; Improving Speed</title>
		<link>http://www.techtoolblog.com/archives/yslow-improving-speed</link>
		<comments>http://www.techtoolblog.com/archives/yslow-improving-speed#comments</comments>
		<pubDate>Thu, 16 Aug 2007 21:16:48 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
		
		<category><![CDATA[unix]]></category>

		<category><![CDATA[web 2.0 ish]]></category>

		<guid isPermaLink="false">http://www.techtoolblog.com/archives/yslow-improving-speed</guid>
		<description><![CDATA[Yahoo! came out with a FireBug addon - YSlow, that takes a look at your web page and offers a score on performance. Most of the recommendations are easy enough to follow, below are 3 that take some Apache httpd.conf hacking to get working:
1) Configure ETags
Add this to your httpd.conf


FileETag MTime Size

&#160;
2) Turn on Expiration [...]<script type="text/javascript">SHARETHIS.addEntry({ title: "YSlow &#38; Improving Speed", url: "http://www.techtoolblog.com/archives/yslow-improving-speed" });</script>]]></description>
			<content:encoded><![CDATA[<p>Yahoo! came out with a FireBug addon - <a href="http://developer.yahoo.com/yslow/">YSlow</a>, that takes a look at your web page and offers a score on performance. Most of the recommendations are easy enough to follow, below are 3 that take some Apache httpd.conf hacking to get working:</p>
<h5><strong>1) Configure ETags</strong></h5>
<p>Add this to your httpd.conf</p>
<p><!--<br />
{\rtf1\ansi\ansicpg\lang1024\noproof1252\uc1 \deff0{\fonttbl{\f0\fnil\fcharset0\fprq1 Consolas;}}{\colortbl;??\red0\green0\blue0;\red255\green255\blue255;}??\fs20 FileETag MTime Size}<br />
-->
<div style="font-size: 10pt; background: white; color: black; font-family: consolas">
<p style="margin: 0px">FileETag MTime Size</p>
</div>
<p>&nbsp;</p>
<h5>2) Turn on Expiration Headers</h5>
<p><!--<br />
{\rtf1\ansi\ansicpg\lang1024\noproof1252\uc1 \deff0{\fonttbl{\f0\fnil\fcharset0\fprq1 Consolas;}}{\colortbl;??\red0\green0\blue0;\red255\green255\blue255;\red0\green0\blue255;\red163\green21\blue21;}??\fs20 # Turn \cf3 on\cf0  Expires \cf3 and\cf0  \cf3 set\cf0  \cf3 default\cf0  \cf3 to\cf0  0\par ??ExpiresActive \cf3 On\par ??\cf0 ExpiresDefault A7200\par ??\par ??# \cf3 Set\cf0  up caching \cf3 on\cf0  media files \cf3 for\cf0  1 year (forever?)\par ??&lt;FilesMatch \cf4 "\\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav)$"\cf0 &gt;\par ??ExpiresDefault A29030400\par ??&lt;/FilesMatch&gt;\par ??\par ??# \cf3 Set\cf0  up caching \cf3 on\cf0  media files \cf3 for\cf0  1 week\par ??&lt;FilesMatch \cf4 "\\.(gif|jpg|jpeg|png|swf)$"\cf0 &gt;\par ??ExpiresDefault A604800\par ??&lt;/FilesMatch&gt;\par ??\par ??# \cf3 Set\cf0  up 2 Hour caching \cf3 on\cf0  commonly updated files\par ??&lt;FilesMatch \cf4 "\\.(xml|txt|html|php|js|css)$"\cf0 &gt;\par ??ExpiresDefault A7200\par ??&lt;/FilesMatch&gt;}<br />
-->
<div style="font-size: 10pt; background: white; color: black; font-family: consolas">
<p style="margin: 0px"># Turn <span style="color: blue">on</span> Expires <span style="color: blue">and</span> <span style="color: blue">set</span> <span style="color: blue">default</span> <span style="color: blue">to</span> 0</p>
<p style="margin: 0px">ExpiresActive <span style="color: blue">On</span></p>
<p style="margin: 0px">ExpiresDefault A7200</p>
<p style="margin: 0px">&nbsp;</p>
<p style="margin: 0px"># <span style="color: blue">Set</span> up caching <span style="color: blue">on</span> media files <span style="color: blue">for</span> 1 year</p>
<p style="margin: 0px">&lt;FilesMatch <span style="color: #a31515">&#8220;\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav)$&#8221;</span>&gt;</p>
<p style="margin: 0px">ExpiresDefault A29030400</p>
<p style="margin: 0px">&lt;/FilesMatch&gt;</p>
<p style="margin: 0px">&nbsp;</p>
<p style="margin: 0px"># <span style="color: blue">Set</span> up caching <span style="color: blue">on</span> media files <span style="color: blue">for</span> 1 week</p>
<p style="margin: 0px">&lt;FilesMatch <span style="color: #a31515">&#8220;\.(gif|jpg|jpeg|png|swf)$&#8221;</span>&gt;</p>
<p style="margin: 0px">ExpiresDefault A604800</p>
<p style="margin: 0px">&lt;/FilesMatch&gt;</p>
<p style="margin: 0px">&nbsp;</p>
<p style="margin: 0px"># <span style="color: blue">Set</span> up 24 Hour caching <span style="color: blue">on</span> commonly updated files</p>
<p style="margin: 0px">&lt;FilesMatch <span style="color: #a31515">&#8220;\.(xml|txt|html|php|js|css)$&#8221;</span>&gt;</p>
<p style="margin: 0px">ExpiresDefault A86400</p>
<p style="margin: 0px">&lt;/FilesMatch&gt;</p>
</div>
<p>&nbsp;</p>
<h5>3) Add Gzip compression</h5>
<p>Install <a href="http://sourceforge.net/projects/mod-gzip/">mod_gzip&nbsp;for Apache</a>, add this to your httpd.conf to configure mod_gzip to handle files/settings</p>
<p><!--<br />
{\rtf1\ansi\ansicpg\lang1024\noproof1252\uc1 \deff0{\fonttbl{\f0\fnil\fcharset0\fprq1 Consolas;}}{\colortbl;??\red0\green0\blue0;\red255\green255\blue255;\red0\green128\blue0;\red0\green0\blue255;}??\fs20 &lt;IfModule mod_gzip.c&gt;\par ?? mod_gzip_on                                     Yes\par ??    mod_gzip_can_negotiate                          Yes\par ??    mod_gzip_static_suffix                          .gz\par ??    AddEncoding                     gzip            .gz\par ??    mod_gzip_update_static                          No\par ??    mod_gzip_command_version                        \cf3 '/mod_gzip_status'\par ??\cf0     mod_gzip_keep_workfiles                         No\par ??    mod_gzip_minimum_file_size                      512\par ??    mod_gzip_maximum_file_size                      1048576\par ??    mod_gzip_maximum_inmem_size                     60000\par ??    mod_gzip_min_http                               1000\par ??    mod_gzip_handle_methods                         \cf4 GET\cf0  POST\par ??\par ??    mod_gzip_item_include           mime            ^text/.*\par ??    mod_gzip_item_include           mime            ^httpd/unix-directory$\par ??    mod_gzip_item_include           file            \\.shtml$\par ??    mod_gzip_item_include           file            \\.html$\par ??    mod_gzip_item_include           mime            ^application/x-javascript$\par ??    mod_gzip_item_include           mime            ^application/javascript$\par ??    mod_gzip_item_include           file            \\.js$\par ??    mod_gzip_item_include           file            \\.css$\par ??    mod_gzip_item_include           mime            ^application/x-httpd-php$\par ??    mod_gzip_item_include           file            \\.php$\par ??    mod_gzip_item_include           handler         ^cgi-script$\par ??\par ??    mod_gzip_dechunk                                Yes\par ??\par ??    # \cf4 DO\cf0  \cf4 NOT\cf0  WASTE TIME COMPRESSING IMAGES\par ??    mod_gzip_item_exclude           mime            ^image/.$\par ??    mod_gzip_item_exclude           mime            ^image/\par ??    mod_gzip_item_exclude           rspheader       Content-Type:image/*\par ??&lt;/IfModule&gt;}<br />
-->
<div style="font-size: 10pt; background: white; color: black; font-family: consolas">
<p style="margin: 0px">&lt;IfModule mod_gzip.c&gt;</p>
<p style="margin: 0px">&nbsp;mod_gzip_on Yes</p>
<p style="margin: 0px">mod_gzip_can_negotiate Yes</p>
<p style="margin: 0px">mod_gzip_static_suffix .gz</p>
<p style="margin: 0px">AddEncoding gzip .gz</p>
<p style="margin: 0px">mod_gzip_update_static No</p>
<p style="margin: 0px">mod_gzip_command_version <span style="color: green">&#8216;/mod_gzip_status&#8217;</span></p>
<p style="margin: 0px">mod_gzip_keep_workfiles No</p>
<p style="margin: 0px">mod_gzip_minimum_file_size 512</p>
<p style="margin: 0px">mod_gzip_maximum_file_size 1048576</p>
<p style="margin: 0px">mod_gzip_maximum_inmem_size 60000</p>
<p style="margin: 0px">mod_gzip_min_http 1000</p>
<p style="margin: 0px">mod_gzip_handle_methods <span style="color: blue">GET</span> POST</p>
<p style="margin: 0px">&nbsp;</p>
<p style="margin: 0px">mod_gzip_item_include mime ^text/.*</p>
<p style="margin: 0px">mod_gzip_item_include mime ^httpd/unix-directory$</p>
<p style="margin: 0px">mod_gzip_item_include file \.shtml$</p>
<p style="margin: 0px">mod_gzip_item_include file \.html$</p>
<p style="margin: 0px">mod_gzip_item_include mime ^application/x-javascript$</p>
<p style="margin: 0px">mod_gzip_item_include mime ^application/javascript$</p>
<p style="margin: 0px">mod_gzip_item_include file \.js$</p>
<p style="margin: 0px">mod_gzip_item_include file \.css$</p>
<p style="margin: 0px">mod_gzip_item_include mime ^application/x-httpd-php$</p>
<p style="margin: 0px">mod_gzip_item_include file \.php$</p>
<p style="margin: 0px">mod_gzip_item_include handler ^cgi-script$</p>
<p style="margin: 0px">&nbsp;</p>
<p style="margin: 0px">mod_gzip_dechunk Yes</p>
<p style="margin: 0px">&nbsp;</p>
<p style="margin: 0px"># <span style="color: blue">DO</span> <span style="color: blue">NOT</span> WASTE TIME COMPRESSING IMAGES</p>
<p style="margin: 0px">mod_gzip_item_exclude mime ^image/.$</p>
<p style="margin: 0px">mod_gzip_item_exclude mime ^image/</p>
<p style="margin: 0px">mod_gzip_item_exclude rspheader Content-Type:image/*</p>
<p style="margin: 0px">&lt;/IfModule&gt;</p>
</div>
<p>&nbsp;That&#8217;s it, those 3 changes improved my score from F (60) to a respectable B (81).</p>
<p><a href="http://www.techtoolblog.com//wp-content/uploads/2007/08/image.png" atomicselection="true"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="406" alt="image" src="http://www.techtoolblog.com//wp-content/uploads/2007/08/image-thumb.png" width="455" border="0"></a></p>
<p><a href="http://sharethis.com/item?&wp=2.3.1&amp;publisher=24accfc2-4cf2-46ea-abf6-c137f8fa267d&amp;title=YSlow+%26amp%3B+Improving+Speed&amp;url=http%3A%2F%2Fwww.techtoolblog.com%2Farchives%2Fyslow-improving-speed">ShareThis</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.techtoolblog.com/archives/yslow-improving-speed/feed</wfw:commentRss>
		</item>
		<item>
		<title>Safari on Windows</title>
		<link>http://www.techtoolblog.com/archives/safari-on-windows</link>
		<comments>http://www.techtoolblog.com/archives/safari-on-windows#comments</comments>
		<pubDate>Mon, 11 Jun 2007 19:56:44 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
		
		<category><![CDATA[unix]]></category>

		<category><![CDATA[web 2.0 ish]]></category>

		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.techtoolblog.com/archives/safari-on-windows</guid>
		<description><![CDATA[Thanks to Scott for clueing me in on the Safari 3 for Windows Public Beta.&#160; I must have been hiding in a hole, cause I did not see this coming at all.
First Impression

When I click on the top bar to expand the window, the dang thing disappears. Wait - Actually if I move it to [...]<script type="text/javascript">SHARETHIS.addEntry({ title: "Safari on Windows", url: "http://www.techtoolblog.com/archives/safari-on-windows" });</script>]]></description>
			<content:encoded><![CDATA[<p>Thanks to <a href="http://www.hanselman.com/blog/SafariForWindowsFirstImpressions.aspx">Scott</a> for clueing me in on the <a href="http://www.apple.com/safari/download/">Safari 3 for Windows Public Beta</a>.&nbsp; I must have been hiding in a hole, cause I did not see this coming at all.</p>
<p>First Impression</p>
<ul>
<li>When I click on the top bar to expand the window, the dang thing disappears. Wait - Actually if I move it to my dual monitor and click the expand button the dang thing disappears.&nbsp; Guess the dual monitor code hasn&#8217;t been put in.
<li>It is fast, very fast.&nbsp; Although reports are FF is faster then IE, I&#8217;ve found IE to render quicker (maybe because of the extensions I have going on FF), but this thing is really fast.
<li><strong>Finally, no more VNC to a MAC to make sure things are working correctly on Safari.&nbsp; This is great.</strong>
<li>Font rendering is nice - not clear type, but pretty close.
<li>Hey the backspace keyboard doesn&#8217;t move you back in history - not cool.</li>
</ul>
<p>I&#8217;m not switching from FF because of the extensive plugins I use but for some fast web browsing this might make take over my IE.</p>
<p><a href="http://www.techtoolblog.com//wp-content/uploads/2007/06/image.png" atomicselection="true"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="150" alt="image" src="http://www.techtoolblog.com//wp-content/uploads/2007/06/image_thumb.png" width="240" border="0"></a></p>
<p><a href="http://sharethis.com/item?&wp=2.3.1&amp;publisher=24accfc2-4cf2-46ea-abf6-c137f8fa267d&amp;title=Safari+on+Windows&amp;url=http%3A%2F%2Fwww.techtoolblog.com%2Farchives%2Fsafari-on-windows">ShareThis</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.techtoolblog.com/archives/safari-on-windows/feed</wfw:commentRss>
		</item>
		<item>
		<title>OS X Software Updates - Bloated</title>
		<link>http://www.techtoolblog.com/archives/os-x-software-updates-bloated</link>
		<comments>http://www.techtoolblog.com/archives/os-x-software-updates-bloated#comments</comments>
		<pubDate>Wed, 16 May 2007 19:03:52 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
		
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.techtoolblog.com/archives/os-x-software-updates-bloated</guid>
		<description><![CDATA[Remember when Microsoft use to put client type of software on their server OS (Paint, Games, etc&#8230;).&#160; Windows Server 2000 had all kinds of things already installed that it shouldn&#8217;t have. The Microsoft people got smart and locked things down in Windows 2003 Server.&#160; This is a good thing.&#160; Your&#160;server OS has no need for [...]<script type="text/javascript">SHARETHIS.addEntry({ title: "OS X Software Updates - Bloated", url: "http://www.techtoolblog.com/archives/os-x-software-updates-bloated" });</script>]]></description>
			<content:encoded><![CDATA[<p>Remember when Microsoft use to put client type of software on their server OS (Paint, Games, etc&#8230;).&nbsp; Windows Server 2000 had all kinds of things already installed that it shouldn&#8217;t have. The Microsoft people got smart and locked things down in Windows 2003 Server.&nbsp; This is a good thing.&nbsp; Your&nbsp;server OS has no need for these things, especially installed by default.&nbsp; Apple needs to do the same.&nbsp; I&nbsp;vnc into my OS X Server today and discover OS X Software Updates wants me to install a iTunes Phone Driver update.&nbsp; iTunes on my web server?&nbsp; Ahhhh no thanks.&nbsp; </p>
<p><a href="http://www.techtoolblog.com//wp-content/uploads/2007/05/WindowsLiveWriter/OSXSoftwareUpdatesBloated_D3D2/image%7B0%7D%5B3%5D.png" atomicselection="true"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="240" src="http://www.techtoolblog.com//wp-content/uploads/2007/05/WindowsLiveWriter/OSXSoftwareUpdatesBloated_D3D2/image%7B0%7D_thumb%5B1%5D.png" width="211" border="0"></a> </p>
<p>Can you image if Windows Update next week included a Zune update for Windows 2003 Server? Kinda of hypocritical of their new Mac commercial with the Windows guys comes out bloated, dontcha think?</p>
<p><a href="http://sharethis.com/item?&wp=2.3.1&amp;publisher=24accfc2-4cf2-46ea-abf6-c137f8fa267d&amp;title=OS+X+Software+Updates+-+Bloated&amp;url=http%3A%2F%2Fwww.techtoolblog.com%2Farchives%2Fos-x-software-updates-bloated">ShareThis</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.techtoolblog.com/archives/os-x-software-updates-bloated/feed</wfw:commentRss>
		</item>
		<item>
		<title>Using OSX VNC</title>
		<link>http://www.techtoolblog.com/archives/using-osx-vnc</link>
		<comments>http://www.techtoolblog.com/archives/using-osx-vnc#comments</comments>
		<pubDate>Wed, 08 Mar 2006 22:24:49 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
		
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.techtoolblog.com/archives/using-osx-vnc</guid>
		<description><![CDATA[I manage our MAC OS X server on a Windows XP machine from a command shell from ssh.com.   I can do 98% of my task from the command line, however sometimes I need to use the MAC GUI.  I have OSXVNC running on the OS X and Real VNC running on my [...]<script type="text/javascript">SHARETHIS.addEntry({ title: "Using OSX VNC", url: "http://www.techtoolblog.com/archives/using-osx-vnc" });</script>]]></description>
			<content:encoded><![CDATA[<p>I manage our MAC OS X server on a Windows XP machine from a command shell from <a href="http://www.ssh.com">ssh.com</a>.   I can do 98% of my task from the command line, however sometimes I need to use the MAC GUI.  I have <a href="http://www.redstonesoftware.com/vnc.html">OSXVNC</a> running on the OS X and <a href="http://www.realvnc.com/">Real VNC</a> running on my Windows box.</p>
<p>For our staging server, there is no real security concerns running VNC because the box is inside of our network and can not receive outside traffic.  However for our production Web Server, I don&#8217;t think it&#8217;s a good idea to have VNC running even if you change the default port.  For one reason OSXVNC only does 1 part authentication, I.E. you are only challenged with a password, not a user name.  Instead of running down to the server room everytime I have to use the MAC GUI, I instead have came up with this nice little tip.  </p>
<p>I start VNC server from the command line in my shell client specifing an encrypted password file, log on to VNC, do my buisness, and then kill the VNC server thread.  In security theory it goes like this: - I create a locked door on the fly, open it up (keeping it locked behind me), then destroy the door when I am done.  This is how to do it.</p>
<p><code><br />
 - OSCVnc creates a directory when installed named: /OSXvnc.app/<br />
 - Inside /OSXvnc.app/ there is a utility named: storepassword<br />
 - Run this command to create your encrypted file with your password in it:</p>
<p>#./storepassword yourpassword yourfilename</p>
<p>To start OSXVnc by command line:<br />
 - Go inside the Application directory(OSXvnc.app) and launch the OSXvnc-server process.<br />
 - To change parameters you will need to give it arguments (-rfbport to set port, -rfbauth to specify a password file, etc).  For usage run the command with -help. For example:</p>
<p># ./OSXvnc-server -rfbauth yourfilename</p>
<p>This starts the OSXvnc server with your encrypted password file<br />
</code></p>
<p>Now, start your RealVNC client on your windows machine. You will be asked to autheticate.  Once you are done with the MAC GUI, close RealVNC,  go back to your command shell and hit: &#8220;Ctrl + X&#8221; to kill the VNC thread.  This is a nice way to not worry about running VNC all the time on your production boxes exposed to the world.</p>
<p><a href="http://sharethis.com/item?&wp=2.3.1&amp;publisher=24accfc2-4cf2-46ea-abf6-c137f8fa267d&amp;title=Using+OSX+VNC&amp;url=http%3A%2F%2Fwww.techtoolblog.com%2Farchives%2Fusing-osx-vnc">ShareThis</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.techtoolblog.com/archives/using-osx-vnc/feed</wfw:commentRss>
		</item>
		<item>
		<title>SMB Files from Unix to Windows 2003 Share Folder</title>
		<link>http://www.techtoolblog.com/archives/smb-files-from-unix-to-windows-2003-share-folder</link>
		<comments>http://www.techtoolblog.com/archives/smb-files-from-unix-to-windows-2003-share-folder#comments</comments>
		<pubDate>Fri, 24 Feb 2006 20:44:21 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
		
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.techtoolblog.com/archives/smb-files-from-unix-to-windows-2003-share-folder</guid>
		<description><![CDATA[We have our Web server running on a MAC OS X machine while our Web reporting software, NetTracker, runs on a Windows 2003 server. We needed to get the data across everyday so our reporting could be real time minus one day. I ended up writing a shell script to move the data: Hopefully this [...]<script type="text/javascript">SHARETHIS.addEntry({ title: "SMB Files from Unix to Windows 2003 Share Folder", url: "http://www.techtoolblog.com/archives/smb-files-from-unix-to-windows-2003-share-folder" });</script>]]></description>
			<content:encoded><![CDATA[<p>We have our Web server running on a MAC OS X machine while our Web reporting software, NetTracker, runs on a Windows 2003 server. We needed to get the data across everyday so our reporting could be real time minus one day. I ended up writing a shell script to move the data: Hopefully this will help out someone out there. </p>
<p>*NOTE: This assumes you are doing a daily dump of your Apache log files</p>
<p><code>#! /bin/bash<br />
#####################################################<br />
# http://www.techtoolblog.com<br />
#####################################################</p>
<p>DATETIME=`date +%m-%d-%Y` </p>
<p>cd /var/log/httpd<br />
# On Sunday - Apache does a dump of the weeks worth of data<br />
# we need to archive it<br />
mv access_log.0.gz week_$DATETIME.gz</p>
<p># Else rename the daily log file first -<br />
mv access_log.*.gz log_$DATETIME.gz</p>
<p># Now lets gunzip it<br />
gunzip log_$DATETIME.gz</p>
<p># Time to chmod for so right permissions come over to Windows<br />
chmod 777 log_$DATETIME</p>
<p>#Now put it on your Windows Share<br />
smbclient //YourServerName/Logs -UMyUserName%MyDomainName -W DomainName -c "prompt; mput log_$DATETIME; exit;"</p>
<p>exit 0</code></p>
<p>I still need to write some type of logging into the script incase there is an error. Also, there is a way to specify a encrypted file name for the password instead of having the password in your script, but I ended up changing the permission on the actual script file so only root could read it, root is the user running the cron job, so that should be enough security.</p>
<p><a href="http://sharethis.com/item?&wp=2.3.1&amp;publisher=24accfc2-4cf2-46ea-abf6-c137f8fa267d&amp;title=SMB+Files+from+Unix+to+Windows+2003+Share+Folder&amp;url=http%3A%2F%2Fwww.techtoolblog.com%2Farchives%2Fsmb-files-from-unix-to-windows-2003-share-folder">ShareThis</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.techtoolblog.com/archives/smb-files-from-unix-to-windows-2003-share-folder/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
