on
How to install Centos 7 Minimal in Oracle VM VirtualBox
Introduction
What is Centos 7?
CentOS is a Linux distribution that provides a free, enterprise-class, community-supported computing platform functionally compatible with its upstream source, Red Hat Enterprise Linux
What is Virtual Machine?
In computing, a virtual machine is an emulation of a computer system. Virtual machines are based on computer architectures and provide functionality of a physical computer.
Why should you use Centos 7 and VirtualBox?
Well, they’re free and beginner friendly (I think lol )
Prerequisites :
You need to download these and install Virtual Box in your Windows system
Note
Press (right CTRL in your keyboard) to take your mouse cursor out of the Virtual Machine
Getting Started
1.) Create your Virtual Machine
Fig. 1 - Name your server, Select Linux as Type and Select Red Hat (64bit) then click Next. Just select your desired RAM and HDD space for your Virtual Machine, I like mine with 20GB HDD and 4GB RAM
Fig. 2 - It will look like this after you’re done creating your Virtual Machine
2.) Configuring your Virtual Machine’s network
Fig. 3 - Right click your Virtual Machine(Codeception), select settings -> network -> adapter 1, then enable network adapter and changed Attached to: FROM NAT to Bridged Adapter
3.) Installing Centos 7 Minimal in your Virtual Machine
Fig. 4 - Double click your Virtual Machine, then find your Centos 7 Minimal .iso file
Fig. 5 - Navigate with your up and down arrow keys, then select Install Centos 7
Fig. 6 - Just click that Continue button
Fig. 7 - Click NETWORK & HOST NAME
Fig. 8 - toggle ON switch to automatically set up your network settings
Fig. 9 - You should see your IP there
Fig. 10 - Set up your ROOT password and user account for the server
Fig. 11 - This is how it should look like after setting up your root password and user account, reboot after Centos 7 Installation
4.) Accessing your Centos 7 Minimal server via puTTy
Fig. 12 - Login using your root/user account, type ip a in your centos 7 minimal OS, it will show your IP address. you’ll need it to access your server via PuTTy
Fig. 13 - Open your puTTy, then type in your IP address in the IP Address textbox, then click open. sorry about the background lol
Fig. 14 - Just click Yes
Fig. 15 - Tadaa! we can now login to our server via puTTy! Enjoy!
5.) Initial setup
Disable SELINUX
command : sestatus
Fig. 16 - Check if SELINUX is enabled
command : vi /etc/sysconfig/selinux
Fig. 17 - vi /etc/sysconfig/selinux results, click I in your keyboard to insert texts
Fig. 18 - selinux=disabled, after editing press esc button, type :wq then click enter to save and exit
Fig. 19 - This is how it should look like even after editing the selinux file, because you need to reboot. to reboot, just type reboot then press enter
Fig. 20 - Selinux is now disabled
Disable FIREWALL
command :
systemctl disable firewalld
systemctl stop firewalld
systemctl status firewalld
Fig. 21 - Result after executing above command
Thank you for reading!