<?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>DebianZone</title>
	<atom:link href="http://debianzone.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://debianzone.org</link>
	<description>All About Debian</description>
	<lastBuildDate>Tue, 29 Jun 2010 11:18:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to install and configure FTP Server</title>
		<link>http://debianzone.org/how-to-install-and-configure-ftp-server/</link>
		<comments>http://debianzone.org/how-to-install-and-configure-ftp-server/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 11:15:50 +0000</pubDate>
		<dc:creator>smanne</dc:creator>
				<category><![CDATA[Configuration]]></category>

		<guid isPermaLink="false">http://debianzone.org/how-to-install-and-configure-ftp-server/</guid>
		<description><![CDATA[	There are lots of ftp servers available for linux, proftpd is one of the popular server available for Debian, so in this tutorial we will deal with installing and configring proftpd server on Debian
To install proftpd server 

apt-get install proftpd

While installing there is a option to choose the type of installation, whether it is standalone [...]]]></description>
			<content:encoded><![CDATA[<p>	There are lots of ftp servers available for linux, proftpd is one of the popular server available for Debian, so in this tutorial we will deal with installing and configring proftpd server on Debian</p>
<p>To install proftpd server </p>
<pre class="brush: bash;">
apt-get install proftpd
</pre>
<p>While installing there is a option to choose the type of installation, whether it is standalone or inetd installation, normally we need standalone installation, After installation the server will start automatically.<br />
<span id="more-114"></span><br />
To start ftp server</p>
<pre class="brush: bash;">
/etc/init.d/proftpd start
</pre>
<p>To stop ftp server</p>
<pre class="brush: bash;">
/etc/init.d/proftpd stop
</pre>
<p>Now we will go through configuration of ftp server<br />
proftpd configuration file is located at  <em>/etc/proftpd/proftpd.conf</em><br />
To edit configuration use</p>
<pre class="brush: bash;">
vi /etc/proftpd/proftpd.conf
</pre>
<p>Default configuration file can be found <a href="http://debianzone.org/wp-content/uploads/2010/06/proftpconfdefault.txt" target="_blank">here</a></p>
<p>By default proftpd will give access to the home path (to know home directory of users <em>cat /etc/passwd</em>)</p>
<pre class="brush: bash;">
DefaultRoot ~

// This will limit the user smanne to /var/www/ folder
DefaultRoot /var/www/ smanne
</pre>
<p>To change default file permissions </p>
<pre class="brush: bash;">
// this will give default 755 permission to all the new and updated files
Umask                           022  022 

// this will give 775 permission,
Umask 			      002  002
</pre>
<p>You can also change the port number, max connections, </p>
<p>For more proftpd configurations refer &#8211; <a href="http://www.proftpd.org/docs/example-conf.html" target="_blank">http://www.proftpd.org/docs/example-conf.html</a></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fdebianzone.org%2Fhow-to-install-and-configure-ftp-server%2F&amp;linkname=How%20to%20install%20and%20configure%20FTP%20Server">Share/Bookmark</a>]]></content:encoded>
			<wfw:commentRss>http://debianzone.org/how-to-install-and-configure-ftp-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MySql Database Replication</title>
		<link>http://debianzone.org/mysql-database-replication/</link>
		<comments>http://debianzone.org/mysql-database-replication/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 10:46:31 +0000</pubDate>
		<dc:creator>smanne</dc:creator>
				<category><![CDATA[Configuration]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[replication]]></category>

		<guid isPermaLink="false">http://debianzone.org/mysql-database-replication/</guid>
		<description><![CDATA[When we search for `Database Replication` we will find lots of tutorials, so here I wont add new one, I am just highlighting one of the best tutorials to refer.
http://www.howtoforge.com/mysql_database_replication
	This article contains simple copy &#038; paste steps to configure MySql replication, if you need more detailed indepth explanation on different configuration settings then go to [...]]]></description>
			<content:encoded><![CDATA[<p>When we search for `Database Replication` we will find lots of tutorials, so here I wont add new one, I am just highlighting one of the best tutorials to refer.</p>
<p>http://www.howtoforge.com/mysql_database_replication</p>
<p>	This article contains simple copy &#038; paste steps to configure MySql replication, if you need more detailed indepth explanation on different configuration settings then go to </p>
<p>http://dev.mysql.com/doc/refman/5.0/en/replication.html</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fdebianzone.org%2Fmysql-database-replication%2F&amp;linkname=MySql%20Database%20Replication">Share/Bookmark</a>]]></content:encoded>
			<wfw:commentRss>http://debianzone.org/mysql-database-replication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Stress Test tool</title>
		<link>http://debianzone.org/mysql-stress-test-tool/</link>
		<comments>http://debianzone.org/mysql-stress-test-tool/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 18:33:50 +0000</pubDate>
		<dc:creator>smanne</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[test]]></category>
		<category><![CDATA[tool]]></category>

		<guid isPermaLink="false">http://debianzone.org/?p=106</guid>
		<description><![CDATA[Recently we moved a client from virtual host to amazon ec2 3 tier architecture then we thought of providing benchmark test report to show the Improvement, then we searched for simple straight forward tools, but we haven`t found, then I started to write a java code to benchmark by stressing mysql server.
It performed well, so [...]]]></description>
			<content:encoded><![CDATA[<p>Recently we moved a client from virtual host to amazon ec2 3 tier architecture then we thought of providing benchmark test report to show the Improvement, then we searched for simple straight forward tools, but we haven`t found, then I started to write a java code to benchmark by stressing mysql server.</p>
<p>It performed well, so being a fan of open source, thought of releasing that code and uploaded it to google code. Here is the link</p>
<p>Downloadable binary is not yet posted you need to compile it from source code<span id="more-106"></span></p>
<p>If you come across any bugs or improvements please feed us back.</p>
<p><strong>Screenshots</strong></p>
<p><strong> </strong></p>
<div class="wp-caption alignnone" style="width: 545px"><a href="http://code.google.com/p/mysql-stress-test/"><img class="  " title="Test server, you need to start server on all servers from where u need to test " src="http://lh3.ggpht.com/__jmSzAqBb4Y/S88T9q-BSgI/AAAAAAAAI50/acHtB8T_iHE/Screenshot-2.png" alt="Test server, you need to start server on all servers from where u need to test " width="535" height="233" /></a><br />
<p class="wp-caption-text">Test server, you need to start server on all servers from where u need to test </p></div>
<div class="wp-caption alignnone" style="width: 584px"><a href="http://code.google.com/p/mysql-stress-test/"><img class="  " title="Monitoring server with MySQL admin while testing " src="http://lh5.ggpht.com/__jmSzAqBb4Y/S88T-HjZ12I/AAAAAAAAI6A/zdqRB3w5Phw/s1024/Screenshot-5.png" alt="Monitoring server with MySQL admin while testing " width="574" height="278" /></a><p class="wp-caption-text">Monitoring server with MySQL admin while testing </p></div>
<p><strong> </strong></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fdebianzone.org%2Fmysql-stress-test-tool%2F&amp;linkname=MySQL%20Stress%20Test%20tool">Share/Bookmark</a>]]></content:encoded>
			<wfw:commentRss>http://debianzone.org/mysql-stress-test-tool/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Script to start a instance in amazon ec2</title>
		<link>http://debianzone.org/script-to-start-a-instance-in-amazon-ec2/</link>
		<comments>http://debianzone.org/script-to-start-a-instance-in-amazon-ec2/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 11:08:33 +0000</pubDate>
		<dc:creator>smanne</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://debianzone.org/?p=97</guid>
		<description><![CDATA[This script is used to start a instance in ec2, you can extended this script in the way you want, we keep on posting new scripts to work with ec2

#!/bin/bash

export EC2_HOME=/home/sandeep/ec2/ec2-api-tools-1.3-46266
PATH=$EC2_HOME/bin:$PATH
export EC2_PRIVATE_KEY=/home/sandeep/ec2/pk-XXXXXXXXXXXXXXXXXXXXXXXX.pem
export EC2_CERT=/home/sandeep/ec2/cert-XXXXXXXXXXXXXXXXXXXXXXXX.pem
export EC2_URL=https://us-east-1.ec2.amazonaws.com
export JAVA_HOME=/usr/lib/jvm/java-6-sun/jre/

export amiid=&#34;ami-0d5db264&#34;
export key=&#34;xxxxsshkeyxxxx&#34;
export zone=&#34;us-east-1d&#34;
export id_file=&#34;/home/sandeep/ec2/keyxxx.pem&#34;
export group=&#34;default&#34;

#
# Start the instance
#
echo Launching AMI ${amiid}
${EC2_HOME}/bin/ec2-run-instances ${amiid} -z ${zone}
       [...]]]></description>
			<content:encoded><![CDATA[<p>This script is used to start a instance in ec2, you can extended this script in the way you want, we keep on posting new scripts to work with ec2</p>
<pre class="brush: bash;">
#!/bin/bash

export EC2_HOME=/home/sandeep/ec2/ec2-api-tools-1.3-46266
PATH=$EC2_HOME/bin:$PATH
export EC2_PRIVATE_KEY=/home/sandeep/ec2/pk-XXXXXXXXXXXXXXXXXXXXXXXX.pem
export EC2_CERT=/home/sandeep/ec2/cert-XXXXXXXXXXXXXXXXXXXXXXXX.pem
export EC2_URL=https://us-east-1.ec2.amazonaws.com
export JAVA_HOME=/usr/lib/jvm/java-6-sun/jre/

export amiid=&quot;ami-0d5db264&quot;
export key=&quot;xxxxsshkeyxxxx&quot;
export zone=&quot;us-east-1d&quot;
export id_file=&quot;/home/sandeep/ec2/keyxxx.pem&quot;
export group=&quot;default&quot;

#
# Start the instance
#
echo Launching AMI ${amiid}
${EC2_HOME}/bin/ec2-run-instances ${amiid} -z ${zone}
                         -k ${key} --group ${group}  &gt; /tmp/a
if [ $? != 0 ]; then
   echo &quot;Error starting instance for image&quot; ${amiid}
   exit 1
fi
export iid=`cat /tmp/a | grep INSTANCE | cut -f2`

#
# Loop until the status changes to 'running'
#
sleep 30
echo Starting instance ${iid}
export RUNNING=&quot;running&quot;
export done=&quot;false&quot;
while [ $done == &quot;false&quot; ]
do
   export status=`${EC2_HOME}/bin/ec2-describe-instances ${iid} | grep INSTANCE | cut -f6`
   if [ $status == ${RUNNING} ]; then
      export done=&quot;true&quot;
   else
      echo Waiting...
      sleep 10
   fi
done
echo Instance ${iid} is running
</pre>
<p>Please feel free to post any comments or errors XX</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fdebianzone.org%2Fscript-to-start-a-instance-in-amazon-ec2%2F&amp;linkname=Script%20to%20start%20a%20instance%20in%20amazon%20ec2">Share/Bookmark</a>]]></content:encoded>
			<wfw:commentRss>http://debianzone.org/script-to-start-a-instance-in-amazon-ec2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Page level caching using nginx</title>
		<link>http://debianzone.org/page-level-caching-using-nginx/</link>
		<comments>http://debianzone.org/page-level-caching-using-nginx/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 17:16:35 +0000</pubDate>
		<dc:creator>smanne</dc:creator>
				<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://debianzone.org/?p=74</guid>
		<description><![CDATA[Many of our dynamic sites contain rarely updated content (ex. blog archive page). By adding nginx server as proxy server infront of your apache server you can server those pages like static pages instead of running the page for every request, this will boost your site speed from 50% &#8211; 400%.
We need apache, nginx to [...]]]></description>
			<content:encoded><![CDATA[<p>Many of our dynamic sites contain rarely updated content (ex. blog archive page). By adding nginx server as proxy server infront of your apache server you can server those pages like static pages instead of running the page for every request, this will boost your site speed from <strong>50% &#8211; 400%.</strong></p>
<p>We need apache, nginx to work with this tutorial<br />
To install nginx on debian please follow this link</p>
<p>http://timothybowler.com/2009/11/25/compiling-nginx-on-debian-lenny/</p>
<p><strong>Note:</strong> Dont install using aptitude it contains older version where gzip and proxy module not available,</p>
<p>Modify apache ports.conf to run apache on port 8080</p>
<p><em>Add this lines to default site of nginx </em>
<pre class="brush: bash;">
server {
listen 80;
server_name debianzone.com;
location / {
proxy_pass http://debianzone.com:8080;
proxy_cache debianzone-cache;
proxy_cache_valid  200 302  60m;
proxy_cache_valid  404      1m;
}
} </pre>
<p><em>Add this in http section of nginx.conf</em>
<pre class="brush: bash;">
http {
proxy_cache_path  /var/www/cache levels=1:2 keys_zone=debianzone-cache:8m max_size=1000m inactive=600m;
proxy_temp_path /var/www/cache/tmp;
}
</pre>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fdebianzone.org%2Fpage-level-caching-using-nginx%2F&amp;linkname=Page%20level%20caching%20using%20nginx">Share/Bookmark</a>]]></content:encoded>
			<wfw:commentRss>http://debianzone.org/page-level-caching-using-nginx/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Chrome released for debian distros</title>
		<link>http://debianzone.org/chrome-released-for-debian-distros/</link>
		<comments>http://debianzone.org/chrome-released-for-debian-distros/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 10:07:34 +0000</pubDate>
		<dc:creator>smanne</dc:creator>
				<category><![CDATA[Others]]></category>
		<category><![CDATA[browsers]]></category>
		<category><![CDATA[chrome]]></category>

		<guid isPermaLink="false">http://debianzone.org/chrome-released-for-debian-distros/</guid>
		<description><![CDATA[Finally google released chrome browser for debian based distros. After running for hours i feel its stable and working fine
Download Google chrome for Debian
For developers it has developer tools which looks like firebug, but it`s not so power full like firebug, to open developer tools click
ctrl + shift + i
It also supports extensions and themes
At [...]]]></description>
			<content:encoded><![CDATA[<p>Finally google released chrome browser for debian based distros. After running for hours i feel its stable and working fine</p>
<p><a href="http://www.google.com/chrome/eula.html?platform=linux_ubuntu_i386">Download Google chrome for Debian</a></p>
<p>For developers it has developer tools which looks like firebug, but it`s not so power full like firebug, to open developer tools click</p>
<pre>ctrl + shift + i</pre>
<p>It also supports <a href="https://chrome.google.com/extensions">extensions</a> and <a href="https://tools.google.com/chrome/intl/en/themes/index.html">themes</a></p>
<p>At present i can say it as just an alternate browser, but not total replacement for firefox, let me test the stability of chrome for some more time</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=52433f20-75a3-834c-916f-88025056635c" alt="" /></div>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fdebianzone.org%2Fchrome-released-for-debian-distros%2F&amp;linkname=Chrome%20released%20for%20debian%20distros">Share/Bookmark</a>]]></content:encoded>
			<wfw:commentRss>http://debianzone.org/chrome-released-for-debian-distros/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>RAID and LVM on Amazon EC2 (part I)</title>
		<link>http://debianzone.org/raid-and-lvm-on-amazon-ec2-part-i/</link>
		<comments>http://debianzone.org/raid-and-lvm-on-amazon-ec2-part-i/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 09:25:58 +0000</pubDate>
		<dc:creator>rpaiva</dc:creator>
				<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[Amazon Web Services]]></category>
		<category><![CDATA[EBS]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[LVM]]></category>
		<category><![CDATA[RAID]]></category>
		<category><![CDATA[Storage]]></category>

		<guid isPermaLink="false">http://debianzone.com/?p=53</guid>
		<description><![CDATA[This is the first part of three articles I'm posting for a great storage solution using RAID, LVM and Amazon Elastic Block Store (EBS).]]></description>
			<content:encoded><![CDATA[<p>This is the first part of three articles I&#8217;m posting for a great storage solution using RAID, LVM and Amazon Elastic Block Store (EBS).</p>
<p>First, you need to choose your RAID implementation. Personally, I prefer to use RAID 5 on Amazon EC2, combined with LVM2.</p>
<p>For setting a RAID 5 up and running you will need to raise at least 3 EBS volumes and attach them to your instance (let’s say: sdb1, sdb2, sbd3).<span id="more-53"></span></p>
<p>Using mdadm you will setup your RAID array (/dev/md1):<code><br />
$ mdadm --create /dev/md1 --level=raid5 \<br />&gt;  --chunk=64 --parity=left-symmetric \<br />&gt;  --raid-devices=3 /dev/sdb1 /dev/sdb2 /dev/sdb3<br />
</code>(if it doesn’t work, try forcing with the param &#8211;force).</p>
<p>Wait for the sync to finish. For monitoring the sync operation, keep an eye on /proc/mdstat with a simple cat:<code><br />
$ cat /proc/mdstat<br />
</code>After synced, create the filesystem:<code><br />
$ mkfs.ext3 -b 4096 -R stride=16 /dev/md1<br />
</code>(of course, you can create the filesystem of your choice here).</p>
<p>Mount it:<code><br />
$ mkdir /path/where/you/wish/to/mount # this step is not required if you already have your path to mount the RAID<br />
$ mount –t ext3 /dev/md1 /path/where/you/wish/to/mount<br />
</code>If you want to mount it at the boot:<code>$ mdadm --detail --scan &gt; /etc/mdadm/mdadm.conf<br />
</code>Add a line to your /etc/fstab:<code><br />
# &lt;file system&gt; &lt;mount point&gt;                 &lt;type&gt;  &lt;options&gt; &lt;dump&gt;  lt;pass&gt;<br />
/dev/md1        /path/where/you/wish/to/mount ext3    defaults 0       2<br />
</code>Please, note that all these commands must be run as root.</p>
<p>Usually, at initialization mdadm can get confused when trying to scan your devices. Make sure you have a line “DEVICE” in the top of your / etc/mdadm/mdadm.conf and if it’s properly set.</p>
<p>Not always the value “partitions” works fine, so try to be specific.</p>
<p>Examples:<code><br />
DEVICE /dev/sdb[1-3]</code></p>
<p>&#8211; OR –</p>
<p>DEVICE /dev/sdb1 /dev/sdbx  # where x is your device numberI hope these tips can be of some help. Soon, I&#8217;ll be posting the next part, where I&#8217;ll talk about LVM.</p>
<p>Cheers!</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fdebianzone.org%2Fraid-and-lvm-on-amazon-ec2-part-i%2F&amp;linkname=RAID%20and%20LVM%20on%20Amazon%20EC2%20%28part%20I%29">Share/Bookmark</a>]]></content:encoded>
			<wfw:commentRss>http://debianzone.org/raid-and-lvm-on-amazon-ec2-part-i/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Porting Debian to Amazon EC2 for HPC</title>
		<link>http://debianzone.org/debian-hpc-at-amazon-ec2/</link>
		<comments>http://debianzone.org/debian-hpc-at-amazon-ec2/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 09:07:54 +0000</pubDate>
		<dc:creator>rpaiva</dc:creator>
				<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[Grid Computing]]></category>
		<category><![CDATA[High Performance Computing]]></category>
		<category><![CDATA[Amazon Web Services]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[HPC]]></category>

		<guid isPermaLink="false">http://debianzone.com/?p=48</guid>
		<description><![CDATA[Few months ago, I was challenged to build a High Performance Computing (HPC) instance on Amazon EC2 and the first thing that came in my mind was: which Linux distribution would fit on such requirements.]]></description>
			<content:encoded><![CDATA[<p>Few months ago, I was challenged to build a High Performance Computing (HPC) instance on Amazon EC2 and the first thing that came in my mind was: which Linux distribution would fit on such requirements.</p>
<p>I must confess I&#8217;m pretty much adept to Debian, but I was forced to be unbiased and start researching for better options for achieving my goal. Also because the environment I was going to port was already running Debian, but the application&#8217;s traffic growth was increasing at high speed and it seemed something was going on with that server.<span id="more-48"></span></p>
<p><strong>Why not Debian?</strong></p>
<p>Well, I had to choose some distribution where I could have my packages being compiled locally to comply with a few standards, like packages must be compiled specifically for the processor they&#8217;re running under, improve at compilation how programs make their calculations and it can be done only knowing exactly where you&#8217;re running your program, and more. Unfortunately, Debian maintains their packages pre-compiled, which means that they don&#8217;t know where they&#8217;re installing into, so they&#8217;re compiled with generic options and it can be a performance issue when talking about millions of users connected to your Apache. Let&#8217;s say that if the package takes 50KB of memory per request more than a package specifically compiled to the computer set it&#8217;s running under, for each 5000 users connected to my application I&#8217;ll need more 240MB of RAM. Well, things get bit harder if we multiply this by 10 and so on.</p>
<p>This thing was upsetting me, I didn&#8217;t want to simply abandon Debian without doing some research before. I found great distros to fulfill my requirements, such as Gentoo or Slackware&#8230; but I was leaving Debian&#8230;</p>
<p>Then I was about to really adopt Gentoo to achieve my goal, when I was talking to a friend of mine (which also is a Debian addict) and he said that it was possible to recompile packages locally with not much efforts and close (not that much, actually) to the Gentoo&#8217;s portage.</p>
<p>And then I found apt-build. It was pretty good! Despite the fact it took the whole week to recompile the whole distribution, it works pretty fine and I could get pretty close to my objective. Well, it was not that easy to get things exactly the way I wanted, but finally I could see it was possible.</p>
<p><strong>Why Debian?</strong></p>
<p>Indeed, I could really drop Debian and start using Gentoo or Slackware easily. But I had to be persistent to figure out a way to keep using Debian. Why? Well, package management is quite stable, I like the way they manage versions and Debian is a distribution I trust for years. Despite the fact I can get support very easy on the net and if I really need something installed quickly or if it&#8217;s a non-regular service I can still using aptitude (or apt-get).</p>
<p><strong>The Result</strong></p>
<p>After much work and efforts, I got an AMI with a high-tuned Debian inside. A clean and base install of Debian GNU/Linux 5.0.3 Lenny. Right now, I just have the 32 bit for m1.small and c1.medium, but soon I will get a 64 bit done.</p>
<p><strong>Features</strong></p>
<p>Kernel, RamDisk, Kernel modules and Filesystem Userspace:</p>
<ul>
<li> Uses the Canonical 2.6.28-12-xen-i386 Kernel (aki-21f01148) patched to be used on Debian Lenny.</li>
<li>Uses the Canonical 2.6.28-12-xen-i386 RAM Disk (ari-3bf01152) patched to be used on Debian Lenny.</li>
<li> All 2.6.28 kernel modules installed and running.</li>
<li> Updated with Fuse 2.8.1.</li>
</ul>
<p>Improved Performance:</p>
<ul>
<li>All installed Debian Packages _recompiled_ with GCC 4.3.2 and libc6 (xen and i686) for improved performance using Optimization level 3 (read more about GCC optmization options at <a href="http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html" target="_blank">http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html</a> and <a href="http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html" target="_blank">http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html</a>) and:</li>
<li>march=i686 (set PentiumPro instructions. Amazon EC2 &#8211; currently, Intel Xen 2.6GHz single core emulation &#8211; processor and Kernel in use are 686 compliant, but Debian packages are compiled as i386 for generic usage).</li>
<li>mfpmath=sse and msse for scalar floating point instructions to increase applications&#8217; speed and avoid the default 387 instability problems.</li>
<li> ffast-math to increase processor speed with math optimizations (Note that I used this flag only on IEEE and ISO math operation compliant applications. Don&#8217;t use it if you&#8217;re not sure if your application is compliant to IEEE and ISO specifications for math operations).</li>
<li> Still, I didn&#8217;t skip the debugging output (-g), so if you realize that any package is performing weirdly, please, debug it and let me know commenting in this post. I will fix it and raise a new AMI with the fix.</li>
<li> Kernel modules recompiled from the source (2.6.28.10) retrieved from <a href="http://www.kernel.org/" target="_blank">www.kernel.org</a>, optimized to the Amazon&#8217;s Xen environment. All security patches applied.</li>
</ul>
<p>Packages:</p>
<ul>
<li>Packages up-to-date.</li>
<li>OpenBSD SSH and Linux Screen for remote administration.</li>
<li>OpenSSL and CA Certificates for SSL and TLS support.</li>
<li>Amazon EC2 first boot script.</li>
<li>Amazon EC2 Tools 1.3.</li>
<li>Unused packages fully purged from system.</li>
</ul>
<p>Security:</p>
<ul>
<li>Shadow passwords enabled.</li>
<li>root password locked. Remote access is made only using the Keypair used to launch the instance.</li>
<li>ssh PasswordAuthentication disabled.</li>
</ul>
<p><strong>Conclusion</strong></p>
<p>I have proven to myself I could really have Debian running for an HPC environment smoothly, what  makes me even prouder of this distro.</p>
<p>If you want to check the result, the AMI ID is ami-2d759644. If you do so, I&#8217;d be glad to hear from you.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fdebianzone.org%2Fdebian-hpc-at-amazon-ec2%2F&amp;linkname=Porting%20Debian%20to%20Amazon%20EC2%20for%20HPC">Share/Bookmark</a>]]></content:encoded>
			<wfw:commentRss>http://debianzone.org/debian-hpc-at-amazon-ec2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Changing host name of Linux server</title>
		<link>http://debianzone.org/changing-host-name-of-linux-server/</link>
		<comments>http://debianzone.org/changing-host-name-of-linux-server/#comments</comments>
		<pubDate>Sat, 05 Dec 2009 11:59:40 +0000</pubDate>
		<dc:creator>smanne</dc:creator>
				<category><![CDATA[Configuration]]></category>

		<guid isPermaLink="false">http://debianzone.com/?p=43</guid>
		<description><![CDATA[To change the host name of current session use
/bin/hostname your-host-name
To change the host name permanently use
/etc/hostname
/etc/init.d/hostname.sh start
Share/Bookmark]]></description>
			<content:encoded><![CDATA[<p>To change the host name of current session use
<pre>/bin/hostname your-host-name</pre>
<p>To change the host name permanently use
<pre>/etc/hostname
/etc/init.d/hostname.sh start</pre>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fdebianzone.org%2Fchanging-host-name-of-linux-server%2F&amp;linkname=Changing%20host%20name%20of%20Linux%20server">Share/Bookmark</a>]]></content:encoded>
			<wfw:commentRss>http://debianzone.org/changing-host-name-of-linux-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Tools to monitor linux apache server</title>
		<link>http://debianzone.org/tools-to-monitor-linux-apache-server/</link>
		<comments>http://debianzone.org/tools-to-monitor-linux-apache-server/#comments</comments>
		<pubDate>Sun, 29 Nov 2009 08:57:59 +0000</pubDate>
		<dc:creator>smanne</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Analytics]]></category>
		<category><![CDATA[Log analyzer]]></category>
		<category><![CDATA[Log reader]]></category>

		<guid isPermaLink="false">http://debianzone.com/?p=40</guid>
		<description><![CDATA[The following tools are usefull to linux administration and monitoring
RRDTool: RRDtool is the OpenSource industry standard, high performance data logging and graphing system for time series data. Use it to write your custom monitoring shell scripts or create whole applications using its Perl, Python, Ruby, TCL or PHP bindings.
AWStats: AWStats is a free powerful and [...]]]></description>
			<content:encoded><![CDATA[<p>The following tools are usefull to linux administration and monitoring</p>
<p><strong>RRDTool: </strong>RRDtool is the OpenSource industry standard, high performance data logging and graphing system for time series data. Use it to write your custom monitoring shell scripts or create whole applications using its Perl, Python, Ruby, TCL or PHP bindings.<img class="alignnone" title="RRD Tool" src="http://oss.oetiker.ch/rrdtool/stream-pop.png" alt="" width="400" height="129" /></p>
<p><span id="more-40"></span><strong>AWStats: </strong>AWStats is a free powerful and featureful tool that generates advanced web, streaming, ftp or mail server statistics, graphically. This log analyzer works as a CGI or from command line and shows you all possible information your log contains, in few graphical web pages.</p>
<p><img class="alignnone" title="AWStats Screen shot" src="http://awstats.sourceforge.net/docs/images/screen_shot_3.png" alt="" width="120" height="90" /></p>
<p><strong>Analog: </strong>Analog is a program to measure the usage on your web server.       It tells you which pages are most popular, which countries people are       visiting from, which sites they tried to follow broken links from,       and all sorts of other useful information.</p>
<p><img class="alignnone" title="Analog Log sample" src="http://www.chiark.greenend.org.uk/~sret1/stats/browsum.png" alt="" width="600" height="270" /></p>
<p><strong>Piwik: </strong>Piwik is a downloadable, open source (GPL licensed) web analytics software program. It provides you with detailed real time reports on your website visitors: the search engines and keywords they used, the language they speak, your popular pages…</p>
<p>Piwik aims to be an open source alternative to <a href="http://google.com/analytics" target="_blank">Google Analytics</a>.</p>
<p>Piwik is a PHP MySQL software program that you download and install on your own webserver. At the end of the five minute installation process you will be given a JavaScript tag. Simply copy and paste this tag on websites you wish to track (or use an <a href="http://piwik.org/faq/plugins/#faq_20">existing plugin</a> to do it automatically for you).</p>
<p><img class="alignnone" title="Piwik Screen shot" src="http://piwik.org/blog/wp-content/uploads/2008/11/piwik-e280ba-web-analytics-reports7.png" alt="" width="622" height="367" /></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fdebianzone.org%2Ftools-to-monitor-linux-apache-server%2F&amp;linkname=Tools%20to%20monitor%20linux%20apache%20server">Share/Bookmark</a>]]></content:encoded>
			<wfw:commentRss>http://debianzone.org/tools-to-monitor-linux-apache-server/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->