How to Install and Setup CentOS 8
What Do I Need?
- [tool]A Dedicated or VPS Linux Server[/tool]
- [tool]CentOS 8[/tool]
- [tool]Rufus for Windows[/tool]
- [tool]WinSCP for Windows[/tool]
- [tool]Putty for Windows[/tool]
- Check the required system requirements
- Production and enterprise environments should check the deployment recommendations before proceeding
What is CentOS 8?
[openingText]CentOS is a Linux operating system that provides an open-source, fully community-supported, server computing platform. It was originally released in 2004 and is essentially an open-source version of Red Hat Enterprise Linux (RHEL), with a few minor differences. Unlike a lot of other open-source operating systems, CentOS maintains every distributed version for 10 years, with releases every 2 years.[/openingText]
Install CentOS 8
- [stepName]Prepare your Equipment[/stepName]
[step]
Always ensure that you’re only downloading from a verifiable mirror.
- [howToDirection]Download the latest CentOS ISO image.[/howToDirection]
- [howToDirection]Create a bootable USB drive by using Rufus Tool. I’d recommend using a USB drive that has a capacity of at least 8gb.
[stepImage]

[/stepImage]
[/howToDirection]
- [howToDirection]A basic installation of CentOS will require a system with a minimum of 8GB of hard disk space and 2GB of memory for optimal performance.[/howToDirection]
- [howToDirection]A reliable and secure internet connection.[/howToDirection]
[/step]
- [stepName]Install from Your Bootable Installation Media (USB)[/stepName]
[step]
- [howToDirection]Power up your computer with your bootable USB inserted into an empty slot.[/howToDirection]
- [howToDirection]Ensure that you’ve changed your boot order to boot from your USB stick containing the operating system.[/howToDirection]
- [howToDirection]Select ‘Install CentOS Linux 8.
[stepImage]
- [howToDirection]Enjoy a cup of coffee while you wait for the boot messages to finish. This depends on the speed of your machine.
[stepImage]
- [stepName]Select Installation Language[/stepName]
[step]
- [howToDirection]On the ‘Welcome Screen’, select your preferred installation and click ‘Continue’.
[stepImage]
- [stepName]Installation Summary[/stepName]
[step]
- [howToDirection]On the next screen, an installation summary will be displayed showing all of the options that need to be configured successfully in order to proceed. We’re going to give all of these our attention in due course.
[stepImage]
- [stepName]Configure Keyboard[/stepName]
[step]
- [howToDirection]Select the ‘Keyboard’ option and configure the keyboard.
[headerImage]
- [howToDirection]The default ‘Keyboard Layout’ is ‘English (us)’. In the right text field, you can type a few words to check that your keyboard is functioning correctly.[/howToDirection]
- [howToDirection]To add a new ‘Keyboard Layout’ simply click the + button on the bottom left of the layout dialog.
[stepImage]
- [stepName]Configure Language[/stepName]
[step]
- [howToDirection]Select the ‘Language Support’ option.
[stepImage]

[/stepImage][/howToDirection]
- [howToDirection]Select your preferred language and click ‘Done’ on the top left of the dialog.
[stepImage]
- [stepName]Configure Time and Date[/stepName]
[step]
- [howToDirection]Select the ‘Time and Date’ option.[/howToDirection]
- [howToDirection]Select your country and city from the ‘Region’ and ‘City’ dropdown menus. Alternatively, you can select your region and city from the interactive map. Set your time and date at the bottom of the dialog and click ‘Done’ on the top left of the dialog.
[stepImage]
- [stepName]Configure Installation Source[/stepName]
[step]
- [howToDirection]Select ‘Back’ and go back to the main menu.[/howToDirection]
- [howToDirection]Select the ‘Installation Source’ option.
[stepImage]
- [howToDirection]No changes should be required as your source installation media will be autodetected. It’s always good to check to forestall any future installation issues, however.
[stepImage]
- [stepName]Software Selection[/stepName][step]
- [howToDirection]Select the ‘Software Selection’ option.
[stepImage]
- [howToDirection]You’re now presented with six options from which to select your base environment and additional add-ons.[/howToDirection]
- [howToDirection]I’d recommend selecting a ‘Server with GUI’ base environment. For this guide, we’ll only select the following add-ons:
- windows file server,
- debugging tools,
- file and storage server,
- FTP server,
- guest agents,
- mail server,
- network file system client,
- network servers.
[stepImage]
- [howToDirection]When you’re finished, click ‘Done’ on the top left of the dialog.[/howToDirection]
[/step]
- [stepName]Installation Destination[/stepName][step]
- [howToDirection]On the ‘main menu’, select the ‘Installation Destination’ option.
[stepImage]
- [howToDirection]By default, the installer automatically detects your hard drives, and will select automatic partitioning of your primary hard drive.
[stepImage]
- [howToDirection]If you want to manually change your partition sizes, select the ‘Custom’ option under ‘Storage Configuration’.
[stepImage]
- If you’ve selected ‘Custom’ you’re taken to the ‘Manual Partitioning’ dialog.
- Select ‘Click here to create them automatically’.
[stepImage]

