Rocky Linux8.6 : Initial Settings

1. Disable 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.

As it is, seinux will return to be enabled once the server is restarted, so to permanently disable selinux, modify the /etc/sysconfig/selinux file.

Change "SELINUX=enforcing" to "SELINUX=disabled"

2. System Modernization

Package updates are performed as soon as possible immediately after OS installation.
However, when a dnf update is performed, a kernel update is also performed at the same time.
A kernel update may require rebooting the system or stopping services, or worse, a kernel panic may occur and the system may not boot. It is wiser to exclude the kernel from the update.
By running dnf -y update with "--exclude=kernel*" after
kernel*" after "update" to exclude the kernel from updates.

3.Services to be stopped due to security measures

Stop the following services that you deem unnecessary.

4.Adding Repositories

4.1 Add EPEL repository

4.2 Added Remi's RPM repository

5.Network Settings

5.1 Host Name Change

Change the host name to Lepard to try it out

5.2 Static IP address setting

If the default setting for obtaining an IP address by DHCP was made during OS installation, change the network settings to a fixed IP address if necessary.
First, find out the name of your network interface with the following command
This time it is "ens160

Edit the network configuration file and change the static IP address to "192.168.11.11".

To reflect the settings, do one of the following

6.Vim Settings

①Install Vim

②Apply and reflect Vim

③Configure Vim as a user-specific environment

 

タイトルとURLをコピーしました