How to install ubuntu in windows?

Installing Ubuntu in windows is pretty straightforward. Installing Ubuntu on windows does not mean you install Ubuntu (an operating system) in windows just like you install MS Office. Instead, it says that we are going to use VirtualBox to host ubuntu in windows. To be precise, we are going to use VirtualBox (free software from Oracle) and vagrant, a free software from Hashicorp which manages the virtual machine for you so that you don’t have to worry about all the nitty-gritties. Here are the steps:

  1. Download VirtualBox from here: https://www.virtualbox.org/wiki/Downloads
    • Click the “Windows hosts” link.
    • Download it.
  2. Install Virtualbox. At the time of writing of this article VirtualBox, the version is 5.1.28.
  3. Download and install 64-bit windows version of Vagrant from here: https://www.vagrantup.com/downloads.html
  4. Now create a folder vagrant_getting_started
  5. Press
    Win + r

    key and enter

    cmd

    to open a command prompt.

  6. Navigate to the folder vagrant_getting_started you created in step 4.
  7. Now enter vagrant init This should give you this message:
    A `Vagrantfile` has been placed in this directory. You are now
    ready to `vagrant up` your first virtual environment! Please read
    the comments in the Vagrantfile as well as documentation on
    `vagrantup.com` for more information on using Vagrant.
  8. Check the folder; there should be a file named, Vagrantfile open this file in any text editor. Do not change the name of the file.
  9. Edit config.vm.box='base' to config.vm.box="ubuntu/zesty64" . There are lot of options that you can put in Vagrantfile which is detailed here: https://www.vagrantup.com/docs/vagrantfile/
  10. Now go back to the command prompt and enter vagrant up. Wait till you see this message:
    vboxadd.sh: Starting the VirtualBox Guest Additions.
    
    Could not find the X.Org or XFree86 Window System, skipping.
    Unmounting Virtualbox Guest Additions ISO from: /mnt
    ==> default: Checking for guest additions in VM...
    ==> default: Mounting shared folders...
        default: /vagrant => D:/vagrant_getting_started
  11. Now you can enter your ubuntu box using vagrant ssh.

That is it! Congratulations!

You didn’t have to tweak any settings in BIOS or google Linux forums to troubleshoot common boot issues that come with the dual boot.

Please let me know in the comments if you face any issues.

How to assess your level of preparation for the tech interviews

PREPARATION. PREPARATION. PREPARATION. Preparation is the key to be successful in any interview and land that job or internship that you always wanted. When you decide you need a job, the first thing you do is evaluate your preparation level. Self-assessment can be tricky. Sometimes we are over confident, and sometimes we are under confident. Knowing what you know is the key. Before we proceed further, I am assuming that you are well familiar with Computer Science fundamentals and can at least solve how to reverse a linked list using two pointers and using recursion without any hints. If you are not sure you can answer these directly, go to the section ‘Prepare from scratch’ explained below first and then come back and continue with the rest of the sections. Continue reading “How to assess your level of preparation for the tech interviews”

How to install wordpress with nginx

I recently installed wordpress to create this site. This is my second attempt to create a site where I can share some how-tos, interview tips and journal my thoughts. Initially I tried to create the site from scratch where I created everything, from css to backend server but that became too much work in itself so much so that I never got time to write any posts. Hope this goes well. Sorry, I digress.

Since I already had the server from my first attempt, I decided  to reconfigure it to install some ready made CMS solution. The obvious choice was wordpress. It was really simple to set it up. Continue reading “How to install wordpress with nginx”