Linux tutorial 1 - Basic concepts and setup Ubuntu in VMware

From now on, I will write the tutorial of Linux, which introduce the most commonly used techniques according to my experience in software development. Hope that I can help you to improve the skill for working as soon as possible.

The guide line includes:

The relations between operating systems

The well-known Linux is an open-source operating system (abbreviated to OS) originate from Unix, an OS developed in the 1970s at the Bell Labs. Due to the motivation of sharing the software in free, the Finland engineer Linus proceed to develop the Linux kernel, and published the result in 1991. The linux kernel are widely used in different released version by many different groups since then.

The main branches of linux are Debian and Redhat. Most of the commands share between them except for installing packages.

Branches Package manager Package install format OS Open-source Script format
Windows choco .msi Windows X .bat
Linux-Debian apt .deb Ubuntu O .sh
MacOS X .sh
Linux-Redhat yum .rpm Redhat X .sh
CentOS O .sh
Fedora O .sh

The frequently used OS for software development is Ubuntu or CentOS. This tutorial is based on Ubuntu.

Why Linux?

There are several reasons for learning Linux essentially. First, Ubuntu is open-source and supported by strong communities, that is, most of the solution can be found in the internet. Second, the operations must be executed automatically in every products, Linux is more easy and reliable to execute command lines without GUI (executes commands are faster than GUI as well definitely). Third, Linux is much more stable than Windows because Linux will not update itself automatically, therefore, we can ensure the software behaves well until the hardware malfunction. All in all, to become a software engineer, it is necessary to learn Linux.

Virtual machine

The simplest way to learn Linux operations on Windows platform is to install a virtual machine without refilling your computer. Virtual machine is a commnly-used techniques to seperate the OS’s in a computer. Most of the testing program are executed in the virtual machine because the original OS (so-called host OS) is save even if the testing program leads to fatal damage in the OS in virtual machine (so-called guest OS). In this tutorial, we will install Ubuntu as guest OS based on Windows host.

Setup Ubuntu in VMware

  1. Download and install VMware Workstation.

    Just keep clicking next during the installation step and it will complete easily.
  2. Download Ubuntu

    Select the desktop image with filename extension .iso. e.g. ubuntu-18.04.5-desktop-amd64.iso
  3. Launch VMware then install Ubuntu image in the virtual machine
    • Click “create a new virtual machine”
    • Select the Ubuntu image
    • Enter your username and password
    • Check the memory, disk space allocation
    • Launch the virtual machine and install Ubuntu
      • After the installation. Click Player -> Manage -> Install VMware Tools

You will see the Desktop if the installation complete.