<?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; linux</title>
	<atom:link href="http:///wordpress/tag/linux/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>VIM cheatsheet</title>
		<link>/wordpress/2011/05/vim-cheatsheet/</link>
		<comments>/wordpress/2011/05/vim-cheatsheet/#comments</comments>
		<pubDate>Sat, 07 May 2011 07:03:18 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">/wordpress/?p=999</guid>
		<description><![CDATA[set nocompatible set nu set expandtab &#160; &#34;this will change tab to spaces set ts=2 set shiftwidth=2 set expandtab &#160; set hlsearch syntax on &#160; &#34;Use TAB to complete when typing words, else inserts TABs as usual. &#34;Uses dictionary and source files to find matching words to complete. &#160; &#34;See help completion for source, &#34;Note: [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">set nocompatible
set nu
set expandtab
&nbsp;
&quot;this will change tab to spaces
set ts=2 
set shiftwidth=2
set expandtab
&nbsp;
set hlsearch
syntax on
&nbsp;
&quot;Use TAB to complete when typing words, else inserts TABs as usual.
&quot;Uses dictionary and source files to find matching words to complete.
&nbsp;
&quot;See help completion for source,
&quot;Note: usual completion is on &lt;C-n&gt; but more trouble to press all the time.
&quot;Never type the same word twice and maybe learn a new spellings!
&quot;Use the Linux dictionary when spelling is in doubt.
&quot;Window users can copy the file to their machine.
function! Tab_Or_Complete()
  if col('.')&gt;1 &amp;&amp; strpart( getline('.'), col('.')-2, 3 ) =~ '^\w'
    return &quot;\&lt;C-N&gt;&quot;
  else 
    return &quot;\&lt;Tab&gt;&quot;
  endif
endfunction
:inoremap &lt;Tab&gt; &lt;C-R&gt;=Tab_Or_Complete()&lt;CR&gt;
:set dictionary=&quot;/usr/dict/words&quot;
&nbsp;
set numberwidth=5
set cmdheight=2
&quot;To map: imap ;f foobar =&gt; Type f; foobar will be inserted
&nbsp;
&quot;RSPEC Where ! is execute command. % is the current file
&quot;:!rspec %
&nbsp;
&quot;Map RSPEC test to ,t
&quot;:map ,t :w\|!rspec %&lt;cr&gt;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>/wordpress/2011/05/vim-cheatsheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails Note #13: RubyonRails + Oracle on Linux (i386 / x64)</title>
		<link>/wordpress/2008/12/rubyonrails-oracle-on-linux-i386-x64/</link>
		<comments>/wordpress/2008/12/rubyonrails-oracle-on-linux-i386-x64/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 00:53:48 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">/wordpress/?p=310</guid>
		<description><![CDATA[In summary, install Oracle Instant Client and try to run sqlplus. If sqlplus connects to the oracle sid then go ahead and install the rails adapters for oracle. What is important to note here, is to install the oracle-instantclient for the architecture of your machine.. I have tested this on Debian Lenny (i386) and CentOS5 [...]]]></description>
			<content:encoded><![CDATA[<p>In summary, install Oracle Instant Client and try to run sqlplus. If sqlplus connects to the oracle sid then go ahead and install the rails adapters for oracle. <strong>What is important to note here, is to install the oracle-instantclient for the architecture of your machine.</strong>. I have tested this on Debian Lenny (i386) and CentOS5 (x64)</p>
<p>1. Download from <a href="http://www.oracle.com/technology/software/tech/oci/instantclient/">http://www.oracle.com/technology/software/tech/oci/instantclient/</a></p>
<p>a. oracle-instantclient-basic-10.2.0.4-1.i386<br />
b. oracle-instantclient-devel-10.2.0.4-1.i386<br />
c. oracle-instantclient-sqlplus-10.2.0.4-1.i386</p>
<p>2. Unzip everything to /opt/oracle/instantclient . You should have something like the ff:</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>csapp1 instantclient<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ls -la</span>
total <span style="color: #000000;">102704</span>
drwxr-xr-x <span style="color: #000000;">3</span> root root     <span style="color: #000000;">4096</span> Dec <span style="color: #000000;">10</span> <span style="color: #000000;">21</span>:<span style="color: #000000;">54</span> .
drwxr-xr-x <span style="color: #000000;">3</span> root root     <span style="color: #000000;">4096</span> Dec <span style="color: #000000;">10</span> <span style="color: #000000;">22</span>:03 ..
<span style="color: #660033;">-rw-r--r--</span> <span style="color: #000000;">1</span> root root      <span style="color: #000000;">228</span> Dec <span style="color: #000000;">10</span> <span style="color: #000000;">21</span>:<span style="color: #000000;">52</span> BASIC_README
<span style="color: #660033;">-r--r--r--</span> <span style="color: #000000;">1</span> root root  <span style="color: #000000;">1609607</span> Dec <span style="color: #000000;">10</span> <span style="color: #000000;">21</span>:<span style="color: #000000;">52</span> classes12.jar
<span style="color: #660033;">-rwxr-xr-x</span> <span style="color: #000000;">1</span> root root    <span style="color: #000000;">67542</span> Dec <span style="color: #000000;">10</span> <span style="color: #000000;">21</span>:<span style="color: #000000;">52</span> genezi
<span style="color: #660033;">-r--r--r--</span> <span style="color: #000000;">1</span> root root     <span style="color: #000000;">1525</span> Dec <span style="color: #000000;">10</span> <span style="color: #000000;">21</span>:<span style="color: #000000;">52</span> glogin.sql
lrwxrwxrwx <span style="color: #000000;">1</span> root root       <span style="color: #000000;">17</span> Dec <span style="color: #000000;">10</span> <span style="color: #000000;">21</span>:<span style="color: #000000;">54</span> libclntsh.so -<span style="color: #000000; font-weight: bold;">&gt;</span> libclntsh.so.10.1
<span style="color: #660033;">-rwxr-xr-x</span> <span style="color: #000000;">1</span> root root <span style="color: #000000;">21038613</span> Dec <span style="color: #000000;">10</span> <span style="color: #000000;">21</span>:<span style="color: #000000;">52</span> libclntsh.so.10.1
<span style="color: #660033;">-r-xr-xr-x</span> <span style="color: #000000;">1</span> root root  <span style="color: #000000;">3796601</span> Dec <span style="color: #000000;">10</span> <span style="color: #000000;">21</span>:<span style="color: #000000;">52</span> libnnz10.so
<span style="color: #660033;">-rwxr-xr-x</span> <span style="color: #000000;">1</span> root root  <span style="color: #000000;">1664116</span> Dec <span style="color: #000000;">10</span> <span style="color: #000000;">21</span>:<span style="color: #000000;">52</span> libocci.so.10.1
<span style="color: #660033;">-rwxr-xr-x</span> <span style="color: #000000;">1</span> root root <span style="color: #000000;">72674185</span> Dec <span style="color: #000000;">10</span> <span style="color: #000000;">21</span>:<span style="color: #000000;">52</span> libociei.so
<span style="color: #660033;">-r-xr-xr-x</span> <span style="color: #000000;">1</span> root root   <span style="color: #000000;">138033</span> Dec <span style="color: #000000;">10</span> <span style="color: #000000;">21</span>:<span style="color: #000000;">52</span> libocijdbc10.so
<span style="color: #660033;">-r-xr-xr-x</span> <span style="color: #000000;">1</span> root root  <span style="color: #000000;">1435561</span> Dec <span style="color: #000000;">10</span> <span style="color: #000000;">21</span>:<span style="color: #000000;">52</span> libsqlplusic.so
<span style="color: #660033;">-r-xr-xr-x</span> <span style="color: #000000;">1</span> root root   <span style="color: #000000;">997409</span> Dec <span style="color: #000000;">10</span> <span style="color: #000000;">21</span>:<span style="color: #000000;">52</span> libsqlplus.so
<span style="color: #660033;">-r--r--r--</span> <span style="color: #000000;">1</span> root root  <span style="color: #000000;">1555682</span> Dec <span style="color: #000000;">10</span> <span style="color: #000000;">21</span>:<span style="color: #000000;">52</span> ojdbc14.jar
drwxr-xr-x <span style="color: #000000;">4</span> root root     <span style="color: #000000;">4096</span> Dec <span style="color: #000000;">10</span> <span style="color: #000000;">21</span>:<span style="color: #000000;">52</span> sdk
<span style="color: #660033;">-r-xr-xr-x</span> <span style="color: #000000;">1</span> root root     <span style="color: #000000;">7773</span> Dec <span style="color: #000000;">10</span> <span style="color: #000000;">21</span>:<span style="color: #000000;">52</span> sqlplus
<span style="color: #660033;">-rw-r--r--</span> <span style="color: #000000;">1</span> root root      <span style="color: #000000;">232</span> Dec <span style="color: #000000;">10</span> <span style="color: #000000;">21</span>:<span style="color: #000000;">52</span> SQLPLUS_README
<span style="color: #660033;">-rw-r--r--</span> <span style="color: #000000;">1</span> root root      <span style="color: #000000;">516</span> Dec <span style="color: #000000;">10</span> <span style="color: #000000;">21</span>:<span style="color: #000000;">53</span> tnsnames.ora
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>csapp1 instantclient<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;">#</span></pre></div></div>

<p>3. Make a symbolic link for libclntsh.so.10.1 as shown above.</p>
<p>4. Create the Oracle Environment variables</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <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>instantclient
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">TNS_ADMIN</span>=<span style="color: #007800;">$ORACLE_HOME</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">LD_LIBRARY_PATH</span>=<span style="color: #007800;">$ORACLE_HOME</span>:<span style="color: #007800;">$LD_LIBRARY_PATH</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">DYLD_LIBRARY_PATH</span>=<span style="color: #007800;">$ORACLE_HOME</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PATH</span>=<span style="color: #007800;">$PATH</span>:<span style="color: #007800;">$ORACLE_HOME</span></pre></div></div>

<p>5. At this point, you should have oracle-instantclient properly installed. You can test by running <strong>sqlplus</strong>.</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>csapp1 instantclient<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># sqlplus</span>
&nbsp;
SQL<span style="color: #000000; font-weight: bold;">*</span>Plus: Release 10.2.0.4.0 - Production on Thu Dec <span style="color: #000000;">11</span> <span style="color: #000000;">11</span>:<span style="color: #000000;">47</span>:<span style="color: #000000;">40</span> <span style="color: #000000;">2008</span>
&nbsp;
Copyright <span style="color: #7a0874; font-weight: bold;">&#40;</span>c<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000;">1982</span>, <span style="color: #000000;">2007</span>, Oracle.  All Rights Reserved.</pre></div></div>

<p>NOTE: Sometimes you will get a SEGMENTATION FAULT. If so, try to open a new shell with the environment variables loaded and do an <strong>sqlplus</strong> in a directory which is not <em>/opt/oracle/instantclient</em>.</p>
<p>6. Install the oracle adapter for rails</p>
<p>7. gem install ruby-oci8</p>
<p>8. gem install oracle_enhanced-adapter &#8211;source=&#8221;http://gems.rubyonrails.org/&#8221;</p>
<p>activerecord-oracle-adapter (1.0.0.9250)<br />
activerecord-oracle_enhanced-adapter (1.1.8)</p>
<p>NOTE: Try to look for the latest gems, the source above is at the time of this writing so it might change.</p>
<p>9. Test using <strong>irb</strong></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>csapp1 instantclient<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># irb</span>
irb<span style="color: #7a0874; font-weight: bold;">&#40;</span>main<span style="color: #7a0874; font-weight: bold;">&#41;</span>:001:<span style="color: #000000;">0</span><span style="color: #000000; font-weight: bold;">&gt;</span> require <span style="color: #ff0000;">'rubygems'</span>
=<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">true</span>
irb<span style="color: #7a0874; font-weight: bold;">&#40;</span>main<span style="color: #7a0874; font-weight: bold;">&#41;</span>:002:<span style="color: #000000;">0</span><span style="color: #000000; font-weight: bold;">&gt;</span> require <span style="color: #ff0000;">'oci8'</span>
=<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">true</span>
irb<span style="color: #7a0874; font-weight: bold;">&#40;</span>main<span style="color: #7a0874; font-weight: bold;">&#41;</span>:003:<span style="color: #000000;">0</span><span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>/wordpress/2008/12/rubyonrails-oracle-on-linux-i386-x64/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>Installing Mapserver on Debian (reprise)</title>
		<link>/wordpress/2008/03/installing-mapserver-on-debian-reprise/</link>
		<comments>/wordpress/2008/03/installing-mapserver-on-debian-reprise/#comments</comments>
		<pubDate>Fri, 28 Mar 2008 11:31:43 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mapserver]]></category>

		<guid isPermaLink="false">http://www.gisnotes.com/wordpress/index.php/2008/03/28/installing-mapserver-on-debian-reprise/</guid>
		<description><![CDATA[As noted from my previous blog post regarding Mapserver on Debian, you don&#8217;t get AGG with Mapserver when installing directly from Debian packages. Thus, it would be better to install Mapserver by source. However, debian still helps because it would install all the necessary libraries needed for compiling mapserver. ./configure \ --with-agg \ --with-jpeg \ [...]]]></description>
			<content:encoded><![CDATA[<p>As noted from my <a href="/wordpress/index.php/2007/08/01/debian-howto-installing-mapserver/">previous blog post regarding Mapserver on Debian</a>, you don&#8217;t get AGG with Mapserver when installing directly from Debian packages. Thus, it would be better to <a href="http://mapserver.gis.umn.edu/download/current">install Mapserver by source.</a> However, debian still helps because it would install all the necessary libraries needed for compiling mapserver.<span id="more-165"></span></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;">--with-agg</span> \
<span style="color: #660033;">--with-jpeg</span> \
<span style="color: #660033;">--with-gd</span> \
<span style="color: #660033;">--with-freetype</span> \
<span style="color: #660033;">--with-png</span> \
<span style="color: #660033;">--with-ogr</span> \
<span style="color: #660033;">--with-proj</span> \
<span style="color: #660033;">--with-gdal</span> \
<span style="color: #660033;">--with-httpd</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>apache2 \
<span style="color: #660033;">--with-tiff</span> \
<span style="color: #660033;">--with-wfs</span> \
<span style="color: #660033;">--with-wcs</span> \
<span style="color: #660033;">--with-threads</span> \
<span style="color: #660033;">--with-wmsclient</span> \
<span style="color: #660033;">--with-wfsclient</span> \
<span style="color: #660033;">--with-geos</span> \
<span style="color: #660033;">--with-postgis</span> \
<span style="color: #660033;">--enable-debug</span></pre></div></div>

<p>When I started installing yesterday, I did not know which packages/libraries are installed in my box. I dove off immediately by running my configure.sh above and received an error: <font color="red"><code>Could not find gd.h or libgd.a/libgd.so in /usr/local..</code></font></p>
<p>The best way to figure out if you&#8217;re ready is reading thru the <em>configure</em> output.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">checking <span style="color: #000000; font-weight: bold;">for</span> gcc... <span style="color: #c20cb9; font-weight: bold;">gcc</span>
checking <span style="color: #000000; font-weight: bold;">for</span> C compiler default output <span style="color: #c20cb9; font-weight: bold;">file</span> name... a.out
checking whether the C compiler works... <span style="color: #c20cb9; font-weight: bold;">yes</span>
checking whether we are cross compiling... no
checking <span style="color: #000000; font-weight: bold;">for</span> suffix of executables...
checking <span style="color: #000000; font-weight: bold;">for</span> suffix of object files... o
checking whether we are using the GNU C compiler... <span style="color: #c20cb9; font-weight: bold;">yes</span>
checking whether <span style="color: #c20cb9; font-weight: bold;">gcc</span> accepts -g... <span style="color: #c20cb9; font-weight: bold;">yes</span>
checking <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #c20cb9; font-weight: bold;">gcc</span> option to accept ANSI C... none needed
checking <span style="color: #000000; font-weight: bold;">for</span> g++... <span style="color: #c20cb9; font-weight: bold;">g++</span>
checking whether we are using the GNU C++ compiler... <span style="color: #c20cb9; font-weight: bold;">yes</span>
checking whether <span style="color: #c20cb9; font-weight: bold;">g++</span> accepts -g... <span style="color: #c20cb9; font-weight: bold;">yes</span>
checking <span style="color: #000000; font-weight: bold;">for</span> ranlib... ranlib
checking <span style="color: #000000; font-weight: bold;">for</span> flex... no
checking <span style="color: #000000; font-weight: bold;">for</span> lex... no
checking <span style="color: #000000; font-weight: bold;">for</span> yywrap <span style="color: #000000; font-weight: bold;">in</span> -lfl... no
checking <span style="color: #000000; font-weight: bold;">for</span> yywrap <span style="color: #000000; font-weight: bold;">in</span> -ll... no
checking <span style="color: #000000; font-weight: bold;">for</span> bison... no
checking <span style="color: #000000; font-weight: bold;">for</span> byacc... no
checking <span style="color: #000000; font-weight: bold;">if</span> compiler supports -R... no
checking <span style="color: #000000; font-weight: bold;">if</span> compiler supports -Wl,-rpath,... <span style="color: #c20cb9; font-weight: bold;">yes</span>
checking <span style="color: #000000; font-weight: bold;">for</span> exp <span style="color: #000000; font-weight: bold;">in</span> -lm... <span style="color: #c20cb9; font-weight: bold;">yes</span>
checking <span style="color: #000000; font-weight: bold;">for</span> __gxx_personality_v0 <span style="color: #000000; font-weight: bold;">in</span> -lstdc++... <span style="color: #c20cb9; font-weight: bold;">yes</span>
checking how to run the C preprocessor... <span style="color: #c20cb9; font-weight: bold;">gcc</span> <span style="color: #660033;">-E</span>
checking <span style="color: #000000; font-weight: bold;">for</span> egrep... <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-E</span>
checking <span style="color: #000000; font-weight: bold;">for</span> ANSI C header files... <span style="color: #c20cb9; font-weight: bold;">yes</span>
checking <span style="color: #000000; font-weight: bold;">for</span> strcasecmp... <span style="color: #c20cb9; font-weight: bold;">yes</span>
checking <span style="color: #000000; font-weight: bold;">for</span> strncasecmp... <span style="color: #c20cb9; font-weight: bold;">yes</span>
checking <span style="color: #000000; font-weight: bold;">for</span> strdup... <span style="color: #c20cb9; font-weight: bold;">yes</span>
checking <span style="color: #000000; font-weight: bold;">for</span> strlcat... no
checking <span style="color: #000000; font-weight: bold;">for</span> vsnprintf... <span style="color: #c20cb9; font-weight: bold;">yes</span>
MapServer Version from mapserver.h: <span style="color: #ff0000;">'5.0.2'</span>
configure: checking where FreeType 2.x is installed...
checking <span style="color: #000000; font-weight: bold;">for</span> freetype-config... <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>freetype-config
        using libfreetype from <span style="color: #660033;">-lfreetype</span> <span style="color: #660033;">-lz</span>
checking <span style="color: #000000; font-weight: bold;">for</span> FT_Init_FreeType <span style="color: #000000; font-weight: bold;">in</span> -lfreetype... <span style="color: #c20cb9; font-weight: bold;">yes</span>
        using libfreetype <span style="color: #660033;">-lfreetype</span> from system libs.
configure: checking where Zlib is installed...
checking <span style="color: #000000; font-weight: bold;">for</span> zlibVersion <span style="color: #000000; font-weight: bold;">in</span> -lz... <span style="color: #c20cb9; font-weight: bold;">yes</span>
        using libz from system libs <span style="color: #7a0874; font-weight: bold;">&#40;</span>-DUSE_ZLIB<span style="color: #7a0874; font-weight: bold;">&#41;</span>.
configure: checking where PNG is installed...
checking <span style="color: #000000; font-weight: bold;">for</span> png_init_io <span style="color: #000000; font-weight: bold;">in</span> -lpng... <span style="color: #c20cb9; font-weight: bold;">yes</span>
        using libpng from system libs.
configure: checking whether we should include JPEG support...
checking <span style="color: #000000; font-weight: bold;">for</span> jpeg_read_header <span style="color: #000000; font-weight: bold;">in</span> -ljpeg... <span style="color: #c20cb9; font-weight: bold;">yes</span>
        using libjpeg from system libs.
configure: checking where libXpm is installed...
checking <span style="color: #000000; font-weight: bold;">for</span> XpmFreeXpmImage <span style="color: #000000; font-weight: bold;">in</span> -lXpm... <span style="color: #c20cb9; font-weight: bold;">yes</span>
        using libXpm from system libs.
configure: checking where libiconv is installed...
checking <span style="color: #000000; font-weight: bold;">for</span> iconv_open <span style="color: #000000; font-weight: bold;">in</span> -lc... <span style="color: #c20cb9; font-weight: bold;">yes</span>
checking <span style="color: #000000; font-weight: bold;">for</span> libiconv_open <span style="color: #000000; font-weight: bold;">in</span> -liconv... no
        using libiconv from system libs.
        libiconv found. Enabling internationalization <span style="color: #7a0874; font-weight: bold;">&#40;</span>-DUSE_ICONV<span style="color: #7a0874; font-weight: bold;">&#41;</span>
configure: checking <span style="color: #000000; font-weight: bold;">for</span> GD 2.0.16 or higher...
checking <span style="color: #000000; font-weight: bold;">for</span> gdFontCacheSetup <span style="color: #000000; font-weight: bold;">in</span> -lgd... <span style="color: #c20cb9; font-weight: bold;">yes</span>
        using libgd 2.0.16 <span style="color: #7a0874; font-weight: bold;">&#40;</span>or higher<span style="color: #7a0874; font-weight: bold;">&#41;</span> from system libs <span style="color: #7a0874; font-weight: bold;">&#40;</span>-L<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib <span style="color: #660033;">-lgd</span> <span style="color: #660033;">-ljpeg</span> <span style="color: #660033;">-lfreetype</span> <span style="color: #660033;">-lpng</span> <span style="color: #660033;">-lz</span> <span style="color: #660033;">-lXpm</span> <span style="color: #660033;">-lX11</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>.
checking <span style="color: #000000; font-weight: bold;">for</span> gdImageCreate <span style="color: #000000; font-weight: bold;">in</span> -lgd... <span style="color: #c20cb9; font-weight: bold;">yes</span>
checking <span style="color: #000000; font-weight: bold;">for</span> gdImageGif <span style="color: #000000; font-weight: bold;">in</span> -lgd... <span style="color: #c20cb9; font-weight: bold;">yes</span>
checking <span style="color: #000000; font-weight: bold;">for</span> gdImagePng <span style="color: #000000; font-weight: bold;">in</span> -lgd... <span style="color: #c20cb9; font-weight: bold;">yes</span>
checking <span style="color: #000000; font-weight: bold;">for</span> gdImageJpeg <span style="color: #000000; font-weight: bold;">in</span> -lgd... <span style="color: #c20cb9; font-weight: bold;">yes</span>
checking <span style="color: #000000; font-weight: bold;">for</span> gdImageWBMP <span style="color: #000000; font-weight: bold;">in</span> -lgd... <span style="color: #c20cb9; font-weight: bold;">yes</span>
checking <span style="color: #000000; font-weight: bold;">for</span> gdImageStringFT <span style="color: #000000; font-weight: bold;">in</span> -lgd... <span style="color: #c20cb9; font-weight: bold;">yes</span>
checking <span style="color: #000000; font-weight: bold;">for</span> gdImageOpenPolygon <span style="color: #000000; font-weight: bold;">in</span> -lgd... <span style="color: #c20cb9; font-weight: bold;">yes</span>
checking <span style="color: #000000; font-weight: bold;">for</span> gdImageGifPtr <span style="color: #000000; font-weight: bold;">in</span> -lgd... <span style="color: #c20cb9; font-weight: bold;">yes</span>
checking <span style="color: #000000; font-weight: bold;">for</span> gdFontGetTiny <span style="color: #000000; font-weight: bold;">in</span> -lgd... <span style="color: #c20cb9; font-weight: bold;">yes</span>
        using GD <span style="color: #7a0874; font-weight: bold;">&#40;</span> -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS<span style="color: #7a0874; font-weight: bold;">&#41;</span> from system libs.
configure: checking whether we should include PDF support...
checking <span style="color: #000000; font-weight: bold;">for</span> PDF_setlinewidth <span style="color: #000000; font-weight: bold;">in</span> -lpdf... no
checking <span style="color: #000000; font-weight: bold;">for</span> PDF_setrgbcolor <span style="color: #000000; font-weight: bold;">in</span> -lpdf... no
checking <span style="color: #000000; font-weight: bold;">for</span> PDF_moveto <span style="color: #000000; font-weight: bold;">in</span> -lpdf... no
checking <span style="color: #000000; font-weight: bold;">for</span> PDF_curveto <span style="color: #000000; font-weight: bold;">in</span> -lpdf... no
checking <span style="color: #000000; font-weight: bold;">for</span> PDF_show_xy <span style="color: #000000; font-weight: bold;">in</span> -lpdf... no
checking <span style="color: #000000; font-weight: bold;">for</span> PDF_load_font <span style="color: #000000; font-weight: bold;">in</span> -lpdf... no
        libpdf not found or too old... PDF support not included.
checking <span style="color: #000000; font-weight: bold;">if</span> AGG support requested... looking <span style="color: #000000; font-weight: bold;">for</span> agg libs <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>usr
using libagg from <span style="color: #000000; font-weight: bold;">/</span>usr
using libaggfontfreetype from <span style="color: #000000; font-weight: bold;">/</span>usr
configure: checking whether we should include EPPL7 support...
        including EPPL7 support.
configure: checking whether we should include PROJ.4 support...
checking <span style="color: #000000; font-weight: bold;">for</span> pj_init <span style="color: #000000; font-weight: bold;">in</span> -lproj... <span style="color: #c20cb9; font-weight: bold;">yes</span>
checking <span style="color: #000000; font-weight: bold;">for</span> pj_transform <span style="color: #000000; font-weight: bold;">in</span> -lproj... <span style="color: #c20cb9; font-weight: bold;">yes</span>
        using PROJ.4 from system libs.
configure: checking whether we should include thread safe support...
checking <span style="color: #000000; font-weight: bold;">for</span> pthread_create <span style="color: #000000; font-weight: bold;">in</span> -lpthread... <span style="color: #c20cb9; font-weight: bold;">yes</span>
        using <span style="color: #660033;">-lpthread</span> from system libs.
configure: checking whether we should include ESRI SDE support...
        ESRI SDE support not requested.
checking <span style="color: #000000; font-weight: bold;">if</span> GEOS support requested... <span style="color: #c20cb9; font-weight: bold;">yes</span>
checking <span style="color: #000000; font-weight: bold;">for</span> geos-config... <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>geos-config
checking <span style="color: #000000; font-weight: bold;">for</span> GEOS version <span style="color: #000000; font-weight: bold;">&amp;</span>gt;= 2.2.2... yes. Found version 2.2.3
configure: checking whether we should include OGR support...
checking <span style="color: #000000; font-weight: bold;">for</span> gdal-config... <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>gdal-config
        OGR enabled <span style="color: #7a0874; font-weight: bold;">&#40;</span>-DUSE_OGR<span style="color: #7a0874; font-weight: bold;">&#41;</span>.
checking <span style="color: #000000; font-weight: bold;">if</span> GDAL support requested... <span style="color: #c20cb9; font-weight: bold;">yes</span>
checking checking ms JPEG output... no we, have GDAL available.
configure: checking whether we should include TIFF support...
checking <span style="color: #000000; font-weight: bold;">for</span> TIFFOpen <span style="color: #000000; font-weight: bold;">in</span> -ltiff... <span style="color: #c20cb9; font-weight: bold;">yes</span>
        using libtiff from system libs.
checking <span style="color: #000000; font-weight: bold;">if</span> PostGIS support requested... <span style="color: #c20cb9; font-weight: bold;">yes</span>
checking <span style="color: #000000; font-weight: bold;">for</span> pg_config... <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>pg_config
<span style="color: #c20cb9; font-weight: bold;">yes</span>, user supplied pg_config
checking <span style="color: #000000; font-weight: bold;">if</span> MyGIS support requested... no
checking <span style="color: #000000; font-weight: bold;">if</span> OracleSpatial support requested... no
checking <span style="color: #000000; font-weight: bold;">if</span> MING<span style="color: #000000; font-weight: bold;">/</span>Flash support requested... no
configure: checking whether we should include WMS Server support...
        OGC WMS compatibility enabled <span style="color: #7a0874; font-weight: bold;">&#40;</span>-DUSE_WMS_SVR<span style="color: #7a0874; font-weight: bold;">&#41;</span>.
configure: checking whether we should include WFS Server support...
        OGC WFS Server support enabled <span style="color: #7a0874; font-weight: bold;">&#40;</span>-DUSE_WFS_SVR<span style="color: #7a0874; font-weight: bold;">&#41;</span>.
configure: checking whether we should include WCS Server support...
        OGC WCS Server support enabled <span style="color: #7a0874; font-weight: bold;">&#40;</span>-DUSE_WCS_SVR<span style="color: #7a0874; font-weight: bold;">&#41;</span>.
configure: checking whether we should include WMS Client Connections support...
configure: checking whether we should include WFS Client Connections support...
configure: checking whether we should include OGC SOS Server support...
configure: checking <span style="color: #000000; font-weight: bold;">for</span> curl-config...
checking <span style="color: #000000; font-weight: bold;">for</span> curl-config... <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>curl-config
        found libcurl version 7.18.0
        OGC WMS Client Connections enabled <span style="color: #7a0874; font-weight: bold;">&#40;</span>-DUSE_WMS_LYR<span style="color: #7a0874; font-weight: bold;">&#41;</span>.
        OGC WFS Client Connections enabled <span style="color: #7a0874; font-weight: bold;">&#40;</span>-DUSE_WFS_LYR<span style="color: #7a0874; font-weight: bold;">&#41;</span>.
configure: checking <span style="color: #000000; font-weight: bold;">for</span> xml2-config...
configure: checking whether FastCGI support should be enabled...
        FastCGI support not enabled.
configure: checking HTTPD server <span style="color: #7a0874; font-weight: bold;">&#40;</span>Apache<span style="color: #7a0874; font-weight: bold;">&#41;</span> version...
        using user-supplied httpd <span style="color: #7a0874; font-weight: bold;">&#40;</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>apache2<span style="color: #7a0874; font-weight: bold;">&#41;</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>apache2 version is Apache<span style="color: #000000; font-weight: bold;">/</span>2.2.8 <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2002008</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>.
        Your system is apparently running Apache<span style="color: #000000; font-weight: bold;">/</span>2.2.8.  Setting stderr to non-blocking <span style="color: #000000; font-weight: bold;">for</span> msDebug<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> due to Apache 2.x bug <span style="color: #7a0874; font-weight: bold;">&#40;</span>see MapServer bug <span style="color: #000000;">458</span> or Apache bug <span style="color: #000000;">22030</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>.
Compiling with fast MS_NINT
checking compiler warnings... basic
configure: checking whether we should <span style="color: #7a0874; font-weight: bold;">enable</span> debug features...
        Enabling debug features: <span style="color: #660033;">-g</span> <span style="color: #000000; font-weight: bold;">in</span> CFLAGS.
configure: checking <span style="color: #000000; font-weight: bold;">for</span> PHP<span style="color: #000000; font-weight: bold;">/</span>MapScript module options...
        PHP<span style="color: #000000; font-weight: bold;">/</span>MapScript module not configured.
checking <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #c20cb9; font-weight: bold;">g++</span> <span style="color: #660033;">-shared</span> ... <span style="color: #c20cb9; font-weight: bold;">yes</span>
checking <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #660033;">--enable-runpath</span> requested... no
checking <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #660033;">--with-java-include-os-name</span> specified... no, autodetected linux
configure: creating .<span style="color: #000000; font-weight: bold;">/</span>config.status
config.status: creating Makefile
config.status: creating mapscript<span style="color: #000000; font-weight: bold;">/</span>java<span style="color: #000000; font-weight: bold;">/</span>Makefile
config.status: creating mapscript<span style="color: #000000; font-weight: bold;">/</span>csharp<span style="color: #000000; font-weight: bold;">/</span>Makefile
&nbsp;
MapServer is now configured <span style="color: #000000; font-weight: bold;">for</span>
&nbsp;
 <span style="color: #660033;">--------------</span> Compiler Info <span style="color: #660033;">-------------</span>
  C compiler:                <span style="color: #c20cb9; font-weight: bold;">gcc</span> <span style="color: #660033;">-g</span> <span style="color: #660033;">-O2</span> <span style="color: #660033;">-fPIC</span> <span style="color: #660033;">-Wall</span>
  C++ compiler:              <span style="color: #c20cb9; font-weight: bold;">g++</span> <span style="color: #660033;">-g</span> <span style="color: #660033;">-O2</span> <span style="color: #660033;">-fPIC</span> <span style="color: #660033;">-Wall</span>
  Debug:                     <span style="color: #660033;">-g</span>  -DNEED_NONBLOCKING_STDERR
  Generic NINT:
  Threading support:         -DUSE_THREAD
&nbsp;
 <span style="color: #660033;">--------------</span> Renderer Settings <span style="color: #660033;">---------</span>
  zlib support:              -DUSE_ZLIB
  png support:
  jpeg support:
  iconv support:             -DUSE_ICONV
  AGG support:               -DUSE_AGG
  AGG Freetype support:      <span style="color: #660033;">-laggfontfreetype</span>
  Ming<span style="color: #7a0874; font-weight: bold;">&#40;</span>flash<span style="color: #7a0874; font-weight: bold;">&#41;</span> support:
  PDFLib support:
&nbsp;
 <span style="color: #660033;">--------------</span> Data Format Drivers <span style="color: #660033;">-------</span>
  native tiff support:       -DUSE_TIFF
  PostGIS support:           -DUSE_POSTGIS
  Proj.4 support:            -DUSE_PROJ
  EPPL7 support:             -DUSE_EPPL
  ArcSDE support:
  OGR support:               -DUSE_OGR
  GDAL support:              -DUSE_GDAL
  GEOS support:              -DUSE_GEOS
  Oracle Spatial support:
  FastCGI support:
&nbsp;
 <span style="color: #660033;">--------------</span> OGC Services <span style="color: #660033;">--------------</span>
  WMS Server:                -DUSE_WMS_SVR
  WMS Client:                -DUSE_WMS_LYR
  WFS Server:                -DUSE_WFS_SVR
  WFS Client:                -DUSE_WMS_LYR
  WCS Server:                -DUSE_WCS_SVR
  SOS Server:
&nbsp;
 <span style="color: #660033;">--------------</span> MapScript <span style="color: #660033;">-----------------</span>
  PHP MapScript:             no</pre></div></div>

<p>I was able to weed out the problem above by checking on the libraries noted with &#8220;yes&#8221; above if they are installed or not. To overcome this, I needed to install the ff debian packages on &#8216;lenny(testing)&#8217;:</p>
<p><code>libagg-dev libgd2-xpm libgd2-xpm-dev libtiff4 libtiff4-dev libpng libpng-dev libxpm4 libxpm4-dev libfreetype6-dev libapache2-mod-python python-imaging </code></p>
<p>Results:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">debsexy:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>cgi-bin<span style="color: #666666; font-style: italic;"># ./mapserv -v</span>
MapServer version 5.0.2 <span style="color: #007800;">OUTPUT</span>=GIF <span style="color: #007800;">OUTPUT</span>=PNG <span style="color: #007800;">OUTPUT</span>=JPEG <span style="color: #007800;">OUTPUT</span>=WBMP <span style="color: #007800;">OUTPUT</span>=SVG <span style="color: #007800;">SUPPORTS</span>=PROJ <span style="color: #007800;">SUPPORTS</span>=AGG <span style="color: #007800;">SUPPORTS</span>=FREETYPE <span style="color: #007800;">SUPPORTS</span>=WMS_SERVER <span style="color: #007800;">SUPPORTS</span>=WMS_CLIENT <span style="color: #007800;">SUPPORTS</span>=WFS_SERVER <span style="color: #007800;">SUPPORTS</span>=WFS_CLIENT <span style="color: #007800;">SUPPORTS</span>=WCS_SERVER <span style="color: #007800;">SUPPORTS</span>=THREADS <span style="color: #007800;">SUPPORTS</span>=GEOS <span style="color: #007800;">INPUT</span>=TIFF <span style="color: #007800;">INPUT</span>=EPPL7 <span style="color: #007800;">INPUT</span>=POSTGIS <span style="color: #007800;">INPUT</span>=OGR <span style="color: #007800;">INPUT</span>=GDAL <span style="color: #007800;">INPUT</span>=SHAPEFILE</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>/wordpress/2008/03/installing-mapserver-on-debian-reprise/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Firefox on Linux (Debian)</title>
		<link>/wordpress/2008/03/installing-firefox-on-linux-debian/</link>
		<comments>/wordpress/2008/03/installing-firefox-on-linux-debian/#comments</comments>
		<pubDate>Wed, 05 Mar 2008 00:17:10 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">/wordpress/index.php/2008/03/05/installing-firefox-on-linux-debian/</guid>
		<description><![CDATA[I read somewhere that Firefox was renamed to Iceweasel on Debian. Thus, I can&#8217;t install the Google Toolbar for it. So here are the steps for installing Firefox manually in a linux system. 1. Download the source from Mozilla&#8217;s site 2. Unpack the source. tar -zxvf firefox-2.0.0.12.tar.gz 3. Create a shell script pointing to the [...]]]></description>
			<content:encoded><![CDATA[<p>I read somewhere that Firefox was renamed to Iceweasel on Debian. Thus, I can&#8217;t install the Google Toolbar for it. So here are the steps for installing Firefox manually in a linux system.<span id="more-153"></span></p>
<p>1. Download the source from <a href="http://www.mozilla.com/en-US/firefox/all.html">Mozilla&#8217;s site</a></p>
<p>2. Unpack the source. tar -zxvf firefox-2.0.0.12.tar.gz</p>
<p>3. Create a shell script pointing to the binary of the source.</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: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>rupert<span style="color: #000000; font-weight: bold;">/</span>firefox
.<span style="color: #000000; font-weight: bold;">/</span>firefox <span style="color: #000000; font-weight: bold;">&amp;</span>amp;</pre></div></div>

<p>4. Grant execute rights to the script.</p>
<p>5. Right click on the top-panel and click &#8220;Add To Panel&#8221;</p>
<p>6. Choose &#8220;Custom Application Launcher&#8221; and specify the ff:</p>

<div class="wp_syntax"><div class="code"><pre class="conf" style="font-family:monospace;">Name: &quot;Firefox&quot;
Command: /home/rupert/firefox.sh
Comment: Mozilla Firefox Browser.</pre></div></div>

<p>7. Click on the Left Button to specify an icon to the launcher.</p>
<p>8. Click on Browse and navigate to /home/rupert/firefox/icons</p>
<p>9. Let&#8217;s install <a href="http://www.google.com/tools/firefox/toolbar/FT3/intl/en/">Google Toolbar.</a></p>
<p>10. Restart Firefox.</p>
<p>If you want to install the Adobe Flash Plugin, then download the player (<a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&amp;P2_Platform=Linux">install_flash_player_9_linux.tar.gz</a>) from Adobe.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># tar -zxvf install_flash_player_9_linux.tar.gz</span>
<span style="color: #666666; font-style: italic;"># cd /home/rupert/install_flash_player_9_linux.tar.gz</span>
<span style="color: #666666; font-style: italic;"># ./flashplayer-installer</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>/wordpress/2008/03/installing-firefox-on-linux-debian/feed/</wfw:commentRss>
		<slash:comments>1</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>Serving ASP pages  in Linux</title>
		<link>/wordpress/2007/11/serving-asp-pages-in-linux/</link>
		<comments>/wordpress/2007/11/serving-asp-pages-in-linux/#comments</comments>
		<pubDate>Tue, 13 Nov 2007 19:55:19 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">/wordpress/?p=120</guid>
		<description><![CDATA[I never intended to do such a thing as what the title describes. However, since we need it at work temporarily, I have to crack up my linux skills to set this up. Principal reference is http://www.apache-asp.org/config.html. In Debian, 1. install libapache2-mod-perl2 + libapache-asp-perl sudo apt-get install libapache2-mod-perl2 sudo apt-get install libapache-asp-perl 2. configuration includes: [...]]]></description>
			<content:encoded><![CDATA[<p>I never intended to do such a thing as what the <em>title</em> describes. However, since we need it at work temporarily, I have to crack up my linux skills to set this up.  Principal reference is <a href="http://www.apache-asp.org/config.html">http://www.apache-asp.org/config.html</a>.</p>
<p>In Debian,</p>
<p>1. install libapache2-mod-perl2 + libapache-asp-perl</p>
<p><code><br />
sudo apt-get install libapache2-mod-perl2<br />
sudo apt-get install libapache-asp-perl<br />
</code></p>
<p>2. configuration includes:<br />
sudo vi /etc/apache2/sites-available/default</p>

<div class="wp_syntax"><div class="code"><pre class="conf" style="font-family:monospace;"> 76     PerlModule  Apache::ASP
 77      &lt;files&gt;
 78        SetHandler  perl-script
 79        PerlHandler Apache::ASP
 80        PerlSetVar  Global .
 81        PerlSetVar  StateDir /data/asp
 82      &lt;/files&gt;</pre></div></div>

<p>3. Restart apache.</p>
<p>4. Make sure you have the correct permissions to: /data/asp<br />
<code><br />
drwxrwxr-x  4 www-data www-data  4096 2007-11-13 15:33 asp<br />
</code></p>
<p>5. If you encounter the problems:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>Tue Nov <span style="color: #000000;">13</span> <span style="color: #000000;">15</span>:<span style="color: #000000;">12</span>:<span style="color: #000000;">36</span> <span style="color: #000000;">2007</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>error<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>client 127.0.0.1<span style="color: #7a0874; font-weight: bold;">&#93;</span> Can<span style="color: #ff0000;">'t locate object method &quot;get&quot; via package &quot;APR::Table&quot; at /usr/share/perl5/Apache/ASP.pm line       2016.\n at /usr/share/perl5/Apache/ASP.pm line 2016\n\tApache::ASP::get_dir_config('</span>APR::<span style="color: #007800;">Table</span>=HASH<span style="color: #7a0874; font-weight: bold;">&#40;</span>0x81d96f8<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #ff0000;">', '</span>Global<span style="color: #ff0000;">') called at /usr/share/perl5/A      pache/ASP.pm line 275\n\tApache::ASP::new('</span>Apache::ASP<span style="color: #ff0000;">', '</span>Apache2::<span style="color: #007800;">RequestRec</span>=SCALAR<span style="color: #7a0874; font-weight: bold;">&#40;</span>0x81d9764<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #ff0000;">', '</span><span style="color: #000000; font-weight: bold;">/</span>data<span style="color: #000000; font-weight: bold;">/</span>wwwroot<span style="color: #000000; font-weight: bold;">/</span>asp<span style="color: #000000; font-weight: bold;">/</span>test.asp<span style="color: #ff0000;">') called at /usr/share/pe      rl5/Apache/ASP.pm line 183\n\tApache::ASP::handler('</span>Apache2::<span style="color: #007800;">RequestRec</span>=SCALAR<span style="color: #7a0874; font-weight: bold;">&#40;</span>0x81d9764<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #ff0000;">') called at -e line 0\n\teval {...} called at -e line 0\n, re      ferer: http://127.0.0.1/asp/</span></pre></div></div>

<p>Read <a href="http://www.nabble.com/forum/ViewPost.jtp?post=4833633&amp;framed=y">nable-post</a>. which patches /usr/share/perl5/Apache/ASP.pm as follows:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;">The lines <span style="color: #cc66cc;">65</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">71</span><span style="color: #339933;">:</span>
   <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$ENV</span><span style="color: #009900;">&#123;</span>MOD_PERL<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   <span style="color: #0000ff;">$ModPerl2</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$mod_perl</span><span style="color: #339933;">::</span><span style="color: #006600;">VERSION</span> <span style="color: #0000ff;">&amp;gt</span><span style="color: #339933;">;=</span> <span style="color: #cc66cc;">1.99</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$ModPerl2</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
       <span style="color: #000066;">eval</span> <span style="color: #ff0000;">&quot;use Apache::ASP::ApacheCommon ();&quot;</span><span style="color: #339933;">;</span>
       <span style="color: #000066;">die</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$@</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">if</span> <span style="color: #0000ff;">$@</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
   <span style="color: #009900;">&#125;</span>
&nbsp;
become
   <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$ENV</span><span style="color: #009900;">&#123;</span>MOD_PERL<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   <span style="color: #0000ff;">$ModPerl2</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$mod_perl</span><span style="color: #339933;">::</span><span style="color: #006600;">VERSION</span> <span style="color: #0000ff;">&amp;gt</span><span style="color: #339933;">;=</span> <span style="color: #cc66cc;">1.99</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$ver</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$mod_perl</span><span style="color: #339933;">::</span><span style="color: #006600;">VERSION</span><span style="color: #339933;">;</span>
   <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$ver</span> <span style="color: #b1b100;">eq</span> <span style="color: #ff0000;">&quot;&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #0000ff;">$ver</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$ENV</span><span style="color: #009900;">&#123;</span>MOD_PERL_API_VERSION<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
   <span style="color: #0000ff;">$ModPerl2</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$ver</span> <span style="color: #0000ff;">&amp;gt</span><span style="color: #339933;">;=</span> <span style="color: #cc66cc;">1.99</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$ModPerl2</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
       <span style="color: #000066;">eval</span> <span style="color: #ff0000;">&quot;use Apache::ASP::ApacheCommon ();&quot;</span><span style="color: #339933;">;</span>
       <span style="color: #000066;">die</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$@</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">if</span> <span style="color: #0000ff;">$@</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
   <span style="color: #009900;">&#125;</span></pre></div></div>

<p>6. If Step 5 still doesn&#8217;t work.</p>
<p>a.  And this to /etc/apache2/conf.d/perl.conf:</p>
<p><code>PerlRequire /etc/apache2/startup.pl</code></p>
<p>b. startup.pl<br />
<code><br />
#!/usr/bin/perl<br />
use Apache2::compat;<br />
1;<br />
</code></p>
<p>7. To test. Paste the ff in test.asp under your webroot.</p>

<div class="wp_syntax"><div class="code"><pre class="asp" style="font-family:monospace;">  <span style="color: #006600; font-weight: bold;">&lt;!</span>-- sample here --<span style="color: #006600; font-weight: bold;">&gt;</span>
&nbsp;
  <span style="color: #990099; font-weight: bold;">For</span> <span style="color: #990099; font-weight: bold;">loop</span> incrementing font size<span style="color: #006600; font-weight: bold;">:</span>
&nbsp;
  <span style="color: #006600; font-weight: bold;">&amp;</span>lt<span style="color: #006600; font-weight: bold;">;%</span> <span style="color: #990099; font-weight: bold;">for</span><span style="color: #006600; font-weight:bold;">&#40;</span>1..5<span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #006600; font-weight:bold;">&#123;</span> <span style="color: #006600; font-weight: bold;">%&amp;</span>gt<span style="color: #006600; font-weight: bold;">;</span>
	<span style="color: #006600; font-weight: bold;">&lt;!</span>-- iterated html text --<span style="color: #006600; font-weight: bold;">&gt;</span>
	<span style="color: #006600; font-weight: bold;">&lt;</span>font size<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;&amp;lt;%=$_%&amp;gt;&quot;</span><span style="color: #006600; font-weight: bold;">&gt;</span> Size <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #006600; font-weight: bold;">&amp;</span>lt<span style="color: #006600; font-weight: bold;">;%=</span>$_<span style="color: #006600; font-weight: bold;">%&amp;</span>gt<span style="color: #006600; font-weight: bold;">;</span> <span style="color: #006600; font-weight: bold;">&lt;/</span>font<span style="color: #006600; font-weight: bold;">&gt;</span> 
  <span style="color: #006600; font-weight: bold;">&amp;</span>lt<span style="color: #006600; font-weight: bold;">;%</span> <span style="color: #006600; font-weight:bold;">&#125;</span> <span style="color: #006600; font-weight: bold;">%&amp;</span>gt<span style="color: #006600; font-weight: bold;">;</span>
&nbsp;
  <span style="color: #006600; font-weight: bold;">&lt;!</span>-- <span style="color: #990099; font-weight: bold;">end</span> sample here --<span style="color: #006600; font-weight: bold;">&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/11/serving-asp-pages-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Too many authentication failures for user</title>
		<link>/wordpress/2007/11/too-many-authentication-failures-for-user/</link>
		<comments>/wordpress/2007/11/too-many-authentication-failures-for-user/#comments</comments>
		<pubDate>Sat, 10 Nov 2007 23:29:00 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">/wordpress/?p=119</guid>
		<description><![CDATA[Found this finally.. http://netthink.com/archives/191. On a quick note, edit ssh_config not sshd_config. You could also try debugging ssh while connecting, through &#8220;-v&#8221; switch. For example: ssh -v rupert@192.168.1.12]]></description>
			<content:encoded><![CDATA[<p>Found this finally.. <a href="http://netthink.com/archives/191">http://netthink.com/archives/191</a>. On a quick note, edit <em>ssh_config</em> not <em>sshd_config</em>.</p>
<p>You could also try debugging ssh while connecting, through &#8220;-v&#8221; switch. For example:</p>
<p><code><br />
ssh -v rupert@192.168.1.12<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/11/too-many-authentication-failures-for-user/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NTPD Sync</title>
		<link>/wordpress/2007/08/ntpd-sync/</link>
		<comments>/wordpress/2007/08/ntpd-sync/#comments</comments>
		<pubDate>Mon, 06 Aug 2007 18:29:57 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">/wordpress/?p=91</guid>
		<description><![CDATA[For desktops, I do have ntpd installed to sync the time&#8230; 1. apt-get install ntpdate 2. /etc/init.d/ntpd stop 3. ntpdate clock.fmt.he.net Note: You need to stop ntpd before doing an ntpdate..]]></description>
			<content:encoded><![CDATA[<p>For desktops, I do have ntpd installed to sync the time&#8230;</p>
<p>1. apt-get install ntpdate</p>
<p>2. /etc/init.d/ntpd stop</p>
<p>3. ntpdate clock.fmt.he.net</p>
<p>Note: You need to stop ntpd before doing an ntpdate..</p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/08/ntpd-sync/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Understanding Iptables</title>
		<link>/wordpress/2007/07/understanding-iptables/</link>
		<comments>/wordpress/2007/07/understanding-iptables/#comments</comments>
		<pubDate>Tue, 31 Jul 2007 10:13:08 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">/wordpress/?p=83</guid>
		<description><![CDATA[My first hack with debian was smooth except for the firewall issues. RHEL/Fedora/CentOS stores its firewall policies in /etc/sysconfig/iptables, in Debian, you have to write down the chains and run it. Writing the chain rules is basically the same for both distros since it is iptables, however it is not pretty obvious for a newbie. [...]]]></description>
			<content:encoded><![CDATA[<p>My first hack with debian was smooth except for the firewall issues. RHEL/Fedora/CentOS stores its firewall policies in <em>/etc/sysconfig/iptables</em>, in Debian, you have to write down the chains and run it. Writing the chain rules is basically the same for both distros since it is <strong>iptables</strong>, however it is not pretty obvious for a newbie. So my problem was, I cannot ping a domainname but can ping an IP address instantly. I misinterpreted the root cause of the problem as a dns problem, so I disabled ipv6.. still a no go.  Later I found out it was one of the rules in my iptables policies.</p>
<p>So here is the iptables firewall shell script that resolved the issue&#8230;</p>
<p>1. vi firewall.sh</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">iptables <span style="color: #660033;">-F</span>
iptables <span style="color: #660033;">-N</span> FIREWALL
iptables <span style="color: #660033;">-F</span> FIREWALL
iptables <span style="color: #660033;">-A</span> INPUT <span style="color: #660033;">-j</span> FIREWALL
iptables <span style="color: #660033;">-A</span> FORWARD <span style="color: #660033;">-j</span> FIREWALL
iptables <span style="color: #660033;">-A</span> FIREWALL <span style="color: #660033;">-i</span> lo <span style="color: #660033;">-j</span> ACCEPT
&nbsp;
iptables <span style="color: #660033;">-A</span> FIREWALL <span style="color: #660033;">-p</span> icmp <span style="color: #660033;">--icmp-type</span> any <span style="color: #660033;">-j</span> ACCEPT
&nbsp;
<span style="color: #666666; font-style: italic;">#iptables -A FIREWALL -p 50 -j ACCEPT</span>
<span style="color: #666666; font-style: italic;">#iptables -A FIREWALL -p 51 -j ACCEPT</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#iptables -A FIREWALL -p udp --dport 5353 -d 224.0.0.251 -j ACCEPT</span>
<span style="color: #666666; font-style: italic;">#iptables -A FIREWALL -p udp -m udp --dport 631 -j ACCEPT</span>
&nbsp;
iptables <span style="color: #660033;">-A</span> FIREWALL <span style="color: #660033;">-m</span> state <span style="color: #660033;">--state</span> ESTABLISHED,RELATED <span style="color: #660033;">-j</span> ACCEPT
&nbsp;
iptables <span style="color: #660033;">-A</span> FIREWALL <span style="color: #660033;">-p</span> tcp <span style="color: #660033;">-m</span> tcp <span style="color: #660033;">--dport</span> <span style="color: #000000;">22</span> <span style="color: #660033;">--syn</span> <span style="color: #660033;">-j</span> ACCEPT
iptables <span style="color: #660033;">-A</span> FIREWALL <span style="color: #660033;">-p</span> tcp <span style="color: #660033;">-m</span> tcp <span style="color: #660033;">--sport</span> <span style="color: #000000;">80</span> <span style="color: #660033;">-j</span> ACCEPT
iptables <span style="color: #660033;">-A</span> FIREWALL <span style="color: #660033;">-p</span> tcp <span style="color: #660033;">-m</span> tcp <span style="color: #660033;">--sport</span> <span style="color: #000000;">3306</span> <span style="color: #660033;">-j</span> ACCEPT
iptables <span style="color: #660033;">-A</span> FIREWALL <span style="color: #660033;">-p</span> tcp <span style="color: #660033;">-m</span> tcp <span style="color: #660033;">--sport</span> <span style="color: #000000;">5432</span> <span style="color: #660033;">-j</span> ACCEPT
iptables <span style="color: #660033;">-A</span> FIREWALL <span style="color: #660033;">-p</span> tcp <span style="color: #660033;">-m</span> tcp <span style="color: #660033;">--syn</span> <span style="color: #660033;">-j</span> REJECT
iptables <span style="color: #660033;">-A</span> FIREWALL <span style="color: #660033;">-p</span> udp <span style="color: #660033;">-m</span> udp <span style="color: #660033;">-j</span> REJECT
iptables-save <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>firewall-rules
iptables-restore <span style="color: #000000; font-weight: bold;">&lt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>firewall-rules</pre></div></div>

<p>2. Run <code>sh -v firewall_setup.sh</code></p>
<p>Here&#8217;s a brief explanation of the iptables flag taken from <em>man</em>.</p>
<blockquote><p>
-F, &#8211;flush [chain]<br />
	Flush the selected chain (all the chains in the table if none is given).  This is equivalent to deleting all the rules one by one.</p>
<p>-N, &#8211;new-chain chain<br />
              Create a new user-defined chain by the given name.  There must be no target of that name already.</p>
<p>-A, &#8211;append chain rule-specification<br />
              Append one or more rules to the end of the selected chain.  When the source and/or destination names resolve to more than one address, a rule will be added for each possible address combination.</p>
<p>       -j, &#8211;jump target<br />
              This specifies the target of the rule; i.e., what to do if the packet matches it.  The target can be a user-defined chain (other than the one this rule is in), one of the special builtin targets which decide the fate of the packet immediately, or an extension (see EXTENSIONS below).
</p></blockquote>
<p>So I checked out my CentOS4 box and found out that I four (4) lines which I don&#8217;t understand. See commented lines above. Here&#8217;s an explanation of them..</p>
<blockquote><p>
Port 50 is Remote Mail Checking Protocol<br />
Killing this may stop you checking if you have new mail on your provider&#8217;s POP server. Haven&#8217;t confirmed this&#8230;</p>
<p>Port 51 is IMP Logical Address Maintenance.  Dunno what this is for..</p>
<p>Port 5353<br />
This port is used for the Apple Bonjour network discovery protocol, as you can read here: http://www.apple.com/support/downloads/bonjourforwindows_readme.html</p>
<p>Port 631 IPP (Internet Printing Protocol). Enable this if you want to print from Linux.
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/07/understanding-iptables/feed/</wfw:commentRss>
		<slash:comments>1</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 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>Cron Revisited</title>
		<link>/wordpress/2007/04/cron-revisited/</link>
		<comments>/wordpress/2007/04/cron-revisited/#comments</comments>
		<pubDate>Sun, 22 Apr 2007 15:58:50 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[cron]]></category>

		<guid isPermaLink="false">/wordpress/?p=50</guid>
		<description><![CDATA[Its been a long time i havent done schedule cronjobs in cron. Here&#8217;s a refresher.. A crontab file has five fields for specifying day , date and time followed by the command to be run at that interval. * * * * * command to be executed - - - - - &#124; &#124; &#124; [...]]]></description>
			<content:encoded><![CDATA[<p>Its been a long time i havent done schedule cronjobs in cron. Here&#8217;s a refresher..</p>
<p>A crontab file has five fields for specifying day , date and time  followed by the command to be run at that interval.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">*</span>     <span style="color: #000000; font-weight: bold;">*</span>   <span style="color: #000000; font-weight: bold;">*</span>   <span style="color: #000000; font-weight: bold;">*</span>    <span style="color: #000000; font-weight: bold;">*</span>  <span style="color: #7a0874; font-weight: bold;">command</span> to be executed
-     -    -    -    -
<span style="color: #000000; font-weight: bold;">|</span>     <span style="color: #000000; font-weight: bold;">|</span>     <span style="color: #000000; font-weight: bold;">|</span>     <span style="color: #000000; font-weight: bold;">|</span>     <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span>     <span style="color: #000000; font-weight: bold;">|</span>     <span style="color: #000000; font-weight: bold;">|</span>     <span style="color: #000000; font-weight: bold;">|</span>     +----- day of week <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0</span> - <span style="color: #000000;">6</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">Sunday</span>=<span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000; font-weight: bold;">|</span>     <span style="color: #000000; font-weight: bold;">|</span>     <span style="color: #000000; font-weight: bold;">|</span>     +------- month <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span> - <span style="color: #000000;">12</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000; font-weight: bold;">|</span>     <span style="color: #000000; font-weight: bold;">|</span>     +--------- day of month <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span> - <span style="color: #000000;">31</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000; font-weight: bold;">|</span>     +----------- hour <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0</span> - <span style="color: #000000;">23</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
+------------- min <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0</span> - <span style="color: #000000;">59</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>cron invokes the command from the user&#8217;s HOME directory with the shell, (/usr/bin/sh).</p>
<p>cron supplies a default environment for every shell, defining:<br />
HOME=user&#8217;s-home-directory<br />
LOGNAME=user&#8217;s-login-id<br />
PATH=/usr/bin:/usr/sbin:.<br />
SHELL=/usr/bin/sh</p>
<p>Here is a cron scirpt which svn commits the database every 1am&#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>root<span style="color: #000000; font-weight: bold;">@</span>dbserver1 ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># crontab -l</span>
<span style="color: #666666; font-style: italic;">#Cron check</span>
<span style="color: #666666; font-style: italic;">#* * * * *  /bin/date &amp;gt;&amp;gt; /root/date.log</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#Every 1AM svn commit the database</span>
<span style="color: #000000;">0</span> <span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">sh</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>dbbackup.sh <span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>dbbackup.log
&nbsp;
<span style="color: #666666; font-style: italic;">#Every 6AM Update the date and time from ntpd</span>
<span style="color: #000000;">0</span> <span style="color: #000000;">6</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</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>ntpdate 0.asia.pool.ntp.org <span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>dateupdate.log
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>dbserver1 ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># more /root/dbbackup.sh</span>
<span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">date</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>dbbackup.log
<span style="color: #007800;">dbfolder</span>=<span style="color: #000000; font-weight: bold;">/</span>data<span style="color: #000000; font-weight: bold;">/</span>mysqldata<span style="color: #000000; font-weight: bold;">/</span>cybersoftbj
<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><span style="color: #c20cb9; font-weight: bold;">svn</span> add <span style="color: #007800;">$dbfolder</span><span style="color: #000000; font-weight: bold;">/*</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>dbbackup.log
<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><span style="color: #c20cb9; font-weight: bold;">svn</span> commit <span style="color: #660033;">--non-interactive</span> <span style="color: #660033;">--username</span> <span style="color: #000000; font-weight: bold;">*****</span> <span style="color: #660033;">--password</span> <span style="color: #000000; font-weight: bold;">*****</span> <span style="color: #660033;">-m</span> <span style="color: #ff0000;">&quot;committed by autosvn cron script&quot;</span> <span style="color: #007800;">$dbfolder</span><span style="color: #000000; font-weight: bold;">/*</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>dbbackup.log
<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-Rf</span> mysql:mysql <span style="color: #007800;">$dbfolder</span>
<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #660033;">-Rf</span> <span style="color: #000000;">755</span> <span style="color: #007800;">$dbfolder</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/04/cron-revisited/feed/</wfw:commentRss>
		<slash:comments>0</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>Setting python_path on Unix</title>
		<link>/wordpress/2007/03/setting-python_path-on-unix/</link>
		<comments>/wordpress/2007/03/setting-python_path-on-unix/#comments</comments>
		<pubDate>Thu, 29 Mar 2007 13:17:54 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[mapserver]]></category>
		<category><![CDATA[tilecache]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">/wordpress/?p=43</guid>
		<description><![CDATA[At the time of this writing.. download mod_python-3.3.1.tgz ./configure &#8211;with-apxs=/usr/local/apache2/bin/apxs make make install You need to pass the PYTHONPATH to apache.. AddHandler python-program .py PythonHandler TileCache.Service PythonOption TileCacheConfig /usr/local/apache2/htdocs/tilecache/tilecache.cfg PythonDebug On PythonPath &#8220;sys.path + ['/usr/local/apache2/htdocs/tilecache/']&#8221; In your bash shells, you could also check the PYTHONPATH&#8230; &#91;root@rupert-linux views&#93;# python Python 2.3.4 &#40;#1, Mar 10 2006, 06:12:09) [...]]]></description>
			<content:encoded><![CDATA[<p>At the time of this writing.. download mod_python-3.3.1.tgz</p>
<p>./configure &#8211;with-apxs=/usr/local/apache2/bin/apxs<br />
make<br />
make install</p>
<p>You need to pass the PYTHONPATH to apache..<br />
<directory><br />
AddHandler python-program .py<br />
PythonHandler TileCache.Service<br />
PythonOption TileCacheConfig /usr/local/apache2/htdocs/tilecache/tilecache.cfg<br />
PythonDebug On<br />
PythonPath &#8220;sys.path + ['/usr/local/apache2/htdocs/tilecache/']&#8221;<br />
</directory></p>
<p>In your bash shells, you could also check the PYTHONPATH&#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>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux views<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># python</span>
Python 2.3.4 <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #666666; font-style: italic;">#1, Mar 10 2006, 06:12:09)</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>GCC 3.4.5 <span style="color: #000000;">20051201</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>Red Hat 3.4.5-<span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> on linux2
Type <span style="color: #ff0000;">&quot;help&quot;</span>, <span style="color: #ff0000;">&quot;copyright&quot;</span>, <span style="color: #ff0000;">&quot;credits&quot;</span> or <span style="color: #ff0000;">&quot;license&quot;</span> <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #c20cb9; font-weight: bold;">more</span> information.
<span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; import sys
<span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; print sys.path
<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #ff0000;">''</span>, <span style="color: #ff0000;">'/usr/lib/python23.zip'</span>, <span style="color: #ff0000;">'/usr/lib/python2.3'</span>, <span style="color: #ff0000;">'/usr/lib/python2.3/plat-linux2'</span>, <span style="color: #ff0000;">'/usr/lib/python2.3/lib-tk'</span>, <span style="color: #ff0000;">'/usr/lib/python2.3/lib-dynload'</span>, <span style="color: #ff0000;">'/usr/lib/python2.3/site-packages'</span>, <span style="color: #ff0000;">'/usr/lib/python2.3/site-packages/gtk-2.0'</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/03/setting-python_path-on-unix/feed/</wfw:commentRss>
		<slash:comments>0</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>MBRFix – Removing Linux from Dual Boot</title>
		<link>/wordpress/2007/03/mbrfix-removing-linux-from-dual-boot/</link>
		<comments>/wordpress/2007/03/mbrfix-removing-linux-from-dual-boot/#comments</comments>
		<pubDate>Sat, 03 Mar 2007 08:40:44 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">/wordpress/?p=40</guid>
		<description><![CDATA[You have a dual boot notebook with Linux + XP, no floppy and just lazy using the Windows XP CD to do a fixmbr. Use the &#8216;mbrfix&#8217; from http://www.ambience.sk/fdisk-master-boot-record-windows-linux-lilo-fixmbr.php. Run this utility to wipe out GRUB or LILO from the mbr and restore the Windows Boot loader into MBR. Sweet.]]></description>
			<content:encoded><![CDATA[<p>You have a dual boot notebook with Linux + XP, no floppy and just lazy using the Windows XP CD to do a fixmbr. Use the &#8216;mbrfix&#8217; from <a href="http://www.ambience.sk/fdisk-master-boot-record-windows-linux-lilo-fixmbr.php">http://www.ambience.sk/fdisk-master-boot-record-windows-linux-lilo-fixmbr.php</a>. Run this utility to wipe out GRUB or LILO from the mbr and restore the Windows Boot loader into MBR. Sweet.</p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/03/mbrfix-removing-linux-from-dual-boot/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>
		<item>
		<title>Verbose Installation of ColdFusion and Apache in Linux</title>
		<link>/wordpress/2007/01/verbose-installation-of-coldfusion-and-apache/</link>
		<comments>/wordpress/2007/01/verbose-installation-of-coldfusion-and-apache/#comments</comments>
		<pubDate>Thu, 18 Jan 2007 03:10:51 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[cf]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">/wordpress/?p=23</guid>
		<description><![CDATA[You would find all the installers here: http://192.168.1.10/installers/ 1. Edit hosts file as follows: [root@appserver php]# more /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost 192.168.1.10 appserver 2. Edit your host as follows: [root@appserver php]# more /etc/sysconfig/network NETWORKING=yes HOSTNAME=appserver GATEWAY=192.168.1.1 3. Apache: [...]]]></description>
			<content:encoded><![CDATA[<p>You would find all the installers here:</p>
<p>http://192.168.1.10/installers/</p>
<p>1. Edit hosts file as follows:</p>
<p>[root@appserver php]# more /etc/hosts</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Do not remove the following line, or various programs</span>
<span style="color: #666666; font-style: italic;"># that require network functionality will fail.</span>
127.0.0.1               localhost.localdomain localhost
192.168.1.10            appserver</pre></div></div>

<p>2. Edit your host as follows:<br />
[root@appserver php]# more /etc/sysconfig/network</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">NETWORKING</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span>
<span style="color: #007800;">HOSTNAME</span>=appserver
<span style="color: #007800;">GATEWAY</span>=192.168.1.1</pre></div></div>

<p>3. Apache:</p>
<p>http://192.168.1.10/installers/httpd-2.0.58.tar.gz</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># tar -zxvf httpd-2.0.58.tar.gz</span>
<span style="color: #666666; font-style: italic;"># cd httpd-2.0.58</span>
<span style="color: #666666; font-style: italic;"># ./configure --help</span>
<span style="color: #666666; font-style: italic;"># ./configure --prefix=/usr/local/apache2 --enable-so --with-mpm=prefork --enable-rewrite</span>
<span style="color: #666666; font-style: italic;"># make</span>
<span style="color: #666666; font-style: italic;"># make install</span></pre></div></div>

<p>3.1 Starting apache2 on boot</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#cd /usr/local/apache2/bin</span>
<span style="color: #666666; font-style: italic;">#cp -Rf apachectl /etc/init.d/httpd</span></pre></div></div>

<p>3.2 Edit httpd as follows</p>
<p>#cd /etc/init.d<br />
#vi httpd</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;"># chkconfig: 35 80 15</span>
<span style="color: #666666; font-style: italic;"># processname: httpd</span>
<span style="color: #666666; font-style: italic;"># description: httpd</span>
<span style="color: #666666; font-style: italic;"># Copyright 2000-2005 The Apache Software Foundation or its licensors, as</span>
<span style="color: #666666; font-style: italic;"># applicable.</span></pre></div></div>

<p>3.3 create runlevels for httpd</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#/sbin/chkconfig --add httpd</span>
<span style="color: #666666; font-style: italic;">#/sbin/chkconfig --level 345 httpd on</span>
<span style="color: #666666; font-style: italic;">#/etc/init.d/httpd start</span></pre></div></div>

<p>4. ColdFusion<br />
4.1 Download http://192.168.1.10/installers/coldfusion-61-lin.bin<br />
# chmod +x coldfusion-61-lin.bin</p>
<p>4.2 Run installer<br />
# ./coldfusion-61-lin.bin</p>
<p>4.3 ColdFusion install:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Launching installer...
&nbsp;
Preparing CONSOLE Mode Installation...
&nbsp;
===============================================================================
Choose Locale...
<span style="color: #660033;">----------------</span>
&nbsp;
  -<span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000;">1</span>- English
&nbsp;
CHOOSE LOCALE BY NUMBER: <span style="color: #000000;">1</span>
&nbsp;
DO YOU ACCEPT THE TERMS OF THIS LICENSE AGREEMENT?
    <span style="color: #7a0874; font-weight: bold;">&#40;</span>Y<span style="color: #000000; font-weight: bold;">/</span>N<span style="color: #7a0874; font-weight: bold;">&#41;</span> : Y
&nbsp;
The installer has found the following errors<span style="color: #000000; font-weight: bold;">/</span>warnings:
&nbsp;
Warning: C++ compatibility pack
&nbsp;
The installer was unable to determine <span style="color: #000000; font-weight: bold;">if</span> the C++ compatibility pack is
installed by running the following <span style="color: #7a0874; font-weight: bold;">command</span>: rpm <span style="color: #660033;">--query</span> compat-libstdc++
If this machine uses a version of glibc that is 2.2.5.x or higher the
compatibility pack is necessary <span style="color: #000000; font-weight: bold;">for</span> C++ custom tags, Verity, and web server
connectors to work properly.
&nbsp;
For <span style="color: #c20cb9; font-weight: bold;">more</span> information see the installation manual at
http:<span style="color: #000000; font-weight: bold;">//</span>www.macromedia.com<span style="color: #000000; font-weight: bold;">/</span>go<span style="color: #000000; font-weight: bold;">/</span>livedocs_cfmx61docs
&nbsp;
PRESS  TO CONTINUE WITH THE INSTALLER:
&nbsp;
===============================================================================
Existing Macromedia ColdFusion MX Installation?
<span style="color: #660033;">-----------------------------------------------</span>
&nbsp;
You cannot <span style="color: #c20cb9; font-weight: bold;">install</span> a new installation of Macromedia ColdFusion MX <span style="color: #000000;">6.1</span> <span style="color: #000000; font-weight: bold;">if</span> you
have an existing version of Macromedia ColdFusion MX installed on this
computer.
&nbsp;
If you <span style="color: #000000; font-weight: bold;">do</span> have a previous version installed, the installer can update your
current current installation to Macromedia ColdFusion MX 6.1.
&nbsp;
Is there already a version of Macromedia ColdFusion MX installed on this
   computer? <span style="color: #7a0874; font-weight: bold;">&#40;</span>Y<span style="color: #000000; font-weight: bold;">/</span>N<span style="color: #7a0874; font-weight: bold;">&#41;</span>: N
===============================================================================
Install Type
<span style="color: #660033;">------------</span>
&nbsp;
Choose the <span style="color: #7a0874; font-weight: bold;">type</span> of Macromedia ColdFusion MX installation you want to perform:
&nbsp;
  -<span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000;">1</span>- Install new version of ColdFusion MX
    <span style="color: #000000;">2</span>- <span style="color: #000000;">30</span>-day trial <span style="color: #7a0874; font-weight: bold;">&#40;</span>Enterprise Edition<span style="color: #7a0874; font-weight: bold;">&#41;</span>
    <span style="color: #000000;">3</span>- Developer Edition <span style="color: #7a0874; font-weight: bold;">&#40;</span>Single-IP Only<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
Installation Choice: <span style="color: #000000;">1</span>
&nbsp;
Serial Number: CED600-<span style="color: #000000;">18040</span>-<span style="color: #000000;">87264</span>-<span style="color: #000000;">92597</span>
&nbsp;
===============================================================================
Install Configuration
<span style="color: #660033;">---------------------</span>
&nbsp;
What kind of installation <span style="color: #000000; font-weight: bold;">do</span> you want?
&nbsp;
  -<span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000;">1</span>- Server configuration
    <span style="color: #000000;">2</span>- J2EE configuration <span style="color: #7a0874; font-weight: bold;">&#40;</span>ColdFusion MX with JRun <span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
    <span style="color: #000000;">3</span>- J2EE configuration <span style="color: #7a0874; font-weight: bold;">&#40;</span>EAR <span style="color: #c20cb9; font-weight: bold;">file</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
    <span style="color: #000000;">4</span>- J2EE configuration <span style="color: #7a0874; font-weight: bold;">&#40;</span>WAR <span style="color: #c20cb9; font-weight: bold;">file</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
Please choose one of the following options: <span style="color: #000000;">1</span>
&nbsp;
===============================================================================
Choose Install Folder
<span style="color: #660033;">---------------------</span>
&nbsp;
Select the directory <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #c20cb9; font-weight: bold;">which</span> to <span style="color: #c20cb9; font-weight: bold;">install</span> Macromedia ColdFusion MX.
&nbsp;
Directory:
&nbsp;
  Default Install Folder: <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>coldfusionmx
&nbsp;
ENTER AN ABSOLUTE PATH, OR PRESS  TO ACCEPT THE DEFAULT
: <span style="color: #7a0874; font-weight: bold;">&#91;</span>just press enter<span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
===============================================================================
Existing ColdFusion <span style="color: #000000;">4.5</span> or <span style="color: #000000;">5</span> Installation?
<span style="color: #660033;">------------------------------------------</span>
&nbsp;
The installer can migrate your settings from ColdFusion <span style="color: #000000;">4.5</span> or <span style="color: #000000;">5</span> <span style="color: #000000; font-weight: bold;">if</span> you have
an
installation on this computer.
&nbsp;
Is there a version of ColdFusion <span style="color: #000000;">4.5</span> or <span style="color: #000000;">5</span> installed on this computer? <span style="color: #7a0874; font-weight: bold;">&#40;</span>Y<span style="color: #000000; font-weight: bold;">/</span>N<span style="color: #7a0874; font-weight: bold;">&#41;</span> N
&nbsp;
===============================================================================
Configure Web Servers
<span style="color: #660033;">---------------------</span>
&nbsp;
Please configure your webserver<span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span>.  If you <span style="color: #000000; font-weight: bold;">do</span> not configure a webserver the
built-in webserver will be used on port 8500.
&nbsp;
    <span style="color: #000000;">1</span>- Add Web Server Configuration
  -<span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000;">2</span>- Continue with installation
&nbsp;
Choice: <span style="color: #000000;">2</span>
&nbsp;
===============================================================================
Runtime User
<span style="color: #660033;">------------</span>
&nbsp;
Enter the name of the runtime user.   This user must exist already on the
system.
&nbsp;
User Name: <span style="color: #7a0874; font-weight: bold;">&#40;</span>DEFAULT: nobody<span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #7a0874; font-weight: bold;">&#91;</span>enter<span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
===============================================================================
Init System
<span style="color: #660033;">-----------</span>
&nbsp;
Would you like ColdFusion MX to start at System Boot? Please note, this is
only supported on Solaris and Red Hat Linux. If you answer no to this, you can add
ColdFusion MX to system boot post <span style="color: #c20cb9; font-weight: bold;">install</span> by running
<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>coldfusionmx<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>cfmx-init.sh
&nbsp;
Answer <span style="color: #7a0874; font-weight: bold;">&#40;</span>Y<span style="color: #000000; font-weight: bold;">/</span>N<span style="color: #7a0874; font-weight: bold;">&#41;</span>: Y
&nbsp;
===============================================================================
Administrator Password
<span style="color: #660033;">----------------------</span>
&nbsp;
Enter the password you will use to control access to the ColdFusion MX
Administrator.
&nbsp;
This field is required.
&nbsp;
Password:
Confirm Password:
&nbsp;
===============================================================================
Installation Confirmation
<span style="color: #660033;">-------------------------</span>
&nbsp;
Installation Type:
  Server configuration
&nbsp;
Licensing:
  Fully Licensed Edition
  Serial Number: CED600-<span style="color: #000000;">18040</span>-<span style="color: #000000;">87264</span>-<span style="color: #000000;">92597</span>
&nbsp;
Install Directories:
  Product: <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>coldfusionmx
  Web root: <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>coldfusionmx<span style="color: #000000; font-weight: bold;">/</span>wwwroot
&nbsp;
Server Information:
  Web Server: Built-in Web Server
  Port: <span style="color: #000000;">8500</span>
&nbsp;
Disk Space Information <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">for</span> Installation Target<span style="color: #7a0874; font-weight: bold;">&#41;</span>:
  Required: <span style="color: #000000;">433</span>,<span style="color: #000000;">293</span>,<span style="color: #000000;">879</span> bytes
  Available: <span style="color: #000000;">25</span>,<span style="color: #000000;">831</span>,<span style="color: #000000;">923</span>,<span style="color: #000000;">712</span> bytes
&nbsp;
PRESS  TO CONTINUE:
<span style="color: #7a0874; font-weight: bold;">&#91;</span>enter<span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
PRESS  TO CONTINUE:
&nbsp;
===============================================================================
Installing...
<span style="color: #660033;">-------------</span>
&nbsp;
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>==================<span style="color: #000000; font-weight: bold;">|</span>==================<span style="color: #000000; font-weight: bold;">|</span>==================<span style="color: #000000; font-weight: bold;">|</span>==================<span style="color: #7a0874; font-weight: bold;">&#93;</span>
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>------------------<span style="color: #000000; font-weight: bold;">|</span>------------------<span style="color: #000000; font-weight: bold;">|</span>------------------<span style="color: #000000; font-weight: bold;">|</span>------------------<span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
===============================================================================
Installation Complete
<span style="color: #660033;">---------------------</span>
&nbsp;
You have successfully completed the first step <span style="color: #000000; font-weight: bold;">in</span> installing Macromedia
ColdFusion MX.
&nbsp;
To <span style="color: #7a0874; font-weight: bold;">continue</span> with your installation, go to <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>coldfusionmx<span style="color: #000000; font-weight: bold;">/</span>bin and <span style="color: #7a0874; font-weight: bold;">type</span>
<span style="color: #ff0000;">&quot;./coldfusion start&quot;</span> to start your server.
&nbsp;
Once the server is started log <span style="color: #000000; font-weight: bold;">in</span> to the Configuration Wizard at
http:<span style="color: #000000; font-weight: bold;">//</span><span style="color: #7a0874; font-weight: bold;">&#91;</span>machinename<span style="color: #7a0874; font-weight: bold;">&#93;</span>:<span style="color: #000000;">8500</span><span style="color: #000000; font-weight: bold;">/</span>CFIDE<span style="color: #000000; font-weight: bold;">/</span>administrator<span style="color: #000000; font-weight: bold;">/</span>index.cfm
&nbsp;
PRESS  TO EXIT THE INSTALLER:</pre></div></div>

<p>5. Start coldfusion<br />
# /etc/init.d/coldfusionmx start<br />
Starting ColdFusion MX&#8230;<br />
There may be a few moments before you can access the ColdFusion MX administrator. This is normal.<br />
======================================================================<br />
ColdFusion MX has been started.<br />
ColdFusion MX will write logs to /opt/coldfusionmx/logs/cfserver.log<br />
======================================================================</p>
<p>6. Bind ColdFusion with Apache.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">$JAVA_EXECUTABLE</span> <span style="color: #660033;">-jar</span> <span style="color: #007800;">$CF_DIR</span><span style="color: #000000; font-weight: bold;">/</span>runtime<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>wsconfig.jar \
        <span style="color: #660033;">-ws</span> apache \
        <span style="color: #660033;">-dir</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: #000000; font-weight: bold;">/</span>conf \
        <span style="color: #660033;">-bin</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: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>httpd \
        <span style="color: #660033;">-script</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: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>apachectl \
        <span style="color: #660033;">-coldfusion</span> <span style="color: #660033;">-v</span></pre></div></div>

<p><code><br />
[root@appserver /]#  cd /opt/coldfusionmx/bin/connectors/<br />
[root@appserver connectors]# ls<br />
apache_connector.sh  connectorslist.sh  iplanet_connector.sh  remove_all_connectors.sh  upgrade_all_connectors.sh<br />
[root@appserver connectors]# sh -v apache_connector.sh<br />
</code></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">You can check <span style="color: #000000; font-weight: bold;">if</span> your binding is successfull <span style="color: #000000; font-weight: bold;">if</span> you see the ff
messages:
&nbsp;
Found JRun server default at 127.0.0.1:<span style="color: #000000;">2901</span>
CentOS release <span style="color: #000000;">4.4</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>Final<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Detected Red Hat Linux release <span style="color: #000000;">7</span> or lower
Using Apache binary <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: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>httpd
Server version: Apache<span style="color: #000000; font-weight: bold;">/</span>2.0.58
Apache 2.0.58 is supported
Using Apache control script <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: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>apachectl
Parsing Apache configuration <span style="color: #c20cb9; font-weight: bold;">file</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: #000000; font-weight: bold;">/</span>conf<span style="color: #000000; font-weight: bold;">/</span>httpd.conf
Exec<span style="color: #ff0000;">'ing chmod 777 /opt/coldfusionmx/runtime/lib/wsconfig/1
Set permission to 777 on /opt/coldfusionmx/runtime/lib/wsconfig/1
Exec'</span>ing <span style="color: #c20cb9; font-weight: bold;">chmod</span> +x <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>coldfusionmx<span style="color: #000000; font-weight: bold;">/</span>runtime<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>wsconfig<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span>mod_jrun20.so
Set permission to execute on <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>coldfusionmx<span style="color: #000000; font-weight: bold;">/</span>runtime<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>wsconfig<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span>mod_jrun20.so
Created <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>coldfusionmx<span style="color: #000000; font-weight: bold;">/</span>runtime<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>wsconfig<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span>mod_jrun20.so
Wrote <span style="color: #c20cb9; font-weight: bold;">file</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: #000000; font-weight: bold;">/</span>conf<span style="color: #000000; font-weight: bold;">/</span>httpd.conf
Added JRun configuration to Apache configuration <span style="color: #c20cb9; font-weight: bold;">file</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: #000000; font-weight: bold;">/</span>conf<span style="color: #000000; font-weight: bold;">/</span>httpd.conf
Created <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>coldfusionmx<span style="color: #000000; font-weight: bold;">/</span>runtime<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>wsconfig<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span>README.txt
Wrote <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>coldfusionmx<span style="color: #000000; font-weight: bold;">/</span>runtime<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>wsconfig<span style="color: #000000; font-weight: bold;">/</span>wsconfig.properties
Exec<span style="color: #ff0000;">'ing /usr/local/apache2/bin/apachectl restart
httpd: Could not determine the server'</span>s fully qualified domain name, using 127.0.0.1 <span style="color: #000000; font-weight: bold;">for</span> ServerName
Restarted Apache server
The Apache connector was installed to <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: #000000; font-weight: bold;">/</span>conf</pre></div></div>

<p>7. Your httpd.conf file should contain the ff:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">------------------------httpd.conf------------------------------
<span style="color: #666666; font-style: italic;"># NOTE: DO NOT ATTEMPT TO PUT THIS IN YOUR HTTPD.CONF MANUALLY.</span>
LoadModule jrun_module <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>coldfusionmx<span style="color: #000000; font-weight: bold;">/</span>runtime<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>wsconfig<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span>mod_jrun20.so
&nbsp;
    JRunConfig Verbose <span style="color: #c20cb9; font-weight: bold;">false</span>
    JRunConfig Apialloc <span style="color: #c20cb9; font-weight: bold;">false</span>
    JRunConfig Ssl <span style="color: #c20cb9; font-weight: bold;">false</span>
    JRunConfig Ignoresuffixmap <span style="color: #c20cb9; font-weight: bold;">false</span>
    JRunConfig Serverstore <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>coldfusionmx<span style="color: #000000; font-weight: bold;">/</span>runtime<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>wsconfig<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span>jrunserver.store
    JRunConfig Bootstrap 127.0.0.1:<span style="color: #000000;">51010</span>
    <span style="color: #666666; font-style: italic;">#JRunConfig Errorurl</span>
    AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc</pre></div></div>

<p>8. Copy ColdFusion Administrator to your webroot<br />
# cd /usr/local/apache2/htdocs<br />
# rm -Rf *<br />
# cp -Rf /opt/coldfusionmx/wwwroot/CFIDE .<br />
# ln -s CFIDE cfide</p>
<p>Open your browse and point to: http://192.168.1.15/cfide/administrator/</p>
<p>9. CFADMIN settings:<br />
- Check Disable RDS Services. Press Next<br />
- Install Documents: Yes. Press Next<br />
- OK</p>
<p>10. Copy cfdocs to webroot:<br />
# cp -Rf /opt/coldfusionmx/wwwroot/cfdocs /usr/local/apache2/htdocs/</p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/01/verbose-installation-of-coldfusion-and-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

