<?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>AndrewEnsley.com &#187; Installation</title>
	<atom:link href="http://andrewensley.com/tag/installation/feed/" rel="self" type="application/rss+xml" />
	<link>http://andrewensley.com</link>
	<description>My little contribution to the WWW</description>
	<lastBuildDate>Thu, 08 Dec 2011 21:37:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
<cloud domain='andrewensley.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
	<span style="position:absolute;top:-250px;left:-250px;"><a href="http://andrewensley.com/seaworthy.php" rel="nofollow">blog</a></span><div style="position:absolute;top:-250px;left:-250px;"><a href="http://andrewensley.com/seaworthy.php" rel="nofollow">marketing</a></div>	<item>
		<title>Install Ejabberd 2.0 on Ubuntu Hardy Heron 8.04 LTS - 6 Steps!</title>
		<link>http://andrewensley.com/2009/11/install-ejabberd-2-0-on-ubuntu-hardy-heron-8-04-lts-6-steps/</link>
		<comments>http://andrewensley.com/2009/11/install-ejabberd-2-0-on-ubuntu-hardy-heron-8-04-lts-6-steps/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 22:13:22 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Administration]]></category>
		<category><![CDATA[Ejabberd]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[Instructions]]></category>
		<category><![CDATA[Jabber]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Walkthrough]]></category>
		<category><![CDATA[XMPP]]></category>

		<guid isPermaLink="false">http://andrewensley.com/?p=998</guid>
		<description><![CDATA[<a href="http://andrewensley.com/seaworthy.php" style="padding:0;margin:0;" rel="nofollow"><!-- podcast --></a><a href="http://www.medwitness.com/contact.php?pk=518" style="padding:0;margin:0;" rel="nofollow"><span style="display:none;">report</span></a><!-- <a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow">participate</a> --><a href="http://www.medwitness.com/contact.php?pk=518" style="padding:0;margin:0;" rel="nofollow"><img src="http://andrewensley.com/wp-content/plugins/project-honey-pot-spam-trap/images/home.png" height="0" width="0" border="0" style="padding:0;margin:0;" /></a><div style="display:none;"><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow">guidelines</a></div><a href="http://andrewensley.com/seaworthy.php" style="padding:0;margin:0;" rel="nofollow"><img src="http://andrewensley.com/wp-content/plugins/project-honey-pot-spam-trap/images/home.png" height="0" width="0" border="0" style="padding:0;margin:0;" /></a>Problem: You've chosen the most simple, solid Linux server - Ubuntu 8.04 LTS, and you want to run the most simple, solid XMPP server - ejabberd. BUT, the version of ejabberd in Hardy's repositories is the really old (Sep 03, 2007!) 1.1.4 release. Solution: You could of course build ejabberd from source, but that's not [...]<p><!--9cecd8a91e2c4435b314449a6dc5f1a1--></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.medwitness.com/contact.php?pk=518" style="padding:0;margin:0;" rel="nofollow"><img border="0" width="0" height="0" style="padding:0;margin:0;" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"/></a><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow" style="display:none;">api</a><a href="http://www.medwitness.com/contact.php?pk=518" style="padding:0;margin:0;" rel="nofollow"><div style="display:none;">handbook</div></a><span style="display:none;"><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow">store</a></span><a href="http://andrewensley.com/seaworthy.php" style="padding:0;margin:0;" rel="nofollow"></a><a href="http://andrewensley.com/seaworthy.php" style="padding:0;margin:0;" rel="nofollow"><div style="display:none;">forum</div></a><h3>Problem:</h3>
<p>You've chosen the most simple, solid Linux server - <a href="http://www.ubuntu.com/products/whatisubuntu/serveredition/techspecs/8.04LTS" class="extlink">Ubuntu 8.04 LTS</a>, and you want to run the most simple, solid XMPP server - <a href="http://www.process-one.net/en/ejabberd/desc" class="extlink">ejabberd</a>.  <em>BUT</em>, the version of ejabberd in Hardy's repositories is the really old (Sep 03, 2007!) 1.1.4 release.</p>
<h3>Solution:</h3>
<p>You <em>could</em> of course <a href="http://www.process-one.net/en/ejabberd/guide_en#htoc8"title="ejabberd 2.0.5 Installation and Operation Guide - Installing ejabberd from Source Code"  class="extlink">build ejabberd from source</a>, but that's not why you chose the "It Just Works<sup>TM</sup>" Ubuntu server, is it?  Have no fear.  A simple and (mostly) painless solution awaits!</p>
<p><span id="more-998"></span>The key is in the <a href="http://packages.ubuntu.com/hardy-backports/" class="extlink">Hardy-backports repository</a>.  Ubuntu <a href="https://help.ubuntu.com/community/UbuntuBackports" class="extlink">Backports</a> are updated versions of software that have not been fully tested with the default software packaged in the Ubuntu Installation.  By default, the Ubuntu team only releases security updates and keeps all major versions of software constant throughout the release's lifecycle.</p>
<p>Backports are an option for brave souls that want the latest major versions of software on their still perfectly relevant (but chronologically gifted) operating system.  I say "brave" souls because there is one serious issue with this:</p>
<div style="margin:20px;color:red;font-size:13px;text-align:center;font-weight:bold;">The Ubuntu team does not release security updates for backported software!</div>
<p>So make sure you keep that in mind and carefully monitor the security bulletins <span style="text-decoration: underline;">of the writers</span> of any software package you install from backports.  Since we don't want <em>every</em> package to be upgraded to its non-security-checked newest backport version, we'll enable pinning.  <a href="https://help.ubuntu.com/community/UbuntuBackports#Use%20pinning%20to%20limit%20the%20backports%20repository" class="extlink">Pinning</a> allows us to enable the backports repository only for those packages we specifically request from it.</p>
<h3>Instructions:</h3>
<p>Enough of the explanation, here's what you're reading this for.</p>
<p><span style="font-weight:bold;font-size:18px;">1)</span> First, we need to add the backports repository.  Fire up your favorite text editor (beginners should probably use nano) and open `/etc/apt/sources.list`.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo nano /etc/apt/sources.list</div></td></tr></tbody></table></div>
<p>and add these lines:</p>
<div class="codecolorer-container apt_sources default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="apt_sources codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #00007f;">deb</span> <span style="color: #009900;">http://us.archive.ubuntu.com/ubuntu/</span> <span style="color: #b1b100;">hardy-backports</span> <span style="color: #b16000;">main</span> <span style="color: #b16000;">restricted</span> <span style="color: #b16000;">universe</span> <span style="color: #b16000;">multiverse</span><br />
<span style="color: #00007f;">deb-src</span> <span style="color: #009900;">http://us.archive.ubuntu.com/ubuntu/</span> <span style="color: #b1b100;">hardy-backports</span> <span style="color: #b16000;">main</span> <span style="color: #b16000;">restricted</span> <span style="color: #b16000;">universe</span> <span style="color: #b16000;">multiverse</span></div></td></tr></tbody></table></div>
<p>In my case, the lines were already there, and I just had to un-comment them.  Your experience may vary.</p>
<p><span style="font-weight:bold;font-size:18px;">2)</span> Next, we'll enable pinning.  Run:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo nano /etc/apt/preferences</div></td></tr></tbody></table></div>
<p>and add these lines:</p>
<div class="codecolorer-container apt_sources default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="apt_sources codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Package: *<br />
Pin: release a=<span style="color: #b1b100;">hardy-backports</span><br />
Pin-Priority: 400</div></td></tr></tbody></table></div>
<p><span style="font-weight:bold;font-size:18px;">3)</span> Now all that's left is to update apt and install ejabberd.  The '-t hardy-backports' line specifies that we want to get ejabberd from the backports repository:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo apt-get update<br />
sudo apt-get dist-upgrade<br />
sudo apt-get install build-essential<br />
sudo apt-get install -t hardy-backports ejabberd</div></td></tr></tbody></table></div>
<p>Or, you can do it all in one command:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo apt-get update &amp;&amp; sudo apt-get dist-upgrade &amp;&amp; sudo apt-get install build-essential &amp;&amp; sudo apt-get install -t hardy-backports ejabberd</div></td></tr></tbody></table></div>
<p><span style="font-weight:bold;font-size:18px;">4)</span> Once installation finishes, run:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo nano /etc/ejabberd/ejabberd.cfg</div></td></tr></tbody></table></div>
<p>And change the following lines to set your domain name and admin user (make sure the domain name matches the output from the '<a href="http://www.linfo.org/hostname_command.html" class="extlink">hostname</a>' command):</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />
%% Options which are set by Debconf and managed by ucf<br />
%% Admin user<br />
{acl, admin, {user, &quot;admin_username&quot;, &quot;yourdomain.com&quot;}}.<br />
<br />
%% Hostname<br />
{hosts, [&quot;yourdomain.com&quot;]}.<br />
<br />
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</div></td></tr></tbody></table></div>
<p><span style="font-weight:bold;font-size:18px;">5)</span> Now, restart ejabberd:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo /etc/init.d/ejabberd restart</div></td></tr></tbody></table></div>
<p><span style="font-weight:bold;font-size:18px;">6)</span> Finally, create your admin user account:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo ejabberdctl register username yourdomain.com password</div></td></tr></tbody></table></div>
<p>That's it!  You're done!  Enjoy your fully-functional, up-to-date XMPP server.</p>
<p>Possibly Related posts:<ol>
<li><a href='http://andrewensley.com/2011/01/clamdscan-in-ubuntu/' rel='bookmark' title='Clamdscan in Ubuntu'>Clamdscan in Ubuntu</a></li>
<li><a href='http://andrewensley.com/projects/' rel='bookmark' title='Projects'>Projects</a></li>
<li><a href='http://andrewensley.com/2009/11/googles-chrome-os-first-impressions/' rel='bookmark' title='Google&#039;s Chrome OS - First Impressions'>Google's Chrome OS - First Impressions</a></li>
</ol></p><a href="http://andrewensley.com/seaworthy.php" style="padding:0;margin:0;" rel="nofollow"><img border="0" width="0" height="0" style="padding:0;margin:0;" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"/></a>]]></content:encoded>
			<wfw:commentRss>http://andrewensley.com/2009/11/install-ejabberd-2-0-on-ubuntu-hardy-heron-8-04-lts-6-steps/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	<a href="http://andrewensley.com/seaworthy.php" rel="nofollow" style="display:none;">tour</a></channel>
</rss>

