Kuberty.io
  • blog
Kuberty.io

Windows 10

Home / Windows 10
16May

How to Install Python 3 on Windows 10?

May 16, 2022 admin Windows 10

In the programming world, Python is a very familiar name, and most programmers are adept at writing codes in Python. People who have been learning Python and are eager to put it to work often ask, “How can I install Python 3 on Windows 10?”.”

The question is obvious as Windows doesn’t have a system-supported installation for Python. With every release, Windows Installers are compiled to make it available on Windows. It is a vastly used programming language around the world. Millions of web developers, software developers, data scientists, programmers, etc, use Python, and since Windows is one of the most widely used operating systems, it had to make way for Python installation.

If you are a beginner and want to be deft in writing codes in Python, you need Python on your Windows system and there are several ways to install Python 3 on your Windows 10 PC like you can go and install it from Python.org, use a Package manager, Internet of things, and several other ways.

This guide covers everything you need to know and you will find the answer to “how to install Python 3 on Windows 10”.

What Will You Learn?

This guide will help you-

  • How to check your present Python version on your Windows system, if any?
  • How to install Python 3 on Windows 10?
  • How to update Python on Windows?

Let’s get started.

How To Install Python 3 On Windows 10?

It is easy to install Python on Windows 10 using any of these three methods.

  • Full Installer
  • Windows Subsystem for Linux
  • Microsoft Store

These methods will be discussed later.

Checking Python Version on Windows

You can check your present Python version, if any, installed on your Windows PC. It can be easily done with the help of simple commands. Follow the steps and check the Python version currently installed on your system.

  • Open a command-line application in Windows. You can use Powershell.
  • Press Windows key.
  • Search for Powershell and open it. Alternatively, you can also click on “Run” and type “cmd.exe”.
  • In the open command line, type-

C:\> python –version

Python 3.8.4

Then press “Enter”.

  • You can also type –V instead of –version, like-

C:\> python -V

Python 3.8.4

  • The result will show the version that is installed if any. In the case of a version older than 3.8.4, you need a newer one.
  • If you have no Python version installed on your system, you will be redirected to Microsoft Store to Python App’s page.
  • To check the installation location of your version, the “where.exe” or “cmd.exe” command will help. Type-

C:\> where.exe python

C:\Users\mertz\AppData\Local\Programs\Python\Python37-32\python.exe

  • If the Python is installed, then the command will display the location, else another message will be displayed.

Which Method Is Best For Installation of Python 3?

The below-discussed methods will help you install Python on your Windows PC-

1. Full Installer

For those who are already using Python and are able to control the complete setup process, they can go and install Python from Python.org. Advanced users prefer this method.

2. Microsoft Store

If you are a beginner and want an easy-to-install method, you can install Python from Microsoft Store.

3. Windows Subsystem for Linux (WSL)

You can run a Linux environment in Windows by enabling WSL.

This guide will help you install Python with the first two methods. But there are also certain limitations and you must know which method will work best for you.

Is Microsoft Store Good Enough?

There are certain limitations to the Microsoft Store package as ‘it is intended mainly for interactive use”, as per Python documentation. What does it mean?

It means that it is better for those who are learning Python and do not have to write lengthy programs. The package is designed specifically for learning purposes and is best for students and first-time Python users.

Also, it does not have full write access to certain shared locations which makes it unsuitable for professional developers.

Which Is Best For You?

You should finalize the Python installation method based on your needs and your level of expertise. If you are a student and your sole purpose is to learn the programming language, you can very well go to the Microsoft Store and install Python. You can use it for interactive purposes. You can use it for interactive purposes but you won’t be able to write lengthy software on it.

For a professional developer, Python.org will be the best choice. It will have all the packages and modules which are necessary and the developers can choose the installation locations and add paths as well. They won’t have to face the Microsoft Store package’s limitations.

How To Install Python 3 on Windows 10 From Microsoft Store?

Using Microsoft Store is the easiest way, so let’s start with it. You can install it in a matter of minutes and start learning.

Step 1. Check Your OS

First of all, check that your Windows 10 is up to date and you have all the necessary updates installed.

Step 2. Go To Microsoft Store

  • Open your Microsoft Store app.
  • Type Python, and press ‘Enter”. You will see different versions of Python.
  • Look for version 3.9 as it is the latest one.
  • Check that it belongs to the Python Software Foundation. If there is a cost, it is not the correct version. All versions of Pythons are always free.
  • You can also go to “cmd.exe”. type “python” and press “Enter”. In the absence of any installed version on your system, you will be redirected to Microsoft Store.

Step 2. Install The App

After choosing your version, install it in the following steps.

  • You can see a bright blue button with “Get” written on it. Click it.
  • Download the application. After it is downloaded, the blue “Get” button will no longer be there. Instead, you can see “Install on my devices”.
  • Click it and select the preferred device.
  • Then press the “Install Now” button and “Ok”.
  • After successful installation, a message will confirm it.

Done! Wasn’t it simple?

How To Install Python 3 On Windows 10 From The Full Installer?

For programmers and professional developers, who want customization and control installation, the full installer is the way to go. Follow the steps for quick and easy installation.

Step 1. Get The Full Installer

  • Go to Python.org.
  • Click on the Downloads section and then “Windows”.
  • On the new page, you will see “Python Releases For Windows” with different Python versions listed down.
  • Click on the latest version Python 3.9.5.
  • Go to the bottom of the page under the “Files” heading. Download “Windows Installer-32bit” or “Windows Installer-64bit”.
  • Wait for the installation to complete.

Step 2. Install Latest Python

  • Click on the installed file. A dialog box will open up.
  • You will see the default path. Here is also a “Customize Installation” button that will help you customize your installation and add other features such as pip and IDLE.
  • If you want to restrict access to the py.exe launcher to current Windows users, uncheck the box for “Install launcher for all users (recommended) and restrict access for other users.
  • The other box “Add Python 3.9” is unchecked and it is better to leave it that way.
  • If you understand all the options and features, select the preferred ones and click on “Install now”.

That’s it! Now you can run Python on your Windows 10 PC and develop programs, software, and anything you want.

Conclusion

The process of installing Python is simple if you are installing it from Microsoft Store. Even as a beginner, you can easily install Python on your Windows 10 PC if you follow the steps. If you are a professional, Microsoft Store Package will be of no use for your professional software development.

We have already discussed it, but it is vital that we use the right method. Installing the interactive package from the Microsoft Store is highly recommended for those learning the language.

Installing Python from a full installer is a little complicated. It allows the professionals to decide the installation locations and what additional features they need. There are no complications at the installation window. Users in the know can navigate easily.

An all-inclusive guide to help you learn how to determine if Python is installed on your system, how to install Python in several different ways, and how each method is achieved. We hope we have answered all your questions about “How to install Python 3 on Windows 10?” in this guide.”

Read more
22Feb

Install Apache Spark on Windows 10

February 22, 2022 admin Windows 10

Some people think that installing Apache Spark on your PC is rocket science. To be honest, it is not. Believe us, by the end of this article you will know how easy it is to install Apache Spark as this article will discuss the easy step-by-step guide on how to install Apache Spark on Windows 10.

