<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>How 2 #CentOS</title>
	
	<link>http://www.how2centos.com</link>
	<description>A Centos Installation Repository</description>
	<lastBuildDate>Mon, 06 Sep 2010 16:33:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/how2centos" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="how2centos" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">how2centos</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Installing #Cherokee on #CentOS 5.5</title>
		<link>http://www.how2centos.com/installing-cherokee-on-centos-5-5/</link>
		<comments>http://www.how2centos.com/installing-cherokee-on-centos-5-5/#comments</comments>
		<pubDate>Mon, 06 Sep 2010 09:25:29 +0000</pubDate>
		<dc:creator>How2CentOS</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[CentOS 5.5]]></category>
		<category><![CDATA[Cherokee]]></category>

		<guid isPermaLink="false">http://www.how2centos.com/?p=1137</guid>
		<description><![CDATA[Cherokee is a very fast, flexible and easy to configure Web Server. It supports the widespread technologies nowadays: FastCGI, SCGI, PHP, CGI, TLS and SSL encrypted connections, virtual hosts, authentication, on the fly encoding, load balancing, Apache compatible log files, and much more. This tutorial shows how you can install Cherokee on a CentOS 5.5 [...]


Related posts:<ol><li><a href='http://www.how2centos.com/installing-cherokee-with-php5-2-10-and-mysql-support-on-centos-5-3/' rel='bookmark' title='Permanent Link: Installing #Cherokee with #PHP 5.2.10 and MySQL Support On #CentOS 5.3'>Installing #Cherokee with #PHP 5.2.10 and MySQL Support On #CentOS 5.3</a></li>
<li><a href='http://www.how2centos.com/installing-redmine-subversion-on-centos-5-5/' rel='bookmark' title='Permanent Link: Installing #Redmine &#038; #Subversion on CentOS 5.5'>Installing #Redmine &#038; #Subversion on CentOS 5.5</a></li>
<li><a href='http://www.how2centos.com/installing-puppet-master-with-foreman-frontend-on-centos-5-5/' rel='bookmark' title='Permanent Link: Installing #Puppet Master with #Foreman frontend on #CentOS 5.5'>Installing #Puppet Master with #Foreman frontend on #CentOS 5.5</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.how2centos.com/wp-content/uploads/2009/10/cherokee.png" alt="cherokee" title="cherokee" width="122" height="40" class="alignleft size-full wp-image-423" /><img src="http://www.how2centos.com/wp-content/uploads/2009/05/centos.gif" alt="centos" title="centos" width="42" height="40" class="alignleft size-full wp-image-225" /></p>
<p>Cherokee is a very fast, flexible  and easy to configure Web Server. It supports the widespread technologies nowadays: FastCGI, SCGI, PHP, CGI, TLS and SSL encrypted connections, virtual hosts, authentication, on the fly encoding, load balancing, Apache compatible log files, and much more. This tutorial shows how you can install Cherokee on a CentOS 5.5 server<br />
<span id="more-1137"></span><br />
<strong>Preliminary Note</strong></p>
<p>In this updated tutorial we will use a base 32 bit CentOS 5.5 server install with the hostname centos01.how2centos.com with the IP address 10.0.0.3. These settings might differ for you, so you have to replace them where appropriate.</p>
<p>Let&#8217;s begin</p>
<blockquote><p>
# yum install yum-priorities<br />
# rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm<br />
# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm<br />
# yum update
</p></blockquote>
<p>First we install MySQL and MySQL server:</p>
<blockquote><p>
# yum install mysql mysql-server
</p></blockquote>
<p>Followed by RRDTool</p>
<blockquote><p>
# yum install rrdtool
</p></blockquote>
<p>Then finally we&#8217;ll install the Cherokee and add it to startup:</p>
<blockquote><p>
# yum install cherokee<br />
# chkconfig cherokee on<br />
# service cherokee start
</p></blockquote>
<p>Now direct your browser to http://10.0.0.3</p>
<p>You should see the Cherokee placeholder page.</p>
<p>Cherokee can be configured through a web-based control panel which we can start as follows:</p>
<p>cherokee-admin -b</p>
<p>(By default cherokee-admin binds only to 127.0.0.1 (localhost), with the -b parameter you can specify the network address to listen to. If no IP is provided, it will bind to all interfaces.)</p>
<p>Output should be similar to this one:</p>
<blockquote><p>
# cherokee-admin -b</p>
<p>Login:<br />
  User:              admin<br />
  One-time Password: gtVzmvy6Rqy9idKy</p>
<p>Web Interface:<br />
  URL:               http://localhost:9090/</p>
<p>Cherokee Web Server 1.0.6 (Aug  6 2010): Listening on port ALL:9090, TLS<br />
disabled, IPv6 enabled, using epoll, 4096 fds system limit, max. 2041<br />
connections, caching I/O, single thread
</p></blockquote>
<p>The admin web interface can be found on http://10.0.0.3:9090/ (make sure to enter your one-time password)</p>
<p>To stop cherokee-admin, type CTRL+C on the shell.</p>
<p><object width="580" height="360"><param name="movie" value="http://www.youtube.com/v/Rf45ktWQne8?fs=1&amp;hl=en_US&amp;hd=1&amp;border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/Rf45ktWQne8?fs=1&amp;hl=en_US&amp;hd=1&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="580" height="360"></embed></object></p>
<p><strong>Links</strong></p>
<p>Cherokee: <a href="http://www.cherokee-project.com/">http://www.cherokee-project.com/</a><br />
MySQL: <a href="http://www.mysql.com/">http://www.mysql.com/</a><br />
CentOS: <a href="http://centos.org/">http://centos.org/</a></p>


<p>Related posts:<ol><li><a href='http://www.how2centos.com/installing-cherokee-with-php5-2-10-and-mysql-support-on-centos-5-3/' rel='bookmark' title='Permanent Link: Installing #Cherokee with #PHP 5.2.10 and MySQL Support On #CentOS 5.3'>Installing #Cherokee with #PHP 5.2.10 and MySQL Support On #CentOS 5.3</a></li>
<li><a href='http://www.how2centos.com/installing-redmine-subversion-on-centos-5-5/' rel='bookmark' title='Permanent Link: Installing #Redmine &#038; #Subversion on CentOS 5.5'>Installing #Redmine &#038; #Subversion on CentOS 5.5</a></li>
<li><a href='http://www.how2centos.com/installing-puppet-master-with-foreman-frontend-on-centos-5-5/' rel='bookmark' title='Permanent Link: Installing #Puppet Master with #Foreman frontend on #CentOS 5.5'>Installing #Puppet Master with #Foreman frontend on #CentOS 5.5</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/how2centos/~4/rptnMBCGm8w" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.how2centos.com/installing-cherokee-on-centos-5-5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>#CentOS: Change that hostname</title>
		<link>http://www.how2centos.com/centos-change-the-hostname/</link>
		<comments>http://www.how2centos.com/centos-change-the-hostname/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 09:16:35 +0000</pubDate>
		<dc:creator>How2CentOS</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[centos 5]]></category>
		<category><![CDATA[centos 5.1]]></category>
		<category><![CDATA[centos 5.2]]></category>
		<category><![CDATA[centos 5.3]]></category>
		<category><![CDATA[centos 5.4]]></category>
		<category><![CDATA[CentOS 5.5]]></category>

		<guid isPermaLink="false">http://www.how2centos.com/?p=1103</guid>
		<description><![CDATA[In this CentOS 5.5 tutorial we will be showing you how to change the hostname. The assumption is that you are running as root and have a basic understanding of the software required but if you follow this tutorial you should be able to complete the task successfully. To find the machine’s fully qualifier domain [...]


Related posts:<ol><li><a href='http://www.how2centos.com/centos-the-most-popular-linux-distribution-for-web-servers/' rel='bookmark' title='Permanent Link: CentOS: The most popular Linux distribution for web servers'>CentOS: The most popular Linux distribution for web servers</a></li>
<li><a href='http://www.how2centos.com/google-trends-centos/' rel='bookmark' title='Permanent Link: #Google Trends &#8211; #CentOS'>#Google Trends &#8211; #CentOS</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.how2centos.com/wp-content/uploads/2009/05/centos.gif"><img class="alignleft size-full wp-image-225" title="centos" src="http://www.how2centos.com/wp-content/uploads/2009/05/centos.gif" alt="" width="42" height="40" /></a> In this CentOS 5.5 tutorial we will be showing you how to change the hostname. The assumption is that you are running as root and have a basic understanding of the software required but if you follow this tutorial you should be able to complete the task successfully.</p>
<p>To find the machine’s fully qualifier domain name (FQDN) see for yourself how the machine identifies itself: </p>
<blockquote><p>
# uname -n<br />
centos01.how2centos.com<br />
# dnsdomainname<br />
how2centos.com
</p></blockquote>
<p><span id="more-1103"></span><br />
There are a couple of ways to change the hostname. Edit the /etc/sysconfig/network and change the hostname</p>
<blockquote><p>
# vi /etc/sysconfig/network
</p></blockquote>
<pre class="brush: bash">
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=centos01.how2centos.com
</pre>
<p>or run System Config</p>
<blockquote><p>
# system-config-network
</p></blockquote>
<p>Select Edit DNS configuration </p>
<blockquote><p>
  ââââââââ¤ Select Action âââââââ<br />
  â&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;â<br />
  â&nbsp;&nbsp;Edit a device params&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;â<br />
  â&nbsp;&nbsp;Edit DNS configuration&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;â<br />
  â&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;â<br />
  â&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;â<br />
  â&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;â<br />
  â&nbsp;&nbsp;âââââââââââââ&nbsp;&nbsp;ââââââââ&nbsp;&nbsp;&nbsp;&nbsp;â<br />
  â&nbsp;&nbsp;â Save&#038;Quit â&nbsp;&nbsp;â Quit â&nbsp;&nbsp;&nbsp;&nbsp;â<br />
  â&nbsp;&nbsp;âââââââââââââ&nbsp;&nbsp;ââââââââ&nbsp;&nbsp;&nbsp;&nbsp;â<br />
  â&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;â<br />
  â&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;â<br />
  âââââââââââââââââââââââââââââââ</p>
<p>  âââââââ¤ DNS configuration âââââââ<br />
  â&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;â<br />
  â&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;â<br />
  â&nbsp;&nbsp;Hostname&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;centos01.how2ce&nbsp;â<br />
  â&nbsp;&nbsp;Primary DSN&nbsp;&nbsp;&nbsp;10.0.0.10______&nbsp;â<br />
  â&nbsp;&nbsp;Secondary DNS&nbsp;_______________&nbsp;â<br />
  â&nbsp;&nbsp;Tertiary DNS&nbsp;&nbsp;_______________&nbsp;â<br />
  â&nbsp;&nbsp;Search&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;how2centos.com_&nbsp;â<br />
  â&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;â<br />
  â&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ââââââ&nbsp;&nbsp;ââââââââââ&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;â<br />
  â&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;â Ok â&nbsp;&nbsp;â Cancel â&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;â<br />
  â&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ââââââ&nbsp;&nbsp;ââââââââââ&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;â<br />
  â&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;â<br />
  â&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;â<br />
  ââââââââââââââââââââââââââââââââââ
</p></blockquote>
<p>Edit the hostname and select OK and then Save&#038;Quit </p>
<p>TIP: If you would like to strip off the domain name portion, which is stored elsewhere anyway.</p>
<blockquote><p>
# sed -i.bak &#39;s/\.[a-z].*//g&#39; /etc/sysconfig/network
</p></blockquote>
<blockquote><p>
# cat /etc/sysconfig/network
</p></blockquote>
<pre class="brush: bash">
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=centos01
</pre>
<blockquote><p>
# uname -n<br />
centos01<br />
# dnsdomainname<br />
how2centos.com
</p></blockquote>
<p>Dont forget to change the hostname in your hosts file</p>
<blockquote><p>
# vi /etc/hosts
</p></blockquote>
<pre class="brush: bash">
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       centos01.how2centos.com centos01 localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6
</pre>
<p>However we’re not finished. The machine wont normally see the updated hostname until about it reboots, but we can force it to update. </p>
<blockquote><p>
# source /etc/sysconfig/network<br />
# hostname $HOSTNAME
</p></blockquote>
<p><object width="580" height="360"><param name="movie" value="http://www.youtube.com/v/qn-b26i9A-4?fs=1&amp;hl=en_US&amp;border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/qn-b26i9A-4?fs=1&amp;hl=en_US&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="580" height="360"></embed></object></p>


<p>Related posts:<ol><li><a href='http://www.how2centos.com/centos-the-most-popular-linux-distribution-for-web-servers/' rel='bookmark' title='Permanent Link: CentOS: The most popular Linux distribution for web servers'>CentOS: The most popular Linux distribution for web servers</a></li>
<li><a href='http://www.how2centos.com/google-trends-centos/' rel='bookmark' title='Permanent Link: #Google Trends &#8211; #CentOS'>#Google Trends &#8211; #CentOS</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/how2centos/~4/CeicZ42qOKY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.how2centos.com/centos-change-the-hostname/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing #Puppet Master with #Foreman frontend on #CentOS 5.5</title>
		<link>http://www.how2centos.com/installing-puppet-master-with-foreman-frontend-on-centos-5-5/</link>
		<comments>http://www.how2centos.com/installing-puppet-master-with-foreman-frontend-on-centos-5-5/#comments</comments>
		<pubDate>Fri, 27 Aug 2010 13:24:39 +0000</pubDate>
		<dc:creator>How2CentOS</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[CentOS 5.5]]></category>
		<category><![CDATA[Foreman]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[puppet]]></category>

		<guid isPermaLink="false">http://www.how2centos.com/?p=1076</guid>
		<description><![CDATA[In this CentOS 5.5 tutorial we will be installing Foreman on a CentOS 5.5 i386 server including Puppet Master and Puppet client. The assumption is that you have a basic to medium understanding of the software required but if you follow this tutorial you should be able to complete the task successfully. A bit on [...]


Related posts:<ol><li><a href='http://www.how2centos.com/installing-puppet-dashboard-on-centos-5-5/' rel='bookmark' title='Permanent Link: Installing #Puppet Dashboard on #CentOS 5.5'>Installing #Puppet Dashboard on #CentOS 5.5</a></li>
<li><a href='http://www.how2centos.com/how-to-install-a-puppet-master-and-client-server-on-centos-52/' rel='bookmark' title='Permanent Link: How to Install a #Puppet Master and Client Server on #Centos 5.2'>How to Install a #Puppet Master and Client Server on #Centos 5.2</a></li>
<li><a href='http://www.how2centos.com/installing-jasper-reporting-for-mysql-on-centos-5-4/' rel='bookmark' title='Permanent Link: Installing #Jasper reporting for #MySQL on #CentOS 5.4'>Installing #Jasper reporting for #MySQL on #CentOS 5.4</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.how2centos.com/wp-content/uploads/2009/05/centos.gif"><img src="http://www.how2centos.com/wp-content/uploads/2009/05/centos.gif" alt="" title="centos" width="42" height="40" class="alignleft size-full wp-image-225" /></a>  In this CentOS 5.5 tutorial we will be installing Foreman on a CentOS 5.5 i386 server including Puppet Master and Puppet client. The assumption is that you have a basic to medium understanding of the software required but if you follow this tutorial you should be able to complete the task successfully. </p>
<p>A bit on the software that we&#8217;ll be using:</p>
<p><strong>Foreman</strong><br />
<a href="http://theforeman.org/">Foreman</a> is aimed to be a Single Address For All Machines Life Cycle Management.</p>
<p><a href="http://theforeman.org/">Foreman</a> integrates with Puppet (and acts as web front end to it).</p>
<p><a href="http://theforeman.org/">Foreman</a> takes care of bare bone provisioning until the point puppet is running, allowing Puppet to do what it does best.</p>
<p><a href="http://theforeman.org/">Foreman</a> shows you Systems Inventory (based on Facter) and provides real time information about hosts status based on Puppet reports.</p>
<p><a href="http://theforeman.org/">Foreman</a> creates everything you need when adding a new machine to your network. It&#8217;s goal being automatically managing everything you would normally manage manually &#8211; that would eventually include DNS, DHCP, TFTP, PuppetCA, CMDB and everything else you might consider useful.</p>
<p>With <a href="http://theforeman.org/">Foreman</a> You Can Always Rebuild Your Machines From Scratch!</p>
<p><a href="http://theforeman.org/">Foreman</a> is designed to work in a large enterprise, where multiple domains, subnets and puppetmasters are required. </p>
<p><a href="http://theforeman.org/">http://theforeman.org/</a><br />
<span id="more-1076"></span><br />
<strong>Preliminary Note:</strong><br />
I am using a CentOS 5.5 i386 base installation in this tutorial with root access.</p>
<p>* foreman.how2centos.com (IP 10.0.0.100): CentOS 5.5 i386 base installation</p>
<p>Lets begin by adding additional CentOS 5.5. repositories and installing the framework required by Foreman.</p>
<blockquote><p>
# yum install yum-priorities<br />
# rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm<br />
# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
</p></blockquote>
<blockquote><p>
# cat > /etc/yum.repos.d/foreman.repo << EOF<br />
[foreman]<br />
name=Foreman Repo<br />
baseurl=http://theforeman.org/repo<br />
gpgcheck=0<br />
enabled=1<br />
EOF
</p></blockquote>
<p>Lets begin installing the framework starting with Puppet Master, client and MySQL</p>
<blockquote><p>
# yum install puppet-server puppet<br />
# yum install mysql mysql-server mysql-devel ruby-mysql rubygem-activerecord
</p></blockquote>
<p>Let do a basic Puppet Master and client configuration.</p>
<blockquote><p>
# vi /etc/puppet/puppet.conf
</p></blockquote>
<pre class="brush: bash">
[main]
    # The Puppet log directory.
    # The default value is '$vardir/log'.
    logdir = /var/log/puppet

    # Where Puppet PID files are kept.
    # The default value is '$vardir/run'.
    rundir = /var/run/puppet

    # Where SSL certificates are kept.
    # The default value is '$confdir/ssl'.
    ssldir = $vardir/ssl

[puppetd]
    # The file in which puppetd stores a list of the classes
    # associated with the retrieved configuratiion.  Can be loaded in
    # the separate ``puppet`` executable using the ``--loadclasses``
    # option.
    # The default value is '$confdir/classes.txt'.
    classfile = $vardir/classes.txt

    # Where puppetd caches the local configuration.  An
    # extension indicating the cache format is added automatically.
    # The default value is '$confdir/localconfig'.
    localconfig = $vardir/localconfig

	# Enable reporting for Foreman
	report = true

[puppetmasterd]
    storeconfigs = true
    dbadapter = mysql
    dbuser = puppet
    dbpassword = puppet
    dbserver = localhost
    dbsocket = /var/lib/mysql/mysql.sock
    rrddir=/var/lib/puppet/rrd
    rrdinterval=$runinterval
    rrdgraph=true
    reports=log, foreman
</pre>
<blockquote><p>
# vi /etc/sysconfig/puppet
</p></blockquote>
<pre class="brush: bash">
# The puppetmaster server
PUPPET_SERVER=foreman.how2centos.com

# If you wish to specify the port to connect to do so here
#PUPPET_PORT=8140

# Where to log to. Specify syslog to send log messages to the system log.
PUPPET_LOG=/var/log/puppet/puppet.log

# You may specify other parameters to the puppet client here
#PUPPET_EXTRA_OPTS=--waitforcert=500
</pre>
<blockquote><p>
# mkdir /etc/puppet/manifests/classes/<br />
# vi /etc/puppet/manifests/site.pp
</p></blockquote>
<pre class="brush: bash">
import "classes/*"

node default {
    include sudo
 }
</pre>
<blockquote><p>
# vi /etc/puppet/manifests/classes/sudo.pp
</p></blockquote>
<pre class="brush: bash">
class sudo {
    file { "/etc/sudoers":
        owner => "root",
        group => "root",
        mode  => 440,
    }
}
</pre>
<p>Start MySQL and add it to startup </p>
<blockquote><p>
# service mysqld start<br />
# chkconfig mysqld on
</p></blockquote>
<p>Add the Puppet Database</p>
<blockquote><p>
# mysql<br />
mysql> create database puppet;<br />
mysql> grant all privileges on puppet.* to puppet@localhost identified by &#8216;puppet&#8217;;<br />
mysql> exit<br />
Bye
</p></blockquote>
<p>Install Foreman and configure the Database and enable reporting.</p>
<blockquote><p>
# yum install foreman
</p></blockquote>
<p>Foreman uses a database, by default, SQLite is used, if you want to use other database (e.g. MySQL) please modify the configuration file under config/database.yml.</p>
<blockquote><p>
# mv  /etc/foreman/database.yml /etc/foreman/database.yml.old<br />
# vi /etc/foreman/database.yml
</p></blockquote>
<pre class="brush: bash">
production:
  adapter: mysql
  database: puppet
  username: puppet
  password: puppet
  host: localhost
  socket: "/var/lib/mysql/mysql.sock"
</pre>
<p>To enable reporting in Foreman you&#8217;ll be required to copy foreman-report.rb to your report directory, edit the $foreman_url=, and then add it to your master puppet.conf under the main section add:</p>
<blockquote><p>
# cp /usr/share/foreman/extras/puppet/foreman/files/foreman-report.rb /usr/lib/ruby/site_ruby/1.8/puppet/reports/foreman.rb<br />
# vi /usr/lib/ruby/site_ruby/1.8/puppet/reports/foreman.rb
</p></blockquote>
<pre class="brush: bash">
# copy this file to your report dir - e.g. /usr/lib/ruby/1.8/puppet/reports/
# add this report in your puppetmaster reports - e.g, in your puppet.conf add:
# reports=log, foreman # (or any other reports you want)

# URL of your Foreman installation
$foreman_url="http://foreman.how2centos.com:3000"

require 'puppet'
require 'net/http'
require 'uri'

Puppet::Reports.register_report(:foreman) do
    Puppet.settings.use(:reporting)
    desc "Sends reports directly to Foreman"

    def process
      begin
        uri = URI.parse($foreman_url)
        http = Net::HTTP.new(uri.host, uri.port)
        if uri.scheme == 'https' then
          http.use_ssl = true
          http.verify_mode = OpenSSL::SSL::VERIFY_NONE
        end
        req = Net::HTTP::Post.new("/reports/create?format=yml")
        req.set_form_data({'report' => to_yaml})
        response = http.request(req)
      rescue Exception => e
        raise Puppet::Error, "Could not send report to Foreman at #{$foreman_url}/reports/create?format=yml: #{e}"
      end
    end
end
</pre>
<p>Finally to initialize the database schema type:</p>
<blockquote><p>
# cd /usr/share/foreman/<br />
# RAILS_ENV=production rake db:migrate
</p></blockquote>
<p>Let start, and add to startup, the various componants and browse to your newly installed Puppet Master and client with Foreman frontend.</p>
<blockquote><p>
# service puppetmaster start<br />
# service puppet start<br />
# service foreman start<br />
# chkconfig puppetmaster on<br />
# chkconfig puppet on<br />
# chkconfig foreman on
</p></blockquote>
<p>Point your bowser to http://foreman.how2centos.com:3000</p>
<p><img alt="Foreman Dashboard" src="http://theforeman.org/attachments/download/55" title="Foreman" class="aligncenter" width="580" height="300" /></p>


<p>Related posts:<ol><li><a href='http://www.how2centos.com/installing-puppet-dashboard-on-centos-5-5/' rel='bookmark' title='Permanent Link: Installing #Puppet Dashboard on #CentOS 5.5'>Installing #Puppet Dashboard on #CentOS 5.5</a></li>
<li><a href='http://www.how2centos.com/how-to-install-a-puppet-master-and-client-server-on-centos-52/' rel='bookmark' title='Permanent Link: How to Install a #Puppet Master and Client Server on #Centos 5.2'>How to Install a #Puppet Master and Client Server on #Centos 5.2</a></li>
<li><a href='http://www.how2centos.com/installing-jasper-reporting-for-mysql-on-centos-5-4/' rel='bookmark' title='Permanent Link: Installing #Jasper reporting for #MySQL on #CentOS 5.4'>Installing #Jasper reporting for #MySQL on #CentOS 5.4</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/how2centos/~4/YRIe6oG8hUI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.how2centos.com/installing-puppet-master-with-foreman-frontend-on-centos-5-5/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>#Dell and #CentOS the Perfect Combination</title>
		<link>http://www.how2centos.com/dell-and-centos-the-perfect-combination/</link>
		<comments>http://www.how2centos.com/dell-and-centos-the-perfect-combination/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 19:01:51 +0000</pubDate>
		<dc:creator>How2CentOS</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Dell]]></category>

		<guid isPermaLink="false">http://www.how2centos.com/?p=1052</guid>
		<description><![CDATA[A quick post to share this mostly unknown gem that Dell manages it&#8217;s own Open Manage Linux Repository. Read more: http://linux.dell.com/wiki/index.php/Repository/OMSA To get your CentOS server installed with Server Administrator set up the Dell Open Manage Repository like so: # wget -q -O &#8211; http://linux.dell.com/repo/hardware/latest/bootstrap.cgi &#124; bash Then install the Server Administrator # yum install [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>A quick post to share this mostly unknown gem that Dell manages it&#8217;s own Open Manage Linux Repository. </p>
<p>Read more: <a href="http://linux.dell.com/wiki/index.php/Repository/OMSA">http://linux.dell.com/wiki/index.php/Repository/OMSA</a> </p>
<p>To get your CentOS server installed with Server Administrator set up the Dell Open Manage Repository like so:</p>
<blockquote><p>
# wget -q -O &#8211; http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash
</p></blockquote>
<p>Then install the Server Administrator</p>
<blockquote><p>
# yum install srvadmin-all
</p></blockquote>
<p>Finally browse to your newly installed Open Manage Server Administrator and monitor your Dell hardware.</p>
<p>https://your.Centos.Server:1311/</p>
<p>Log on screen &#8211; Use your root username and password</p>
<p><a href="http://www.how2centos.com/wp-content/uploads/2010/08/openmanage_logon.jpg"><img src="http://www.how2centos.com/wp-content/uploads/2010/08/openmanage_logon.jpg" alt="Dell Open Manage Server Administrator" title="Dell Open Manage Server Administrator" width="580" height="290" class="aligncenter size-full wp-image-1059" /></a></p>
<p>Main Screen after log on</p>
<p><a href="http://www.how2centos.com/wp-content/uploads/2010/08/openmanage_main.jpg"><img src="http://www.how2centos.com/wp-content/uploads/2010/08/openmanage_main.jpg" alt="Dell Open Manage Server Administrator Main" title="Dell Open Manage Server Administrator Main" width="580" height="290" class="aligncenter size-full wp-image-1061" /></a></p>
<p>TIP: After installing the Dell Server Administrator get your service tag number from your CentOS Linux server by running</p>
<blockquote><p>
# dmidecode -s system-serial-number<br />
ABCDEF1
</p></blockquote>


<p>No related posts.</p><img src="http://feeds.feedburner.com/~r/how2centos/~4/ptAJAahyfas" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.how2centos.com/dell-and-centos-the-perfect-combination/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing #Smokeping on #CentOS 5.5</title>
		<link>http://www.how2centos.com/installing-smokeping-on-centos-5-5/</link>
		<comments>http://www.how2centos.com/installing-smokeping-on-centos-5-5/#comments</comments>
		<pubDate>Fri, 06 Aug 2010 13:46:33 +0000</pubDate>
		<dc:creator>How2CentOS</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[CentOS 5.5]]></category>
		<category><![CDATA[smokeping]]></category>

		<guid isPermaLink="false">http://www.how2centos.com/?p=989</guid>
		<description><![CDATA[In this CentOS 5.5 tutorial we will be installing Smokeping and SmokeTrace on a CentOS 5.5 i386 server. The assumption is that you have a basic to medium understanding of Apache but if you follow this tutorial you should be able to complete the task successfully. A bit on the software that we&#8217;ll be using: [...]


Related posts:<ol><li><a href='http://www.how2centos.com/gentoo-lost-and-debian-losing-to-centos/' rel='bookmark' title='Permanent Link: #Gentoo lost and #Debian losing to #CentOS'>#Gentoo lost and #Debian losing to #CentOS</a></li>
<li><a href='http://www.how2centos.com/ipcop-sarg-network-graphs-and-inode-issues-resolved/' rel='bookmark' title='Permanent Link: #IPCop: #SARG, Network Graphs and iNode issues resolved'>#IPCop: #SARG, Network Graphs and iNode issues resolved</a></li>
<li><a href='http://www.how2centos.com/web-search-interest-for-centos-5-5/' rel='bookmark' title='Permanent Link: Web Search Interest for #CentOS 5.5'>Web Search Interest for #CentOS 5.5</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.how2centos.com/wp-content/uploads/2009/05/centos.gif"><img src="http://www.how2centos.com/wp-content/uploads/2009/05/centos.gif" alt="" title="centos" width="42" height="40" class="alignleft size-full wp-image-225" /></a> <a href="http://www.how2centos.com/wp-content/uploads/2010/08/smokeping.png"><img src="http://www.how2centos.com/wp-content/uploads/2010/08/smokeping.png" alt="" title="smokeping" width="120" height="40" class="alignleft size-full wp-image-1038" /></a> In this CentOS 5.5 tutorial we will be installing Smokeping and SmokeTrace on a CentOS 5.5 i386 server. The assumption is that you have a basic to medium understanding of Apache but if you follow this tutorial you should be able to complete the task successfully. </p>
<p>A bit on the software that we&#8217;ll be using:</p>
<p><strong>Smokeping</strong><br />
SmokePing keeps track of your network latency:</p>
<p>* Best of breed latency visualisation.<br />
* Interactive graph explorer.<br />
* Wide range of latency measurment plugins.<br />
* Master/Slave System for distributed measurement.<br />
* Highly configurable alerting system.<br />
* Live Latency Charts with the most &#8216;interesting&#8217; graphs.<br />
* Free and OpenSource Software written in Perl written by Tobi Oetiker, the creator of MRTG and RRDtool</p>
<p><a href="http://oss.oetiker.ch/smokeping/">http://oss.oetiker.ch/smokeping/</a> </p>
<p><strong>Preliminary Note:</strong><br />
I am using a CentOS 5.5 i386 base installation in this tutorial.</p>
<p>* www.how2centos.com (IP 10.0.0.100): CentOS 5.5 i386 base installation</p>
<p><span id="more-989"></span></p>
<p>Lets begin by installing the framework required by Smokeping.</p>
<blockquote><p>
# yum update<br />
# rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm<br />
# yum install httpd<br />
# yum install rrdtool<br />
# yum install fping<br />
# yum install echoping<br />
# yum install curl<br />
# yum install perl perl-Net-Telnet perl-Net-DNS perl-LDAP perl-libwww-perl perl-RadiusPerl perl-IO-Socket-SSL perl-Socket6 perl-CGI-SpeedyCGI
</p></blockquote>
<blockquote><p>
# wget http://oss.oetiker.ch/smokeping/pub/smokeping-2.4.1.tar.gz<br />
# tar zxvf smokeping-2.4.1.tar.gz<br />
# mv smokeping-2.4.1 /opt/smokeping<br />
# cd /opt/smokeping
</p></blockquote>
<blockquote><p>
# cd bin/<br />
# cp smokeping.dist smokeping<br />
# cd ../htdocs/<br />
# cp smokeping.cgi.dist smokeping.cgi<br />
# cp tr.cgi.dist tr.cgi<br />
# cd ../etc/<br />
# cp config.dist config<br />
# cp basepage.html.dist basepage.html<br />
# cp smokemail.dist smokemail<br />
# cp tmail.dist tmail<br />
# cp smokeping_secrets.dist smokeping_secrets<br />
# chmod 600 /opt/smokeping/etc/smokeping_secrets
</p></blockquote>
<blockquote><p>
# vi /opt/smokeping/bin/smokeping
</p></blockquote>
<p>Replace this:</p>
<pre class="brush: bash">
#!/usr/sepp/bin/perl-5.8.4 -w
# -*-perl-*-

use lib qw(/usr/pack/rrdtool-1.2.23-mo/lib/perl);
use lib qw(lib);

use Smokeping 2.004000;

Smokeping::main("etc/config.dist");
</pre>
<p>With This:</p>
<pre class="brush: bash">
#!/usr/bin/perl -w
# -*-perl-*-

use lib qw(/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/RRDs/);
use lib qw(/opt/smokeping/lib);

use Smokeping 2.004000;

Smokeping::main("/opt/smokeping/etc/config");
</pre>
<p>or you can Patch the file: </p>
<blockquote><p>
# cd /opt/smokeping/bin<br />
# vi /opt/smokeping/bin/smokeping.patch
</p></blockquote>
<pre class="brush: bash">
*** /opt/smokeping/bin/smokeping.dist   2008-06-10 15:08:07.000000000 +0200
--- /opt/smokeping/bin/smokeping        2010-08-04 16:43:08.000000000 +0200
***************
*** 1,12 ****
! #!/usr/sepp/bin/perl-5.8.4 -w
  # -*-perl-*-

! use lib qw(/usr/pack/rrdtool-1.2.23-mo/lib/perl);
! use lib qw(lib);

  use Smokeping 2.004000;
!
! Smokeping::main("etc/config.dist");

  =head1 NAME

--- 1,12 ----
! #!/usr/bin/perl -w
  # -*-perl-*-

! use lib qw(/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/RRDs/);
! use lib qw(/opt/smokeping/lib);

  use Smokeping 2.004000;
!
! Smokeping::main("/opt/smokeping/etc/config");

  =head1 NAME
</pre>
<blockquote><p>
# patch -p1 -i smokeping.patch /opt/smokeping/bin/smokeping<br />
patching file /opt/smokeping/bin/smokeping
</p></blockquote>
<blockquote><p>
# vi /opt/smokeping/htdocs/smokeping.cgi
</p></blockquote>
<p>Replace this:</p>
<pre class="brush: bash">
#!/usr/sepp/bin/speedy -w
# -*-perl-*-

use lib qw(/usr/pack/rrdtool-1.0.33-to/lib/perl);
use lib qw(/home/oetiker/data/projects/AADJ-smokeping/dist/lib);
use CGI::Carp qw(fatalsToBrowser);

use Smokeping 2.004000;

Smokeping::cgi("/home/oetiker/data/projects/AADJ-smokeping/dist/etc/config");
</pre>
<p>With this:</p>
<pre class="brush: bash">
#!/usr/bin/speedy -w
# -*-perl-*-

use lib qw(/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/RRDs);
use lib qw(/opt/smokeping/lib);
use CGI::Carp qw(fatalsToBrowser);

use Smokeping 2.004000;

Smokeping::cgi("/opt/smokeping/etc/config");
</pre>
<p>or you can Patch the file:</p>
<blockquote><p>
# cd /opt/smokeping/htdocs/<br />
# vi /opt/smokeping/htdocs/smokeping_cgi.patch
</p></blockquote>
<pre class="brush: bash">
***************
*** 1,13 ****
! #!/usr/sepp/bin/speedy -w
  # -*-perl-*-

! use lib qw(/usr/pack/rrdtool-1.0.33-to/lib/perl);
! use lib qw(/home/oetiker/data/projects/AADJ-smokeping/dist/lib);
  use CGI::Carp qw(fatalsToBrowser);

  use Smokeping 2.004000;

! Smokeping::cgi("/home/oetiker/data/projects/AADJ-smokeping/dist/etc/config");

  =head1 NAME

--- 1,13 ----
! #!/usr/bin/speedy -w
  # -*-perl-*-

! use lib qw(/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/RRDs);
! use lib qw(/opt/smokeping/lib);
  use CGI::Carp qw(fatalsToBrowser);

  use Smokeping 2.004000;

! Smokeping::cgi("/opt/smokeping/etc/config");

  =head1 NAME
</pre>
<blockquote><p>
# patch -p1 -i smokeping_cgi.patch /opt/smokeping/htdocs/smokeping.cgi<br />
patching file /opt/smokeping/htdocs/smokeping.cgi
</p></blockquote>
<blockquote><p>
# cd /opt/smokeping/htdocs<br />
# vi /opt/smokeping/htdocs/tr.cgi
</p></blockquote>
<p>Change this:</p>
<pre class="brush: bash">
#!/usr/sepp/bin/speedy-5.8.8 -w
use strict;
use lib qw(/home/oposs/smokeping/software/lib);
use lib qw(perl);
</pre>
<p>To this:</p>
<pre class="brush: bash">
#!/usr/bin/speedy -w
use strict;
use lib qw(/opt/smokeping/lib);
use lib qw(perl);
</pre>
<p>or you can Patch the file:</p>
<blockquote><p>
# vi /opt/smokeping/htdocs/tr_cgi.patch
</p></blockquote>
<pre class="brush: bash">
*** /opt/smokeping/htdocs/tr.cgi.dist   2008-06-14 00:02:34.000000000 +0200
--- /opt/smokeping/htdocs/tr.cgi        2010-08-06 15:01:31.000000000 +0200
***************
*** 1,6 ****
! #!/usr/sepp/bin/speedy-5.8.8 -w
  use strict;
! use lib qw(/home/oposs/smokeping/software/lib);
  use lib qw(perl);

  use CGI;
--- 1,6 ----
! #!/usr/bin/speedy -w
  use strict;
! use lib qw(/opt/smokeping/lib);
  use lib qw(perl);

  use CGI;
</pre>
<blockquote><p>
# patch -p1 -i tr_cgi.patch /opt/smokeping/htdocs/tr.cgi<br />
patching file /opt/smokeping/htdocs/tr.cgi
</p></blockquote>
<blockquote><p>
# mkdir -p /var/www/html/smokeping/img /var/www/html/smokeping/script/ /opt/smokeping/data /opt/smokeping/var<br />
# chown -R apache:apache /var/www/html/smokeping/img
</p></blockquote>
<blockquote><p>
# ln -s /opt/smokeping/htdocs/cropper /var/www/html/smokeping/cropper<br />
# ln -s /opt/smokeping/htdocs/resource /var/www/html/smokeping/resource<br />
# ln -s /opt/smokeping/htdocs/script/Tr.js /var/www/html/smokeping/script/Tr.js<br />
# ln -s /opt/smokeping/htdocs/smokeping.cgi /var/www/html/smokeping/smokeping.cgi<br />
# ln -s /opt/smokeping/htdocs/tr.cgi /var/www/html/smokeping/tr.cgi
</p></blockquote>
<blockquote><p>
# chmod 4775 /bin/traceroute
</p></blockquote>
<blockquote><p>
vi /etc/httpd/conf/httpd.conf
</p></blockquote>
<p>change > #AddHandler cgi-script .cgi<br />
to > AddHandler cgi-script .cgi</p>
<p>Under &lt;Directory &#8220;/var/www/html&#8221;&gt;</p>
<p>change > Options Indexes FollowSymLinks<br />
to > Options Indexes FollowSymLinks ExecCGI</p>
<blockquote><p>
# vi /opt/smokeping/etc/basepage.html
</p></blockquote>
<p>Change this:</p>
<pre class="brush: html">
&lt;script src="cropper/lib/prototype.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="cropper/lib/scriptaculous.js?load=builder,dragdrop" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="cropper/cropper.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="cropper/smokeping-zoom.js" type="text/javascript"&gt;&lt;/script&gt;
</pre>
<p>To this:</p>
<pre class="brush: html">
&lt;script src="/smokeping/cropper/lib/prototype.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="/smokeping/cropper/lib/scriptaculous.js?load=builder,dragdrop" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="/smokeping/cropper/cropper.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="/smokeping/cropper/smokeping-zoom.js" type="text/javascript"&gt;&lt;/script&gt;
</pre>
<p>or you can Patch the file:</p>
<blockquote><p>
# cd /opt/smokeping/etc/<br />
# vi /opt/smokeping/etc/basepage.patch
</p></blockquote>
<pre class="brush: bash">
56,59c56,59
&lt; &lt;script src="cropper/lib/prototype.js" type="text/javascript"&gt;&lt;/script&gt;
&lt; &lt;script src="cropper/lib/scriptaculous.js?load=builder,dragdrop" type="text/javascript"&gt;&lt;/script&gt;
&lt; &lt;script src="cropper/cropper.js" type="text/javascript"&gt;&lt;/script&gt;
&lt; &lt;script src="cropper/smokeping-zoom.js" type="text/javascript"&gt;&lt;/script&gt;
---
&gt; &lt;script src="/smokeping/cropper/lib/prototype.js" type="text/javascript"&gt;&lt;/script&gt;
&gt; &lt;script src="/smokeping/cropper/lib/scriptaculous.js?load=builder,dragdrop" type="text/javascript"&gt;&lt;/script&gt;
&gt; &lt;script src="/smokeping/cropper/cropper.js" type="text/javascript"&gt;&lt;/script&gt;
&gt; &lt;script src="/smokeping/cropper/smokeping-zoom.js" type="text/javascript"&gt;&lt;/script&gt;
</pre>
<blockquote><p>
# patch -p1 -i basepage.patch /opt/smokeping/etc/basepage.html<br />
patching file /opt/smokeping/etc/basepage.html
</p></blockquote>
<blockquote><p>
# vi /opt/smokeping/htdocs/tr.html
</p></blockquote>
<p>Change this:</p>
<pre class="brush: html">
&lt;html&gt;
	&lt;head&gt;
	  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
		&lt;title&gt;SmokeTrace&lt;/title&gt;
	  &lt;script type="text/javascript" src="script/Tr.js"&gt;&lt;/script&gt;
	&lt;/head&gt;
&lt;/html&gt;
</pre>
<p>To this:</p>
<pre class="brush: html">
&lt;html&gt;
	&lt;head&gt;
	  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
		&lt;title&gt;SmokeTrace&lt;/title&gt;
	  &lt;script type="text/javascript" src="/script/Tr.js"&gt;&lt;/script&gt;
	&lt;/head&gt;
&lt;/html&gt;
</pre>
<blockquote><p>
# ln -s /opt/smokeping/htdocs/tr.html /var/www/html/smokeping/tr.html
</p></blockquote>
<p>Lets create a basic Config file for Smokeping to get started:</p>
<blockquote><p>
# vi /opt/smokeping/etc/config
</p></blockquote>
<pre class="brush: bash">
*** General ***

owner    = Peter Random
contact  = some@address.nowhere
mailhost = my.mail.host
sendmail = /usr/sbin/sendmail
# NOTE: do not put the Image Cache below cgi-bin
# since all files under cgi-bin will be executed ... this is not
# good for images.
imgcache = /var/www/html/smokeping/img
imgurl   = http://www.how2centos.com/smokeping/img
datadir  = /opt/smokeping/data
piddir  = /opt/smokeping/var
cgiurl   = http://www.how2centos.com/smokeping/smokeping.cgi
smokemail = /opt/smokeping/etc/smokemail
tmail = /opt/smokeping/etc/tmail

# specify this to get syslog logging
syslogfacility = local0

# each probe is now run in its own process
# disable this to revert to the old behaviour
# concurrentprobes = no

*** Alerts ***
to = alertee@address.somewhere
from = smokealert@company.xy

+someloss
type = loss
# in percent
pattern = >0%,*12*,>0%,*12*,>0%
comment = loss 3 times  in a row

*** Database ***

step     = 300
pings    = 20

# consfn mrhb steps total

AVERAGE  0.5   1  1008
AVERAGE  0.5  12  4320
    MIN  0.5  12  4320
    MAX  0.5  12  4320
AVERAGE  0.5 144   720
    MAX  0.5 144   720
    MIN  0.5 144   720

*** Presentation ***

template = /opt/smokeping/etc/basepage.html

+ charts

menu = Charts
title = The most interesting destinations

++ stddev
sorter = StdDev(entries=>4)
title = Top Standard Deviation
menu = Std Deviation
format = Standard Deviation %f

++ max
sorter = Max(entries=>5)
title = Top Max Roundtrip Time
menu = by Max
format = Max Roundtrip Time %f seconds

++ loss
sorter = Loss(entries=>5)
title = Top Packet Loss
menu = Loss
format = Packets Lost %f

++ median
sorter = Median(entries=>5)
title = Top Median Roundtrip Time
menu = by Median
format = Median RTT %f seconds

+ overview

width = 600
height = 50
range = 10h

+ detail

width = 600
height = 200
unison_tolerance = 2

"Last 3 Hours"    3h
"Last 30 Hours"   30h
"Last 10 Days"    10d
"Last 400 Days"   400d

#+ hierarchies
#++ owner
#title = Host Owner
#++ location
#title = Location

*** Probes ***

+ FPing

binary = /usr/sbin/fping

*** Targets ***

menuextra = <a target="_blank" href="/smokeping/tr.html{HOST}" class="{CLASS} broken_link" onclick="window.open(this.href,this.target, \
'width=800,height=500,toolbar=no,location=no,status=no,scrollbars=no'); \
return false;">(TR)</a>

probe = FPing

menu = Top
title = Network Latency Grapher
remark = Welcome to the SmokePing website of xxx Company. \
         Here you will learn all about the latency of our network.

+ hosts
menu= Targets

++ How2CentOS

menu = How2CentOS.com
title = How2CentOS.com
alerts = someloss
host = www.how2centos.com

++ CentOS

menu = CentOS.org
title = CentOS.org
alerts = someloss
host = www.centos.org
</pre>
<p>Lets create a service startup script for Smokeping</p>
<blockquote><p>
# vi /etc/init.d/smokeping
</p></blockquote>
<pre class="brush: bash">
#!/bin/bash
#
# chkconfig: 2345 80 05
# Description: Smokeping init.d script
# Hacked by : How2CentOS - http://www.how2centos.com

# Get function from functions library
. /etc/init.d/functions

# Start the service Smokeping
start() {
        echo -n "Starting Smokeping: "
        /opt/smokeping/bin/smokeping >/dev/null 2>&#038;1
        ### Create the lock file ###
        touch /var/lock/subsys/smokeping
        success $"Smokeping startup"
        echo
}

# Restart the service Smokeping
stop() {
        echo -n "Stopping Smokeping: "
        kill -9 `ps ax | grep "/opt/smokeping/bin/smokeping" | grep -v grep | awk '{ print $1 }'` >/dev/null 2>&#038;1
        ### Now, delete the lock file ###
        rm -f /var/lock/subsys/smokeping
        success $"Smokeping shutdown"
        echo
}

### main logic ###
case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  status)
        status Smokeping
        ;;
  restart|reload|condrestart)
        stop
        start
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|reload|status}"
        exit 1
esac

exit 0
</pre>
<blockquote><p>
# chmod 755 /etc/init.d/smokeping
</p></blockquote>
<p>Finally lets add Apache and Smokeping to startup and get them started:</p>
<blockquote><p>
# chkconfig smokeping on<br />
# chkconfig httpd on<br />
# service smokeping start<br />
Starting Smokeping:		<span style="color: #339966;">[  OK  ]</span><br />
# service httpd start<br />
Starting httpd:		<span style="color: #339966;">[  OK  ]</span>
</p></blockquote>
<p>Now browse to your new installed Smokeping and Smoketrace installation</p>
<p>http://www.how2centos.com/smokeping/smokeping.cgi</p>


<p>Related posts:<ol><li><a href='http://www.how2centos.com/gentoo-lost-and-debian-losing-to-centos/' rel='bookmark' title='Permanent Link: #Gentoo lost and #Debian losing to #CentOS'>#Gentoo lost and #Debian losing to #CentOS</a></li>
<li><a href='http://www.how2centos.com/ipcop-sarg-network-graphs-and-inode-issues-resolved/' rel='bookmark' title='Permanent Link: #IPCop: #SARG, Network Graphs and iNode issues resolved'>#IPCop: #SARG, Network Graphs and iNode issues resolved</a></li>
<li><a href='http://www.how2centos.com/web-search-interest-for-centos-5-5/' rel='bookmark' title='Permanent Link: Web Search Interest for #CentOS 5.5'>Web Search Interest for #CentOS 5.5</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/how2centos/~4/QGlqDDaGTh8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.how2centos.com/installing-smokeping-on-centos-5-5/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>#Gentoo lost and #Debian losing to #CentOS</title>
		<link>http://www.how2centos.com/gentoo-lost-and-debian-losing-to-centos/</link>
		<comments>http://www.how2centos.com/gentoo-lost-and-debian-losing-to-centos/#comments</comments>
		<pubDate>Sun, 01 Aug 2010 19:09:30 +0000</pubDate>
		<dc:creator>How2CentOS</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[CentOS 5.5]]></category>

		<guid isPermaLink="false">http://www.how2centos.com/?p=971</guid>
		<description><![CDATA[If Linux distributions were stocks and you an investor you wish you&#8217;d have invested in CentOS. Time to sell what&#8217;s left and get yourself some steady and stable CentOS stocks, well at least according to Google Insights. Related posts:Web Search Interest for #CentOS 5.5 #Google Trends &#8211; #CentOS


Related posts:<ol><li><a href='http://www.how2centos.com/web-search-interest-for-centos-5-5/' rel='bookmark' title='Permanent Link: Web Search Interest for #CentOS 5.5'>Web Search Interest for #CentOS 5.5</a></li>
<li><a href='http://www.how2centos.com/google-trends-centos/' rel='bookmark' title='Permanent Link: #Google Trends &#8211; #CentOS'>#Google Trends &#8211; #CentOS</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>If Linux distributions were stocks and you an investor you wish you&#8217;d have invested in CentOS. Time to sell what&#8217;s left and get yourself some steady and stable CentOS stocks, well at least according to Google Insights.</p>
<p><script type="text/javascript" src="http://www.gmodules.com/ig/ifr?url=http%3A%2F%2Fwww.google.com%2Fig%2Fmodules%2Fgoogle_insightsforsearch_interestovertime_searchterms.xml&amp;up__property=empty&amp;up__search_terms=CentOS%7CDebian%7CGentoo&amp;up__location=empty&amp;up__category=0&amp;up__time_range=empty&amp;up__compare_to_category=false&amp;synd=open&amp;w=560&amp;h=350&amp;lang=en-US&amp;title=Google+Insights+for+Search&amp;border=%23ffffff%7C3px%2C1px+solid+%23999999&amp;output=js"></script></p>
<p><script type="text/javascript" src="http://www.gmodules.com/ig/ifr?url=http%3A%2F%2Fwww.google.com%2Fig%2Fmodules%2Fgoogle_insightsforsearch_interestovertime_searchterms.xml&amp;up__property=empty&amp;up__search_terms=CentOS+5.5%7CDebian+5.0%7CGentoo+10.1&amp;up__location=empty&amp;up__category=0&amp;up__time_range=empty&amp;up__compare_to_category=false&amp;synd=open&amp;w=560&amp;h=350&amp;lang=en-US&amp;title=Google+Insights+for+Search&amp;border=%23ffffff%7C3px%2C1px+solid+%23999999&amp;output=js"></script></p>


<p>Related posts:<ol><li><a href='http://www.how2centos.com/web-search-interest-for-centos-5-5/' rel='bookmark' title='Permanent Link: Web Search Interest for #CentOS 5.5'>Web Search Interest for #CentOS 5.5</a></li>
<li><a href='http://www.how2centos.com/google-trends-centos/' rel='bookmark' title='Permanent Link: #Google Trends &#8211; #CentOS'>#Google Trends &#8211; #CentOS</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/how2centos/~4/2O35vYLerpQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.how2centos.com/gentoo-lost-and-debian-losing-to-centos/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Installing #Redmine &amp; #Subversion on CentOS 5.5</title>
		<link>http://www.how2centos.com/installing-redmine-subversion-on-centos-5-5/</link>
		<comments>http://www.how2centos.com/installing-redmine-subversion-on-centos-5-5/#comments</comments>
		<pubDate>Sun, 25 Jul 2010 11:24:55 +0000</pubDate>
		<dc:creator>How2CentOS</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[CentOS 5.5]]></category>
		<category><![CDATA[Redmine]]></category>

		<guid isPermaLink="false">http://www.how2centos.com/?p=844</guid>
		<description><![CDATA[In this CentOS 5.5 tutorial we will be installing Redmine and Subversion with LDAP authentication on a CentOS 5.5 i386 server. The assumption is that you have a basic to medium understanding of Apache and MySQL but if you follow this tutorial you should be able to complete the task successfully. A bit on the [...]


Related posts:<ol><li><a href='http://www.how2centos.com/svn-apache-ldap-configuration/' rel='bookmark' title='Permanent Link: #SVN #Apache #LDAP configuration'>#SVN #Apache #LDAP configuration</a></li>
<li><a href='http://www.how2centos.com/subversion-failed-to-get-lock-on-destination-repository/' rel='bookmark' title='Permanent Link: #Subversion: Failed to get lock on destination repository'>#Subversion: Failed to get lock on destination repository</a></li>
<li><a href='http://www.how2centos.com/installing-puppet-dashboard-on-centos-5-5/' rel='bookmark' title='Permanent Link: Installing #Puppet Dashboard on #CentOS 5.5'>Installing #Puppet Dashboard on #CentOS 5.5</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.how2centos.com/wp-content/uploads/2009/05/centos.gif"><img src="http://www.how2centos.com/wp-content/uploads/2009/05/centos.gif" alt="" title="centos" width="42" height="40" class="alignleft size-full wp-image-225" /></a> In this CentOS 5.5 tutorial we will be installing Redmine and Subversion with LDAP authentication on a CentOS 5.5 i386 server. The assumption is that you have a basic to medium understanding of Apache and MySQL but if you follow this tutorial you should be able to complete the task successfully. A bit on the software that we&#8217;ll be using:</p>
<p><strong>Redmine</strong><br />
Redmine is a flexible project management web application. Written using Ruby on Rails framework, it is cross-platform and cross-database. An online demo can be found here:<br />
<a href="http://demo.redmine.org/">http://demo.redmine.org/</a></p>
<p><strong>Subversion</strong><br />
Subversion is a free/open-source version control system. That is, Subversion manages files and directories, and the changes made to them, over time. This allows you to recover older versions of your data, or examine the history of how your data changed.<br />
<a href="http://subversion.apache.org/">http://subversion.apache.org/</a> </p>
<p><strong>Preliminary Note:</strong><br />
I am using a CentOS 5.5 i386 base installation in this tutorial.</p>
<p>* svn.how2centos.com (IP 10.0.0.100): CentOS 5.5 i386 base installation<br />
* ldap.how2centos.com (IP 10.0.0.100): CentOS 5.5 i386 base installation<br />
* redmine.how2centos.com (IP 10.0.0.100): CentOS 5.5 i386 base installation</p>
<p><span id="more-844"></span></p>
<p>Lets begin by installing the framework required by the Redmine, Subversion and LDAP platform.</p>
<blockquote><p>
# yum install yum-priorities<br />
# rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm<br />
# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm<br />
# yum update<br />
# yum groupinstall &#8220;MySQL Database&#8221;<br />
# yum install httpd<br />
# yum install gcc-c++<br />
# yum install ImageMagick ImageMagick-devel<br />
# yum install subversion mod_dav_svn<br />
# yum install perl-HTML-Parser perl-SVN-Notify<br />
# yum install ruby rubygems rubygem-rails rubygem-sqlite3-ruby ruby-devel ruby-mysql
</p></blockquote>
<p>Next a couple of Ruby Gems</p>
<blockquote><p>
# gem install rack -v 1.0.1<br />
# gem install cgi_multipart_eof_fix<br />
# gem install coderay<br />
# gem install thin
</p></blockquote>
<p>Now lets add the software to startup and start MySQL and Apache.</p>
<blockquote><p>
# thin install<br />
# chkconfig thin on<br />
# chkconfig mysqld on<br />
# chkconfig httpd on<br />
# service mysqld start<br />
# service httpd start
</p></blockquote>
<p>Configure Thin </p>
<blockquote><p>
# thin config -C /etc/thin/(config-name).yml -c (rails-app-root-path) &#45;&#45;servers (number-of-threads) -e (environment)
</p></blockquote>
<p>(application-name) = redmine<br />
(rails-app-root-path) = /opt/redmine<br />
(number-of-threads) = 3<br />
(environment) = production</p>
<blockquote><p>
# thin config -C /etc/thin/redmine.yml -c /opt/redmine &#45;&#45;servers 3 -e production
</p></blockquote>
<p>Download, install and configure the Redmine framework.</p>
<blockquote><p>
# cd /opt/<br />
# wget http://rubyforge.org/frs/download.php/70486/redmine-0.9.4.tar.gz<br />
# tar zxvf redmine-0.9.4.tar.gz<br />
# mv redmine-0.9.4 redmine<br />
# chmod -R a+rx /opt/redmine/public/<br />
# cd /opt/redmine<br />
# chmod -R 755 files log tmp
</p></blockquote>
<blockquote><p>
# cd /opt/redmine/config/<br />
# cp database.yml.example database.yml<br />
# vi /opt/redmine/config/database.yml
</p></blockquote>
<pre class="brush: bash">
production:
  adapter: mysql
  database: redmine
  host: redmine
  username: redmine
  password: redmine
  encoding: utf8
</pre>
<blockquote><p>
# mysql</p>
<p>mysql> create database  redmine default  character set  utf8;<br />
mysql> grant all  on redmine.* to redmine@localhost identified by &#8216;redmine&#8217;;<br />
mysql> flush privileges;<br />
mysql> quit
</p></blockquote>
<blockquote><p>
# cd /opt/redmine<br />
# RAILS_ENV=production rake config/initializers/session_store.rb<br />
# RAILS_ENV=production rake db:migrate
</p></blockquote>
<p>Configure Apache and add a Redmine config file</p>
<blockquote><p>
# vi /etc/httpd/conf/httpd.conf
</p></blockquote>
<p>Uncomment<br />
NameVirtualHost *:80</p>
<blockquote><p>
# vi /etc/httpd/conf.d/redmine.conf
</p></blockquote>
<pre class="brush: bash">
<VirtualHost *:80>
        DocumentRoot /opt/redmine
        ServerName redmine.how2centos.com
        <Proxy balancer://redminecluster>
                 BalancerMember http://127.0.0.1:3000
                 BalancerMember http://127.0.0.1:3001
                 BalancerMember http://127.0.0.1:3002
        </Proxy>
        ProxyPass / balancer://redminecluster/
        ProxyPassReverse / balancer://redminecluster/
        ErrorLog /var/log/httpd/redmine_error.log
        CustomLog /var/log/httpd/redmine_access.log combined
</VirtualHost>
</pre>
<p>Setup Redmine to email </p>
<blockquote><p>
# cp /opt/redmine/config/email.yml.example /opt/redmine/config/email.yml<br />
# vi /opt/redmine/config/email.yml
</p></blockquote>
<pre class="brush: bash">
production:
  delivery_method: :smtp
  smtp_settings:
    address: smtp.how2centos.com
    port: 25
    domain: how2centos.com
#    authentication: :login
#    user_name: "redmine@example.net"
#    password: "redmine"

development:
  delivery_method: :smtp
  smtp_settings:
    address: 127.0.0.1
    port: 25
    domain: how2centos.com
#    authentication: :login
#    user_name: "redmine@example.net"
#    password: "redmine"
</pre>
<p>Start thin and Redmine</p>
<blockquote><p>
# service thin start
</p></blockquote>
<p>Create a Subversion repository and start the SVN deamon</p>
<blockquote><p>
# svnadmin create /opt/svn/repo<br />
# svnserve -d
</p></blockquote>
<p>Add a Subversion Apache configuration file</p>
<blockquote><p>
# vi /etc/httpd/conf.d/svn.conf
</p></blockquote>
<pre class="brush: bash">
LoadModule dav_svn_module     modules/mod_dav_svn.so
LoadModule authz_svn_module   modules/mod_authz_svn.so

LDAPSharedCacheFile /root/LDAPSharedCacheFile
LDAPSharedCacheSize 200000
LDAPCacheEntries 1024
LDAPCacheTTL 600
LDAPOpCacheEntries 1024
LDAPOpCacheTTL 600

<VirtualHost *:80>

        DocumentRoot /opt/svn
        ServerName svn.how2centos.com

        ErrorLog /var/log/httpd/svn_error.log
        LogLevel warn
        CustomLog /var/log/httpd/svn_access.log combined
        ServerSignature On

        <Location "/">
                AuthBasicProvider ldap
                AuthType Basic
                AuthzLDAPAuthoritative off
                AuthName "How2CentOS SVN server"
                AuthLDAPURL "ldap://ldap.how2centos.com/CN=Users,DC=how2centos,DC=com?sAMAccountName"
                AuthLDAPBindDN "CN=ldap,CN=Users,DC=how2centos,DC=com"
                AuthLDAPBindPassword LDAPpassword

                require valid-user

        </Location>

        <Location "/svn">
                DAV svn
                SVNParentPath           /opt/svn
                SVNListParentPath       On
                SVNReposName            "How2CentOS SVN Repo"
        </Location>

        <Location /cache-info>
                SetHandler ldap-status
        </Location>

</VirtualHost>
</pre>
<blockquote><p>
# chown -R apache:apache /opt/svn/*<br />
# chmod -R 770 /opt/svn/*
</p></blockquote>
<p>Restart Apache for changes to take effect</p>
<blockquote><p>
# Service httpd restart
</p></blockquote>
<p>Browse to newly setup Redmine and Subversion setup</p>
<p>http://redmine.how2centos.com</p>
<p>http://svn.how2centos.com</p>


<p>Related posts:<ol><li><a href='http://www.how2centos.com/svn-apache-ldap-configuration/' rel='bookmark' title='Permanent Link: #SVN #Apache #LDAP configuration'>#SVN #Apache #LDAP configuration</a></li>
<li><a href='http://www.how2centos.com/subversion-failed-to-get-lock-on-destination-repository/' rel='bookmark' title='Permanent Link: #Subversion: Failed to get lock on destination repository'>#Subversion: Failed to get lock on destination repository</a></li>
<li><a href='http://www.how2centos.com/installing-puppet-dashboard-on-centos-5-5/' rel='bookmark' title='Permanent Link: Installing #Puppet Dashboard on #CentOS 5.5'>Installing #Puppet Dashboard on #CentOS 5.5</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/how2centos/~4/-3xaL1mT1zc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.how2centos.com/installing-redmine-subversion-on-centos-5-5/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>CentOS: The most popular Linux distribution for web servers</title>
		<link>http://www.how2centos.com/centos-the-most-popular-linux-distribution-for-web-servers/</link>
		<comments>http://www.how2centos.com/centos-the-most-popular-linux-distribution-for-web-servers/#comments</comments>
		<pubDate>Sat, 10 Jul 2010 10:02:30 +0000</pubDate>
		<dc:creator>How2CentOS</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[centos 5.2]]></category>
		<category><![CDATA[centos 5.3]]></category>
		<category><![CDATA[centos 5.4]]></category>
		<category><![CDATA[CentOS 5.5]]></category>

		<guid isPermaLink="false">http://www.how2centos.com/?p=930</guid>
		<description><![CDATA[It&#8217;s a great day for CentOS and its community because, according to Web Technology Surveys, in July 2010, &#8220;For the first time, CentOS is now leading the Linux distribution statistics on web servers with almost 30% of all Linux servers.&#8221; Read more at W3Techs Related posts:Web Search Interest for #CentOS 5.5 How to keep a [...]


Related posts:<ol><li><a href='http://www.how2centos.com/web-search-interest-for-centos-5-5/' rel='bookmark' title='Permanent Link: Web Search Interest for #CentOS 5.5'>Web Search Interest for #CentOS 5.5</a></li>
<li><a href='http://www.how2centos.com/how-to-keep-a-detailed-audit-trail-on-your-centos-5-4-servers/' rel='bookmark' title='Permanent Link: How to keep a detailed audit trail on your #CentOS 5.4 servers'>How to keep a detailed audit trail on your #CentOS 5.4 servers</a></li>
<li><a href='http://www.how2centos.com/installing-and-upgrading-to-php-529-on-centos-and-red-hat-linux-53-x86_64/' rel='bookmark' title='Permanent Link: Installing and upgrading to #PHP 5.2.9 on #CentOS and #RedHat Linux 5.3 x86_64'>Installing and upgrading to #PHP 5.2.9 on #CentOS and #RedHat Linux 5.3 x86_64</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s a great day for CentOS and its community because, according to <a href="http://w3techs.com/blog/entry/highlights_of_web_technology_surveys_july_2010">Web Technology Surveys</a>, in July 2010, &#8220;For the first time, CentOS is now leading the Linux distribution statistics on web servers with almost 30% of all Linux servers.&#8221; </p>
<p><img alt="CentOS Webserver survey" src="http://w3techs.com/pictures/os-linux.png" title="CentOS_Webserver_survey" class="aligncenter" width="581" height="371" /></p>
<p>Read more at <a href="http://w3techs.com/blog/entry/highlights_of_web_technology_surveys_july_2010" target='_blank' >W3Techs</a></p>


<p>Related posts:<ol><li><a href='http://www.how2centos.com/web-search-interest-for-centos-5-5/' rel='bookmark' title='Permanent Link: Web Search Interest for #CentOS 5.5'>Web Search Interest for #CentOS 5.5</a></li>
<li><a href='http://www.how2centos.com/how-to-keep-a-detailed-audit-trail-on-your-centos-5-4-servers/' rel='bookmark' title='Permanent Link: How to keep a detailed audit trail on your #CentOS 5.4 servers'>How to keep a detailed audit trail on your #CentOS 5.4 servers</a></li>
<li><a href='http://www.how2centos.com/installing-and-upgrading-to-php-529-on-centos-and-red-hat-linux-53-x86_64/' rel='bookmark' title='Permanent Link: Installing and upgrading to #PHP 5.2.9 on #CentOS and #RedHat Linux 5.3 x86_64'>Installing and upgrading to #PHP 5.2.9 on #CentOS and #RedHat Linux 5.3 x86_64</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/how2centos/~4/PJMXkiMS2gA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.how2centos.com/centos-the-most-popular-linux-distribution-for-web-servers/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Create #Fedora 13 local #Yum Repository</title>
		<link>http://www.how2centos.com/create-fedora-13-local-yum-repository/</link>
		<comments>http://www.how2centos.com/create-fedora-13-local-yum-repository/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 05:11:59 +0000</pubDate>
		<dc:creator>How2CentOS</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Fedora 13]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://www.how2centos.com/?p=923</guid>
		<description><![CDATA[Fedora 13 (Goddard) is out and it&#8217;s time to add it to our arsenal of local yum repositories. We all know the importance of creating a local YUM repository on your LAN. Not only do you decrease the time it takes to download and install updates, you also decrease bandwidth usage. Fedora 13 (Goddard) release [...]


Related posts:<ol><li><a href='http://www.how2centos.com/creating-a-local-fedora-11-yum-repository/' rel='bookmark' title='Permanent Link: Creating a Local #Fedora 11 #Yum Repository'>Creating a Local #Fedora 11 #Yum Repository</a></li>
<li><a href='http://www.how2centos.com/creating-a-local-fedora-12-yum-repository/' rel='bookmark' title='Permanent Link: Creating a Local #Fedora 12 #Yum Repository'>Creating a Local #Fedora 12 #Yum Repository</a></li>
<li><a href='http://www.how2centos.com/creating-a-local-yum-repository-on-centos-5x/' rel='bookmark' title='Permanent Link: Creating A Local #Yum Repository on #CentOS 5.x'>Creating A Local #Yum Repository on #CentOS 5.x</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-258 alignleft" title="yum" src="http://www.how2centos.com/wp-content/uploads/2009/06/yum.png" alt="yum" width="90" height="40" /><img class="size-full wp-image-235 alignleft" title="fedora" src="http://www.how2centos.com/wp-content/uploads/2009/06/fedora.gif" alt="fedora" width="40" height="40" /> Fedora 13 (Goddard) is out and it&#8217;s time to add it to our arsenal of local yum repositories. We all know the importance of creating a local YUM repository on your LAN. Not only do you decrease the time it takes to download and install updates, you also decrease bandwidth usage.</p>
<p><a href="https://fedoraproject.org/wiki/F13_one_page_release_notes" target="_blank">Fedora 13 (Goddard) release notes</a></p>
<p>This How To will show you a simple yet effective way to create your local Fedora 13 YUM repository and client.</p>
<p><strong>TIP:</strong> Distribute your Fedora YUM configuration via your <a href="http://www.how2centos.com/how-to-install-a-puppet-master-and-client-server-on-centos-52/">Puppet Master</a></p>
<p><span id="more-923"></span></p>
<p><strong>Preliminary Note:</strong></p>
<p>I am using two Fedora 13 installations in this tutorial with server1.example.co.za configured with Apache httpd</p>
<p>* server1.example.co.za (IP 10.0.0.100): <em>Fedora 13 YUM Repository and httpd server</em><br />
* server2.example.co.za (IP 10.0.0.102): <em>Fedora 13 YUM client</em></p>
<p><strong>Configure <em>Fedora YUM repo and httpd server</em> as follows:</strong></p>
<p>Create the following Directories:</p>
<blockquote><p>
# mkdir -p /var/www/html/fedora/13/os/i386<br />
# mkdir -p /var/www/html/fedora/13/os/x86_64
</p></blockquote>
<p>Create a bash script that will rsync your local <em>YUM Repository server</em> with your local YUM mirror (Make sure the mirror supports rsync).</p>
<p>Fedora Mirror list &#8211; <a href="http://mirrors.fedoraproject.org/publiclist">http://mirrors.fedoraproject.org/publiclist</a></p>
<blockquote><p>
# vi fedora-repo-update.sh
</p></blockquote>
<pre class="brush: bash">
#!/bin/sh
# This script will create a local Fedora 13 mirror via Rsync
# Note: This script will download Fedora 13
#

rsync="rsync -avrt --bwlimit=256"

mirror=mirrors.kernel.org::mirrors/fedora

verlist="13"
archlist="i386 x86_64"
baselist="os"
local=/var/www/html/fedora/

for ver in $verlist
do
 for arch in $archlist
 do
  for base in $baselist
  do
    remote=$mirror/releases/$ver/Fedora/$arch/$base/
    $rsync $remote $local/$ver/$base/$arch/
  done
 done
done
</pre>
<blockquote><p>
# chmod 755 fedora-repo-update.sh
</p></blockquote>
<p>Add the bash script to your crontab to update your local repository every night (01H00 in this case)</p>
<blockquote><p>
# crontab -e
</p></blockquote>
<pre class="brush: shell">#       minute (0-59),
#       |       hour (0-23),
#       |       |       day of the month (1-31),
#       |       |       |       month of the year (1-12),
#       |       |       |       |       day of the week (0-6 with 0=Sunday).
#       |       |       |       |       |       commands
# -----------[ cron jobs  ]------------ #

# Update Local YUM repo update from fedora.mirror.facebook.net
	 0 	  1 	  * 	  * 	  * 	   /path/to/fedora-repo-update.sh
</pre>
<p><strong>Configure <em>Fedora YUM client</em> servers as follows:</strong></p>
<p>Rename all existing yum repositories from *.repo to *.old</p>
<blockquote><p>
# vi /etc/yum.repos.d/localFedora.repo
</p></blockquote>
<blockquote><p>
[base]<br />
name=Fedora $releasever &#8211; $basearch<br />
failovermethod=priority<br />
baseurl=http://server1.example.co.za/fedora/$releasever/$basearch/os/<br />
enabled=1<br />
gpgcheck=0
</p></blockquote>
<p>Test your setup by running a yum update on your client machine.</p>
<blockquote><p>
# yum update</p>
<p>Loading &#8220;fastestmirror&#8221; plugin<br />
Loading mirror speeds from cached hostfile<br />
* update: server1.example.co.za<br />
* base: server1.example.co.za
</p></blockquote>


<p>Related posts:<ol><li><a href='http://www.how2centos.com/creating-a-local-fedora-11-yum-repository/' rel='bookmark' title='Permanent Link: Creating a Local #Fedora 11 #Yum Repository'>Creating a Local #Fedora 11 #Yum Repository</a></li>
<li><a href='http://www.how2centos.com/creating-a-local-fedora-12-yum-repository/' rel='bookmark' title='Permanent Link: Creating a Local #Fedora 12 #Yum Repository'>Creating a Local #Fedora 12 #Yum Repository</a></li>
<li><a href='http://www.how2centos.com/creating-a-local-yum-repository-on-centos-5x/' rel='bookmark' title='Permanent Link: Creating A Local #Yum Repository on #CentOS 5.x'>Creating A Local #Yum Repository on #CentOS 5.x</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/how2centos/~4/Od4A4mk2NiI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.how2centos.com/create-fedora-13-local-yum-repository/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enabling #multimedia support on #CentOS 5.5</title>
		<link>http://www.how2centos.com/enabling-multimedia-support-on-centos-5-5/</link>
		<comments>http://www.how2centos.com/enabling-multimedia-support-on-centos-5-5/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 10:42:34 +0000</pubDate>
		<dc:creator>How2CentOS</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[multimedia]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.how2centos.com/?p=894</guid>
		<description><![CDATA[The CentOS base repository has no way to install the codecs and utilities we need to be able to play an MP3 or watch a DIVX movie. In this guide I will show you how to get all the multimedia support you want, as well as being able to use flash to view flash enabled [...]


Related posts:<ol><li><a href='http://www.how2centos.com/installing-nvidia-display-drivers-on-centos-5-x/' rel='bookmark' title='Permanent Link: Installing #NVIDIA display drivers on #CentOS 5.5'>Installing #NVIDIA display drivers on #CentOS 5.5</a></li>
<li><a href='http://www.how2centos.com/installing-cherokee-with-php5-2-10-and-mysql-support-on-centos-5-3/' rel='bookmark' title='Permanent Link: Installing #Cherokee with #PHP 5.2.10 and MySQL Support On #CentOS 5.3'>Installing #Cherokee with #PHP 5.2.10 and MySQL Support On #CentOS 5.3</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.how2centos.com/wp-content/uploads/2009/05/centos.gif"><img src="http://www.how2centos.com/wp-content/uploads/2009/05/centos.gif" alt="" title="centos" width="42" height="40" class="alignleft size-full wp-image-225" /></a>The CentOS base repository has no way to install the codecs and utilities we need to be able to play an MP3 or watch a DIVX movie. In this guide I will show you how to get all the multimedia support you want, as well as being able to use flash to view flash enabled websites.</p>
<p>Firstly we need to install the RPMForge repository, so that we can get access to all the codecs and applications we need. The repository comes in two flavors, namely 64-bit and 32-bit. Make sure you select the correct repository to install. When in doubt, select 32-bit.</p>
<p>For 32-bit installations (i.e. CentOS 5.x 32-bit installed), enter the following into your console/terminal:<br />
<span id="more-894"></span></p>
<blockquote><p>
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm<br />
# su -c &#8216;rpm -Uvh rpmforge-release-0.5.1-1.el5.rf.i386.rpm&#8217;
</p></blockquote>
<p>Enter your root password to complete the installation.</p>
<p>For 64-bit installations (i.e. CentOS 5.x 64-bit installed), enter the following into your console/terminal::</p>
<blockquote><p>
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm<br />
# su -c &#8216;rpm -Uvh rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm&#8217;
</p></blockquote>
<p>Enter your root password to complete the installation.</p>
<p>Next we need to install the Macromedia repository which will give us the ability to install the latest flash player. Enter the following into your console/terminal:</p>
<blockquote><p>
# su -c &#8216;rpm -Uhv http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm&#8217;
</p></blockquote>
<p>Enter your root password to complete the installation.</p>
<p>The next thing we need to do is install all the multimedia applications that we want to use.  Enter the following into your console/terminal:</p>
<blockquote><p>
# su -c &#8216;yum -y install libdvdcss libdvdread libdvdplay libdvdnav lsdvd mplayerplug-in mplayer mplayer-gui compat-libstdc++-33 flash-plugin gstreamer-plugins-bad gstreamer-plugins-ugly&#8217;
</p></blockquote>
<p>Enter your root password to complete the installation.</p>
<p>Now we need to install all the codecs we want to use, luckily this step provides all the codecs we will ever need. Enter the following into your console/terminal:</p>
<blockquote><p>
# wget www1.mplayerhq.hu/MPlayer/releases/codecs/mplayer-codecs-20061022-1.i386.rpm<br />
# su -c &#8216;rpm -ivh mplayer-codecs-20061022-1.i386.rpm&#8217;<br />
# wget www1.mplayerhq.hu/MPlayer/releases/codecs/mplayer-codecs-extra-20061022-1.i386.rpm<br />
# su -c &#8216;rpm -ivh mplayer-codecs-extra-20061022-1.i386.rpm&#8217;
</p></blockquote>
<p>Enter your root password to complete the installation.</p>
<p>Well done! You should now have all the multimedia support you would ever want. Double click your MP3 or Movie to start having some fun.</p>
<p>Thank you for reading this guide, please leave me some comments.</p>


<p>Related posts:<ol><li><a href='http://www.how2centos.com/installing-nvidia-display-drivers-on-centos-5-x/' rel='bookmark' title='Permanent Link: Installing #NVIDIA display drivers on #CentOS 5.5'>Installing #NVIDIA display drivers on #CentOS 5.5</a></li>
<li><a href='http://www.how2centos.com/installing-cherokee-with-php5-2-10-and-mysql-support-on-centos-5-3/' rel='bookmark' title='Permanent Link: Installing #Cherokee with #PHP 5.2.10 and MySQL Support On #CentOS 5.3'>Installing #Cherokee with #PHP 5.2.10 and MySQL Support On #CentOS 5.3</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/how2centos/~4/HTnBktJkmWU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.how2centos.com/enabling-multimedia-support-on-centos-5-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss><!-- Dynamic page generated in 1.998 seconds. --><!-- Cached page generated by WP-Super-Cache on 2010-09-08 09:36:10 --><!-- Compression = gzip -->
