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

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

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

<p>1. Apache Proxy</p>

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

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

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

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

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

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

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

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

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

]]></content:encoded>
			<wfw:commentRss>/wordpress/2008/11/deploying-a-rails-application-in-a-subdirectory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>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>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>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>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>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>
		<item>
		<title>Debian Howto: Apache 2.2 + ColdFusion Updated for SID</title>
		<link>/wordpress/2007/08/debian-howto-apache-22-coldfusion/</link>
		<comments>/wordpress/2007/08/debian-howto-apache-22-coldfusion/#comments</comments>
		<pubDate>Tue, 31 Jul 2007 18:51:54 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[cf]]></category>

		<guid isPermaLink="false">/wordpress/?p=84</guid>
		<description><![CDATA[Wow, this is really nice. I was able to install Apache2.2 + ColdFusion on my current Debian 4.0 Etch. Here&#8217;s an introduction on using apt&#8230; Use apt-cache to search the local database for available packages. apt-cache search [search terms] will find packages that sound like what you want and: apt-cache show [packagename] will return more [...]]]></description>
			<content:encoded><![CDATA[<p>Wow, this is really nice. I was able to install Apache2.2 + ColdFusion on my current Debian 4.0 Etch.</p>
<p>Here&#8217;s an introduction on using apt&#8230;</p>
<blockquote><p> Use   apt-cache   to search the local database for available packages.<br />
apt-cache search [search terms]   will find packages that sound like what you want and:<br />
apt-cache show [packagename]   will return more details on a particular package.<br />
apt-cache showpkg [packagename]   will return more details on a particular package.<br />
apt-cache policy [packagename]   will return which versions are available along with the priority of each version.<br />
apt-setup   will enable you to change mirrors. The alternative is to edit   /etc/apt/sources.list   manually (which I prefer).<br />
apt-get clean clears the local repository of all retrieved package files.<br />
apt-get autoclean clears the local repository of retrieved package files of programs that are no longer installed.<br />
dpkg -l [packagename] will list the version and a short description of the package we have installed.</p></blockquote>
<p><strong>Installing Apache2.2</strong></p>
<p>1. <code>apt-get install g++</code></p>
<p>2. <code>apt-get install apache2</code></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Setting up apache2-utils <span style="color: #7a0874; font-weight: bold;">&#40;</span>2.2.3-<span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> ...
Setting up apache2.2-common <span style="color: #7a0874; font-weight: bold;">&#40;</span>2.2.3-<span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> ...
Setting Apache2 to Listen on port 80. If this is not desired, please edit <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>ports.conf <span style="color: #c20cb9; font-weight: bold;">as</span> desired. Note that the Port directive no longer works.
Module <span style="color: #7a0874; font-weight: bold;">alias</span> installed; run <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 force-reload to enable.
Module autoindex installed; run <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 force-reload to enable.
Module <span style="color: #c20cb9; font-weight: bold;">dir</span> installed; run <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 force-reload to enable.
Module <span style="color: #c20cb9; font-weight: bold;">env</span> installed; run <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 force-reload to enable.
Module mime installed; run <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 force-reload to enable.
Module negotiation installed; run <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 force-reload to enable.
Module setenvif installed; run <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 force-reload to enable.
Module status installed; run <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 force-reload to enable.
Module auth_basic installed; run <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 force-reload to enable.
Module authz_default installed; run <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 force-reload to enable.
Module authz_user installed; run <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 force-reload to enable.
Module authz_groupfile installed; run <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 force-reload to enable.
Module authn_file installed; run <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 force-reload to enable.
Module authz_host installed; run <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 force-reload to enable.
&nbsp;
Setting up apache2-mpm-worker <span style="color: #7a0874; font-weight: bold;">&#40;</span>2.2.3-<span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> ...
Starting web server <span style="color: #7a0874; font-weight: bold;">&#40;</span>apache2<span style="color: #7a0874; font-weight: bold;">&#41;</span>...apache2: Could not reliably determine the server<span style="color: #ff0000;">'s fully qualified domain name, using 127.0.0.1 for ServerName</span></pre></div></div>

<p>3. <code>/etc/init.d/apache2 start</code></p>
<p>4. <code>ps -ef | grep apache2</code></p>
<p>5. Post Install:<br />
<code><br />
#mkdir -p /usr/local/apache2<br />
#ln -s /var/log/apache2 /usr/local/apache2/logs<br />
#ln -s /var/www 	/usr/local/apache2/htdocs<br />
#ln -s /usr/lib/cgi-bin /usr/local/apache2/cgi-bin<br />
</code></p>
<p><strong>Installing ColdFusion 8</strong><br />
1. Install ColdFusion 8 normally. Make the user as nobody</p>
<p>2. To start ColdFusion8 on boot, download this startup script (<a href='/wordpress/wp-content/uploads/2008/05/coldfusion8_startup_debian.sh'>coldfusion8_startup_debian</a>).<br />
  Drop it to /etc/init.d/ and start coldfusion</p>
<p>3. Bind ColdFusion to Apache. Modify the existing apache_connector.sh.</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>
&nbsp;
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Configure the Apache connector.</span>
<span style="color: #666666; font-style: italic;">#       -dir should be the *directory* which contains httpd.conf</span>
<span style="color: #666666; font-style: italic;">#       -bin should be the path to the apache *executable*</span>
<span style="color: #666666; font-style: italic;">#       -script should be the path to the script which is used to</span>
<span style="color: #666666; font-style: italic;">#               start/stop apache</span>
<span style="color: #666666; font-style: italic;">#</span>
..<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>runtime<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>wsconfig \
        <span style="color: #660033;">-server</span> coldfusion \
        <span style="color: #660033;">-ws</span> apache \
        <span style="color: #660033;">-dir</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2 \
        <span style="color: #660033;">-bin</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;">-script</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>apache2ctl \
        <span style="color: #660033;">-coldfusion</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #007800;">$#</span></pre></div></div>

<p>4. Check if the bind is successful by inspecting /etc/apache2/httpd.conf . You should see something similar below&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># JRun Settings</span>
LoadModule jrun_module <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>coldfusion8<span style="color: #000000; font-weight: bold;">/</span>runtime<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>wsconfig<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span>mod_jrun22.so
<span style="color: #000000; font-weight: bold;">&lt;</span>IfModule mod_jrun22.c<span style="color: #000000; font-weight: bold;">&gt;</span>
    JRunConfig Verbose <span style="color: #c20cb9; font-weight: bold;">false</span>
    JRunConfig Apialloc <span style="color: #c20cb9; font-weight: bold;">false</span>
    JRunConfig Ignoresuffixmap <span style="color: #c20cb9; font-weight: bold;">false</span>
    JRunConfig Serverstore <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>coldfusion8<span style="color: #000000; font-weight: bold;">/</span>runtime<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>wsconfig<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span>jrunserver.store
    JRunConfig Bootstrap 127.0.0.1:<span style="color: #000000;">51011</span>
    <span style="color: #666666; font-style: italic;">#JRunConfig Errorurl url &lt;optionally redirect to this URL on errors&gt;</span>
    <span style="color: #666666; font-style: italic;">#JRunConfig ProxyRetryInterval 600 &lt;number of seconds to wait before trying to reconnect to unreachable clustered server&gt;</span>
    <span style="color: #666666; font-style: italic;">#JRunConfig ConnectTimeout 15 &lt;number of seconds to wait on a socket connect to a jrun server&gt;</span>
    <span style="color: #666666; font-style: italic;">#JRunConfig RecvTimeout 300 &lt;number of seconds to wait on a socket receive to a jrun server&gt;</span>
    <span style="color: #666666; font-style: italic;">#JRunConfig SendTimeout 15 &lt;number of seconds to wait on a socket send to a jrun server&gt;</span>
    AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc .cfr .cfswf
<span style="color: #000000; font-weight: bold;">&lt;/</span>IfModule<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>5. Follow Post install considerations</p>
<p><strong>Installing ColdFusion7.0.2</strong></p>
<p>References:<br />
<a href="http://demirkapi.net/tutorials/coldfusion_debian_installation.cfm">http://demirkapi.net/tutorials/coldfusion_debian_installation.cfm</a><br />
<a href="http://demirkapi.net/tutorials/coldfusion_debian_installation.cfm">http://www.easycfm.com/print/index.cfm?tutorial_id=376</a></p>
<p>1.<code> apt-get install libstdc++6 libstdc++5 libstdc++2.10-glibc2.2(etch)</code></p>
<p>On etch, by default there is already xlibs, if we have desktop. On sid, if there is also no X, we need to install <code>libxp6 libxt6 libxtst6</code>.  If you don&#8217;t install these libraries, you will get a graphing library error during coldfusionmx startup.</p>
<p>2. By default debian has a &#8216;nobody&#8217; user also</p>
<p>From <a href="http://forums.gentoo.org/viewtopic-t-312113.html">http://forums.gentoo.org/viewtopic-t-312113.html</a>, and <strong>if you get a libc.so.6 No suc file or directory found problem</strong></p>
<p>3. Modify /opt/coldfusionmx7/bin/coldfusion and comment out LD_ASSUME_KERNEL<br />
<code><br />
174                 # Some Java JVMs (both from Sun and IBM) don't work with the new floating stack<br />
175                 # feature of the i686 version of glibc.  Force glibc to use the deprecated stack model.<br />
176                 # Check if the OS is SuSE8.1 or SuSE 9 - if it is, do not use the deprecated stack model.<br />
177                 #SUSEFLAG=`grep 'SuSE Linux 8.1\|UnitedLinux 1.0\|SuSE Linux 9\|SUSE LINUX Enterprise Server 9' /etc/SuSE-release /etc/UnitedLinux-release /etc/UnitedLinux-release 2&gt; /dev/null`<br />
178<br />
179                 #if [ ! "$SUSEFLAG" ]; then<br />
180                 #       LD_ASSUME_KERNEL=2.2.9<br />
181                 #       export LD_ASSUME_KERNEL<br />
182                 #fi<br />
</code></p>
<p>4. <strong>Boot on Start.</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#cp -Rf /opt/coldfusionmx7/bin/coldfusion /etc/init.d/coldfusionmx7</span>
<span style="color: #666666; font-style: italic;">#update-rc.d coldfusionmx7 start 80 2 3 4 5 . stop 15 0 1 6 .</span></pre></div></div>

<p>5. You need the latest wsconfig.jar that will work on Apache2.2. It was discussed from a technote <a href="http://kb.adobe.com/selfservice/viewContent.do?externalId=8001e97&amp;sliceId=2">here</a>. Configure apache with coldfusion<br />
<code><br />
</code></p>
<p>or</p>
<p>Call <strong>java</strong> and execute wsconfig.jar</p>
<p><code><br />
/opt/coldfusionmx7/runtime/jre/bin/java<br />
cd {cf_root}/runtime/lib</code></p>
<p>java -Dtrace.ci=1 -jar wsconfig.jar -server coldfusion -ws apache</p>
<p>-dir /etc/apache2/</p>
<p>-bin /usr/sbin/apache2</p>
<p>-script /usr/sbin/apache2ctl</p>
<p>-coldfusion -v</p>
<p>[-apxs]</p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/08/debian-howto-apache-22-coldfusion/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing Debian</title>
		<link>/wordpress/2007/07/first-debian-howto/</link>
		<comments>/wordpress/2007/07/first-debian-howto/#comments</comments>
		<pubDate>Tue, 31 Jul 2007 12:21:01 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">/wordpress/?p=82</guid>
		<description><![CDATA[This is already an update on my First Howto with debian. So far, I could atest that Debian has been very good to me, and lessen my daily admin tasks. 1. Install base system. I prefer a minimal install. 2. Setup Networking 2.1 Disable IPV6 vi /etc/modprobe.d/aliases alias ipv6 off alias net-pf-10 off &#160; 2.2 [...]]]></description>
			<content:encoded><![CDATA[<p>This is already an update on my First Howto with debian. So far, I could atest that Debian has been very good to me, and lessen my daily admin tasks.</p>
<p><strong>1. Install base system. I prefer a minimal install.</strong></p>
<p><strong>2. Setup Networking</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000;">2.1</span> Disable IPV6
<span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>modprobe.d<span style="color: #000000; font-weight: bold;">/</span>aliases
<span style="color: #7a0874; font-weight: bold;">alias</span> ipv6 off
<span style="color: #7a0874; font-weight: bold;">alias</span> net-pf-<span style="color: #000000;">10</span> off
&nbsp;
<span style="color: #000000;">2.2</span> Setup IP
<span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>network<span style="color: #000000; font-weight: bold;">/</span>interfaces
<span style="color: #666666; font-style: italic;"># This file describes the network interfaces available on your system</span>
<span style="color: #666666; font-style: italic;"># and how to activate them. For more information, see interfaces(5).</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># The loopback network interface</span>
auto lo
iface lo inet loopback
&nbsp;
<span style="color: #666666; font-style: italic;"># The primary network interface</span>
allow-hotplug eth0
iface eth0 inet static
        address 192.168.1.211
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1</pre></div></div>

<p>2.3 Modify Hosts</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#vi /etc/hosts</span>
127.0.0.1           localhost
127.0.1.1           rupert-debian
192.168.1.211     rupert-debian
222.73.255.64     mirrors.geekbone.org
61.132.102.124   debian.cn99.com
128.31.0.36       security.debian.org
&nbsp;
<span style="color: #666666; font-style: italic;"># The following lines are desirable for IPv6 capable hosts</span>
<span style="color: #666666; font-style: italic;">#::1     ip6-localhost ip6-loopback</span>
<span style="color: #666666; font-style: italic;">#fe00::0 ip6-localnet</span>
<span style="color: #666666; font-style: italic;">#ff00::0 ip6-mcastprefix</span>
<span style="color: #666666; font-style: italic;">#ff02::1 ip6-allnodes</span>
<span style="color: #666666; font-style: italic;">#ff02::2 ip6-allrouters</span>
<span style="color: #666666; font-style: italic;">#ff02::3 ip6-allhosts</span></pre></div></div>

<p>You can delete the commented (#) lines, if you don&#8217;t have ipv6 on your network&#8230;</p>
<p>2.4 Setup Basic Firewall<br />
vi firewall.sh</p>

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

<p>sh -v firewall_setup.sh</p>
<p>To set it up on boot:<br />
vi /etc/network/interfaces<br />
&#8230;<br />
iface lo inet loopback<br />
pre-up iptables-restore &lt; /etc/firewall-rules<br />
&#8230;</p>
<p>I did catch a slight problem on this, for more details please read this <a href="/wordpress/?p=83">post.</a></p>
<p><a href="/wordpress/?p=83"><strong>3. Specify the nearest source list</strong>  </a></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>a <span style="color: #007800;">href</span>=<span style="color: #ff0000;">&quot;/wordpress/?p=83&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apt<span style="color: #000000; font-weight: bold;">/</span>sources.list
<span style="color: #666666; font-style: italic;">#deb http://mirrors.geekbone.org/debian etch main</span>
<span style="color: #666666; font-style: italic;">#deb-src http://mirrors.geekbone.org/debian etch main</span>
&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
<span style="color: #000000; font-weight: bold;">&lt;/</span>a<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p><a href="/wordpress/?p=83"><strong>4. Let&#8217;s get ssh up and running first.</strong></a></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>a <span style="color: #007800;">href</span>=<span style="color: #ff0000;">&quot;/wordpress/?p=83&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #c20cb9; font-weight: bold;">apt-get</span> update
<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;">ssh</span>
<span style="color: #000000; font-weight: bold;">&lt;/</span>a<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p><a href="/wordpress/?p=83"><strong>5. Once you have networking up and running, then I advise to upgrade to lenny (testing) as stated from the source list[3] above.</strong></a></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>a <span style="color: #007800;">href</span>=<span style="color: #ff0000;">&quot;/wordpress/?p=83&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #c20cb9; font-weight: bold;">apt-get</span> upgrade libc6
<span style="color: #c20cb9; font-weight: bold;">apt-get</span> dist-upgrade
<span style="color: #000000; font-weight: bold;">&lt;/</span>a<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p><a href="/wordpress/?p=83"><strong>6. Reboot</strong></a></p>
<p><a href="/wordpress/?p=83"><strong>7. Do you want this machine to be your desktop? If yes, let&#8217;s get gnome.</strong></a></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>a <span style="color: #007800;">href</span>=<span style="color: #ff0000;">&quot;/wordpress/?p=83&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #666666; font-style: italic;">#aptitude install gnome</span>
<span style="color: #666666; font-style: italic;">#aptitude install gnome-core</span>
<span style="color: #666666; font-style: italic;">#aptitude install x-window-system</span>
<span style="color: #000000; font-weight: bold;">&lt;/</span>a<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p><a href="/wordpress/?p=83"><strong>8. Reboot. You should see a graphical Gnome Login</strong></a></p>
<p><a href="/wordpress/?p=83"><strong>9. Utilities</strong></a></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>a <span style="color: #007800;">href</span>=<span style="color: #ff0000;">&quot;/wordpress/?p=83&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #666666; font-style: italic;">#apt-get install htop nmap unzip subversion build-essential cmake locate</span>
<span style="color: #666666; font-style: italic;">#apt-get install libboost-graph*</span>
<span style="color: #000000; font-weight: bold;">&lt;/</span>a<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p><a href="/wordpress/?p=83"><strong>10. Servers</strong><br />
#apt-get install apache2<br />
#apt-get install postgresql-8.2<br />
#apt-get install postgresql-8.2-postgis<br />
#apt-get install postgresql-server-dev-8.2<br />
#apt-get install mysql-server</a></p>
<p><a href="/wordpress/?p=83"><strong>11. Removing unwanted services</strong><br />
#update-rc.d -f portmap remove<br />
#update-rc.d -f cupsys remove<br />
#update-rc.d -f exim4 remove</a></p>
<p><a href="/wordpress/?p=83"><strong>12. Configuring vimrc with syntax highlighting</strong></a></p>

<div class="wp_syntax"><div class="code"><pre class="conf" style="font-family:monospace;">&lt;a href=&quot;/wordpress/?p=83&quot;&gt;
set nocompatible
set nu
set ts=4
syntax on
&lt;/a&gt;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/07/first-debian-howto/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Debian, Centos, Ubuntu</title>
		<link>/wordpress/2007/07/debian-centos-ubuntu/</link>
		<comments>/wordpress/2007/07/debian-centos-ubuntu/#comments</comments>
		<pubDate>Fri, 27 Jul 2007 01:02:02 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[ubuntu]]></category>

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