Apache Spark Prerequisites

Before we start, below are some prerequisites that you need to have:

  • Admin permitted user account,
  • Java Installed,
  • Python Installed,
  • 7-Zip or any tool to extract tar files, and
  • Windows 10.

Once you make sure that you have all the prerequisites, you can proceed with installing Apache Spark on Windows 10.

A Step-by-Step Guide to Install Apache Spark on Windows 10

Step 1. Installing Java

Apache Spark requires at least Java 8 to install. Ensure that you have the latest or at least Java 8 on your PC. To check, you can type the command below and hit enter:

java -version

  • It will display the installed java version on your PC. In case you don’t have java installed on your PC, you can install it from the official Java website.
  • Click on the Java Download button to go to the downloads section. Hit the Agree and Start Free Download button and specify the path you want to download the Java setup.
  • Once downloaded, you just need to double-click it and install it to your preferred location.

Step 2. Installing Python

Python is another requirement for using Apache Spark on your Windows 10 PC. Installing Python is easy, just follow the steps below:

  • Just head to the official Python website.
  • Scroll down to the very end, and under the downloads section click on Windows.
  • On the webpage you will see the two Python versions varying as Python 2 and Python 3.
  • Head to the latest Python 3 release (recommended).
  • Here, scroll down to the Files heading. Here you will see the list of files available to download.
  • Check the operating system and your OS compatibility for 32-bit or 64-bit from the table and download Windows installer by clicking the hyperlink.
  • Run Python setup by double-clicking the file you just downloaded.
  • From the first screen, check off the ‘Add Python to PATH’.
  • Then continue installation to your preferred location by clicking on Customize installation. Alternatively, use the default location by clicking install now.
  • Now select the box saying “Install for all users” and click install.
  • Once the installation is complete, click on the ‘Disable path length limit’ option then close it.
  • Now to check, if Python is installed correctly or not, you can head to the command prompt. Type the following command and then hit enter:

python –version

  • The installed python version should be displayed. It implies that you installed Python correctly.

Step 3. Download Apache Spark

To download Apache Spark, you need to head to the website www.spark.apache.org.

  • Head to the Downloads section by clicking on Download Spark.
  • Select the latest version of Apache Spark from the Choose a Spark release dropdown menu.
  • Next, select Pre-built Apache Hadoop from the Choose a package type dropdown menu.
  • Click the hyperlink following Download Spark. A page will open up with mirror links to download the Apache Spark.
  • You can select any mirror server and continue to download Spark.

Step 4. Verify Apache Spark Files

In this step, we will verify the integrity of the download via checksum. This step is necessary and will ensure if any of the software files are corrupted or not.

  • Get back to the Download page and open the checksums link in the fourth point in a new tab.
  • Now open the command prompt and type the below command then hit enter:

certutil -hashfile c:\users\Alex\Downloads\spark-2.4.5-bin-hadoop2.7.tgz SHA512

[Here you need to replace ‘Alex’ with your PC’s username and Spark version as per your downloaded version]

  • Now you will see an alphanumeric hashcode on the cmd window.
  • Match the hashcode with the hashcode shown on the website. If they match, then you are good to go as no file is corrupted.
  • If they are not matching, then you need to download Spark again by following Step 3.

Step 5. Install Apache Spark

To install Apache Spark, you need to extract the downloaded file. Here’s how to do it:

  • Head to the C drive or system drive and create a new folder, say ‘Spark’. [You can choose any other name if you like.]
  • Now open the folder where you downloaded the file.
  • Right-click on the file and extract it to C:\Spark using 7-zip or any similar compressed file extraction tool.
  • Now head to C:\Spark\, here you will find another folder with all the necessary Spark files inside it.

Step 6. Other Necessary File

You need to download the winutils.exe for further proceeding. Follow the steps below to download winutils.exe:

  • Just head to https://github.com/cdarlint/winutils.
  • Here, seek the latest version of winutlis.exe and open the bin folder.
  • From here download the winutils.exe file.
  • Now open C:\ and create a folder called ‘hadoop’.
  • Create a folder named bin in it.
  • Now move the downloaded winutils.exe file to C:\hadoop\bin.

Step 7. Set Environment Variables

Now you just need to set the environment variables to start using Apache Spark. So now to set the path, just follow the steps below:

  • Right-click ‘This PC’ from the desktop and head to its properties.
  • Then tap the advanced system settings. A pop-up will appear.
  • Click on Environment Variables.
  • Under the System Variables section, hit the ‘New’ button.
  • Now set the variable name as Spark or SparkHome(Anything you like).
  • Then for Variable value, type – C:\Spark\spark-2.4.5-bin-hadoop2.7 and hit OK.

[Replace the version above as per your installed version and if you have created your custom installation then set your file’s location.]

  • Now again under System variables select path and click on edit.
  • A new dialogue box will appear, click on New.
  • Type ‘%Spark%\bin’ or type your full path. We recommend using %Spark%\bin to avoid path-related errors.

[Replace Spark with the name of the folder you used in the above steps.]

  • Now we have to do the same process with Hadoop and Java as well.
  • Create a new Environment under System variables.
  • Name it Hadoop or anything to identify and set the variable value as C:\hadoop\bin.
  • Now select the path under system variables and edit it by adding a new path as %Hadoop%\bin.
  • Getting back to System variables and adding Java to the environment. Use C:\Program Files\Java\jdk1.8.0_251 as a path if you used the default location or else enter the path of the folder containing jdk.

Conclusion

This article was all about installing and setting up Apache Spark on your Windows 10. Hope this guide was helpful. Confused about something written here? Something wrong? Let us know in the comments.

Read more
25Jan

How to Check Java Version on Mac or Windows Computer?

January 25, 2022 admin Windows 10

There are many languages spoken worldwide, but in the technological industry, it is vital to know the programming languages that only a computer understands. Java is such a programming language. Web applications, programs, and software are all operated using the Java programming language. Java is a computing platform and a general-purpose high-level computer programming language. It gives the application developer such a platform so that once the code is produced, it can run everywhere. Java code that has been compiled can be run on any platform that supports Java without the need to recompile it.

Importance of Java on Mac and Windows Computer

You should notice that when you run any web application, program, or software on your computer system, you would sometimes get the message that Java is not installed on it. This is due to a large number of Java-based applications and websites that cannot run without Java. Java can be found on your laptops, desktops, and data centers, game consoles, and scientific supercomputers, as well as cell phones and the Internet.

It’s commonly used in the creation of web apps. Java provides enhanced assistance for constructing these online applications through technologies like Servlets, Struts, and JSPs. We can quickly construct apps connected to many key industries such as government, healthcare, insurance, education, and military due to the ease and security of this programming language.

Working Process of Java

When you install a Java program, it is translated to a language called Java Bytecode. It can run on any CPU and operating system. Java programs are only compiled once, but they are then interpreted every time they are run. Java Bytecode is also known as the Machine Code of the Java Virtual Machine.

