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 etc.
Play Framework
The Play Framework 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 introductory screencast at their website which shows just how easy and powerful it is.
Allow your user to sudo
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:
- su – # Get root
- visudo
- Uncomment the line “%wheel ALL=(ALL) SETENV: ALL”
Install packages
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.
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
Install Play Framework
cd /usr/local sudo wget http://download.playframework.org/releases/play-1.0.zip sudo unzip play-1.0.zip
Start your project
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="/usr/local/jre-1.7.0/" /usr/local/play-1.0/play run
Done
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.
Related posts:
- Installing Groupwise 8 Client in Ubuntu Jaunty AMD64 Download the Groupwise 8 Linux Client Tarball from Novell:...

#1 by Gary Compasso on December 21, 2009 - 9:47 pm
Quote
Your blog sucks. You should give it up and just become a soy bean farmer.