Kick-start: Create a Linux(Ubuntu) Environment for Windows Developers using VirtualBox, VSCode, Git, NodeJS
Tags: configuration, tutorial, ubuntu, vscode
Published: 2017-12-02 20:25:06

---
title: "Kick-start: Create a Linux(Ubuntu) Environment for Windows Developers using VirtualBox, VSCode, Git, NodeJS"
published: true
tags: Configuration,Tutorial,Ubuntu,VSCode
canonical_url: http://www.bardev.com/2017/02/19/kick-start-linux-ubuntu-visual-studio-code-vscode-for-windows-developers/
---

I enjoy working with Visual Studio Code (VSCode). Since it’s available for Linux and Mac, I thought I would give it a try in a different environment. As a Windows developer, I’ve wanted to try out Linux. In the past when I have attempted to work in Linux, I was overwhelmed with all the tools, configuration and such that must be learned to be productive.

I had a very difficult time finding beginner information that is current of setting up a Linux development environment. I found bits and pieces but nothing that showed end-to-end of how to get started.

In this post, I will describe how to setup a development environment in Linux (Ubuntu). The main technologies I will work with are the following:

- Oracle VirtualBox – 5.1.14
- Linux Ubuntu 64-bit: 16.04
- Visual Studio Code (VSCode): 1.9.1
- NodeJS: 6.9.5
- Git: 2.7.4

This post is about setting up a basic Linux (Ubuntu) development&nbsp;environment. &nbsp;I assume that the user is familiar with Windows and has very basic knowledge of hypervisor software to manage virtual machines.

I’m using Windows 10 as my host system. I don’t believe it should matter what host you are using, because other than VirtualBox, everything in this post will be installed on Linux Ubuntu.

## Installing VirtualBox

We need somehow to run Ubuntu. To do this we need a Hypervisor. A hypervisor is software&nbsp;that runs virtual machines. There are many hypervisors available (Hyper-V, VMWare, VirtualBox, etc). I have selected Oracle VirtualBox for the following reasons:

- Runs on Windows
- Free for personal use
- Easy to use
- Very popular
- Large Community

Let’s install VirtualBox by going to VirtualBox webpage:

