How to install Android on VMware Fusion Mac OS X

It’s very interesting that you can actually boot Android on your machine just like any other OS. No kidding, as Android is kind of an another Linux Distro. Is it? No not really, it is based on Linux kernel but it cannot be called as a Linux distribution. Anyways, this is not our topic of blogpost right now, if you want more information on it, look at this Quora question and their answers.

Coming to our topic of interest, one need to have VMware Fusion or a Virtual Box installed on your Mac to install and run Android. We are not going to deal with the Virtual Box this time, it would be a good standalone post for future. So, if you don’t have VMware Fusion, download and install it by going here. It is paid, if you are a student, you can get it for free. If not, you have to purchase it or you can try the trial version or maybe you could torrent it, haha. No, please don’t do that. Who am I kidding, LOL.

Once you got it on your machine. I would like you to visit this amazing site called as, where you can download any version of Android iso images. Hats off for their amazing effort. Very recently, they even added the Android 5.1 too. I haven’t tested that one yet, but I tried playing around with the other latest versions.

Click on the Download page from the side menu, and you can download any of those images from the list. In this post, I am going to show the installation of android-x864.4-r2.iso. 

android-x864.4-r2.iso Download Link

Download the image from the highlighted link as shown in the above picture.

Now, fire up the VMware Fusion on your machine,

Step 1: Click on the “+” button and select New from the drop down menu.


Step 2: Select the Installation Method as “Install from disc or image” and hit continue

Installation Method

Step 3: Now, click on the “Use another disc or disc image button” and choose the downloaded android iso file.

File Chooser

Step 4: After choosing the image, it should show up in the screen like the following: Hit Continue.

File Image

Step 5: You should see the following screen:

Finish Screen

Step 6: Click on the “Customize Settings” button and Save the Virtual Machine image to any desired location on your machine:

Save VM Image

Step 7: Once you save it, there will be two screens which will pop up, a black screen with a play button, and the other with settings:

Play Screen


Step 8: On, the settings screen, select Hard Disk and set it to how much space you wanna allocate: [I chose the default 20 GB space]

Hard Disk Space

Step 9: Select the processors and memory. It will allow you to allocate the RAM for the OS. I gave something above 4 GB, you can set it to 1 or 2 or 3 based on your RAM.


Step 10: After setting the memory, close the window and click on the huge play button on the black screen. That should show you the following screen:

Main Screen

Step 11: Select the last option – “Installation – Install Android-x86 to harddisk” from the boot menu and hit enter.

Screen - boot menu

Step 12: Now, we have to create a partition. You might see only two options. Don’t worry about it. Choose the “Create/Modify Partition“.

Create/Modify Partition

Step 13: We don’t want any GUID Partition Table. So, select the default choice which is “NO” and move on.


Step 14: Now, choose the “New” from the bottom menu. You can navigate through those options by using right and left keyboard keys. Press Enter.

New Partition

Step 15: Select “Primary” and hit enter.


Step 16: Now, you will see the size of the primary partition as 21,467.68 as I have selected 20 GB at the start of our installation. If you have chosen different size, the value would be different. Just hit enter and proceed.


Step 17: Now, choose the “Bootable” which is the default option and hit Enter.


Step 18: Now, you should see “Boot” under the Flags  as shown in the below picture.

Boot Flag

Step 19: As we have made the disk bootable, we have to write these settings to the partition. So, choose Write by navigating with the keys and hit Enter.


Step 20: Now, last step is to confirm and to create a new partition. Type “yes” and hit Enter.


Step 21: Now, navigate to the Quit option in the menu and hit Enter.


Step 22: Its time to select our created partition from the menu and hit enter.

Partition select

Step 23: Now, select the filesystem for the created partition. Choose ext3 and hit Enter. You can even choose other options too if you need.


Step 24: Select “yes” from the menu and hit enter to confirm that you want to choose ext3 and format the partition. sda1 format

Step 25: Now, choose “Yes” to install GRUB boot loader and hit “Enter”.


Step 26: Choose “Yes” to install EFI GRUB2 and hit Enter.


Step 27: Select “Yes” and hit Enter to confirm the format of boot partition.

confirm boot

