Linux Distribution Installation -Red Hat and Ubuntu

Redhat and Ubuntu are the most commonly used Linux distributions. Few features of the Redhat distribution can be got from the paid version of Redhat.

Ubuntu is an open-source distribution.

Redhat Installation

We shall download the Redhat Linux operating system.

virtual-box31

  • Then enter Redhat login credentials or email id then click on the Next button. If we do not have Redhat credentials click on the Create one now link, download the Redhat ISO image and save it to a location.

virtual-box32

  • Open the Oracle VM VirtualBox Manager and click on New.
  • The Create Virtual Machine window opens. We have to provide the name of the Virtual box. The Machine Folder, Type, and version fields get populated by default.
  • Click on the Next button.
  • We shall have to choose the Memory size. Click on the Next button.
  • The Hard disk options shall be available for selection. Continue with the default value selected. Then click on the Create button.
  • The Hard disk file type options shall be available for selection. Continue with the default value selected. Then click on the Next button.
  • The Storage on physical hard disk options shall be available for selection. Continue with the default value selected. Then click on the Next button.
  • The File location and size fields shall be available for input. Enter the necessary values. Then click on the Create button.
  • Congratulations!! Our Virtual Box has been created with the name Redhat-VM with all the necessary information.

virtual-box33

  • Click on the Start button from the top. We shall attach the Redhat ISO image to it which we have downloaded.

virtual-box34

  • Browse and select the Redhat ISO image file and click on Start.

virtual-box35

  • Select option the Test this media & Install Red Hat Enterprise Linux 7 and press Enter.
  • The installation process starts and after some time we shall be navigated to the welcome page of the Red Hat Enterprise Linux 7 screen. Here we have to select the language during the installation process then click on the Continue button.

virtual-box36

  • The INSTALLATION SUMMARY page appears with the information on LOCALIZATION, SOFTWARE, and SYSTEM.
  • The SOFTWARE SELECTION section under the SOFTWARE by default value has the Minimal Install. If we want to modify it, then click the SOFTWARE SELECTION field and select an option under Base Environment and also from Add-Ons for Selected Environment. Then click on the Done button.
  • Next, we shall move to the INSTALLATION DESTINATION section and specify the location where we want to download this operating system. Click on that and the INSTALLATION DESTINATION window appears. Here we shall proceed with the values selected by default for the Device Selection and Other Storage Options sections. Then click on the Done button.
  • Next is the KDUMP section. It is for generating logs when there is a crash. In order to have the logs, the KDUMP should be set to enabled.
  • Next click on the NETWORK & HOST NAME, we have to enter the name of the Virtual box that we have created that is Linux-Redhat-2018 inside the Host name field then click on the Apply button. The Current host name field gets populated with the name we have provided for the Host name field.

virtual-box37

  • Also, information like Hardware Address, Speed, and Subnet Mask are displayed. Click on Done.
  • Click on the Begin Installation button.
  • The package installation process starts. Under the USER SETTINGS, we have the ROOT PASSWORD and the USER CREATION options available.
  • Click on the ROOT PASSWORD option and set a strong password for the root or admin user and confirm it. Click on the Done button.
  • Next, click on the USER CREATION option and provide information on the regular user. Click on the Done button.
  • Once all the packages get installed, we shall get the completion message. Click on the Reboot button.

virtual-box38

  • After reboot, we find there is no GUI and we simply get the login prompt with the hostname after that. We can log in as root or regular user. Enter password.

virtual-box39

  • We shall have the root prompt which begins with a pound or a hash sign.

Congratulations!! We have successfully installed Redhat.

This is the free Redhat Enterprise Linux Developer Subscription used for development use only.

Ubuntu Installation

We shall download the Ubuntu Linux operating system.

  • Open the Oracle VM VirtualBox Manager and click on New.
  • The Create Virtual Machine window opens. We have to type some text under the Name field. The Machine Folder, Type, Version, Memory size, and Hard disk field gets populated by default. Click on the Create button.
  • The Create Virtual Hard Disk window opens. The File Location, Filesize, Hard disk file type, and Storage on physical hard disk fields shall have values populated by default. Click on the Create button.
  • Congratulations!! Our Virtual Box has been created with the name LinuxUbuntu with all the necessary information.

virtual-box40

  • Navigate to the link: https://ubuntu.com/download/desktop.
  • Click on the Download link.

virtual-box41

  • A pop-up message to save the file shall open. We have to save the file to a location.
  • Open the Virtual box and click on the Start button. Initially, it is an empty virtual machine with no operating system. We shall attach the Ubuntu ISO image to it which we have downloaded earlier in the initial steps. Click on the small folder appearing beside the dropdown with Empty value.
  • Browse and select the Ubuntu ISO image file and click on Start.

virtual-box42

  • Select the option Install Ubuntu and press Enter.
  • Under the Keyboard layout section, choose the keyboard layout and then click on Continue.

virtual-box43

  • Under the Updates and other software section, we have What apps would you like to install to start with? and Other options.
  • Select the default option Normal Installation selected for the What apps would you like to install to start with? section. Click on Continue.

virtual-box45

  • Under the Installation type section, select the option Erase disk and install Ubuntu and click on the Install Now button.

virtual-box46

  • A pop-up message Write the changes to disks? comes up. Click on Continue. virtual-box47
  • Next, Who are you? screen appears where it picks automatically the location. Click on Continue.
  • In the next Who are you? screen, enter the details like name, computer's name, username, password, confirm the password, and so on. Click on Continue. virtual-box48
  • The installation process starts. It may take a while. Once done, we shall get the Installation Complete message.

virtual-box49

  • Click on Restart Now and we shall be navigated to the Ubuntu login screen.

virtual-box50

  • Click on the username. Provide the password and click on the Sign in button.

virtual-box51

Please note - If we want to log in as root, then click on Not listed? link. Enter the Username as root. Then provide the password.
  • Right-click on the desktop and select the Open Terminal option to start working on the terminal.

virtual-box52

Congratulations!! We have successfully installed Ubuntu.

About Author :

Myself Debomita Bhattacharjee, an IT employee with 6+ years of experience in Software industry. My area of interest is Automation testing and Front End Development.

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions