Installing Redhat Linux 8 in CLI mode
- Subhabrata Datta

- Jun 26, 2020
- 2 min read
Updated: Jul 2, 2020
Installing Redhat Linux 8 in CLI mode in Oracle Virtual Box ! Accessing Linux using putty ! Assigning new hostname to our OS !
Installing our Redhat Linux in CLI mode instead of the GUI mode will save us lot of resources in terms of CPU, RAM & DASD storage. And we can get our practicals & things done with minimal resources.
In this blog we will be creating a VM (Virtual Machine) using Oracle Virtual Box. Inside the VM, we will be installing the Redhat Linux 8 (CLI mode). We will be connecting to the Linux OS using putty and will assign a hostname to the OS.
Let's get started !
Downloads required
i) Oracle Virtual Box and Oracle Virtual Box Extension Pack: https://www.virtualbox.org/wiki/Downloads
[Note: Virtualization must be enabled in your BIOS settings in order to install Virtual Box]
ii) Redhat Linux 8 iso file: https://developers.redhat.com/rhel8/
Step 1: Creating VM for Redhat Linux 8 inside Oracle Virtual Box
First of all, install the Oracle Virtualbox & its Extension Pack.
Open Oracle VirtualBox. Go to Machine, then go to 'New' to create a new Virtual Machine
We need to select Type as Linux & Version as Red Hat 64-bit.


Our VM is now created.

Step 2: Loading Redhat8 iso
Right click on the new vm (redhat8_CLI) and go to settings. Go to Storage, Optical Drive, choose & Load the Redhat8 iso file which you downloaded from Redhat site.

You will be able to see like this.

Step 4: Install Redhat Linux 8
a) Double click on the VM to start Redhat Linux 8 installation
[You will definitely need this :Use Right+Right Control to take your mouse pointer outside VM]

b)

c) Configure Storage Destination




d) Disable Kdump to save resources (RAM & CPU)


e) Network settings: Keep ethernet on so that we cam connect to internet.


f) Select Minimal Install under Software Installation for CLI mode


g) Now Begin Installation
h) Set Root password

Step 4: Configure VM settings
In System Settings, keep Hard Disk on top, so that we don't boot from the DVD, otherwise it will keep re-installing every time we start the VM. Also its recommended to keep Base memory at least 2 gb and number of processors 2.


2. Set Network Adapter as Bridged Adapter. This would allow to connect to both physical & virtual network ( so we can connect to both internet and other VMs ).

We are now all set and we will be able login to Redhat Linux 8 using 'root' user and the password we have set

Accessing the Redhat Linux 8 we have just installed using Putty.
We can use putty to login so that its easier to manage. To login using putty we will need the ipaddress. We can get the ip-address using ifconfig command. For ifconfig to work, required software should be installed, and for installing softwares in Redhat8 we need to configure yum. I have explained in detail how to configure yum in the following blog post. https://mytechworld.wixsite.com/home/post/yum-configuration-in-redhat-linux
Provide the ip address in putty and login.

We are inside linux using Putty

We can easily change the hostname (here changed to slave1) of the Redhat Linux using the below command
hostnamectl set-hostname slave1But for another system to be able to ping to this system using the hostname, the hostname should be defined inside /etc/hosts folder of the other system


Comments