[https://www.virtualbox.org/wiki/Downloads](https://www.virtualbox.org/wiki/Downloads "https://www.virtualbox.org/wiki/Downloads")

[![VirtualBaox Download](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb.png "VirtualBaox Download")](http://www.bardev.com/wp-content/uploads/2017/02/image.png)<figcaption>VirtualBaox Download</figcaption>

Once at the VirtualBox Download webpage, download VirtualBox

After downloading VirtualBox, &nbsp;install it.

[![VirtualBaox Install](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-1.png "VirtualBaox Install")](http://www.bardev.com/wp-content/uploads/2017/02/image-1.png)<figcaption>VirtualBaox Install</figcaption>

## &nbsp;Download Linux Ubuntu Desktop

When we create our virtual machine using VirtualBox we will need an image (iso) of Ubuntu to install. We will get this iso from Ubuntu’s website. It’s important that you download the desktop version of Ubuntu. Download Ubuntu Desktop from here:

[https://www.ubuntu.com/download/desktop](https://www.ubuntu.com/download/desktop "https://www.ubuntu.com/download/desktop")

[![Ubuntu Desktop Download](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-2.png "Ubuntu Desktop Download")](http://www.bardev.com/wp-content/uploads/2017/02/image-2.png)<figcaption>Ubuntu Desktop Download</figcaption>

**<u>Note:</u>** We will be running Ubuntu 64-bit. If you are running Windows 10, you may have issues installing&nbsp;64-bit version of Ubuntu. I’m not sure if Hyper-V is installed by default on Windows 10, but if it is installed, you will need to uninstall it if you want to run 64-bit virtual machines.

**Note:** &nbsp;While investigating Docker for Windows, I stumble across this  
“Docker for Windows requires Microsoft Hyper-V to run. After Hyper-V is enabled, VirtualBox will no longer work, but any VirtualBox VM images will remain.”

![Docker for Window and Hyper-V](http://www.bardev.com/wp-content/uploads/2017/02/Docker-for-Window-and-Hyper-V.png "Docker for Window and Hyper-V")<figcaption><a href="https://docs.docker.com/docker-for-windows/install/#/what-to-know-before-you-install"> https://docs.docker.com/docker-for-windows/install/#/what-to-know-before-you-install</a></figcaption>

To uninstall Hyper-V, open “Turn Windows features on or off”. You can do this by going to the start menu and typing “Turn”

[![Turn Windows features on or off for Hyper-v](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-3.png "Turn Windows features on or off for Hyper-v")](http://www.bardev.com/wp-content/uploads/2017/02/image-3.png)<figcaption>Turn Windows features on or off for Hyper-v</figcaption>

Now uncheck Hyper-V and click “OK”. This will require a few restarts.

[![Turn off Hyper-v in Windows](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-4.png "Turn off Hyper-v")](http://www.bardev.com/wp-content/uploads/2017/02/image-4.png)<figcaption>Turn off Hyper-v in Windows</figcaption>

## Installing Ubuntu Virtual Machine

Now let’s get to the fun part. Lets install Ubuntu as a virtual machine on VirtualBox. Start VirtualBox. Once VirtualBox starts, you should see something like the following image.

[![Oracle VM VirtualBox Manager](http://www.bardev.com/wp-content/uploads/2017/02/SNAGHTML43b9101_thumb.png "Oracle VM VirtualBox Manager")](http://www.bardev.com/wp-content/uploads/2017/02/SNAGHTML43b9101.png)<figcaption>Oracle VM VirtualBox Manager</figcaption>

To create a virtual machine (VM), select the button “New”. You should see a form to create a new Virtual Machine (see image below). In the form enter a Name. The name I used is “UbuntuDemo”. Once you type “Ubuntu”, notice the “Type” and “Version” is automatically selected. Also, notice that the version is “64-bit”. If you do not see “64-bit” then refer to the note above about Windows 10 & Hyper-V.

**Note:** &nbsp;Here, were are not installing Ubuntu on the virtual machine. &nbsp;This will be done later. Here are just configuring and setting-up the virtual machine.

**Note:** Ubuntu Minimum and Recommended System Requirements

![Ubuntu Desktop 16 Minimum System Requirements](http://www.bardev.com/wp-content/uploads/2017/02/Ubuntu-Desktop-16-Minimum-System-Requirements.png "Ubuntu Desktop 16 Minimum System Requirements")<figcaption><a href="https://help.ubuntu.com/community/Installation/SystemRequirements" target="_blank">https://help.ubuntu.com/community/Installation/SystemRequirements</a></figcaption>

![Ubuntu Desktop 16 Recommend System Requirements](http://www.bardev.com/wp-content/uploads/2017/02/Ubuntu-Desktop-16-Recommend-System-Requirements.png "Ubuntu Desktop 16 Recommend System Requirements")<figcaption><a href="https://www.ubuntu.com/download/desktop" target="_blank">https://www.ubuntu.com/download/desktop</a></figcaption>

Ubuntu will run on 2 GB of memory, but that is the recommended requirements. I went ahead and set the memory for this Ubuntu virtual machine to 4 GB.

Set the Hard disk option to “Create a virtual hard disk now” and select “Create” button.

[![Create Virtual Machine](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-5.png "Create Virtual Machine")](http://www.bardev.com/wp-content/uploads/2017/02/image-5.png)<figcaption>Create Virtual Machine</figcaption>

Now let’s create the hard disk. On the next form, for the most part, you can keep all the defaults except for the “File Size” option. Ubuntu recommended requirement is 25 GB for the disk size. To be safe and so that I can install additional software on the Ubuntu virtual machine, I set the file size to 30 GB.

I leave everything else as default. Now select the “Create” button.

[![ Create Virtual Hard Disk](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-6.png "Create Virtual Hard Disk")](http://www.bardev.com/wp-content/uploads/2017/02/image-6.png)<figcaption>Create Virtual Hard Disk</figcaption>

**Update:** &nbsp;I just looked at VirtualBox Virtual Media Manager for the&nbsp;actual size of disk spaced used by Ubuntu. &nbsp;It was only 4.86 GB.

![VirtualBox Virtual Media Manager](http://www.bardev.com/wp-content/uploads/2017/02/VirtualBox-Virtual-Media-Manager-300x246.png)

## Configure Ubuntu Virtual Machine

Here we will make some basic changes to the virtual machine configuration. We will change the number of processors the virtual machine uses and enable the ability to share the clipboard between our Windows 10 host and the Ubuntu virtual machine.

**<u>Note:</u>** For these changes to take affect the virtual machine will need to be stopped or if the virtual machine is running, it will need to be restarted.

**<u>Note:</u>** &nbsp;In the following images for Oracle VM VirtualBox Manager, there are two virtual machines. Please ignore the first “ubuntu” vm. &nbsp;We will be creating the “UbuntuDemo” vm.

To change virtual machine settings, select “UbuntuDemo” from Virtual Box, and then select “Settings” button.

[![ Configure Oracle VM VirtualBox Managaer Settings](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-7.png "Configure Oracle VM VirtualBox Managaer Settings")](http://www.bardev.com/wp-content/uploads/2017/02/image-7.png)<figcaption>Configure Oracle VM VirtualBox Managaer Settings</figcaption>

To enable the ability to enable clipboard sharing, select the “General” from the left navigation. Then select the “Advanced” tab. Now change the settings for “Shared Clipboard” and “Drag’n Drop” to Bidirectional.

This feature comes in handy when you want to copy and pasted text from your host to the virtual machine or visa-verse.

[![Configure Oracle VM VirtualBox Manager Settings Shared Clipboard & Drag n' Drop](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-8.png "Configure Oracle VM VirtualBox Manager Settings Shared Clipboard & Drag n' Drop")](http://www.bardev.com/wp-content/uploads/2017/02/image-8.png)<figcaption>Configure Oracle VM VirtualBox Manager Settings Shared Clipboard &amp; Drag n’ Drop</figcaption>

By default, the Ubuntu virtual machine is configured to use only one processor. On my computer the Ubuntu VM runs a little sluggish with only one processor, so I went ahead and up the processor to 3. Depending on your computer, you may want to change this setting.

To change the number of processors, in settings dialog select the “System” in the left-side navigation. Then select the “Processor” tab. At this point, you can change the number of processors that the VM will use

[![Configure Oracle VM VirtualBox Manager Settings Processor Count](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-9.png "Configure Oracle VM VirtualBox Manager Settings Processor Count")](http://www.bardev.com/wp-content/uploads/2017/02/image-9.png)<figcaption>Configure Oracle VM VirtualBox Manager Settings Processor Count</figcaption>

## Installing Ubuntu

Now that we have the virtual machine configured, let’s start the VM and install Ubuntu.

To start a virtual machine, in VirtualBox Manager select “UbuntuDemo” and then select the “Start” button.

[![Start Ubuntu Virtual Machine from Oracle VM VirtualBox Manager](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-10.png "Start Ubuntu Virtual Machine from Oracle VM VirtualBox Manager")](http://www.bardev.com/wp-content/uploads/2017/02/image-10.png)<figcaption>Start Ubuntu Virtual Machine from Oracle VM VirtualBox Manager</figcaption>

The virtual machine will start in a new window. The first screen you will see is a dialog to select the start-up disk. This is where we install Ubuntu on the virtual machine. We need to tell the virtual machine where the Ubuntu Desktop installation file is located.

On “Select start-up disk” dialog, select the small folder icon in the bottom right corner. Another dialog (not shown) will be displayed to select the Ubunto .iso file to install. My iso file was called “ubuntu-16.04.2-desktop-amd64.iso”; the name of your file may be a little different.

Once you find the Ubuntu .iso file, select the “Start” button.

[![Select Ubuntu file image to install on Virtual Machine](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-11.png "Select Ubuntu file image to install on Virtual Machine")](http://www.bardev.com/wp-content/uploads/2017/02/image-11.png)<figcaption>Select Ubuntu file image to install on Virtual Machine</figcaption>

After you click “Start”, you should be prompted to install Ubuntu. Select “Install Ubuntu” button.

[![Setup Ubuntu Welcome](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-12.png "Setup Ubuntu Welcome "Install Ubuntu"")](http://www.bardev.com/wp-content/uploads/2017/02/image-12.png)<figcaption>Setup Ubuntu Welcome “Install Ubuntu</figcaption>

The following dialogs are fairly straight forward. I will not step you through these next few dialogs, but for your convenience, I have included the screenshots of the dialogs.

[![ Ubuntu setup and Install - Preparing to install Ubuntu](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-13.png "Ubuntu setup and Install - Preparing to install Ubuntu")](http://www.bardev.com/wp-content/uploads/2017/02/image-13.png)<figcaption>Ubuntu setup and Install – Preparing to install Ubuntu</figcaption>

[![Ubuntu setup and Install - Installation Type](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-14.png "Ubuntu setup and Install - Installation Type")](http://www.bardev.com/wp-content/uploads/2017/02/image-14.png)<figcaption>Ubuntu setup and Install – Installation Type</figcaption>

[![Ubuntu setup and Install - Installation Type confirmation](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-15.png "Ubuntu setup and Install - Installation Type confirmation")](http://www.bardev.com/wp-content/uploads/2017/02/image-15.png)<figcaption>Ubuntu setup and Install – Installation Type confirmation</figcaption>

[![Ubuntu setup and Install - Where are you](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-16.png "Ubuntu setup and Install - Where are you")](http://www.bardev.com/wp-content/uploads/2017/02/image-16.png)<figcaption>Ubuntu setup and Install – Where are you</figcaption>

[![Ubuntu setup and Install - Keyboard Layout](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-17.png "Ubuntu setup and Install - Keyboard Layout")](http://www.bardev.com/wp-content/uploads/2017/02/image-17.png)<figcaption>Ubuntu setup and Install – Keyboard Layout</figcaption>

[![Ubuntu setup and Install - Who Are you](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-18.png "Ubuntu setup and Install - Who Are you")](http://www.bardev.com/wp-content/uploads/2017/02/image-18.png)<figcaption>Ubuntu setup and Install – Who Are you</figcaption>

[![Ubuntu setup and Install - Welcome to Ubuntu](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-19.png "Ubuntu setup and Install - Welcome to Ubuntu")](http://www.bardev.com/wp-content/uploads/2017/02/image-19.png)<figcaption>Ubuntu setup and Install – Welcome to Ubuntu</figcaption>

[![Ubuntu setup and Install - Installation Complete - Restart](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-20.png "Ubuntu setup and Install - Installation Complete - Restart")](http://www.bardev.com/wp-content/uploads/2017/02/image-20.png)<figcaption>Ubuntu setup and Install – Installation Complete – Restart</figcaption>

After you select “Restart Now”, you may get a message “Please remove the installation medium…”. If you get this message, it means that the Ubuntu .iso file is still attached to the virtual machine optical drive. If you continue without detaching the Ubuntu .iso file from the virtual machine, you will go through the installation process again.

[![VirtualBox Ubuntu. Please remove installation medium, then press ENTER](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-21.png "VirtualBox Ubuntu. Please remove installation medium, then press ENTER")](http://www.bardev.com/wp-content/uploads/2017/02/image-21.png)<figcaption>VirtualBox Ubuntu. Please remove installation medium, then press ENTER</figcaption>

To detach (remove) the Ubuntu .iso from the virtual machine, on the virtual machine window select “Devices” –\> “Optical Drives” –\> “Remove disk from virtual drive”. Now press “Enter” on your keyboard. Now Ubuntu will start.

[![How to remove installation medium from VirtualBox](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-22.png "How to remove installation medium from VirtualBox")](http://www.bardev.com/wp-content/uploads/2017/02/image-22.png)<figcaption>How to remove installation medium from VirtualBox</figcaption>

Once Ubuntu starts, you should see a screen like the following. Ubuntu is now successfully installed.

[![Ubuntu installation complete first screen](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-23.png "Ubuntu installation complete first screen")](http://www.bardev.com/wp-content/uploads/2017/02/image-23.png)<figcaption>Ubuntu installation complete first screen</figcaption>

**Note:** To shut down Ubuntu from Ubuntu, in the top right corner of the desktop is the current time, misc buttons, and a power button. Selecting the power button will show you a menu with “Shut Down” as an option.

[![Ubuntu Power Button](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-24.png "Ubuntu Power Button")](http://www.bardev.com/wp-content/uploads/2017/02/image-24.png)<figcaption>Ubuntu Power Button</figcaption>

[![Ubuntu shut down](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-25.png "Ubuntu shut down")](http://www.bardev.com/wp-content/uploads/2017/02/image-25.png)<figcaption>Ubuntu shut down</figcaption>

## Installing Google Chrome

First thing I do after I install Ubuntu is to install Google Chrome browser. Firefox is installed by default on Ubuntu, but you can install another browser if you want. By installing Google Chrome, I present some of the dialogs that will be show when installing software on Ubuntu.

Google Chrome Desktop Download

[https://www.google.com/chrome/browser/desktop/](https://www.google.com/chrome/browser/desktop/ "https://www.google.com/chrome/browser/desktop/")

[![Download Google Chrome](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-26.png "Download Google Chrome")](http://www.bardev.com/wp-content/uploads/2017/02/image-26.png)<figcaption>Download Google Chrome</figcaption>

Once you select download, you will prompted to select what type of Linux you are running. We are running a derivative of Debian. Therefore, select the option that includes “.deb”

[![Download Google Chrome for Linux - 64 bit .deb for Debian and Ubuntu](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-27.png "Download Google Chrome for Linux - 64 bit .deb for Debian and Ubuntu")](http://www.bardev.com/wp-content/uploads/2017/02/image-27.png)<figcaption>Download Google Chrome for Linux – 64 bit .deb for Debian and Ubuntu</figcaption>

Once you select “Accept and install”, you will be prompted what to do with the file. I usually just open the file, but if you want, you can save the file.

Since I don’t expect I will need to install Google Chrome again, I will select the “Open with” option.

[![Chrome Download options](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-28.png "Chrome Download options on Ubuntu")](http://www.bardev.com/wp-content/uploads/2017/02/image-28.png)<figcaption>Chrome Download options</figcaption>

When installing software, Ubuntu will prompt you to confirm that you trust the software you are installing. If you do trust the software you are installing, select the “install” button.

[![ Confirm installing software](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-29.png "Confirm installing software on Ubuntu")](http://www.bardev.com/wp-content/uploads/2017/02/image-29.png)<figcaption>Confirm installing software</figcaption>

Now enter your password “demo” in the Authenticate dialog to continue to install your software. Your password may be different.

[![Authenticate installing software](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-30.png "Authenticate installing software on Ubuntu")](http://www.bardev.com/wp-content/uploads/2017/02/image-30.png)<figcaption>Authenticate installing software</figcaption>

## Run Applications – Google Chrome

I want to install Visual Studio Code (VSCode). But to do this I need to download it first using Chrome. There are a few ways to start an application. I’m going to show you the main way I start programs that are not on the application bar.

In the top left corner of the desktop, there is a purple icon (see image below). This icon opens “Dash”. Dash provides the ability to search for applications, files, music and etc. Since we want to start Chrome, select the “Dash” icon and type “chrome” in the text box. An icon for Chrome will display. Select the Chrome icon to start Chrome.

<u><strong>Note:</strong></u> You can open “Dash” search prompt by using the win key on your keyboard.

**<u>Note:</u>** The icons that are displayed can be dragged-n-dropped to the application toolbar.

[![Run Chrome Application with Ubuntu Dash](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-31.png "Run Chrome Application with Ubuntu Dash")](http://www.bardev.com/wp-content/uploads/2017/02/image-31.png)<figcaption>Run Chrome Application with Ubuntu Dash</figcaption>

## Install Visual Studio Code (VSCode)

Now let’s install Visual Studio code. But first, we need to download it.

In Chrome or browser of choice, navigate to:

[https://code.visualstudio.com/download](https://code.visualstudio.com/download "https://code.visualstudio.com/download")

Select to download the .deb (Debian) version of VSCode

[![Download Visual Studio Code (VSCode) for Ubuntu .dib](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-32.png "Download Visual Studio Code (VSCode) for Ubuntu .dib")](http://www.bardev.com/wp-content/uploads/2017/02/image-32.png)<figcaption>Download Visual Studio Code (VSCode) for Ubuntu .dib</figcaption>

The installation process of VSCode is the same as installing Chrome, which we did above. I will go ahead and provide images of the installation process.

[![Ubuntu Install Application](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-33.png "Ubuntu Install Application")](http://www.bardev.com/wp-content/uploads/2017/02/image-33.png)<figcaption>Ubuntu Install Application</figcaption>

[![Authenticate installation with password](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-34.png "Authenticate installation with password on Ubuntu")](http://www.bardev.com/wp-content/uploads/2017/02/image-34.png)<figcaption>Authenticate installation with password</figcaption>

Now that VSCode is installed, we can now run it. The process to run VSCode is the same as running any other application. Open “Dash” search and type “Code” in the text box.

[![Run Visual Studio Code (VSCode) in Ubuntu using Dash](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-35.png "Run Visual Studio Code (VSCode) in Ubuntu using Dash")](http://www.bardev.com/wp-content/uploads/2017/02/image-35.png)<figcaption>Run Visual Studio Code (VSCode) in Ubuntu using Dash</figcaption>

Now VSCode will launch.

## Installing Node.js

Node.js is very popular these days. I use Node in most of my web development. Since this is a common tool, let’s install it.

Instead of downloading and installing from a website, we will use a tool similar to Windows Command Prompt or PowerShell to install Node. In Ubuntu, this tool is called Terminal.

To start the application Terminal. Open “Dash” search, type terminal in the text box. You may get multiple results, but select the application named “Terminal”.

[![Ubuntu terminal using Dash](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-36.png "Ubuntu terminal using Dash")](http://www.bardev.com/wp-content/uploads/2017/02/image-36.png)<figcaption>Ubuntu terminal using Dash</figcaption>

Here’s the documentation to install NodeJS using a package manager. Go to the section “Debian and Ubuntu based Linux distributions”

[https://nodejs.org/en/download/package-manager/](https://nodejs.org/en/download/package-manager/ "https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions")

In the Node documentation, it shows the following command to run to install Node

[![Using Curl to install nodejs on Ubuntu](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-37.png "Using Curl to install nodejs on Ubuntu")](http://www.bardev.com/wp-content/uploads/2017/02/image-37.png)<figcaption>Using Curl to install nodejs on Ubuntu</figcaption>

If you try to run the commands above, you get an error that ‘curl’ is not installed.

[![Error running curl in Ubuntu terminal](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-38.png "Error running curl in Ubuntu terminal")](http://www.bardev.com/wp-content/uploads/2017/02/image-38.png)<figcaption>Error running curl in Ubuntu terminal</figcaption>

Let’s install Curl.

In the terminal enter the following

sudo apt install curl

[![installing curl using terminal in ubuntu](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-39.png "installing curl using terminal in ubuntu")](http://www.bardev.com/wp-content/uploads/2017/02/image-39.png)<figcaption>installing curl using terminal in ubuntu</figcaption>

Now that curl is installed, now we can try to install Node.

First, we need to select what version of Node we want, this is done using Curl. Use the following command in Terminal.

curl -sL [https://deb.nodesource.com/setup\_6.x](https://deb.nodesource.com/setup_6.x) | sudo -E bash –

[![using curl using to download nodejs on Ubuntu](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-40.png "using curl using to download nodejs on Ubuntu")](http://www.bardev.com/wp-content/uploads/2017/02/image-40.png)<figcaption>using curl using to download nodejs on Ubuntu</figcaption>

Now to install Node, use the following command:

sudo apt-get install -y nodejs

[![install nodejs using sudo and apt-get on Ubuntu](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-41.png "install nodejs using sudo and apt-get on Ubuntu")](http://www.bardev.com/wp-content/uploads/2017/02/image-41.png)<figcaption>install nodejs using sudo and apt-get on Ubuntu</figcaption>

Now let’s validate that Node was installed successfully.

In Terminal, type “node”. This will show the “\>”. Now type “4+4” and then enter. The answer of 8 should be returned. We have now confirmed that Node is installed. To exit node press [ctrl]+C twice.

[![confirming Nodejs was installed successfully on Ubuntu](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-42.png "confirming Nodejs was installed successfully on Ubuntu")](http://www.bardev.com/wp-content/uploads/2017/02/image-42.png)<figcaption>confirming Nodejs was installed successfully on Ubuntu</figcaption>

## Install Git

Another common tool that is used by developers, is Git. Git is a source code repository.

We are going to install Git similarly to how we installed Node, but without using Curl. To install Git, enter the following:

sudo apt-get install git

[![installing git using terminal, sudo, and apt-get on Ubuntu](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-43.png "installing git using terminal, sudo, and apt-get on Ubuntu")](http://www.bardev.com/wp-content/uploads/2017/02/image-43.png)<figcaption>installing git using terminal, sudo, and apt-get on Ubuntu</figcaption>

Enter the following to confirm that Git was installed:

git –version

[![confirming git install successfully using git --version on Ubuntu](http://www.bardev.com/wp-content/uploads/2017/02/image_thumb-44.png "confirming git install successfully using git --version on Ubuntu")](http://www.bardev.com/wp-content/uploads/2017/02/image-44.png)<figcaption>confirming git install successfully using git –version on Ubuntu</figcaption>

## Conclusion

If you never have used Linux and want to get started developing in a Linux environment, it can be difficult. Hopefully this post has helped you kick-start your software development in Linux Ubuntu.

## Resource

Comparison of platform virtualization software  
[https://en.wikipedia.org/wiki/Comparison\_of\_platform\_virtualization\_software](https://en.wikipedia.org/wiki/Comparison_of_platform_virtualization_software "https://en.wikipedia.org/wiki/Comparison\_of\_platform\_virtualization\_software")

How To Install Git on Ubuntu 16.04  
[https://www.digitalocean.com/community/tutorials/how-to-install-git-on-ubuntu-16-04](https://www.digitalocean.com/community/tutorials/how-to-install-git-on-ubuntu-16-04 "https://www.digitalocean.com/community/tutorials/how-to-install-git-on-ubuntu-16-04")

Installing Node.js via package manager  
[https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions](https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions "https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions")

Ubuntu – Package management with APT  
[https://help.ubuntu.com/community/AptGet/Howto](https://help.ubuntu.com/community/AptGet/Howto "https://help.ubuntu.com/community/AptGet/Howto")

Running VS Code on Linux  
[https://code.visualstudio.com/docs/setup/linux](https://code.visualstudio.com/docs/setup/linux "https://code.visualstudio.com/docs/setup/linux")

The post [Kick-start: Create a Linux(Ubuntu) Environment for Windows Developers using VirtualBox, VSCode, Git, NodeJS](http://www.bardev.com/2017/02/19/kick-start-linux-ubuntu-visual-studio-code-vscode-for-windows-developers/) appeared first on [Mike Barlow (BarDev)](http://www.bardev.com).