How to Check Java Version on Windows PC?

We can install Java on your Windows computer. Some programs may require us to run a specific version of Java for our system to function properly. Each version of the software has its unique name and number. The number not only denotes a version update, but it also let users determine if their current software is outdated by comparing it with the most recent version. Users frequently wish to double-check before installing the most recent Java version. You can use a graphical tool or the command line to check which version of Java you have installed.

You can also use the Java utility to find the installed version of Java. To utilize the utility, go to the “Start” menu, type “About Java” into the search box, and click on the first result. On the first line, you will see your current Java version.

Using Command Prompt

Using the Command Prompt is the simplest approach to check the Java version. With just one command line, users can verify the version of any software using Command Prompt. If you are unable to check and get the error message, “Java is not recognized as an internal or external command”, you need to verify that the Java on the machine is up to date or that the variables are correctly configured.

To access the Windows search tool, press the ‘Windows’ + ‘S’ key combination. To open Command Prompt with admin access, type cmd/command prompt and hit the ‘Ctrl’ + ‘Shift’ + ‘Enter’ keys together. Type the command given below to check the Java version on your computer.

“java -version”

Using Control Panel

The most popular method for checking a software’s version is to use the software’s settings. A version check feature is provided in most software. The system’s Control Panel can be used to access the Java control panel. There is an ‘About’ button there. This button will show you the Java version that is currently installed on your computer.

To open the Control Panel, press the ‘Windows’ + ‘S’ keys combination and then type Control Panel in the search box and hit the ‘Enter’ key.

Select ‘Small icons’ from the ‘View’ drop-down menu.

Now, look through the list for Java. Select ‘About’ from the ‘General’ menu to learn about the Java version installed on your PC.

Using Programs and Features

Details on the system’s Java version can be found in ‘Programs and Features’. We can analyze all of the programs that have been installed on the computer. In ‘Programs and Features’, most apps have a version number connected with them. Take the following steps:

  • Press ‘Windows’ + ‘R’ keys combination to open Run. Type “appwiz.cpl”, and then click on OK.
  • After that, the ‘Program and Features’ window will appear. Look through the list for Java and select it. Then we can see the application’s version information.

How to Check Java Version on mac?

Terminal

Users can use the Terminal program to control the system in the same way as they can with the Command Prompt.

You can find what you are looking for with just one command.

Using the Terminal, you can easily check the Java version. Please take the following steps:

  • To open Spotlight, enter ‘Command + Space’, then type “Terminal” and press the ‘Enter’ key.
  • In the Terminal, type the following command: “Java-version”.

Using System Preferences

On macOS, System Preferences is equivalent to the Control Panel on Windows. System Preferences is where users may access information about Java programs.

You may also see all of the application’s information and versions by pressing the About button. Follow these procedures to check:

  • Click on the Apple logo in the navigation bar, select System Preferences.
  • At the bottom, click the Java icon.
  • When the Java System Preferences box displays, select the About button to see all of the application’s details.

Conclusion

This was all about checking out the Java version installed on your macOS or Windows PC. You have learned that there are many methods to check the Java version on Windows. You can use a graphical tool or the command line to see the installed version of Java. You can also use the about Java program to find the installed Java version. All these methods will help you to check the Java version on your windows. On the other hand, on a Mac computer, you can either use the Terminal program or the System Preferences to check the version of installed Java.

Read more
20May

How to Install Git on Centos, Ubuntu, and Windows?

May 20, 2021 admin centOS, Windows 10

Git is an immensely popular distributed version control system that helps users in managing all kinds of projects efficiently. More specifically, Git enables tracking of code changes, creating different code branches, and collaborating with a team of developers along with providing many more features. In fact, Git also hosts one of the most popular open-source projects, Linux Kernel.

If you are also interested in hosting your projects on Git repositories but have no idea how to install Git on your system, then you are at the right place. This guide is going to explain how to install Git on CentOS, Ubuntu, and Windows systems in a detailed manner.

Git Installation on CentOS 6.x/7.x

For installing Git on CentOS release version 6.x/7.x, you can use the ‘yum’ package manager. You need to run the following command to install Git:

$ sudo yum install Git

You may see a prompt on your screen to confirm the installation, you need to confirm by pressing ‘y’:

Is this ok [y/d/N]: y

Here is the end of the installation snippet of Git on CentOS 7 minimal setup that you will see on your system screen. This confirms that Git is installed on your CentOS 7, and please note that the dependencies installed along with Git can vary depending upon your OS version and installed packages.

Installed:

  git.x86_64 0:1.8.3.1-23.el7_8
Dependency Installed:
  perl.x86_64 4:5.16.3-297.el7 perl-Carp.noarch 0:1.26-244.el7 perl-Encode.x86_64 0:2.51-7.el7 perl-Error.noarch 1:0.17020-2.el7
  perl-Exporter.noarch 0:5.68-3.el7 perl-File-Path.noarch 0:2.09-2.el7 perl-File-Temp.noarch 0:0.23.01-3.el7 perl-Filter.x86_64 0:1.49-3.el7
  perl-Getopt-Long.noarch 0:2.40-3.el7 perl-Git.noarch 0:1.8.3.1-23.el7_8 perl-HTTP-Tiny.noarch 0:0.033-3.el7 perl-PathTools.x86_64 0:3.40-5.el7
  perl-Pod-Escapes.noarch 1:1.04-297.el7 perl-Pod-Perldoc.noarch 0:3.20-4.el7 perl-Pod-Simple.noarch 1:3.28-4.el7 perl-Pod-Usage.noarch 0:1.63-3.el7
  perl-Scalar-List-Utils.x86_64 0:1.27-248.el7 perl-Socket.x86_64 0:2.010-5.el7 perl-Storable.x86_64 0:2.45-3.el7 perl-TermReadKey.x86_64 0:2.30-20.el7
  perl-Text-ParseWords.noarch 0:3.29-4.el7 perl-Time-HiRes.x86_64 4:1.9725-3.el7 perl-Time-Local.noarch 0:1.2300-2.el7 perl-constant.noarch 0:1.27-2.el7
  perl-libs.x86_64 4:5.16.3-297.el7 perl-macros.x86_64 4:5.16.3-297.el7 perl-parent.noarch 1:0.225-244.el7 perl-podlators.noarch 0:2.5.1-3.el7
  perl-threads.x86_64 0:1.87-4.el7 perl-threads-shared.x86_64 0:1.43-6.el7 rsync.x86_64 0:3.1.2-10.el7
Complete!
$

Git Installation on CentOS 8.x

If you wish to install Git on CentOS version release 8.x or RHEL 8.x, you can use the DNF package manager. Install Git by running the following command:

$ sudo dnf install git

Now you may be prompted to confirm the installation. You will have to type ‘y’ and hit enter:

Is this ok [y/N]: y

This is the installation snippet that you will come across upon completion of the installation of Git on CentOS 8:

