To install openELEC for MicroSD using Ubuntu OS, follow the 3 steps.
Step1: DOWNLOAD THE LATEST VERSION OF OpenELEC.
To download the latest version of the file, click the official link and download the latest version(OpenELEC-RPi.arm-3.1.5.tar) to the Downloads folder. Once downoad complete extract the .tar file using default decompression tool(Archive Manager) to the same Downloads folder.
The content of the extracted folder is shown below.
STEP2: INSTALL OpenELEC ON MicroSD card.
The microsd card once inserted onto the computer, a new file /dev/mmcblk0 becomes valid.Once this is mounted the MicroSD can be accessed. Unmount the MicroSD using the code sudo umount /dev/mmcblk0.
Change directory of terminal to the unzipped folder of OpenELEC using command cd /Downloads/OpenELEC-RPi.arm-3.1.5/ (or to the folder in which you have unzipped it).
Installing the file is little diffrent from what is given in official webside manual http://wiki.openelec.tv/index.php?title=Installing_OpenELEC_on_Raspberry_Pi. So to install type command sudo sh create_sdcard /dev/mmcblk0.
Step3: REINSERT THE MicroSD card back to Raspberry Pi and boot the raspberry pi.
To ssh into the OpenELEC of the pi headlessly follow the instructions