Step 28: Choose “Yes” to install the /system directory and hit Enter.

/system directory

Step 29: You should see the installation progress bar like the following:

Progress bar

Step 30: You should see the Congratulations screen. Choose “Run Android-X86“.

Run Android

Now, you should see the Android booting up and the “ANDROID” splash screen. Your mouse or trackpad can be used to navigate through the whole user interface. The following are the screens after the android has been booted up on the machine. You have to also, enter your google email id and go through the step by step process of setting up your device.

Screen Shot 2015-10-12 at 1.25.08 PM Screen Shot 2015-10-12 at 1.25.38 PM Screen Shot 2015-10-12 at 1.27.23 PM Screen Shot 2015-10-12 at 1.27.43 PM Screen Shot 2015-10-12 at 1.29.26 PM Screen Shot 2015-10-12 at 1.30.19 PM Screen Shot 2015-10-12 at 1.30.40 PM



How to install Apache Spark on Mac OS X Yosemite

Hello data scientists,

This is a quick installation guide to install the Apache Spark on your local machine. I found the documentation on the website little confusing.

1. Download the Apache Spark tar file from the [Choose any version you would like from the dropdown menu. I recommend anything 1.3.1 or above]

2. Unzip the file into your home directory.

3. Open your terminal and go to the spark directory by doing cd spark-1.3.1 [Assuming you are in your home directory]

4. Now, simply run

build/mvn -Pyarn -Phadoop-2.4 -Dhadoop.version=2.4.0 -DskipTests clean package

5. It takes at least 10 minutes to complete the whole build.

6. After the build’s completed. It should look something like the following:

Build Success

7. Now run

./bin/run-example SparkPi 10

8. You should see something like this:

Screen Shot 2015-07-24 at 1.29.07 PM

As you can see here, it says the Job has been finished which means you have successfully made it running 🙂

Note: I am assuming you have Java installed properly on your machine. This is very important.

Siri’s obsession for the upcoming Apple Watch – Easter Eggs

Now-a-days, the technology companies are planting interesting easter eggs in their software applications, like the recent 007 James Bond submarine car mode in Tesla was really amazing. Apple has planted some in their personal virtual assistant AI Siri. With the date for pre-ordering the most awaited Apple Watch just around the corner, Apple has planted some easter eggs to show the Siri’s obsession for the Apple Watch. If you trigger Siri and ask “What are you doing?” you will get several interesting answers. Here are some of it’s witty answers in the following screen shots.





Try it for yourself and have fun. I loved it 🙂



How to update Ruby 2.0 to the latest version of Ruby on Mac OS X Yosemite?


Mac OS X Yosemite comes included with Ruby 2.0. But when you are working with the latest version of Rails[4.2], you might be in need of the latest version of Ruby [2.2] to have better performance. So, how do you update Ruby? There is a simple solution for this is to use Ruby Version Manager (RVM), which is a standard for upgrading ruby on OSX.

To do this. Open your terminal and run

\curl -L | bash -s stable –ruby

When this is complete, you need to restart your terminal for the rvm to work.

Now, run rvm list known 

This shows the list of versions of the ruby.

Now, run rvm install ruby-2.2.0

If you type ruby -v in the terminal, it still shows you ruby 2.0.

To use the latest installed version. Run rvm use ruby-2.2.0

Now, when you look at the version, it shows you the following:

ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin14]

There you go, you have the latest version of ruby now in use.



Fix to the Error installing Rails on Mac OS X !


I was trying to install Rails on my mac by using the command:

sudo gem install rails

But it threw me the following error

ERROR:  Error installing rails:

ERROR: Failed to build gem native extension.

This happens if I haven’t installed the Xcode Command Line Tools properly. To do that

Run xcode-select –install in terminal

This would install the Xcode command line tools. Thats it, you are good to go.

Re run the sudo gem install rails in the terminal and it will install the rails.

To verify if the rails is installed properly. Run rails -v in terminal.

This shows us the version of the rails installed on the machine.



Installing Windows 8.1 on VMware Fusion on Mac


This post demonstrates how to install Windows on your VMware Fusion on Mac. Frankly speaking, it’s a piece of cake if you do everything right. I did good amount of research on the internet reading various posts and reviews on the performance issues one might have by installing windows on virtual machine.