$ sudo dnf install git
CentOS-8 - AppStream 9.1 kB/s | 4.3 kB 00:00
CentOS-8 - AppStream 752 kB/s | 6.2 MB 00:08
CentOS-8 - Base 6.5 kB/s | 3.9 kB 00:00
CentOS-8 - Base 1.6 MB/s | 2.3 MB 00:01
CentOS-8 - Extras 3.5 kB/s | 1.5 kB 00:00
CentOS-8 - Extras 12 kB/s | 8.1 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 15 kB/s | 8.5 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 10 kB/s | 9.1 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 2.4 MB/s | 8.6 MB 00:03
Dependencies resolved.
==========================================================================================================================================================================
 Package Architecture Version Repository Size
==========================================================================================================================================================================
Installing:
 git x86_64 2.27.0-1.el8 AppStream 164 k
Installing dependencies:
 git-core x86_64 2.27.0-1.el8 AppStream 5.7 M
 git-core-doc noarch 2.27.0-1.el8 AppStream 2.5 M
 perl-Error noarch 1:0.17025-2.el8 AppStream 46 k
 perl-Git noarch 2.27.0-1.el8 AppStream 77 k
Transaction Summary
==========================================================================================================================================================================
Install 5 Packages
Total download size: 8.5 M
Installed size: 45 M
Is this ok [y/N]: y
Downloading Packages:
(1/5): git-2.27.0-1.el8.x86_64.rpm 299 kB/s | 164 kB 00:00
(2/5): perl-Error-0.17025-2.el8.noarch.rpm 173 kB/s | 46 kB 00:00
(3/5): perl-Git-2.27.0-1.el8.noarch.rpm 182 kB/s | 77 kB 00:00
(4/5): git-core-doc-2.27.0-1.el8.noarch.rpm 813 kB/s | 2.5 MB 00:03
(5/5): git-core-2.27.0-1.el8.x86_64.rpm 431 kB/s | 5.7 MB 00:13
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 615 kB/s | 8.5 MB 00:14
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing : 1/1
  Installing : git-core-2.27.0-1.el8.x86_64 1/5
  Installing : git-core-doc-2.27.0-1.el8.noarch 2/5
  Installing : perl-Error-1:0.17025-2.el8.noarch 3/5
  Installing : perl-Git-2.27.0-1.el8.noarch 4/5
  Installing : git-2.27.0-1.el8.x86_64 5/5
  Running scriptlet: git-2.27.0-1.el8.x86_64 5/5
  Verifying : git-2.27.0-1.el8.x86_64 1/5
  Verifying : git-core-2.27.0-1.el8.x86_64 2/5
  Verifying : git-core-doc-2.27.0-1.el8.noarch 3/5
  Verifying : perl-Error-1:0.17025-2.el8.noarch 4/5
  Verifying : perl-Git-2.27.0-1.el8.noarch 5/5
Installed products updated.

Git Installation on Ubuntu

The easiest way to install Git on Ubuntu is by using an apt package manager. First of all, you need to update the apt package index by running the following command in the terminal:

$ sudo apt update

The terminal will show the following output:

