<?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>Blog of Ortz &#187; Gentoo</title>
	<atom:link href="http://ortz.org/tag/gentoo/feed/" rel="self" type="application/rss+xml" />
	<link>http://ortz.org</link>
	<description>The blog of Brian Ortiz aka Ortzinator, software developer, artist, and a swell guy.</description>
	<lastBuildDate>Tue, 27 Mar 2012 20:16:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>SVN Repository Creation Script (Gentoo)</title>
		<link>http://ortz.org/2008/11/13/svn-repository-creation-script-gentoo/</link>
		<comments>http://ortz.org/2008/11/13/svn-repository-creation-script-gentoo/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 05:07:32 +0000</pubDate>
		<dc:creator>Ortzinator</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>
		<guid isPermaLink="false">http://blog.ortz.org/?p=148</guid>
		<description><![CDATA[Another lazily written yet useful script I wrote for creating SVN repositories in Gentoo. This script is based on this great guide at Rockfloat. Could use some improvement, like another argument for the name of the user getting access to the repo&#8230; Again, apologies for the line wrapping&#8230; Fixed Code below the fold. #!/bin/bash #Copyright [...]]]></description>
			<content:encoded><![CDATA[<p>Another lazily written yet useful script I wrote for creating SVN repositories in Gentoo.</p>
<p>This script is based on <a href="http://www.rockfloat.com/howto/gentoo-subversion.html">this great guide at Rockfloat</a>.</p>
<p>Could use some improvement, like another argument for the name of the user getting access to the repo&#8230;</p>
<p><span style="text-decoration: line-through;"><em>Again, apologies for the line wrapping&#8230;</em></span><em> Fixed</em></p>
<p><em>Code below the fold.<br />
</em></p>
<p><span id="more-148"></span></p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;">#Copyright (c) 2008 Brian Ortiz &quot;Ortzinator&quot;</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#Permission is hereby granted, free of charge, to any person obtaining a copy</span>
<span style="color: #666666; font-style: italic;">#of this software and associated documentation files (the &quot;Software&quot;), to deal</span>
<span style="color: #666666; font-style: italic;">#in the Software without restriction, including without limitation the rights</span>
<span style="color: #666666; font-style: italic;">#to use, copy, modify, merge, publish, distribute, sublicense, and/or sell</span>
<span style="color: #666666; font-style: italic;">#copies of the Software, and to permit persons to whom the Software is</span>
<span style="color: #666666; font-style: italic;">#furnished to do so, subject to the following conditions:</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#The above copyright notice and this permission notice shall be included in</span>
<span style="color: #666666; font-style: italic;">#all copies or substantial portions of the Software.</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</span>
<span style="color: #666666; font-style: italic;">#IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span>
<span style="color: #666666; font-style: italic;">#FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE</span>
<span style="color: #666666; font-style: italic;">#AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span>
<span style="color: #666666; font-style: italic;">#LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,</span>
<span style="color: #666666; font-style: italic;">#OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN</span>
<span style="color: #666666; font-style: italic;">#THE SOFTWARE.</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$#</span> <span style="color: #660033;">-ne</span> <span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">then</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Exactly one argument required&quot;</span>
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-d</span> <span style="color: #ff0000;">&quot;/var/svn/repos/$1&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">then</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;ERROR: directory '<span style="color: #007800;">$dir</span>' already exists!&quot;</span>
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">else</span>
<span style="color: #c20cb9; font-weight: bold;">svnadmin</span> create <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>svn<span style="color: #000000; font-weight: bold;">/</span>repos<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$1</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Error 1&quot;</span>; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> apache:svnusers <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>svn<span style="color: #000000; font-weight: bold;">/</span>repos<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Error 2&quot;</span>; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #660033;">-R</span> g-w <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>svn<span style="color: #000000; font-weight: bold;">/</span>repos<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$1</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Error 3&quot;</span>; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #660033;">-R</span> g+rw <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>svn<span style="color: #000000; font-weight: bold;">/</span>repos<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$1</span><span style="color: #000000; font-weight: bold;">/</span>db <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Error 4&quot;</span>; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #660033;">-R</span> g+rw <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>svn<span style="color: #000000; font-weight: bold;">/</span>repos<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$1</span><span style="color: #000000; font-weight: bold;">/</span>locks <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Error 5&quot;</span>; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #c20cb9; font-weight: bold;">svn</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #c20cb9; font-weight: bold;">file</span>:<span style="color: #000000; font-weight: bold;">///</span>var<span style="color: #000000; font-weight: bold;">/</span>svn<span style="color: #000000; font-weight: bold;">/</span>repos<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$1</span><span style="color: #000000; font-weight: bold;">/</span>trunk <span style="color: #660033;">-m</span> <span style="color: #ff0000;">&quot;Create trunk directory&quot;</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Error 6&quot;</span>; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #c20cb9; font-weight: bold;">svn</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #c20cb9; font-weight: bold;">file</span>:<span style="color: #000000; font-weight: bold;">///</span>var<span style="color: #000000; font-weight: bold;">/</span>svn<span style="color: #000000; font-weight: bold;">/</span>repos<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$1</span><span style="color: #000000; font-weight: bold;">/</span>tags <span style="color: #660033;">-m</span> <span style="color: #ff0000;">&quot;Create tags directory&quot;</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Error 7&quot;</span>; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #c20cb9; font-weight: bold;">svn</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #c20cb9; font-weight: bold;">file</span>:<span style="color: #000000; font-weight: bold;">///</span>var<span style="color: #000000; font-weight: bold;">/</span>svn<span style="color: #000000; font-weight: bold;">/</span>repos<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$1</span><span style="color: #000000; font-weight: bold;">/</span>branches <span style="color: #660033;">-m</span> <span style="color: #ff0000;">&quot;Create branches directory&quot;</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Error 8&quot;</span>; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;[$1:/]
* = r
brian = rw&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>svn<span style="color: #000000; font-weight: bold;">/</span>conf<span style="color: #000000; font-weight: bold;">/</span>svnpolicy
&nbsp;
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span>
<span style="color: #000000; font-weight: bold;">fi</span></pre></div></div>
]]></content:encoded>
			<wfw:commentRss>http://ortz.org/2008/11/13/svn-repository-creation-script-gentoo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache Vhost Creation Script (Gentoo)</title>
		<link>http://ortz.org/2008/11/13/apache-vhost-creation-script-gentoo/</link>
		<comments>http://ortz.org/2008/11/13/apache-vhost-creation-script-gentoo/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 05:00:46 +0000</pubDate>
		<dc:creator>Ortzinator</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[subdomain]]></category>
		<category><![CDATA[vhost]]></category>
		<guid isPermaLink="false">http://blog.ortz.org/?p=143</guid>
		<description><![CDATA[Well I decided to post more of the stuff I write even if I think it&#8217;s crappy&#8230;. So even though there&#8217;s probably a dozen like this and it could be a lot nicer, here&#8217;s the bash script I wrote to create new subdomains on my web server. Customize to fit your needs. My apologies for [...]]]></description>
			<content:encoded><![CDATA[<p>Well I decided to post more of the stuff I write even if I think it&#8217;s crappy&#8230;.</p>
<p>So even though there&#8217;s probably a dozen like this and it could be a lot nicer, here&#8217;s the bash script I wrote to create new subdomains on my web server. Customize to fit your needs.</p>
<p><span style="text-decoration: line-through;"><em>My apologies for the line wrapping.</em></span><em> </em><em>Fixed</em></p>
<p><em>Code below the fold</em><br />
<span id="more-143"></span></p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;">#Copyright (c) 2008 Brian Ortiz &quot;Ortzinator&quot;</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#Permission is hereby granted, free of charge, to any person obtaining a copy</span>
<span style="color: #666666; font-style: italic;">#of this software and associated documentation files (the &quot;Software&quot;), to deal</span>
<span style="color: #666666; font-style: italic;">#in the Software without restriction, including without limitation the rights</span>
<span style="color: #666666; font-style: italic;">#to use, copy, modify, merge, publish, distribute, sublicense, and/or sell</span>
<span style="color: #666666; font-style: italic;">#copies of the Software, and to permit persons to whom the Software is</span>
<span style="color: #666666; font-style: italic;">#furnished to do so, subject to the following conditions:</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#The above copyright notice and this permission notice shall be included in</span>
<span style="color: #666666; font-style: italic;">#all copies or substantial portions of the Software.</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</span>
<span style="color: #666666; font-style: italic;">#IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span>
<span style="color: #666666; font-style: italic;">#FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE</span>
<span style="color: #666666; font-style: italic;">#AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span>
<span style="color: #666666; font-style: italic;">#LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,</span>
<span style="color: #666666; font-style: italic;">#OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN</span>
<span style="color: #666666; font-style: italic;">#THE SOFTWARE.</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$#</span> <span style="color: #660033;">-ne</span> <span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">then</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Exactly one argument required&quot;</span>
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #007800;">dir</span>=<span style="color: #ff0000;">&quot;/var/www/$1&quot;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-d</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$dir</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">then</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;ERROR: directory '<span style="color: #007800;">$dir</span>' already exists!&quot;</span>
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">else</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Creating directory '<span style="color: #007800;">$dir</span>'&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #007800;">$dir</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Could not create directory '<span style="color: #007800;">$dir</span>'&quot;</span>; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Creating directory '<span style="color: #007800;">$dir</span>/htdocs'&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #007800;">$dir</span><span style="color: #000000; font-weight: bold;">/</span>htdocs  <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Could not create directory '<span style="color: #007800;">$dir</span>/htdocs'&quot;</span>; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Setting permissions...&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">chown</span> apache:htdocs <span style="color: #007800;">$dir</span>  <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Error setting permissions for '<span style="color: #007800;">$dir</span>'&quot;</span>; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #c20cb9; font-weight: bold;">chown</span> apache:htdocs <span style="color: #007800;">$dir</span><span style="color: #000000; font-weight: bold;">/</span>htdocs  <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Error setting permissions for '<span style="color: #007800;">$dir</span>/htdocs'&quot;</span>; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;
&nbsp;
Placeholder lol
&nbsp;
&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #007800;">$dir</span><span style="color: #000000; font-weight: bold;">/</span>htdocs<span style="color: #000000; font-weight: bold;">/</span>index.html
<span style="color: #c20cb9; font-weight: bold;">chown</span> brian:brian <span style="color: #007800;">$dir</span><span style="color: #000000; font-weight: bold;">/</span>htdocs<span style="color: #000000; font-weight: bold;">/</span>index.html  <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Error setting permissions for '<span style="color: #007800;">$dir</span>/htdocs/index.html'&quot;</span>; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #660033;">-R</span> <span style="color: #000000;">775</span> <span style="color: #007800;">$dir</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;
&nbsp;
ServerName $1.ortz.org
DocumentRoot /var/www/$1/htdocs
&nbsp;
Allow from all
AllowOverride all
Order allow,deny
&nbsp;
&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>vhosts.d<span style="color: #000000; font-weight: bold;">/</span>00_default_vhost.conf <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Could not add vhost to apache config!&quot;</span>; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Restarting apache.....&quot;</span>
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 restart <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Could not restart apache!&quot;</span>; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;All done!&quot;</span>
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span>
<span style="color: #000000; font-weight: bold;">fi</span></pre></div></div>
<p><strong>EDIT: Check out the improved version Blokkie posted in the comments.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://ortz.org/2008/11/13/apache-vhost-creation-script-gentoo/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Stuff</title>
		<link>http://ortz.org/2008/02/20/stuff/</link>
		<comments>http://ortz.org/2008/02/20/stuff/#comments</comments>
		<pubDate>Wed, 20 Feb 2008 17:15:54 +0000</pubDate>
		<dc:creator>Ortzinator</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[hard drive]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[PSU]]></category>
		<category><![CDATA[SATA]]></category>
		<guid isPermaLink="false">http://blog.ortz.org/2008/02/20/stuff/</guid>
		<description><![CDATA[One of those miscellaneous blog posts&#8230; So yesterday my fresh Windows installation on a new hard drive started freezing on me. Not only that, but I was getting write errors. (Little yellow popup in the corner saying Windows couldn&#8217;t write something to the hard drive.) I was afraid that it was dying, especially since a [...]]]></description>
			<content:encoded><![CDATA[<p>One of those miscellaneous blog posts&#8230;</p>
<p>So yesterday my fresh Windows installation on a new hard drive started freezing on me. Not only that, but I was getting write errors. (Little yellow popup in the corner saying Windows couldn&#8217;t write something to the hard drive.) I was afraid that it was dying, especially since <a href="http://www.newegg.com/Product/ProductReview.aspx?Item=N82E16822148136" target="_blank">a lot of the reviews</a> said things about the drive being DOA or dying shortly after installation. So, trying not to panic, I tried using different data and power cables. Which thankfully worked. But like an idiot, I switched out both at the same time so I don&#8217;t know which it was. I&#8217;m thinking it was the power cable though because it was using a whatever-to-SATA adapter, which I switched to my PSU&#8217;s only SATA power plug.</p>
<p>Also, the 200GB hard drive I had Linux installed on decided to jump on the death bandwagon and die too. Unlike the other hard drive that died, this one had things on it that I will miss. Although they are probably replaceable. So now I have to figure out how I want to install Linux. I&#8217;m thinking of trying out Ubuntu. I had Gentoo installed before. I like Gentoo, but it&#8217;s much better as a server than desktop because people don&#8217;t generally want to have to recompile their kernel when they decide to install a CD burner or the like. (I&#8217;m not saying it&#8217;s completely necessary, blah blah&#8230;) Some people just want it to work. And you can&#8217;t say I&#8217;m lazy cause my server runs Gentoo. <img src='http://ortz.org/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://ortz.org/2008/02/20/stuff/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

