MiracleLinux9.4 ; OS Install , Initialization

1. MiracleLinux

MIRACLE LINUX is a Japanese Linux distribution provided by Cybertrust Corporation. It has been based on RHEL since Version 2.0 released in May 2001, and has been a complete RHEL clone since Version 6.0 released in January 2012.。
The latest version is 9.4, released on September 2, 2024, but can be installed just like 9.2.

MiracleLinux9.4 ; Download

MiracleLinux ISO image files can be obtained from the following official web sites

MiracleLinux 9.4 ; Install

Download "MIRACLELINUX-9.4-rtm-x86_64.iso", create an installation disc on a USB disk and install it on the actual device, or create a virtual machine using Vmware player or VirtualBox and install it.
See MIRACLE LINUX 9.2 for installation instructions.

2. 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)

3. 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.

4. Services stopped for system modernization and security measures.

5. Adding Repositories

5.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

5.2 Add EPEL repository

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-cisco-openh264.repo
epel.repo
epel-testing.repo

5.3 Added 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

6. Network Settings

6.1 Check network device name

Network device name is "ens160"

6.2 Host Name Change

Change the host name to Lepard

6.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

7. Vim Settings

①Vim install

②Apply and reflect Vim

③Configure Vim

Copied title and URL