<?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>Bennyland &#187; centos</title>
	<atom:link href="http://blog.bennyland.com/tag/centos/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.bennyland.com</link>
	<description>this server is running in my bedroom - benny’s learning how to run a linux server</description>
	<lastBuildDate>Thu, 06 Jan 2011 16:41:43 +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>Serving ASP.NET pages in Apache on CentOS 5</title>
		<link>http://blog.bennyland.com/2010/02/06/serving-asp-net-pages-in-apache-on-centos-5/</link>
		<comments>http://blog.bennyland.com/2010/02/06/serving-asp-net-pages-in-apache-on-centos-5/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 18:59:32 +0000</pubDate>
		<dc:creator>benny</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[mono]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://blog.bennyland.com/?p=78</guid>
		<description><![CDATA[I'm starting to love ASP.NET and the ability to do everything in C# (I'm currently working on an internal silverlight app at work and creating a RESTful API is more fun in C#). Anyway, you can do a yum install mod_mono, but it's a pretty old version so I did some research and found a [...]]]></description>
			<content:encoded><![CDATA[<p>I'm starting to love ASP.NET and the ability to do everything in C# (I'm currently working on an internal silverlight app at work and creating a RESTful API is more fun in C#).  Anyway, you can do a yum install mod_mono, but it's a pretty old version so I did some research and found a <a href="http://poormanstech.blogspot.com/2007/05/installing-mono.html">guide on building it yourself</a> along with two other guides that were roughly the same, but not as good... (<a href="http://blog.rubypdf.com/2009/10/23/how-to-install-mono-2-4-2-3-on-centos-5/">1</a>, <a href="http://init.sh/?p=74">2</a>) and somehow ended up with a working server.  This is a companion to that guide with more up to date versions of things. (it took me SEVERAL trial and error attempts to get things working :/ so hopefully i didn't miss any steps)</p>
<p>Let me preface this with the fact that if you're running one of the already supported OSs (debian or unbuntu for instance) you shouldn't follow this guide - instead you should just look on the mono website for information.<br />
<span id="more-78"></span><br />
First thing I did was grab the most up-to-date mono and xst sources (i matched versions)</p>
<pre class="brush: bash; title: ;">cd /tmp
wget http://ftp.novell.com/pub/mono/sources/mono/mono-2.6.tar.bz2
wget http://ftp.novell.com/pub/mono/sources/mod_mono/mod_mono-2.6.tar.bz2
wget http://ftp.novell.com/pub/mono/sources/xsp/xsp-2.6.tar.bz2</pre>
<p>Then unpack everything</p>
<pre class="brush: bash; title: ;">tar -jxvf mono-2.6.tar.bz2
 tar -jxvf xsp-2.6.tar.bz2
 tar -jxvf mod_mono-2.6.tar.bz2</pre>
<p>then build mono first (change anything on the ./configure line to your liking, I do suggest picking a place to put mono, letting it install wherever it wants to makes the rest of the process very painful!):</p>
<pre class="brush: bash; title: ;">cd /tmp/mono-2.6
./configure --prefix=/opt/mono
make ; make install
echo export PKG_CONFIG_PATH=/opt/mono/lib/pkgconfig:$PKG_CONFIG_PATH&gt;&gt;~/.bash_profile
echo export PATH=/opt/mono/bin:$PATH&gt;&gt;~/.bash_profile
source ~/.bash_profile</pre>
<p>after a bit you'll have mono installed <img src='http://blog.bennyland.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Now build xsp (i had to add pkgconfig to an environment variable to get it to work)</p>
<pre class="brush: bash; title: ;">cd /tmp/xsp-2.6
./configure --prefix=/opt/mono
make ; make install</pre>
<p>Finally build mod_mono, you'll probably need to tell it where apache's apr-config is... it took a while for me to find it.. heh</p>
<pre class="brush: bash; title: ;">find / -iname apr*config
cd /tmp/mod_mono-2.6
./configure --prefix=/opt/mono --with-mono-prefix=/opt/mono --with-apr-config=/usr/bin/apr-1-config
make ; make install</pre>
<p>you should now find mod_mono in your apache modules dir (in my case /usr/lib64/httpd/modules/)</p>
<pre class="brush: bash; title: ;">ls /usr/lib64/httpd/modules/mod_mono*
17 Feb  5 22:54 /usr/lib64/httpd/modules/mod_mono.so -&gt; mod_mono.so.0.0.0
145511 Feb  5 22:54 /usr/lib64/httpd/modules/mod_mono.so.0.0.0
</pre>
<p>the mod_mono install seems to have automatically created mod_mono.conf in my httpd/conf folder, but you may want to make sure it's there</p>
<pre class="brush: bash; title: ;">vim /etc/httpd/conf/mod_mono.conf</pre>
<pre class="brush: plain; title: ;"># mod_mono.conf

# Achtung! This file may be overwritten
# Use 'include mod_mono.conf' from other configuration file
# to load mod_mono module.

&lt;IfModule !mod_mono.c&gt;
    LoadModule mono_module /usr/lib64/httpd/modules/mod_mono.so
&lt;/IfModule&gt;

&lt;IfModule mod_headers.c&gt;
    Header set X-Powered-By &quot;Mono&quot;
&lt;/IfModule&gt;

AddType application/x-asp-net .aspx
AddType application/x-asp-net .asmx
AddType application/x-asp-net .ashx
AddType application/x-asp-net .asax
AddType application/x-asp-net .ascx
AddType application/x-asp-net .soap
AddType application/x-asp-net .rem
AddType application/x-asp-net .axd
AddType application/x-asp-net .cs
AddType application/x-asp-net .vb
AddType application/x-asp-net .master
AddType application/x-asp-net .sitemap
AddType application/x-asp-net .resources
AddType application/x-asp-net .skin
AddType application/x-asp-net .browser
AddType application/x-asp-net .webinfo
AddType application/x-asp-net .resx
AddType application/x-asp-net .licx
AddType application/x-asp-net .csproj
AddType application/x-asp-net .vbproj
AddType application/x-asp-net .config
AddType application/x-asp-net .Config
AddType application/x-asp-net .dll
DirectoryIndex index.aspx
DirectoryIndex Default.aspx
DirectoryIndex default.aspx
</pre>
<p>Now, you need to get this to work with ISPConfig3, since if you've followed my other tutorials, that's what you have running things on the back end.</p>
<p>Modify your httpd.conf file to include mod_mono.conf.  You want to do this at the very bottom, just before the NameVirtualHost directives (ISPConfig puts 3 directives at the very bottom of httpd.conf, you want to place this line just before them:</p>
<pre class="brush: bash; title: ;">vim /etc/httpd/conf/httpd.conf</pre>
<pre class="brush: plain; title: ;">Include /etc/httpd/conf/mod_mono.conf
# this is where ISPConfig's stuff is, don't modify it, this comment is so you know where to put the line above the comment <img src='http://blog.bennyland.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />
NameVirtualHost *:80
NameVirtualHost *:443
Include /etc/httpd/conf/sites-enabled/
</pre>
<p>now, restart apache</p>
<pre class="brush: bash; title: ;">service httpd restart</pre>
<p>and open up ISPConfig.  go to sites > website > Select the website you want to add a mono enabled directory to, then click on the "Options" tab for that site.  Enter the following into the Apache Directives (<strong>replace /var/www/path/to/the/web/folder with the path to that site's web folder</strong>)</p>
<pre class="brush: plain; title: ;">MonoPath default &quot;/opt/mono/lib/mono/2.0&quot;
MonoServerPath default /opt/mono/bin/mod-mono-server
AddMonoApplications default &quot;/test:/var/www/path/to/the/web/folder/test&quot;
&lt;location /test&gt;
	MonoSetServerAlias default
	SetHandler mono
&lt;/location&gt;
</pre>
<p>and finally restart httpd</p>
<pre class="brush: bash; title: ;">service httpd restart</pre>
<p>here's a test page, create it in your /var/www/path/to/the/web/folder/test directory and set the permissions to whatever the other site's permissions are, or apache.apache</p>
<pre class="brush: xml; title: ;">&lt;html&gt;
&lt;body&gt;
&lt;% Response.Write(&quot;Hello World!&quot;); %&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>now, once ISPConfig restarts apache (sometimes this is instant but i've seen it take up to 5 minutes) you'll see Hello World! displayed</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bennyland.com/2010/02/06/serving-asp-net-pages-in-apache-on-centos-5/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Installing Trac and Subversion on CentOS5</title>
		<link>http://blog.bennyland.com/2010/01/18/installing-trac-and-subversion-on-centos5/</link>
		<comments>http://blog.bennyland.com/2010/01/18/installing-trac-and-subversion-on-centos5/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 01:30:31 +0000</pubDate>
		<dc:creator>benny</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[trac]]></category>

		<guid isPermaLink="false">http://blog.bennyland.com/?p=19</guid>
		<description><![CDATA[Installing Trac and Subversion on CentOS is pretty simple. First, you need to install subversion - it was automatically installed for me already when I installed the OS, however I wanted to update it and found out that I couldn't do so until I deleted the i386 version. Don't do this step if you're on [...]]]></description>
			<content:encoded><![CDATA[<p>Installing Trac and Subversion on CentOS is pretty simple.</p>
<p>First, you need to install subversion - it was automatically installed for me already when I installed the OS, however I wanted to update it and found out that I couldn't do so until I deleted the i386 version.<span id="more-19"></span></p>
<p>Don't do this step if you're on a 32-bit system!</p>
<pre class="brush: bash; title: ;">
yum erase subversion.i386
</pre>
<p>Next, you can install or upgrade subversion and add mod_dav_svn</p>
<pre class="brush: bash; title: ;">
yum install subversion mod_dav_svn
</pre>
<p>And Trac...</p>
<pre class="brush: bash; title: ;">
yum install python
cd /tmp
wget http://peak.telecommunity.com/dist/ez_setup.py
python ez_setup.py
yum install mod_python
</pre>
<p>MySQL-python is needed for python to interact with mysql.  Download the latest MySQL-python from http://sourceforge.net/projects/mysql-python, then:</p>
<pre class="brush: bash; title: ;">
tar -zxvf mysql-python-tarball.tar.gz
cd mysql-python-source-directory
python setup.py build &amp;&amp; python.setup.py install
</pre>
<p>Some developer packages will also be needed:</p>
<pre class="brush: bash; title: ;">
yum install neon neon-devel python-devel swig
</pre>
<p>Next, install clearsilver.  You should look for the version that works for your OS. For CentOS 5, it's the latest el5.rf, and either i386 or x86 depending on your setup.  You can find the list of packages here: <a href="http://dag.wieers.com/rpm/packages/clearsilver/">http://dag.wieers.com/rpm/packages/clearsilver/</a>. Make sure that you get the same version number of clearsilver and python-clearsilver.</p>
<pre class="brush: bash; title: ;">
wget http://dag.wieers.com/rpm/packages/clearsilver/clearsilver-VERSION.el5.rf.ENVIRONMENT.rpm
rpm -i clearsilver-VERSION.el5.rf.ENVIRONMENT.rpm
wget http://dag.wieers.com/rpm/packages/clearsilver/python-clearsilver-VERSION.el5.rf.ENVIRONMENT.rpm
rpm -i python-clearsilver-VERSION.el5.rf.ENVIRONMENT.rpm
</pre>
<p>Now that you have all of these, you can install Trac.  Download the latest tar from <a href="http://trac.edgewall.org/wiki/TracDownload">http://trac.edgewall.org/wiki/TracDownload</a></p>
<pre class="brush: bash; title: ;">
cd /tmp
wget http://path.to/TracDownloadTarball.tar.gz
tar -zxvf TracDownloadTarball.tar.gz
cd TracDownloadTarball
python ./setup.py install
</pre>
<p>You're done. <img src='http://blog.bennyland.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Create SVN Repositories and link new Trac projects to them.  You'll first make directories to place your svn and trac projects (i'm using /var/www/svn|trac)</p>
<pre class="brush: bash; title: ;">
mkdir /var/www/svn/svn-repository-name
mkdir /var/www/trac/svn-repository-name
svnadmin create --fs-type fsfs /var/www/svn/svn-repository-name
trac-admin /var/www/trac/
initenv
chown -R apache.apache /var/www/svn/svn-repository-name
chown -R apache.apache /var/www/trac/svn-repository-name
</pre>
<p>Now you'll need to make a subversion.conf file for apache to load up. One might already exist (it did in my case), but even if it doesn't, that's ok.</p>
<pre class="brush: bash; title: ;">vim /etc/httpd/conf.d/subversion.conf</pre>
<pre class="brush: xml; title: ;">
LoadModule dav_svn_module     modules/mod_dav_svn.so
LoadModule authz_svn_module   modules/mod_authz_svn.so
&lt;VirtualHost *:80&gt;
	ServerName svn.astrosmurf.com
	DocumentRoot /path/to/existing/empty/directory
	&lt;Location /&gt;
		DAV svn
		SVNParentPath /path/to/svn/root
		SVNListParentPath on
		Order allow,deny
		Allow from all
	&lt;/Location&gt;
	&lt;LocationMatch /.+&gt;
		# access differences per repository in here:
		AuthzSVNAccessFile /path/to/svn/root/svn-acl-conf

		# means to authenticate the user
		AuthType Basic
		AuthName &quot;Astrosmurf Subversion&quot;
		AuthUserFile /path/to/svn/root/svn.htpasswd

		# only authenticated users may access the repository
		Require valid-user
	&lt;/LocationMatch&gt;
	ErrorLog /var/www/logs/error.svn.log
	CustomLog /var/www/logs/access.svn.log combined
&lt;/VirtualHost&gt;
</pre>
<p>You'll also want to do the same for Trac</p>
<pre class="brush: bash; title: ;">vim /etc/httpd/conf.d/trac.conf</pre>
<p>and the contents should look similar to this (of course, modify both of these to suit your needs):</p>
<pre class="brush: xml; title: ;">
&lt;IfModule mod_python.c&gt;
	&lt;VirtualHost *:80&gt;
		ServerName trac.yourserver.com
		DocumentRoot /path/to/existing/empty/directory
		&lt;Location /&gt;
			SetHandler mod_python
			PythonInterpreter main_interpreter
			PythonHandler trac.web.modpython_frontend
			PythonOption TracEnvParentDir /path/to/trac/root
			PythonOption TracUriRoot /
			PythonOption PYTHON_EGG_CACHE /usr/lib/trac/plugins-cache
			Order allow,deny
			Allow from all
		&lt;/Location&gt;
		&lt;LocationMatch /[^/P]+/.*&gt;
			# means to authenticate the user
			AuthType Basic
			AuthName &quot;Subversion&quot;
			AuthUserFile /path/to/svn/root/svn.htpasswd
			AuthGroupFile /path/to/svn/root/svn-authgroup-conf
			# only authenticated users may access the repository
			Require group staff
		&lt;/LocationMatch&gt;
		&lt;LocationMatch /Pub[^/]+/.*&gt;
			# means to authenticate the user
			AuthType Basic
			AuthName &quot;Subversion&quot;
			AuthUserFile /path/to/svn/root/svn.htpasswd
			# only authenticated users may access the repository
			Require valid-user
		&lt;/LocationMatch&gt;

		ErrorLog /var/www/logs/error.trac.log
		CustomLog /var/www/logs/access.trac.log combined
	&lt;/VirtualHost&gt;
&lt;/IfModule&gt;
</pre>
<p>Now, make the different auth files. This file contains users and groups... in fact I don't remember why i have both the acl and the authgroup file, but whatever...</p>
<pre class="brush: bash; title: ;">vim /var/www/svn/svn-acl-conf</pre>
<pre class="brush: plain; title: ;">
[groups]
staff = user1, user2, user3
rb = reviewboard

[/]
@rb = rw

[name_of_staff_repo:/]
@staff = rw

[name_of_user1_repo:/]
user1 = rw

[Public:/]
@staff = rw
public = r
</pre>
<p>and set up authgroup. This file contains group names and who belongs to them</p>
<pre class="brush: bash; title: ;">vim /var/www/svn/svn-authgroup-conf</pre>
<pre class="brush: plain; title: ;">
staff: user1 user2 user3
</pre>
<p>And the passwords file</p>
<pre class="brush: bash; title: ;">
touch /var/www/svn/svn.htpasswd
htpasswd -m /var/www/svn/svn.htpasswd user1
htpasswd -m /var/www/svn/svn.htpasswd user2
htpasswd -m /var/www/svn/svn.htpasswd user3
</pre>
<p>You can also create a public user and somehow let the public know that they can enter your repository with username <em>public</em> and password <em>public</em>.</p>
<pre class="brush: bash; title: ;">htpasswd -m /var/www/svn/svn.htpasswd public</pre>
<p>Restart httpd and you should should now be able to go to http://svn.yourhost.com/ and http://trac.yourhost.com/</p>
<pre class="brush: bash; title: ;">service httpd restart</pre>
<p>A lot of this info came from several different sources, some from googling and others form these places:</p>
<ul>
<li><a href="http://biotext.org.uk/updating-subversion-on-64-bit-linux-centos-5/">http://biotext.org.uk/updating-subversion-on-64-bit-linux-centos-5/</a></li>
<li><a href="http://www.daniel-skinner.co.uk/setup-subversion-and-trac-on-centos-5/06/01/2008">http://www.daniel-skinner.co.uk/setup-subversion-and-trac-on-centos-5/06/01/2008</a></li>
<li><a href="http://www.techyouruniverse.com/software/installing-trac-with-subversion-on-cent-os-5-with-neon-and-quicksilver">http://www.techyouruniverse.com/software/installing-trac-with-subversion-on-cent-os-5-with-neon-and-quicksilver</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.bennyland.com/2010/01/18/installing-trac-and-subversion-on-centos5/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Forwarding all mail to your ISP&#8217;s smtp server with postfix and CentOS 5.4</title>
		<link>http://blog.bennyland.com/2010/01/18/forwarding-all-mail-to-your-isps-smtp-server-with-postfix-and-centos-5-4/</link>
		<comments>http://blog.bennyland.com/2010/01/18/forwarding-all-mail-to-your-isps-smtp-server-with-postfix-and-centos-5-4/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 19:01:44 +0000</pubDate>
		<dc:creator>benny</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[smtp]]></category>

		<guid isPermaLink="false">http://blog.bennyland.com/?p=13</guid>
		<description><![CDATA[I needed to forward all server mails to external email addresses and I had to use my ISP's smtp to do it. This is because everything is blocked by my ISP to combat spammers just making their own smtp server at home and then running it all hours of the day. To do this, you should have postfix installed and running already.

This tutorial will show you how to set up postfix to use your ISP's smtp, and also how to forward internal emails to external accounts.]]></description>
			<content:encoded><![CDATA[<p>I needed to forward all server mails to external email addresses and I had to use my ISP's smtp to do it.  This is because everything is blocked by my ISP to combat spammers just making their own smtp server at home and then running it all hours of the day.  To do this, you should have postfix installed and running already.<span id="more-13"></span></p>
<h3>Setting up Postfix to use your ISP's smtp</h3>
<p>Note: if your ISP requires authentication for smtp, you'll have to do some googleing.  If they don't (mine doesn't) then this will work fine for you.</p>
<pre class="brush: bash; title: ;">vim /etc/postfix/main.cf</pre>
<p>Next, you need to add the relayhost variable, you may have to enclose the domain in brackets, I didn't have to but I've read everywhere that you should:</p>
<pre class="brush: plain; title: ;">relayhost = [your.isps.smtp.com]</pre>
<p>Other items to potentially edit:</p>
<pre class="brush: plain; title: ;">myhostname = your.host.name
mydomain = your.domain
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost
unknown_local_recipient_reject_code = 550
relay_domains = $mydestination</pre>
<p>Now, restart postfix</p>
<pre class="brush: bash; title: ;">service postfix reload</pre>
<h3>Forwarding name@yourdomain.com to a real e-mail address</h3>
<p>First things first, you need to edit main.cf</p>
<pre class="brush: bash; title: ;">vim /etc/postfix/main.cf</pre>
<p>Next, either add or edit the following lines.  You can add as many domains as you want.  If you followed the <a href="http://www.howtoforge.com/perfect-server-centos-5.4-x86_64-ispconfig-3">Perfect Server</a> tutorial, you'll have all sorts of junk in these variables, just replace them.</p>
<pre class="brush: plain; title: ;">virtual_alias_domains = yourdomain.com yourotherdomain.com.
virtual_alias_maps = hash:/etc/postfix/virtual</pre>
<p>Now, edit the /etc/postfix/virtual file to add your forward rules:</p>
<pre class="brush: bash; title: ;">vim /etc/postfix/virtual</pre>
<p>forward all mail sent to *@yourdomain.com to your@email.com and name@yourotherdomain.com to your@email.com:</p>
<pre class="brush: plain; title: ;">@yourdomain.com your@email.com
name@yourotherdomain.com your@email.com</pre>
<p>Now, restart postfix</p>
<pre class="brush: bash; title: ;">postmap /etc/postfix/virtual
service postfix reload</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.bennyland.com/2010/01/18/forwarding-all-mail-to-your-isps-smtp-server-with-postfix-and-centos-5-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing P5KPL-CM network drivers on CentOS 5.4</title>
		<link>http://blog.bennyland.com/2010/01/18/installing-p5kpl-cm-network-drivers-on-centos-5-4/</link>
		<comments>http://blog.bennyland.com/2010/01/18/installing-p5kpl-cm-network-drivers-on-centos-5-4/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 18:43:15 +0000</pubDate>
		<dc:creator>benny</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[linux drivers]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://blog.bennyland.com/?p=9</guid>
		<description><![CDATA[Once CentOS was installed, the first thing I had to do to make the server useful was to build and install the network drivers for myASUS P5KPL-CM Motherboard.  Here's how to do it: First, you're going to need the LinuxDrivers zip file.  You'll need to unzip and then unrar l1e-l2e-linux-v1.0.0.4.rar (found in the LinuxDrivers/L1e_Lan directory in [...]]]></description>
			<content:encoded><![CDATA[<p>Once CentOS was installed, the first thing I had to do to make the server useful was to build and install the network drivers for my<a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16813131288" target="_blank">ASUS P5KPL-CM Motherboard</a>.  Here's how to do it:</p>
<p>First, you're going to need the <a href="http://blog.bennyland.com/wp-content/uploads/2010/01/LinuxDrivers.zip">LinuxDrivers</a> zip file.  You'll need to unzip and then unrar l1e-l2e-linux-v1.0.0.4.rar (found in the LinuxDrivers/L1e_Lan directory in the zip).  I had to do this on my Windows PC since I couldn't install unrar on the server (no network, remember?)</p>
<p>Once you're transfered the contents of l1e-l2e-linux-v1.0.0.4.rar to the server, follow these steps:<span id="more-9"></span></p>
<pre class="brush: bash; title: ;">
su -
cd /path/to/LinuxDrivers/src/
make clean
KBUILD_NOPEDANTIC=1 make clean
KBUILD_NOPEDANTIC=1 make
KBUILD_NOPEDANTIC=1 make install
cd /lib/modules/2.6.18-92.el5xen/kernel/drivers/net/atl1e/
mv atl1e.ko atl1e.ko.old
mv /path/to/LinuxDrivers/src/atl1e.ko atl1e.ko
insmod ./atl1e.ko
</pre>
<p>Once that is done, reboot your server and then configure your network however you need to.  If all goes well, you should have eth0.  I remember the first time I set this server up I attempted to install an incorrect driver that was on the installation disc.  This caused me a lot of headaches when it came to installing the correct driver.  This time I ignored network all together during setup and I was pleasantly surprised how easy it was to build and install the drivers this time.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bennyland.com/2010/01/18/installing-p5kpl-cm-network-drivers-on-centos-5-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

