<?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>iphone and gis development notes &#187; debian</title>
	<atom:link href="http:///wordpress/category/linux/debian/feed/" rel="self" type="application/rss+xml" />
	<link>/wordpress</link>
	<description>By Rupert</description>
	<lastBuildDate>Sun, 29 Aug 2010 22:44:41 +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 03:53:48 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[ruby on rails]]></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>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 15:42:37 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[debian]]></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>2</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>5</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 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[R]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[postgis]]></category>
		<category><![CDATA[postgres]]></category>

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

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

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

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

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

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

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

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

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

]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/11/serving-asp-pages-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>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 20:51:54 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[apache]]></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>Understanding Iptables</title>
		<link>/wordpress/2007/07/understanding-iptables/</link>
		<comments>/wordpress/2007/07/understanding-iptables/#comments</comments>
		<pubDate>Tue, 31 Jul 2007 12:13:08 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>

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

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

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