Hit:1 http://in.archive.ubuntu.com/ubuntu groovy InRelease
Hit:2 http://in.archive.ubuntu.com/ubuntu groovy-updates InRelease
Hit:3 http://in.archive.ubuntu.com/ubuntu groovy-backports InRelease
Get:4 http://security.ubuntu.com/ubuntu groovy-security InRelease [110 kB]
Fetched 110 kB in 1s (110 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done

All packages are up to date.

$

Then you will be required to use the following command for the installation of Git on your Ubuntu system:

$ sudo apt install git

You may see a prompt to confirm, which you can do by entering ‘Y’:

Do you want to continue? [Y/n] Y

Then you will see this installation snippet for Git installation on Ubuntu 20:

$ sudo apt install git

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following additional packages will be installed:

git-man liberror-perl

Suggested packages:

git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn

The following NEW packages will be installed:

git git-man liberror-perl

0 upgraded, three newly installed, 0 to remove, and 0 not upgraded.

Need to get 5,764 kB of archives.

After this operation, 41.2 MB of additional disk space will be used.

Do you want to continue? [Y/n] Y (Type Y and Hit Enter)

Get:1 http://in.archive.ubuntu.com/ubuntu groovy/main amd64 liberror-perl all 0.17029-1 [26.5 kB]

Git Installation on Windows

Git can be installed on Windows by downloading the applicable Windows binary installer, available on the official Git website.

On the official Git website, you will find 32-bit and 64-bit versions of Git, and you can download either of them depending on the architecture of your system. Generally, new systems support 64-bit architecture, and thus, the default downloader on the Git website should be apt for most users.

Follow the steps below to proceed with the installation process:

  • After you have downloaded the Git installer, you need to launch it. You will see the installation wizard on your system screen. On this installation wizard, you need to accept all the prompts that you may see in Windows’ User Access Control at the start of the installation. It will then ask for administrative access, which you need to accept so that the installation can be initiated.
  • If due to any administrative issues, the installation is unable to process, there is an alternative available. You can use the portable version of Git in this case. Whatever version of Git you are installing, you will need to accept the License Agreement and then click on the ‘Next’ option at the bottom of the window.
  • Now you are required to choose the installation path for Git, or you can also leave it to be the default path that is displayed on the dialog box. After specifying the desired installation path, you can click on the ‘Next’ button.
  • You will now come across a ‘Select Components’ dialog box on which you can choose the Git components that you need to install. You can leave this as default as all the essential components that you need are already selected. After selecting the required components, click on the ‘Next’ button.
  • After seeing the Start Menu shortcut options, click Next.
  • You will be asked to choose the default editor that will be used by Git. You can select one among the available options, such as Notepad, in the drop-down list. After choosing the default editor, click Next to continue.
  • Then you will see the dialog box for naming the initial branch for the new repositories. You can leave it as it is and “Let Git decide,” or you can name it yourself in the second option and when done, click on the ‘Next’ button.
  • By default, Git will be added to the Windows PATH variable to be accessible for other programs like Command Prompt, etc., and you can choose the 1st option if you would like to use Git from Git Bash only. Once you have selected your desired option, click the ‘Next’ button to continue.
  • Network-related actions for Git like push and pull requests require Secure Shell or SSH executable, and on this dialog box, you are given a choice to select the SSH executable you prefer. The default option selected is “Use OpenSSH,” and it should be left as it is except if you specifically need TortoisePlink. To continue with the installation, click the ‘Next’ button.
  • You can choose the default selected option for choosing the HTTPS transport backend, “Use the OpenSSL library”. The other option is the one that comes with Windows; you can choose whichever you want and then click on Next.
  • You need to confirm the commit style next. It should be noted that Windows and Linux/Unix systems interpret end-of-line differently. So, for making the code compatible between different development platforms, Git must be made aware of how the code file has an end-of-line character specified and whether it is required to be switched to another style. The default option selected here is ideal as it enables all the switching and conversion to happen in the background by Git, and if you are unsure what option you would like to choose, then you can consult your Git code administrator. When done, click on the ‘Next’ button to continue further.
  • The next dialog box that you see will ask you to configure the terminal emulator, which enables you to either have a BASH-like environment or Windows Command Prompt as the default console. You can choose either of these options as they both work nicely, and after selecting one of them, you can click Next.
  • Now you will be asked to specify the default “git bull” behavior, and in this case, you should go with the default option selected unless you have certain specifications. When selected, click on the ‘Next’ button to move on.
  • The credential manager is designed to store your private information, such as your passwords and keys that you require for logging in to various remote Git repositories. The first option should also be selected, which is the default because Git Credential Manager has been deprecated. You need to click on the ‘Next’ button to continue.
  • Now you will be required to select some additional options such as file system caching and symbolic links. You can click on Next after selecting the desired options.
  • The experimental configuration dialog box is meant for you to enable features on Git that have not been fully developed and tested yet. You can leave the options unchecked except if you need any of those. At last, click on the ‘Install button at the bottom of the dialog box so that the installation process can begin with your preferred selections.
  • Now you will observe that the installation of Git on your Windows system begins, and you have to wait for it to be completed.
  • After the installation is complete, a final dialog will appear that will enable you to launch Git Bash.
  • In the future, you can launch Git Bash or Git GUI by clicking on its icon in your Windows Start Menu. Git Bash is a similar command line (CLI) that Linux offers, and all Git commands are supported by it. Now, you can verify the Git version by launching the Git Bash and following the steps mentioned in the next section.

Verifying Git

In order to verify your Git installation and check if its the right version that you have installed, you need the run the following command on the Git Bash in Windows:

$ Git --version

Output:

git version 2.27.0
$

Conclusion

The purpose of this guide is to define the individual steps required to install Git on different operating systems, namely CentOS, Ubuntu, and Windows. If you follow the steps mentioned within the article properly, you will be able to install Git with ease. If you have any issues with installing Git or using Git, you can check out the resources available on their official website.

Read more
29Apr

How to Install Kubernetes on Windows and macOS?

April 29, 2021 admin Kubernetes, macOS, Windows 10

Kubernetes was designed to help developers easily manage their cloud resources as well as build scalable apps. It is known to be the most popular and helpful tool when it comes to automate, deploy, and scale your cloud applications.

Kubernetes supports almost all popular operating systems, including Windows, macOS, and Linux. In this article, we are going to talk about the easiest ways to install Kubernetes so that you can automate deployments and perform other important things for your web applications.

What is Kubernetes All About?

Kubernetes is portable, open-sourced, and extensible, which helps you manage and operate your containerized applications and services. It is a fast-growing ecosystem that helps you manage containerized applications with peace of mind. When you install Kubernetes, you can choose the application type you are looking to build.

All of these features require different ways to set up and run Kubernetes on your system. However, you can also deploy a cluster of Kubernetes on your local system as well as on the cloud.

Kubernetes is one of the best and easiest ways to power cloud-native microservices. It comes with a galore of benefits that attract developers from all over the world. Its benefits include the following:

  • Comes with a cloud-native design that helps a modular, distributed architecture to effectively monitor and scale the applications.
  • Kubernetes is easy to carry and move. If you are moving it to your Windows system from Linux, it will work exactly the same way it worked on Linux. Regardless of the type of environment, it is in, Kubernetes will use the same images and configuration.
  • Being open-source, developers find Kubernetes extremely helpful as it can be used anywhere. There is no concern regarding its setups, and that’s why Kubernetes has become the world’s most validated application manager.

The first step is to know what Kubernetes is all about (which you just did) and the next step is to find out how to install it on your computer regardless of what OS you are using. We will talk about how to install Kubernetes soon, but before that, let’s find out how Kubernetes play a role in placing, scaling, replicating, and monitoring containers on nodes.

How Does Kubernetes Work?

Kubernetes is the easiest way to manage the lifecycle of a containerized application in various environments. It can easily automate and scale several containers at once. Containers refer to the series of application data and resources that are important for the apps to run and operate in different environments.

If Kubernetes wasn’t there, developers wouldn’t be able to carry and transfer application data without losing their value and resources. Kubernetes acts as a container orchestration system that groups the application data so that they can operate correctly.

Kubernetes works as the administrator for operating containerized applications. If a container needs anything to operate properly, such as resources, the container orchestrator takes care of it. Kubernetes have different components that take care of all its business in just a short time span.

Prerequisites of Installing Kubernetes

Have a look at the requirements for installing Kubernetes on different PCs:

Hardware requirements (You need one of more machines that are running these components)

  • Ubuntu 16.04+
  • Debian 9
  • CentOS 7
  • RHEL 7
  • Fedora 25/26 (best-effort)
  • HypriotOS v1.0.1+
  • Container Linux (tested with 1800.6.0)

But don’t worry, you can install Kubernetes on Windows and macOS without an effort. We will be going to show you how, later in this post.

Requirements for memory & CPU (cores) at the minimum

  • 2GB of memory for the master node and 1GB of memory for the worker node at the minimum.
  • The master node needs 1.5 core, and the worker node needs 0.7 cores at the minimum.

You need to consider the following criteria before installing Kubernetes on your system:

  • Make sure your Kubernetes solution install clusters have underlying metadata and high available replication to back you up if any failure occurs.
  • The developers of Kubernetes release a major update every 3-4 months. Ensure a good upgrade strategy of Kubernetes to make your business operations as smooth as possible.
  • Ensure if your Kubernetes supports federated clusters installation that can grow in private and public cloud systems for the strength of infrastructure and dynamic burst ability.
  • What professional features do you and your team members need to scale the applications? You may need SSO support, RBAC, isolated networking, persistent storage. Confirm your requirements.

Once you ensure that your system meets all these requirements, you can manage and install kubeadm, kubelet, and kubectl (clusters) as many as you can, and at the same time, you can deploy the pods or docker containers in the cloud platform.

Below, we have demonstrated the steps to install Kubernetes and using the official web GUI dashboard to manage the applications.

How to Install Kubernetes on Windows 10?

Step 1: Install & Setup Hyper-V

VirtualBox and HyperV are virtualization software. Both are available for Windows 10. However, the two are very similar such that people easily confuse them with each other. VirtualBox is for steroids which you can always use on your Windows 10 system.

Your Microsoft account has a default GUI tool that the Hyper-V can use to manage the virtual machines (VM) for free. You can easily enable Hyper-V but for that ensure that your computer is totally compatible with the process. You should meet the following requirements:

  • Windows 10 (Enterprise, Pro, or Education).
  • 4GB RAM and CPU Virtualization support that has to be enabled in the BIOS settings.

Hyper-V is not always present in your Windows 10 system, but you can easily enable the feature by following the steps below:

  • Step 1: Open Control Panel (Type Control Panel in the Windows search option).
  • Step 2: Click on Programs on the left-side menu.
  • Step 3: Then click on Programs and Features.
  • Step 4: Next, click on Turn Windows features on and off from the left-side.
  • Step 5: Check the Hyper-V and Windows Hypervisor Platform option.
  • Step 6: Then click OK.

Your computer will start installing Hyper-V in the background, and once it’s done or in the process, you may have to reboot your computer a few times. However, once it is installed, they won’t send you any notification.

You will have to check manually whether the feature is installed or not. You can run the Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V command on your Windows Powershell as an Administrator to check out the status of the process.

Step 2: Install Docker on Windows

Kubernetes manages all the components of your docker containers. The container orchestrator interacts with your docker containers to set everything in place smoothly. Therefore, having Docker on your system is important and if you have not installed it already, you can do so with the steps below:

  • Step 1: Go to hub.docker.com.
  • Step 2: Scroll down and find the Get Docker Desktop for Windows button and click on it.
  • Step 3: Then follow the on-screen instructions for installing Docker.
  • Step 4: Click on Finish.

You won’t have to do anything after that. Docker has an automatic setup of a Linux virtual machine above Hyper-V, and it will start all the necessary services without any human intervention. After the process is completed, you can communicate with Docker using the CLI tool, or you can also run HTTP requests through its API.

Step 3: Install Kubernetes on Windows 10

You can install as well as enable Kubernetes from the GUI tool within Docker itself. First, find the tray icon of the docker in your system tray. If you can’t locate any, you will have to reboot your system again.

Or if you can’t still find the tray, you can go to this link to troubleshoot the error. And once resolved, follow the instructions below to install Kubernetes with ease:

  • Step 1: Find the docker tray icon and right-click on it.
  • Step 2: Go to “Settings.”
  • Step 3: Click on “Kubernetes” from the left panel.
  • Step 4: Tick the Enable Kubernetes option.
  • Step 5: Click on Apply.

While enabling Kubernetes, Docker will install some packages and dependencies on your system, which is going to take around 5~10 minutes depending on the speed of your computer and internet connection.

When the installation is over, Docker will let you know through a pop-up notification. After the installation, use the Docker application to ensure it is working or not, if it is, both of the features will have a green light at the bottom of the docker dashboard. And your next step will be to install the Kubernetes dashboard to proceed further with the process.

Step 4: Install the Kubernetes Dashboard

From the Kubernetes dashboard, you can manage the resources as it is a web-based UI. That’s why installing the Kubernetes dashboard is necessary. You can deploy applications with Kubernetes using the CLI tool, kubectl that will help you interact with the clouds to manage your pods as well as nodes, and clusters.

Let’s run some commands on your system to deploy and enable the dashboard. All you need to do is just run some commands and click on the right buttons whenever necessary. This is how to do it:

  • Step 1: Go to this link and download the yaml configuration file.
  • Step 2: Run the kubectl apply -f .\recommended.yaml command to deploy the yaml configuration file.
  • Step 3: To check if the kubectl is running or not, verify it using the kubectl.exe get -f .\recommended.yaml.txt command.

Once it is running, you can easily access the dashboard. Follow the next step if you are unsure of the process.

Step 5: Accessing the Kubernetes Dashboard

During the installation of Kubernetes, your system created a default token, and you can use that token to get into the Kubernetes dashboard. Or you can create new users and give them permission to get the default token. But, getting the token alone and using it will be the simplest way to access the dashboard. So, let’s get to it:

  • Step 1: Run the ((kubectl -n kube-system describe secret default | Select-String “token:”) -split ” +”)[1] command on Windows Powershell and not Command prompt.
  • Step 2: It will generate the token we are looking for.
  • Step 3: Once it does, you will have to copy that token.
  • Step 4: Then run the kubectl proxy command in the same Powershell window.
  • Step 5: Go to your browser and paste and visit this link.
  • Step 6: Select Token from the link.
  • Step 7: Go back to your Powershell window and paste the token.
  • Step 8: It will take some time to go with the process, but once done, you will have the sign-in option.

When everything is done, you will be able to see the dashboard and your cloud resources and you can do whatever you need to arrange your containerized applications. This process is applicable for Windows users only. However, if you are running macOS or another operating system, read on to find out more about the installation process.

How to Install Kubernetes on macOS?

You can develop applications on your Mac by following this step-by-step guide. Check out the How to install Kubernetes on Windows section above to grab a better understanding of this process.

However, to run Kubernetes, you will have to have some necessary tools such as Homebrew, Docker for Mac, Minikube, VirtualBox, and kubectl—the same things that we have used in Windows earlier.

You can install Homebrew on your macOS by running the brew tap caskroom/cask command in your Terminal. And within Homebrew, you can install Virtualbox for Mac by running the brew cask install VirtualBox command. We need the following items to run Kubernetes on macOS:

  • Run the containers.
  • The command-line tool, kubectl.
  • The oc command-line tool for Red Hat OpenShift.
  • An image to run the Kubernetes test.

Now, follow the steps below to proceed with installing Kubernetes on macOS. If you have run the brew install kubectl command on your Terminal to install kubectl, you are now good to go with these next steps:

  • Step 1: Install Minikube from Installation > OSX instructions from the latest release and run the curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.27.0/minikube-darwin-amd64 &&\ command in your Terminal. This will help Minikube to run in the Kubernetes cluster with a single node.
  • Step 2: Start the cluster with a minikube start command and then run kubectl api-versions in the Terminal. You will see a list of versions on-screen that confirms that everything is working fine. But the minikube start command line will take some time to complete.

Sometimes the “Error starting host: Error getting state for the host: machine does not exist.” error comes up. But whenever it does, you can easily erase it. Here is how to do it:

  • Step 1: Run open ~/.minikube/. It will open Minikube’s data files.
  • Step 2: To prevent the particular error from happening again, you can delete the machines directory.
  • Step 3: Then run the minikube start command again.

This should do it and run Kubernetes on your macOS. However, you will need to know how these different components relate to each other so that you can go with Kubernetes more conveniently. Here’s the same:

  • VirtualBox lets you run a different virtual machine on your macOS. Kubernetes is specially designed for the Ubuntu users. But even if you use a Mac you can use VirtualBox to install Ubuntu or Windows on your computer.
  • To run the Kubernetes clusters on your machine, you will need Minikube, which is a Kubernetes-specific package. Kubernetes clusters come with some unique sets of features that help the applications to run in the local environment.
    Once VirtualBox is installed on your computer, it will need Minikube to tell it what to do, when to run and when to stop. Not just the VirtualBox though, Minikube is capable of running other virtualization tools as well. However, those tools may need some extra configuration settings.
  • Once you have Minikube, you will need kubectl because without it you cannot interact with the Minikube Kubernetes cluster. To manage your Kubernetes environments, kubectl will send an HTTP request to the Kubernetes API server that runs on the cluster.

Conclusion

That’s all. The whole process needs time and patience, and once it is done, you can start managing your applications effortlessly. If you go through the How to install Kubernetes on Windows section of this post, you will be able to pull off the process in macOS as well. If you need any help, let us know in the comments box below.

Read more
05Apr

Most Common Run Commands in Windows Explained

April 5, 2021 admin Windows 10

If you are using a Windows system, you must be aware of Run commands. These are used to access various settings and applications within the system directly. All you need is to memorize these short commands to speed up your work and enhance productivity.

It will help you save much time going through many steps to reach your desired setting and application, and it is sometimes challenging to remember every step. Professionals use Run commands in their day-to-day use to save time by reducing mouse – cursor – use.

If you want to be more productive, you should go through this article to learn Run commands to ease your work.

How to Open the Run Dialog?

Before you start with Run commands, you should know how to open the Run dialog to enter the commands. You can follow any of the following 2 ways to access the Run dialog box in Windows.

One way is to simultaneously press the Windows and R keys, and the other way is to right-click the Start menu and select the Run option from there. Once you choose any of the ways, the Run prompt will appear on your screen like this:

If you do not want to use the mouse and want a quick solution, you can go for the Windows + R option. Once the Run dialog box is open, you are now ready to enter various commands for easy access to applications and system settings.

We have prepared the following list of Run commands that will make your life easier while working on a Windows system:

Commands Description
colorcpl.exe It will open the color management.
azman.msc It will open the authorization manager.
calc It will open the calculator.
certmgr.msc It will open the certificate manager.
chkdsk It will check the disk state and functioning.
cmd It will open the command prompt.
compmgmt.msc It will open the computer management.
control It will open the control panel.
control access.cpl It will open the ease of access.
control color It will open the color and appearance.
control folders It will open the folder options.
control fonts It will open the fonts window from the control panel.
control keyboard It will open the keyboard properties.
control mouse It will open the mouse properties.
control netconnections It will open the network connections.
control printers It will open the devices and printers.
control schedtasks It will open the Task scheduler.
control userpasswords2 It will open the User accounts.
control wuaucpl.cpl It will open the Windows update menu.
credwiz It will open the backup and restore menu.
dcomcnfg It will open the Component service.
desk.cpl It will open the Desktop resolution.
devmgmt.msc It will open the Device manager.
dfrgui It will optimize the drives.
dialer It will open the phone dialer.
diskmgmt.msc It will open the disk manager.
diskpart It will open the Disk partition utility in cmd.
dxdiag It will open the Directx diagnostics.
eventvwr.msc It will open the event viewer.
firewall.cpl It will open the firewall menu.
fsmgmt.msc It will open the shared folders menu.
gpedit.msc It will open the local group policy editor.
inetcpl.cpl It will open the internet options.
ipconfig Lets you see the IP address in cmd.
iscsicpl It will open the iscsi properties.
logoff It will logoff the current user.
lpksetup It will install or uninstall the display drivers.
magnify It will open the magnifier.
mmsys.cpl It will open the sound manager.
msconfig It will open the system configuration.
msdt It will open the Microsoft support diagnostics.
msinfo32 It will open the system information.
mspaint It will open the paint.
mstsc It will open the remote desktop connections.
ncpa.cpl It will open the network connection menu.
netplwiz It will open the user accounts.
notepad It will open the notepad.
osk It will open the on-screen keyboard.
perfmon.msc It will open the performance monitor.
powercfg.cpl It will open the power options.
regedit It will open the registry editor.
rsop.msc It will open the resultant set of policies.
secpol.msc It will open the Local security policy.
services.msc It will open the service manager.
shrpubw It will open the shared folder wizard.
sigverif It will open the file signature verification.
slui To activate Windows with a product key.
sndvol It will open the volume mixer.
sysdm.cpl It will open the system properties.
syskey It will secure the Windows account database.
system.ini It will open the system app support file in notepad.
taskmgr It will open the task manager.
telephon.cpl It will open the Location manager.
telnet It will open the telnet client.
timedate.cpl It will open the date and time manager.
tpmInit TPM security manager.
verifier It will open the driver verifier manager.
wf.msc It will open the Windows firewall and advanced security.
winver Displays the Windows version.
wmimgmt.msc It will open the WMI console.
write It will open the default text editor.
wusa It will open the Windows update standalone manager.

Discussing each of these Run commands in detail goes beyond the scope of this article. As such, in the next section, we will be discussing some of the most commonly and frequently used Run commands in detail.

Commonly Used Run Commands

1. Access System Configuration (msconfig)

Using the msconfig command, you can open the system configuration window that will display multiple tabs for managing the boot settings and services running in the background.

2. Access Resource Manager (resmon)

The resource manager will display all the real-time information about your system resources, like RAM, disk space, CPU, and network usage. If you are facing issues like system freeze-ups, you can monitor resource consumption and resolve the issue from here.

3. Open System Information (msinfo32)

This window will display all the information about the system hardware and software. This command (msinfo32) comes in handy if you want to see the specifications of your system. All the displayed information can be exported in a file that can be shared for getting assistance.

4. Access Mouse Properties (main.cpl)

This window will allow you to control all the mouse-related settings, like speed, buttons, and the wheel.

5. Open Window Registry (regedit)

This is the easiest way to access the registry settings of your system. You will get the below window for changing the registry details:

6. Access System Properties (sysdm.cpl)

You can run a simple command for managing the system protection and remote connection features of your system. You will also get the option to control the performance setting and change the performance settings as per your requirement(s).

7. Open Windows Feature (optionalfeatures)

If you want to change some of the system’s advanced settings, then it is the Run command to use. But if you are not sure what you are changing, then do not try to change any of the default settings.

8. Open Character Map app (charmap)

Using this command will display the character map for you to access all the characters available. These characters may not be available from your keyboard, and you can either copy the character from here or memorize the Alt code for a specific character.

9. Access Service Manager (services.msc)

This command will open a service manager window that lists all the running services within your Windows system. You can either start, stop, or sync any of the services as per the requirement(s).

10. Access Remote System (mstsc)

This command will open the remote desktop connection manager for connecting to the remote host on the network. This will allow you to connect to any remote server with the proper ID and password. You can even host your computer as your own.

11. Access the Computer Management App (compmgmt.msc)

This will open the computer management app where you can check the advanced Windows modules, like Event Viewer and Shared Folder.

12. Access Command Prompt (cmd)

You can even access the command prompt using a single Run command, which is cmd. It is one of the most-used Run commands by system admins.

13. Access Malicious Software Removal Tool (mrt)

You will get a newer version of this tool through Windows update. You will get rid of malicious software running on your system. This tool will work in the background, but you need to run the mrt command to run this tool manually.

14. Access Performance Monitor (perfmon.msc)

This command will open the performance monitor on your system that will help you to access the performance of your Windows computer and programs running on it. You can run the perfmon.msc command for accessing this monitor.

15. Access Power Options (powercfg.cpl)

With the Windows system, you will get various power options for dealing with the computer’s power usage. This command will allow you to access all those options.

Conclusion

This is now the end of this post detailing the most used Run commands. You can go through each of the most commonly used commands and see what screen they will open for you.

You must add these commands to your arsenal for easy access to Windows. This will save you a lot of time and effort as some of the windows and settings these commands open are hard to find and navigate. But with these one-click Run commands, you can get to them easily.

 

Read more
13Jan

How to Install Docker on Windows 10?

January 13, 2021 admin Docker, Windows 10

Practically, all the top organizations around the world have digital services that depend on Docker containers for running their applications.

With a Windows installer and a well-documented installation procedure, Docker on Windows has become one of the famous containerization platforms.

To set it up, most of us download and use the executable file available on the official website of the containerization platform, but you don’t have to do all that.

Just use the command line and ensure that the WSL is already enabled on your device, then follow the given steps, and you are done.

What is Docker?

Docker is an open-source project that makes it possible to build, run, manage, and distribute far more apps. Also, Docker makes it easy to create containers and container-based apps.

Originally built for Linux, but now Docker runs on Windows and macOS as well. Before heading towards understanding how Docker works, let’s first know the required components you would use to create containerized applications in Docker.

Docker Architecture

As evident in this picture, every app runs on separate containers and has its own set of dependencies & libraries. With this, developers can easily build apps without the fear of interfering with one another.

Components Installed with Docker

1. Docker Engine

The Docker engine contains the Docker daemon, REST API for interacting with the Docker daemon, and a CLI client that communicates with the daemon. Docker daemon accepts Docker commands – such as Docker run and Docker build – from the Docker client.

2. Docker Compose

This component is used to run multiple Docker containers at once by running a single command, which is docker-compose up.

3. Docker Machine

To install the Docker engine, we need to use a Docker machine. Docker Machine has its own command-line client docker-machine and the Docker Engine client, docker.

4. Kitematic

This is an open-source project built to simplify the use of Docker on Windows. It provides an interactive user interface for running Docker containers although It helps to automate the installation of Docker.

5. Boot2Docker ISO

It is a tiny Linux distribution that will help you to run Docker on Windows.

6. VirtualBox

It is an open-source hypervisor for Windows used to emulate operating systems.

Pros of Working with Docker on Windows

  • Maintaining parity between testing and productiondeployment.
  • Running different versions of the same application.
  • Use the same toolset on both Windows and Linux.
  • Hypervisor containers provide a solution for enhancing the security of your Windows app deployments.
  • Enables faster software delivery cycles.
  • Facilitates application portability.
  • Solves different environment-based problems.

For creating an optimized and fast container environment to run various virtual machine images, you will need to learn the commands to use on Powershell for installing Docker on Windows 10 using WSL 2 support.

This is what we are going to explain in this blog. So without wasting any more time, let’s deep dive into installing Docker on Windows.

Why Utilize a WSL (Windows Subsystem for Linux) for Installing Docker on Windows?

WSL makes it very easy to operate Docker without Hyper-V or VirtualBox. The Windows Subsystem for Linux comes with the ability to run a full-fledged Linux kernel using WSL 2. The best part of WSL is that it is already available in Windows 10.

Prerequisites for Installing Docker on Windows 10

  1. Windows 10 Pro
  2. Administrator access to Powershell
  3. Docker
  4. Chocolatey
  5. WSL
  6. A reliable internet connection

1. Get Windows 10 Pro Ready

Before heading to install Docker on Windows 10, just make sure your Windows 10 is Windows 10 Pro otherwise you cannot install Docker on Windows 10.

2. Time to get Admin access

To run the installation command for Docker, We will require the Administrator access of PowerShell.After getting the admin access just right-click on the Windows 10 Start button and lastly, click on the “Windows PowerShell (Admin)”.

3. Download Docker

You can directly install Docker from the Docker Store. You will need to create an account to download it. Having an account for Docker will allow you to download Docker images in the future.

Download Docker images

Just go to the Docker official page and Click on Products -> Docker Desktop on the menu bar. You will now be at the Docker Desktop product page, which looks like this:

Docker Home page

Here you will have a button labeled “Download Docker Desktop for Windows.” Just click on it.

Download Docker Desktop for Windows

Note: The size of this installer file for Windows is around 914 MB.

4. Install Docker Desktop on Windows

To run the Docker installer, simply double-click the Docker Desktop Installer.exe file.

You can get it from Docker Hub If you haven’t downloaded the Docker installer (i.e. Docker Desktop Installer.exe). Though it downloads to your Downloads folder by default, you can run it from the recent downloads bar at the bottom of your web browser, if using Google Chrome.

The Docker installation will start now. Now you need to:

  • Ensure the Enable Hyper-V Windows Features option is selected on the Configuration page.
  • To authorize the installer and proceed with the install, follow the instructions on the installation wizard.
  • Click Close to complete the installation process once the installation is successful.
  • You must add the user to the docker-users group if your admin account is different from your user account. After that, simply Run Computer Management as an admin and navigate to:

Local Users and Groups > Groups > docker-users

  • After doing so, add the user to the group. To do so right-click on the add option. For the changes to take effect, log out, and log back in.

Install Chocolatey

Use this command to install Chocolatey:

Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

Now make sure that Chocolatey is installed. Go ahead and close the Powershell and reopen it as Admin and check if Chocolatey is installed by typing the following in the terminal window:

Choco?

Next, run Chocolatey in your PowerShell with admin rights.

Powershell

After completing the above steps, everything is ready on Powershell, and you are good-to-go to install Docker on Windows 10 Pro or Windows Server 2019.

Now, use the command written below:

choco install docker-desktop –pre

While running the above command, it will ask for your permission to install the packages. To allow it, just type A and hit Enter.

To run the open-source containerized platform, just double-click on the Docker icon on your desktop or system tray.

Docker icon

Configure WSL 2 Distro

After completing the Docker installation, Docker will install its own WSL 2 Linux distro on your device and set it as the default one. Hence, users can easily initiate it using PowerShell.

Just go to the Docker Desktop app, click on the Resources option given on the left side, and simply select the WSL integration option. On the off chance, you might need to enable the Docker support to other available WSL Linux distros on your system.

By doing so, you will find all installed and available WSL distros there. To enable Docker support, use the toggle button present in the front of the Linux distro. Now, you can easily run all the Docker commands.

How Does Docker Work?

Docker works a lot similar to Visual Studio Code’s WSL remote development support. The Docker command-line interface running on the Docker host machine executes commands within the Docker Integration Package, which runs on the remote WSL VM.

Docker Working

There’s no need for the Hyper-V, as Docker runs directly within WSL and all Linux containers run within the Linux userspace on Windows for enhanced performance and compatibility.

Uninstall Docker Desktop

To uninstall Docker Desktop from your Windows machine:

  • Go to the Windows Start menu and navigate to Settings > Apps > Apps & features.
  • From the Apps & features list, Select Docker Desktop and then select Uninstall.
  • To confirm your selection, Click Uninstall.

The Final Take

Well, we shared everything that a person should know and follow for successfully installing Docker on Windows. We hope that this blog helps you.

If you still have any confusion or any concern about installing Docker on Windows or you find something wrong in this article, let us know by leaving your query in the comments section below. We will get back to you at the earliest possible.

Read more
corporate-one-light
+1 800 622 22 02
info@scapeindustries.com

Company

Working hours

Mon-Tue

9:00 – 18:00

Friday

9:00 – 18:00

Sat-Sun

Closed

Contacts

3 New Orchard Road
Armonk, New York 10504-1522
United States
915-599-1900

© 2021 Kuberty.io by Kuberty.io