[/stepImage]
- The mount points of each partition are then intelligently created by the installer.
[stepImage]
- At this point, you can add additional space to the different partitions. Not recommended if you’re a beginner.
- When you’re finished, click ‘Done’ on the top left of the dialog.
[/howToDirection]
- [howToDirection]A ‘Summary of Changes’ will be displayed. It shows how your hard drive is going to be partitioned. If you approve, click ‘Accept Changes’.
[stepImage]
- [stepName]Kdump Selection[/stepName][step]
- [howToDirection]Select the ‘KDUMP’ option from the main menu.
[stepImage]
- [howToDirection]KDUMP is a smart utility that dumps system information when your system crashes for analysis. This helps you to determine the cause of the system failure. Default settings are satisfactory for most cases.[
[stepImage]
- [howToDirection]Leave all of the settings as they are and click ‘Done’ on the top left of the dialog.[/howToDirection]
[/step]
- [stepName]Set Network and Hostname[/stepName]
[step]
- [howToDirection]Back to the main menu and select the ‘Network and Hostname’ option.
[stepImage]
- [howToDirection]The ‘Network and Hostname’ dialog displays the active network interfaces on your computer. In this instance, the active interface is ‘enp0s3’.[/howToDirection]
- [howToDirection]To enable automatic IP acquisition turn the switch on the top right to the ‘On’ position.
[stepImage]
- [howToDirection]Otherwise, click on the ‘Configure’ button to manually enter your network settings.
[stepImage]

[/stepImage][/howToDirection]
- [howToDirection]This shows you the dialog below. Click on the ‘ipv4’ tab option and select ‘Manual’ from the ‘Method’ dropdown menu. Next, click on the ‘Add’ button and type in your preferred IP address, subnet mask, and default gateway. Ensure that you also provide valid DNS server details.
[stepImage]
- [howToDirection]Finally, select ‘Save’.
[stepImage]
- [howToDirection]To set your hostname, fill in the text box in the bottom left corner. I highly recommend changing your hostname as it helps to obfuscate your server’s identity from potential intruders in the future. Always remember to click ‘Apply’ after changing your hostname and click ‘Done’ on the top left of the dialog.[/howToDirection]
[/step]
- [stepName]Begin the CentOS 8 Installation (Phew – Finally)[/stepName]
[step]
- [howToDirection]Now that you’ve configured all your base options, click ‘Begin Installation’.
[stepImage]
- [howToDirection]The next dialog will prompt you to configure ‘User Settings’.
[stepImage]
[/step]
- [stepName]Set Root User Password[/stepName]
[step]
[howToDirection]
- Select the ‘Root Password’ text box and enter a new password. Remember to use a complex password following these criteria:
- minimum 12 characters,
- lowercase and uppercase alphanumeric,
- include special characters.
[stepImage]
- Click ‘Done’ on the top left of the dialog.
[/howToDirection]
[/step]
- [stepName]Create New User Account[/stepName]
[step]
- [howToDirection]Select the ‘User Creation’ option to create a regular system user. This is important as you should never install every single application or script as ‘root’.
[stepImage]

[/stepImage][/howToDirection]
- [howToDirection]Enter your name, username, and complex password in the appropriate text boxes.
[stepImage]
- [howToDirection]Click ‘Done’ to save the regular system user.[/howToDirection]
[/step]
- [stepName]CentOS Installation Process[/stepName]
[step]
- [howToDirection]The installer will now, finally, install the previously selected packages, dependencies, and the grub bootloader. I’d recommend fixing yourself another cup of coffee as this can take a while depending on your internet connection and server specification.
[stepImage]
- [howToDirection]Finally, you’ll get a notification that the installation was successful. Click ‘Reboot’ to restart your server. Don’t pat yourself on your back yet, we’re not done.[/howToDirection]
[/step]
- [stepName]Boot and Accept License Agreement[/stepName]
[step]
- [howToDirection]On server restart, select the first option shown in your grub menu.
[stepImage]
- [howToDirection]And yes, you will be required to accept the license information.
[stepImage]
- [howToDirection]Click on the ‘License Information’ option and select the ‘I accept the license agreement’ checkbox.
[stepImage]
- [howToDirection]Finally, click ‘Finish Configuration’ to complete the installation process and log into your new CentOS server.
[stepImage]
- [howToDirection]Log in, and select ‘Start Using CentOS Linux’.
[stepImage]
- [howToDirection]CentOS 8 is nothing short of amazing in terms of a secure and feature-rich server operating system.
[stepImage]
- [howToDirection]Now pat yourself on the back, you’ve successfully installed the latest version of CentOS 8 on your new server.[/howToDirection]
[/step]
Next Steps
There’s a lot that can be done next to your server dependent on its intended use case. Whatever you’re planning to use your new server for, I advise logging in as the ‘root’ superuser at your soonest opportunity and then running the following commands to ensure you have the latest updates and fixes:
yum upgrade yum update reboot
Conclusion
Personally, I’m a massive fan of CentOS, and Kali, of course. Whatever your plans are for your new server, make sure you keep on top of security updates and upgrades. Watch this space for more how-to guides for hardening and securing your CentOS installation. Be secure and above all, have fun.
- Looking for the best windows hosting? Click this link and check all our recommendations.
