業務用エアコン関連の技術情報、エラーコード、環境問題対策に関する別サイト「エアコンの安全な修理・適切なフロン回収」

CentOS Stream10 : Initial setup after OS installation

1.Disabling SELinux

First, disable selinux. selinux is a feature that improves auditing and security in Linux, but when enabled, it places considerable restrictions on the behavior of services and on what can be configured. Therefore, it is basically disabled in many cases.
SELinux Operation Mode
Enforcing : SELinux functionality is enabled and access control is enabled
Permissive : SElinux will warn, but no access restrictions will be placed
disabled : Both SElinux function and access control are disabled

①Current SELinux status

# getenforce
Enforcing

②Switching to [permissive] mode

# setenforce 0
# getenforce
Permissive

➂To completely disable SELinux, a reboot is required by adding selinux=0 to the kernel command line as follows

# grubby --update-kernel ALL --args selinux=0
# reboot

※ To return SELinux to active, do the following (reboot after changes)

# grubby --update-kernel ALL --remove-args selinux
# reboot

2.System Modernization

Update packages as soon as possible after OS installation.

# dnf -y update

3.Services to be stopped due to security measures

# systemctl stop atd.service
# systemctl disable atd.service
# systemctl stop kdump.service
# systemctl disable kdump.service
# systemctl stop lvm2-monitor.service
# systemctl disable lvm2-monitor.service
# systemctl stop mdmonitor.service
# systemctl disable mdmonitor.service
# systemctl stop smartd.service
# systemctl disable smartd.service
# systemctl stop dm-event.socket
# systemctl disable dm-event.socket

4.Adding Repositories

4.1 Add EPEL repository

4.2 Added Remi's RPM repository

5.Network configuration (command line configuration)

5.1 Check network device name

Network device name is "ens160".

5.2 Host Name Change

Change the host name to Lepard

5.3  Static IPv4 address configuration

The name of the network interface is "ens160" from 5.1
On CentOS8, it could be changed by rewriting the ifcfg-xxx file found in network-scripts, but on CentOS9, it can be changed with the "nmcli" command.
Change the static IPv4 address to "192.168.11.83".

Change by "nmcli" command

➁Change in GUI

Change the fixed IPv4 address to "192.168.11.83" as above.

Change the address in the IPv4 settings, scroll down and click [OK]

5.4 Host Name Change

Change the host name to Lepard

6.Vim Settings

①Installing Vim

②Apply and reflect Vim

③Configure Vim as a user-specific environment

Copied title and URL