You are on page 1of 4

Basic Configuration with

CentOS 8
Initial Setup:
https://vitux.com/centos-8-initial-setup-and-basic-configuration/
https://linuxize.com/post/how-to-disable-selinux-on-centos-8/

Update & Upgrade Package

Install Additional Repository

SSH Login, Disable Root Login

Timezone Change

Set Hostname, Resolve Hostname in the Local Server

Setup Firewalld

Update & Upgrade Package:

Basic Configuration with CentOS 8 1


Install Additional Repository

After additional repo install

Install Basic Utilities

Basic Configuration with CentOS 8 2


Setup Timezone and NTP Service

// NTP Service has been kept unchanged.

Setup SSH
-Generate SSH Key

Basic Configuration with CentOS 8 3


SeLinux Status
[ian@localhost ~]$sestatus

[ian@localhost ~]$ vim /etc/selinux/config


[ian@localhost ~]$ su
Password:
su: Authentication failure
[ian@localhost ~]$ su
Password:

[root@localhost ian]# vim /etc/selinux/config


[root@localhost ian]# shutdown -r now

[root@localhost ian]# sestatus


SELinux status: disabled
[root@localhost ian]#

Firewall Status
[root@localhost ian]# firewall-cmd --state
running

[root@localhost ian]# systemctl status firewalld


● firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor p>
Active: active (running) since Fri 2024-03-29 17:23:43 +06; 38min ago
Docs: man:firewalld(1)
Main PID: 822 (firewalld)
Tasks: 2 (limit: 35995)
Memory: 45.7M

[root@localhost ian]# firewall-cmd --list-all


public (active)
target: default
icmp-block-inversion: no
interfaces: enp0s3
sources:
services: cockpit dhcpv6-client ssh
ports:
protocols:
forward: no
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
[root@localhost ian]#

Basic Configuration with CentOS 8 4

You might also like