<?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>ArvinderKang.com &#187; XServe</title>
	<atom:link href="http://arvinderkang.com/tag/xserve/feed/" rel="self" type="application/rss+xml" />
	<link>http://arvinderkang.com</link>
	<description>The world is my backyard.</description>
	<lastBuildDate>Thu, 29 Jul 2010 22:58:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Ubuntu Install on XServe G5</title>
		<link>http://arvinderkang.com/2009/02/27/ubuntu-install-on-xserve-g5/</link>
		<comments>http://arvinderkang.com/2009/02/27/ubuntu-install-on-xserve-g5/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 23:35:15 +0000</pubDate>
		<dc:creator>Arvinder Kang</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[8.04]]></category>
		<category><![CDATA[hardy]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[ppc]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[XServe]]></category>

		<guid isPermaLink="false">http://arvinderkang.com/2009/02/27/ubuntu-install-on-xserve-g5/</guid>
		<description><![CDATA[I hardly get enough time away from my Mac machines, so I planned to get back in touch with the penguin, and to build a test server. My plan was to install Xen, and then run a Linux instance on &#8230; <a href="http://arvinderkang.com/2009/02/27/ubuntu-install-on-xserve-g5/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://arvinderkang.com/wp-content/uploads/2009/02/tux-by-daniele-florio.jpg" alt="Tux by Daniele Florio" /></p>

<p>I hardly get enough time away from my Mac machines, so I planned to get back in touch with the penguin, and to build a test server.</p>

<p>My plan was to install <a href="http://www.xen.org/" title="Welcome to xen.org, home of the Xen&reg; hypervisor, the powerful open source industry standard for virtualization.">Xen</a>, and then run a Linux instance on top of it. However the only spare machine was a G5 Xserve, I could not find any information of Xen on ppc processor.</p>

<p>Choosing Linux flavour for ppc wasn&#8217;t easy either. Most of the open source linux flavours have stopped supporting ppc, as it seems like a dying platform. Red Hat and Suse seem to support the architecture in their enterprise versions. I did&#8217;nt wanted to run <a href="http://www.yellowdoglinux.com/" title="Fixstars -- Linux for IBM, AMCC, and Freescale Power Architecture, including the PowerStation, PLAYSTATION, PS3, ZEGO BCU-100, QS22, Mercury Cell, and Apple PowerPC.">YDL</a>, the only flavour I could find truely supporting ppc architecture.</p>

<p>Finally, I decided to go ahead with the Ubuntu 8.04 Server community version for ppc.</p>

<p><span id="more-176"></span>
Once decided, the install was pretty much a breeze. Popped in the CD, and followed GUI to install. Chose ssh-server and Lamp Server during install option.</p>

<p>After the server restart, configured the network interface <code>/etc/network/interfaces</code> to provide a static address.Restarted the network.</p>

<pre><code>sudo /etc/init.d/networking restart
</code></pre>

<p>Update the installation. I prefer aptitude over apt-get.</p>

<pre><code>sudo aptitude update
sudo aptitude safe-upgrade
</code></pre>

<p>It is a good idea to synchronize the system clock with an NTP (network time protocol) server over the internet.</p>

<pre><code>sudo aptitude install ntp ntpdate
</code></pre>

<p>Check hostname and hostname -f return the same value. It matched our specified domain name in the file <code>/etc/hosts</code> to FQDN (Fully Qualified Domain Name) of the machine.</p>

<p><strong>Lets bring the walls up</strong></p>

<p>Ubuntu comes with a <a href="http://www.netfilter.org/projects/iptables/index.html" title="">iptables</a>-wrapper known as <a href="https://wiki.ubuntu.com/UbuntuFirewall">UFW</a>.</p>

<pre><code>sudo aptitude install ufw
</code></pre>

<p>Turn firewall on.</p>

<pre><code>sudo ufw enable
</code></pre>

<p>Turn firewall logging on.</p>

<pre><code>sudo ufw logging on
</code></pre>

<p>Display status of firewall and ports in the listening state</p>

<pre><code>sudo ufw status
</code></pre>

<p>I changed the rules so that the output of above command was</p>

<pre><code>Firewall loaded

To                         Action  From
--                         ------  ----
Anywhere                   ALLOW   xx.xx.xx.0/24
22:tcp                     ALLOW   xx.xx.xx.0/24
80:tcp                     ALLOW   Anywhere
80:udp                     ALLOW   Anywhere
</code></pre>

<p>Therefore only port 80 was open to outside world, for serving web pages, and ssh port for local network. The rest of the requests were dropped.</p>

<p>To make sure, use <a href="http://nmap.org/" title="Nmap - Free Security Scanner For Network Exploration &amp; Security Audits.">nmap</a> from another machine to do a port scan of your server. Only port 80 should be open from outside your lan.</p>

<p>As the result of port scan delivered expected results, I paused for a while and looked at my old friend, <a href="http://www.clubpenguin.com/" title="Club Penguin - Waddle around and meet new friends!">penguin</a>. I flashed-forward to years of our friendship, of growing up churrning big-a$$ web apps, becoming millionaires, and the taking a vacation to Mars, our children going to the same schools, and becoming friends and fighting amoung themselves all the time. Ah! It was such a touching moment! I&#8217;m glad on our renewed friendship.</p>

<p>Next time we&#8217;ll bring in PHP and MySQL, the <a href="http://www.apache.org/" title="Welcome! - The Apache Software Foundation">Indian tribe</a> some <a href="http://www.ruby-lang.org/en/" title="Ruby Programming Language">Jewels</a> and another <a href="http://en.wikipedia.org/wiki/FF_Scala" title="FF Scala - Wikipedia, the free encyclopedia">Dutch-looking</a>  <a href="http://www.scala-lang.org/" title="The Scala Programming Language">friend</a>.</p>

<p>This party is gonna rock!</p>

<p>Image credits: Tux by Daniele Florio shared under CC Share Alike licence</p>
]]></content:encoded>
			<wfw:commentRss>http://arvinderkang.com/2009/02/27/ubuntu-install-on-xserve-g5/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! -->