Tag Archives: getting started


Getting Started with Play Framework : Ubuntu/Linux Mint

What is Play Framework ?

Play Framework is a simple and powerful web development framework for Java/Scala. It’s very inspired from Ruby On Rails framework, so it’s like Rails, but for Java/Scala (initially it supported only Java, but now it also supports Scala (a programming language, very similar to Java, with some functional features, designed to be as a better Java)). Unlike other complicated java web development frameworks, Play is very simple and highly productive.


Play is a lightweight, fast and highly scalable web development framework, with web friendly architecture and features (stateless, low resource consumption, reactive model based on Iteratee IO etc). So if you’re a Java/Scala developer, who want to develop cool web applications – then Play is a great choice for you.

Installing Play Framework

You must have Java installed (JDK 6 or later), read this tutorial on installing JDK in Ubuntu / Linux Mint if you haven’t already done that. When you’re done setting up java development kit, open a terminal and type javac to make sure everything is setup properly.

Download Play Framework

Download the latest version of Play (currently, it’s v2.1.0) and extract it to your Home Directory (it can be anywhere, but you should have write permission).

Set Path Variable for Play

Add the play to your path variable. Suppose, you have extracted the play framework to ~/packages/play-2.1.0 directory. Then open a terminal and type :

export PATH=$PATH:~/packages/play-2.1.0/

Now, if you type play at the terminal, you should have play command available.


Creating your first app

Now, you have successfully installed the play framework – Let’s create a simple application “TestApp” (it will simply say : “Hello Play”, not any useful, but you get an overview).

play new TestApp

Now, it will prompt for few questions (Application Name, Java/Scala etc), then move into the application directory and start the application.

cd TestApp

Now, you will have the play prompt, So you can run the application –

[TestApp]$ run

Open your browser and type the address http://localhost:9000, the default page should appear.


Now, open the file App/Controllers/Application.java in your favorite text editor (Emacs, Vi, gedit etc) or IDE (geany, Eclipse etc) and replace the existing return line (in index method) with this :

return ok("Hello Play");

Now, visit the address http://localhost:9000 (or refresh if it’s slready loaded) and you should see the “Hello Play” greetings. Yeah! our first useless app is running :)


Recommended Resources For Further learning!

Linux Mint 13 : Cinnamon Desktop

Getting Started with Linux Mint 13 “Maya”

Linux Mint 13 (Maya) is based on Ubuntu 12.04 LTS Edition, but instead of using Unity as the default Desktop, Linux Mint uses MATE Desktop, although, It is also available with various other Desktop such as Cinnamon (A new Desktop based on Gnome Shell), KDE, XFCE etc.

Additionally, a lot of useful programs and codecs/libraries comes pre-installed in Linux Mint – so it makes Linux Mint 13, a very beginner friendly – GNU/Linux distribution.

This post is primarily written for those who are new to Linux Mint (probably most of them are windows losers users, who want to migrate from Windows to a Desktop friendly – GNU/Linux distribution (such as Linux Mint, Ubuntu, OpenSuse etc)), so that they can easily start using Linux Mint for their common tasks such as Internet Surfing, watching Movies, Listening Songs, Creating Documents/Tables etc or the specific tasks such as programming, recording (audio/video productions), graphics designing etc depending on their need.

Linux Mint 13 : Cinnamon Desktop

#1. Install Linux Mint 13 on Your Computer

Although, you can run Linux Mint using a live USB or DVD but it would be better if you install on your hard disk if you really want to enjoy the full experience of Linux Mint. You must pick up the right edition – Linux Mint 13 with MATE, Cinnamon, KDE or XFCE Desktop for the corresponding architecture (32 or 64 bit) and with the codecs of-course (although you can install that stuffs later but it will save your time).

MATE is the most stable desktop, Cinnamon is cool and a new desktop which looks very promising, but it’s under heavy development – so it may not be suitable for production environment. KDE is also cool and pretty stable, and you may like it if you are migrating from windows. XFCE is very fast and lightweight desktop, so it’s a decent option for you if you want a desktop that just works – pretty fast, without much fancy eye candy stuffs (although, you can still do such things in XFCE but it requires few extra steps).

