<?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>newthink.net &#187; Linux</title>
	<atom:link href="http://www.newthink.net/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.newthink.net</link>
	<description>Less Talk. More Do.</description>
	<lastBuildDate>Tue, 26 Jan 2010 18:28:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>fcgi and mod_fcgid on CentOS4</title>
		<link>http://www.newthink.net/2008/03/09/fcgi-and-mod_fcgid-on-centos4/</link>
		<comments>http://www.newthink.net/2008/03/09/fcgi-and-mod_fcgid-on-centos4/#comments</comments>
		<pubDate>Mon, 10 Mar 2008 00:27:25 +0000</pubDate>
		<dc:creator>Ash Christopher</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[RPM]]></category>

		<guid isPermaLink="false">http://newthink.net/blog/2008/03/09/fcgi-and-mod_fcgid-on-centos4/</guid>
		<description><![CDATA[I decided recently that I wanted to be able to run Ruby on Rails applications from my webserver. For those who don&#8217;t know me, RPM database integrity is a huge issue for me (I do not just install from source on my server!).
Since I had some time this weekend, I decided it was about time [...]]]></description>
			<content:encoded><![CDATA[<p>I decided recently that I wanted to be able to run Ruby on Rails applications from my webserver. For those who don&#8217;t know me, RPM database integrity is a huge issue for me (I do not just install from source on my server!).</p>
<p>Since I had some time this weekend, I decided it was about time I rolled some RPM&#8217;s so I could run Rails. Of course, it being over two years since I was last rolling RPM&#8217;s for work at Pason, it took me a bit to get back in the swing of things.</p>
<p>I followed the <a href="http://wiki.rubyonrails.org/rails/pages/Rails+on+CentOS+4.6+with+Apache+and+FastCGI+Simply">guide</a> found via the Ruby on Rails wiki, and modified it a bit for my server. The two main pieces of software that needed RPM&#8217;s were fastCGI and mod_fcgid (slightly different than mod_fastcgid).</p>
<p>Below you can download the RPM&#8217;s and the SRPM&#8217;s though I will be the first to acknowledge that I cheated a bit. I should have modified the Makefile on each of these programs to make use of an install_dir directive, but since I was building on a clean CentOS4.6 vmware OS, I decided not to go through the hassle. If someone really wants to do it properly, have at it &#8211; that&#8217;s what SRPMS are for.</p>
<p><strong>RPMS:</strong><br />
<a href="http://www.newthink.net/files/mod_fcgid-1.09-1.i386.rpm">mod_fcgid-1.09-1.i386.rpm</a><br />
<a href="http://www.newthink.net/files/fcgi-2.4.0-1.i386.rpm">fcgi-2.4.0-1.i386.rpm</a></p>
<p><strong>SRPMS:</strong><br />
<a href="http://www.newthink.net/files/mod_fcgid-1.09-1.src.rpm">mod_fcgid-1.09-1.src.rpm</a><br />
<a href="http://www.newthink.net/files/fcgi-2.4.0-1.src.rpm">fcgi-2.4.0-1.src.rpm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.newthink.net/2008/03/09/fcgi-and-mod_fcgid-on-centos4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running Subversion From xinetd</title>
		<link>http://www.newthink.net/2007/11/29/running-subversion-from-xinetd/</link>
		<comments>http://www.newthink.net/2007/11/29/running-subversion-from-xinetd/#comments</comments>
		<pubDate>Thu, 29 Nov 2007 21:45:34 +0000</pubDate>
		<dc:creator>Ash Christopher</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Subversion]]></category>

		<guid isPermaLink="false">http://newthink.net/blog/2007/11/29/running-subversion-from-xinetd/</guid>
		<description><![CDATA[Now that we have Subversion installed on our server, we really need some way to have it always available. We could run subversion in daemon mode but we would have to write init.d scripts which can get rather complex (especially if you are writing one properly, and not just hacking one together).
Instead, we will add [...]]]></description>
			<content:encoded><![CDATA[<p>Now that we have Subversion installed on our server, we really need some way to have it always available. We could run subversion in daemon mode but we would have to write init.d scripts which can get rather complex (especially if you are writing one properly, and not just hacking one together).</p>
<p>Instead, we will add subversion to xinetd. The benefit of this is that subversion is only running when we need access to the repository rather than running all the time. By default, subversion is not set up in xinetd, so the following is how I set it up:</p>
<p>First make sure that xinetd is installed.<br />
<code><br />
# yum install xinetd<br />
</code><br />
Next we want to add the following to our /etc/xinetd.d/svnserve<br />
<code><br />
# default: off<br />
# description: svnserve is the server part of Subversion.<br />
service svn<br />
{<br />
&nbsp;&nbsp;disable	= no<br />
&nbsp;&nbsp;port	= 3690<br />
&nbsp;&nbsp;socket_type   = stream<br />
&nbsp;&nbsp;protocol      = tcp<br />
&nbsp;&nbsp;wait          = no<br />
&nbsp;&nbsp;user          = root<br />
&nbsp;&nbsp;server        = /usr/bin/svnserve<br />
&nbsp;&nbsp;server_args   = -i -r /svn<br />
}<br />
</code><br />
Finally, lets restart xinetd:<br />
<code><br />
/etc/init.d/xinetd restart<br />
</code><br />
Now xinetd will start the subversion repository server every time a subversion request is made.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newthink.net/2007/11/29/running-subversion-from-xinetd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Up Subversion On Fedora 8</title>
		<link>http://www.newthink.net/2007/11/28/setting-up-subversion-on-fedora-8/</link>
		<comments>http://www.newthink.net/2007/11/28/setting-up-subversion-on-fedora-8/#comments</comments>
		<pubDate>Wed, 28 Nov 2007 22:14:59 +0000</pubDate>
		<dc:creator>Ash Christopher</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Subversion]]></category>

		<guid isPermaLink="false">http://newthink.net/blog/2007/11/28/setting-up-subversion-on-fedora-8/</guid>
		<description><![CDATA[After fighting with the corporate firewall (ssh tunnels were not successfully able to navigate to a SVN repo on a shared host) I decided I should set subversion up on my home server. Since I am a little paranoid about throwing caution to the wind with regard to server changes, I decided to set it [...]]]></description>
			<content:encoded><![CDATA[<p>After fighting with the corporate firewall (ssh tunnels were not successfully able to navigate to a SVN repo on a shared host) I decided I should set subversion up on my home server. Since I am a little paranoid about throwing caution to the wind with regard to server changes, I decided to set it up on my Fedora 8 vmware partition.</p>
<p>Here was my process.<br />
<code><br />
# yum install subversion<br />
</code><br />
Ok, that was pretty easy. I now have subversion installed on my system; both from a client and user&#8217;s perspective. Next I need to create a subversion repository location on my disk (/svn can be replaced with any location on your server).<br />
<code><br />
# svnadmin create /svn<br />
</code><br />
In /svn/conf/passwd add the following (it is in plaintext, but I am sure there is an encrypted solution):<br />
<code><br />
[users]<br />
achristopher = <em>some secret, yet plaintext password</em><br />
</code><br />
In the /svn/conf/svnserve.conf, you should set the following:<br />
<code><br />
[general]<br />
anon-access = read<br />
auth-access = write</p>
<p>password-db = passwd</p>
<p>realm = Test Repo<br />
</code><br />
There, our subversion repository has been set up. Now all we have to do is start the subversion daemon.<br />
<code><br />
# svnserv -r /svn -d<br />
</code><br />
We can test the subversion repo:<br />
<code><br />
# mkdir /tmp/test</p>
<p># svn import /tmp/test svn://localhost/svn/test -m "Initial creation."<br />
Committed revision 1.</p>
<p># svnlook tree /svn<br />
/<br />
 svn/<br />
  test/<br />
</code><br />
We have just added a directory to our subversion repository. Now lets checkout this project, and get to work:<br />
<code><br />
# rm -Rf /tmp/test<br />
# svn checkout svn://localhost/svn/test<br />
Checked out revision 1.<br />
</code></p>
<p>I cheated a little there, because I had entered my password before I created this posting, so you can expect to see something like the following:<br />
<code><br />
Authentication realm: <svn ://localhost:3690> Test Repo<br />
Password for 'achristopher':<br />
</svn></code><br />
Just enter your password (the one entered in plain text above) and continue working.</p>
<p><strong>To follow: How to set subversion to work with xinetd (it isnt that exciting, but definitely new post worthy).</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.newthink.net/2007/11/28/setting-up-subversion-on-fedora-8/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>SMARTHOST Authentication With Sendmail</title>
		<link>http://www.newthink.net/2007/05/18/smarthost-authentication-with-sendmail/</link>
		<comments>http://www.newthink.net/2007/05/18/smarthost-authentication-with-sendmail/#comments</comments>
		<pubDate>Fri, 18 May 2007 13:10:15 +0000</pubDate>
		<dc:creator>Ash Christopher</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Sendmail]]></category>
		<category><![CDATA[SMTP]]></category>

		<guid isPermaLink="false">http://newthink.net/blog/2007/05/18/smarthost-authentication-with-sendmail/</guid>
		<description><![CDATA[Rogers, one of Canada&#8217;s biggest ISP&#8217;s has this nasty habit of making life difficult for it&#8217;s customers. First they throttle BitTorrent traffic, and now in an attempt to curb spam, they block all outbound connections from port 25.
While this may not seem like a huge deal to most users, what this means is that you [...]]]></description>
			<content:encoded><![CDATA[<p>Rogers, one of Canada&#8217;s biggest ISP&#8217;s has this nasty habit of making life difficult for it&#8217;s customers. First they throttle BitTorrent traffic, and now in an attempt to curb spam, they block all outbound connections from port 25.</p>
<p>While this may not seem like a huge deal to most users, what this means is that you can&#8217;t connect to any other mail server when attempting to send emails because Rogers has blocked access. Jenna can&#8217;t send emails using her McMaster email from a Rogers account.</p>
<p>When I initially looked at setting up Internet, this was the first question I asked Rogers. They assured me that traffic shaping was the only limitation they put on the account. The customer service agent assured me that their literature even mentions this. Their literature is wrong.</p>
<p>As a way around this problem, you are going to want to set up a SMARTHOST on a linux box within the home network which is attached to the Rogers connection.</p>
<p>I did some testing and determined that Rogers doesn&#8217;t block all traffic over port 25, but only traffic that isn&#8217;t going to a Rogers controlled mail server.</p>
<p><code><br />
9:44 ash@galactica:[~]&gt; telnet smtp.broadband.rogers.com 25<br />
Trying 206.190.36.18...<br />
Connected to smtp.broadband.rogers.com (206.190.36.18).<br />
Escape character is '^]'.<br />
220 smtp107.rog.mail.re2.yahoo.com ESMTP<br />
</code></p>
<p>What we can do now, is set up a SMARTHOST in sendmail to basically forward emails from the server to Rogers SMTP server, then on to it&#8217;s destination. The following assumes you are the <em>root</em> user.</p>
<p>In your /etc/mail/sendmail.mc file, we need to add the following:<br />
<code><br />
define(`SMART_HOST',`smtp.broadband.rogers.com')<br />
</code></p>
<p>This defines what server we are going to use as a SMARTHOST. The other problem we are going to run into is that unlike other ISP&#8217;s which allow you to send via the SMARTHOST based on what your domain is (basically if you are connected on an ISP&#8217;s network, you can send using their server) Rogers requires that users authenticate.</p>
<p>To do this, we need to add the following to the /etc/mail/access file:</p>
<p><code><br />
AuthInfo:smtp.broadband.rogers.com "U:&lt;username&gt;" "P:&lt;password&gt;" "M:PLAIN"<br />
</code></p>
<p>I then changed the permissions to the file since I had my plaintext password in it:</p>
<p><code>chmod 660 /etc/mail/access</code></p>
<p>Next, we will regenerate the sendmail.cf and access.db files.</p>
<p><code><br />
m4 /etc/mail/sendmail.mc &gt; /etc.mail/sendmail.cf<br />
makemap hash /etc/mail/access &lt; /etc/mail/access<br />
</code></p>
<p>Now, restart sendmail, and you should be ready to go.</p>
<p>What you can do now, is set up all of your mail clients to point to the linux server as your outgoing mail server and it will forward all of your emails to Rogers and then on to it&#8217;s destination.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newthink.net/2007/05/18/smarthost-authentication-with-sendmail/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
