<?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; install</title>
	<atom:link href="http://arvinderkang.com/tag/install/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>Installing Scala on Snow Leopard</title>
		<link>http://arvinderkang.com/2009/09/01/installing-scala-on-snow-leopard/</link>
		<comments>http://arvinderkang.com/2009/09/01/installing-scala-on-snow-leopard/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 21:28:40 +0000</pubDate>
		<dc:creator>Arvinder Kang</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[scala]]></category>
		<category><![CDATA[snow leopard]]></category>

		<guid isPermaLink="false">http://arvinderkang.com/2009/09/01/installing-scala-on-snow-leopard/</guid>
		<description><![CDATA[These are instructions for quickly installing Scala. Scala is a general purpose language almost completely interoperable with Java, and having features of object-oriented and functional languages. I installed Scala in /usr/local , the reason for which can be found here. &#8230; <a href="http://arvinderkang.com/2009/09/01/installing-scala-on-snow-leopard/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>These are instructions for quickly installing <a href="http://www.scala-lang.org/" title="The Scala Programming Language">Scala</a>. Scala is a general purpose language almost completely interoperable with Java, and having features of object-oriented and functional languages.</p>

<p>I installed Scala in <code>/usr/local</code> , the reason for which can be found <a href="http://hivelogic.com/articles/using_usr_local/" title="Hivelogic - Using /usr/local">here</a>.</p>

<p><span id="more-195"></span></p>

<h2>Prerequisite</h2>

<p>Before starting installation, you will need **:</p>

<ol>
<li>Mac OS X 10.6 Snow Leopard </li>
<li>The latest Xcode Tools (from the Snow Leopard DVD or downloaded from Apple — the 10.5 version won’t work)</li>
<li>Confidence running UNIX commands using the Terminal</li>
</ol>

<h2>Step 1: The PATH</h2>

<p>Launch Terminal from <code>/Applications/Utilities</code> folder.</p>

<p>First lets set the PATH variable using a text editor. I use <a href="http://macromates.com/" title="TextMate — The Missing Editor for Mac OS X">Textmate</a> (hence the <code>mate</code> command). You can use Textmate, <a href="http://smultron.sourceforge.net/" title="Smultron by Peter Borg">Smultron</a> or <a href="http://www.vim.org/" title="welcome home : vim online">vim</a>.</p>

<pre><code>mate ~/.bash_profile
</code></pre>

<p>At the end of this file add(even if it is blank)</p>

<pre><code>export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/scala/scala-2.7.5.final/bin:$PATH"
</code></pre>

<p>Save and close the file. Close the Terminal. On restarting the terminal, enter following command:</p>

<pre><code>echo $PATH
</code></pre>

<p>We should be able to see <code>/usr/local/scala/scala-2.7.5.final/bin</code> as one of the paths. Note: If we were compiling scala, we would prefer its binaries to be at <code>/usr/local/bin/scala</code>. However we are taking the easier route.</p>

<h2>Step 2: Download Scala</h2>

<p>I keep all my software installers that I install away from Application folder, in a folder in home directory.</p>

<p>Make a new folder:</p>

<pre><code>mkdir ~/SourceFolder
cd ~/SourceFolder
</code></pre>

<p>Download scala IzPack Installer:</p>

<pre><code>curl -O http://www.scala-lang.org/downloads/distrib/files/scala-2.7.5.final-installer.jar
</code></pre>

<h2>Step 3: Install</h2>

<p>The installer needs administrator permission. Hence install by double click would not complete due to permissions issue.</p>

<p>On the Terminal:</p>

<pre><code>sudo java -jar scala-2.7.5.final-installer.jar
</code></pre>

<p>Type in the password when prompted. Installer GUI would start</p>

<p><img src="http://arvinderkang.com/wp-content/uploads/2009/09/scala_installer_1.png" alt="Scala Installer 1" /></p>

<p>Choose language.</p>

<p><img src="http://arvinderkang.com/wp-content/uploads/2009/09/scala_installer_2.png" alt="Scala Installer 2" /></p>

<p>Goto next.</p>

<p><img src="http://arvinderkang.com/wp-content/uploads/2009/09/scala_installer_3.png" alt="Scala Installer 3" /></p>

<p>Read and accept the license.</p>

<p><img src="http://arvinderkang.com/wp-content/uploads/2009/09/scala_installer_4.png" alt="Scala Installer 4" /></p>

<p>By default, the installer will install in <code>/usr/local/</code>. However choose <code>/usr/local/scala/</code>, otherwise the installer tends to overwrite <code>/usr/local</code>.</p>

<p><img src="http://arvinderkang.com/wp-content/uploads/2009/09/scala_installer_5.png" alt="Scala Installer 5" /></p>

<p>Scala is installer.</p>

<p>To verify, we&#8217;ll run Scala interpreter:</p>

<pre><code>scala
</code></pre>

<p>On my machine, it shows:</p>

<pre><code>Welcome to Scala version 2.7.5.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_15).
Type in expressions to have them evaluated.
Type :help for more information.

scala&gt;
</code></pre>

<p>Type <code>:quit</code> to exit from the interpreter.</p>

<p>Scala is installed on Snow Leopard.</p>

<p>&#42; The writing style of tutorial is shamelessly inspired by <a href="http://hivelogic.com/" title="Hivelogic">Hivelogic</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://arvinderkang.com/2009/09/01/installing-scala-on-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>
		<item>
		<title>Installing command line MP3 player</title>
		<link>http://arvinderkang.com/2008/06/28/installing-command-line-mp3-player/</link>
		<comments>http://arvinderkang.com/2008/06/28/installing-command-line-mp3-player/#comments</comments>
		<pubDate>Sat, 28 Jun 2008 11:28:23 +0000</pubDate>
		<dc:creator>Arvinder Kang</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[mp3 player]]></category>
		<category><![CDATA[mpg123]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://arvinderkang.com/2008/06/29/installing-command-line-mp3-player/</guid>
		<description><![CDATA[mpg123 is a real time MPEG 1.0/2.0/2.5 audio player for layers 1,2 and 3. I was playing with Ruby scripts and needed a command line mp3 player which was not a resource hog. Steps I took for my OS X &#8230; <a href="http://arvinderkang.com/2008/06/28/installing-command-line-mp3-player/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://arvinderkang.com/wp-content/uploads/2008/06/mpg-123-player.png" alt="Mpg 123 Player" /></p>

<p><a href="http://www.mpg123.de/" title="mpg123, Fast MP3 Player for Linux and UNIX systems">mpg123</a> is a real time MPEG 1.0/2.0/2.5 audio player for layers 1,2 and 3.</p>

<p>I was playing with Ruby scripts and needed a command line mp3 player which was not a resource hog.</p>

<p>Steps I took for my OS X (Should work on Linux/Unix box):</p>

<p>Download the latest version from <a href="http://www.mpg123.de/download.shtml" title="mpg123: download">the website</a>.</p>

<p>Untar the archive</p>

<pre><code>tar -xvf mpg123-1.4.3.tar
</code></pre>

<p>Compile and install the player</p>

<pre><code>./configure --prefix=/usr/local/mpg123
make
make install
</code></pre>

<p>Add the path to .bash&#95;profile</p>

<pre><code>echo 'export PATH=/usr/local/mpg123/bin:$PATH' &gt;&gt; ~/.bash_profile
</code></pre>

<p>Load the new path</p>

<pre><code>source ~/.bash_profile
</code></pre>

<p>Enjoy playing music from command-line!</p>

<pre><code> mpg123 ~/Music/Bagho_Bagh_Gippy_Grewal.mp3
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://arvinderkang.com/2008/06/28/installing-command-line-mp3-player/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! -->