Setup development environment (Task 2.1)

The Punjabi Geek
5 min readJul 4, 2017

--

After finishing the prototype of my webapp, it was now time to setup a development environment. Setting up the development environment for Hasura is different for different operating systems . Here is a short guide :

For Linux (recommended environment):

  1. Ubuntu 16.04

2.You can use the Bash terminal that is already present in Ubuntu.

For Mac:

1.You can use the default terminal

2.Install brew. Just type this command in the terminal and it will install brew :

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

If you want to know more about brew then you can find that here.

For Windows:

Install git-bash as the terminal. This blogpost will help you through the installation. Please do not use the Command prompt.

It was recommended by Tanmai to use Ubuntu for our development process. So I started gearing up towards installing my first ever Linux distribution. I was having Windows 10 already so I decided to dual boot my system. Here are the steps for installing Ubuntu 16.04 alongside Windows 10:

  1. Downloading the iso: First of all, you need to download an iso image from the official Ubuntu website. Here is the link
  2. Creating a bootable usb stick: For this, first you need to download a software that will burn your iso image to the usb stick. I used rufus for this purpose. You can download it from here. So now we just have to burn this image by using rufus. Here is how you can do this:

i)Open rufus. You will be presented with this screen.

ii)Now, click the optical drive button next to the Create a bootable disk using checkbox, and you’ll be prompted to search for the ISO image to use. Just select the image that you downloaded and click on start.

iii)Just wait until the process is finished. Once Ready appears in the bottom of the screen, the process is finished and you are free to quit rufus and use your usb.

3. Installing Ubuntu :

Plugin your usb, setup boot priority so that your system boots from usb and restart your system.

This window will appear

Install (source:http://www.everydaylinuxuser.com/2015/11/how-to-install-ubuntu-linux-alongside.html)

This is the beginning of the installation process and you can select the language which is used to help you through the process.

Choose your language and click “Continue”.

Preparing to install Ubuntu(source : http://www.everydaylinuxuser.com/2015/11/how-to-install-ubuntu-linux-alongside.html)

The preparing to install Ubuntu screen which simply lists the option to download updates (which is only available after you have an internet connection) and the option to install third party software for playing MP3 audio and watching Flash).

If you have a poor internet connection then you should choose not to connect to the internet. You can update your system after it has been installed.

You can choose to install the third party tools for playing MP3 audio as part of the installation process now by checking the box or you can do it after the system has been installed.

Click "Continue".

Installation type (source: http://www.everydaylinuxuser.com/2015/11/how-to-install-ubuntu-linux-alongside.html)

The “Installation Type” screen lets you decide whether you want to install Ubuntu alongside Windows or over the top.

Choose the “Install Ubuntu alongside Windows Boot Manager” option.

Click “Install Now”.

Write the changes to disk

A window will appear showing you what is going to happen to your disk. By default the Ubuntu installer will create an ext4 partition for Ubuntu and all of your personal files and a swap partition used for swapping idle processes when memory gets low.

Click “Continue”.

A map of the world will appear. The purpose of it is to make it possible for Ubuntu to set the time on your clock correctly.

Click where you live on the map or start typing it into the box provided and then click “Continue”.

Almost there. Just two more steps before Ubuntu is installed.

You now need to choose your keyboard layout. Select your keyboard’s language in the left pane and then the actual physical layout in the right pane.

Alternatively click on the detect keyboard layout option and it will more than likely do it for you.

Test out the keyboard layout that you have chosen by typing into the box provided. Specifically try out symbols such as the dollar sign, pound symbol, hash tags, speech marks, slashes and other special characters as these are the keys that tend to move around on a keyboard.

Click “Continue”.

The final step is to create a default user.

Enter your name and give your computer a name.

Enter a username into the box provided and choose a password and repeat it.

Voila! After all the hardwork we are now free to use our Ubuntu and modify it the way we want.

Wait!!! Do you think we are done? Absolutely not , you still need to know a few more things. If your system does not ask which OS to boot and automatically starts booting windows then you need to fix some things.

I will make the process easier for you. Just download this iso called boot-repair and it will do the work for you. After downloading this iso, burn this image into a usb using rufus(process described above). Now start your system and click on Recommended repair. It will automatically fix the issues.

If even after doing this, the grub menu still doesn’t appear then you need to change your UEFI or BIOS settings so that the system boots from Ubuntu partition and not from the default OS boot manager which is windows.This setting is different for different PC manufacturers. You would have to find it on your own. Setting up linux is a pain only the first time, you might want to give it up but if you follow whatever I have written than you would be able to boot up Linux and enjoy the freedom that it gives its users!

--

--