Update! Added a screencast describing installation steps of Linux Mint 13 Maya Cinnamon edition.  It may help you in installing Linux Mint – on a custom partition – in parallel with your existing operating systems such as Windows 7, Mac OS X etc.

#2. Things to Do after installing Linux Mint 13

Although, Linux Mint 13 comes with codecs and libraries/plugins pre-installed but there are still a lot of things you are recommended to do, just after a fresh installation. I’ve already explained few things you must do after installing Linux Mint 13.

#3. Guide/Manual for Reference

For reference, you can use this free PDF as a reference for learning some cool stuffs. The pdf explains about Ubuntu 12.04 but most of tips work perfectly in Linux Mint too, because Linux Mint 13 is based on Ubuntu 12.04 LTS, just leave out the ubuntu specific things such as Unity.

Try Git

Getting Started with Git using “Try Git”

Git is the most popular version control system, developed by Linus Torvalds (yeah!, he is the same guy – Creator of Linux) – for maintaining linux kernel code but now adopted by most of the developers.

Git is a distributed, fast, and efficient version control system (and of course – it’s a free and open source software), and most importantly –  it’s easy to learn. So if you’re new to version control system and need one for your next project then better start with git.

New to git ? Try Git in Your Browser (No Setup required)

Try Git is a simple web application that will explain some basics of git, in a very interactive way (just like try ruby). Since it’s browser based app so you don’t need to setup anything –  a modern web browser (such as Firefox, Chrome .. but not I.E) is enough. So in very short time – you can easily get an overview of git, it’s features and how it works (it simulates a git environment and allow you to execute git commands in browser).Try Git

It has been developed by Github (Social Coding – like a Facebook for Developers) and Envylabs (company behind codeschool and TryRuby).

Try Git – Learning git in 15 minutes

Recommended Links for Learning more about Git

ubuntu-12-04 with unity

Ubuntu 12.04 Guide for Absolute Beginners : Free Ebook(PDF)

Ubuntu is very simple and fun to use but absolute beginners or newbies (or Windows/Mac users) often feel difficulties, even in switching a single application; In case of operating system ? it is like – moving to an alien planet.

Thanks to Ubuntu Community for writing a getting started guide for beginners. It’s a free Ubuntu manual for everyone, and of course it’s very helpful for beginners who are totally strange to Ubuntu. It explains from basic concepts to setting up printers and also includes troubleshooting, with full of sccreenshots. Even if you’re not an absolute beginner, you can still find it useful sometimes.

The New version of manual has been released, so you can download it for Ubuntu 12.04 LTS.

Download Getting Started Manual for Ubuntu 12.04 LTS (Free PDF)

Now, Printed version of the getting started manual is also available at $7.75.

Buy Printed Version of the Ubuntu 12.04 manual

Recommended Link(s) :

ubuntu-12-04 with unity

Getting Started with Ubuntu 12.04 LTS (Precise Pangolin)

Ubuntu 12.04 LTS (Long Term Support, official support for 5 years, good for stable experience), code named as Precise Pangolin (Code Name) has released. If you’re new to Ubuntu or may be you’re totally new to GNU/Linux environment (coming from Windows or Mac OS X) and wondering how to get things done, this post might help you a lot in getting started on Ubuntu 12.04 LTS.

Why Ubuntu ?

Ubuntu is a free and open operating system (such as Windows or Mac (for the sake of understanding)). Since Ubuntu is a free software, so it means you’re free to experiment with it (which is probably illegal in any proprietary operating systems such as Windows or Mac), share it or do whatever you want, no one cares. So first of all remove all the fear – it’s an open world (for open minded) where freedom is the most important thing so you can customize/tweak/modify/change the Ubuntu as you want – there are no limitation, source code is also available, so it means that the only limit is your imagination.

ubuntu-12-04 with unity

Getting Started with Ubuntu 12.04 LTS

12.04 LTS is the latest stable version. If you haven’t download it yet, then

If you’re a developer (web or mobile) then might want to checkout these links –

NOTE : I will be adding some more stuffs later, and also an ebook for beginner ubuntu users.