<?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>NONparametrics &#187; HOWTO</title>
	<atom:link href="http://nonparametrics.com/category/howto/feed/" rel="self" type="application/rss+xml" />
	<link>http://nonparametrics.com</link>
	<description>geekdom without assumption</description>
	<lastBuildDate>Thu, 15 Oct 2009 23:09:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>man with a mirror</title>
		<link>http://nonparametrics.com/2007/11/07/man-with-a-mirror/</link>
		<comments>http://nonparametrics.com/2007/11/07/man-with-a-mirror/#comments</comments>
		<pubDate>Wed, 07 Nov 2007 15:46:54 +0000</pubDate>
		<dc:creator>Bryan</dc:creator>
				<category><![CDATA[HOWTO]]></category>
		<category><![CDATA[apt]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://nonparametrics.com/?p=21</guid>
		<description><![CDATA[I&#8217;m sure that you&#8217;ve all heard me sing the glories of Linux at some point, and probably most of you know that I run Ubuntu (among other OSes). I&#8217;m constantly impressed by the relative ease of use and how quickly it is continually improving. I&#8217;ve got 7.04 (Feisty Fawn) running on 5 machines at the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sure that you&#8217;ve all heard me sing the glories of Linux at some point, and probably most of you know that I run <a href="http://www.ubuntu.com" target="_blank">Ubuntu</a> (among other OSes). I&#8217;m constantly impressed by the relative ease of use and how quickly it is continually improving. I&#8217;ve got 7.04 (Feisty Fawn) running on 5 machines at the moment, and I&#8217;ve been wanting to upgrade to 7.10 (Gutsy Gibbon) since it came out a few weeks ago; I just haven&#8217;t had the time to add a new hard drive to my apt-mirror machine. BTW, any of you really geeky fellows who run Ubuntu on more than two machines, <a href="http://apt-mirror.sourceforge.net">apt-mirror</a> is well worth the effort and bandwidth (if you have it).</p>
<p>It takes all of about 10 minutes to set up, and about 12-72 hours to download the packages. Once it&#8217;s done, your updates and installs will happen in seconds, since the downloads are only limited by your local LAN. With my sources enabled (all of the official and community repos on the ubuntu mirror plus the wineHQ one) it was a 37 gig download. Assuming you have a running web server, all it takes is:</p>
<p><code>sudo apt-get install apt-mirror</code></p>
<p>After the install, open up your mirror.list and replace the lines that start with deb with the similar ones in your sources.list. here is mine:</p>
<p><code>sudo vim /etc/apt/mirror.list</code></p>
<blockquote><p>############# config ##################<br />
#<br />
# set base_path    /var/spool/apt-mirror<br />
#<br />
# if you change the base path you must create the directories below with write privlages<br />
#<br />
# set mirror_path  $base_path/mirror<br />
# set skel_path    $base_path/skel<br />
# set var_path     $base_path/var<br />
# set cleanscript $var_path/clean.sh<br />
# set defaultarch<br />
set nthreads     20<br />
set tilde 0<br />
#<br />
############# end config ##############</p>
<p>deb http://us.archive.ubuntu.com/ubuntu/ feisty main restricted<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ feisty main restricted</p>
<p>deb http://us.archive.ubuntu.com/ubuntu/ feisty-updates main restricted<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ feisty-updates main restricted</p>
<p>deb http://us.archive.ubuntu.com/ubuntu/ feisty universe<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ feisty universe</p>
<p>deb http://us.archive.ubuntu.com/ubuntu/ feisty multiverse<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ feisty multiverse</p>
<p>deb http://security.ubuntu.com/ubuntu feisty-security main restricted<br />
deb-src http://security.ubuntu.com/ubuntu feisty-security main restricted<br />
deb http://security.ubuntu.com/ubuntu feisty-security universe<br />
deb-src http://security.ubuntu.com/ubuntu feisty-security universe<br />
deb http://security.ubuntu.com/ubuntu feisty-security multiverse<br />
deb-src http://security.ubuntu.com/ubuntu feisty-security multiverse</p>
<p>clean http://us.archive.ubuntu.com/ubuntu</p></blockquote>
<p>After that you just need to run the mirror updating command&#8230;<br />
<code>sudo su - apt-mirror -c apt-mirror</code><br />
&#8230;and wait for several hours. Or days.</p>
<p>Once it has completed the first run, you can go into /etc/cron.d/apt-mirror and uncomment the line in there to make it run on it&#8217;s own every day.</p>
]]></content:encoded>
			<wfw:commentRss>http://nonparametrics.com/2007/11/07/man-with-a-mirror/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ssl and virtual hosts in apache 2</title>
		<link>http://nonparametrics.com/2007/05/10/ssl-and-virtual-hosts-in-apache-2/</link>
		<comments>http://nonparametrics.com/2007/05/10/ssl-and-virtual-hosts-in-apache-2/#comments</comments>
		<pubDate>Thu, 10 May 2007 08:58:11 +0000</pubDate>
		<dc:creator>Bryan</dc:creator>
				<category><![CDATA[HOWTO]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[virtual hosts]]></category>

		<guid isPermaLink="false">http://nonparametrics.com/?p=27</guid>
		<description><![CDATA[I purchased a third-party signed certificate for one of our sites to get rid of the annoying security warnings. There are a dozen sites running on the server, so I have been using named virtual hosts in apache in order to avoid wasting valuable ips. I went through the whole exciting process of generating the [...]]]></description>
			<content:encoded><![CDATA[<p>I purchased a <a title="DigiCert SSL Certificates" href="http://www.digicert.com">third-party</a> signed certificate for one of our sites to get rid of the annoying security warnings. There are a dozen sites running on the server, so I have been using named virtual hosts in apache in order to avoid wasting valuable ips. I went through the whole exciting process of generating the cert <a title="Simple HOWTO for Generating the request with openssl" href="http://support.serve.com/index.php?_m=knowledgebase&amp;_a=viewarticle&amp;kbarticleid=57" target="_blank">request</a> in openssl, verifying the <a title="A whois Lookup For bryanjeffrey.com" href="http://www.whois.net/whois_new.cgi?d=bryanjeffrey&amp;tld=com">whois</a> records, and sending in proof that we own the name and that we are who we say we are. The process was relatively painless while still showing that they due their due diligence to assure proper authentication. At any rate, I had my certificate within a couple of hours, thinking that this was all to easy.</p>
<p>With the files in hand, I opened up my httpd.conf to replace my self-signed certs with the real deal. I made the changes and restarted the server, only to find that the old certificate was still being used. At first I thought that the issue was in reloading the .conf file, but that proved not to be true after a reboot. I started googling to see what could be wrong, only to learn that name-based virtual hosting and SSL do not mix. Apparently the <a title="In-depth article on how SSL works" href="http://www.cisco.com/en/US/netsol/ns340/ns394/ns50/ns140/networking_solutions_white_paper09186a0080136858.shtml">SSL</a> handshake occurs before the http headers with the hostname (which is how Apache knows what page to serve you) so that you can only use one SSL cert per IP address.</p>
<p>I made myself another latte and sat down to figure the damage on switching everything over to ip-based hosting. Running Linux makes it trivial to use multiple ip addresses on one network card (I don&#8217;t know of any limit), but I was afraid I would run short on leased ips. After scanning half a dozen sites with bits and pieces about ip virtual on Apache, it dawned on me that I might be able to run both name-based and IP-based on the same daemon. I&#8217;m sure why I assumed I couldn&#8217;t (maybe because almost every howto contains something to the effect of &#8220;Name-Based vs. IP-Based&#8221; in the title), but the revelation was a cheering thought.</p>
<p>After backing up my old httpd.conf, I changed the virtual server in question to a <a title="A page detailing the &lt;VirtualHost&gt; section for both types" href="http://www.apacheweek.com/features/vhost">IP based one</a> (leaving the others in tact). A quick change in the DNS A records and I was ready to test it out. To my delight, everything worked as it should. Anyone who can read this&#8211;and comprehend it&#8211;knows that it&#8217;s never that easy, but lucky for me it was.</p>
<p>The power and flexibility of the <a title="Linux, Apache, MySQL, PHP" href="http://en.wikipedia.org/wiki/LAMP_%28software_bundle%29">LAMP</a> stack continues to amaze me. No matter how messy the situation is, this winning combination will deliver in spades. It is no wonder that so many organizations use it.</p>
]]></content:encoded>
			<wfw:commentRss>http://nonparametrics.com/2007/05/10/ssl-and-virtual-hosts-in-apache-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
