<?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/category/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>Subversion</title>
		<link>/wordpress/2009/11/subversion/</link>
		<comments>/wordpress/2009/11/subversion/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 22:22:01 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">/wordpress/?p=634</guid>
		<description><![CDATA[This post will contain a summary of information regarding subversion scattered from old posts. Installation on Debian 1. Packages #apt-get install subversion #apt-get install libapache2-svn 2. Login as root then create the repository. #cd /data #svnadmin create /repos --fs-type fsfs 3. Set the permissions #groupadd subversion #addgroup rupert subversion #addgroup www-data subversion &#160; #chown -Rf [...]]]></description>
			<content:encoded><![CDATA[<p>This post will contain a summary of information regarding subversion scattered from old posts.</p>
<h3>Installation on Debian</h3>
<p>1. Packages</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">#apt-get install subversion
#apt-get install libapache2-svn</pre></div></div>

<p>2. Login as root then create the repository.</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">#cd /data
#svnadmin create /repos --fs-type fsfs</pre></div></div>

<p>3. Set the permissions</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">#groupadd subversion
#addgroup rupert subversion
#addgroup www-data subversion
&nbsp;
#chown -Rf www-data:subversion /data/repos
#chmod -Rf 770 repos</pre></div></div>

<p>It&#8217;s better to set the necessary users and groups that would use subversion now. Later on, if we need to checkout using svn+ssh and setup a passwordless svn, then we won&#8217;t get permission issues.</p>
<p>4. In /etc/apache2/sites-available/2rmobile, add this to the configuration.</p>

<div class="wp_syntax"><div class="code"><pre class="conf" style="font-family:monospace;">        &lt;Location /repos&gt;
        DAV svn
        SVNPath /data/repos
        SVNAutoversioning on
        AuthType Basic
        AuthName &quot;SVN - Your Project&quot;
        AuthUserFile /data/svn-auth-file
        Require valid-user
        &lt;/Location&gt;</pre></div></div>

<p>5. Enable the webdav module then restart apache.</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">#a2enmod dav
#a2enmod dav_svn
#/etc/init.d/apache2 restart</pre></div></div>

<h3>Passwordless SVN</h3>
<p>On your local macbook pro (mbp), we need to generate the ssh keys from the local machine, upload it to the remote machine and append it in the authorized_keys.</p>
<p><em>On the local machine:</em></p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">#ssh-keygen -t rsa
...
#cd /Users/rupert/.ssh
#scp -r id_rsa.pub rupert@2rmobile.com:/home/rupert/.ssh/id_rsa_mbp.pub</pre></div></div>

<p><em>On the remote machine:</em></p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">#cd ~/.ssh
#touch authorized_keys
#cat id_rsa_mbp.pub &gt;&gt; authorized_keys</pre></div></div>

<p>Test on the local machine by doing</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">ssh rupert@2rmobile.com</pre></div></div>

<p>. In my mbp, a dialog box from keychain is asking for the password. To circumvent this, we can add the passphrase to our identities.</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">#ssh-add -K
... enter the passphrase twice...
#ssh-add -k (adds it to the identities)
#ssh-add -l (lists the identities)</pre></div></div>

<p>Now the benefits of having a passwordless svn:<br />
- ofcourse it saves us a lot of time<br />
- rails capistrano deployment</p>
<p>References:<br />
<a href="http://www.howtoforge.com/debian_subversion_websvn">http://www.howtoforge.com/debian_subversion_websvn</a></p>
<h3>Subversion Tips and Tricks</h3>
<p><a href="http://subversion.tigris.org/faq.html#ssh-authorized-keys-trick">http://subversion.tigris.org/faq.html#ssh-authorized-keys-trick</a></p>
<p><strong>1. Checking out using svn+ssh and having passwordless ssh authentication. My personal favorite when working with personal projects since I have full control. </strong></p>
<pre>
svn co svn+ssh://www.2rmobile.com/data/repos/web/rails/halalan2010 halalan2010
</pre>
<p>But for work projects, I normally use webdav</p>
<pre>
svn co "http://www.2rmobile.com/repos/web/halalan2010" halalan2010
</pre>
<p><strong>2. svn+ssh on a custom or different port other than 22. I have my ssh on 2210, so we need to tell svn+ssh to use 2210</strong></p>

<div class="wp_syntax"><div class="code"><pre class="conf" style="font-family:monospace;">vim ~/.subversion/config
 41 [tunnels]
 42 ### Configure svn protocol tunnel schemes here.  By default, only
....
 53 ### built-in ssh scheme were not predefined, it could be defined
 54 ### as:
 55 ssh = $SVN_SSH ssh -p 2210</pre></div></div>

<p><a href="http://www.techper.net/2009/01/11/changing-port-number-of-svnssh-subversion-protocol/">http://www.techper.net/2009/01/11/changing-port-number-of-svnssh-subversion-protocol/</a></p>
<p><strong>3. svn diff</strong> &#8211; shows you the changes in a directory. This is useful for creating patches.</p>
<pre>
svn diff -r HEAD
svn st -q
</pre>
<p><strong>3. svn switch oldURL to newURL </strong>- very useful when I&#8217;m working at home or in the office, since the svn server has a public/private IP.</p>
<p><strong>4. svn log</strong> &#8211; shows you who committed and why (from the messages)</p>
<p><strong>5. ignoring specific set of files in a directory. </strong></p>
<pre>svn propset svn:ignore "*.log" log</pre>
<p><strong>6. ignoring a whole directory.</strong></p>
<pre>svn propset svn:ignore dirname .</pre>
<p><strong>7. ignoring using an ignore file (.ignore.txt) in a directory (sample.xcodeproj).</strong></p>
<pre>
*.pbxuser
*.mode1v3
xcuserdata
</pre>
<pre>svn propset svn:ignore - F .ignore.txt .</pre>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2009/11/subversion/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>Chinese Debian Repository</title>
		<link>/wordpress/2008/11/chinese-debian-repository/</link>
		<comments>/wordpress/2008/11/chinese-debian-repository/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 01:34:33 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[china]]></category>
		<category><![CDATA[debian]]></category>

		<guid isPermaLink="false">/wordpress/?p=282</guid>
		<description><![CDATA[Its been a long time I have not updated debian. Now, debian.cn99.com is not working. However, there is a new mirror in town.. www.anheng.com.cn. http://www.debian.org/mirror/list]]></description>
			<content:encoded><![CDATA[<p>Its been a long time I have not updated debian. Now, debian.cn99.com is not working. However, there is a new mirror in town.. www.anheng.com.cn. </p>
<p><a href="http://www.debian.org/mirror/list">http://www.debian.org/mirror/list</a></p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2008/11/chinese-debian-repository/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Post Install Apache2.x, ColdFusion 8</title>
		<link>/wordpress/2008/05/post-install-apache2x-coldfusion-8/</link>
		<comments>/wordpress/2008/05/post-install-apache2x-coldfusion-8/#comments</comments>
		<pubDate>Wed, 28 May 2008 13:42:37 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[cf]]></category>

		<guid isPermaLink="false">/wordpress/index.php/2008/05/28/post-install-apache2x-coldfusion-8/</guid>
		<description><![CDATA[After binding Apache2.x and ColdFusion 8, I find it very useful to follow the post-install instructions below: 1. Copying ColdFusion Admin directory to /wwwroot (webroot) # ln -s /var/www /wwwroot # cp -Rf /opt/coldfusion8/wwwroot/CFIDE /wwwroot/ # rm /wwwroot/index.html # cd /wwwroot # ln -s CFIDE cfide 2. Adding index.cfm to DirectoryIndex. # vim /etc/apache2/mods-available/dir.conf DirectoryIndex [...]]]></description>
			<content:encoded><![CDATA[<p>After binding Apache2.x and ColdFusion 8, I find it very useful to follow the post-install instructions below:</p>
<p>1. Copying ColdFusion Admin directory to /wwwroot (webroot)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># ln -s /var/www /wwwroot</span>
<span style="color: #666666; font-style: italic;"># cp -Rf /opt/coldfusion8/wwwroot/CFIDE /wwwroot/</span>
<span style="color: #666666; font-style: italic;"># rm /wwwroot/index.html</span>
<span style="color: #666666; font-style: italic;"># cd /wwwroot</span>
<span style="color: #666666; font-style: italic;"># ln -s CFIDE cfide</span></pre></div></div>

<p>2. Adding index.cfm to DirectoryIndex.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># vim /etc/apache2/mods-available/dir.conf</span>
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm index.cfm</pre></div></div>

<p>3. Restart apache</p>

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

<p>4. Browse Admin page for the first time</p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2008/05/post-install-apache2x-coldfusion-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Postgresql, Postgis, pgRouting on Debian</title>
		<link>/wordpress/2008/05/installing-postgresql-postgis-pgrouting-on-debian/</link>
		<comments>/wordpress/2008/05/installing-postgresql-postgis-pgrouting-on-debian/#comments</comments>
		<pubDate>Sun, 25 May 2008 03:55:57 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[postgis]]></category>
		<category><![CDATA[postgres]]></category>
		<category><![CDATA[routing]]></category>
		<category><![CDATA[pgRouting]]></category>

		<guid isPermaLink="false">/wordpress/index.php/2008/05/25/installing-postgresql-postgis-pgrouting-on-debian/</guid>
		<description><![CDATA[Operating System: Debian sid Versions: postgres 8.3.1 postgis 1.3.3 pgRouting1.02 1. Install base system and ssh #vi /etc/apt/sources.list to include deb http://debian.cn99.com/debian etch main deb-src http://debian.cn99.com/debian etch main #apt-get update #apt-get upgrade libc6 2. Install the required packages for postgres8.3 and postgis1.3.3 #apt-get install sudo nmap telnet #apt-get install python2.5 python2.5-dev python-setuptools #apt-get install g++ [...]]]></description>
			<content:encoded><![CDATA[<p>Operating System: Debian sid</p>
<p>Versions:</p>
<ul>
<li>postgres 8.3.1</li>
<li>postgis 1.3.3</li>
<li>pgRouting1.02</li>
</ul>
<p>1. Install base system and ssh</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#vi /etc/apt/sources.list to include</span>
deb http:<span style="color: #000000; font-weight: bold;">//</span>debian.cn99.com<span style="color: #000000; font-weight: bold;">/</span>debian etch main
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>debian.cn99.com<span style="color: #000000; font-weight: bold;">/</span>debian etch main
<span style="color: #666666; font-style: italic;">#apt-get update</span>
<span style="color: #666666; font-style: italic;">#apt-get upgrade libc6</span></pre></div></div>

<p>2. Install the required packages for postgres8.3 and postgis1.3.3</p>
<pre lang="bash" xml:lang="bash">
#apt-get install sudo nmap telnet
#apt-get install python2.5 python2.5-dev python-setuptools
#apt-get install g++
#apt-get install build-essential cmake ibboost-graph-dev
#apt-get install libreadline5 libreadline5-dev
#apt-get install zlib-bin zlib1g-dev
#apt-get install libkrb5-dev
#apt-get install libcurl3
#apt-get install libssl-dev
#apt-get install postgresql-8.3
#apt-get install postgresql-8.3-postgis
#apt-get install postgresql-server-dev-8.3
</pre>
<p>3. Installing pgRouting</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># tar -zxvf pgRouting-1.02.tgz</span>
<span style="color: #666666; font-style: italic;"># cmake .</span>
<span style="color: #666666; font-style: italic;"># make </span>
<span style="color: #666666; font-style: italic;"># make install</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>/wordpress/2008/05/installing-postgresql-postgis-pgrouting-on-debian/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>Debian Command CheatSheet</title>
		<link>/wordpress/2008/03/debian-command-cheatsheet/</link>
		<comments>/wordpress/2008/03/debian-command-cheatsheet/#comments</comments>
		<pubDate>Mon, 03 Mar 2008 20:56:40 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">/wordpress/index.php/2008/03/04/debian-command-cheatsheet/</guid>
		<description><![CDATA[If you need to setup/install Debian. Please follow this post. 1. Removing a service from startup # update-rc.d -f samba remove 2. Installing a service on boot update-rc.d myServiceName start 80 2 3 4 5 . stop 15 0 1 6 3. Specifying Debian Sources #vim /etc/apt/sources.list #SID: deb http://debian.cn99.com/debian unstable main deb-src http://debian.cn99.com/debian unstable [...]]]></description>
			<content:encoded><![CDATA[<p>If you need to setup/install Debian. Please follow this <a href="/wordpress/index.php/2007/07/31/first-debian-howto/">post.</a></p>
<p><strong>1. Removing a service from startup</strong></p>

<div class="wp_syntax"><div class="code"><pre class="conf" style="font-family:monospace;"># update-rc.d -f samba remove</pre></div></div>

<p><strong>2. Installing a service on boot</strong><br />
update-rc.d myServiceName start 80 2 3 4 5 . stop 15 0 1 6</p>
<p><strong>3. Specifying Debian Sources</strong><br />
#vim /etc/apt/sources.list<br />
#SID:<br />
deb http://debian.cn99.com/debian unstable main<br />
deb-src http://debian.cn99.com/debian unstable main</p>
<p>#LENNY:<br />
#deb http://debian.cn99.com/debian testing main<br />
#deb-src http://debian.cn99.com/debian testing main</p>
<p>#ETCH<br />
#deb http://debian.cn99.com/debian etch main<br />
#deb-src http://debian.cn99.com/debian etch main</p>
<p><strong>4. Searching for a package from the repository</strong></p>

<div class="wp_syntax"><div class="code"><pre class="conf" style="font-family:monospace;">apt-cache search [package name]</pre></div></div>

<p><strong>5. Installing a package</strong></p>

<div class="wp_syntax"><div class="code"><pre class="conf" style="font-family:monospace;">apt-get install [package name]</pre></div></div>

<p><strong>6. Purging an installed/configured package</strong></p>

<div class="wp_syntax"><div class="code"><pre class="conf" style="font-family:monospace;">aptitude purge [package name]</pre></div></div>

<p><strong>7. Upgrade a debian distro</strong></p>

<div class="wp_syntax"><div class="code"><pre class="conf" style="font-family:monospace;">apt-get dist-upgrade</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>/wordpress/2008/03/debian-command-cheatsheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Excluding Subversion directories/files when using GREP</title>
		<link>/wordpress/2008/02/excluding-subversion-directoriesfiles-when-using-grep/</link>
		<comments>/wordpress/2008/02/excluding-subversion-directoriesfiles-when-using-grep/#comments</comments>
		<pubDate>Fri, 08 Feb 2008 16:15:36 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">/wordpress/?p=141</guid>
		<description><![CDATA[I&#8217;ve been searching this from big-o-Goog from a long time now (two months?). During development, instead of searching the keyword from Eclipse, I still feel very much in control when I am using the commandline&#8211;using grep. Courtesy of this blog post, a big time and eye strain saver when doing a grep in a directory [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been searching this from big-o-Goog from a long time now (two months?).  During development, instead of searching the keyword from Eclipse, I still feel very much in control when I am using the commandline&#8211;using <em>grep</em>.  Courtesy of this <a href="http://justinsomnia.org/2006/09/how-to-grep-without-hitting-subversions-text-base-files/">blog post, </a>a big time and eye strain saver when doing a grep in a directory full with svn base files and directories is using <a href="http://svn.collab.net/repos/svn/trunk/contrib/client-side/wcgrep">WCGREP</a>.</p>
<p><a href="http://www.gisnotes.com/wordpress/wp-content/uploads/2008/02/wcgrep.gif" title="Wcgrep in Action"><img src="http://www.gisnotes.com/wordpress/wp-content/uploads/2008/02/wcgrep.thumbnail.gif" alt="Wcgrep in Action" /></a></p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2008/02/excluding-subversion-directoriesfiles-when-using-grep/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Subversion on Debian</title>
		<link>/wordpress/2008/01/building-and-migrating-svn-to-another-machine/</link>
		<comments>/wordpress/2008/01/building-and-migrating-svn-to-another-machine/#comments</comments>
		<pubDate>Sat, 26 Jan 2008 17:26:15 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[subversion]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[trac]]></category>

		<guid isPermaLink="false">/wordpress/?p=138</guid>
		<description><![CDATA[I was greeted with &#8220;No space left on device&#8221; on my cron log. Turns out that my svn server obviously ran out of disk space. The old svn server was running on CentOS4.3, Subversion 1.3.2, Trac-0.11.devxxx. I decided to migrate the svn data to a new server, so I installed Debian4.01 on a small server [...]]]></description>
			<content:encoded><![CDATA[<p>I was greeted with &#8220;No space left on device&#8221; on my cron log. Turns out that my svn server obviously ran out of disk space. The old svn server was running on CentOS4.3, Subversion 1.3.2, Trac-0.11.devxxx.  I decided to migrate the svn data to a new server, so I installed Debian4.01 on a small server with 72 GB HD, no partitions (just / and swap, so the svn have room to grow&#8230;). Here are the steps I took for the migration:</p>
<p><strong>A. A fresh start&#8230;</strong><br />
1. Installed Debian. Fixed network and ssh.<br />
2. apt-get install apache2<br />
3. apt-get install subversion<br />
4. apt-get install python python-setuptools python-mysqldb python-subversion<br />
5. apt-get install libapache2-svn libapache2-mod-python</p>
<p><strong>B. Making SVN work&#8230;</strong><br />
1. svnadmin create /repos &#8211;fs-type fsfs</p>
<p>2.  Since I have a fresh apache configuration, I edited it accordingly from /etc/apache2/mods-available/dav_svn.conf:</p>

<div class="wp_syntax"><div class="code"><pre class="conf" style="font-family:monospace;">#SVN dir
&lt;location&gt;
  DAV svn
  SVNPath /repos
  SVNAutoversioning on
  AuthType Basic
  AuthName &quot;SVN - Your Project&quot;
  AuthUserFile /repos/svn-auth-file
  Require valid-user
&lt;/location&gt;</pre></div></div>

<p>3. Restart apache</p>
<p>4. To test if svn is running, import a project inside the repository.<br />
<code>svn import -m "initial import" /tmp/project http://127.0.0.1/repos/project</code></p>
<p><strong>C. Migrating the data</strong></p>
<p>After I got my fresh debian svn machine, I need to move the svn data and trac to the new server. <a href="http://svnbook.red-bean.com/nightly/en/svn.reposadmin.html">http://svnbook.red-bean.com/nightly/en/svn.reposadmin.html</a></p>
<p>1. Transfer <strong>/repos/svn-auth-file</strong> and <strong>/repos/svn-authorization-file</strong> to the new server<br />
2. Transferred <strong>trac.tar.gz</strong> (/var/www/trac) to the new server</p>
<p>To move the svn data from one server to another, I tried the ff choices&#8230;<br />
1. <code>svnadmin dump /repos /reposbak</code>. <em>Will work if disk space is not an issue. My <code>/repos</code> is 25 GB, and my other 30 GB partition was wiped out, even though the dump was not finished yet.</em></p>
<p>2. <code>svnadmin hotcopy --clean-logs /repos /repos2</code>. Accdg to the docs, this is exactly the same repository without the BdB logs. I then transferred the hotcopy from choice 2 above to the new server and works flawlessly to my surprise. So now, I still have all my revisions</p>
<p><a href="http://bealers.com/2008/01/01/installing-trac-on-debian-etch/">http://bealers.com/2008/01/01/installing-trac-on-debian-etch/</a><br />
<a href="http://trac.edgewall.org/wiki/TracOnDebianSarge">http://trac.edgewall.org/wiki/TracOnDebianSarge</a><br />
<a href="http://trac.edgewall.org/wiki/TracUpgrade">http://trac.edgewall.org/wiki/TracUpgrade</a><br />
<a href="http://trac.edgewall.org/wiki/TracInstall">http://trac.edgewall.org/wiki/TracInstall</a><br />
<a href="http://trac.edgewall.org/wiki/TracModPython">http://trac.edgewall.org/wiki/TracModPython</a></p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2008/01/building-and-migrating-svn-to-another-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SquirrelMail SMTP Authentication</title>
		<link>/wordpress/2008/01/squirrelmail-smtp-authentication/</link>
		<comments>/wordpress/2008/01/squirrelmail-smtp-authentication/#comments</comments>
		<pubDate>Fri, 04 Jan 2008 13:16:44 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[qmail]]></category>

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

		<guid isPermaLink="false">/wordpress/?p=121</guid>
		<description><![CDATA[&#8216;R&#8217; is a statistical package. For an overview, please go to www.r-project.org My intention was to remove the point outliers from a given set of point geometries. I just recently installed R both on my Windows XP and Debian. Regina&#8217;s www.bostongis.com is an excellent tutorial in getting involved with R. I do suggest you head [...]]]></description>
			<content:encoded><![CDATA[<p><strong>&#8216;R&#8217;</strong> is a statistical package. For an overview, please go to <a href="www.r-project.org">www.r-project.org</a><br />
My intention was to remove the point outliers from a given set of point geometries.</p>
<p>I just recently installed R both on my Windows XP and Debian.  Regina&#8217;s <a href="www.bostongis.com">www.bostongis.com </a> is an excellent tutorial in getting involved with <strong>R</strong>. I do suggest you head first to  <a href="http://www.bostongis.com/PrinterFriendly.aspx?content_name=postgresql_plr_tut01">PLR Part 1: Up and Running with PL/R (PLR) in PostgreSQL: An almost Idiot&#8217;s Guide </a> to get you started.</p>
<p>The install instructions for Windows works flawlessly. I have to hold back to R-2.5 though as I plan to use RPy (Python for R), see details below. To install <strong>&#8216;R&#8217;</strong> in Debian, there&#8217;s a couple of settings that we need to take care of&#8230;</p>
<p>1. Install r-base<br />
<code>sudo apt-get install r-base</code></p>
<p>2. Install plr on postgres<br />
<code>sudo apt-get install postgresql-8.2-plr</code></p>
<p>3. Using R in a database<br />
<code>psql -d beijing -U lbs -h 127.0.0.1 &lt; /usr/share/postgresql/8.2/plr.sql</code></p>
<p>4. Set the R_HOME environment variable<br />
<code>/etc/postgresql/8.2/main/environment</code><br />
<code>R_HOME='/usr/lib/R'</code></p>
<p>5. Restart Debian.</p>
<p><strong>RPy</strong>, R for Python, is another alternative to use R in Python. I installed it both in Windows and Debian. Note that I reverted to R-2.5 on Windows to be compatible with RPy. For Debian, Im currently using R-2.6.</p>
<p>For the Windows Binary Installation,</p>
<p>1. Read the <a href="http://rpy.sourceforge.net/rpy/README">RPy Main Site</a></p>
<p>2. Install prerequisites:</p>
<p>- <a href="http://jaist.dl.sourceforge.net/sourceforge/numpy/numpy-1.0.4.win32-py2.5.msi">NumPy</a><br />
- <a href="http://sourceforge.net/project/showfiles.php?group_id=78018">Win32 Extensions Download</a></p>
<p>3. Afterwards, install the main package, <a href="http://nchc.dl.sourceforge.net/sourceforge/rpy/rpy-1.0-RC3.win32-R2.0.0-R-2.5.1-py2.5.exe">RPy Download</a></p>
<p>In Debian, its a straight forward&#8230;<code>sudo apt-get install python-rpy</code></p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/11/installing-r-on-windows-and-debian/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>Qmail Error 451</title>
		<link>/wordpress/2007/10/qmail-error-451/</link>
		<comments>/wordpress/2007/10/qmail-error-451/#comments</comments>
		<pubDate>Tue, 30 Oct 2007 13:43:41 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[qmail]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">/wordpress/?p=111</guid>
		<description><![CDATA[Finally, I was able to nail down the PBL problems I had with my qmail server. I was able to use Outlook 2007/2003 to use my pop/smtp. To use Outlook 2007, you should have the ff settings: 1. Tools -&#62; Account Settings. 2. Click on the desired account 3. Click on &#8220;More Settings&#8221; button 4. [...]]]></description>
			<content:encoded><![CDATA[<p>Finally, I was able to nail down the PBL problems I had with my qmail server. I was able to use Outlook 2007/2003 to use my pop/smtp. To use Outlook 2007, you should have the ff settings:</p>
<p>1. Tools -&gt; Account Settings.<br />
2. Click on the desired account<br />
3. Click on &#8220;More Settings&#8221; button<br />
4. In the outgoing server tab, ensure that you have &#8220;My outgoing server (SMTP) requires authentication&#8221; checked.<br />
5. In the outgoing server tab, ensure that you have &#8220;Use same settings as my incoming mail server&#8221; checked.<br />
6. In the Advanced Tab, you can set it to &#8220;Auto&#8221;</p>
<p><strong>Spamhaus problem. 451 http://www.spamhaus.org/query/bl?ip=219.142.133.68. </strong><br />
You can remove spamhaus when you send email, but that&#8217;s quite dangerous. If you want to completely remove the PBL checking,</p>
<p>1. Check your blacklist settings. You can remove the line below, or change it to an PBL listings like <a href="http://forum.qmailrocks.org/archive/index.php/t-3103.html">http://forum.qmailrocks.org/archive/index.php/t-3103.html</a></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">more</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>qmail<span style="color: #000000; font-weight: bold;">/</span>control<span style="color: #000000; font-weight: bold;">/</span>blacklist
<span style="color: #660033;">-r</span> sbl.spamhaus.org</pre></div></div>

<p>2. Restart qmail</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><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>qmailctl stop
<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>qmailctl start</pre></div></div>

<p><strong>553 sorry, that domain isn&#8217;t in my list of allowed rcpthosts (#5.5.3 &#8211; chkuser)</strong><br />
Here&#8217;s a good description of the problem on relaying. <a herf="http://www.palomine.net/qmail/relaying.html">http://www.palomine.net/qmail/relaying.html<br />
</a>. If you &#8220;enabled smtp authentication&#8221; and used your settings for loggin-in, then this would not happen. I experienced this when I changed my Outlook 2007 settings to &#8220;Log on to incoming mail server before sending mail&#8221;.</p>
<p>References: <a href="http://www.peternew.co.uk/?p=85">http://www.peternew.co.uk/?p=85</a><br />
<a href="http://www.spamhaus.org/sbl/howtouse.html">http://www.spamhaus.org/sbl/howtouse.html</a></p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/10/qmail-error-451/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian MySQL</title>
		<link>/wordpress/2007/10/debian-mysql/</link>
		<comments>/wordpress/2007/10/debian-mysql/#comments</comments>
		<pubDate>Mon, 29 Oct 2007 22:21:27 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">/wordpress/?p=110</guid>
		<description><![CDATA[A default install of mysql on debian would have bind-address set to 127.0.0.1. This is why you can&#8217;t accept remote connections to your mysql. In order to establish remote connections to mysql on debian servers, please comment the bind-address as shown below. 42 language = /usr/share/mysql/english 43 skip-external-locking 44 # 45 # Instead of skip-networking [...]]]></description>
			<content:encoded><![CDATA[<p>A default install of mysql on debian would have bind-address set to 127.0.0.1. This is why you can&#8217;t accept remote connections to your mysql. In order to establish remote connections to mysql on debian servers, please comment the bind-address as shown below.</p>

<div class="wp_syntax"><div class="code"><pre class="conf" style="font-family:monospace;"> 42 language    = /usr/share/mysql/english
 43 skip-external-locking
 44 #
 45 # Instead of skip-networking the default is now to listen only on
 46 # localhost which is more compatible and is not less secure.
 47 #bind-address = 127.0.0.1
 48 #</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/10/debian-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SVN Group Policies</title>
		<link>/wordpress/2007/08/svn-group-policies/</link>
		<comments>/wordpress/2007/08/svn-group-policies/#comments</comments>
		<pubDate>Mon, 06 Aug 2007 21:00:03 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">/wordpress/?p=92</guid>
		<description><![CDATA[httpd.conf: ++++++++++++++++++++++++++++++++++++++ DAV svn SVNPath /repos AuthzSVNAccessFile /repos/svn-authorization-file AuthType Basic AuthName &#8220;Subversion repository&#8221; AuthUserFile /repos/svn-auth-file Require valid-user /repos/svn-authorization-file: ++++++++++++++++++++++++++++++++++++++ [repos:/] rupert=rw andrew=rw tony=rw [repos:/web/cybersoftjs/trunk] anonymous=r [repos:/web/poimgr] jake=r]]></description>
			<content:encoded><![CDATA[<p>httpd.conf:<br />
++++++++++++++++++++++++++++++++++++++<br />
<location><br />
DAV svn<br />
SVNPath /repos</location></p>
<p>AuthzSVNAccessFile /repos/svn-authorization-file</p>
<p>AuthType Basic<br />
AuthName &#8220;Subversion repository&#8221;<br />
AuthUserFile /repos/svn-auth-file<br />
Require valid-user<br />
/repos/svn-authorization-file:<br />
++++++++++++++++++++++++++++++++++++++<br />
[repos:/]<br />
rupert=rw<br />
andrew=rw<br />
tony=rw</p>
<p>[repos:/web/cybersoftjs/trunk]<br />
anonymous=r</p>
<p>[repos:/web/poimgr]<br />
jake=r</p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/08/svn-group-policies/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>Debian Howto: Installing Mapserver</title>
		<link>/wordpress/2007/08/debian-howto-installing-mapserver/</link>
		<comments>/wordpress/2007/08/debian-howto-installing-mapserver/#comments</comments>
		<pubDate>Tue, 31 Jul 2007 22:51:04 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mapserver]]></category>

		<guid isPermaLink="false">/wordpress/?p=85</guid>
		<description><![CDATA[By default, we can install mapserver using etch stable from a debian mirror using apt-get. Final results were almost close as expected, however, I need mapserver with TIFF support to be able to display my satellite images. Thus, recompilation is necessary. Below is the binary version difference for both installation procedures. Nevertheless, it is worth [...]]]></description>
			<content:encoded><![CDATA[<p>By default, we can install mapserver using <em>etch</em> stable from a debian mirror using <em><strong>apt-get</strong></em>. Final results were almost close as expected, however, I need mapserver with TIFF support to be able to display my satellite images. Thus, recompilation is necessary. Below is the binary version difference for both installation procedures.</p>
<p>Nevertheless, it is worth noting that &#8216;apt-get&#8217; significantly boost the installation of mapserver. I highly suggest to install mapserver using apt-get and use source compilation only if necessary.</p>
<p>a) mapserver installed using apt-get</p>
<p><code><br />
rupert-debian:/usr/lib/cgi-bin# ./mapserv -v<br />
MapServer version 4.10.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG<br />
</code></p>
<p>Installation instructions for a:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">1. <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #c20cb9; font-weight: bold;">g++</span> libgd2-xpm libgd2-xpm-dev libcurl3 zlib1g-dev libgd-dev libtiff4 libtiff4-dev  libapache2-mod-python python-imaging  
&nbsp;
2. <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> php5-cgi php5-common php5-curl php5-dev php5-gd php5-mysql php5-pgsql php5-sqlite php5-xsl libapache2-mod-php5
&nbsp;
3. <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> python2.5 python2.5-dev python2.5-examples
&nbsp;
4. <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> mysql-client-<span style="color: #000000;">5.0</span> mysql-server-<span style="color: #000000;">5.0</span> mytop mysql-admin mysql-admin-common libmysqlclient15-dev libdbd-mysql-perl libdbd-mysql-ruby mtop
&nbsp;
5. <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> postgresql-common postgresql-<span style="color: #000000;">8.2</span> postgresql-client-<span style="color: #000000;">8.2</span> postgresql-contrib-<span style="color: #000000;">8.2</span> postgresql-<span style="color: #000000;">8.2</span>-plr postgresql-<span style="color: #000000;">8.2</span>-plruby postgresql-<span style="color: #000000;">8.2</span>-postgis postgresql-plperl-<span style="color: #000000;">8.2</span> postgresql-plpython-<span style="color: #000000;">8.2</span> postgresql-pltcl-<span style="color: #000000;">8.2</span> libpq4 
&nbsp;
6.  <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gdal-bin cgi-mapserver mapserver-bin mapserver-doc perl-mapscript php5-mapscript python-mapscript</pre></div></div>

<p>b. mapserver compiled</p>
<p><code><br />
rupert-debian:/usr/lib/cgi-bin# ./mapserv_default -v<br />
MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG<br />
</code></p>
<p>Installation instructions for b:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#tar -zxvf geos-3.0.0rc4</span>
<span style="color: #666666; font-style: italic;">#./configure</span>
<span style="color: #666666; font-style: italic;">#make</span>
<span style="color: #666666; font-style: italic;">#make install</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#modify /etc/apt/sources.list and uncomment testing</span>
deb http:<span style="color: #000000; font-weight: bold;">//</span>mirrors.geekbone.org<span style="color: #000000; font-weight: bold;">/</span>debian testing main
deb-src  http:<span style="color: #000000; font-weight: bold;">//</span>mirrors.geekbone.org<span style="color: #000000; font-weight: bold;">/</span>debian testing main
&nbsp;
deb http:<span style="color: #000000; font-weight: bold;">//</span>mirrors.geekbone.org<span style="color: #000000; font-weight: bold;">/</span>debian etch main
deb-src  http:<span style="color: #000000; font-weight: bold;">//</span>mirrors.geekbone.org<span style="color: #000000; font-weight: bold;">/</span>debian etch main
&nbsp;
deb http:<span style="color: #000000; font-weight: bold;">//</span>security.debian.org<span style="color: #000000; font-weight: bold;">/</span> etch<span style="color: #000000; font-weight: bold;">/</span>updates main contrib
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>security.debian.org<span style="color: #000000; font-weight: bold;">/</span> etch<span style="color: #000000; font-weight: bold;">/</span>updates main contrib
&nbsp;
<span style="color: #666666; font-style: italic;">#apt-get update</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#apt-get install postgresql-8.2-postgis</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#tar -zxvf mapserver-4.10.2.tar.gz</span>
<span style="color: #666666; font-style: italic;">#./configure \</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>
<span style="color: #666666; font-style: italic;">#make</span>
<span style="color: #666666; font-style: italic;">#make install</span>
<span style="color: #666666; font-style: italic;">#cp -Rf mapserv /usr/local/cgi-bin/</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/08/debian-howto-installing-mapserver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

