<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>mobile and gis dev notes &#187; centos</title>
	<atom:link href="http:///wordpress/tag/centos/feed/" rel="self" type="application/rss+xml" />
	<link>/wordpress</link>
	<description>by rupert</description>
	<lastBuildDate>Wed, 08 Feb 2012 22:26:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Rails Note #4: Deploying a Rails Application in a Subdirectory</title>
		<link>/wordpress/2008/11/deploying-a-rails-application-in-a-subdirectory/</link>
		<comments>/wordpress/2008/11/deploying-a-rails-application-in-a-subdirectory/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 08:37:36 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[rails]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[debian]]></category>

		<guid isPermaLink="false">/wordpress/?p=283</guid>
		<description><![CDATA[There are many ways to deploy RoR applications. I have googled all over the place and so far the easiest setup that I could find that would suit my needs (existing Apache2 + ColdFusion + TileCache) would be to use 1. Apache PROXY 2. Mongrel CentOS Installation Instructions 1. Make sure Apache has mod_proxy ./configure [...]]]></description>
			<content:encoded><![CDATA[<p>There are many ways to deploy RoR applications. I have googled all over the place and so far the easiest setup that I could find that would suit my needs (existing Apache2 + ColdFusion + TileCache) would be to use</p>
<p>1. Apache PROXY<br />
2. Mongrel</p>
<p><strong>CentOS Installation Instructions</strong></p>
<p>1. Make sure Apache has mod_proxy</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> .<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>apache2 <span style="color: #660033;">--enable-so</span> <span style="color: #660033;">--enable-rewrite</span> <span style="color: #660033;">--with-mpm</span>=prefork <span style="color: #660033;">--enable-proxy</span> <span style="color: #660033;">--enable-proxy-connect</span> <span style="color: #660033;">--enable-proxy-ftp</span> <span style="color: #660033;">--enable-proxy-httpd</span> <span style="color: #660033;">--enable-proxy-ajp</span> <span style="color: #660033;">--enable-proxy-balancer</span> <span style="color: #660033;">--enable-cgi</span></pre></div></div>

<p>1. Apache Proxy</p>

<div class="wp_syntax"><div class="code"><pre class="conf" style="font-family:monospace;">&lt;VirtualHost *:80&gt;
    ServerName test
    ProxyRequests Off 
        &lt;Proxy *&gt;
            Order deny,allow
            Allow from all
        &lt;/Proxy&gt;
    ProxyPass /localdumplings http://localhost:3000/localdumplings
    ProxyPassReverse /localdumplings http://localhost:3000/localdumplings
    #ProxyPass /localdumplings/ http://localhost:3000/
    #ProxyPassReverse /localdumplings/ http://localhost:3000/
&lt;/VirtualHost&gt;</pre></div></div>

<p>2. Starting mongrel on a subdir<br />
mongrel_rails start &#8211;prefix=/localdumplings</p>
<p><strong>Debian Installation Instructions</strong></p>
<p>1. Install libapache2-mod-proxy-html is easier&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libapache2-mod-proxy-html</pre></div></div>

<p>2. Enable modules to load in apache2</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> a2enmod proxy
<span style="color: #c20cb9; font-weight: bold;">sudo</span> a2enmod proxy_balancer
<span style="color: #c20cb9; font-weight: bold;">sudo</span> a2enmod proxy_http
<span style="color: #c20cb9; font-weight: bold;">sudo</span> a2enmod rewrite
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 stop
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 start</pre></div></div>

<p>3. Add the application in /etc/apache2/mods-available/proxy.conf</p>

<div class="wp_syntax"><div class="code"><pre class="conf" style="font-family:monospace;">&lt;IfModule mod_proxy.c&gt;
        #turning ProxyRequests on and allowing proxying from all may allow
        #spammers to use your proxy to send email.
&nbsp;
        ProxyRequests Off 
&nbsp;
        &lt;Proxy *&gt;
                AddDefaultCharset off 
                Order deny,allow
                Allow from all
                #Allow from .example.com
        &lt;/Proxy&gt;
&nbsp;
        # Enable/disable the handling of HTTP/1.1 &quot;Via:&quot; headers.
        # (&quot;Full&quot; adds the server version; &quot;Block&quot; removes all outgoing Via: headers)
        # Set to one of: Off | On | Full | Block
        ProxyPass /localdumplings http://localhost:3000/localdumplings
        ProxyPassReverse /localdumplings http://localhost:3000/localdumplings
&nbsp;
        ProxyVia On
&lt;/IfModule&gt;</pre></div></div>

<p><strong>Starting a mongrel_rails on boot</strong><br />
Slicehost ( <a href="http://articles.slicehost.com/2007/9/21/debian-etch-apache-vhosts-rails-and-mongrels">http://articles.slicehost.com/2007/9/21/debian-etch-apache-vhosts-rails-and-mongrels</a> ) has a very good article regarding this.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mongrel_rails start <span style="color: #660033;">-d</span> <span style="color: #660033;">-e</span> production <span style="color: #660033;">-p</span> <span style="color: #000000;">8001</span> <span style="color: #660033;">-P</span> log<span style="color: #000000; font-weight: bold;">/</span>mongrel8001.pid <span style="color: #660033;">-l</span> log<span style="color: #000000; font-weight: bold;">/</span>mongrel.log</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>/wordpress/2008/11/deploying-a-rails-application-in-a-subdirectory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to make Oracle start on boot</title>
		<link>/wordpress/2008/09/how-to-make-oracle-start-on-boot/</link>
		<comments>/wordpress/2008/09/how-to-make-oracle-start-on-boot/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 12:57:45 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[oracle]]></category>
		<category><![CDATA[centos]]></category>

		<guid isPermaLink="false">/wordpress/?p=266</guid>
		<description><![CDATA[1. Login as root and edit /etc/oratab to reflect &#8220;Y&#8221; orcl:/opt/oracle/product/11.1.0/db_1:Y 2. oracle startup script: #!/bin/bash # # oracle Init file for starting and stopping # Oracle Database. Script is valid for 10g and 11g versions. # # chkconfig: 35 80 30 # description: Oracle Database startup script &#160; # Source function library. &#160; . [...]]]></description>
			<content:encoded><![CDATA[<p>1. Login as root and edit /etc/oratab to reflect &#8220;Y&#8221;</p>
<pre>
orcl:/opt/oracle/product/11.1.0/db_1:Y
</pre>
<p>2. oracle startup script:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># oracle Init file for starting and stopping</span>
<span style="color: #666666; font-style: italic;"># Oracle Database. Script is valid for 10g and 11g versions.</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># chkconfig: 35 80 30</span>
<span style="color: #666666; font-style: italic;"># description: Oracle Database startup script</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Source function library.</span>
&nbsp;
. <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>functions
&nbsp;
<span style="color: #007800;">ORACLE_OWNER</span>=<span style="color: #ff0000;">&quot;oracle&quot;</span>
<span style="color: #007800;">ORACLE_HOME</span>=<span style="color: #ff0000;">&quot;/opt/oracle/product/11.1.0/db_1&quot;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">&quot;$1&quot;</span> <span style="color: #000000; font-weight: bold;">in</span>
start<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> $<span style="color: #ff0000;">&quot;Starting Oracle DB:&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">su</span> - <span style="color: #007800;">$ORACLE_OWNER</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$ORACLE_HOME</span>/bin/dbstart <span style="color: #007800;">$ORACLE_HOME</span>&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">su</span> - <span style="color: #007800;">$ORACLE_OWNER</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$ORACLE_HOME</span>/bin/lsnrctl start&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;OK&quot;</span>
<span style="color: #000000; font-weight: bold;">;;</span>
stop<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> $<span style="color: #ff0000;">&quot;Stopping Oracle DB:&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">su</span> - <span style="color: #007800;">$ORACLE_OWNER</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$ORACLE_HOME</span>/bin/dbshut <span style="color: #007800;">$ORACLE_HOME</span>&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">su</span> - <span style="color: #007800;">$ORACLE_OWNER</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$ORACLE_HOME</span>/bin/lsnrctl stop&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;OK&quot;</span>
<span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> $<span style="color: #ff0000;">&quot;Usage: $0 {start|stop}&quot;</span>
<span style="color: #000000; font-weight: bold;">esac</span></pre></div></div>

<p>3. Oracle EMCTL</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># oraemctl Starting and stopping Oracle Enterprise Manager Database Control.</span>
<span style="color: #666666; font-style: italic;"># Script is valid for 10g and 11g versions.</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># chkconfig: 35 80 30</span>
<span style="color: #666666; font-style: italic;"># description: Enterprise Manager DB Control startup script</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Source function library.</span>
&nbsp;
. <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>functions
&nbsp;
<span style="color: #007800;">ORACLE_OWNER</span>=<span style="color: #ff0000;">&quot;oracle&quot;</span>
<span style="color: #007800;">ORACLE_HOME</span>=<span style="color: #ff0000;">&quot;/opt/oracle/product/11.1.0/db_1&quot;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">&quot;$1&quot;</span> <span style="color: #000000; font-weight: bold;">in</span>
start<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> $<span style="color: #ff0000;">&quot;Starting Oracle EM DB Console:&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">su</span> - <span style="color: #007800;">$ORACLE_OWNER</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$ORACLE_HOME</span>/bin/emctl start dbconsole&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;OK&quot;</span>
<span style="color: #000000; font-weight: bold;">;;</span>
stop<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> $<span style="color: #ff0000;">&quot;Stopping Oracle EM DB Console:&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">su</span> - <span style="color: #007800;">$ORACLE_OWNER</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$ORACLE_HOME</span>/bin/emctl stop dbconsole&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;OK&quot;</span>
<span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> $<span style="color: #ff0000;">&quot;Usage: $0 {start|stop}&quot;</span>
<span style="color: #000000; font-weight: bold;">esac</span></pre></div></div>

<p>4. chkconfig &#8211;add /etc/init.d/oracle<br />
5. chkconfig &#8211;add /etc/init.d/oraemctl</p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2008/09/how-to-make-oracle-start-on-boot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Oracle11g x64 on CentOS5</title>
		<link>/wordpress/2008/07/installing-oracle-x64-on-centos5/</link>
		<comments>/wordpress/2008/07/installing-oracle-x64-on-centos5/#comments</comments>
		<pubDate>Sat, 26 Jul 2008 04:36:25 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[oracle]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">/wordpress/?p=198</guid>
		<description><![CDATA[FOR EDITING.. This is just a couple of notes from my Oracle testing a few weeks back that I forgot to post.. A. Installing 1. Check for rpm packages: rpm -q binutils compat-db control-center gcc gcc-c++ glibc glibc-common gnome-libs libstdc++ libstdc++-devel make pdksh sysstat xscreensaver libaio openmotif21 elfutils-libelf libaio-devel libgcc NOTE: For 10g, you need [...]]]></description>
			<content:encoded><![CDATA[<p>FOR EDITING.. This is just a couple of notes from my Oracle testing a few weeks back that I forgot to post..</p>
<p><strong>A. Installing </strong></p>
<p>1. Check for rpm packages:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rpm <span style="color: #660033;">-q</span> binutils compat-db control-center <span style="color: #c20cb9; font-weight: bold;">gcc</span> gcc-c++ glibc glibc-common gnome-libs libstdc++ libstdc++-devel <span style="color: #c20cb9; font-weight: bold;">make</span> pdksh sysstat xscreensaver libaio openmotif21 elfutils-libelf libaio-devel libgcc</pre></div></div>

<p><em>NOTE: For 10g, you need libXp.so.6 installed. It seems the oracle installer is messed up with some i386 modules pointing to x86? Anyway, I was able to resolve the problem by installing the libXp.i386.rpm version.</em></p>
<p>2. install the necessary rpm packages:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rpm <span style="color: #660033;">-ivh</span> compat-db-4.2.52-5.1.x86_64.rpm 
rpm <span style="color: #660033;">-ivh</span> libgnome-2.16.0-6.el5.x86_64.rpm 
rpm <span style="color: #660033;">-ivh</span> sysstat-7.0.0-3.el5.x86_64.rpm 
rpm <span style="color: #660033;">-ivh</span> libaio-devel-0.3.106-3.2.x86_64.rpm 
rpm <span style="color: #660033;">-ivh</span> lm_sensors-2.10.0-3.1.x86_64.rpm
rpm <span style="color: #660033;">-ivh</span> beecrypt-devel-4.1.2-10.1.1.x86_64.rpm elfutils-devel-<span style="color: #000000;">0.125</span>-3.el5.x86_64.rpm net-snmp-devel-5.3.1-19.el5.x86_64.rpm elfutils-devel-static-<span style="color: #000000;">0.125</span>-3.el5.x86_64.rpm net-snmp-5.3.1-19.el5.x86_64.rpm net-snmp-libs-5.3.1-19.el5.x86_64.rpm</pre></div></div>

<p>3. vim /etc/profile</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">ORACLE_BASE</span>=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product
<span style="color: #007800;">ORACLE_SID</span>=csdbora
<span style="color: #007800;">ORACLE_HOME</span>=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product<span style="color: #000000; font-weight: bold;">/</span>11.1.0<span style="color: #000000; font-weight: bold;">/</span>db_1
&nbsp;
<span style="color: #7a0874; font-weight: bold;">export</span> ORACLE_BASE ORACLE_SID ORACLE_HOME
&nbsp;
<span style="color: #007800;">PATH</span>=<span style="color: #007800;">$PATH</span>:<span style="color: #007800;">$ORACLE_HOME</span><span style="color: #000000; font-weight: bold;">/</span>bin
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">LD_LIBRARY_PATH</span>=<span style="color: #007800;">$LD_LIBRARY_PATH</span>:<span style="color: #007800;">$ORACLE_HOME</span><span style="color: #000000; font-weight: bold;">/</span>lib</pre></div></div>

<p>4. Create oracle Account</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">groupadd oinstall
groupadd dba
useradd <span style="color: #660033;">-m</span> <span style="color: #660033;">-g</span> oinstall <span style="color: #660033;">-G</span> dba oracle
<span style="color: #c20cb9; font-weight: bold;">id</span> oracle</pre></div></div>

<p>uid=501(oracle) gid=501(oinstall) groups=501(oinstall),502(dba)</p>
<p>5. Run modify_kernel.sh</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>sysctl.conf <span style="color: #cc0000; font-style: italic;">&lt;&lt; EOF
kernel.shmall = 2097152
kernel.shmmax = 1073741824 
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1025 65000
net.core.rmem_default = 262144
net.core.wmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_max = 262144
EOF</span></pre></div></div>

<p>6. vim /etc/sysctl.conf and comment kernel.shmall and kernel.shmmax because if<br />
you don&#8217;t then we will have double results</p>
<p>7. /sbin/sysctl -p</p>
<p>8. Create Directories:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>u01
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>oracle
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product
<span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> oracle:oinstall <span style="color: #000000; font-weight: bold;">/</span>u01
<span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> oracle:oinstall <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>oracle
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #660033;">-R</span> <span style="color: #000000;">755</span> <span style="color: #000000; font-weight: bold;">/</span>u01
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #660033;">-R</span> <span style="color: #000000;">755</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>oracle
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #660033;">-R</span> <span style="color: #000000;">755</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product</pre></div></div>

<p>9. Run sh -v modify_shelllimits.sh</p>
<p>10. Add the ff lines in /etc/pam.d/login<br />
session required /lib/security/pam_limits.so<br />
session required pam_limits.so</p>
<p>11. cp -rf /home/installers/linux.x64_11gR1_database.zip /opt/oracle</p>
<p>12. chown oracle:oinstall /opt/oracle/linux.x64_11gR1_database.zip</p>
<p>13. Clost all terminals and logout as root from desktop.</p>
<p>14. Login as oracle</p>
<p>15. Follow tutorial until installing oracle<br />
<a href="/wordpress/wp-content/uploads/2008/08/installing-oracle-11g-on-centos-under-vmware-on-a-macbook.doc" title="Installing Oracle 11g on CentOS under VMWare on a Macbook.doc">Installing Oracle 11g on CentOS under VMWare on a Macbook.doc</a></p>
<p>To extract:  cpio -idmv < 10201_database_linux_x86_64.cpio</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vim</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>redhat-release
Redhat <span style="color: #000000;">4</span></pre></div></div>

<p>16. Run the 2 scripts after the dialog:</p>
<p>[root@cs5ora11g db1]# sh root.sh<br />
Running Oracle 11g root.sh script&#8230;</p>
<p>The following environment variables are set as:<br />
    ORACLE_OWNER= oracle<br />
    ORACLE_HOME=  /opt/oracle/product/11.1.0/db1</p>
<p>Enter the full pathname of the local bin directory: [/usr/local/bin]:<br />
   Copying dbhome to /usr/local/bin &#8230;<br />
   Copying oraenv to /usr/local/bin &#8230;<br />
   Copying coraenv to /usr/local/bin &#8230;</p>
<p>Creating /etc/oratab file&#8230;<br />
Entries will be added to the /etc/oratab file as needed by<br />
Database Configuration Assistant when a database is created<br />
Finished running generic part of root.sh script.<br />
Now product-specific root actions will be performed.<br />
Finished product-specific root actions.</p>
<p>17. Open your firewall to 1158</p>
<p>18. Go to https://192.168.1.155:1158/em </p>
<p>- Login as SYSMAN:[password] (nickname+wife)</p>
<p>19. Install Oracle Instant Client for your distro [MacOS]</p>
<p>http://www.oracle.com/technology/software/tech/oci/instantclient/index.html</p>
<p>a. Add exports to runsqlplus.sh<br />
b. copy tnsnames.ora from centos to mac<br />
c. add in firewall: 1521<br />
d. sh runsqlplus.sh</p>
<p>20. do sqlplus<br />
Enter user-name: SYSMAN@cybersof<br />
Enter password: </p>
<p>Connected to:<br />
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 &#8211; 64bit Production<br />
With the Partitioning, OLAP, Data Mining and Real Application Testing options<br />
SQL> </p>
<p>You are now connected successfully.</p>
<p>21. Check for oracle processes: ps -ef | grep ora</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">SQLPLUS DBINSTANCE:
oraclecybersof <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">LOCAL</span>=NO<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
&nbsp;
ORACLE LISTENER:
<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product<span style="color: #000000; font-weight: bold;">/</span>11.1.0<span style="color: #000000; font-weight: bold;">/</span>db1<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>tnslsnr LISTENER <span style="color: #660033;">-inherit</span>
&nbsp;
ORACLE ENTERPRISE MANAGER:
oracle   <span style="color: #000000;">14487</span>     <span style="color: #000000;">1</span>  <span style="color: #000000;">0</span> <span style="color: #000000;">15</span>:<span style="color: #000000;">37</span> ?        00:00:00
<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product<span style="color: #000000; font-weight: bold;">/</span>11.1.0<span style="color: #000000; font-weight: bold;">/</span>db1<span style="color: #000000; font-weight: bold;">/</span>perl<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">perl</span>
<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product<span style="color: #000000; font-weight: bold;">/</span>11.1.0<span style="color: #000000; font-weight: bold;">/</span>db1<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>emwd.pl dbconsole
<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product<span style="color: #000000; font-weight: bold;">/</span>11.1.0<span style="color: #000000; font-weight: bold;">/</span>db1<span style="color: #000000; font-weight: bold;">/</span>cs5ora11g_csmlcc<span style="color: #000000; font-weight: bold;">/</span>sysman<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>emdb.nohup
oracle   <span style="color: #000000;">14511</span> <span style="color: #000000;">14487</span>  <span style="color: #000000;">2</span> <span style="color: #000000;">15</span>:<span style="color: #000000;">37</span> ?        00:00:<span style="color: #000000;">36</span>
<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product<span style="color: #000000; font-weight: bold;">/</span>11.1.0<span style="color: #000000; font-weight: bold;">/</span>db1<span style="color: #000000; font-weight: bold;">/</span>jdk<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>java <span style="color: #660033;">-server</span> <span style="color: #660033;">-Xmx512M</span>
-XX:<span style="color: #007800;">MaxPermSize</span>=1024M -XX:<span style="color: #007800;">MinHeapFreeRatio</span>=<span style="color: #000000;">20</span> -XX:<span style="color: #007800;">MaxHeapFreeRatio</span>=<span style="color: #000000;">40</span>
-DORACLE_HOME=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product<span style="color: #000000; font-weight: bold;">/</span>11.1.0<span style="color: #000000; font-weight: bold;">/</span>db1
-Doracle.home=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product<span style="color: #000000; font-weight: bold;">/</span>11.1.0<span style="color: #000000; font-weight: bold;">/</span>db1<span style="color: #000000; font-weight: bold;">/</span>oc4j
-Doracle.oc4j.localhome=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product<span style="color: #000000; font-weight: bold;">/</span>11.1.0<span style="color: #000000; font-weight: bold;">/</span>db1<span style="color: #000000; font-weight: bold;">/</span>cs5ora11g_csmlcc<span style="color: #000000; font-weight: bold;">/</span>sysman
<span style="color: #660033;">-DEMSTATE</span>=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product<span style="color: #000000; font-weight: bold;">/</span>11.1.0<span style="color: #000000; font-weight: bold;">/</span>db1<span style="color: #000000; font-weight: bold;">/</span>cs5ora11g_csmlcc
-Doracle.j2ee.dont.use.memory.archive=<span style="color: #c20cb9; font-weight: bold;">true</span>
-Djava.protocol.handler.pkgs=HTTPClient
-Doracle.security.jazn.config=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product<span style="color: #000000; font-weight: bold;">/</span>11.1.0<span style="color: #000000; font-weight: bold;">/</span>db1<span style="color: #000000; font-weight: bold;">/</span>oc4j<span style="color: #000000; font-weight: bold;">/</span>j2ee<span style="color: #000000; font-weight: bold;">/</span>OC4J_DBConsole_cs5ora11g_csmlcc<span style="color: #000000; font-weight: bold;">/</span>config<span style="color: #000000; font-weight: bold;">/</span>jazn.xml
-Djava.security.policy=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product<span style="color: #000000; font-weight: bold;">/</span>11.1.0<span style="color: #000000; font-weight: bold;">/</span>db1<span style="color: #000000; font-weight: bold;">/</span>oc4j<span style="color: #000000; font-weight: bold;">/</span>j2ee<span style="color: #000000; font-weight: bold;">/</span>OC4J_DBConsole_cs5ora11g_csmlcc<span style="color: #000000; font-weight: bold;">/</span>config<span style="color: #000000; font-weight: bold;">/</span>java2.policy
-Djavax.net.ssl.KeyStore=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product<span style="color: #000000; font-weight: bold;">/</span>11.1.0<span style="color: #000000; font-weight: bold;">/</span>db1<span style="color: #000000; font-weight: bold;">/</span>sysman<span style="color: #000000; font-weight: bold;">/</span>config<span style="color: #000000; font-weight: bold;">/</span>OCMTrustedCerts.txt-Djava.security.properties=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product<span style="color: #000000; font-weight: bold;">/</span>11.1.0<span style="color: #000000; font-weight: bold;">/</span>db1<span style="color: #000000; font-weight: bold;">/</span>oc4j<span style="color: #000000; font-weight: bold;">/</span>j2ee<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>config<span style="color: #000000; font-weight: bold;">/</span>jazn.security.props
<span style="color: #660033;">-DEMDROOT</span>=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product<span style="color: #000000; font-weight: bold;">/</span>11.1.0<span style="color: #000000; font-weight: bold;">/</span>db1<span style="color: #000000; font-weight: bold;">/</span>cs5ora11g_csmlcc
-Dsysman.md5<span style="color: #007800;">password</span>=<span style="color: #c20cb9; font-weight: bold;">true</span> -Drepapi.oracle.home=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product<span style="color: #000000; font-weight: bold;">/</span>11.1.0<span style="color: #000000; font-weight: bold;">/</span>db1
-Ddisable.checkForUpdate=<span style="color: #c20cb9; font-weight: bold;">true</span>
-Doracle.sysman.ccr.ocmSDK.websvc.keystore=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product<span style="color: #000000; font-weight: bold;">/</span>11.1.0<span style="color: #000000; font-weight: bold;">/</span>db1<span style="color: #000000; font-weight: bold;">/</span>jlib<span style="color: #000000; font-weight: bold;">/</span>emocmclnt.ks
-Dice.pilots.html4.ignoreNonGenericFonts=<span style="color: #c20cb9; font-weight: bold;">true</span> -Djava.awt.headless=<span style="color: #c20cb9; font-weight: bold;">true</span> <span style="color: #660033;">-jar</span>
<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product<span style="color: #000000; font-weight: bold;">/</span>11.1.0<span style="color: #000000; font-weight: bold;">/</span>db1<span style="color: #000000; font-weight: bold;">/</span>oc4j<span style="color: #000000; font-weight: bold;">/</span>j2ee<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>oc4j.jar <span style="color: #660033;">-config</span>
<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product<span style="color: #000000; font-weight: bold;">/</span>11.1.0<span style="color: #000000; font-weight: bold;">/</span>db1<span style="color: #000000; font-weight: bold;">/</span>oc4j<span style="color: #000000; font-weight: bold;">/</span>j2ee<span style="color: #000000; font-weight: bold;">/</span>OC4J_DBConsole_cs5ora11g_csmlcc<span style="color: #000000; font-weight: bold;">/</span>config<span style="color: #000000; font-weight: bold;">/</span>server.xml</pre></div></div>

<p>22. Set Oracle Environment</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># su - oracle</span>
<span style="color: #666666; font-style: italic;"># vim ~/.bash_profile</span>
<span style="color: #007800;">ORACLE_BASE</span>=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product
<span style="color: #007800;">ORACLE_SID</span>=cybersof
<span style="color: #007800;">ORACLE_HOME</span>=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product<span style="color: #000000; font-weight: bold;">/</span>11.1.0<span style="color: #000000; font-weight: bold;">/</span>db1
<span style="color: #7a0874; font-weight: bold;">export</span> ORACLE_BASE ORACLE_SID ORACLE_HOME
&nbsp;
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">LD_LIBRARY_PATH</span>=<span style="color: #007800;">$LD_LIBRARY_PATH</span>:<span style="color: #007800;">$ORACLE_HOME</span><span style="color: #000000; font-weight: bold;">/</span>lib</pre></div></div>

<p>23. Shutdown and Startup of Oracle</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ . oraenv
<span style="color: #000000; font-weight: bold;">&lt;</span>enter your SID<span style="color: #000000; font-weight: bold;">&gt;</span>
&nbsp;
$ sqlplus <span style="color: #ff0000;">&quot;/ as sysdba&quot;</span>
SQL<span style="color: #000000; font-weight: bold;">&gt;</span> startup
SQL<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #7a0874; font-weight: bold;">exit</span>
&nbsp;
$ lsnrctl
LSNRCTL<span style="color: #000000; font-weight: bold;">&gt;</span> start
LSNRCTL<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #7a0874; font-weight: bold;">exit</span>
&nbsp;
$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #007800;">$ORACLE_HOME</span><span style="color: #000000; font-weight: bold;">/</span>bin
.<span style="color: #000000; font-weight: bold;">/</span>emctl start dbconsole</pre></div></div>

<p><strong>B. Creating Users</strong></p>
<p>Login to https://192.168.1.155:1158/em<br />
username:sysman<br />
password: [nickname+wifey]<br />
connect as &#8220;sysdba&#8221;</p>
<p>1. Creating admin user: </p>
<p><a href="http://download.oracle.com/docs/cd/B28359_01/server.111/b28301/admqs_administer_users.htm#CHDBDBGI">http://download.oracle.com/docs/cd/B28359_01/server.111/b28301/admqs_administer_users.htm#CHDBDBGI</a></p>
<p>em > Setup > Administrators > Create</p>
<p>2. Create appdev user:<br />
em > Server > Roles</p>
<p><a href="http://download.oracle.com/docs/cd/B28359_01/server.111/b28301/admqs_administer_users.htm">http://download.oracle.com/docs/cd/B28359_01/server.111/b28301/admqs_administer_users.htm</a></p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">CREATE</span> USER <span style="color: #ff0000;">&quot;APPDEV&quot;</span> PROFILE <span style="color: #ff0000;">&quot;DEFAULT&quot;</span> <span style="color: #993333; font-weight: bold;">IDENTIFIED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">&quot;*******&quot;</span> <span style="color: #993333; font-weight: bold;">DEFAULT</span> TABLESPACE <span style="color: #ff0000;">&quot;USERS&quot;</span> <span style="color: #993333; font-weight: bold;">TEMPORARY</span> TABLESPACE <span style="color: #ff0000;">&quot;TEMP&quot;</span> ACCOUNT <span style="color: #993333; font-weight: bold;">UNLOCK</span>
<span style="color: #993333; font-weight: bold;">GRANT</span> UNLIMITED TABLESPACE <span style="color: #993333; font-weight: bold;">TO</span> <span style="color: #ff0000;">&quot;APPDEV&quot;</span>;
<span style="color: #993333; font-weight: bold;">GRANT</span> <span style="color: #ff0000;">&quot;CONNECT&quot;</span> <span style="color: #993333; font-weight: bold;">TO</span> <span style="color: #ff0000;">&quot;APPDEV&quot;</span>;
<span style="color: #993333; font-weight: bold;">GRANT</span> <span style="color: #ff0000;">&quot;RESOURCE&quot;</span> <span style="color: #993333; font-weight: bold;">TO</span> <span style="color: #ff0000;">&quot;APPDEV&quot;</span>;</pre></div></div>

<p><img src="/wordpress/wp-content/uploads/2008/09/picture-13.png" alt="Picture 1.png" border="0" width="360" height="833" /></p>
<p><strong>Part II. Installing Oracle10g on CentOS5</strong></p>
<p>1. Choose Advanced Installation&#8221;</p>
<p><img src="/wordpress/wp-content/uploads/2008/09/picture-1.png" alt="Picture 1.png" border="0" width="600" height="507" /></p>
<p>2. If its just network prerequisite.. ignore it. It&#8217;s not a big deal.</p>
<p><img src="/wordpress/wp-content/uploads/2008/09/picture-2.png" alt="Picture 2.png" border="0" width="600" height="510" /></p>
<p>3. ORACLE_HOME: /opt/oracle/product/10.2.0/db_1</p>
<p><img src="/wordpress/wp-content/uploads/2008/09/picture-3.png" alt="Picture 3.png" border="0" width="600" height="509" /></p>
<p>4. ORACLE_SID: orcl, CHARSET: utf8</p>
<p><img src="/wordpress/wp-content/uploads/2008/09/picture-4.png" alt="Picture 4.png" border="0" width="600" height="511" /></p>
<p>5. EM Installed&#8230;</p>
<p><img src="/wordpress/wp-content/uploads/2008/09/picture-6.png" alt="Picture 6.png" border="0" width="551" height="374" /></p>
<p>6. ISQLPLUS</p>
<p><img src="/wordpress/wp-content/uploads/2008/09/picture-7.png" alt="Picture 7.png" border="0" width="655" height="511" /></p>
<p>7. Run root.sh</p>
<p><img src="/wordpress/wp-content/uploads/2008/09/picture-9.png" alt="Picture 9.png" border="0" width="553" height="390" /></p>
<p>output&#8230;</p>
<p><img src="/wordpress/wp-content/uploads/2008/09/picture-8.png" alt="Picture 8.png" border="0" width="668" height="461" /></p>
<p>8. Other settings</p>
<p><img src="/wordpress/wp-content/uploads/2008/09/picture-10.png" alt="Picture 10.png" border="0" width="649" height="507" /></p>
<p>9. Oracle Environment Variables</p>
<p><img src="/wordpress/wp-content/uploads/2008/09/picture-12.png" alt="Picture 12.png" border="0" width="669" height="466" /></p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2008/07/installing-oracle-x64-on-centos5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SquirrelMail SMTP Authentication</title>
		<link>/wordpress/2008/01/squirrelmail-smtp-authentication/</link>
		<comments>/wordpress/2008/01/squirrelmail-smtp-authentication/#comments</comments>
		<pubDate>Fri, 04 Jan 2008 13:16:44 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[qmail]]></category>

		<guid isPermaLink="false">/wordpress/?p=132</guid>
		<description><![CDATA[Just a quick note to myself&#8230; A co-worker just notified me that they cannot send email using the web interface&#8211;squirrelmail. squirrelmail Server replied: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.5.3 - chkuser) This qmailrocks forum thread gives a quick workaround. Just set &#8220;SMTP AUTHENTICATION&#8221; to login as noted below. /usr/share/squirrelmail/config/config.php [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quick note to myself&#8230; A co-worker just notified me that they cannot send email using the web interface&#8211;squirrelmail.</p>
<p><code>squirrelmail Server replied: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.5.3 - chkuser)</code></p>
<p><a href="http://forum.qmailrocks.org/archive/index.php/t-2547.html">This qmailrocks forum thread gives a quick workaround.</a> Just set &#8220;SMTP AUTHENTICATION&#8221; to login as noted below.</p>
<p><code><br />
/usr/share/squirrelmail/config/config.php<br />
$no_list_for_subscribe = false;<br />
$smtp_auth_mech = 'login';<br />
$imap_auth_mech = 'login';<br />
$use_imap_tls = false;<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2008/01/squirrelmail-smtp-authentication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian, Centos, Ubuntu</title>
		<link>/wordpress/2007/07/debian-centos-ubuntu/</link>
		<comments>/wordpress/2007/07/debian-centos-ubuntu/#comments</comments>
		<pubDate>Fri, 27 Jul 2007 01:02:02 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">/wordpress/?p=81</guid>
		<description><![CDATA[I didn&#8217;t have much time blogging for the past week. But since July 18, I am running Debian, Centos and Ubuntu on my desktop. 1. Install CentOS 5. 2. Manually partition as follows: Device Boot Start End Blocks Id System /dev/sda1 * 1 13 104391 83 Linux (boot) /dev/sda2 14 3837 30716280 83 Linux (/) [...]]]></description>
			<content:encoded><![CDATA[<p>I didn&#8217;t have much time blogging for the past week. But since July 18, I am running Debian, Centos and Ubuntu on my desktop.</p>
<p><strong>1. Install CentOS 5. </strong></p>
<p>2. Manually partition as follows:<br />
<code><br />
Device Boot      Start         End      Blocks   Id  System<br />
/dev/sda1   *           1          13      104391   83  Linux              (boot)<br />
/dev/sda2              14        3837    30716280   83  Linux            (/)<br />
/dev/sda3            3838        4090     2032222+  82  Linux swap<br />
</code><code></code></p>
<p>3. Put bootloader grub on mbr.</p>
<p>4. Reboot.</p>
<p><strong>5. Install Ubuntu</strong></p>
<p>6. Manually partition.<br />
<code><br />
/dev/sda4            4091       19457   123435427+   5  Extended<br />
/dev/sda5           19446       19457       96390   83  Linux<br />
/dev/sda6           19204       19444     1935801   82  Linux swap / Solaris<br />
/dev/sda7           15556       19202    29294496   83  Linux<br />
</code></p>
<p>7. Install bootloader on /boot of /dev/sda4</p>
<p>8. Reboot.<br />
<strong><br />
9. Install Debian 7</strong></p>
<p>10. Manually partition as follows:<br />
<code><br />
/dev/sda8            4091        4102       96327   83  Linux<br />
/dev/sda9            4103        4343     1935801   82  Linux swap / Solaris<br />
/dev/sda10           4344        7990    29294496   83  Linux<br />
</code></p>
<p>11. Reboot.</p>
<p>Hurray! Key point here is to install the bootloader on mbr first then, installing successive loaders in /boot of other distros.</p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/07/debian-centos-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Mapserver on RedHat/CentOS Linux</title>
		<link>/wordpress/2007/07/installing-mapserver/</link>
		<comments>/wordpress/2007/07/installing-mapserver/#comments</comments>
		<pubDate>Wed, 25 Jul 2007 10:59:57 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[mapserver]]></category>
		<category><![CDATA[centos]]></category>

		<guid isPermaLink="false">/wordpress/?p=77</guid>
		<description><![CDATA[Tested on: CentOS 5.0, 4.1 vim /etc/ld.so.conf include /usr/lib64 include /usr/local/lib include /usr/lib Prerequisites: rpm -ivh $CENTOS/bzip2-devel-1.0.3-3.x86_64.rpm rpm -ivh $CENTOS/libidn-0.6.5-1.1.x86_64.rpm rpm -ivh $CENTOS/curl-7.15.5-2.el5.x86_64.rpm rpm -ivh $CENTOS/pkgconfig-0.21-1.fc6.x86_64.rpm rpm -ivh $CENTOS/libidn-devel-0.6.5-1.1.x86_64.rpm rpm -ivh $CENTOS/e2fsprogs-devel-1.39-10.el5.x86_64.rpm rpm -ivh $CENTOS/krb5-devel-1.6.1-17.el5.x86_64.rpm rpm -ivh $CENTOS/zlib-devel-1.2.3-3.x86_64.rpm rpm -ivh $CENTOS/openssl-devel-0.9.8b-8.3.el5_0.2.x86_64.rpm rpm -ivh $CENTOS/flex-2.5.4a-41.fc6.x86_64.rpm rpm -ivh $CENTOS/libstdc++-devel-4.1.2-14.el5.x86_64.rpm rpm -ivh $CENTOS/libxml2-devel-2.6.26-2.1.2.x86_64.rpm rpm -ivh $CENTOS/libxslt-devel-1.1.17-2.x86_64.rpm rpm -ivh [...]]]></description>
			<content:encoded><![CDATA[<p>Tested on: CentOS 5.0, 4.1<br />
vim /etc/ld.so.conf<br />
include /usr/lib64<br />
include /usr/local/lib<br />
include /usr/lib</p>
<p>Prerequisites:<br />
rpm -ivh $CENTOS/bzip2-devel-1.0.3-3.x86_64.rpm<br />
rpm -ivh $CENTOS/libidn-0.6.5-1.1.x86_64.rpm<br />
rpm -ivh $CENTOS/curl-7.15.5-2.el5.x86_64.rpm<br />
rpm -ivh $CENTOS/pkgconfig-0.21-1.fc6.x86_64.rpm<br />
rpm -ivh $CENTOS/libidn-devel-0.6.5-1.1.x86_64.rpm<br />
rpm -ivh $CENTOS/e2fsprogs-devel-1.39-10.el5.x86_64.rpm<br />
rpm -ivh $CENTOS/krb5-devel-1.6.1-17.el5.x86_64.rpm<br />
rpm -ivh $CENTOS/zlib-devel-1.2.3-3.x86_64.rpm<br />
rpm -ivh $CENTOS/openssl-devel-0.9.8b-8.3.el5_0.2.x86_64.rpm<br />
rpm -ivh $CENTOS/flex-2.5.4a-41.fc6.x86_64.rpm<br />
rpm -ivh $CENTOS/libstdc++-devel-4.1.2-14.el5.x86_64.rpm<br />
rpm -ivh $CENTOS/libxml2-devel-2.6.26-2.1.2.x86_64.rpm<br />
rpm -ivh $CENTOS/libxslt-devel-1.1.17-2.x86_64.rpm<br />
rpm -ivh $CENTOS/nmap-4.11-1.1.x86_64.rpm<br />
rpm -ivh $CENTOS/swig-1.3.29-2.el5.x86_64.rpm<br />
rpm -ivh $CENTOS/apr-1.2.7-11.x86_64.rpm<br />
rpm -ivh $CENTOS/apr-util-1.2.7-6.x86_64.rpm<br />
rpm -ivh $CENTOS/neon-0.25.5-5.1.x86_64.rpm<br />
rpm -ivh $CENTOS/perl-URI-1.35-3.noarch.rpm<br />
rpm -ivh $CENTOS/subversion-1.4.2-2.el5.x86_64.rpm<br />
rpm -ivh $CENTOS/libtool-ltdl-1.5.22-6.1.x86_64.rpm<br />
rpm -ivh $CENTOS/libtool-1.5.22-6.1.x86_64.rpm<br />
rpm -ivh $CENTOS/libtool-ltdl-devel-1.5.22-6.1.x86_64.rpm<br />
rpm -ivh $CENTOS/guile-1.8.0-8.20060831cvs.x86_64.rpm<br />
rpm -ivh $CENTOS/libX11-devel-1.0.3-8.0.1.el5.x86_64.rpm $CENTOS/libXau-devel-1.0.1-3.1.x86_64.rpm $CENTOS/xorg-x11-proto-devel-7.1-9.el5.centos.x86_64.rpm $CENTOS/mesa-libGL-devel-6.5.1-7.5.el5.x86_64.rpm $CENTOS/libXdmcp-devel-1.0.1-2.1.x86_64.rpm<br />
rpm -ivh $CENTOS/libjpeg-devel-6b-37.x86_64.rpm<br />
rpm -ivh $CENTOS/libpng-1.2.10-7.0.2.x86_64.rpm<br />
rpm -ivh $CENTOS/freetype-2.2.1-19.el5.x86_64.rpm<br />
rpm -ivh $CENTOS/freetype-devel-2.2.1-19.el5.x86_64.rpm<br />
rpm -ivh $CENTOS/gd-devel-2.0.33-9.3.fc6.x86_64.rpm $CENTOS/fontconfig-devel-2.4.1-6.el5.x86_64.rpm $CENTOS/libXpm-devel-3.5.5-3.x86_64.rpm $CENTOS/libpng-devel-1.2.10-7.0.2.x86_64.rpm $CENTOS/gd-2.0.33-9.3.fc6.x86_64.rpm</p>
<p>1. Install proj4<br />
-tar -zxvf proj-4.4.9.tar.gz<br />
-./configure<br />
-make<br />
-make install</p>
<p>2. Install geos<br />
-bzip2 -d geos-3.0.0.tar.bz2<br />
-tar -xvf geos-3.0.0.tar<br />
-./configure &#8211;enable-python<br />
-make<br />
-make install</p>
<p>3. install postgres and postgis<br />
rpm -ivh postgresql-libs-8.3.1-1PGDG.rhel5.x86_64.rpm<br />
rpm -ivh postgresql-8.3.1-1PGDG.rhel5.x86_64.rpm<br />
rpm -ivh postgresql-devel-8.3.1-1PGDG.rhel5.x86_64.rpm<br />
rpm -ivh postgresql-server-8.3.1-1PGDG.rhel5.x86_64.rpm<br />
rpm -ivh postgresql-contrib-8.3.1-1PGDG.rhel5.x86_64.rpm<br />
rpm -ivh postgresql-plperl-8.3.1-1PGDG.rhel5.x86_64.rpm<br />
rpm -ivh postgresql-plpython-8.3.1-1PGDG.rhel5.x86_64.rpm </p>
<p># tar -zxvf postgis-1.3.3.tar.gz<br />
# cd postgis-1.3.3<br />
# ./configure &#8211;with-pgsql=/usr/bin/pg_config<br />
#  make<br />
#  make install</p>
<p>If you need to put the postgres data for mapserver, then:<br />
initdb -E utf8 -D /var/lib/pgsql/data</p>
<p>3. install gdal<br />
./configure &#8211;with-png &#8211;with-libtiff  &#8211;with-static-proj4=/usr/local/bin &#8211;with-python &#8211;with-perl &#8211;with-geos &#8211;with-pg=/usr/bin/pg_config</p>
<p><em>Note: If there is an error regarding libxpat.so because of 64 bit libraries, then edit GDALmake.opt and change /usr/lib to /usr/lib64</em><br />
<a href="http://www.nabble.com/GDAL-v1.5.1-compile-error-on-RHEL5.-td17428872.html">http://www.nabble.com/GDAL-v1.5.1-compile-error-on-RHEL5.-td17428872.html</a></p>
<p>GDAL is now configured for i686-pc-linux-gnu</p>
<p>Installation directory:    /usr/local<br />
C compiler:                gcc -O2<br />
C++ compiler:              g++ -O2</p>
<p>LIBTOOL support:           yes</p>
<p>LIBZ support:              external<br />
GRASS support:             no<br />
CFITSIO support:           no<br />
PCRaster support:          internal<br />
NETCDF support:            no<br />
LIBPNG support:            external<br />
LIBTIFF support:           external<br />
LIBGEOTIFF support:        internal<br />
LIBJPEG support:           external<br />
LIBGIF support:            external<br />
OGDI support:              no<br />
HDF4 support:              no<br />
HDF5 support:              no<br />
KAKADU support:            no<br />
JASPER support:            no<br />
ECW support:               no<br />
MrSID support:             no<br />
CURL support (wcs):        yes<br />
POSTGRESQL support:        yes<br />
MySQL support:             yes<br />
XERCES support:            no<br />
ODBC support:              no<br />
PGEO support:              no<br />
OCI support:               no<br />
SDE support:               no<br />
DODS support:              no<br />
SQLite support:            no<br />
DWGdirect support          no<br />
PANORAMA GIS support:      no<br />
INFORMIX DataBlade support:no<br />
GEOS support:              yes</p>
<p>Statically link PROJ.4:    yes</p>
<p>Traditional Python:        yes<br />
NG SWIG Bindings:          perl</p>
<p>enable OGR building:       yes</p>
<p>make<br />
make install</p>
<p>4. Remove any existing apache from rpm then install apache2 by source.<br />
rpm -e httpd-2.2.3-11.el5.centos gnome-user-share-0.10-6.el5.x86_64<br />
./configure &#8211;prefix=/usr/local/apache2 &#8211;enable-rewrite &#8211;enable-so &#8211;with-mpm=prefork<br />
make<br />
make install</p>
<p>5. rpm -ivh alsa-lib-devel-1.0.14-1.rc4.el5.x86_64.rpm esound-0.2.36-3.x86_64.rpm esound-devel-0.2.36-3.x86_64.rpm audiofile-0.2.6-5.x86_64.rpm mesa-libGLU-6.5.1-7.5.el5.x86_64.rpm mesa-libGLU-devel-6.5.1-7.5.el5.x86_64.rpm libXext-1.0.1-2.1.x86_64.rpm libXext-devel-1.0.1-2.1.x86_64.rpm libXrandr-devel-1.1.1-3.1.x86_64.rpm libXrender-devel-0.9.1-3.1.x86_64.rpm libXt-devel-1.0.2-3.1.fc6.x86_64.rpm audiofile-devel-0.2.6-5.x86_64.rpm libSM-devel-1.0.1-3.1.x86_64.rpm libICE-devel-1.0.1-2.1.x86_64.rpm</p>
<p>6. rpm -ivh SDL-1.2.10-8.el5.x86_64.rpm SDL-devel-1.2.10-8.el5.x86_64.rpm</p>
<p>7. Dont use agg-2.4! PLEASE read this post from <a href="http://trac.osgeo.org/mapserver/ticket/2224">mapserver trac ticket.</a> Instead, download the packages form http://dag.wieers.com/rpm/packages/agg/</p>
<p>Note: For 64-bit packages:<br />
- http://dag.wieers.com/rpm/packages/agg/agg-2.5-1.el5.rf.x86_64.rpm<br />
- http://dag.wieers.com/rpm/packages/agg/agg-devel-2.5-1.el5.rf.x86_64.rpm</p>
<p>8. install mapserver. This assumes you have PHP, APACHE, POSTGRES, POSTGIS,<br />
MYSQL already installed.</p>
<p>./configure \<br />
&#8211;with-agg \<br />
&#8211;with-jpeg \<br />
&#8211;with-gd \<br />
&#8211;with-freetype \<br />
&#8211;with-png \<br />
&#8211;with-ogr \<br />
&#8211;with-proj \<br />
&#8211;with-gdal \<br />
&#8211;with-httpd=/usr/local/apache2/bin/httpd \<br />
&#8211;with-tiff \<br />
&#8211;with-wfs \<br />
&#8211;with-wcs \<br />
&#8211;with-sos \<br />
&#8211;with-wmsclient  \<br />
&#8211;with-wfsclient  \<br />
&#8211;with-geos=/usr/local/bin/geos-config \<br />
&#8211;with-gdal=/usr/local/bin/gdal-config \<br />
&#8211;with-postgis=/usr/bin/pg_config </p>
<p>-make<br />
-make install</p>
<p>9. Post Install Considerations:<br />
ln -s /usr/local/lib/libproj.so.0 /usr/lib/libproj.so.0<br />
ln -s /usr/local/lib/libgdal.so.1 /usr/lib/libgdal.so.1<br />
ln -s /usr/local/lib/libgeos_c.so.1 /usr/lib/libgeos_c.so.1<br />
ldconfig</p>
<p>10. cp -rf mapserv /usr/local/apache2/cgi-bin/<br />
check mapserv<br />
./mapserv -v<br />
MapServer version 5.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE</p>
<p>11. cp the ff:<br />
cp legend scalebar shp2img shp2pdf shptree shptreetst shptreevis sortshp<br />
tile4ms /usr/local/apache2/cgi-bin/</p>
<p>12. cp $mapserver_install_dir/mapscript/php3/php_mapscript.so /usr/local/apache2/modules/</p>
<p>######################################<br />
11. edit httpd.conf<br />
setenv LD_LIBRARY_PATH /usr/local/lib</p>
<p>12. vi /etc/ld.so.conf<br />
Add the following lines:<br />
/usr/local/include<br />
/usr/local/lib<br />
run:<br />
13 ldconfig</p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/07/installing-mapserver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing TileCache on RedHat/CentOS</title>
		<link>/wordpress/2007/07/installing-tilecache/</link>
		<comments>/wordpress/2007/07/installing-tilecache/#comments</comments>
		<pubDate>Wed, 25 Jul 2007 10:36:45 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[mapserver]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[tilecache]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[centos]]></category>

		<guid isPermaLink="false">/wordpress/?p=79</guid>
		<description><![CDATA[1. Install Apache ./configure &#8211;prefix=/usr/local/apache2 &#8211;enable-so &#8211;enable-rewrite &#8211;with-mpm=prefork make make install rm -Rf /usr/local/apache2/htdocs/* 2. Install mod_python-3.3.1 ./configure --with-apxs=/usr/local/apache2/bin/apxs make make install 3. Install Python Imaging Library (PIL) &#8211; Imaging-1.1.6 python setup.py install Note: To check if PIL was successfully installed: #python selftest.py ***Test Failed*** 1 failures. *** 1 tests of 57 failed. 47 ln [...]]]></description>
			<content:encoded><![CDATA[<p>1. Install Apache<br />
./configure &#8211;prefix=/usr/local/apache2 &#8211;enable-so &#8211;enable-rewrite &#8211;with-mpm=prefork<br />
make<br />
make install<br />
rm -Rf /usr/local/apache2/htdocs/*</p>
<p>2. Install mod_python-3.3.1<br />
<code><br />
./configure --with-apxs=/usr/local/apache2/bin/apxs<br />
make<br />
make install<br />
</code></p>
<p>3. Install Python Imaging Library (PIL) &#8211; Imaging-1.1.6<br />
<code><br />
python setup.py install<br />
</code></p>
<p>Note: To check if PIL was successfully installed:<br />
#python selftest.py<br />
***Test Failed*** 1 failures.<br />
*** 1 tests of 57 failed.</p>
<p>   47  ln -s /usr/lib/libjpeg.so.62 /usr/lib/libjpeg.so<br />
   48  ldconfig<br />
   49  python setup.py install<br />
   51  python selftest.py<br />
   54  rm -rf Imaging-1.1.6<br />
   55  tar -zxvf Imaging-1.1.6.tar.gz<br />
   56  cd Imaging-1.1.6<br />
   58  python selftest.py -> still fails<br />
   59  python setup.py install<br />
   60  python selftest.py -> ok</p>
<p>4. Check if mod_python was sucessfully installed.<br />
<a href="http://www.dscpl.com.au/wiki/ModPython/Articles/GettingModPythonWorking">http://www.dscpl.com.au/wiki/ModPython/Articles/GettingModPythonWorking</a></p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: black;">&#91;</span>root@rupert-centos pytest<span style="color: black;">&#93;</span><span style="color: #808080; font-style: italic;"># python</span>
Python 2.4.3 <span style="color: black;">&#40;</span><span style="color: #808080; font-style: italic;">#1, Mar 14 2007, 18:51:08)</span>
<span style="color: black;">&#91;</span>GCC 4.1.1 <span style="color: #ff4500;">20070105</span> <span style="color: black;">&#40;</span>Red Hat 4.1.1-<span style="color: #ff4500;">52</span><span style="color: black;">&#41;</span><span style="color: black;">&#93;</span> on linux2
Type <span style="color: #483d8b;">&quot;help&quot;</span>, <span style="color: #483d8b;">&quot;copyright&quot;</span>, <span style="color: #483d8b;">&quot;credits&quot;</span> <span style="color: #ff7700;font-weight:bold;">or</span> <span style="color: #483d8b;">&quot;license&quot;</span> <span style="color: #ff7700;font-weight:bold;">for</span> more information.
<span style="color: #66cc66;">&amp;</span>gt<span style="color: #66cc66;">;&amp;</span>gt<span style="color: #66cc66;">;&amp;</span>gt<span style="color: #66cc66;">;</span> <span style="color: #ff7700;font-weight:bold;">import</span> mod_python
<span style="color: #66cc66;">&amp;</span>gt<span style="color: #66cc66;">;&amp;</span>gt<span style="color: #66cc66;">;&amp;</span>gt<span style="color: #66cc66;">;</span> mod_python.<span style="color: black;">version</span>
<span style="color: #483d8b;">'3.3.1'</span>
<span style="color: #66cc66;">&amp;</span>gt<span style="color: #66cc66;">;&amp;</span>gt<span style="color: #66cc66;">;&amp;</span>gt<span style="color: #66cc66;">;</span></pre></div></div>

<p>4. Edit httpd.conf</p>

<div class="wp_syntax"><div class="code"><pre class="conf" style="font-family:monospace;">&lt;directory&gt;
 AddHandler python-program .py
 PythonHandler TileCache.Service
 PythonOption TileCacheConfig /usr/local/apache2/htdocs/tilecache/tilecache.cfg
 PythonDebug On
 PythonPath &quot;sys.path + ['/usr/local/apache2/htdocs/tilecache/']&quot;
&lt;/directory&gt;
&nbsp;
&lt;directory&gt;
 AddHandler mod_python .py
 PythonHandler test
 PythonDebug On
&lt;/directory&gt;</pre></div></div>

<blockquote><p>Note: This syntax will work for all versions of mod_python. In version 3.0 and later, the name of the mod_python handler reference has actually been changed and thus it is now preferred to use &#8220;mod_python&#8221; instead of &#8220;python-program&#8221;. The old name though is still supported and will be used here to avoid confusion for those using version 2.7.</p></blockquote>
<p>5. Test your python</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">from</span> mod_python <span style="color: #ff7700;font-weight:bold;">import</span> apache
&nbsp;
<span style="color: #ff7700;font-weight:bold;">def</span> handler<span style="color: black;">&#40;</span>req<span style="color: black;">&#41;</span>:
      req.<span style="color: black;">log_error</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'handler'</span><span style="color: black;">&#41;</span>
      req.<span style="color: black;">content_type</span> = <span style="color: #483d8b;">'text/plain'</span>
      req.<span style="color: black;">send_http_header</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
      req.<span style="color: black;">write</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'mptest.py<span style="color: #000099; font-weight: bold;">\n</span>'</span><span style="color: black;">&#41;</span>
      <span style="color: #ff7700;font-weight:bold;">return</span> apache.<span style="color: black;">OK</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/07/installing-tilecache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing CFMX7 on CentOS5</title>
		<link>/wordpress/2007/07/installing-cfmx7-on-centos5/</link>
		<comments>/wordpress/2007/07/installing-cfmx7-on-centos5/#comments</comments>
		<pubDate>Mon, 23 Jul 2007 20:25:30 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[cf]]></category>

		<guid isPermaLink="false">/wordpress/?p=76</guid>
		<description><![CDATA[1. You need to install libXpm beforehand to save time in the Graphing Service Error Problems. rpm -ivh libXpm-3.5.5-3.i386.rpm 2. Modify the installer. cat coldfusion-702-linux.bin.backup &#124; sed &#8220;s/export LD_ASSUME/#xport LD_ASSUME/&#8221; &#62; coldfusion-702-linux.bin Reference: http://www.billmitchell.org/coldfusion/centos5/mx7_apache.php POST-INSTALL 1. Disable Verity search if you don&#8217;t use it. chkconfig cfmx7search off]]></description>
			<content:encoded><![CDATA[<p>1. You need to install libXpm beforehand to save time in the Graphing Service Error Problems.</p>
<p><code><br />
rpm -ivh libXpm-3.5.5-3.i386.rpm<br />
</code></p>
<p>2. Modify the installer.<br />
cat coldfusion-702-linux.bin.backup | sed &#8220;s/export LD_ASSUME/#xport LD_ASSUME/&#8221; &gt; coldfusion-702-linux.bin</p>
<p><strong>Reference:</strong> <a href="http://www.billmitchell.org/coldfusion/centos5/mx7_apache.php">http://www.billmitchell.org/coldfusion/centos5/mx7_apache.php</a></p>
<p>POST-INSTALL</p>
<p>1. Disable Verity search if you don&#8217;t use it.<br />
<code><br />
chkconfig cfmx7search off<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/07/installing-cfmx7-on-centos5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Trac on CentOS4</title>
		<link>/wordpress/2007/06/installing-trac-on-centos4/</link>
		<comments>/wordpress/2007/06/installing-trac-on-centos4/#comments</comments>
		<pubDate>Tue, 26 Jun 2007 16:42:45 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[trac]]></category>

		<guid isPermaLink="false">/wordpress/?p=64</guid>
		<description><![CDATA[There is a problem with clearsilver on CentOS systems. I get neo_cgi.so module not found. Don&#8217;t force yourself, it would simply not work (Trac0.10.4 on CentOS, not unless we try the DAG repositories). So, I have to use Trac 0.11, setuptools and Genshi. Prerequisites: - Must have python 2.3+ - Must have mod_python-3.3.1.tgz - Must [...]]]></description>
			<content:encoded><![CDATA[<p>There is a problem with clearsilver on CentOS systems. I get neo_cgi.so module not found. Don&#8217;t force yourself, it would simply not work (Trac0.10.4 on CentOS, not unless we try the DAG repositories).</p>
<p>So, I have to use Trac 0.11, setuptools and Genshi.</p>
<p>Prerequisites:<br />
- Must have python 2.3+<br />
- Must have mod_python-3.3.1.tgz<br />
- Must have httpd2.0.x+ or httpd2.2.x</p>
<p><strong>A. Core Trac Installation</strong></p>
<p>1. Install <a href="http://cheeseshop.python.org/pypi/setuptools/">setuptools-0.6c6-py2.3.egg.</a> Download the setuptools according to your python distribution and simply run:</p>
<p><code>sh setuptools-0.6c4-py2.3.egg</code></p>
<p>2. Install <a href="http://genshi.edgewall.org/">Genshi.</a> There are numerous ways of installing <a href="http://genshi.edgewall.org/wiki/Download">Genshi.</a></p>
<p><code>easy_install Genshi</code></p>
<p>or</p>
<p><code><br />
#wget http://ftp.edgewall.com/pub/genshi/Genshi-0.4.2-py2.3.egg<br />
#chmod +x Genshi-0.4.2-py2.3.egg<br />
#easy_install Genshi-0.4.2-py2.3.egg<br />
</code></p>
<p>3. Install <a href="http://trac.edgewall.org/wiki/TracDownload">Trac 0.11.</a> We need to install trac from svn<br />
#svn co http://svn.edgewall.org/repos/trac/trunk trac<br />
#python ./setup.py install</p>
<p>This would install trac-admin and tracd in /usr/bin.</p>
<p><strong>Trac Post Intall</strong><br />
<code><br />
#mkdir -p /var/www/trac<br />
#cd /var/www/trac<br />
#trac-admin /var/www/trac/poimgr initenv<br />
#chown -Rf nobody:root /var/www<br />
#chmod -Rf 755 /var/www<br />
</code></p>
<p>Just accept the defaults for now, we can change it later on /var/www/trac/poimgr/conf/trac.ini.</p>
<p><strong>C. Apache Configuration</strong></p>

<div class="wp_syntax"><div class="code"><pre class="conf" style="font-family:monospace;">LoadModule python_module /usr/local/apache2/modules/mod_python.so
&nbsp;
&lt;location&gt;
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv /var/www/trac/poimgr
PythonOption TracUriRoot /trac/poimgr
#Order deny,allow
#Deny from all
#Allow from 192.168.1.0/24
AuthType Basic
AuthName &quot;TRAC-POIMGR&quot;
AuthUserFile &quot;/repos/svn-auth-file&quot;
require valid-user
&lt;/location&gt;</pre></div></div>

<p>Notes:<br />
<a href="http://www.yolinux.com/TUTORIALS/LinuxSubversionAndTracServer.html">http://www.yolinux.com/TUTORIALS/LinuxSubversionAndTracServer.html</a></p>
<p>Depending on your installation, you may encounter some problems. I had problems with expat errors:</p>
<p><code><br />
ExpatError (null): line 1,column 0.<br />
</code></p>
<p>Turns out that it was confused between the link libraries of apache and that of python.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#ps aux | grep http | head -3</span>
<span style="color: #666666; font-style: italic;">#sof -p 29982 | grep expat</span>
<span style="color: #666666; font-style: italic;"># strings libexpat.so.0.1.0 | grep expat_</span>
expat_1.95.2
<span style="color: #666666; font-style: italic;"># strings /usr/lib/python2.3/lib-dynload/pyexpat.so | grep expat_</span>
expat_1.95.7
&nbsp;
Quickfix is to use symbolic links:
<span style="color: #666666; font-style: italic;">#cd /usr/local/apache2/lib/</span>
<span style="color: #666666; font-style: italic;">#cp -Rf /usr/lib/libexpat.so.0.5.0 /usr/local/apache2/lib/</span>
<span style="color: #666666; font-style: italic;">#ln -s libexpat.so.0.5.0 libexpat.so</span>
<span style="color: #666666; font-style: italic;">#ln -s libexpat.so.0.5.0 libexpat.so.0</span>
<span style="color: #666666; font-style: italic;">#su -l</span>
<span style="color: #666666; font-style: italic;">#/etc/init.d/httpd restart</span></pre></div></div>

<p>Configuring Trac.<br />
1. I have to move /etc/svn-auth-file to /repos-auth-file. Change the permissions so &#8220;nobody&#8221; could access it.</p>
<p>2. How to configure my users? Well, since its an intranet application and my trac-users and developers is both in the svn-auth-file, I need a way to configure users easily. Follow these steps from <a href="http://trac-hacks.org/wiki/AccountManagerPlugin">trac-hack.</a><br />
<code><br />
easy_install http://trac-hacks.org/svn/accountmanagerplugin/trunk<br />
</code></p>
<p>Role base authorisation in trac</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">trac-admin <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>trac<span style="color: #000000; font-weight: bold;">/</span>poiclient permission remove anonymous \
TICKET_CREATE TICKET_MODIFY WIKI_CREATE WIKI_MODIFY
&nbsp;
<span style="color: #000000; font-weight: bold;">for</span> n <span style="color: #000000; font-weight: bold;">in</span> rupert andrew; <span style="color: #000000; font-weight: bold;">do</span>
trac-admin <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>trac<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>app_name<span style="color: #7a0874; font-weight: bold;">&#125;</span> permission add <span style="color: #007800;">$n</span> TRAC_ADMIN
<span style="color: #000000; font-weight: bold;">done</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">for</span> n <span style="color: #000000; font-weight: bold;">in</span> rupert andrew; <span style="color: #000000; font-weight: bold;">do</span>
trac-admin <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>trac<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>app_name<span style="color: #7a0874; font-weight: bold;">&#125;</span> permission add <span style="color: #007800;">$n</span> WIKI_DELETE
<span style="color: #000000; font-weight: bold;">done</span>
&nbsp;
trac-admin <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>trac<span style="color: #000000; font-weight: bold;">/</span>poiclient permission add authenticated \
BROWSER_VIEW CHANGESET_VIEW FILE_VIEW LOG_VIEW MILESTONE_VIEW \
REPORT_SQL_VIEW REPORT_VIEW ROADMAP_VIEW SEARCH_VIEW \
TICKET_CREATE TICKET_MODIFY TICKET_VIEW TIMELINE_VIEW \
WIKI_CREATE WIKI_MODIFY WIKI_VIEW</pre></div></div>

<p>3. Here&#8217;s my trac.ini. Things to look at is the <em>notification</em> and <em>account-manager</em>.</p>
<p>4. Deleting a Trac Ticket:<br />
<code><br />
# sqlite3 trac.db<br />
delete from ticket_custom where ticket = [ticketID];<br />
delete from ticket_change where ticket = [ticketID];<br />
delete from ticket where id = [ticketID];<br />
</code></p>
<p>Other References:<br />
<a href="http://www.dscpl.com.au/wiki/ModPython/Articles/ExpatCausingApacheCrash">http://www.dscpl.com.au/wiki/ModPython/Articles/ExpatCausingApacheCrash</a><br />
<a href="http://www.yolinux.com/TUTORIALS/LinuxSubversionAndTracServer.html">http://www.yolinux.com/TUTORIALS/LinuxSubversionAndTracServer.html</a><br />
<a href="http://lists.edgewall.com/archive/trac/2004-April/000175.html">Trac and Multiple Subversion Repositories</a></p>
<p>Future Work:<br />
<a href="http://insurrection.tigris.org/">http://insurrection.tigris.org/</a></p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/06/installing-trac-on-centos4/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Creating a Spatial Table in PostGIS</title>
		<link>/wordpress/2007/04/creating-a-spatial-table/</link>
		<comments>/wordpress/2007/04/creating-a-spatial-table/#comments</comments>
		<pubDate>Wed, 04 Apr 2007 20:06:43 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[postgis]]></category>
		<category><![CDATA[postgres]]></category>
		<category><![CDATA[centos]]></category>

		<guid isPermaLink="false">/wordpress/?p=46</guid>
		<description><![CDATA[Creating the spatial table from scratch&#8230; &#91;postgres@rupert-linux ~&#93;$ su - postgres &#91;postgres@rupert-linux ~&#93;$ createdb _E UTF-8 template_postgis CREATE DATABASE &#91;postgres@rupert-linux ~&#93;$ createlang plpgsql template_postgis &#91;postgres@rupert-linux ~&#93;$ psql -f /usr/local/pgsql/share/lwpostgis.sql -d template_postgis CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION COMMIT postgres@rupert-linux ~&#93;$ psql -f /usr/local/pgsql/share/spatial_ref_sys.sql -d template_postgis &#91;postgres@rupert-linux ~&#93;$ psql Alternatively you could [...]]]></description>
			<content:encoded><![CDATA[<p>Creating the spatial table from scratch&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>postgres<span style="color: #000000; font-weight: bold;">@</span>rupert-linux ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">su</span> - postgres
<span style="color: #7a0874; font-weight: bold;">&#91;</span>postgres<span style="color: #000000; font-weight: bold;">@</span>rupert-linux ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ createdb _E UTF-<span style="color: #000000;">8</span> template_postgis
CREATE DATABASE
<span style="color: #7a0874; font-weight: bold;">&#91;</span>postgres<span style="color: #000000; font-weight: bold;">@</span>rupert-linux ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ createlang plpgsql template_postgis
<span style="color: #7a0874; font-weight: bold;">&#91;</span>postgres<span style="color: #000000; font-weight: bold;">@</span>rupert-linux ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ psql <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>lwpostgis.sql <span style="color: #660033;">-d</span> template_postgis
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
COMMIT
postgres<span style="color: #000000; font-weight: bold;">@</span>rupert-linux ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ psql <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>spatial_ref_sys.sql <span style="color: #660033;">-d</span> template_postgis
<span style="color: #7a0874; font-weight: bold;">&#91;</span>postgres<span style="color: #000000; font-weight: bold;">@</span>rupert-linux ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ psql</pre></div></div>

<p>Alternatively you could also create your spatial table from a template&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">     <span style="color: #000000;">14</span> <span style="color: #007800;">postgres</span>=<span style="color: #666666; font-style: italic;"># CREATE DATABASE gistest TEMPLATE=template_postgis;</span>
     <span style="color: #000000;">15</span> CREATE DATABASE</pre></div></div>

<p>I have also added the routing functions using routing.sql and routing_postgis.sql</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>postgres<span style="color: #000000; font-weight: bold;">@</span>rupert-linux ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ psql <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>contrib<span style="color: #000000; font-weight: bold;">/</span>routing.sql <span style="color: #660033;">-d</span> template_postgis
<span style="color: #7a0874; font-weight: bold;">&#91;</span>postgres<span style="color: #000000; font-weight: bold;">@</span>rupert-linux ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ psql <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>contrib<span style="color: #000000; font-weight: bold;">/</span>routing_postgis.sql <span style="color: #660033;">-d</span> template_postgis</pre></div></div>

<p>FYI&#8230;</p>
<p>The <strong>spatial_ref_sys</strong> table contains the ESPG codes and projections. Currently it has 3162 records.</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">gistest<span style="color: #66cc66;">=</span><span style="color: #808080; font-style: italic;"># \d spatial_ref_sys;</span>
 srid      <span style="color: #66cc66;">|</span> integer                 <span style="color: #66cc66;">|</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span>
 auth_name <span style="color: #66cc66;">|</span> character varying<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">256</span><span style="color: #66cc66;">&#41;</span>  <span style="color: #66cc66;">|</span>
 auth_srid <span style="color: #66cc66;">|</span> integer                 <span style="color: #66cc66;">|</span>
 srtext    <span style="color: #66cc66;">|</span> character varying<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">2048</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">|</span>
 proj4text <span style="color: #66cc66;">|</span> character varying<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">2048</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">|</span></pre></div></div>

<p>The <strong>geometry_columns</strong> contains the geometry type of the table you just created..</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">gistest<span style="color: #66cc66;">=</span><span style="color: #808080; font-style: italic;"># \d geometry_columns;</span>
 f_table_catalog   <span style="color: #66cc66;">|</span> character varying<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">256</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">|</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span>
 f_table_schema    <span style="color: #66cc66;">|</span> character varying<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">256</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">|</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span>
 f_table_name      <span style="color: #66cc66;">|</span> character varying<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">256</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">|</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span>
 f_geometry_column <span style="color: #66cc66;">|</span> character varying<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">256</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">|</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span>
 coord_dimension   <span style="color: #66cc66;">|</span> integer                <span style="color: #66cc66;">|</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span>
 srid              <span style="color: #66cc66;">|</span> integer                <span style="color: #66cc66;">|</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span>
 type              <span style="color: #66cc66;">|</span> character varying<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">30</span><span style="color: #66cc66;">&#41;</span>  <span style="color: #66cc66;">|</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/04/creating-a-spatial-table/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Installing PostGres, PostGIS, pgRouting in Linux</title>
		<link>/wordpress/2007/04/installing-postgres-and-postgis-in-linux/</link>
		<comments>/wordpress/2007/04/installing-postgres-and-postgis-in-linux/#comments</comments>
		<pubDate>Tue, 03 Apr 2007 15:05:09 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[postgis]]></category>
		<category><![CDATA[postgres]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[prRouting]]></category>
		<category><![CDATA[routing]]></category>

		<guid isPermaLink="false">/wordpress/?p=45</guid>
		<description><![CDATA[A. Installing PostGres A.1. Download and install the source: postgresql-8.2.3.tar.gz &#91;root@rupert-linux routing&#93;tar -xvzf postgresql-8.1.2.tar.gz &#91;root@rupert-linux routing&#93;LDFLAGS=-lstdc++ &#91;root@rupert-linux routing&#93;./configure --prefix=/usr/local/pgsql --with-perl --with-python --with-krb5 --with-openssl &#91;root@rupert-linux routing&#93;make &#91;root@rupert-linux routing&#93;make install &#160; A.2. Post Compile Operations: &#160; &#91;root@rupert-linux routing&#93;/usr/sbin/adduser postgres &#160; &#91;root@rupert-linux routing&#93;mkdir /usr/local/pgsql/data &#160; &#91;root@rupert-linux routing&#93;chown postgres /usr/local/pgsql/data/ &#160; &#91;root@rupert-linux routing&#93;su - postgres &#160; &#91;root@rupert-linux routing&#93;/usr/local/pgsql/bin/initdb -D [...]]]></description>
			<content:encoded><![CDATA[<p><strong>A. Installing PostGres</strong></p>
<p>A.1. Download and install the source: <a href="http://wwwmaster.postgresql.org/download/mirrors-ftp?file=%2Fsource%2Fv8.2.3%2Fpostgresql-8.2.3.tar.gz">postgresql-8.2.3.tar.gz</a></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvzf</span> postgresql-8.1.2.tar.gz
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #007800;">LDFLAGS</span>=-lstdc++
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span>.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql <span style="color: #660033;">--with-perl</span> <span style="color: #660033;">--with-python</span> <span style="color: #660033;">--with-krb5</span> <span style="color: #660033;">--with-openssl</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
&nbsp;
A.2. Post Compile Operations:
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>adduser postgres
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>data
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #c20cb9; font-weight: bold;">chown</span> postgres <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>data<span style="color: #000000; font-weight: bold;">/</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #c20cb9; font-weight: bold;">su</span> - postgres
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>initdb <span style="color: #660033;">-D</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>data<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p>Note: If youre default locale is not EN, say chinese, then you would get:</p>
<blockquote><p> The files belonging to this database system will be owned by user &#8220;postgres&#8221;.<br />
This user must also own the server process.</p>
<p>The database cluster will be initialized with locale zh_CN.GB18030.<br />
initdb: could not find suitable encoding for locale &#8220;zh_CN.GB18030&#8243;</p></blockquote>
<p>A.3. Edit environment variables. Add the ff to your .bash_profile</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>.bash_profile
<span style="color: #007800;">PATH</span>=<span style="color: #007800;">$PATH</span>:<span style="color: #007800;">$HOME</span><span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #007800;">$JAVA_HOME</span><span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>bin
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PGLIB</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>lib
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PGDATA</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>data
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PGPORT</span>=<span style="color: #000000;">5432</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PGOPTS</span>=<span style="color: #ff0000;">&quot;-i&quot;</span></pre></div></div>

<p>A.4. Start PostGres Automatically on Startup. <a href="/wordpress/wp-content/uploads/2007/06/postgresql.txt">Postgres Startup Script</a></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #c20cb9; font-weight: bold;">touch</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>postgresql
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>postgresql</pre></div></div>

<p>PostGres Startup Script</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #666666; font-style: italic;"># postgresql    This is the init script for starting up the PostgreSQL</span>
<span style="color: #666666; font-style: italic;">#               server</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># chkconfig: - 85 15</span>
<span style="color: #666666; font-style: italic;"># description: Starts and stops the PostgreSQL backend daemon that handles all database requests.</span>
<span style="color: #666666; font-style: italic;"># processname: postmaster</span>
<span style="color: #666666; font-style: italic;"># pidfile: /usr/local/pgsql/data/postmaster.pid</span>
<span style="color: #666666; font-style: italic;">#</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Source function library.</span>
. <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>functions
&nbsp;
<span style="color: #666666; font-style: italic;"># Get config.</span>
. <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>sysconfig<span style="color: #000000; font-weight: bold;">/</span>network
&nbsp;
<span style="color: #666666; font-style: italic;"># Check that networking is up.</span>
<span style="color: #666666; font-style: italic;"># Pretty much need it for postmaster.</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #800000;">${NETWORKING}</span> = <span style="color: #ff0000;">&quot;no&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>amp;<span style="color: #000000; font-weight: bold;">&amp;</span>amp; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>postmaster <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># See how we were called.</span>
<span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">&quot;$1&quot;</span> <span style="color: #000000; font-weight: bold;">in</span>
start<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">pid</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">pidof</span> postmaster<span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$pid</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">then</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Postmaster already running.&quot;</span>
<span style="color: #000000; font-weight: bold;">else</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;Starting postgresql service: &quot;</span>
<span style="color: #c20cb9; font-weight: bold;">su</span> <span style="color: #660033;">-l</span> postgres <span style="color: #660033;">-c</span> <span style="color: #ff0000;">'/usr/local/pgsql/bin/pg_ctl -o -i -D /usr/local/pgsql/data/ -l /usr/local/pgsql/data/logfile start'</span>
<span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">1</span>
<span style="color: #7a0874; font-weight: bold;">echo</span>
<span style="color: #7a0874; font-weight: bold;">exit</span>
<span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #000000; font-weight: bold;">;;</span>
&nbsp;
stop<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;Stopping postgresql service: &quot;</span>
killproc postmaster
<span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">2</span>
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>data<span style="color: #000000; font-weight: bold;">/</span>postmaster.pid
<span style="color: #7a0874; font-weight: bold;">echo</span>
<span style="color: #000000; font-weight: bold;">;;</span>
&nbsp;
restart<span style="color: #7a0874; font-weight: bold;">&#41;</span>
$<span style="color: #000000;">0</span> stop
$<span style="color: #000000;">0</span> start
<span style="color: #000000; font-weight: bold;">;;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Usage: postgresql {start|stop|restart}&quot;</span>
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">esac</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span></pre></div></div>

<p>A.5. PostGres Testing</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># su - postgres</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>postgres<span style="color: #000000; font-weight: bold;">@</span>rupert-linux ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>createdb <span style="color: #7a0874; font-weight: bold;">test</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>postgres<span style="color: #000000; font-weight: bold;">@</span>rupert-linux ~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>psql <span style="color: #7a0874; font-weight: bold;">test</span></pre></div></div>

<p><strong>B. Installing PostGIS.</strong></p>
<p>B.1. Download <a href="http://geos.refractions.net/">Geos</a></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># bzip2 -d geos-3.0.0rc4.tar.bz2</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># tar -xvf geos-3.0.0rc4.tar</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ./configure</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># make</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># make install</span></pre></div></div>

<p>B.2. Download <a href="http://www.postgis.org/download/">PostGIS.</a></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cp postgis-1.2.1.tar.gz /home/installers/postgresql-8.2.3/contrib/</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># tar -zxvf postgis-1.2.1.tar.gz</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd /home/installers/postgresql-8.2.3/contrib/postgis-1.2.1/</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ./configure --with-pgsql=/usr/local/pgsql/bin/pg_config</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># make</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># make install</span></pre></div></div>

<p>B.3 Reload ldconfig</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># vi /etc/ld.so.conf</span>
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>include
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ldconfig</span></pre></div></div>

<p>B.4. Testing PostGIS</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">su</span> - postgres
$ createlang plpgsql <span style="color: #7a0874; font-weight: bold;">test</span>
$ <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>psql <span style="color: #660033;">-d</span> <span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>lwpostgis.sql
BEGIN
psql:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>postgresql<span style="color: #000000; font-weight: bold;">/</span>contrib<span style="color: #000000; font-weight: bold;">/</span>lwpostgis.sql:<span style="color: #000000;">39</span> NOTICE:  <span style="color: #7a0874; font-weight: bold;">type</span> <span style="color: #ff0000;">&quot;histogram2d&quot;</span> is not yet defined
DETAIL:  Creating a shell <span style="color: #7a0874; font-weight: bold;">type</span> definition.
.
.
.
COMMIT
$ <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>psql <span style="color: #660033;">-d</span> <span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>pgsql<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>spatial_ref_sys.sql
BEGIN
INSERT <span style="color: #000000;">0</span> <span style="color: #000000;">1</span>
INSERT <span style="color: #000000;">0</span> <span style="color: #000000;">1</span>
.
.
.
VACUUM</pre></div></div>

<p><strong>C. Installing pgRouting.</strong></p>
<p>C.1 Install Boost Library if you don&#8217;t have it. Download <a href="http://sourceforge.net/project/showfiles.php?group_id=7586">boost</a></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># tar -jxvf boost_1_33_1.tar.bz2</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ./configure</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># make</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># make install</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd /usr/local/include/boost1.3.3</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cp -Rf boost /usr/local/include/</span></pre></div></div>

<p>C.2 Download and install <a href="http://www.cgal.org/download/">CGAL</a>.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux installers<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># tar zxvf CGAL-3.2.1.tar.gz</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux installers<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd CGAL-3.2.1</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux CGAL-3.2.1<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ./install_cgal --prefix=/usr/local/cgal --with-boost=n --without-autofind -ni /usr/bin/g++</span>
Copy libCGAL.so to the pgsql<span style="color: #000000; font-weight: bold;">/</span>lib directory...
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux CGAL-3.2.1<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;">#  cp -Rf /usr/local/cgal/lib/i686_Linux-2.6_g++-3.4.3/libCGAL.so /usr/local/pgsql/lib/</span></pre></div></div>

<p>C.3 Download and install <a href="http://sourceforge.net/projects/gaul/">GAUL</a>.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux installers<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># tar zxvf gaul-devel-0.1849.tar.gz</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux gaul-devel-<span style="color: #000000;">0.1849</span>-<span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ./configure -prefix=/usr/local/gaul</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux gaul-devel-<span style="color: #000000;">0.1849</span>-<span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># make</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux gaul-devel-<span style="color: #000000;">0.1849</span>-<span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># make install</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux gaul-devel-<span style="color: #000000;">0.1849</span>-<span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cd /usr/local/gaul (Note: Copy gaul includes and libraries to standard directories...)</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux gaul<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cp -Rf include/* /usr/include/</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux gaul<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cp -Rf lib/* /usr/local/lib/</span></pre></div></div>

<p>C.4 Download and install <a href="http://www.postlbs.org/postlbs-cms/files/downloads/pgRouting-0.9.9.tgz">pgRouting</a>.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux installers<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># tar -jxvf pgRouting-0.9.9.tgz</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># vi configure</span>
<span style="color: #666666; font-style: italic;">##########################################</span>
Edit line 3036...
<span style="color: #007800;">CGAL_MKF</span>=<span style="color: #ff0000;">'find /usr/local/cgal/include/CGAL.....'</span>
<span style="color: #666666; font-style: italic;">##########################################</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ./configure --with-cgal=/usr/local/cgal --with-gaul=/usr/local/gaul --with boost=/usr/local --pg-sql=/usr/local/pgsql</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># make</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux routing<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># make install</span></pre></div></div>

<p><ins datetime="2007-06-07T01:28:02+00:00"></ins></p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/04/installing-postgres-and-postgis-in-linux/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Unattended Linux Installation using KickStart</title>
		<link>/wordpress/2007/03/unattended-linux-installation-using-kickstart/</link>
		<comments>/wordpress/2007/03/unattended-linux-installation-using-kickstart/#comments</comments>
		<pubDate>Tue, 06 Mar 2007 15:01:35 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[kickstart]]></category>

		<guid isPermaLink="false">/wordpress/?p=42</guid>
		<description><![CDATA[I have found this very handy in installing the same Linux OS on similar machines. 1. Download the isos from CentOS. I&#8217;m using CentOS4.4 2. Make available via http the CentOS installers. The directory should be as follows: wwwroot/ /CentOS /headers /images /isolinux /NOTES /repodata .discinfo centosdocs-man.css GPS RELEASE-NOTES-en RELEASE-NOTES-en.html RPM-GPG-KEY RPM-GPG-KEY-centos4 yumgroups.xml 3. Create [...]]]></description>
			<content:encoded><![CDATA[<p>I have found this very handy in installing the same Linux OS on similar machines.</p>
<p>1. Download the isos from CentOS. I&#8217;m using CentOS4.4</p>
<p>2. Make available via http the CentOS installers. The directory should be as follows:</p>
<p><code><br />
wwwroot/<br />
/CentOS<br />
/headers<br />
/images<br />
/isolinux<br />
/NOTES<br />
/repodata<br />
.discinfo<br />
centosdocs-man.css<br />
GPS<br />
RELEASE-NOTES-en<br />
RELEASE-NOTES-en.html<br />
RPM-GPG-KEY<br />
RPM-GPG-KEY-centos4<br />
yumgroups.xml<br />
</code></p>
<p>3. Create your kickstart files as follow:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#Generated by Kickstart Configurator</span>
<span style="color: #666666; font-style: italic;">#platform=x86, AMD64, or Intel EM64T</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#System  language</span>
lang en_US.UTF-<span style="color: #000000;">8</span>
<span style="color: #666666; font-style: italic;">#Language modules to install</span>
langsupport <span style="color: #660033;">--default</span>=en_US.UTF-<span style="color: #000000;">8</span> en_US.UTF-<span style="color: #000000;">8</span>
<span style="color: #666666; font-style: italic;">#System keyboard</span>
keyboard us
<span style="color: #666666; font-style: italic;">#System mouse</span>
mouse
<span style="color: #666666; font-style: italic;">#Sytem timezone</span>
timezone Asia<span style="color: #000000; font-weight: bold;">/</span>Manila
<span style="color: #666666; font-style: italic;">#Root password</span>
rootpw <span style="color: #660033;">--iscrypted</span> $<span style="color: #000000;">1</span><span style="color: #007800;">$U0Buucop</span><span style="color: #007800;">$JgH</span><span style="color: #000000; font-weight: bold;">/</span>lyirJj2Pb36OGvA521
<span style="color: #666666; font-style: italic;">#Reboot after installation</span>
reboot
<span style="color: #666666; font-style: italic;">#Install OS instead of upgrade</span>
<span style="color: #c20cb9; font-weight: bold;">install</span>
<span style="color: #666666; font-style: italic;">#Use Web installation</span>
url <span style="color: #660033;">--url</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #666666; font-style: italic;">#System bootloader configuration</span>
bootloader <span style="color: #660033;">--location</span>=mbr 
&nbsp;
xconfig <span style="color: #660033;">--card</span> <span style="color: #ff0000;">&quot;VMWare&quot;</span> <span style="color: #660033;">--videoram</span> <span style="color: #000000;">16384</span> <span style="color: #660033;">--hsync</span> <span style="color: #000000;">31.5</span>-<span style="color: #000000;">37.9</span> <span style="color: #660033;">--vsync</span> <span style="color: #000000;">50</span>-<span style="color: #000000;">70</span> <span style="color: #660033;">--resolution</span> 800x600 <span style="color: #660033;">--depth</span> <span style="color: #000000;">16</span>
<span style="color: #666666; font-style: italic;">#network --device eth0 --bootproto dhcp --hostname centos</span>
<span style="color: #666666; font-style: italic;">#network --bootproto=static --ip=192.168.224.10 --netmask=255.255.255.0 --gateway=192.168.1.1 --hostname centos</span>
network <span style="color: #660033;">--bootproto</span>=static <span style="color: #660033;">--ip</span>=192.168.224.10 <span style="color: #660033;">--netmask</span>=255.255.255.0 <span style="color: #660033;">--hostname</span> centos 
&nbsp;
<span style="color: #666666; font-style: italic;">#Clear the Master Boot Record</span>
zerombr <span style="color: #c20cb9; font-weight: bold;">yes</span>
<span style="color: #666666; font-style: italic;">#Partition clearing information</span>
clearpart <span style="color: #660033;">--all</span> <span style="color: #660033;">--initlabel</span>
<span style="color: #666666; font-style: italic;">#Disk partitioning information</span>
part <span style="color: #000000; font-weight: bold;">/</span>boot <span style="color: #660033;">--fstype</span> ext3 <span style="color: #660033;">--size</span> <span style="color: #000000;">100</span> <span style="color: #660033;">--asprimary</span>
part swap <span style="color: #660033;">--recommended</span>
part <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">--fstype</span> ext3 <span style="color: #660033;">--size</span> <span style="color: #000000;">2048</span> <span style="color: #660033;">--grow</span>
<span style="color: #666666; font-style: italic;">#System authorization infomation</span>
auth  <span style="color: #660033;">--useshadow</span>  <span style="color: #660033;">--enablemd5</span>
<span style="color: #666666; font-style: italic;">#Firewall configuration</span>
firewall <span style="color: #660033;">--enabled</span> <span style="color: #660033;">--port</span>=<span style="color: #000000;">22</span>:tcp <span style="color: #660033;">--port</span>=<span style="color: #000000;">80</span>:tcp <span style="color: #660033;">--port</span>=<span style="color: #000000;">3306</span>:tcp
selinux <span style="color: #660033;">--disabled</span>
<span style="color: #666666; font-style: italic;">#Do not configure XWindows</span>
skipx
<span style="color: #666666; font-style: italic;">#Package install information</span>
<span style="color: #000000; font-weight: bold;">%</span>packages
grub
kernel-smp
e2fsprogs
&nbsp;
<span style="color: #000000; font-weight: bold;">%</span>post
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>glibc-kernheaders-<span style="color: #000000;">2.4</span>-9.1.98.EL.i386.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>glibc-headers-2.3.4-2.25.i386.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>glibc-devel-2.3.4-2.25.i386.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>cpp-3.4.6-3.i386.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>vim-common-6.3.046-0.40E.7.i386.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>vim-enhanced-6.3.046-0.40E.7.i386.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>gcc-3.4.6-3.i386.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>compat-libstdc++-<span style="color: #000000;">33</span>-3.2.3-47.3.i386.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>autoconf-<span style="color: #000000;">2.59</span>-5.noarch.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>automake14-1.4p6-12.noarch.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>automake15-<span style="color: #000000;">1.5</span>-13.noarch.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>automake16-1.6.3-5.noarch.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>automake17-1.7.9-5.noarch.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>automake-1.9.2-3.noarch.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>bzip2-devel-1.0.2-13.EL4.3.i386.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>libidn-0.5.6-1.i386.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>curl-7.12.1-8.rhel4.i386.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>pkgconfig-0.15.0-3.i386.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>libidn-devel-0.5.6-1.i386.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>e2fsprogs-devel-<span style="color: #000000;">1.35</span>-12.4.EL4.i386.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>krb5-devel-1.3.4-33.i386.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>zlib-devel-1.2.1.2-1.2.i386.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>openssl-devel-0.9.7a-43.10.i386.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>flex-2.5.4a-33.i386.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>libstdc++-devel-3.4.6-3.i386.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>libxml2-devel-2.6.16-6.i386.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>libxslt-devel-1.1.11-1.i386.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>nmap-<span style="color: #000000;">3.70</span>-1.i386.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>umb-scheme-<span style="color: #000000;">3.2</span>-36.EL4.i386.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>guile-1.6.4-14.i386.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>swig-1.3.21-6.i386.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>apr-0.9.4-24.5.c4.2.i386.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>apr-util-0.9.4-21.i386.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>neon-0.24.7-4.i386.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>perl-URI-<span style="color: #000000;">1.30</span>-4.noarch.rpm
rpm <span style="color: #660033;">-i</span> http:<span style="color: #000000; font-weight: bold;">//</span>192.168.224.1<span style="color: #000000; font-weight: bold;">/</span>centos<span style="color: #000000; font-weight: bold;">/</span>CentOS<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>subversion-1.1.4-2.ent.i386.rpm
&nbsp;
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>chkconfig cups-config-daemon off
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>chkconfig cups off
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>chkconfig gpm off
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>chkconfig isdn off
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>chkconfig kudzu off
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>chkconfig mysql off
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>chkconfig netfs off
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>chkconfig nfslock off
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>chkconfig pcmcia off
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>chkconfig portmap off
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>chkconfig rawdevices off
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>chkconfig rpcgssd off
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>chkconfig rpcidmapd off
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>chkconfig rpcsvcgssd off
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>chkconfig <span style="color: #c20cb9; font-weight: bold;">sendmail</span> off
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>chkconfig smartd off
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>chkconfig xfs off
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>chkconfig xinetd off</pre></div></div>

<p>4. Insert the CentOS4.4 CD1 and boot the machine. On prompt type:</p>
<p>linux ks=http://path-to/centos/ks.cfg</p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/03/unattended-linux-installation-using-kickstart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing a qmail server</title>
		<link>/wordpress/2007/02/installing-a-qmail-server/</link>
		<comments>/wordpress/2007/02/installing-a-qmail-server/#comments</comments>
		<pubDate>Wed, 31 Jan 2007 23:35:28 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[qmail]]></category>

		<guid isPermaLink="false">/wordpress/?p=29</guid>
		<description><![CDATA[Its been almost two years now since I installed a mail server. Nevertheless, qmail still rocks as qmailtoaster becomes more convenient to install. I also tried the install on a fresh CentOS4.4 machines, and it works like a charm. -------------------------------------------------------------------- EZ QmailToaster Fresh Install on CentOS 4.3 Nick Hemmesch &#60;nick @ndhsoft.com&#62; June 08, 2006 -------------------------------------------------------------------- [...]]]></description>
			<content:encoded><![CDATA[<p>Its been almost two years now since I installed a mail server. Nevertheless, <a href="http://www.qmailtoaster.com/centos/cnt40/EZ-QmailToaster-CentOS-4.3.txt">qmail still rocks as qmailtoaster becomes more convenient to install.</a> I also tried the install on a fresh CentOS4.4 machines, and it works like a charm.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">--------------------------------------------------------------------
EZ QmailToaster Fresh Install on CentOS 4.3
Nick Hemmesch &lt;nick @ndhsoft.com&gt; June 08, 2006
--------------------------------------------------------------------
&nbsp;
CentOS 4.3: This test install was performed on an
P4 3Ghz with 2GB ram on an Intel m/b. 
&nbsp;
--------------------------------------------------------------------
This tutorial is for CentOS 4.3 (cnt40) i386 
&nbsp;
To install CentOS 4.3 x86_64, replace cnt40 with cnt4064
&nbsp;
To install Fedora Core 4 &amp;amp; 5, change download path from centos to
fedora &amp;amp; cnt40 to fdr40, fdr4064, fdr50 or fdr5064 per your distro
--------------------------------------------------------------------
&nbsp;
Notes:
&nbsp;
You must have either a local dns server or a local caching name
server. If you need a caching namserver, we will add one in Step 8.
&nbsp;
Be sure to replace &quot;your-domain.com&quot; with your real domain name,
and &quot;your.fqdn.com&quot; with your server's &quot;Fully Qualified Domain Name&quot;.
&nbsp;
--------------------------------------------------------------------
1. Download CentOS 4.3 CD iso's or the DVD iso.
--------------------------------------------------------------------
&nbsp;
  Burn iso's to CD, or DVD if you downloded a DVD iso
&nbsp;
  Boot with your CD 1 or the DVD
&nbsp;
--------------------------------------------------------------------
2. CentOS Installation (This is the configuration of my test box):
--------------------------------------------------------------------
&nbsp;
  Splash Page: &lt;enter&gt; to install in graphical mode  
&nbsp;
  CD Found window: Choose &quot;Skip&quot; to bypass media test  
&nbsp;
  Welcome to CentOS: Click &quot;Next&quot;
&nbsp;
  Language Selection: Select your language &amp;amp; Click &quot;Next&quot;
&nbsp;
  Keyboard Configuration: Select language type &amp;amp; Click &quot;Next&quot;
&nbsp;
  Installation Type: Select &quot;Server&quot; &amp;amp; Click &quot;Next&quot;
&nbsp;
  Disk Partitioning Setup: Select &quot;Automatically Partition &amp;amp; Click &quot;Next&quot;
&nbsp;
      Warning: Click &quot;Yes&quot;
&nbsp;
  Automatic Partitioning: Select &quot;Remove all partitions&quot; &amp;amp; Click &quot;Next&quot;
&nbsp;
      Warning: Click &quot;Yes&quot;
&nbsp;
  Disk Setup: Click &quot;Next&quot;
&nbsp;
  Boot Loader Configuration: Click &quot;Next&quot;
&nbsp;
  Network Configuration: Click &quot;Edit&quot;
&nbsp;
      Edit Interface eth0: Deselect &quot;Configure using DHCP&quot;
&nbsp;
      Select &quot;Activate on boot&quot;
&nbsp;
      Enter your &quot;IP Address&quot; &amp;amp; &quot;Netmask&quot;
&nbsp;
      Click &quot;OK
&nbsp;
      Set the hostname:
&nbsp;
          Deselect &quot;automatically via DHCP&quot;
&nbsp;
          Select &quot;manually&quot; &amp;amp; enter your &quot;fully qualified domain name&quot;
&nbsp;
      Miscellaneous Settings:
&nbsp;
          Gateway: enter IP address of your gateway
&nbsp;
          Primary DNS: enter IP address of primary dns server
&nbsp;
          Secondary DNS: enter IP address of secondary dns server
&nbsp;
      Click &quot;Next&quot;
&nbsp;
  Firewall Configuration:
&nbsp;
      Select &quot;No firewall&quot;
&nbsp;
      Select &quot;Disabled&quot; mode for SELinux
&nbsp;
      Click &quot;Next&quot;
&nbsp;
          Warning - No Firewall: Click &quot;Proceed&quot;
&nbsp;
  Additional Language Support&quot; Click &quot;Next&quot;
&nbsp;
  Time Zone Selection: Select your time zone &amp;amp; Click &quot;Next&quot;
&nbsp;
  Set Root Password: Enter your root password twice &amp;amp; Click &quot;Next&quot;
&nbsp;
--------------------------------------------------------------------
3. Package Group Selection - Select ONLY the following groups:
--------------------------------------------------------------------
&nbsp;
  Server Configuration Tools: Select
&nbsp;
  Web Server: Select
&nbsp;
      Click &quot;Details&quot; and add php-mysql plus the defaults
&nbsp;
  DNS Name Server: Select
&nbsp;
  FTP Server: Select
&nbsp;
  MySQL Database: Select
&nbsp;
      Click &quot;Details&quot; and add mysql-bench, mysql-server plus the defaults
&nbsp;
  Development Tools: Select
&nbsp;
      Click &quot;Details&quot; and add expect to the defaults
&nbsp;
  Administration Tools: Select
&nbsp;
  System Tools: Select
&nbsp;
      Click &quot;Details&quot; and add mrtg to the defaults
&nbsp;
  Click &quot;Next&quot;
&nbsp;
  About to Install: Click &quot;Next&quot;
&nbsp;
      Required Install Media: verify and click &quot;Continue&quot;
&nbsp;
  Installing Packages: Click &quot;Next&quot; &amp;amp; watch the install
&nbsp;
  After installation: remove your media &amp;amp; Click &quot;Reboot&quot;
&nbsp;
--------------------------------------------------------------------
4. After reboot, login as root:
--------------------------------------------------------------------
&nbsp;
  mkdir -p /usr/src/qtms-install
&nbsp;
  cd /usr/src/qtms-install
&nbsp;
  This example is CentOS 4.3 i386 so the qmailtoaster switch is cnt40 
&nbsp;
--------------------------------------------------------------------
5. Prepare to Install QmailToaster:
--------------------------------------------------------------------
&nbsp;
  wget http://www.qmailtoaster.com/centos/cnt40/cnt40-deps.sh
&nbsp;
      sh cnt40-deps.sh
&nbsp;
  wget http://www.qmailtoaster.com/centos/cnt40/cnt40-perl.sh
&nbsp;
      sh cnt40-perl.sh
&nbsp;
  wget http://www.qmailtoaster.com/centos/cnt40/cnt40-svcs.sh
&nbsp;
  wget http://www.qmailtoaster.com/centos/cnt40/firewall.sh
&nbsp;
      nano -w cnt40-svcs.sh
&nbsp;
      edit MYSQLPW=your-mysql-password
&nbsp;
      ctl-o and enter to save
&nbsp;
      ctl-x to exit
&nbsp;
      nano -w firewall.sh
&nbsp;
      edit MYIP=&quot;your-IP-address&quot;
&nbsp;
      ctl-o and enter to save
&nbsp;
      ctl-x to exit
&nbsp;
      sh cnt40-svcs.sh
&nbsp;
  === NOTE ===
&nbsp;
  This script turns on or off all necessary services. Then the script sets
  up your mysql root account, creates and grants privileges for your vpopmail
  mysql account, makes a symlink so your krb5 is read properly, edits your
  php.ini, sets inittab to start at runlevel 3, and sets up your firewall.
&nbsp;
  Note: You might see some service errors while the script runs,
  don't worry about them.
&nbsp;
  ============
&nbsp;
  Update all your packages:
&nbsp;
      yum -y update
&nbsp;
  REBOOT
&nbsp;
--------------------------------------------------------------------
6. Get QmailToaster Packages:
--------------------------------------------------------------------
&nbsp;
  cd /usr/src/qtms-install
&nbsp;
  wget http://www.qmailtoaster.com/info/current-download-script.sh
&nbsp;
      sh current-download-script.sh
&nbsp;
  This script downloads all necessary packages into you current
  directory (should be /usr/src/qtms-install/).
&nbsp;
--------------------------------------------------------------------
7. Install QmailToaster Packages:
--------------------------------------------------------------------
&nbsp;
  wget http://www.qmailtoaster.com/centos/cnt40/cnt40-install-script.sh
&nbsp;
      sh cnt40-install-script.sh
&nbsp;
  Check your services:
&nbsp;
      setup: Select Services
&nbsp;
          See that the following services are selected: acpid anacron
&nbsp;
          atd autofs cpuspeed crond djbdns freshclam haldaemon httpd
&nbsp;
          iptables kudzu messagebus mysqld network ntpd qmail rawdevices
&nbsp;
          smartd sshd syslog xinet
&nbsp;
          Also: irqbalance (w/dual processors) xfs (w/xwindows)
&nbsp;
--------------------------------------------------------------------
8. Add djbdns (if you don't want bind)
--------------------------------------------------------------------
&nbsp;
  rpm -e --nodeps bind bind-chroot caching-nameserver
&nbsp;
  rpmbuild --rebuild --with cnt40 djbdns*.src.rpm
&nbsp;
  rpm -Uvh ../redhat/RPMS/i386/djbdns-localcache*.rpm
&nbsp;
  echo &quot;search your-domain.com&quot; &amp;gt; /etc/resolv.conf
  echo &quot;nameserver 127.0.0.1&quot; &amp;gt;&amp;gt; /etc/resolv.conf
&nbsp;
  REBOOT
&nbsp;
--------------------------------------------------------------------
9. Setup QmailToaster:
--------------------------------------------------------------------
&nbsp;
  qmailctl stat
&nbsp;
  (Should look somewhat like this)
&nbsp;
      [root@gateway ~]# qmailctl stat
      authlib: up (pid 2425) 65 seconds
      clamd: up (pid 2425) 65 seconds
      imap4: up (pid 2421) 65 seconds
      imap4-ssl: up (pid 2423) 65 seconds
      pop3: up (pid 2414) 65 seconds
      pop3-ssl: up (pid 2409) 65 seconds
      send: up (pid 2416) 65 seconds
      smtp: up (pid 2418) 65 seconds
      spamd: up (pid 2407) 65 seconds
      authlib/log: up (pid 2417) 65 seconds
      clamd/log: up (pid 2417) 65 seconds
      imap4/log: up (pid 2422) 65 seconds
      imap4-ssl/log: up (pid 2424) 65 seconds
      pop3/log: up (pid 2415) 65 seconds
      pop3-ssl/log: up (pid 2413) 65 seconds
      send/log: up (pid 2420) 65 seconds
      smtp/log: up (pid 2419) 65 seconds
      spamd/log: up (pid 2408) 65 seconds
      [root@gateway ~]#
&nbsp;
  Add a domain:
&nbsp;
      /home/vpopmail/bin/vadddomain your-domain.com
&lt;postmaster -password&gt;
&nbsp;
  Add a user:
&nbsp;
      /home/vpopmail/bin/vadduser you@your-domain.com &lt;your -password&gt;
&nbsp;
  Edit /etc/php.ini and set register_globals = On
&nbsp;
      service httpd restart  
&nbsp;
  Bring up your browser and go to:
&nbsp;
      http://www.your-domain.com/admin-toaster/
&nbsp;
        Username: admin
        Password: toaster
&nbsp;
      Change your password . . . 
&nbsp;
  Edit /etc/php.ini and set register_globals = Off
&nbsp;
      service httpd restart  
&nbsp;
  Check your mail server:
&nbsp;
      http://www.your-domain.com/webmail
&nbsp;
      login with your full email address and your password
&nbsp;
      Send yourself an email - should show right away
&nbsp;
      Send an email to yourself if you have another address
&nbsp;
      Go to your other email account and reply to the message you sent
&nbsp;
  If Isoqlog doesn't show right away, do this:
&nbsp;
      sh /usr/share/toaster/isoqlog/bin/cron.sh
&nbsp;
--------------------------------------------------------------------
10. Add domainkeys:
--------------------------------------------------------------------
&nbsp;
  Make dir for yourdomain.com: 
&nbsp;
      mkdir /var/qmail/control/domainkeys/your-domain.com 
&nbsp;
  Make domainkey (Remove the &quot;\&quot;): 
&nbsp;
      dknewkey /var/qmail/control/domainkeys/your-domain.com/private &amp;gt; \
                                                         your-domain-dk.txt 
&nbsp;
      chown root:qmail /var/qmail/control/domainkeys/your-domain.com/private
      chmod 444 /var/qmail/control/domainkeys/your-domain.com/private
&nbsp;
  Make dns entry: 
&nbsp;
      BIND - in the your-domain.com zone file (see yourdomain-dk.txt):
&nbsp;
         private._domainkey IN TXT &quot;k=rsa; p=MEwwDQY . . . to end of key&quot;
            (NOTE QUOTATION MARKS MUST BE THERE) 
&nbsp;
      DJBDNS - in /var/djbdns/tinydns/root/data (make from your-domain-dk.txt): 
&nbsp;
        '_domainkey.your-domain.com:o=-; r=postmaster@your-domain.com
        'private._domainkey.your-domain.com:k=rsa; p=MEwwDQY . . . to end of key 
&nbsp;
  Test your mailserver:
&nbsp;
      http://domainkeys.sourceforge.net/policycheck.html
      http://domainkeys.sourceforge.net/selectorcheck.html
&nbsp;
      In squirrelmail, send a test email, select View Full Header and you
      should find something like the following:
&nbsp;
      ----------- snip ------------
      DomainKey-Status: good
      Received: by simscan 1.2.0 ppid: 22641, pid: 22644, t: 0.8416s
           scanners: clamav: 0.88.2/m:38/d:1476 spam: 3.1.1
      X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on ndh1.whatgives.org
      X-Spam-Level: *
      X-Spam-Status: No, score=1.6 required=5.0 tests=FROM_DOMAIN_NOVOWEL
           autolearn=no version=3.1.1
      Received: from unknown (HELO ns1.ndhsdns.com) (216.221.100.227)
           by ndh1.whatgives.org with (DHE-RSA-AES256-SHA encrypted) SMTP; 22 May 2006 20:03:36 -0000
      Received-SPF: pass (ndh1.whatgives.org: SPF record at ndhsdns.com designates 216.221.100.227 as permitted sender)
      Received: (qmail 28034 invoked by uid 89); 22 May 2006 20:03:36 -0000
      Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
      DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
           s=private; d=ndhsdns.com;
           b=XVKQZe446BXMnSoQKvgchf0DRx4v8YQYZn5KVLj5O8XYf7V1dX7ETaJ1VGWGp5Bf ;
      Received: from unknown (HELO www.ndhsdns.com) (127.0.0.1)
           by ns1.ndhsdns.com with SMTP; 22 May 2006 20:03:36 -0000
      ----------- snip ------------
&nbsp;
--------------------------------------------------------------------
11. Logs for all packages except freshclam are at:
--------------------------------------------------------------------
&nbsp;
  /var/log/qmail/*
&nbsp;
  Freshclam is at /var/log/clamav
&lt;/your&gt;&lt;/postmaster&gt;&lt;/enter&gt;&lt;/nick&gt;</pre></div></div>

<p>Notes:<br />
The only problem I stumbbled upon is when using vadddomain, as the mysql password was still set to &#8220;SsEeCcRrEeTt&#8221;. Edit these files before adding a domain. I dont use the web interface when adding a domain, i prefer it by command line.<br />
<code><br />
[root@mail vpopmail]# find . | grep mysql<br />
./etc/vpopmail.mysql.dist<br />
./etc/vpopmail.mysql<br />
</code></p>
<p>After all the installs is completed, reboot and check if qmail is running.<br />
<code><br />
Administrator links:<br />
http://your-mail-server-ip/admin-toaster/ -&gt; this is the main administration interface<br />
http://your-mail-server-ip/qmailadmin/     -&gt; administrative interface to manage accounts<br />
http://your-mail-server-ip/webmail/         -&gt; an email account interface<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/02/installing-a-qmail-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

