<?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>Wed, 10 Mar 2010 10:06:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<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/" /><item>
		<title>Fight Spam With #ASSP (Anti-Spam SMTP Proxy) On CentOS 5.4</title>
		<link>http://www.how2centos.com/fight-spam-with-assp-anti-spam-smtp-proxy-on-centos-5-4/</link>
		<comments>http://www.how2centos.com/fight-spam-with-assp-anti-spam-smtp-proxy-on-centos-5-4/#comments</comments>
		<pubDate>Sun, 28 Feb 2010 14:50:34 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[anti-spam]]></category>
		<category><![CDATA[assp]]></category>
		<category><![CDATA[centos 5.4]]></category>

		<guid isPermaLink="false">http://www.how2centos.com/?p=718</guid>
		<description><![CDATA[ The Anti-Spam SMTP Proxy (ASSP) server project is an Open Source, Perl based, platform-independent transparent SMTP proxy server that leverages numerous methodologies and technologies to both rigidly and adaptively identify e-mail spam. ASSP is easy to set up because it requires only minor changes to the configuration of your your Mail Transfer Agent.
Also please [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.how2centos.com/wp-content/uploads/2010/02/Assp.png"><img src="http://www.how2centos.com/wp-content/uploads/2010/02/Assp.png" alt="" title="Assp" width="90" height="40" class="alignleft size-full wp-image-730" /></a> <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 <a href="http://sourceforge.net/apps/mediawiki/assp/index.php?title=Main_Page">Anti-Spam SMTP Proxy (ASSP)</a> server project is an Open Source, Perl based, platform-independent transparent SMTP proxy server that leverages numerous methodologies and technologies to both rigidly and adaptively identify e-mail spam. ASSP is easy to set up because it requires only minor changes to the configuration of your your Mail Transfer Agent.</p>
<p>Also please read the <a href="http://sourceforge.net/apps/mediawiki/assp/index.php?title=ASSP_Documentation">ASSP documentation</a></p>
<p><strong>Preliminary Note</strong></p>
<p>In this tutorial I use a base 32 bit server install with the hostname server1.example.co.za with the IP address 10.0.0.10. These settings might differ for you, so you have to replace them where appropriate.</p>
<p>Adjust any package names if installing the EL4 or 64 bit packages. If any dependencies are unsatisfied, install the required packages and retry<br />
<span id="more-718"></span><br />
If you have already installed the RPM Forge repository do so by running the following command</p>
<blockquote><p>
# rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
</p></blockquote>
<p>Now lets install the Perl components needed to run ASSP (Anti-Spam SMTP Proxy) on CentOS 5.4. Firstly we upgrade Perl and then install the Perl modules.</p>
<blockquote><p>
# yum upgrade perl<br />
# yum install perl-IO-Compress perl-Net-DNS perl-Email-Valid perl-File-ReadBackwards perl-Mail-SPF-Query perl-Mail-SRS perl-LDAP perl-MIME-tools perl-File-Scan-ClamAV
</p></blockquote>
<p>If and in order to run ClamAV anti-virus along with ASSP (Anti-Spam SMTP Proxy) install the ClamAV RPM</p>
<blockquote><p>
# yum install clamd<br />
# chkconfig clamd on<br />
# service clamd start
</p></blockquote>
<p>Next we'll download and install ASSP (Anti-Spam SMTP Proxy)</p>
<p>Firstly check and grab the link for the latest version of ASSP on thier website, the version used in this post is ASSP Version: 1.6.5.5(1.0.02). Copy the direct download link for the latest version and download it.</p>
<p>Lets get ASSP.</p>
<blockquote><p>
# wget http://downloads.sourceforge.net/project/assp/ASSP%20Installation/ASSP%201.6.5.5/ASSP_1.6.5.5-Install.zip?use_mirror=ufpr
</p></blockquote>
<p>Make some preparations. Create the following directories that ASSP (Anti-Spam SMTP Proxy) will use to maintain the SPAM</p>
<blockquote><p>
# mkdir -p /usr/share/assp/spam<br />
# mkdir /usr/share/assp/notspam<br />
# mkdir /usr/share/assp/errors<br />
# mkdir /usr/share/assp/errors/spam<br />
# mkdir /usr/share/assp/errors/notspam
</p></blockquote>
<p>Now unpack ASSP.</p>
<p># unzip ASSP_1.6.5.5-Install.zip<br />
# cd ASSP_1.6.5.5-Install</p>
<p>And put ASSP in place.</p>
<blockquote><p>
# mv -f ASSP/* /usr/share/assp
</p></blockquote>
<p>Create following startup scripts. </p>
<blockquote><p>
# vi /etc/init.d/assp
</p></blockquote>
<pre class="brush: bash">
#!/bin/bash
#
# chkconfig: 2345 80 05
# Description: ASSP init.d script
# Hacked by : How2CentOS - http://www.how2centos.com

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

# Start the service ASSP
start() {
        echo -n "Starting ASSP server: "
        cd /usr/share/assp
        perl assp.pl 2>&#038;1 > /dev/null &#038;
        ### Create the lock file ###
        touch /var/lock/subsys/ASSP
        success $"ASSP server startup"
        echo
}

# Restart the service ASSP
stop() {
        echo -n "Stopping ASSP server: "
        kill -9 `ps ax | grep "perl assp.pl" | grep -v grep | awk '{ print $1 }'`
        ### Now, delete the lock file ###
        rm -f /var/lock/subsys/ASSP
        success $"ASSP server shutdown"
        echo
}

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

exit 0
</pre>
<p>Lets start ASSP for the first time.</p>
<blockquote><p>
# cd /usr/share/assp<br />
# perl assp.pl
</p></blockquote>
<p>You should be able to connect to ASSP web interface at this point. http://server1.example.co.za:55555. Specify anything for "username", default "password" is <strong>nospam4me</strong></p>
<p>At this point you shall see that ASSP is unable to bind to port 25. We need to stop and disable CentOS default mailer Sendmail.</p>
<blockquote><p>
# service sendmail stop<br />
# chkconfig sendmail off
</p></blockquote>
<p>or</p>
<blockquote><p>
# yum remove sendmail
</p></blockquote>
<p>Now let's shutdown ASSP with "Ctrl-C". Now add the init script to chkconfig, set the run levels and start ASSP. </p>
<blockquote><p>
# chmod 755 /etc/init.d/assp<br />
# chkconfig --add assp<br />
# chkconfig assp on<br />
# service assp start
</p></blockquote>
<p>Now lets do some minimal ASSP Configuration, point you browser to http://server1.example.co.za:55555</p>
<p>Network Setup</p>
<p>    * SMTP Listen Port 25<br />
    * SMTP Destination 25 </p>
<p>SMTP Session Limits<br />
Testmode</p>
<p>    * All Testmode ON - Running in this mode for two weeks to build the spamdb and whitelist </p>
<p>SPAM Control </p>
<p>    * Prepend Spam Subject {ASSP-SPAM}</p>
<p>Copy Spam &#038; Ham<br />
Spam Lover/Hater<br />
No Processing<br />
Redlisting/Whitelisting<br />
Relaying<br />
Recipients<br />
Validate Helo<br />
Validate Sender<br />
IP Blocking<br />
Penalty Box<br />
Delaying<br />
SPF/SRS<br />
DNSSBL<br />
URIBL<br />
Attachment Blocking<br />
ClamAV </p>
<p>    * Port or file socket for ClamAV (AvClamdPort) - /var/run/clamav/clamd.sock </p>
<p>Regex Filters / Spambomb<br />
Bayesian Options<br />
Backscatter Detection<br />
Email Interface<br />
File Paths<br />
Collecting<br />
Logging<br />
LDAP Setup<br />
DNS Setup<br />
Server Setup</p>
<p>After a week rebuild the bayes database. Check the directories /usr/share/assp/spam and nospam for wrong entries, if good mail ends up in the spam directory please move it to the nospam directory and vice versa. After that do:</p>
<blockquote><p>
# cd /usr/share/assp<br />
# perl rebuildspamdb.pl
</p></blockquote>
<p>Finally let's add the bayes database rebuild to crontab.</p>
<blockquote><p>
# crontab -e
</p></blockquote>
<pre class="brush: bash">
#       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  ]------------ #

# Weekly rebuild of the bayes database
		* 	  * 	  * 	  * 	  0 	   cd /usr/share/assp &#038;& perl rebuildspamdb.pl
</pre>


<p>No related posts.</p><img src="http://feeds.feedburner.com/~r/how2centos/~4/0yRh2ZbSARs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.how2centos.com/fight-spam-with-assp-anti-spam-smtp-proxy-on-centos-5-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>#Subversion: Failed to get lock on destination repository</title>
		<link>http://www.how2centos.com/subversion-failed-to-get-lock-on-destination-repository/</link>
		<comments>http://www.how2centos.com/subversion-failed-to-get-lock-on-destination-repository/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 11:13:09 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[MISC]]></category>
		<category><![CDATA[Subversion]]></category>

		<guid isPermaLink="false">http://www.how2centos.com/?p=705</guid>
		<description><![CDATA[In the event that your Subversion server was powered down incorrectly during one of its subversion mirror synchronizations you might end up with a lock on the destination repository. This basic tutorial will help you to remove the lock and continue with your synchronizations.
Below is the output from the svnsync showed this:

# /usr/bin/svnsync --non-interactive synchronize [...]


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>
</ol>]]></description>
			<content:encoded><![CDATA[<p>In the event that your Subversion server was powered down incorrectly during one of its subversion mirror synchronizations you might end up with a lock on the destination repository. This basic tutorial will help you to remove the lock and continue with your synchronizations.</p>
<p>Below is the output from the svnsync showed this:</p>
<blockquote><p>
# /usr/bin/svnsync --non-interactive synchronize svn://{destination repository}/opt/svn/{repo}</p>
<p>Failed to get lock on destination repos, currently held by 'svn.how2centos.com:fbc2c0c8-957f-0410-8a06-87f31314868b'<br />
Failed to get lock on destination repos, currently held by 'svn.how2centos.com:fbc2c0c8-957f-0410-8a06-87f31314868b'<br />
Failed to get lock on destination repos, currently held by 'svn.how2centos.com:fbc2c0c8-957f-0410-8a06-87f31314868b'<br />
Failed to get lock on destination repos, currently held by 'svn.how2centos.com:fbc2c0c8-957f-0410-8a06-87f31314868b'<br />
Failed to get lock on destination repos, currently held by 'svn.how2centos.com:fbc2c0c8-957f-0410-8a06-87f31314868b'<br />
Failed to get lock on destination repos, currently held by 'svn.how2centos.com:fbc2c0c8-957f-0410-8a06-87f31314868b'<br />
Failed to get lock on destination repos, currently held by 'svn.how2centos.com:fbc2c0c8-957f-0410-8a06-87f31314868b'<br />
Failed to get lock on destination repos, currently held by 'svn.how2centos.com:fbc2c0c8-957f-0410-8a06-87f31314868b'<br />
Failed to get lock on destination repos, currently held by 'svn.how2centos.com:fbc2c0c8-957f-0410-8a06-87f31314868b'<br />
Failed to get lock on destination repos, currently held by 'svn.how2centos.com:fbc2c0c8-957f-0410-8a06-87f31314868b'<br />
svnsync: Couldn't get lock on destination repos after 10 attempts
</p></blockquote>
<p>To remove the lock you'll need to do the following:</p>
<blockquote><p>
# svn propdel svn:sync-lock --revprop -r 0 svn://{destination repository}/opt/svn/{repo}<br />
# /usr/bin/svnsync --non-interactive synchronize svn://{destination repository}/opt/svn/{repo}</p>
<p>Committed revision 1694.<br />
Copied properties for revision 1694.<br />
Committed revision 1695.<br />
Copied properties for revision 1695.
</p></blockquote>


<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>
</ol></p><img src="http://feeds.feedburner.com/~r/how2centos/~4/YBao9dgnMOw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.how2centos.com/subversion-failed-to-get-lock-on-destination-repository/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>#Firewall Migration and Planning Guide</title>
		<link>http://www.how2centos.com/firewall-migration-and-planning-guide/</link>
		<comments>http://www.how2centos.com/firewall-migration-and-planning-guide/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 11:56:29 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[MISC]]></category>
		<category><![CDATA[Firewall]]></category>
		<category><![CDATA[Planning Guide]]></category>

		<guid isPermaLink="false">http://www.how2centos.com/?p=689</guid>
		<description><![CDATA[Plan and document existing firewall
Planning and documenting the migration of the firewall is critical, without it you're doomed. Over time configurations grow as rules and networks are added for specific purposes are often superseded or simply forgotten.
You need to document these as well as any other additional services or features (i.e. DHCP, DNS or VPN). [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.how2centos.com/wp-content/uploads/2010/01/firewall.jpeg"><img src="http://www.how2centos.com/wp-content/uploads/2010/01/firewall.jpeg" alt="firewall" title="firewall" width="60" height="60" class="alignleft size-full wp-image-696" /></a><strong>Plan and document existing firewall</strong><br />
Planning and documenting the migration of the firewall is critical, without it you're doomed. Over time configurations grow as rules and networks are added for specific purposes are often superseded or simply forgotten.</p>
<p>You need to document these as well as any other additional services or features (i.e. DHCP, DNS or VPN). This will assist you while you recreate the policies behind the firewall rules.<br />
<a href="http://www.how2centos.com/wp-content/uploads/2010/01/Firewall-Planning-Guide.png"><img src="http://www.how2centos.com/wp-content/uploads/2010/01/Firewall-Planning-Guide-300x187.png" alt="" title="Firewall Planning Guide" width="300" height="187" class="aligncenter size-medium wp-image-702" /></a><br />
You can download a sample Firewall Planning Guide here:</p>
<p><a class="downloadlink" href="http://www.how2centos.com/wp-content/plugins/download-monitor/download.php?id=4" title="Versionv1.0 downloaded 66 times" >Firewall Planning Guide (66)</a><br />
<span id="more-689"></span><br />
<strong>Review policy changes</strong><br />
Before you begin review your Planning guides and decide if they're 1) Still valid? or 2) Is this what the customer needs?</p>
<p>The replacement of a key firewall is the perfect time to consider whether the current policy is the current best practice and/or whether it still fits the security needs of the company.</p>
<p><strong>Determine any rule changes</strong><br />
Once you’re agreed on policy, check the existing firewall rules and functions to see what is in conformance, what is superfluous, and what needs to be added.</p>
<p><strong>Test the new configuration on the firewall</strong><br />
This is an important step. Change your gateway to the new firewall which is running concurrently with the old and test. Firstly, this will let you determine whether or not the new rules are complete and working. Secondly, it won't interrupt day to day operations.</p>
<p><strong>Move to the new firewall</strong><br />
If all is well migrate to the new firewall either by switching IP's or changing the default gateway in DHCP. Once the firewall is in place, acceptance testing will of course need to be carried out.</p>
<p>In case of emergency, the fact that you have the old firewall and new firewall set up allows you to quickly roll back to the old firewall and pull the new one out of service for checking and reconfiguration. Having this option available should reduce network downtime if there's a show stopper.</p>
<p><strong>Adding new services</strong><br />
Wait until the new firewall is stable before adding new functions as this simplifies testing. Finally complete the migration by adding any new services that were requested, and since the configuration is known to be good and stable before adding the new services, any introduced instability should be easy to isolate and fix.</p>


<p>No related posts.</p><img src="http://feeds.feedburner.com/~r/how2centos/~4/tNoP1Tgd0k4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.how2centos.com/firewall-migration-and-planning-guide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a Local #Fedora 12 #Yum Repository</title>
		<link>http://www.how2centos.com/creating-a-local-fedora-12-yum-repository/</link>
		<comments>http://www.how2centos.com/creating-a-local-fedora-12-yum-repository/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 12:26:17 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[fedora 12]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://www.how2centos.com/?p=684</guid>
		<description><![CDATA[ Fedora 12 has just been released so it'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.
This How To [...]


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-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>
<li><a href='http://www.how2centos.com/adding-centos-53-to-local-yum-repository/' rel='bookmark' title='Permanent Link: Adding #CentOS 5.3 to Local #YUM Repository'>Adding #CentOS 5.3 to Local #YUM Repository</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 12 has just been released so it'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>This How To will show you a simple yet effective way of setting up your local Fedora 12 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-684"></span></p>
<p><strong>Preliminary Note:</strong></p>
<p>I am using two Fedora 12 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 12 YUM Repository and httpd server</em><br />
* server2.example.co.za (IP 10.0.0.102): <em>Fedora 12 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/12/os/i386<br />
# mkdir -p /var/www/html/fedora/12/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 - <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

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

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

verlist="12"
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 - $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 "fastestmirror" 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-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>
<li><a href='http://www.how2centos.com/adding-centos-53-to-local-yum-repository/' rel='bookmark' title='Permanent Link: Adding #CentOS 5.3 to Local #YUM Repository'>Adding #CentOS 5.3 to Local #YUM Repository</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/how2centos/~4/jiZvQBHcwZo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.how2centos.com/creating-a-local-fedora-12-yum-repository/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>#Fedora 12: Constantine – Released to repositories</title>
		<link>http://www.how2centos.com/fedora-12-constantine-released-to-repositories/</link>
		<comments>http://www.how2centos.com/fedora-12-constantine-released-to-repositories/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 09:00:53 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[fedora 12]]></category>

		<guid isPermaLink="false">http://www.how2centos.com/?p=674</guid>
		<description><![CDATA[
Fedora 12 Overview
As always, Fedora continues to develop (http://www.fedoraproject.org/wiki/Red_Hat_contributions) and integrate the latest free and open source software (http://www.fedoraproject.org/wiki/Features). The following sections provide a brief overview of major changes from the previous release of Fedora. 
For more details about other features that are included in Fedora 12 refer to their individual wiki pages that detail [...]


Related posts:<ol><li><a href='http://www.how2centos.com/fedora-11-reign-released/' rel='bookmark' title='Permanent Link: #Fedora 11: #Leonidas &#8211; Released'>#Fedora 11: #Leonidas &#8211; Released</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-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>
</ol>]]></description>
			<content:encoded><![CDATA[<p><img src="http://fedoraproject.org/static/images/f12launch.png" alt="Fedora 12" width="375" height="125"/></p>
<p><strong>Fedora 12 Overview</strong></p>
<p>As always, Fedora continues to develop (<a href="http://www.fedoraproject.org/wiki/Red_Hat_contributions">http://www.fedoraproject.org/wiki/Red_Hat_contributions</a>) and integrate the latest free and open source software (<a href="http://www.fedoraproject.org/wiki/Features">http://www.fedoraproject.org/wiki/Features</a>). The following sections provide a brief overview of major changes from the previous release of Fedora. </p>
<p>For more details about other features that are included in Fedora 12 refer to their individual wiki pages that detail feature goals and progress:<br />
<a href="http://www.fedoraproject.org/wiki/Releases/12/FeatureList">http://www.fedoraproject.org/wiki/Releases/12/FeatureList</a></p>
<p>Throughout the release cycle, there are interviews with the developers behind key features giving out the inside story:<br />
<a href="http://www.fedoraproject.org/wiki/Interviews">http://www.fedoraproject.org/wiki/Interviews</a></p>
<p>The following are major features for Fedora 12:<br />
    *      Improved WebCam support<br />
    *      Better Video Codec<br />
    *      Audio Improvements<br />
    *      Better Power Management </p>
<p>Some other features in this release include:<br />
    *      Automatic bug reporting tool<br />
    *      Bluetooth on demand<br />
    *      Many, many virtualization enhancements<br />
    *      Still more security improvements </p>
<p>Features for Fedora 12 tracked on the feature list page:<br />
<a href="http://www.fedoraproject.org/wiki/Releases/12/FeatureList">http://www.fedoraproject.org/wiki/Releases/12/FeatureList</a></p>
<p>A discussion putting these features in context may be found at:<br />
<a href="http://www.fedoraproject.org/wiki/Fedora_12_Talking_Points ">http://www.fedoraproject.org/wiki/Fedora_12_Talking_Points </a></p>
<p>Original Document: <a href="http://docs.fedoraproject.org/release-notes/f12/en-US/html/">http://docs.fedoraproject.org/release-notes/f12/en-US/html/</a></p>


<p>Related posts:<ol><li><a href='http://www.how2centos.com/fedora-11-reign-released/' rel='bookmark' title='Permanent Link: #Fedora 11: #Leonidas &#8211; Released'>#Fedora 11: #Leonidas &#8211; Released</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-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>
</ol></p><img src="http://feeds.feedburner.com/~r/how2centos/~4/nvrY5JVUfYQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.how2centos.com/fedora-12-constantine-released-to-repositories/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>#Asterisk LibPRI outbound MOH fix</title>
		<link>http://www.how2centos.com/asterisk-libpri-outbound-moh-fix/</link>
		<comments>http://www.how2centos.com/asterisk-libpri-outbound-moh-fix/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 09:18:48 +0000</pubDate>
		<dc:creator>Shaun</dc:creator>
				<category><![CDATA[MISC]]></category>
		<category><![CDATA[Asterisk]]></category>

		<guid isPermaLink="false">http://www.how2centos.com/?p=665</guid>
		<description><![CDATA[This is a very simple and effective 'work around' for the popular Asterisk outbound Music on Hold (MOH) issue.  This is a default Asterisk setting that will play your own MOH on an outbound call, which has proved to be problematic.  More often than not, and all the time with certain dialed numbers [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>This is a very simple and effective 'work around' for the popular Asterisk outbound Music on Hold (MOH) issue.  This is a default Asterisk setting that will play your own MOH on an outbound call, which has proved to be problematic.  More often than not, and all the time with certain dialed numbers (depending on the dialed company's PBX system), the caller (you) is put on hold, and your Asterisk system plays your [default] MOH music.  When the call is unholded by the remote party, the call on your side is not retrieved, resulting in your MOH being played indefinitely, loosing the call - very unprofessional, and you are guaranteed this will happen to your CEO, to his most frequent dialed business partners !</p>
<p><strong>Reason:</strong> Within the Asterisk Kernel, it is coded to play the [default] Message on Hold (MOH) class, which is the same for all calls made internally to another extension.  You can create many MOH classes, but only the [default] is used for external calls.  It is also a bug in the way LibPRI processes ISDN on-hold frames, and won’t be fixed in current Asterisk 1.4, but will be an option to turn this off in DAHDI Asterisk 1.6 (so I have read).  We have tried and tested 1.6, and was introduced to a whole new range of problems (other advice - stick to 1.4!).  Asterisk also has issues interpreting certain DTMF tones, so does not know when to unhold a call, because never receives or interprets the unhold tone sent by remote PBX system.  On the 'Outbound Routes' option in FreePBX, you can set the MOH to none, but does not work, still uses default.</p>
<p><strong>Relates to:</strong></p>
<p>AsteriskNOW<br />
Trixbox<br />
Elastix - My best choice of a complete Asterisk PBX Solution!<br />
Other Asterisk installed by source, possibly on Ubuntu</p>
<p>All the above are available for ISO download, and based on CentOS 5 Core.</p>
<p><strong>Solutions</strong></p>
<p>a)  Hire a very expensive Asterisk Guru to recode your current Asterisk Kernel to suit you (other issues will arise, and you will have to folk out a lot more money)...</p>
<p>OR</p>
<p>b) Simply do it yourself with the tools provided in three easy steps!  After many late nights Googling and trying to figure out the Kernel / Code myself, I came up with a very simple, right in front of you, simple solution.  The only downfall here, is that internally dialed extensions (you to a work mate) will not play music on hold, the person on hold will only hear silence, which is worth it!</p>
<p><strong>Create a new Music on Hold class, and configure the music.</strong></p>
<p>Firstly browser to your FreePBX GUI, navigate to 'Music on Hold', select 'Add Music Category', and give it a name.  For now I will name it CompanyA.</p>
<p>In your Linux console, this will create a folder in /var/lib/asterisk/mohmp3/CompanyA/</p>
<blockquote><p>
# ll /var/lib/asterisk/mohmp3/
</p></blockquote>
<p>Copy your music from /var/lib/asterisk/mohmp3/ to this new directory:</p>
<blockquote><p>
# cp /var/lib/asterisk/mohmp3/*.mp3 (or WAV) /var/lib/asterisk/mohmp3/CompanyA
</p></blockquote>
<p><strong>Change ALL your Inbound Lines and Queues</strong></p>
<p>Next Change ALL your Inbound Lines and Queues within FreePBX GUI to use this new MOH class 'CompanyA'.  You dont have to do this for inbound Fax lines if you are making use of Fax to Email, like Hylafax.  I left mine as Default.</p>
<p>You can script this, but its a much longer process to create a script, rather than simply doing it via the GUI.  If you backup your asterisk folder, or rsync it, then change a field or two in FreePBX, then run rsync again or diff on the files, it changes more than one config file, and just becomes confusing.  Get your IT desktop guy to do the manual work, otherwise please post the script!</p>
<p><strong>Edit config file and restart Asterisk</strong></p>
<p>Finally all you need to do is edit a config file, reload Asterisk, and you're done!</p>
<blockquote><p>
# vim /etc/asterisk/musiconhold_additional.conf
</p></blockquote>
<p>Comment out the [default] MOH class to point to /dev/null (this deactivates the MOH feature completely for this class).  Comment out and add for easy roll-back, always think ahead!</p>
<pre class="brush: bash">
[CompanyA]
mode=files
directory=/var/lib/asterisk/mohmp3/CompanyA/
random=yes

[default]
mode=files
directory=/dev/null

;[default]
;mode=files
;directory=/var/lib/asterisk/mohmp3/
</pre>
<p>FINALLY - in FreePBX, 'Reload Asterisk'...  and you're done!</p>
<p><strong>Result:</strong>  From here, when you make an outbound call, and you are put on hold, you will hear the dialed party's Music on Hold (or whatever they have) instead of yours.  This reassures you that the call has not dropped, and you are still on hold.  There is no DTMF tones or frames that your Asterisk box has to interpret, taking the fault away from your side.  Your CEO will be happy that now he can actually wait on hold for a board member and not be cut off, and wondering why they called person has not come back to him.</p>


<p>No related posts.</p><img src="http://feeds.feedburner.com/~r/how2centos/~4/F0YaKu8aa9A" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.how2centos.com/asterisk-libpri-outbound-moh-fix/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>#Remus applied to the official #Xen repository</title>
		<link>http://www.how2centos.com/remus-applied-to-the-official-xen-repository/</link>
		<comments>http://www.how2centos.com/remus-applied-to-the-official-xen-repository/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 09:02:09 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[MISC]]></category>
		<category><![CDATA[centos 5.4]]></category>
		<category><![CDATA[fedora 11]]></category>
		<category><![CDATA[remus]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://www.how2centos.com/?p=661</guid>
		<description><![CDATA[The one problem with Xen is transparent high availability of your servers, sure you can snapshot an image but thats only of you shutdown the virtual machine. How excited was I when Remus announced that it has been applied to the official Xen repository, and is expected to be included with the next major release. [...]


Related posts:<ol><li><a href='http://www.how2centos.com/how-to-install-xen-3-4-1-on-centos-5-4/' rel='bookmark' title='Permanent Link: How to install #XEN 3.4.1 on #CentOS 5.4'>How to install #XEN 3.4.1 on #CentOS 5.4</a></li>
<li><a href='http://www.how2centos.com/installing-xen-on-centos-5x/' rel='bookmark' title='Permanent Link: Installing #XEN on #CentOS 5.x'>Installing #XEN on #CentOS 5.x</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>The one problem with Xen is transparent high availability of your servers, sure you can snapshot an image but thats only of you shutdown the virtual machine. How excited was I when Remus announced that it has been applied to the official Xen repository, and is expected to be included with the next major release. Bookmark this page for a soon to be released how to install Xen with Remus support on CentOS 5.4!</p>
<p><strong>What is Remus?</strong></p>
<p>Remus provides transparent, comprehensive high availability to ordinary virtual machines running on the Xen virtual machine monitor. It does this by maintaining a completely up-to-date copy of a running VM on a backup server, which automatically activates if the primary server fails. Key features:</p>
<p>    * The backup VM is an exact copy of the primary VM. When failure happens, it continues running on the backup host as if failure had never occurred.<br />
    * The backup is completely up-to-date. Even active TCP sessions are maintained without interruption.<br />
    * Protection is transparent. Existing guests can be protected without modifying them in any way.</p>
<p>For a full description and evaluation, see their <a href="http://dsg.cs.ubc.ca/remus/papers/remus-nsdi08.pdf">NSDI paper</a>.</p>
<p>Visit the project: <a href="http://dsg.cs.ubc.ca/remus/">http://dsg.cs.ubc.ca/remus/</a></p>


<p>Related posts:<ol><li><a href='http://www.how2centos.com/how-to-install-xen-3-4-1-on-centos-5-4/' rel='bookmark' title='Permanent Link: How to install #XEN 3.4.1 on #CentOS 5.4'>How to install #XEN 3.4.1 on #CentOS 5.4</a></li>
<li><a href='http://www.how2centos.com/installing-xen-on-centos-5x/' rel='bookmark' title='Permanent Link: Installing #XEN on #CentOS 5.x'>Installing #XEN on #CentOS 5.x</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/how2centos/~4/vZ5G-8b3aRU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.how2centos.com/remus-applied-to-the-official-xen-repository/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Installing #Jasper reporting for #MySQL on #CentOS 5.4</title>
		<link>http://www.how2centos.com/installing-jasper-reporting-for-mysql-on-centos-5-4/</link>
		<comments>http://www.how2centos.com/installing-jasper-reporting-for-mysql-on-centos-5-4/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 12:00:55 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[bitnami]]></category>
		<category><![CDATA[centos 5.4]]></category>
		<category><![CDATA[jasper]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.how2centos.com/?p=621</guid>
		<description><![CDATA[What is BitNami?
BitNami Native Installers automate the setup of a BitNami Stack on Windows, Linux or Mac OS X. Each installer includes all of the software necessary to run out of the box (the Stack). The process is simple; just download, click next-next-next and you are done! BitNami Stacks are completely self contained and will [...]


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>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.how2centos.com/wp-content/uploads/2009/11/bitnami_stack.jpg"><img src="http://www.how2centos.com/wp-content/uploads/2009/11/bitnami_stack-150x150.jpg" alt="bitnami_stack" title="bitnami_stack" width="42" height="40" class="alignleft size-thumbnail wp-image-645" /></a><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="centos" title="centos" width="42" height="40" class="alignleft size-full wp-image-225" /></a><strong>What is BitNami?</strong></p>
<p>BitNami Native Installers automate the setup of a BitNami Stack on Windows, Linux or Mac OS X. Each installer includes all of the software necessary to run out of the box (the Stack). The process is simple; just download, click next-next-next and you are done! BitNami Stacks are completely self contained and will not interfere with other software on your system.</p>
<p><a href="http://bitnami.org/">http://bitnami.org/</a></p>
<p><strong>What is Jasper for MySQL?</strong></p>
<p>JasperServer Professional is a high-performance standalone and embeddable report server that provides non-technical business users with:</p>
<p>    * Drag and drop ad hoc report building<br />
    * Drag and drop dashboarding with live-refresh, and mash-ups with external content<br />
    * A rich business metadata layer for easy ad hoc query<br />
    * Integrated and in-memory data analysis<br />
    * Built-in charting and integration with third-party visualization tools<br />
    * Self-service parameterized web reporting<br />
    * Report scheduling, distribution and historical versioning<br />
    * A secure report and metadata repository<br />
    * Access to any data source including relational, XML, Hibernate, EJB, POJO, and custom<br />
    * Row and column level data security</p>
<p><a href="http://www.jaspersoft.com/jasperserver">http://www.jaspersoft.com/jasperserver</a></p>
<p><strong>Preliminary Note:</strong></p>
<p>I am using a CentOS 5.4 x86_64 base installation in this tutorial</p>
<p>* server1.example.co.za (IP 10.0.0.100): <em>CentOS 5.4 x86_64 Base installation</em></p>
<p><strong>Download and Install BitNami JasperSever Stack</strong></p>
<blockquote><p>
# wget http://bitnami.org/files/stacks/jasperserver/bitnami-jasperserver-3.5.0-0-linux-installer.bin<br />
# chmod 755 ./bitnami-jasperserver-3.5.0-0-linux-installer.bin<br />
# ./bitnami-jasperserver-3.5.0-0-linux-installer.bin
</p></blockquote>
<pre class="brush: text">
----------------------------------------------------------------------------
Welcome to the BitNami JasperServer Stack Setup Wizard.

----------------------------------------------------------------------------
Installation folder

Please, choose a folder to install BitNami JasperServer Stack

Select a folder [/opt/jasperserver-3.5.0-0]:

----------------------------------------------------------------------------
MySQL Information

Please enter your MySQL database information:

MySQL Server port [3306]:

----------------------------------------------------------------------------
MySQL Credentials

Please enter your database root user password

MySQL Server root password :
Re-enter password :
----------------------------------------------------------------------------
Setup is now ready to begin installing BitNami JasperServer Stack on your computer.

Do you want to continue? [Y/n]:
</pre>
<p>In this installation I went ahead and chose all the defaults</p>
<p><strong>Note:</strong> if you get this error:</p>
<p><em>-bash: ./bitnami-jasperserver-3.5.0-0-linux-installer.bin: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory</em> </p>
<p>make sure the i386 version of ibstdc++ is installed:</p>
<blockquote><p>
# rpm -qa | grep ibstdc++<br />
# yum install libstdc++
</p></blockquote>
<p><strong>Starting and Stopping the JasperServer</strong></p>
<blockquote><p>
# ./catalina.sh start<br />
# ./catalina.sh stop
</p></blockquote>
<p>Once you have started the JasperServer point your browser to the following URL to access the JasperServer GUI</p>
<blockquote>
<p>http://server1.example.co.za:8080/jasperserver/login.html</p>
</blockquote>
<p><a href="http://www.how2centos.com/wp-content/uploads/2009/11/jasperserver.jpg"><img src="http://www.how2centos.com/wp-content/uploads/2009/11/jasperserver.jpg" alt="jasperserver" title="jasperserver" width="496" height="328" class="aligncenter size-full wp-image-649" /></a><br />
Now your MySQL reporting can begin.</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>
</ol></p><img src="http://feeds.feedburner.com/~r/how2centos/~4/meGCsZzhz7I" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.how2centos.com/installing-jasper-reporting-for-mysql-on-centos-5-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to keep a detailed audit trail on your #CentOS 5.4 servers</title>
		<link>http://www.how2centos.com/how-to-keep-a-detailed-audit-trail-on-your-centos-5-4-servers/</link>
		<comments>http://www.how2centos.com/how-to-keep-a-detailed-audit-trail-on-your-centos-5-4-servers/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 21:59:42 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[centos 5.4]]></category>
		<category><![CDATA[psacct]]></category>

		<guid isPermaLink="false">http://www.how2centos.com/?p=596</guid>
		<description><![CDATA[The psacct package contains several utilities for monitoring process activities, including ac, lastcomm, accton and sa. The ac command displays statistics about how long users have been logged on. The lastcomm command displays information about previous executed commands. The accton command turns process accounting on or off. The sa command summarizes information about previously executed [...]


No related posts.]]></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="centos" title="centos" width="42" height="40" class="alignleft size-full wp-image-225" /></a>The psacct package contains several utilities for monitoring process activities, including ac, lastcomm, accton and sa. The ac command displays statistics about how long users have been logged on. The lastcomm command displays information about previous executed commands. The accton command turns process accounting on or off. The sa command summarizes information about previously executed commmands. Install the psacct package if you'd like to use its utilities for monitoring process activities on your CentOS 5.4 system.</p>
<p><strong>Installing the psacct package</strong></p>
<p>Use yum command if you are using CentOS 5.4 / Fedora 11 / RHEL 5.4:</p>
<blockquote><p>
# yum install psacct
</p></blockquote>
<p><span id="more-596"></span><br />
<strong>Start psacct service</strong></p>
<p>By default service is not started on RHEL 5.4 / Fedora 11 / CentOS 5.4 you need to start psacct service manually. Type the following two commands to create /var/account/pacct file and start services:</p>
<blockquote><p>
# chkconfig psacct on<br />
# service psacct start
</p></blockquote>
<p><strong>Display statistics about users' connect time</strong></p>
<p>ac prints out a report of connect time (in hours) based on the logins/logouts in the current wtmp file. A total is also printed out.</p>
<blockquote><p>
# ac
</p></blockquote>
<pre class="brush: text">
total       95.08
</pre>
<p>Print totals for each day rather than just one big total at the end.</p>
<blockquote><p>
# ac -d
</p></blockquote>
<pre class="brush: text">
Jul  3  total     1.17
Jul  4  total     2.10
Jul  5  total     8.23
Jul  6  total     2.10
Jul  7  total     0.30
</pre>
<p>Print time totals for each user in addition to the usual everything-lumped-into-one value.</p>
<blockquote><p>
# ac -p
</p></blockquote>
<pre class="brush: text">
bob       8.06
goff      0.60
maley     7.37
root      0.12
total    16.15
</pre>
<p><strong>Find out information about previously executed user commands</strong></p>
<p>lastcomm prints out information about previously executed commands.  If no arguments are specified, lastcomm will print info about all of the commands in acct (the record file).</p>
<blockquote><p>
# lastcomm root
</p></blockquote>
<pre class="brush: text">
userhelper        S   X	root  pts/0      0.00 secs Mon Nov 13 23:58
userhelper        S     root  pts/0      0.00 secs Mon Nov 13 23:45
rpmq                    root  pts/0      0.01 secs Mon Nov 13 23:45
rpmq                    root  pts/0      0.00 secs Mon Nov 13 23:45
rpmq                    root  pts/0      0.01 secs Mon Nov 13 23:45
gcc                     root  pts/0      0.00 secs Mon Nov 13 23:45
which                   root  pts/0      0.00 secs Mon Nov 13 23:44
bash               F    root  pts/0      0.00 secs Mon Nov 13 23:44
ls                      root  pts/0      0.00 secs Mon Nov 13 23:43
rm                      root  pts/0      0.00 secs Mon Nov 13 23:43
vi                      root  pts/0      0.00 secs Mon Nov 13 23:43
ping              S     root  pts/0      0.00 secs Mon Nov 13 23:42
ping              S     root  pts/0      0.00 secs Mon Nov 13 23:42
ping              S     root  pts/0      0.00 secs Mon Nov 13 23:42
cat                     root  pts/0      0.00 secs Mon Nov 13 23:42
netstat                 root  pts/0      0.07 secs Mon Nov 13 23:42
su                S     root  pts/0      0.00 secs Mon Nov 13 23:38
</pre>
<pre class="brush: text">
For each entry the following information is printed:
          + command name of the process
          + flags, as recorded by the system accounting routines:
               S -- command executed by super-user
               F -- command executed after a fork but without a following exec
               C -- command run in PDP-11 compatibility mode (VAX only)
               D -- command terminated with the generation of a core file
               X -- command was terminated with the signal SIGTERM
          + the name of the user who ran the process
          + time the process exited
</pre>
<p>Search the accounting logs by command name:</p>
<blockquote><p>
# lastcomm rm<br />
# lastcomm passwd
</p></blockquote>
<pre class="brush: text">
rm                      root     pts/0      0.00 secs Tue Nov  3 07:34
rm                      root     pts/0      0.00 secs Tue Nov  3 07:34
rm                      root     pts/0      0.00 secs Tue Nov  3 07:33
rm                      root     pts/0      0.00 secs Tue Nov  3 07:33
rm                      root     pts/0      0.00 secs Tue Nov  3 07:14
rm                      root     pts/0      0.00 secs Tue Nov  3 07:14
</pre>
<p>Search the accounting logs by terminal name pts/0</p>
<blockquote><p>
# lastcomm pts/0
</p></blockquote>
<p><strong>Summarizes accounting information</strong></p>
<p>sa summarizes information about previously executed commands as recorded in the acct file.  In addition, it condenses this data into a summary file named savacct which contains the number of times the command was called and the system resources used.  The information can also be summarized on a per-user basis; sa will save this information into a file named usracct.</p>
<blockquote><p>
# sa
</p></blockquote>
<pre class="brush: text">
   26100      26.62re       0.00cp      931k   who
   75980     161.69re       0.00cp      979k   grep
   23756       3.93re       0.00cp      938k   cut
    1283     815.91re       0.00cp     1327k   crond*
       6       4.89re       0.00cp     2102k   sshd*
       4       0.01re       0.00cp     1274k   grotty
       2      33.19re       0.00cp     1624k   scp
      25       0.04re       0.00cp      447k   mail
      15       0.05re       0.00cp      472k   ntpdate
</pre>
<p>Take example of first line:</p>
<pre class="brush: text">
26100      26.62re       0.00cp      931k   who
</pre>
<p>Where,</p>
<p>    * 26.62re "real time" in wall clock minutes<br />
    * 0.00cp sum of system and user time in cpu minutes<br />
    * 931k cpu-time averaged core usage, in 1k units<br />
    * who command name</p>
<p>For each command in the accounting file, print the userid and command name.</p>
<blockquote><p>
# sa -u
</p></blockquote>
<pre class="brush: text">
root       0.00 cpu      595k mem accton
root       0.00 cpu    12488k mem initlog
root       0.00 cpu    12488k mem initlog
root       0.00 cpu    12482k mem touch
root       0.00 cpu    13226k mem psacct
root       0.00 cpu      595k mem consoletype
root       0.00 cpu    13192k mem psacct           *
root       0.00 cpu    13226k mem psacct
root       0.00 cpu    12492k mem chkconfig
</pre>
<p>Print the number of processes and number of CPU minutes on a per-user basis.</p>
<blockquote><p>
# sa -m
</p></blockquote>
<pre class="brush: text">
                                   973902  107317.71re    1337.92cp     2101k
root                               781510   95856.57re     559.01cp     1795k
apache                                334    9007.96re     513.05cp    25916k
nagios                             192035    2447.62re     265.85cp     3303k
smmsp                                  17       0.67re       0.00cp     2033k
sshd                                    6       4.89re       0.00cp     2102k
</pre>


<p>No related posts.</p><img src="http://feeds.feedburner.com/~r/how2centos/~4/6Oqczz2eZ2w" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.how2centos.com/how-to-keep-a-detailed-audit-trail-on-your-centos-5-4-servers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to install #XEN 3.4.1 on #CentOS 5.4</title>
		<link>http://www.how2centos.com/how-to-install-xen-3-4-1-on-centos-5-4/</link>
		<comments>http://www.how2centos.com/how-to-install-xen-3-4-1-on-centos-5-4/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 06:09:25 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[centos 5.4]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://www.how2centos.com/?p=556</guid>
		<description><![CDATA[What is Xen?
The Xen hypervisor, the powerful open source industry standard for virtualization, offers a powerful, efficient, and secure feature set for virtualization of x86, x86_64, IA64, ARM, and other CPU architectures. It supports a wide range of guest operating systems including Windows, Linux, Solaris, and various versions of the BSD operating systems.

Preliminary Note:
Iâ€™m using [...]


Related posts:<ol><li><a href='http://www.how2centos.com/installing-xen-on-centos-5x/' rel='bookmark' title='Permanent Link: Installing #XEN on #CentOS 5.x'>Installing #XEN on #CentOS 5.x</a></li>
<li><a href='http://www.how2centos.com/remus-applied-to-the-official-xen-repository/' rel='bookmark' title='Permanent Link: #Remus applied to the official #Xen repository'>#Remus applied to the official #Xen repository</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="centos" title="centos" width="42" height="40" class="alignleft size-full wp-image-225" /></a><a href="http://www.how2centos.com/wp-content/uploads/2009/10/xen.gif"><img src="http://www.how2centos.com/wp-content/uploads/2009/10/xen.gif" alt="xen" title="xen" width="90" height="40" class="alignleft size-full wp-image-560" /></a><strong>What is Xen?</strong></p>
<p>The Xen hypervisor, the powerful open source industry standard for virtualization, offers a powerful, efficient, and secure feature set for virtualization of x86, x86_64, IA64, ARM, and other CPU architectures. It supports a wide range of guest operating systems including Windows, Linux, Solaris, and various versions of the BSD operating systems.<br />
<span id="more-556"></span></p>
<p><strong>Preliminary Note:</strong></p>
<p>Iâ€™m using a CentOS 5.4 x86_64 base installation in this tutorial</p>
<p>* server1.example.co.za (IP 10.0.0.100): <em>CentOS 5.4 x86_64 Base installation</em></p>
<p><strong>Install the Gitco repository</strong></p>
<p>Browse to <a href="http://www.gitco.de/repo/">http://www.gitco.de/repo/</a> and grab the latest repo for your arch. (in this case x86_64) </p>
<blockquote><p>
# cd /etc/yum.repos.d/<br />
# wget http://www.gitco.de/repo/GITCO-XEN3.4.1_x86_64.repo
</p></blockquote>
<p>Remove previous installations of XEN before re-installing XEN 3.4.1</p>
<blockquote><p>
# yum groupremove Virtualization<br />
# yum groupinstall Virtualization
</p></blockquote>
<p>Edit grub.conf to reflect the correct default Kernel</p>
<blockquote><p>
# vi /etc/grub.conf
</p></blockquote>
<pre class="brush: shell">
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-128.7.1.el5xen)
        root (hd0,0)
        kernel /xen.gz-3.4.1
        module /vmlinuz-2.6.18-128.7.1.el5xen ro root=/dev/VolGroup00/LogVol00
        module /initrd-2.6.18-128.7.1.el5xen.img
title CentOS (2.6.18-128.1.16.el5xen)
        root (hd0,0)
        kernel /xen.gz-3.4.1
        module /vmlinuz-2.6.18-128.1.16.el5xen ro root=/dev/VolGroup00/LogVol00
        module /initrd-2.6.18-128.1.16.el5xen.img
title CentOS (2.6.18-128.el5xen)
        root (hd0,0)
        kernel /xen.gz-3.4.1
        module /vmlinuz-2.6.18-128.el5xen ro root=/dev/VolGroup00/LogVol00
        module /initrd-2.6.18-128.el5xen.img
title CentOS (2.6.18-164.el5xen)
        root (hd0,0)
        kernel /xen.gz-3.4.1
        module /vmlinuz-2.6.18-164.el5xen ro root=/dev/VolGroup00/LogVol00
        module /initrd-2.6.18-164.el5xen.img
</pre>
<p>Reboot the machine for new XEN kernel to take effect</p>
<blockquote><p>
# reboot
</p></blockquote>
<p>After the reboot check the Kernel to reflect the change</p>
<blockquote><p>
# uname -r<br />
2.6.18-128.7.1.el5xen
</p></blockquote>


<p>Related posts:<ol><li><a href='http://www.how2centos.com/installing-xen-on-centos-5x/' rel='bookmark' title='Permanent Link: Installing #XEN on #CentOS 5.x'>Installing #XEN on #CentOS 5.x</a></li>
<li><a href='http://www.how2centos.com/remus-applied-to-the-official-xen-repository/' rel='bookmark' title='Permanent Link: #Remus applied to the official #Xen repository'>#Remus applied to the official #Xen repository</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/how2centos/~4/edHuedU_AKA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.how2centos.com/how-to-install-xen-3-4-1-on-centos-5-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss><!-- Dynamic page generated in 1.104 seconds. --><!-- Cached page generated by WP-Super-Cache on 2010-03-10 12:07:46 --><!-- Compression = gzip -->