I have even personally experienced the Windows 8.1 installed using the Boot Camp Assistant on a separate partition. One thing is clear, personally I felt dual booting was a pain. I didn’t like it at all. I have to install all the software applications again in the other partition. I can’t access files from Mac. I can’t utilize my trackpad to the fullest. I ran out of memory in a couple days after installing Visual Studio and I had only 7 GB of space left. I allocated 60 GB for Windows partition because I only have 256 GB Flash drive. I couldn’t update Visual Studio further and I couldn’t install SQL server on the partition because of low disk space. It was terrible. So I got rid of it. One more thing, I spent over an hour to install windows using the boot camp.  One might be thinking, why did I install windows using boot camp instead of installing it on virtual machine. Because, I thought there would be performance issues and I was trolled for doing that.

Okay coming to the configuration of my machine.

I have a MacBook Pro Retina 15 inch Mid 2014 (latest) currently running OS X Yosemite Version 10.10.2

Processor: 2.2 GHz Intel Core i7

Memory: 16 GB  1600 MHz DDR3

Graphics: Intel Iris Pro 1536 MB

Storage: 256 GB Flash

So even though you have an i5 processor with 8 GB of RAM, its good to go.

This post assumes that you have VMware Fusion already installed on your machine. If you don’t have it, download and install it. As I am a student enrolled at a university. I got it for freeeeeeeeeee!! Good stuff!! Anyways, following are the steps to be followed to install Windows 8.1 on your VMware Fusion on a Mac Machine.

Step 1: Fire up VMware Fusion and click on “+” and select “New“.

Screen 1

 Step 2: In the installation method. Select the “Install from disc or image” option and click on continue.

Screen 2

Step 3: Click on “Use another disc or disc imageScreen 3 Step 4: Select the iso image of Windows 8.1 from the file chooser. Once you select it, it appears as the following. Click on continue.

Screen 4

 Step 5: Check Easy Install and give your details and enter the Windows registration key.

Screen 5

Step 6: Select “More Seamless

Screen 6

Step 7:  Here the Virtual Machine automatically assigns the memory, to configure it, you should click on “Customize Settings” and save the virtual machine.

Screen 7

Step 8: The VMware fires up as soon as you save the virtual machine as below: Click on the “Processors and Memory” option in the System Settings.

Screen 8

Step 9: Select “processor cores” as following and allocate the memory depending on your machine’s memory. Also, 4 GB is recommended as Visual Studio and other developer tools need minimum of 4 GB RAM as a requirement. So, beware of that.

Screen 9

Step 10: After you close the settings page. Click on the play button on the screen which looks like the following. As soon as you do it, the windows setup starts.

Screen 10

Step 11: Setup screen

Screen 11

Step 12: It hardly took 4 to 5 minutes for the installation to be completed. I was really amazed at the speed of installation.

Screen 12

I skipped the McAfee antivirus installation. Now, you can simply login with the password which you have given on the easy installation screen.

Screen 13

And there you go. You have your Windows 8.1 on your VM on Mac. If you want to install Visual Studio. Just download the PowerISO on your windows VM and extract the files from its image and install. As simple as that.

I found this link very interesting on the performance of visual studio on the VMware Fusion. Do check it out.

Have fun.



Removing Windows from Mac using Boot Camp


This is a short post demonstrating the complete removal of windows from Mac which has been installed using Boot Camp native application. Once you remove Windows, the bootcamp automatically restores the space and reverts it to a single OS X partition like before.

Step 1: Open the bootcamp application by navigating to Applications -> Utilities -> Boot Camp Assistant.

Boot Camp Assistant

Step 2:  Click on Continue

Screen 1

Step 3: Check Remove Windows 7 or later version and click Continue

Screen 2

Step 4: If you haven’t backed up your files on Windows partition. Please do it. Because continuing on this step would completely remove all the files on the windows partition and cannot be recovered.

Click Restore to continue the process.

Screen 3

Step 5: Restoration of Partition starts

Screen 4

Step 6: Done. The Windows partition is removed successfully.

Screen 5

You can check the disk size after quitting this application.