Click here for "Safe Air Conditioner Repair and Proper Freon Recovery".

MiracleLinux9.0 : Various settings after 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

②Switching to [permissive] mode

③Switch to [enforcing] mode

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

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

2.System Modernization

Update packages as soon as possible after OS installation.
However, when a dnf update is performed, a kernel update is also performed at the same time.
Kernel updates 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 and update it.
By running dnf -y update with "--exclude=kernel*", the kernel can be excluded from updates.

3.Services stopped for system modernization and security measures.

4.Adding Repositories

4.1 PowerTools / HighAvailability

PowerTools and HighAvailability are available by updating miraclelinux-repos and activating the repository.
First, update miraclelinux-repos.

①PowerTools can be used by activating the repository as follows

②HighAvailability is available by activating the repository as follows

4.2 EPEL

EPEL is a repository provided by the Fedora project, officially named Extra Packages for Enterprise Linux. This repository is unique in that it contains many commonly used packages that are not included in the distribution's repositories.
Since EPEL provides packages for adding repositories for RHEL 9, they can be used with MIRACLE LINUX 9 by simply installing the packages.

After installation, the following repository files will be added to /etc/yum.repos.d and made available.
epel.repo
epel-testing.repo

4.3 Remi's RPM repository

After installation, the following repository files will be added to /etc/yum.repos.d and made available.
remi.repo
remi-modular.repo
remi-safe.repo

5.Network Settings

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
In MiracleLinux8, the ifcfg-xxx file in network-scripts could be changed by rewriting it, but in MiracleLinux9, the contents of the /etc/sysconfig/network-scripts/ directory are empty and this method cannot be used, so the "nmcli" command is used.
Change the static IPv4 address to "192.168.11.83".

Change by "nmcli" command

6.Vim Settings

①Vim install

②Apply and reflect Vim
③Configure Vim

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