<?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>semioticpixels scratch pad &#187; infrastructure</title>
	<atom:link href="http://www.semioticpixels.com/tag/infrastructure/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.semioticpixels.com</link>
	<description></description>
	<lastBuildDate>Sun, 23 May 2010 20:07:32 +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>bash settings on Mac Snow Leopard</title>
		<link>http://www.semioticpixels.com/2010/01/bash-settings-on-mac-snow-leopard/</link>
		<comments>http://www.semioticpixels.com/2010/01/bash-settings-on-mac-snow-leopard/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 09:51:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[crib notes]]></category>
		<category><![CDATA[linux server administration]]></category>
		<category><![CDATA[development environment]]></category>
		<category><![CDATA[infrastructure]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://www.semioticpixels.com/?p=193</guid>
		<description><![CDATA[I&#8217;ve been slowly migrating from my desktop to my laptop so I&#8217;ve been setting it up piecemeal.
Bash (Terminal) File and Directory Colors
I do a lot of work within Terminal and not having directory and file coloring drives me nuts after a while.  To add colors
cd ~/
vi .bash_profile

add

export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad

reload it by typing (in Terminal)
 [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been slowly migrating from my desktop to my laptop so I&#8217;ve been setting it up piecemeal.</p>
<h3>Bash (Terminal) File and Directory Colors</h3>
<p>I do a lot of work within Terminal and not having directory and file coloring drives me nuts after a while.  To add colors</p>
<pre>cd ~/
vi .bash_profile
</pre>
<p>add<br />
<code><br />
export CLICOLOR=1<br />
export LSCOLORS=ExFxCxDxBxegedabagacad<br />
</code></p>
<p>reload it by typing (in Terminal)<br />
<code> source ~/.bash_profile</code></p>
<p>close out Terminal then start a new Terminal session. Do an <code>ls</code> and directories and files should now have color.  A more in-depth explanation is listed below in &#8220;references&#8221;</p>
<h3>References</h3>
<p><a href="http://www.geekology.co.za/blog/2009/04/enabling-bash-terminal-directory-file-color-highlighting-mac-os-x/">adding file and directory colors to Terminal</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.semioticpixels.com/2010/01/bash-settings-on-mac-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>$PATH settings on Mac Snow Leopard</title>
		<link>http://www.semioticpixels.com/2010/01/path-settings-on-mac-snow-leopard/</link>
		<comments>http://www.semioticpixels.com/2010/01/path-settings-on-mac-snow-leopard/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 09:47:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[crib notes]]></category>
		<category><![CDATA[linux server administration]]></category>
		<category><![CDATA[development environment]]></category>
		<category><![CDATA[infrastructure]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://www.semioticpixels.com/?p=205</guid>
		<description><![CDATA[Managing Paths
The problem with setting up an environment piecemeal is when you sit down to do something, you have to figure out what rabbit hole you&#8217;d gone down when you left off.  In this case, I remembered installing mysql, but usually the last thing I do when I install mysql is install phpmyadmin because [...]]]></description>
			<content:encoded><![CDATA[
<h3>Managing Paths</h3>
<p>The problem with setting up an environment piecemeal is when you sit down to do something, you have to figure out what rabbit hole you&#8217;d gone down when you left off.  In this case, I remembered installing mysql, but usually the last thing I do when I install mysql is install phpmyadmin because it&#8217;s such a handy productivity tool.  Well, there was no phpmyadmin on my system, but that could be because Snow Leopard came with PHP 5.3 out of the box which is incompatible with most of the popular PHP web applications out there.  </p>
<p>Anyhoo &#8230; so I started by checking my $PATH variable and was surprised by the output.</p>
<p><code>echo $PATH</code> gave me duplicates of /usr/local and /opt/local et. al. and had stuff in it that wasn&#8217;t in my ~/.profile </p>
<p>my ~/.profile had the following in it:<br />
<code><br />
export PATH=/usr/local/sbin:/usr/local/mysql/bin:$PATH<br />
##<br />
# Your previous /Users/username/.profile file was backed up as /Users/username/.profile.macports-saved_2009-12-29_at_11:21:58<br />
##<br />
# MacPorts Installer addition on 2009-12-29_at_11:21:58: adding an appropriate PATH variable for use with MacPorts.<br />
export PATH=/opt/local/bin:/opt/local/sbin:$PATH<br />
# Finished adapting your PATH environment variable for use with MacPorts.<br />
</code></p>
<p>and the second entry made by MacPorts was overriding the first entry.</p>
<p>Pretty funky. </p>
<h3>TheTao of Path Variables</h3>
<ol>
<li>/etc/profile is the default startup script for Bash, which is what I&#8217;m using. (If you&#8217;re using a different shell, then you may have a different startup script).  /etc/profile calls /usr/libexec/path_helper</li>
<li>path_helper first calls /etc/path and /etc/manpath which contain the initial path environment variables. /etc/path contains system-wide defaults:<br />
<code>/usr/bin<br />
/bin<br />
/usr/sbin<br />
/sbin<br />
/usr/local/bin<br />
</code></p>
<li>path_helper then looks for files in the directories: /etc/paths.d and  /etc/manpaths.d and appends the paths found there. On my system, /etc/paths.d and /etc/manpaths.d contain a file named X11 which simply contains the paths for X11.</li>
<li>After /etc/profile has called path_helper, it then looks for /etc/.bashrc.  I have a bashrc (no &#8220;.&#8221;), but my bashrc only has stuff in it specifying the bash shell prompt (<code>name-of-my-computer:directory username$</code>) </li>
<li>Bash next looks for ~/.bash_profile.  This is the file where you&#8217;ll <a href="http://www.semioticpixels.com/2010/01/bash-settings-…c-snow-leopard/">set file and directory colors</a> and could also be where you place your Path environment variables. Obviously, ~/ represents your user directory, so your settings will only be valid for your user.</li>
<li>Next, bash looks for ~/.bash_login. I don&#8217;t have this on my system so it&#8217;s ignored in my case</li>
<li>next, bash looks for ~/.profile which I <em>did</em> have on my system and is the file that XCode wrote to.  </li>
</ol>
<p>Another file that can contain path variables is ~/.MacOSX/environment.plist. This sets environment variables, including paths, for gui applications.  I&#8217;m not using it on my system so don&#8217;t have anything to say about it. </p>
<h3>Recap</h3>
<p>So, what that all means is that instead of exporting PATH environment variables to a .profile or .bash_profile in a user account directory, you (or your application) can, instead, make PATHs global by adding text files to the /etc/paths.d and /etc/manpaths.d directories.  </p>
<p>If you need to control the order of a path, then try this:<br />
 Add a line PATH=&#8221;" before the call to path_helper like this in /etc/profile:<br />
<code><br />
if [ -x /usr/libexec/path_helper ]; then<br />
        PATH=""<br />
        eval `/usr/libexec/path_helper -s`<br />
fi<br />
</code></p>
<p>All that said and done &#8230; I&#8217;ll continue using ~/.bash_profile because it&#8217;s got that warm fuzzy familiarity.  Personal preference, as always.</p>
<h3>References</h3>
<p><a href="http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man8/path_helper.8.html">man page for path_helper</a><br />
<a href="http://www.opensource.apple.com/source/shell_cmds/shell_cmds-149/path_helper/path_helper.8>description of path_helper </a><br />
<a href="http://littlesquare.com/2008/01/24/upgraded-to-leopard-making-use-of-etcpathsd-and-path_helper/">making use of paths.d</a><br />
<a href="http://www.softec.st/en/OpenSource/DevelopersCorner/MasteringThePathHelper.html">mastering the path_helper</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.semioticpixels.com/2010/01/path-settings-on-mac-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rsync over ssh</title>
		<link>http://www.semioticpixels.com/2010/01/rsync-over-ssh/</link>
		<comments>http://www.semioticpixels.com/2010/01/rsync-over-ssh/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 19:29:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[crib notes]]></category>
		<category><![CDATA[data security]]></category>
		<category><![CDATA[linux server administration]]></category>
		<category><![CDATA[backups]]></category>
		<category><![CDATA[infrastructure]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.semioticpixels.com/?p=174</guid>
		<description><![CDATA[Rysnc from 1 linux box to another and keep the file structure identical
Delete files from the target directory that have been deleted in the source directory
rsync -avz -e ssh --delete  remoteuser@remotehost:/remote/dir/ /this/dir/
Note: the ending {/} is important if you don&#8217;t want to hose a directory.  
Backup a website on a linux box to [...]]]></description>
			<content:encoded><![CDATA[<h3>Rysnc from 1 linux box to another and keep the file structure identical</h3>
<p>Delete files from the target directory that have been deleted in the source directory<br />
<code>rsync -avz -e ssh --delete  remoteuser@remotehost:/remote/dir/ /this/dir/</code></p>
<p><em>Note:</em> the ending {/} is important if you don&#8217;t want to hose a directory.  </p>
<h3>Backup a website on a linux box to your windows machine</h3>
<p>rsync reads &#8220;:&#8221; in a filepath as a remote directory, so if you&#8217;re trying to rsync to &#8220;c://&#8221; rsync will be confused.  Instead of using windows syntax for filepaths, use the cygwin directory structure.</p>
<ol>
<li><a href="http://www.cygwin.com/cygwin-ug-net/setup-net.html">Install cygwin</a> to windows</li>
<li>test rsync and ssh are installed by typing from within the cygwin terminal:<br />
<code>rsync --version</code><br />
<code>ssh -l username somedomain</code>
</li>
<li>create a directory in c://cygwin named backups or whatever you want to call it.</li>
<li><code>rsync -avz -e ssh --delete  remoteuser@remotehost:/remote/dir/ /cygdrive/c/directoryname</code> Change the directory drive to whatever it should be</li>
</ol>
<h3>references</h3>
<p><a href="http://troy.jdmz.net/rsync/index.html">rsync over ssh</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.semioticpixels.com/2010/01/rsync-over-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>open ssl upgrade from ssl 2 -&gt; ssl 3</title>
		<link>http://www.semioticpixels.com/2009/10/open-ssl-upgrade-from-ssl-2-ssl-3/</link>
		<comments>http://www.semioticpixels.com/2009/10/open-ssl-upgrade-from-ssl-2-ssl-3/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 17:18:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PCI compliance]]></category>
		<category><![CDATA[linux server administration]]></category>
		<category><![CDATA[infrastructure]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://www.semioticpixels.com/?p=74</guid>
		<description><![CDATA[I inherited a number of web servers that had been installed and configured by different contractors and am now in the process of evaluating what needs to happen to bring them all up to snuff as well as figuring out ways to streamline regular updates.   Some of those web servers are still on [...]]]></description>
			<content:encoded><![CDATA[<p>I inherited a number of web servers that had been installed and configured by different contractors and am now in the process of evaluating what needs to happen to bring them all up to snuff as well as figuring out ways to streamline regular updates.   Some of those web servers are still on Red 7.3 (!), the last free open source version of Red Hat.  They&#8217;re quite old in server years.  Additionally I have a few other servers I set up a year ago that are more up-to-date running Ubuntu 8 LTS, but the Apache version is 2.2.11 and 2.2.8.  Our security scanning service notifies me regularly that SSL v 2 must be upgraded to SSL v3, which requires an upgrade to Apache 2.2.13</p>
<h3>Environment:</h3>
<p>Apache 1.3.29</p>
<h3>References:</h3>
<p><a href="http://apachehacker.com/kabir/security/disabling-weak-ssl-v2-support-in-apache-server.html">How to Disable SSL v 2 support in Apache</a></p>
<p>On Aug 10, 2009, Apache released an upgrade that addresses a DOS vulnerability.</p>
<p>server:</p>
<pre>/usr/local/apache2/bin/httpd -v
# Server version: Apache/2.2.11 (Unix)
# Server built:   Jan 15 2009 13:39:20</pre>
<p>dev server:</p>
<pre>/usr/sbin/apache2 -v</pre>
<h3>Issues</h3>
<ol>
<li>caused 401 error for all http requests (worked correctly for https connections) <a href="http://forums.cpanel.net/f5/apache-2-2-13-upgrade-breaks-site-127817.html">source</a></li>
<li>Seem to be some issues with mac version &#8211; It&#8217;s unclear whether this is an issue with a pre-compiled mac version or a generic self-compiled (which should be identical to the linux version) <a href="http://diymacserver.com/">source</a></li>
</ol>
<h3>Dev Server Tests</h3>
<p>Ran apt-get update and apt-get upgrade on dev server</p>
<p>ran apt-get upgrade apache2 and message returned says that 2.2.8 is the current version.  Which means my dev and my production servers are out of sync. I was surprised to learn that the last contractor from whom I took over server management had installed from source, removing Apache from package management. Not a big deal really, but it was undocumented.</p>
<p>In any case, there doesn&#8217;t appear to be a package release for Apache 2.2.13 yet in Ubuntu.  Only one of the 4 bugfixes has a security bulletin attached, so I&#8217;ve decided to wait a few weeks to see if anything new transpires in the security bulletins.  In general, I prefer to wait on updating production servers until a new release has been out long enough for bugfixes to be released.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.semioticpixels.com/2009/10/open-ssl-upgrade-from-ssl-2-ssl-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>redesigning your own website</title>
		<link>http://www.semioticpixels.com/2008/01/redesigning-your-own-website/</link>
		<comments>http://www.semioticpixels.com/2008/01/redesigning-your-own-website/#comments</comments>
		<pubDate>Fri, 18 Jan 2008 17:59:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[website design]]></category>
		<category><![CDATA[infrastructure]]></category>

		<guid isPermaLink="false">http://www.semioticpixels.com/?p=34</guid>
		<description><![CDATA[In January, 2008 we finally redesigned our website. It was long overdue.  As a matter of fact, neglecting our own sites is so common a problem amongst web developers, that some folks started up Design Deadline which offers a public review of the redesign, which we participated in.
Redesigning your own website is a little [...]]]></description>
			<content:encoded><![CDATA[<p>In January, 2008 we finally redesigned our website. It was long overdue.  As a matter of fact, neglecting our own sites is so common a problem amongst web developers, that some folks started up <a href="http://blog.designdeadline.com/">Design Deadline</a> which offers a public review of the redesign, which we participated in.</p>
<p>Redesigning your own website is a little different from redesigning someone else&#8217;s.  It&#8217;s easy to get bogged down in minor details and obsess over all the little things that no one else really cares about. I think our own challenges with this redesign were not so different from the challenges some of our clients face.</p>
<ul>
<li>Hurdle 1: To rebrand or not to rebrand otherwise known as &#8220;Do we have all the pieces? Are they the right pieces?&#8221;.<br />
Our business name is hard for people to pronounce and spell and few people know what &#8220;<a href="http://en.wikipedia.org/wiki/Semiotics%3Esemiotics%3C/a%3E">semiotics</a>&#8221; is. Semiotics isn&#8217;t a good candidate topic for an elevator pitch. Our discussions about redesign became cyclical discussions about rebranding. We finally decided that the name does actually describe what we do and we could live with it a little longer.<br />
Moving On.</li>
<li>Hurdle 2: Design for Visitors vs. Design for Ourselves<br />
That&#8217;s a no-brainer in any redesign process &#8230;. websites exist for visitors to use.  But, when designing your own website there are no external checks and balances. Without a reporting schedule, it  takes self discipline to stick to priorities. At one point during this process, I started obsessing over <a href="http://microformats.org" title="microformats">microformats</a> and whether microformats were appropriate to non-blog pages that aren&#8217;t reviews &#8230;.  interesting but not high on the priorities list and I&#8217;ll wager that very few of our visitors care about microformats.  Those that do care didn&#8217;t look until they read this.</li>
<li> Hurdle 3: Decoupling the end product from the need to make it a fun learning process (in other words &#8230; get a handle on the <a href="http://www.randsinrepose.com/archives/2003/07/10/nadd.html">NADD</a>)<br />
This is another reason web developers don&#8217;t get around to updating their own sites. We explore newish technologies and techniques and give ourselves permission to do so by declaring we&#8217;re &#8220;rebuilding the dusty old website finally&#8221;.<br />
What ends up happening is the new technology or technique is underwhelming, or it&#8217;s overkill, or it takes forever to learn and then the best practices change so frequently we can&#8217;t keep up, the trend changes before we finish and we&#8217;re too embarrassed to go live with a now-outdated trend that looks like every other I-read-about-that-yesterday website, or it plain doesn&#8217;t work. It&#8217;s never really good enough &#8230; and the challenge is get  call it &#8220;good enough&#8221; without scratching your eyes out<br />
Really, the core of our website is just have a few pages and a blog. </li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.semioticpixels.com/2008/01/redesigning-your-own-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
