<?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>Steven Harms &#187; play-framework</title>
	<atom:link href="http://www.sharms.org/blog/tag/play-framework/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sharms.org/blog</link>
	<description>Life, Linux and Technology</description>
	<lastBuildDate>Sun, 28 Aug 2011 18:02:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Installing Play Framework on OpenBSD 4.6</title>
		<link>http://www.sharms.org/blog/2009/12/installing-play-framework-on-openbsd-4-6/</link>
		<comments>http://www.sharms.org/blog/2009/12/installing-play-framework-on-openbsd-4-6/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 18:16:49 +0000</pubDate>
		<dc:creator>sharms</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[openbsd]]></category>
		<category><![CDATA[play-framework]]></category>

		<guid isPermaLink="false">http://www.sharms.org/blog/?p=658</guid>
		<description><![CDATA[OpenBSD OpenBSD is a free, reliable and secure operating system. From a configuration standpoint it is both minimal and simple, which is great for those who want to get started quickly. For the purposes of this tutorial, it is assumed the user has already installed OpenBSD. If not, check out openbsd101.com for guides on installation [...]


Related posts:<ol><li><a href='http://www.sharms.org/blog/2008/12/64-bit-java-browser-plugin/' rel='bookmark' title='Permanent Link: 64-bit Java browser plugin'>64-bit Java browser plugin</a></li>
<li><a href='http://www.sharms.org/blog/2009/06/installing-groupwise-8-client-in-ubuntu-jaunty-amd64/' rel='bookmark' title='Permanent Link: Installing Groupwise 8 Client in Ubuntu Jaunty AMD64'>Installing Groupwise 8 Client in Ubuntu Jaunty AMD64</a></li>
<li><a href='http://www.sharms.org/blog/2007/03/making-openbsd-more-friendly/' rel='bookmark' title='Permanent Link: Making OpenBSD more friendly'>Making OpenBSD more friendly</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><strong>OpenBSD</strong><br />
<a href="http://www.openbsd.org">OpenBSD</a> is a free, reliable and secure operating system.  From a configuration standpoint it is both minimal and simple, which is great for those who want to get started quickly.  For the purposes of this tutorial, it is assumed the user has already installed OpenBSD.  If not, check out <a href="http://www.openbsd101.com/">openbsd101.com</a> for guides on installation etc.</p>
<p><strong>Play Framework</strong><br />
<a href="http://www.playframework.org">The Play Framework</a> is a java based web programming system, that includes the enterprise features of java with the methodology of Ruby on Rails or Django.  You can view an <a href="http://www.playframework.org/">introductory screencast</a> at their website which shows just how easy and powerful it is.</p>
<p><strong>Allow your user to sudo</strong><br />
Since this blog is aggregated on many Ubuntu sites, we will use the sudo facility to run commands instead of root.  To enable sudo the same way Ubuntu does:</p>
<ol>
<li>su &#8211; # Get root</li>
<li>visudo</li>
<li>Uncomment the line &#8220;%wheel  ALL=(ALL) SETENV: ALL&#8221;</li>
</ol>
<p><strong>Install packages</strong><br />
For the play framework the launch scripts are in python.  Zsh is installed for a better shell, and vim is installed for a full featured editor.</p>
<pre class="brush: bash">
export PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/4.6/packages/i386/
sudo pkg_add zsh jre-1.7.0.00b59p0 wget python-2.6.2p0 vim-7.2.190p1-no_x11 unzip
sudo ln -sf /usr/local/bin/python2.6 /usr/bin/python
sudo ln -sf /usr/local/bin/python2.6-config /usr/bin/python-config
sudo ln -sf /usr/local/bin/pydoc2.6  /usr/bin/pydoc
</pre>
<p><strong>Install Play Framework</strong></p>
<pre class="brush: bash">
cd /usr/local
sudo wget http://download.playframework.org/releases/play-1.0.zip
sudo unzip play-1.0.zip
</pre>
<p><strong>Start your project</strong></p>
<pre class="brush: bash">
cd /var
sudo /usr/local/play-1.0/play new ourappname
sudo chown -R ourusername ourappname
cd ourappname
# Set java home -- you can set this permanently in /etc/login.conf or in a startup script
export JAVA_HOME=&quot;/usr/local/jre-1.7.0/&quot;
/usr/local/play-1.0/play run
</pre>
<p><strong>Done</strong><br />
Your test app is now listening on port 9000 of the systems IP.  That is all there is to it.  Make sure to check out the excellent documentation available for the Play Framework.</p>
<p><a href="http://www.sharms.org/blog/wp-content/uploads/play.jpg"><img src="http://www.sharms.org/blog/wp-content/uploads/play.jpg" alt="play" title="play" width="650" height="519" class="alignleft size-full wp-image-663" /></a></p>


<p>Related posts:<ol><li><a href='http://www.sharms.org/blog/2008/12/64-bit-java-browser-plugin/' rel='bookmark' title='Permanent Link: 64-bit Java browser plugin'>64-bit Java browser plugin</a></li>
<li><a href='http://www.sharms.org/blog/2009/06/installing-groupwise-8-client-in-ubuntu-jaunty-amd64/' rel='bookmark' title='Permanent Link: Installing Groupwise 8 Client in Ubuntu Jaunty AMD64'>Installing Groupwise 8 Client in Ubuntu Jaunty AMD64</a></li>
<li><a href='http://www.sharms.org/blog/2007/03/making-openbsd-more-friendly/' rel='bookmark' title='Permanent Link: Making OpenBSD more friendly'>Making OpenBSD more friendly</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.sharms.org/blog/2009/12/installing-play-framework-on-openbsd-4-6/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

