<?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>Linux and Open Source Blog &#187; tutorials</title>
	<atom:link href="http://linewbie.com/category/guides/tutorials/feed" rel="self" type="application/rss+xml" />
	<link>http://linewbie.com</link>
	<description>News, Reviews, Thoughts and Trends in Linux and Open Source World.</description>
	<lastBuildDate>Wed, 09 May 2012 15:44:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>How To Install VMware Server On OpenSUSE Linux 10.3</title>
		<link>http://linewbie.com/2008/03/how-to-install-vmware-server-on-opensuse-linux-103.html</link>
		<comments>http://linewbie.com/2008/03/how-to-install-vmware-server-on-opensuse-linux-103.html#comments</comments>
		<pubDate>Thu, 27 Mar 2008 12:55:51 +0000</pubDate>
		<dc:creator>Linewbie.com</dc:creator>
				<category><![CDATA[applications/software]]></category>
		<category><![CDATA[guides]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.linewbie.com/2008/03/how-to-install-vmware-server-on-opensuse-linux-103.html</guid>
		<description><![CDATA[bold writing are command that you need to enter red letting are command that you need to issue as root click on Computer &#62; More Applications &#62; YaST Put in root password for YaST Scroll down until you see Software &#8230; <a href="http://linewbie.com/2008/03/how-to-install-vmware-server-on-opensuse-linux-103.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>bold writing are command that you need to enter</strong></p>
<p style="margin-bottom: 0in"><font color="#ff0000">red letting are command that you need to issue as root</font></p>
<ol>
<li>
<p style="margin-bottom: 0in">click on Computer &gt; More 	Applications &gt; YaST</p>
</li>
<li>
<p style="margin-bottom: 0in">Put in root password for YaST</p>
</li>
<li>
<p style="margin-bottom: 0in">Scroll down until you see Software 	Management and single click on it</p>
</li>
<li>
<p style="margin-bottom: 0in">Check for the following software. 	If you don&#8217;t have it installed, install it</p>
<ol>
<li>
<p style="margin-bottom: 0in">kernel-source</p>
</li>
<li>
<p style="margin-bottom: 0in">gcc</p>
</li>
<li>
<p style="margin-bottom: 0in">gcc-c++</p>
</li>
<li>
<p style="margin-bottom: 0in">make (This is most likely already 		installed, but just to double check)</p>
</li>
</ol>
</li>
<p><span id="more-464"></span></p>
<li>
<p style="margin-bottom: 0in">Once you have installed that 	software, lets head over to the command line. Right click on the 	desktop and select â€œopen terminalâ€</p>
</li>
<li>
<p style="margin-bottom: 0in">Once you get into the terminal, 	you want to log in as a super user or root. You can do this by using 	the su command</p>
<table border="1" bordercolor="#000000" cellpadding="4" cellspacing="0" width="100%">
<tr>
<td valign="top" width="100%"><a href="mailto:clmowers@linux-box"><font color="#000000"><span>clmowers@linux-box</span></font></a><span>:~&gt;</span><strong> 				SU</strong>Password:<font color="#ff0000"><strong>linux-box:/home/clmowers #</strong></font></td>
</tr>
</table>
</li>
<li>
<p style="margin-bottom: 0in">Next you want 	to run the following command. This will check for the needed 	software and it will also show you the kernel modules that are 	installed. You <strong>MUST </strong>have the same kernel numbers though out, 	or you will have issues later down the road</p>
<table border="1" bordercolor="#000000" cellpadding="4" cellspacing="0" width="100%">
<tr>
<td valign="top" width="100%">rpm -qa kernel* gcc* make</td>
</tr>
</table>
<p style="margin-bottom: 0in">It will look like 	this when the command is run</p>
<table border="1" bordercolor="#000000" cellpadding="4" cellspacing="0" width="100%">
<tr>
<td valign="top" width="100%"><font color="#ff0000">linux-box:/home/clmowers #</font> <font color="#000000"><strong>rpm 				-qa kernel* gcc* make </strong></font>gcc-c++-4.2-24make-3.81-66kernel-source-<font color="#280099"><strong>2.6.22.17-0.1 </strong></font>gcc42-c++-4.2.1_20070724-17</p>
<p>kernel-default-<font color="#280099"><strong>2.6.22.17-0.1 </strong></font></p>
<p>gcc-4.2-24</p>
<p>gcc42-4.2.1_20070724-17</td>
</tr>
</table>
<p style="margin-bottom: 0in">Notice that both 	of the kernels are the same. If these numbers are diffent then you 	need to run the online updates to get the lastest ones and to make 	sure everything matches. ***Just remember that these numbers change, 	This was the latest kernel when I wrote this, yours might be 	different from mine.</p>
</li>
<li>
<p style="margin-bottom: 0in">OK, lets move 	on. Next we want to change the directory to /usr/scr/linux. We can 	do that by this command</p>
<table border="1" bordercolor="#000000" cellpadding="4" cellspacing="0" width="100%">
<tr>
<td valign="top" width="100%"><font color="#ff0000">linux-box:/home/clmowers #</font> <strong>cd 				/usr/src/linux</strong></td>
</tr>
</table>
</li>
<li>
<p style="margin-bottom: 0in">next we want 	to issue these commands. Don&#8217;t worry, we are almost done in the 	command line for the time being.</p>
<table border="1" bordercolor="#000000" cellpadding="4" cellspacing="0" width="100%">
<tr>
<td valign="top" width="100%"><font color="#ff0000">linux-box:/home/clmowers # </font><font color="#000000"> 				</font><font color="#000000"><strong>make mrproper; make cloneconfig; 				make modules_prepare</strong></font><font color="#000000">You will notice that it is done when you 				get back to this line</font><font color="#ff0000">linux-box:/home/clmowers #</font></td>
</tr>
</table>
</li>
<li>
<p style="margin-bottom: 0in"> YEA!!! The 	moment we all have been waiting for, installing vmware server. But 	we are not done yet. Once vmware server is installed we will need to 	configure it. Then you can start adding all the VM that your heart 	desires.</p>
</li>
<li>
<p style="margin-bottom: 0in">Next you want 	to go to where you have downloaded the file and right click and 	select install software</p>
</li>
<li>
<p style="margin-bottom: 0in">Once the 	windows closes we are ready to configure it. I know I know, but we 	are almost done. Just 2 more minutes.</p>
</li>
<li>
<p style="margin-bottom: 0in">open up a new 	terminal window (or open the one you already had) and issue this 	command</p>
<table border="1" bordercolor="#000000" cellpadding="4" cellspacing="0" width="100%">
<tr>
<td valign="top" width="100%"><font color="#ff0000">linux-box:/home/clmowers # </font><font color="#000000"> 				</font><font color="#000000"><strong>cd /usr/bin</strong></font><font color="#ff0000">linux-box:/usr/bin 				#</font></td>
</tr>
</table>
</li>
<li>
<p style="margin-bottom: 0in">This will 	bring you to the /usr/bin directory. Next we want to run the pl 	script the vmware was so kind of to provide us. This will let us 	configure the server</p>
<table border="1" bordercolor="#000000" cellpadding="4" cellspacing="0" width="100%">
<tr>
<td valign="top" width="100%"><font color="#ff0000">linux-box:/usr/bin 				# </font><font color="#000000"> </font><font color="#000000"><strong>vmware-config.pl</strong></font></td>
</tr>
</table>
</li>
<li>
<p style="margin-bottom: 0in">We will start 	out by reading the EULA. Hit space or enter to go through the 	agreement. Once you are done reading hit Q and then type yes. Now 	what I did was just accept all the defaults. This will give you a 	very good install of vmware. My only suggestion would be to create a 	folder under your /home/username/ directory called vms. When you get 	to the question asking you where you want to have your virutual 	machine saved, type in that location.</p>
</li>
<li>
<p style="margin-bottom: 0in">You will be 	ask for your license key, so make sure that you have one. Type it in 	and press eneter.</p>
</li>
</ol>
<p style="margin-bottom: 0in">&nbsp;</p>
<div style='clear:both'></div>
]]></content:encoded>
			<wfw:commentRss>http://linewbie.com/2008/03/how-to-install-vmware-server-on-opensuse-linux-103.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Best Practices when using SSH</title>
		<link>http://linewbie.com/2008/01/best-practices-when-using-ssh.html</link>
		<comments>http://linewbie.com/2008/01/best-practices-when-using-ssh.html#comments</comments>
		<pubDate>Tue, 29 Jan 2008 05:58:36 +0000</pubDate>
		<dc:creator>Linewbie.com</dc:creator>
				<category><![CDATA[guides]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.linewbie.com/2008/01/best-practices-when-using-ssh.html</guid>
		<description><![CDATA[Author: Ryan M. Original Website: linuxsecurity.com Introduction Are you using SSH in the best way possible? Have you configured it to be as limited and secure as possible? The goal of this document is to kick in the new year &#8230; <a href="http://linewbie.com/2008/01/best-practices-when-using-ssh.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Author: Ryan M.<br />
Original Website: <a href="http://www.linuxsecurity.com/">linuxsecurity.com</a></p>
<h3>Introduction</h3>
<p>Are you using SSH in the best way possible? Have you configured it to be as limited and secure as possible? The goal of this document is to kick in the new year with some best practices for SSH: why you should use them, how to set them up, and how to verify that they are in place.</p>
<p>All of the examples below assume that you are using EnGarde Secure Linux but any modern Linux distribution will do just fine since, as far as I know, everybody ships OpenSSH.</p>
<h3>SSHv2 vs. SSHv1</h3>
<p>There are numerous benefits to using the latest version of the SSH protocol, version 2, over it&#8217;s older counterpart, version 1 and I&#8217;m not going into a lot of details on those benefits here &#8211; if you&#8217;re interested, see the URL in the reference below or Google around. That being said if you don&#8217;t have an explicit reason to use the older version 1, you should always be using version 2.</p>
<p><span id="more-455"></span></p>
<p>To use SSHv2 by default but permit SSHv1, locate the &#8220;Protocol&#8221; line in your sshd_config file and change it to:</p>
<pre>Protocol 2,1</pre>
<p>When doing 2,1 please note that the protocol selection is left up to the client. Most clients will default to v2 and &#8220;fall back&#8221; to v1, while legacy clients may continue to use v1. To force everybody to use SSHv2, change it to:</p>
<pre>Protocol 2</pre>
<p>When you make this change don&#8217;t forget to generate the appropriate HostKey&#8217;s as well!  SSHv2 requires the following keys:</p>
<pre># HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key</pre>
<p>While SSHv1 requires:</p>
<pre># HostKey for protocol version 1
HostKey /etc/ssh/ssh_host_key</pre>
<p>Once your changes are made, restart the SSH daemon:</p>
<p class="command"># /etc/init.d/sshd restart</p>
<p class="system">[ SUCCESSFUL ] Secure Shell Daemon<br />
[ SUCCESSFUL ] Secure Shell Daemon</p>
<p>From another machine, try SSH&#8217;ing in. You can use the <span class="system">-v option </span>to see which protocol is being used, and the &#8216;-oProtocol=&#8217; option to force one or the other &#8211; for example, &#8220;ssh -v -oProtocol=2 <host>&#8221; would force protocol version 2.</host></p>
<h3>Binding to a Specific Address or Non-Standard Port</h3>
<p>If you&#8217;re running SSH on an internal, firewalled, workstation then you can probably skip this section, but if you&#8217;re running SSH on a firewall or on a machine with two network interfaces, this section is for you.</p>
<p>Out of the box OpenSSH will bind to every available network address; while convenient and suitable for most installations, this is far from optimal. If your machine has two or more interfaces then the odds are that one is &#8220;trusted&#8221; and the other is &#8220;untrusted.&#8221; If this is the case, and you don&#8217;t need nor want SSH access coming in on the untrusted interface, then you should configure OpenSSH to listen on a specific interface.</p>
<p>To have OpenSSH only bind to your internal interface, 192.168.0.1 in the example below, locate the following line in your sshd_config file:</p>
<pre>ListenAddress 0.0.0.0</pre>
<p>and change the 0.0.0.0 to 192.168.0.1:</p>
<pre>ListenAddress 192.168.0.1</pre>
<p>To verify that this change took, restart OpenSSH and look at netstat:</p>
<p class="command"># /etc/init.d/sshd restart</p>
<p class="system">[ SUCCESSFUL ] Secure Shell Daemon<br />
[ SUCCESSFUL ] Secure Shell Daemon</p>
<p class="command"># netstat -anp | grep sshd</p>
<p class="system">tcp        0      0 192.168.0.1:22          0.0.0.0:*               LISTEN      7868/sshd</p>
<p><strong>As you can see, the sshd daemon is now only listening on 192.168.0.1.</strong> SSH requests coming in <strong>any other interface</strong> will be ignored.</p>
<p>Similarly, you may want to change the port that the SSH daemon binds to. Sometimes there is a functional need for this (ie, your employer blocks outbound 22/tcp) but there is also security-through-obscurity value in this as well. While not providing any real security benefit against a determined attacker, moving the SSH daemon off of port 22 protects you against automated attacks which assume that the daemon is running on port 22.</p>
<p>To have OpenSSH bind to a port other than port 22, 31337 in the example below, locate the following line in your sshd_config file:</p>
<pre>Port 22</pre>
<p>and change the 22 to 31337:</p>
<pre>Port 31337</pre>
<p>To verify that this change took, restart OpenSSH and, again, look at netstat:</p>
<p class="command"># netstat -anp | grep sshd</p>
<p class="system">tcp        0      0 192.168.0.1:31337       0.0.0.0:*               LISTEN      330/sshd</p>
<p>Finally, to SSH into a host whose SSH daemon is listening on a non-standard port, use the -p option:</p>
<p class="command">ssh -p 31337 user@192.168.0.1</p>
<h3>Using TCP Wrappers</h3>
<p>TCP Wrappers are used to limit access to TCP services on your machine. If you haven&#8217;t heard of TCP Wrappers you&#8217;ve probably heard of /etc/hosts.allow and /etc/hosts.deny: these are the two configuration files for TCP Wrappers. In the context of SSH, TCP Wrappers allow you to decide what specific addresses or networks have access to the SSH service.</p>
<p>To use TCP Wrappers with SSH you need to make sure that OpenSSH was built with the -with-tcp-wrappers. This is the case on any modern distribution.</p>
<p>As I indicated earlier, TCP Wrappers are configured by editing the /etc/hosts.deny and /etc/hosts.allow files. Typically you tell hosts.deny to deny everything, then add entries to hosts.allow to permit specific hosts access to specific services.</p>
<p>An example:</p>
<pre>#
# hosts.deny    This file describes the names of the hosts which are
#               *not* allowed to use the local INET services, as decided
#               by the '/usr/sbin/tcpd' server.
#
ALL: ALL
#
# hosts.allow   This file describes the names of the hosts which are
#               allowed to use the local INET services, as decided
#               by the '/usr/sbin/tcpd' server.
#
sshd: 207.46.236. 198.133.219.25</pre>
<p>In the example above, access to SSH is limited to the network 207.46.236.0/24 and the address 198.133.219.25. Requests to any other service from any other address are denied by the &#8220;ALL: ALL&#8221; in hosts.deny. If you try to SSH into a machine and TCP Wrappers denies your access, you&#8217;ll see something like this:</p>
<p class="system">ssh_exchange_identification: Connection closed by remote host</p>
<p>This simple configuration change significantly hardens your installation since, with it in place, packets from hostile clients are dropped very early in the TCP session &#8212; and before they can do any real damage to a potentially vulnerable daemon.</p>
<h3>Public Key Authentication</h3>
<p>The last item I will cover is public key authentication. One of the best things you can do to tighten the security of your SSH installation is to disable password authentication and to use public key authentication instead. Password authentication is suboptimal for many reasons, but mostly because people choose bad passwords and attackers routinely try to brute-force passwords. If the systems administrator has chosen a bad password and he&#8217;s permitting root logins&#8230; game over.</p>
<p>Public key authentication is no silver bullet &#8211; similarly, people generate passphrase-less keys or leave ssh-agents running when they shouldn&#8217;t &#8211; but, in my opinion, it&#8217;s a much better bet.</p>
<p>Just about every distribution ships with public key authentication enabled, but begin by making sure it is:</p>
<pre>RSAAuthentication yes
PubkeyAuthentication yes</pre>
<p>Both of these options default to &#8220;yes&#8221; and the &#8220;RSAAuthentication&#8221; option is for SSHv1 and the &#8220;PubkeyAuthentication&#8221; option is for SSHv2. If you plan on using this authentication method exclusively, while you&#8217;re there, you may want to disable password authentication:</p>
<pre>PasswordAuthentication no</pre>
<p>Before you proceed, make sure you have a terminal open on your target machine. Once you restart the SSH daemon you will no longer be able to log in without a key&#8230; which we haven&#8217;t generated yet!</p>
<p>Once you&#8217;re sure, restart the SSH daemon:</p>
<p class="command"># /etc/init.d/sshd restart</p>
<p class="system">[ SUCCESSFUL ] Secure Shell Daemon<br />
[ SUCCESSFUL ] Secure Shell Daemon</p>
<p>Now, from your desktop, try to SSH in to your target machine:</p>
<p class="command">$ ssh rwm@brainy</p>
<p class="system">Permission denied (publickey,keyboard-interactive).</p>
<p><strong>We&#8217;re locked out!</strong>  This is a <strong>good </strong>thing.  The next step, on your desktop, is to generate a key:</p>
<p class="command">$ ssh-keygen -t dsa -C &#8220;Ryan&#8217;s SSHv2 DSA Key (Jan 2008)&#8221;</p>
<p class="system">Generating public/private dsa key pair.<br />
Enter file in which to save the key (/home/rwm/.ssh/id_dsa):<br />
Enter passphrase (empty for no passphrase): **********<br />
Enter same passphrase again: **********<br />
Your identification has been saved in /home/rwm/.ssh/id_dsa.<br />
Your public key has been saved in /home/rwm/.ssh/id_dsa.pub.<br />
The key fingerprint is:<br />
98:4d:50:ba:ee:8b:79:be:b3:36:75:8a:c2:4a:44:4b Ryan&#8217;s SSHv2 DSA Key (Jan 2008)</p>
<h4>A few notes on this:</h4>
<ul>
<li>You can generate a DSA (-t dsa), RSA (-t rsa), or SSHv1 (-t rsa1) key.  In the example above I&#8217;m using dsa.</li>
<li>I like to put the date I generated the key in the comment (-C) field, that way I can change it out every so often.</li>
<li>You&#8217;re entering a passphrase, not a password. Use a long string with spaces and punctuation. The longer and more complicated the better!</li>
</ul>
<p>The command you just ran generated two files &#8211; id_dsa, your private key and id_dsa.pub, your public key. It is critical that you keep your private key private, but you can distribute your public key to any machines you would like to access.</p>
<p>Now that you have generated your keys we need to get the public key into the ~/.ssh/authorized_keys file on the target machine. The best way to do this is to copy-and-paste it &#8211; begin by concatenating the public key file:</p>
<p class="command">$ cat .ssh/id_dsa.pub</p>
<p class="system">ssh-dss AAAAB3NzaC1kc3MAAACBAL7p6bsg5kK4ES9BWLPCNABl20iQQB3R0ymaPMHK&#8230;<br />
&#8230; ds= Ryan&#8217;s SSHv2 DSA Key (Jan 2008)</p>
<p>This is a very long string. Make sure you copy <u>all of it </u>and that you do NOT copy the newline character at the end. In other words, copy from the &#8220;ssh&#8221; to the &#8220;2008)&#8221;, but not past that.</p>
<p>The next step is to append this key to the end of the ~/.ssh/authorized_keys file on your target machine. Remember that terminal I told you to keep open a few steps ago? Type the following command into it, pasting the key you&#8217;ve just copied into the area noted KEY:</p>
<p class="command">echo &#8220;KEY&#8221;  &gt;&gt; ~/.ssh/authorized_keys</p>
<p>For example:</p>
<p class="command">echo &#8220;ssh-dss AAAA5kS9BWLPCN&#8230;s= Ryan&#8217;s SSHv2 DSA Key (Jan 2008)&#8221;  &gt;&gt; ~/.ssh/authorized_keys</p>
<p>Now, try to SSH in again. If you did this procedure correctly then instead of being denied access, you&#8217;ll be prompted for your passphrase:</p>
<p class="command">$ ssh rwm@brainy</p>
<p class="system">Enter passphrase for key &#8216;/home/rwm/.ssh/id_dsa&#8217;:<br />
Last login: Thu Jan 10 14:37:14 2008 from papa.engardelinux.org<br />
[rwm@brainy ~]$</p>
<p>Viola!  You&#8217;re now logged in using public key authentication instead of password authentication.</p>
<h3>In Summary&#8230;</h3>
<p>SSH is a wonderful tool and is every systems administrators second best friend (Perl, of course, being the first <img src='http://linewbie.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . It allows you to read your email from anywhere, provided you still use a terminal-based mail reader. It allows you to tunnel an xterm or X11 application from your home server to your desktop at work. It provides you a far superior alternative to FTP in SFTP and SCP.</p>
<p>SSH is great but just like any tool, it&#8217;s only as good as you use it. I hope that you found value in some of my best practices and if you have any of your own, leave them in the comments!</p>
<p>Before I go, here are some additional resources on SSH:</p>
<ul>
<li> <a href="http://www.openssh.com/" target="_blank"> The OpenSSH Project </a></li>
<li> <a href="http://www.snailbook.com/" target="_blank"> SSH, The Secure Shell: The Definitive Guide </a></li>
<li> <a href="http://www.pcs.cnu.edu/%7Embland/ssh_intro/" target="_blank"> Introduction to SSH Versions 1 and 2 </a></li>
<li> <a href="http://www.linuxsecurity.com/content/view/131846/171/" target="_blank"> Knock, Knock, Knockin&#8217; on EnGarde&#8217;s Door (with FWKNOP) </a></li>
</ul>
<div style='clear:both'></div>
]]></content:encoded>
			<wfw:commentRss>http://linewbie.com/2008/01/best-practices-when-using-ssh.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install and Set Up Subversion And Trac As Virtual Hosts On An Ubuntu Linux Server</title>
		<link>http://linewbie.com/2008/01/install-and-set-up-subversion-and-trac-as-virtual-hosts-on-an-ubuntu-linux-server.html</link>
		<comments>http://linewbie.com/2008/01/install-and-set-up-subversion-and-trac-as-virtual-hosts-on-an-ubuntu-linux-server.html#comments</comments>
		<pubDate>Sat, 12 Jan 2008 09:06:11 +0000</pubDate>
		<dc:creator>Linewbie.com</dc:creator>
				<category><![CDATA[guides]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[Linux Server]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[Trac]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.linewbie.com/2008/01/install-and-set-up-subversion-and-trac-as-virtual-hosts-on-an-ubuntu-linux-server.html</guid>
		<description><![CDATA[This howto outlines the process by which one can set up the Subversion version control system, and have it work in tandem with Trac, the project manager for software development projects, on a server running Ubuntu (or possibly Debian). It &#8230; <a href="http://linewbie.com/2008/01/install-and-set-up-subversion-and-trac-as-virtual-hosts-on-an-ubuntu-linux-server.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This howto outlines the process by which one can set up the <a href="http://subversion.tigris.org/" target="_blank">Subversion</a> version control system, and have it work in tandem with <a href="http://trac.edgewall.org/" target="_blank">Trac</a>, the project manager for software development projects, on a server running Ubuntu (or possibly Debian). It is brought to you by <a href="http://www.openject.com/" target="_blank">Openject Consulting</a>.</p>
<h3>Setting up Subversion</h3>
<p>For detailed information on this, including alternate setups, have a look at <a href="http://svnbook.red-bean.com/nightly/en/index.html" target="_blank">Version Control with Subversion</a>.</p>
<p><span id="more-442"></span></p>
<ol>
<li>
<dl>
<dt>Install the required packages.</dt>
<dd class="command">sudo aptitude install enscript libapache2-mod-python python-docutils trac db4.3-util libapache2-svn subversion-tools</dd>
</dl>
</li>
<li>
<dl>
<dt>Create a virtual host directory for SVN. We&#8217;ll use /var/local/svn instead of /var/www so that Subversion instances don&#8217;t clog up the directory of web root directories.</dt>
<dd class="command">sudo mkdir -p /var/local/svn/svn.example.com</dd>
</dl>
</li>
<li>
<dl>
<dt>Create a development group, and add the web user to it.</dt>
<dd class="command">sudo addgroup example; sudo adduser www-data example</dd>
</dl>
</li>
<li>
<dl>
<dt>Add users to the development group.  These are persons that need access to the repository.</dt>
<dd>
<ol>
<li class="command">sudo adduser username1 example</li>
<li class="command">sudo adduser username2 example</li>
<li class="command">sudo adduser username3 example</li>
</ol>
</dd>
</dl>
</li>
<li>
<dl>
<dt>Set the proper permissions.</dt>
<dd class="command">sudo chmod 2770 /var/local/svn/svn.example.com</dd>
</dl>
</li>
<li>
<dl>
<dt>Set up the repository.</dt>
<dd class="command">sudo svnadmin create /var/local/svn/svn.example.com</dd>
</dl>
</li>
<li>
<dl>
<dt>Clear the current password file. By default it&#8217;s for the svnserve protocol, but we&#8217;ll be using HTTPS (or just HTTP). We&#8217;ll be adding users to this file later in the process.</dt>
<dd class="command">sudo rm /var/local/svn/svn.example.com/conf/passwd<br />
sudo touch /var/local/svn/svn.example.com/conf/passwd</dd>
</dl>
</li>
<li>
<dl>
<dt>Allow the group to write to the repository.</dt>
<dd class="command">sudo chmod -R g+w /var/local/svn/svn.example.com</dd>
</dl>
</li>
<li>
<dl>
<dt>Set proper file ownership.</dt>
<dd class="command">sudo chown -R www-data:example /var/local/svn/svn.example.com</dd>
</dl>
</li>
<li>
<dl>
<dt>Set the repository access permissions.  Information on how to do this can be found in the <a href="http://svnbook.red-bean.com/nightly/en/svn.serverconfig.pathbasedauthz.html" target="_blank">Path-Based Authorization</a> section of <a href="http://svnbook.red-bean.com/nightly/en/index.html" target="_blank">Version Control with Subversion</a>.</dt>
<dd class="command">sudo vi /var/local/svn/svn.example.com/conf/authz</dd>
</dl>
</li>
<li>
<dl>
<dt>Create a directory for the log files.</dt>
<dd class="command">sudo mkdir /var/log/apache2/svn.example.com</dd>
</dl>
</li>
<li>
<dl>
<dt>Add the site to the log rotation list.</dt>
<dd class="command">sudo vi /etc/logrotate.d/apache2</dd>
</dl>
</li>
<li>
<dl>
<dt>Configure the virtual host&#8230;</dt>
<dd class="command">sudo vi /etc/apache2/sites-available/svn.example.com</dd>
<dt>&#8230;with the following data.  If you don&#8217;t care about SSL, you can ignore the SSL options and run this on port 80.</dt>
<dd>
<pre>&lt;VirtualHost [server's IP address]:443&gt;
  ServerName svn.example.com
  &lt;Location /&gt;
    DAV svn
    AuthType Basic
    AuthName "svn.example.com"
    AuthUserFile /var/local/svn/svn.example.com/conf/passwd
    AuthzSVNAccessFile /var/local/svn/svn.example.com/conf/authz
    SVNPath /var/local/svn/svn.example.com
    Require valid-user
  &lt;/Location&gt;
  CustomLog /var/log/apache2/svn.example.com/access.log combined
  ErrorLog /var/log/apache2/svn.example.com/error.log
  SSLEngine on
  SSLCertificateFile /etc/apache2/ssl/apache.pem
# Add this once there is a real (non self-signed) certificate.
#  SSLCertificateKeyFile /etc/apache2/ssl/server.key
&lt;/VirtualHost&gt;
&lt;VirtualHost [server's IP address]:80&gt;
  ServerName svn.example.com
  Redirect / https://svn.example.com/
&lt;/VirtualHost&gt;</pre>
</dd>
<dt>Reference:</dt>
<dd>/etc/apache2/mods-enabled/dav_svn.conf</dd>
</dl>
</li>
<li>
<dl>
<dt>Enable the subversion virtual host.</dt>
<dd class="command">sudo a2ensite svn.example.com</dd>
</dl>
</li>
<li>
<dl>
<dt>Create user/password combinations.</dt>
<dd class="command">htpasswd /var/local/svn/svn.example.com/conf/passwd username</dd>
</dl>
</li>
<li>
<dl>
<dt>Restart the web server.</dt>
<dd class="command">sudo /etc/init.d/apache2 restart</dd>
</dl>
</li>
<li>
<dl>
<dt>If you&#8217;re going to have users working locally, set up svnwrap.  (See the man page for details.)</dt>
<dd class="command">sudo ln -s /usr/bin/svnwrap /usr/local/bin/svn</dd>
</dl>
</li>
</ol>
<h3>Setting up Trac</h3>
<ol>
<li>
<dl>
<dt>Create the web directory.  We&#8217;ll use /var/local/trac instead of /var/www so as not to clog up the directory of webroots.</dt>
<dd class="command">sudo mkdir /var/local/trac/trac.example.com</dd>
</dl>
</li>
<li>
<dl>
<dt>Set the proper permissions.</dt>
<dd class="command">sudo chmod 2770 /var/local/trac/trac.example.com</dd>
</dl>
</li>
<li>
<dl>
<dt>Create a Trac instance.</dt>
<dd class="command">sudo trac-admin /var/local/trac/trac.example.com initenv</dd>
</dl>
</li>
<li>
<dl>
<dt>Set proper ownership on the web directory.</dt>
<dd class="command">sudo chown -R www-data:example /var/local/trac/trac.example.com</dd>
</dl>
</li>
<li>
<dl>
<dt>Allow the group to write to the repository.</dt>
<dd class="command">sudo chmod -R g+w /var/local/trac/trac.example.com</dd>
</dl>
</li>
<li>
<dl>
<dt>Configure it.</dt>
<dd class="command">sudo vi /var/local/trac/trac.example.com/conf/trac.ini</dd>
</dl>
</li>
<li>
<dl>
<dt>Create a directory for the log files.</dt>
<dd class="command">sudo mkdir /var/log/apache2/trac.example.com</dd>
</dl>
</li>
<li>
<dl>
<dt>Add the site to the log rotation list.</dt>
<dd class="command">sudo vi /etc/logrotate.d/apache2</dd>
</dl>
</li>
<li>
<dl>
<dt>Configure the virtual host&#8230;</dt>
<dd class="command">sudo vi /etc/apache2/sites-available/trac.example.com</dd>
<dt>&#8230;with the following data.  If you don&#8217;t care about SSL, you can skip the SSL options and run this on port 80.</dt>
<dd>
<pre># Trac Configuration
&lt;VirtualHost [server's IP address]:80&gt;
  ServerName trac.example.com
  Redirect / https://trac.example.com/
&lt;/VirtualHost&gt;
&lt;VirtualHost [server's IP address]:443&gt;
  ServerName trac.example.com
  DocumentRoot /var/local/trac/trac.example.com/
  Alias /trac/ /usr/share/trac/htdocs
  &lt;Directory "/usr/share/trac/htdocs/"&gt;
      Options Indexes MultiViews
      AllowOverride None
      Order allow,deny
      Allow from all
  &lt;/Directory&gt;
  &lt;Location /&gt;
      SetHandler mod_python
      PythonHandler trac.web.modpython_frontend
      PythonInterpreter main_interpreter
      PythonOption TracEnv /var/local/trac/trac.example.com/
      PythonOption TracUriRoot /
      AuthType Basic
      AuthName "trac.example.com"
      # Use the SVN password file.
      AuthUserFile /var/local/svn/svn.example.com/conf/passwd
      Require valid-user
  &lt;/Location&gt;
  CustomLog /var/log/apache2/trac.example.com/access.log combined
  ErrorLog /var/log/apache2/trac.example.com/error.log
  SSLEngine on
  SSLCertificateFile /etc/apache2/ssl/apache.pem
# Add this once there is a real (non self-signed) certificate.
#  SSLCertificateKeyFile /etc/apache2/ssl/server.key
&lt;/VirtualHost&gt;</pre>
</dd>
<dt>Reference:</dt>
<dd><a href="http://trac.edgewall.org/wiki/TracOnUbuntu" target="_blank">http://trac.edgewall.org/wiki/TracOnUbuntu</a></dd>
</dl>
</li>
<li>
<dl>
<dt>Enable the Trac virtual host.</dt>
<dd class="command">sudo a2ensite trac.example.com</dd>
</dl>
</li>
<li>
<dl>
<dt>Restart the web server.</dt>
<dd class="command">sudo /etc/init.d/apache2 restart</dd>
</dl>
</li>
</ol>
<p>The last thing to do is add the subdomains &#8220;svn&#8221; and &#8220;trac&#8221; to the DNS configuration for your domain. Once this is done, Subversion and Trac will be integrated into your server environment, and will be accessible from the web.
<div style='clear:both'></div>
]]></content:encoded>
			<wfw:commentRss>http://linewbie.com/2008/01/install-and-set-up-subversion-and-trac-as-virtual-hosts-on-an-ubuntu-linux-server.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Perfect Server Series: CentOS 4.6 Server Setup: LAMP, Email, DNS, FTP, ISPConfig</title>
		<link>http://linewbie.com/2008/01/perfect-server-series-centos-46-server-setup-lamp-email-dns-ftp-ispconfig.html</link>
		<comments>http://linewbie.com/2008/01/perfect-server-series-centos-46-server-setup-lamp-email-dns-ftp-ispconfig.html#comments</comments>
		<pubDate>Thu, 10 Jan 2008 09:06:09 +0000</pubDate>
		<dc:creator>Linewbie.com</dc:creator>
				<category><![CDATA[applications/software]]></category>
		<category><![CDATA[guides]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[Linux Server]]></category>
		<category><![CDATA[perfect server]]></category>

		<guid isPermaLink="false">http://www.linewbie.com/2008/01/perfect-server-series-centos-46-server-setup-lamp-email-dns-ftp-ispconfig.html</guid>
		<description><![CDATA[CentOS 4.6 Server Setup: LAMP, Email, DNS, FTP, ISPConfig (a.k.a. The Perfect Server) Version 1.0 Author: Falko Timme &#60;ft [at] falkotimme [dot] com&#62; Last edited 12/17/2007 This tutorial shows how to set up a CentOS 4.6 based server that offers &#8230; <a href="http://linewbie.com/2008/01/perfect-server-series-centos-46-server-setup-lamp-email-dns-ftp-ispconfig.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h4>CentOS 4.6 Server Setup: LAMP, Email, DNS, FTP, ISPConfig (a.k.a. The Perfect Server)</h4>
<p>Version 1.0<br />
Author: Falko Timme &lt;ft [at] falkotimme [dot] com&gt;<br />
Last edited 12/17/2007</p>
<p>This tutorial shows how to set up a <strong>CentOS 4.6</strong> based server that offers all services needed by ISPs and web hosters: Apache web server (SSL-capable), Postfix mail server with SMTP-AUTH and TLS, BIND DNS server, Proftpd FTP server, MySQL server, Dovecot POP3/IMAP, Quota, Firewall, etc. This tutorial is written for the 32-bit version of CentOS 4.6, but should apply to the 64-bit version with very little modifications as well.</p>
<p>I will use the following software:</p>
<ul>
<li>Web Server: Apache 2.0.x</li>
<li>Database Server: MySQL 4.1</li>
<li>Mail Server: Postfix</li>
<li>DNS Server: BIND9 (chrooted!)</li>
<li>FTP Server: proftpd</li>
<li>POP3/IMAP server: dovecot</li>
<li>Webalizer for web site statistics</li>
</ul>
<p>In the end you should have a system that works reliably, and if you like you can install the free webhosting control panel <a href="http://www.ispconfig.org/" target="_blank">ISPConfig</a> (i.e., ISPConfig runs on it out of the box).</p>
<p>I want to say first that this is not the only way of setting up such a system. There are many ways of achieving this goal but this is the way I take. I do not issue any guarantee that this will work for you!</p>
<p><span id="more-441"></span></p>
<h3>Requirements</h3>
<p>To install such a system you will need the following:</p>
<ul>
<li>Download the CentOS 4.6  DVD or the four CD iso images from a mirror near you (the list of mirrors can be found here: <a href="http://www.centos.org/modules/tinycontent/index.php?id=13" target="_blank">http://www.centos.org/modules/tinycontent/index.php?id=13</a>).</li>
<li>a fast internet connection&#8230;</li>
</ul>
<h3>1 Install The Base System</h3>
<p>Boot from your CentOS 4.6 DVD or CD (CD 1).</p>
<p><a href="http://www.howtoforge.com/images/perfect_server_centos_4.6/big/1.png" class="thickbox"><img src="http://howtoforge.com/images/perfect_server_centos_4.6/1.png" height="413" width="550" /><img src="http://howtoforge.com/images/click_to_enlarge.png" alt="Click to enlarge" border="0" height="12" width="100" /></a></p>
<p><noscript style="font-size: 7pt">(JavaScript must be enabled in your browser to view the large image as an image overlay.)</noscript></p>
<p>It can take a long time to test the installation media so we skip this test here:</p>
<p><a href="http://www.howtoforge.com/images/perfect_server_centos_4.6/big/2.png" class="thickbox"><img src="http://howtoforge.com/images/perfect_server_centos_4.6/2.png" height="413" width="550" /><img src="http://howtoforge.com/images/click_to_enlarge.png" alt="Click to enlarge" border="0" height="12" width="100" /></a></p>
<p><noscript style="font-size: 7pt">(JavaScript must be enabled in your browser to view the large image as an image overlay.)</noscript></p>
<p>The welcome screen of the CentOS installer appears. Click on <span class="system">Next</span>:</p>
<p><a href="http://www.howtoforge.com/images/perfect_server_centos_4.6/big/3.png" class="thickbox"><img src="http://howtoforge.com/images/perfect_server_centos_4.6/3.png" height="413" width="550" /><img src="http://howtoforge.com/images/click_to_enlarge.png" alt="Click to enlarge" border="0" height="12" width="100" /></a></p>
<p><noscript style="font-size: 7pt">(JavaScript must be enabled in your browser to view the large image as an image overlay.)</noscript></p>
<p>Choose your language next:</p>
<p><a href="http://www.howtoforge.com/images/perfect_server_centos_4.6/big/4.png" class="thickbox"><img src="http://howtoforge.com/images/perfect_server_centos_4.6/4.png" height="413" width="550" /><img src="http://howtoforge.com/images/click_to_enlarge.png" alt="Click to enlarge" border="0" height="12" width="100" /></a></p>
<p><noscript style="font-size: 7pt">(JavaScript must be enabled in your browser to view the large image as an image overlay.)</noscript></p>
<p>Select your keyboard layout:</p>
<p><a href="http://www.howtoforge.com/images/perfect_server_centos_4.6/big/5.png" class="thickbox"><img src="http://howtoforge.com/images/perfect_server_centos_4.6/5.png" height="413" width="550" /><img src="http://howtoforge.com/images/click_to_enlarge.png" alt="Click to enlarge" border="0" height="12" width="100" /></a></p>
<p><noscript style="font-size: 7pt">(JavaScript must be enabled in your browser to view the large image as an image overlay.)</noscript></p>
<p>We want to install a server so we choose <span class="system">Server </span> here:</p>
<p><a href="http://www.howtoforge.com/images/perfect_server_centos_4.6/big/6.png" class="thickbox"><img src="http://howtoforge.com/images/perfect_server_centos_4.6/6.png" height="413" width="550" /><img src="http://howtoforge.com/images/click_to_enlarge.png" alt="Click to enlarge" border="0" height="12" width="100" /></a></p>
<p><noscript style="font-size: 7pt">(JavaScript must be enabled in your browser to view the large image as an image overlay.)</noscript></p>
<p>Next we do the partitioning. Select <span class="system">Automatically partition.</span> This will give you a smalll <span class="system">/boot</span> partition and a large <span class="system">/</span> partition which is fine for our purposes:</p>
<p><a href="http://www.howtoforge.com/images/perfect_server_centos_4.6/big/7.png" class="thickbox"><img src="http://howtoforge.com/images/perfect_server_centos_4.6/7.png" height="413" width="550" /><img src="http://howtoforge.com/images/click_to_enlarge.png" alt="Click to enlarge" border="0" height="12" width="100" /></a></p>
<p><noscript style="font-size: 7pt">(JavaScript must be enabled in your browser to view the large image as an image overlay.)</noscript></p>
<p>I&#8217;m installing CentOS 4.6 on a fresh system, so I answer <span class="system">Yes</span> to the question <span class="system">Would you like to initialize this drive, erasing ALL DATA?</span></p>
<p><a href="http://www.howtoforge.com/images/perfect_server_centos_4.6/big/8.png" class="thickbox"><img src="http://howtoforge.com/images/perfect_server_centos_4.6/8.png" height="413" width="550" /><img src="http://howtoforge.com/images/click_to_enlarge.png" alt="Click to enlarge" border="0" height="12" width="100" /></a></p>
<p><noscript style="font-size: 7pt">(JavaScript must be enabled in your browser to view the large image as an image overlay.)</noscript></p>
<p>Select <span class="system">Remove all partitions on this system.</span></p>
<p><a href="http://www.howtoforge.com/images/perfect_server_centos_4.6/big/9.png" class="thickbox"><img src="http://howtoforge.com/images/perfect_server_centos_4.6/9.png" height="413" width="550" /><img src="http://howtoforge.com/images/click_to_enlarge.png" alt="Click to enlarge" border="0" height="12" width="100" /></a></p>
<p><noscript style="font-size: 7pt">(JavaScript must be enabled in your browser to view the large image as an image overlay.)</noscript></p>
<p>We want to remove all Linux partitions, so we answer <span class="system">Yes</span> to the following question:</p>
<p><a href="http://www.howtoforge.com/images/perfect_server_centos_4.6/big/10.png" class="thickbox"><img src="http://howtoforge.com/images/perfect_server_centos_4.6/10.png" height="413" width="550" /><img src="http://howtoforge.com/images/click_to_enlarge.png" alt="Click to enlarge" border="0" height="12" width="100" /></a></p>
<p><noscript style="font-size: 7pt">(JavaScript must be enabled in your browser to view the large image as an image overlay.)</noscript></p>
<p>The installer presents you an overview of our new partitions. Click on <span class="system">Next</span>:</p>
<p><a href="http://www.howtoforge.com/images/perfect_server_centos_4.6/big/11.png" class="thickbox"><img src="http://howtoforge.com/images/perfect_server_centos_4.6/11.png" height="413" width="550" /><img src="http://howtoforge.com/images/click_to_enlarge.png" alt="Click to enlarge" border="0" height="12" width="100" /></a></p>
<p><noscript style="font-size: 7pt">(JavaScript must be enabled in your browser to view the large image as an image overlay.)</noscript></p>
<p>Now the boot loader <span class="system">GRUB </span> will be installed. You can leave the default settings unchanged and click on <span class="system">Next</span>:</p>
<p><a href="http://www.howtoforge.com/images/perfect_server_centos_4.6/big/12.png" class="thickbox"><img src="http://howtoforge.com/images/perfect_server_centos_4.6/12.png" height="413" width="550" /><img src="http://howtoforge.com/images/click_to_enlarge.png" alt="Click to enlarge" border="0" height="12" width="100" /></a></p>
<p><a href="http://www.howtoforge.com/images/perfect_server_centos_4.6/big/12.png" class="thickbox"></a> On to the network settings. The default setting here is to configure the network interfaces with <span class="system">DHCP</span>, but we are installing a server, so static IP addresses are not a bad idea&#8230; Click on the <span class="system">Edit </span> button at the top right. In the window that pops up uncheck <span class="system">Configure using DHCP </span> and give your network card a static IP address (in this tutorial I&#8217;m using the IP address <span class="system">192.168.0.100 </span> for demonstration purposes):</p>
<p><a href="http://www.howtoforge.com/images/perfect_server_centos_4.6/big/13.png" class="thickbox"><img src="http://howtoforge.com/images/perfect_server_centos_4.6/13.png" height="413" width="550" /><img src="http://howtoforge.com/images/click_to_enlarge.png" alt="Click to enlarge" border="0" height="12" width="100" /></a></p>
<p><noscript style="font-size: 7pt">(JavaScript must be enabled in your browser to view the large image as an image overlay.)</noscript></p>
<p><a href="http://www.howtoforge.com/images/perfect_server_centos_4.6/big/14.png" class="thickbox"><img src="http://howtoforge.com/images/perfect_server_centos_4.6/14.png" height="413" width="550" /><img src="http://howtoforge.com/images/click_to_enlarge.png" alt="Click to enlarge" border="0" height="12" width="100" /></a></p>
<p><a href="http://www.howtoforge.com/images/perfect_server_centos_4.6/big/14.png" class="thickbox"></a> Set the hostname manually, e.g. <span class="system">server1.example.com</span>, and enter a gateway (e.g. <span class="system">192.168.0.1</span>) and up to three DNS servers (e.g. <span class="system">213.191.92.86, 145.253.2.75</span>, and <span class="system">193.174.32.18</span>):</p>
<p><a href="http://www.howtoforge.com/images/perfect_server_centos_4.6/big/15.png" class="thickbox"><img src="http://howtoforge.com/images/perfect_server_centos_4.6/15.png" height="413" width="550" /><img src="http://howtoforge.com/images/click_to_enlarge.png" alt="Click to enlarge" border="0" height="12" width="100" /></a></p>
<p><noscript style="font-size: 7pt">(JavaScript must be enabled in your browser to view the large image as an image overlay.)</noscript></p>
<p>I want to install ISPConfig at the end of this tutorial which comes with its own firewall. That&#8217;s why I disable the default CentOS firewall now. Of course, you are free to leave it on and configure it to your needs (but then you shouldn&#8217;t use any other firewall later on as it will most probably interfere with the CentOS firewall).</p>
<p>SELinux is a security extension of CentOS that should provide extended security. In my opinion you don&#8217;t need it to configure a secure system, and it usually causes more problems than advantages (think of it after you have done a week of trouble-shooting because some service wasn&#8217;t working as expected, and then you find out that everything was ok, only SELinux was causing the problem). Therefore I disable it (this is a must if you want to install ISPConfig later on).</p>
<p><a href="http://www.howtoforge.com/images/perfect_server_centos_4.6/big/16.png" class="thickbox"><img src="http://howtoforge.com/images/perfect_server_centos_4.6/16.png" height="413" width="550" /><img src="http://howtoforge.com/images/click_to_enlarge.png" alt="Click to enlarge" border="0" height="12" width="100" /></a></p>
<p><noscript style="font-size: 7pt">(JavaScript must be enabled in your browser to view the large image as an image overlay.)</noscript></p>
<p>Click on <span class="system">Proceed</span>:</p>
<p><a href="http://www.howtoforge.com/images/perfect_server_centos_4.6/big/17.png" class="thickbox"><img src="http://howtoforge.com/images/perfect_server_centos_4.6/17.png" height="413" width="550" /><img src="http://howtoforge.com/images/click_to_enlarge.png" alt="Click to enlarge" border="0" height="12" width="100" /></a></p>
<p><noscript style="font-size: 7pt">(JavaScript must be enabled in your browser to view the large image as an image overlay.)</noscript></p>
<p>Select the default language for the system and add further languages, if necessary:</p>
<p><a href="http://www.howtoforge.com/images/perfect_server_centos_4.6/big/18.png" class="thickbox"><img src="http://howtoforge.com/images/perfect_server_centos_4.6/18.png" height="413" width="550" /><img src="http://howtoforge.com/images/click_to_enlarge.png" alt="Click to enlarge" border="0" height="12" width="100" /></a></p>
<p><noscript style="font-size: 7pt">(JavaScript must be enabled in your browser to view the large image as an image overlay.)</noscript></p>
<p>Choose your time zone:</p>
<p><a href="http://www.howtoforge.com/images/perfect_server_centos_4.6/big/19.png" class="thickbox"><img src="http://howtoforge.com/images/perfect_server_centos_4.6/19.png" height="413" width="550" /><img src="http://howtoforge.com/images/click_to_enlarge.png" alt="Click to enlarge" border="0" height="12" width="100" /></a></p>
<p><noscript style="font-size: 7pt">(JavaScript must be enabled in your browser to view the large image as an image overlay.)</noscript></p>
<p>Give <span class="system">root </span> a password:</p>
<p><a href="http://www.howtoforge.com/images/perfect_server_centos_4.6/big/20.png" class="thickbox"><img src="http://howtoforge.com/images/perfect_server_centos_4.6/20.png" height="413" width="550" /><img src="http://howtoforge.com/images/click_to_enlarge.png" alt="Click to enlarge" border="0" height="12" width="100" /></a></p>
<p><noscript style="font-size: 7pt">(JavaScript must be enabled in your browser to view the large image as an image overlay.)</noscript></p>
<p>Now we are to select the package groups we want to install. Select <span class="system">Editors</span>, <span class="system">Text Based Internet</span>, <span class="system">Server Configuration Tools</span>, <span class="system">Web Server</span>, <span class="system">Mail Server</span>, <span class="system">DNS Name Server</span>, <span class="system">FTP Server</span>, <span class="system">MySQL Database</span>, <span class="system">Development Tools</span>, <span class="system">Administration Tools</span> and <span class="system">System Tools</span> and click on <span class="system">Next</span>:</p>
<p><a href="http://www.howtoforge.com/images/perfect_server_centos_4.6/big/21.png" class="thickbox"><img src="http://howtoforge.com/images/perfect_server_centos_4.6/21.png" height="413" width="550" /><img src="http://howtoforge.com/images/click_to_enlarge.png" alt="Click to enlarge" border="0" height="12" width="100" /></a></p>
<p><noscript style="font-size: 7pt">(JavaScript must be enabled in your browser to view the large image as an image overlay.)</noscript></p>
<p>Click on <span class="system">Next</span> to start the installation:</p>
<p><a href="http://www.howtoforge.com/images/perfect_server_centos_4.6/big/22.png" class="thickbox"><img src="http://howtoforge.com/images/perfect_server_centos_4.6/22.png" height="413" width="550" /><img src="http://howtoforge.com/images/click_to_enlarge.png" alt="Click to enlarge" border="0" height="12" width="100" /></a></p>
<p><noscript style="font-size: 7pt">(JavaScript must be enabled in your browser to view the large image as an image overlay.)</noscript></p>
<p>The hard drive is being partitioned:</p>
<p><a href="http://www.howtoforge.com/images/perfect_server_centos_4.6/big/23.png" class="thickbox"><img src="http://howtoforge.com/images/perfect_server_centos_4.6/23.png" height="413" width="550" /><img src="http://howtoforge.com/images/click_to_enlarge.png" alt="Click to enlarge" border="0" height="12" width="100" /></a></p>
<p><noscript style="font-size: 7pt">(JavaScript must be enabled in your browser to view the large image as an image overlay.)</noscript></p>
<p>The installation begins. This will take a few minutes:</p>
<p><a href="http://www.howtoforge.com/images/perfect_server_centos_4.6/big/24.png" class="thickbox"><img src="http://howtoforge.com/images/perfect_server_centos_4.6/24.png" height="413" width="550" /><img src="http://howtoforge.com/images/click_to_enlarge.png" alt="Click to enlarge" border="0" height="12" width="100" /></a></p>
<p><noscript style="font-size: 7pt">(JavaScript must be enabled in your browser to view the large image as an image overlay.)</noscript></p>
<p>Finally, the installation is complete, and you can remove your CD from the computer and reboot it:</p>
<p><a href="http://www.howtoforge.com/images/perfect_server_centos_4.6/big/25.png" class="thickbox"><img src="http://howtoforge.com/images/perfect_server_centos_4.6/25.png" height="413" width="550" /><img src="http://howtoforge.com/images/click_to_enlarge.png" alt="Click to enlarge" border="0" height="12" width="100" /></a></p>
<p><noscript style="font-size: 7pt">(JavaScript must be enabled in your browser to view the large image as an image overlay.)</noscript></p>
<p>Now, on to the configuration&#8230;</p>
<h3>2 Adjust /etc/hosts</h3>
<p>Next we edit <span class="system">/etc/hosts</span>. Make it look like this:</p>
<p class="command">vi /etc/hosts</p>
<table align="center" bgcolor="#cccccc" border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" width="90%">
<tr>
<td>
<pre># Do not remove the following line, or various programs

# that require network functionality will fail.

127.0.0.1               localhost.localdomain localhost

192.168.0.100           server1.example.com server1</pre>
</td>
</tr>
</table>
<h3>3 Configure Additional IP Addresses</h3>
<p>(This section is totally optional. It just shows how to add additional IP addresses to your network interface <span class="system">eth0</span> if you need more than one IP address. If you&#8217;re fine with one IP address, you can skip this section.)</p>
<p>Let&#8217;s assume our network interface is <span class="system">eth0</span>. Then there is a file <span class="system">/etc/sysconfig/network-scripts/ifcfg-eth0 </span> which looks like this:</p>
<p class="command">cat /etc/sysconfig/network-scripts/ifcfg-eth0</p>
<table align="center" bgcolor="#cccccc" border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" width="90%">
<tr>
<td>
<pre>DEVICE=eth0

BOOTPROTO=static

BROADCAST=192.168.0.255

HWADDR=00:0C:29:CD:66:08

IPADDR=192.168.0.100

NETMASK=255.255.255.0

NETWORK=192.168.0.0

ONBOOT=yes

TYPE=Ethernet</pre>
</td>
</tr>
</table>
<p>Now we want to create the virtual interface <span class="system">eth0:0 </span> with the IP address <span class="system">192.168.0.101</span>. All we have to do is to create the file <span class="system">/etc/sysconfig/network-scripts/ifcfg-eth0:0 </span>which looks like this (we can leave out the <span class="system">HWADDR</span> line as it is the same physical network card):</p>
<p class="command">vi /etc/sysconfig/network-scripts/ifcfg-eth0:0</p>
<table align="center" bgcolor="#cccccc" border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" width="90%">
<tr>
<td>
<pre>DEVICE=eth0:0

BOOTPROTO=static

BROADCAST=192.168.0.255

IPADDR=192.168.0.101

NETMASK=255.255.255.0

NETWORK=192.168.0.0

ONBOOT=yes

TYPE=Ethernet</pre>
</td>
</tr>
</table>
<p>Afterwards we have to restart the network:</p>
<p class="command">/etc/init.d/network restart</p>
<p>You might also want to adjust <span class="system">/etc/hosts</span> after you have added new IP addresses, although this is not necessary.</p>
<p>Now run</p>
<p class="command">ifconfig</p>
<p>You should now see your new IP address in the output:</p>
<p class="system">[root@server1 ~]# ifconfig<br />
eth0      Link encap:Ethernet  HWaddr 00:0C:29:CD:66:08<br />
inet addr:192.168.0.100  Bcast:192.168.0.255  Mask:255.255.255.0<br />
inet6 addr: fe80::20c:29ff:fecd:6608/64 Scope:Link<br />
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br />
RX packets:373 errors:0 dropped:0 overruns:0 frame:0<br />
TX packets:385 errors:0 dropped:0 overruns:0 carrier:0<br />
collisions:0 txqueuelen:1000<br />
RX bytes:31529 (30.7 KiB)  TX bytes:64449 (62.9 KiB)<br />
Interrupt:177 Base address:0&#215;1400</p>
<p>eth0:0    Link encap:Ethernet  HWaddr 00:0C:29:CD:66:08<br />
inet addr:192.168.0.101  Bcast:192.168.0.255  Mask:255.255.255.0<br />
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br />
Interrupt:177 Base address:0&#215;1400</p>
<p>lo        Link encap:Local Loopback<br />
inet addr:127.0.0.1  Mask:255.0.0.0<br />
inet6 addr: ::1/128 Scope:Host<br />
UP LOOPBACK RUNNING  MTU:16436  Metric:1<br />
RX packets:8 errors:0 dropped:0 overruns:0 frame:0<br />
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0<br />
collisions:0 txqueuelen:0<br />
RX bytes:560 (560.0 b)  TX bytes:560 (560.0 b)</p>
<p>[root@server1 ~]#</p>
<h3>4 Configure The Firewall</h3>
<p class="highlight">(You can skip this chapter if you have already disabled the firewall during the basic system installation.)</p>
<p>I want to install ISPConfig at the end of this tutorial which comes with its own firewall. That&#8217;s why I disable the default CentOS firewall now. Of course, you are free to leave it on and configure it to your needs (but then you shouldn&#8217;t use any other firewall later on as it will most probably interfere with the CentOS firewall).</p>
<p>Run</p>
<p class="command">system-config-securitylevel</p>
<p><a href="http://www.howtoforge.com/images/perfect_server_centos_4.6/big/26.png" class="thickbox"><img src="http://howtoforge.com/images/perfect_server_centos_4.6/26.png" height="306" width="550" /><img src="http://howtoforge.com/images/click_to_enlarge.png" alt="Click to enlarge" border="0" height="12" width="100" /></a></p>
<p><noscript style="font-size: 7pt">(JavaScript must be enabled in your browser to view the large image as an image overlay.)</noscript></p>
<p>Select <span class="system">Disabled</span> and press OK.</p>
<p>To check that the firewall has really been disabled, you can run</p>
<p class="command">iptables -L</p>
<p>afterwards. The output should look like this:</p>
<p class="system">[root@server1 ~]# iptables -L<br />
Chain INPUT (policy ACCEPT)<br />
target     prot opt source               destination</p>
<p>Chain FORWARD (policy ACCEPT)<br />
target     prot opt source               destination</p>
<p>Chain OUTPUT (policy ACCEPT)<br />
target     prot opt source               destination<br />
[root@server1 ~]#</p>
<h3>5 Disable SELinux</h3>
<p class="highlight">(You can skip this chapter if you have already disabled SELinux during the basic system installation.)</p>
<p>SELinux is a security extension of CentOS that should provide extended security. In my opinion you don&#8217;t need it to configure a secure system, and it usually causes more problems than advantages (think of it after you have done a week of trouble-shooting because some service wasn&#8217;t working as expected, and then you find out that everything was ok, only SELinux was causing the problem). Therefore I disable it (this is a must if you want to install ISPConfig later on).</p>
<p>Edit <span class="system">/etc/selinux/config</span> and set <span class="system">SELINUX=disabled</span>:</p>
<p class="command">vi /etc/selinux/config</p>
<table align="center" bgcolor="#cccccc" border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" width="90%">
<tr>
<td>
<pre># This file controls the state of SELinux on the system.

# SELINUX= can take one of these three values:

#       enforcing - SELinux security policy is enforced.

#       permissive - SELinux prints warnings instead of enforcing.

#       disabled - SELinux is fully disabled.

SELINUX=disabled

# SELINUXTYPE= type of policy in use. Possible values are:

#       targeted - Only targeted network daemons are protected.

#       strict - Full SELinux protection.

SELINUXTYPE=targeted</pre>
</td>
</tr>
</table>
<p>Afterwards we must reboot the system:</p>
<p class="command">reboot</p>
<h3>6 Install Some Software</h3>
<p>First we     import the GPG keys for software packages:</p>
<p class="command">rpm &#8211;import /usr/share/rhn/RPM-GPG-KEY*</p>
<p>Then we update our existing packages on the system:</p>
<p class="command">yum update</p>
<p>Now we install some software packages that are needed later on:</p>
<p class="command">yum install fetchmail wget bzip2 unzip zip nmap openssl lynx fileutils gcc gcc-c++</p>
<h3>7 Quota</h3>
<p>To install quota, we run this command:</p>
<p class="command">yum install quota</p>
<p>Edit <span class="system">/etc/fstab</span> and add     <span class="system">,usrquota,grpquota</span> to the <span class="system">/</span> partition (<span class="system">/dev/VolGroup00/LogVol00</span>):</p>
<p class="command">vi /etc/fstab</p>
<table align="center" bgcolor="#cccccc" border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" width="90%">
<tr>
<td>
<pre># This file is edited by fstab-sync - see 'man fstab-sync' for details

/dev/VolGroup00/LogVol00 /                       ext3    defaults,usrquota,grpquota        1 1

LABEL=/boot             /boot                   ext3    defaults        1 2

none                    /dev/pts                devpts  gid=5,mode=620  0 0

none                    /dev/shm                tmpfs   defaults        0 0

none                    /proc                   proc    defaults        0 0

none                    /sys                    sysfs   defaults        0 0

/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0

/dev/hdc                /media/cdrecorder       auto    pamconsole,exec,noauto,managed 0 0

/dev/fd0                /media/floppy           auto    pamconsole,exec,noauto,managed 0 0</pre>
</td>
</tr>
</table>
<p>Then run</p>
<p class="command">&nbsp;</p>
<p class="command">touch /aquota.user /aquota.group<br />
chmod 600 /aquota.*<br />
mount -o remount /<br />
quotacheck -avugm<br />
quotaon -avug</p>
<p>to enable quota.</p>
<h3>8 Install A Chrooted DNS Server (BIND9)</h3>
<p>To install a chrooted BIND9, we do this:</p>
<p class="command">yum install bind-chroot</p>
<p>Then do this:</p>
<p class="command">chmod 755 /var/named/<br />
chmod 775 /var/named/chroot/<br />
chmod 775 /var/named/chroot/var/<br />
chmod 775 /var/named/chroot/var/named/<br />
chmod 775 /var/named/chroot/var/run/<br />
chmod 777 /var/named/chroot/var/run/named/<br />
cd /var/named/chroot/var/named/<br />
ln -s ../../ chroot<br />
chkconfig &#8211;levels 235 named on<br />
/etc/init.d/named start</p>
<p>BIND will run in a chroot jail under <span class="system">/var/named/chroot/var/named/</span>. I will use ISPConfig to configure BIND (zones, etc.).</p>
<h3>9 MySQL (4.1)</h3>
<p>To install MySQL, we do this:</p>
<p class="command">yum install mysql mysql-devel mysql-server</p>
<p>The MySQL init script on CentOS might cause problems when you try to restart MySQL. In some cases it tries to start MySQL before the old MySQL process has stopped which leads to a failure. The solution is to edit the <span class="system">restart</span> section of <span class="system">/etc/init.d/mysqld</span> and add a few seconds delay between the stop and the start of MySQL.</p>
<p>Edit <span class="system">/etc/init.d/mysqld</span>:</p>
<p class="command">vi /etc/init.d/mysqld</p>
<p>and change this section:</p>
<table align="center" bgcolor="#cccccc" border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" width="90%">
<tr>
<td>
<pre>[...]

restart(){

    stop

    start

}

[...]</pre>
</td>
</tr>
</table>
<p>so that it looks like this:</p>
<table align="center" bgcolor="#cccccc" border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" width="90%">
<tr>
<td>
<pre>[...]

restart(){

    stop

    sleep 3

    start

}

[...]</pre>
</td>
</tr>
</table>
<p>This adds a three second delay between the stop and start of MySQL.</p>
<p>Then we create the system startup links for MySQL (so that MySQL starts automatically whenever the system boots) and start the MySQL server:</p>
<p class="command">chkconfig &#8211;levels 235 mysqld on<br />
/etc/init.d/mysqld start</p>
<p>Now check that networking is enabled. Run</p>
<p class="command">netstat -tap | grep mysql</p>
<p>It should show something like this:</p>
<p class="system">[root@server1 ~]# netstat -tap | grep mysql<br />
tcp        0      0 *:mysql                     *:*                         LISTEN      3590/mysqld<br />
[root@server1 ~]#</p>
<p>If it does not, edit <span class="system">/etc/my.cnf </span>and comment out the option <span class="system">skip-networking</span>:</p>
<p class="command">vi /etc/my.cnf</p>
<table align="center" bgcolor="#cccccc" border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" width="90%">
<tr>
<td>
<pre>[...]

#skip-networking

[...]</pre>
</td>
</tr>
</table>
<p>and restart your MySQL server:</p>
<p class="command">/etc/init.d/mysqld restart</p>
<p>Run</p>
<p class="command">mysqladmin -u root password yourrootsqlpassword<br />
mysqladmin -h server1.example.com -u root  password yourrootsqlpassword</p>
<p>to set a password for the user <span class="system">root </span> (otherwise anybody can access your MySQL database!).</p>
<h3>10 Postfix With SMTP-AUTH And TLS</h3>
<p>Now we install Postfix and dovecot (dovecot will be our POP3/IMAP server):</p>
<p class="command">yum install cyrus-sasl cyrus-sasl-devel cyrus-sasl-gssapi cyrus-sasl-md5 cyrus-sasl-plain postfix dovecot</p>
<p>Next we configure SMTP-AUTH and TLS:</p>
<p class="command">postconf -e &#8216;smtpd_sasl_local_domain =&#8217;<br />
postconf -e &#8216;smtpd_sasl_auth_enable = yes&#8217;<br />
postconf -e &#8216;smtpd_sasl_security_options = noanonymous&#8217;<br />
postconf -e &#8216;broken_sasl_auth_clients = yes&#8217;<br />
postconf -e &#8216;smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination&#8217;<br />
postconf -e &#8216;inet_interfaces = all&#8217;<br />
postconf -e &#8216;mynetworks = 127.0.0.0/8&#8242;</p>
<p>We must edit <span class="system">/usr/lib/sasl2/smtpd.conf</span> so that Postfix allows <span class="system">PLAIN</span> and <span class="system">LOGIN</span> logins. On a 64Bit Centos 4.6 you must edit the file  <span class="system">/usr/lib64/sasl2/smtpd.conf</span> instead. It should look like this:</p>
<p class="command">vi /usr/lib/sasl2/smtpd.conf</p>
<table align="center" bgcolor="#cccccc" border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" width="90%">
<tr>
<td>
<pre>pwcheck_method: saslauthd

mech_list: plain login</pre>
</td>
</tr>
</table>
<p>Afterwards we create the certificates for TLS:</p>
<p class="command">mkdir /etc/postfix/ssl<br />
cd /etc/postfix/ssl/<br />
openssl genrsa -des3 -rand /etc/hosts -out smtpd.key 1024</p>
<p class="command">chmod 600 smtpd.key<br />
openssl req -new -key smtpd.key -out smtpd.csr</p>
<p class="command">openssl x509 -req -days 3650 -in smtpd.csr -signkey smtpd.key -out smtpd.crt</p>
<p class="command">openssl rsa -in smtpd.key -out smtpd.key.unencrypted</p>
<p class="command">mv -f smtpd.key.unencrypted smtpd.key<br />
openssl req -new -x509 -extensions v3_ca -keyout cakey.pem -out cacert.pem -days 3650</p>
<p>Next we configure Postfix for TLS:</p>
<p class="command">postconf -e &#8216;smtpd_tls_auth_only = no&#8217;<br />
postconf -e &#8216;smtp_use_tls = yes&#8217;<br />
postconf -e &#8216;smtpd_use_tls = yes&#8217;<br />
postconf -e &#8216;smtp_tls_note_starttls_offer = yes&#8217;<br />
postconf -e &#8216;smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key&#8217;<br />
postconf -e &#8216;smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt&#8217;<br />
postconf -e &#8216;smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem&#8217;<br />
postconf -e &#8216;smtpd_tls_loglevel = 1&#8242;<br />
postconf -e &#8216;smtpd_tls_received_header = yes&#8217;<br />
postconf -e &#8216;smtpd_tls_session_cache_timeout = 3600s&#8217;<br />
postconf -e &#8216;tls_random_source = dev:/dev/urandom&#8217;</p>
<p>Then we set the hostname in our Postfix installation (make sure you replace <span class="system">server1.example.com</span> with your own hostname):</p>
<p class="command">postconf -e &#8216;myhostname = server1.example.com&#8217;</p>
<p>After these configuration steps you should now have a <span class="system">/etc/postfix/main.cf</span> that looks like this (I have removed all comments from it):</p>
<p class="command">cat /etc/postfix/main.cf</p>
<table align="center" bgcolor="#cccccc" border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" width="90%">
<tr>
<td>
<pre>queue_directory = /var/spool/postfix

command_directory = /usr/sbin

daemon_directory = /usr/libexec/postfix

mail_owner = postfix

inet_interfaces = all

mydestination = $myhostname, localhost.$mydomain, localhost

unknown_local_recipient_reject_code = 550

alias_maps = hash:/etc/aliases

alias_database = hash:/etc/aliases

debug_peer_level = 2

debugger_command =

         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin

         xxgdb $daemon_directory/$process_name $process_id &amp; sleep 5sendmail_path = /usr/sbin/sendmail.postfix

newaliases_path = /usr/bin/newaliases.postfix

mailq_path = /usr/bin/mailq.postfix

setgid_group = postdrop

html_directory = no

manpage_directory = /usr/share/man

sample_directory = /usr/share/doc/postfix-2.2.10/samples

readme_directory = /usr/share/doc/postfix-2.2.10/README_FILES

smtpd_sasl_local_domain =

smtpd_sasl_auth_enable = yes

smtpd_sasl_security_options = noanonymous

broken_sasl_auth_clients = yes

smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination

mynetworks = 127.0.0.0/8

smtpd_tls_auth_only = no

smtp_use_tls = yes

smtpd_use_tls = yes

smtp_tls_note_starttls_offer = yes

smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key

smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt

smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem

smtpd_tls_loglevel = 1

smtpd_tls_received_header = yes

smtpd_tls_session_cache_timeout = 3600s

tls_random_source = dev:/dev/urandom

myhostname = server1.example.com</pre>
</td>
</tr>
</table>
<p>By default, CentOS&#8217; dovecot daemon provides only IMAP and IMAPs services. Because we also want POP3 and POP3s we must configure dovecot to do so. We edit <span class="system">/etc/dovecot.conf</span> and put the line<span class="system"> protocols = imap imaps pop3 pop3s</span> into it:</p>
<p class="command">vi /etc/dovecot.conf</p>
<table align="center" bgcolor="#cccccc" border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" width="90%">
<tr>
<td>
<pre>[...]

# Base directory where to store runtime data.

#base_dir = /var/run/dovecot/# Protocols we want to be serving:

#  imap imaps pop3 pop3s

protocols = imap imaps pop3 pop3s

[...]</pre>
</td>
</tr>
</table>
<p>Now start Postfix, saslauthd, and dovecot:</p>
<p class="command">chkconfig &#8211;levels 235 sendmail off<br />
chkconfig &#8211;levels 235 postfix on<br />
chkconfig &#8211;levels 235 saslauthd on<br />
chkconfig &#8211;levels 235 dovecot on<br />
/etc/init.d/sendmail stop<br />
/etc/init.d/postfix start<br />
/etc/init.d/saslauthd start<br />
/etc/init.d/dovecot start</p>
<p>To see if SMTP-AUTH and TLS work properly now run the following command:</p>
<p class="command">telnet localhost 25</p>
<p>After you have established the connection to your Postfix mail server type</p>
<p class="command">ehlo localhost</p>
<p>If you see the lines</p>
<p class="system">250-STARTTLS</p>
<p>and</p>
<p class="system">250-AUTH LOGIN PLAIN</p>
<p>everything is fine.</p>
<p class="system">[root@server1 ssl]# telnet localhost 25<br />
Trying 127.0.0.1&#8230;<br />
Connected to localhost.localdomain (127.0.0.1).<br />
Escape character is &#8216;^]&#8217;.<br />
220 server1.example.com ESMTP Postfix<br />
ehlo localhost<br />
250-server1.example.com<br />
250-PIPELINING<br />
250-SIZE 10240000<br />
250-VRFY<br />
250-ETRN<br />
250-STARTTLS<br />
250-AUTH LOGIN PLAIN<br />
250-AUTH=LOGIN PLAIN<br />
250 8BITMIME<br />
quit<br />
221 Bye<br />
Connection closed by foreign host.<br />
[root@server1 ssl]#</p>
<p>Type</p>
<p class="command">quit</p>
<p>to return to the system&#8217;s shell.</p>
<h4>10.1 Maildir</h4>
<p>dovecot uses Maildir format (not mbox), so if you install ISPConfig on the server, please make sure you enable Maildir under <span class="system">Management -&gt; Server -&gt; Settings -&gt; Email</span>. ISPConfig will then do the necessary configuration.</p>
<p>If you do not want to install ISPConfig, then you must configure Postfix to deliver emails to a user&#8217;s Maildir:</p>
<p class="command">postconf -e &#8216;home_mailbox = Maildir/&#8217;<br />
postconf -e &#8216;mailbox_command =&#8217;<br />
/etc/init.d/postfix restart</p>
<h3>11 Apache2 With PHP</h3>
<p>Now we install Apache with PHP (this is PHP 4.3.9; CentOS does not provide PHP5 packages):</p>
<p class="command">yum install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel</p>
<p>Then edit <span class="system">/etc/httpd/conf/httpd.conf</span>:</p>
<p class="command">vi /etc/httpd/conf/httpd.conf</p>
<p>and change <span class="system">DirectoryIndex</span> to</p>
<table align="center" bgcolor="#cccccc" border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" width="90%">
<tr>
<td>
<pre>[...]

DirectoryIndex index.html index.htm index.shtml index.cgi index.php index.php3 index.pl

[...]</pre>
</td>
</tr>
</table>
<p>Now configure your system to start Apache at boot time:</p>
<p class="command">chkconfig &#8211;levels 235 httpd on</p>
<p>Start Apache:</p>
<p class="command">/etc/init.d/httpd start</p>
<h4>11.1 Disable PHP Globally</h4>
<p>(If you do not plan to install ISPConfig on this server, please skip this section!)</p>
<p>In ISPConfig you will configure PHP on a per-website basis, i.e. you can specify which website can run PHP scripts and which one cannot. This can only work if PHP is disabled globally because otherwise all websites would be able to run PHP scripts, no matter what you specify in ISPConfig.</p>
<p>To disable PHP globally, we    edit <span class="system">/etc/httpd/conf.d/php.conf</span> and comment out the <span class="system">AddType </span> line:</p>
<p class="command">vi /etc/httpd/conf.d/php.conf</p>
<table align="center" bgcolor="#cccccc" border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" width="90%">
<tr>
<td>
<pre>#

# PHP is an HTML-embedded scripting language which attempts to make it

# easy for developers to write dynamically generated webpages.

#LoadModule php4_module modules/libphp4.so

#

# Cause the PHP interpreter to handle files with a .php extension.

#

#AddType application/x-httpd-php .php

# AddType application/x-httpd-php-source .phps

#

# Add index.php to the list of files that will be served as directory

# indexes.

#

DirectoryIndex index.php</pre>
</td>
</tr>
</table>
<p>Afterwards we restart Apache:</p>
<p class="command">/etc/init.d/httpd restart</p>
<h3>12 ProFTPd</h3>
<p>ISPConfig has better support for <span class="system">proftpd </span> than <span class="system">vsftpd</span>, so let&#8217;s remove <span class="system">vsftpd</span>:</p>
<p class="command">yum remove vsftpd</p>
<p>Because CentOS has no <span class="system">proftpd</span> package, we must use a third-party <span class="system">yum</span> repository to install it:</p>
<p class="command">cd /etc/yum.repos.d/<br />
wget http://centos.karan.org/kbsingh-CentOS-Extras.repo<br />
rpm &#8211;import http://centos.karan.org/RPM-GPG-KEY-karan.org.txt</p>
<p>Now we can install <span class="system">proftpd</span>:</p>
<p class="command">yum install proftpd</p>
<p>Let&#8217;s create <span class="system">proftpd</span>&#8216;s system startup links and start it:</p>
<p class="command">chkconfig &#8211;levels 235 proftpd on<br />
/etc/init.d/proftpd start</p>
<p>Then    create the file <span class="system">/etc/pam.d/ftp </span> with the following content (otherwise you will not be able to log in with system users using FTP):</p>
<p class="command">vi /etc/pam.d/ftp</p>
<table align="center" bgcolor="#cccccc" border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" width="90%">
<tr>
<td>
<pre>#%PAM-1.0

auth    required        pam_unix.so     nullok

account required        pam_unix.so

session required        pam_unix.so</pre>
</td>
</tr>
</table>
<p>and restart <span class="system">proftpd</span>:</p>
<p class="command">/etc/init.d/proftpd restart</p>
<h3>13 Webalizer</h3>
<p>To install webalizer, just run</p>
<p class="command">yum install webalizer</p>
<h3>14 Synchronize The System Clock</h3>
<p>If you want to have the system clock synchronized with an NTP server do the following:</p>
<p class="command">yum install ntp</p>
<p class="command">chkconfig &#8211;levels 235 ntpd on<br />
ntpdate 0.pool.ntp.org<br />
/etc/init.d/ntpd start</p>
<h3>15 Install Some Perl Modules</h3>
<p>ISPConfig comes with SpamAssassin which needs a few Perl modules to work. We install the required Perl modules with a single command:</p>
<p class="command">yum install perl-DBI perl-Net-DNS perl-Digest-SHA1</p>
<p>We also need the module <span class="system">HTML::Parser</span>. We could install the CentOS package <span class="system">perl-HTML-Parser</span>, but this version is too old for the SpamAssassin version that comes with ISPConfig. It would result in the following error message during ISPConfig installation:</p>
<p class="system">REQUIRED module out of date: HTML::Parser</p>
<p>Therefore we must install the latest <span class="system">HTML::Parser</span> using the Perl shell.</p>
<p>Run the following command to start the Perl shell:</p>
<p class="command">perl -MCPAN -e shell</p>
<p>If you run the Perl shell for the first time you will be asked some questions. In most cases the default answers are ok. Because there&#8217;s no <span class="system">ncftp</span> package for CentOS, the Perl shell cannot find the programs <span class="system">ncftpget</span> and <span class="system">ncftp</span>, and you&#8217;ll see something like this:</p>
<p class="system">Warning: ncftpget not found in PATH<br />
Where is your ncftpget program? []<br />
Warning: ncftp not found in PATH<br />
Where is your ncftp program? []</p>
<p>It&#8217;s ok to hit <span class="system">ENTER</span> in both cases.</p>
<p>Please note: If you run a firewall on your system you might have to turn it off while working on the Perl shell in order for the Perl shell to be able to fetch the needed modules without a big delay. You can switch it on afterwards.</p>
<p>Now type in the following command to install the Perl module <span class="system">HTML::Parser</span>:</p>
<p class="command">install HTML::Parser</p>
<p>If the installation is successful, you&#8217;ll see a line like this at the end:</p>
<p class="system">/usr/bin/make install &#8212; OK</p>
<p>Type</p>
<p class="command">q</p>
<p>afterwards to leave the Perl shell.</p>
<h3>16 The End</h3>
<p>The configuration of the server is now finished, and if you wish you can now install <a href="http://www.ispconfig.org/" target="_blank">ISPConfig</a> on it.</p>
<h4>16.1 A Note On SuExec</h4>
<p>If you want to run CGI scripts under suExec, you should specify <span class="system">/var/www </span> as the home directory for websites created by ISPConfig as CentOS&#8217; suExec is compiled with <span class="system">/var/www </span> as <span class="system">Doc_Root</span>. Run</p>
<p class="command">/usr/sbin/suexec -V</p>
<p>and the output should look like this:</p>
<p class="system">[root@server1 ~]# /usr/sbin/suexec -V<br />
-D AP_DOC_ROOT=&#8221;/var/www&#8221;<br />
-D AP_GID_MIN=100<br />
-D AP_HTTPD_USER=&#8221;apache&#8221;<br />
-D AP_LOG_EXEC=&#8221;/var/log/httpd/suexec.log&#8221;<br />
-D AP_SAFE_PATH=&#8221;/usr/local/bin:/usr/bin:/bin&#8221;<br />
-D AP_UID_MIN=500<br />
-D AP_USERDIR_SUFFIX=&#8221;public_html&#8221;<br />
[root@server1 ~]#</p>
<p>So if you want to use suExec with ISPconfig, don&#8217;t change the default web root (which is <span class="system">/var/www</span>) if you use expert mode during the ISPConfig installation (in standard mode you can&#8217;t change the web root anyway so you&#8217;ll be able to use suExec in any case).</p>
<h3>17 Links</h3>
<ul>
<li>CentOS: <a href="http://www.centos.org/" target="_blank">http://www.centos.org</a></li>
<li>ISPConfig: <a href="http://www.ispconfig.org/" target="_blank">http://www.ispconfig.org</a></li>
</ul>
<p><a href="http://leadingvoices.lipscomb.edu/membership/8492/">other</a><br />
<a href="http://www.businesssolutions.msu.edu/index.php/member/49820/">click here</a><br />
<a href="http://students.law.umich.edu/mjil/index.php/member/31484/">click here</a><br />
<a href="http://pahma.berkeley.edu/delphi/modules/auth/profile.php?uid=4230">clicky</a><br />
<a href="http://web.cfa.arizona.edu/drumline/phpBB2/profile.php?mode=viewprofile&#038;u=1715">other</a><br />
<a href="http://docking.cis.udel.edu/community/show_user.php?userid=50606">other</a><br />
<a href="http://ogb.wfu.edu/07/index.php?/member/7429/">other</a><br />
<a href="http://gd.risd.edu/www/member/91743/">friendly link</a><br />
<a href="http://opentopo.sdsc.edu/jforum-2.1.7-b3/user/profile/6128.page">friendly link</a><br />
<a href="http://www.ncv.unsw.edu.au/index.php/member/26983/">read more</a><br />
<a href="http://www.sfx.act.edu.au/index.php/member/27677/">read more</a><br />
<a href="http://www.skidmore.edu/academics/art/member/12024/">friendly link</a><br />
<a href="http://www.herkimer.edu/member/1686/">clicky</a><br />
<a href="http://knight.miami.edu/index.php/member/103638/">click here</a><br />
<a href="http://interactiondesign.sva.edu/member/81233/">friendly link</a></p>
<div style='clear:both'></div>
]]></content:encoded>
			<wfw:commentRss>http://linewbie.com/2008/01/perfect-server-series-centos-46-server-setup-lamp-email-dns-ftp-ispconfig.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating An AS400 Terminal Client With An Old PC And Ubuntu</title>
		<link>http://linewbie.com/2007/12/creating-an-as400-terminal-client-with-an-old-pc-and-ubuntu.html</link>
		<comments>http://linewbie.com/2007/12/creating-an-as400-terminal-client-with-an-old-pc-and-ubuntu.html#comments</comments>
		<pubDate>Mon, 24 Dec 2007 14:00:04 +0000</pubDate>
		<dc:creator>Linewbie.com</dc:creator>
				<category><![CDATA[guides]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[howtoforge]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://www.linewbie.com/2007/12/creating-an-as400-terminal-client-with-an-old-pc-and-ubuntu.html</guid>
		<description><![CDATA[Creating an AS400 terminal with an Old PC and Ubuntu This how to uses Ubuntu 7.10 Server install. I am sure that this could be done with a much smaller install base, rather than server &#8211; I might have used &#8230; <a href="http://linewbie.com/2007/12/creating-an-as400-terminal-client-with-an-old-pc-and-ubuntu.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><b>Creating an AS400 terminal with an Old PC and Ubuntu</b></p>
<p>This how to uses Ubuntu 7.10 Server install. I am sure that this could be done with a much smaller install base, rather than server &#8211; I might have used the Alternative CD, or maybe even some other distribution like DSL, or Puppy Linux (if you needed GUI [graphical user interface] ). But for proof of concept this worked fine.  I used an Old Dell GX100 Optiplex with 256 MB of RAM (I don&#8217;t think I need any more that 128 [maybe even 64MB], but this is what was in the box when I pulled it out of the pile). It has a small form factor, and runs pretty quiet. My steps are geared toward English &amp; US, so you may want to change those if your using something else =).</p>
<p><a href="http://howtoforge.com/creating-an-as400-terminal-client-on-ubuntu" title="Read the rest of this posting.">Read more&#8230;</a>
<div style='clear:both'></div>
]]></content:encoded>
			<wfw:commentRss>http://linewbie.com/2007/12/creating-an-as400-terminal-client-with-an-old-pc-and-ubuntu.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Build A HylaFax Server With AvantFax Frontend Using Debian Etch</title>
		<link>http://linewbie.com/2007/12/build-a-hylafax-server-with-avantfax-frontend-using-debian-etch.html</link>
		<comments>http://linewbie.com/2007/12/build-a-hylafax-server-with-avantfax-frontend-using-debian-etch.html#comments</comments>
		<pubDate>Mon, 24 Dec 2007 02:00:05 +0000</pubDate>
		<dc:creator>Linewbie.com</dc:creator>
				<category><![CDATA[guides]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[howtoforge]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://www.linewbie.com/2007/12/build-a-hylafax-server-with-avantfax-frontend-using-debian-etch.html</guid>
		<description><![CDATA[Build A HylaFax Server With AvantFax Frontend Using Debian Etch Install Debian. I used the basic barebones install option. I did some things that were done because of preference, and not necessary. I have marked them approriately. I encourage contributions &#8230; <a href="http://linewbie.com/2007/12/build-a-hylafax-server-with-avantfax-frontend-using-debian-etch.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><b>Build A HylaFax Server With AvantFax Frontend Using Debian Etch</b></p>
<p>Install Debian. I used the basic barebones install option. I did<br />
some things that were done because of preference, and not necessary. I<br />
have marked them approriately. I encourage contributions from anyone<br />
who would like to add or correct something in this HowTo to contact me<br />
so I can fix it. I have installed this setup twice following these<br />
instructions and used Avantfax 2.3.0. Thanks to all the resources who<br />
helped me figure this out. Especially Razametal, who submitted a<br />
fantastic Spanish language walkthrough on ecualug.org.</p>
<p><a href="http://howtoforge.com/build-a-hylafax-server-with-avantfax-on-debian-etch" title="Read the rest of this posting.">Read more&#8230;</a>
<div style='clear:both'></div>
]]></content:encoded>
			<wfw:commentRss>http://linewbie.com/2007/12/build-a-hylafax-server-with-avantfax-frontend-using-debian-etch.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Writing Snort Rules On EnGarde</title>
		<link>http://linewbie.com/2007/12/writing-snort-rules-on-engarde-2.html</link>
		<comments>http://linewbie.com/2007/12/writing-snort-rules-on-engarde-2.html#comments</comments>
		<pubDate>Fri, 21 Dec 2007 18:00:11 +0000</pubDate>
		<dc:creator>Linewbie.com</dc:creator>
				<category><![CDATA[guides]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[howtoforge]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://www.linewbie.com/2007/12/writing-snort-rules-on-engarde-2.html</guid>
		<description><![CDATA[Writing Snort Rules On EnGarde There are already tons of written Snort rules, but there just might be a time where you need to write one yourself. You can think of writing Snort rules as writing a program. They can &#8230; <a href="http://linewbie.com/2007/12/writing-snort-rules-on-engarde-2.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><b>Writing Snort Rules On EnGarde</b></p>
<p>There are already tons of written Snort rules, but there just might<br />
be a time where you need to write one yourself. You can think of<br />
writing Snort rules as writing a program. They can include variables,<br />
keywords and functions. Why do we need to write rules? The reason is,<br />
without rules Snort will never detect someone trying to hack your<br />
machine. This HOWTO will give you confidence to write your own rules.</p>
<p><a href="http://howtoforge.com/writing-snort-rules-on-engarde" title="Read the rest of this posting.">Read more&#8230;</a>
<div style='clear:both'></div>
]]></content:encoded>
			<wfw:commentRss>http://linewbie.com/2007/12/writing-snort-rules-on-engarde-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Masquerade On Linux (Internet Connection Sharing)</title>
		<link>http://linewbie.com/2007/12/how-to-masquerade-on-linux-internet-connection-sharing.html</link>
		<comments>http://linewbie.com/2007/12/how-to-masquerade-on-linux-internet-connection-sharing.html#comments</comments>
		<pubDate>Fri, 21 Dec 2007 12:02:21 +0000</pubDate>
		<dc:creator>Linewbie.com</dc:creator>
				<category><![CDATA[guides]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[howtoforge]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://www.linewbie.com/2007/12/how-to-masquerade-on-linux-internet-connection-sharing.html</guid>
		<description><![CDATA[How To Masquerade On Linux (Internet Connection Sharing) It&#8217;s very simple to masquerade (internet connection sharing in Windows language ) on Linux with a few lines of iptables and ip_forward commands. Read more&#8230;]]></description>
			<content:encoded><![CDATA[<p><b>How To Masquerade On Linux (Internet Connection Sharing) </b></p>
<p>It&#8217;s very simple to masquerade (internet connection sharing in<br />
Windows language ) on Linux with a few lines of iptables and ip_forward<br />
commands.</p>
<p><a href="http://howtoforge.com/internet-connection-sharing-masquerading-on-linux" title="Read the rest of this posting.">Read more&#8230;</a>
<div style='clear:both'></div>
]]></content:encoded>
			<wfw:commentRss>http://linewbie.com/2007/12/how-to-masquerade-on-linux-internet-connection-sharing.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Network Management And Monitoring With Hyperic HQ On Fedora 8</title>
		<link>http://linewbie.com/2007/12/network-management-and-monitoring-with-hyperic-hq-on-fedora-8.html</link>
		<comments>http://linewbie.com/2007/12/network-management-and-monitoring-with-hyperic-hq-on-fedora-8.html#comments</comments>
		<pubDate>Thu, 20 Dec 2007 21:00:11 +0000</pubDate>
		<dc:creator>Linewbie.com</dc:creator>
				<category><![CDATA[guides]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[howtoforge]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://www.linewbie.com/2007/12/network-management-and-monitoring-with-hyperic-hq-on-fedora-8.html</guid>
		<description><![CDATA[Network Management And Monitoring With Hyperic HQ On Fedora 8 This document describes how to set up Hyperic HQ on Fedora 8. The resulting system provides an awesome, web-based &#8220;System ManagementSoftware&#8221;. It&#8217;s the next stage of classical monitoring and able &#8230; <a href="http://linewbie.com/2007/12/network-management-and-monitoring-with-hyperic-hq-on-fedora-8.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><b>Network Management And Monitoring With Hyperic HQ On Fedora 8</b></p>
<p>This document describes how to set up Hyperic HQ on Fedora 8. The<br />
resulting system provides an awesome, web-based &#8220;System<br />
ManagementSoftware&#8221;. It&#8217;s the next stage of classical monitoring and<br />
able to manage all kinds of operating systems, web servers, application<br />
servers and database servers.</p>
<p><a href="http://howtoforge.com/network-management-monitoring-hyperic-hq-fedora8" title="Read the rest of this posting.">Read more&#8230;</a>
<div style='clear:both'></div>
]]></content:encoded>
			<wfw:commentRss>http://linewbie.com/2007/12/network-management-and-monitoring-with-hyperic-hq-on-fedora-8.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sample Configuration of DRBD On CentOS 4.5</title>
		<link>http://linewbie.com/2007/12/sample-configuration-of-drbd-on-centos-45.html</link>
		<comments>http://linewbie.com/2007/12/sample-configuration-of-drbd-on-centos-45.html#comments</comments>
		<pubDate>Thu, 20 Dec 2007 13:00:08 +0000</pubDate>
		<dc:creator>Linewbie.com</dc:creator>
				<category><![CDATA[guides]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[howtoforge]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://www.linewbie.com/2007/12/sample-configuration-of-drbd-on-centos-45.html</guid>
		<description><![CDATA[Sample Configuration of DRBD On CentOS 4.5 DRBD is an abbreviation of Distributed Replicated Block Device. DRBD is a block device which is designed to build high-availability clusters. This is done by mirroring a whole block device via (a dedicated) &#8230; <a href="http://linewbie.com/2007/12/sample-configuration-of-drbd-on-centos-45.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><b>Sample Configuration of DRBD On CentOS 4.5</b></p>
<p> DRBD is an abbreviation of Distributed Replicated Block Device.<br />
DRBD is a block device which is designed to build high-availability<br />
clusters. This is done by mirroring a whole block device via (a<br />
dedicated) network. You could see it as a network RAID1.</p>
<p><a href="http://howtoforge.com/drbd-on-centos-4.5" title="Read the rest of this posting.">Read more&#8230;</a>
<div style='clear:both'></div>
]]></content:encoded>
			<wfw:commentRss>http://linewbie.com/2007/12/sample-configuration-of-drbd-on-centos-45.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

