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

nuy

MiracleLinux9.0_en

MiracleLinux9.0 : OS Install

MiracleLinuxMIRACLE LINUX is a Japanese Linux distribution provided by Cybertrust Corporation.Miracle Linux (now Cybertrust), established by Oracle Japan and NEC in June 2000, began development of Oracle Database for business and enterprise use with the aim of ensuring stable operation.It has been based on RHEL since Version 2.0 released in May 2001, and has been a full RHEL clone since Version 6.0 released in January 2012, with the latest version being 8.4 as of December 2021.MIRACLE LINUX, the famous domestic RHEL clone, was initially a commercial OS with a paid license, but following the termination of CnetOS8, it was announced that it would be offered free of charge starting with the latest 8.4.The current distribution is Red Hat Enterprise Linux (RHEL) 9 compatible with the latest version 9.0 released on November 1, 2022.Like RHEL9, MIRACLE LINUX 9 is based on Linux kernel 5.14. In addition to version upgrades to major packages such as OpenSSL, MIRACLE LINUX 9 offers mainly enhanced security-related features such as improved SELinux performance and secure boot support.Package updates and security patches will be provided free of charge until November 2032.
MiracleLinux9.0_en

MIRACLE ZBX 6.0 Install

Integrated Monitoring Software "MIRACLE ZBX"MIRACLE ZBX, enterprise-oriented integrated system monitoring software based on the open source Zabbix, with enhancements and modifications provided by Cybertrust. It implements security enhancements that comply with some requirements of the National Institute of Standards and Technology (NIST) security guidelines "NIST SP800-171" and "NIST SP800-53", which are becoming an international standard for security standards.SELinux must be set to permissive
Almalinux8.6_en

AlmaLinux 8.6 : Snort2 , Tripwire , Chkrootkit Install

SNORT2  Install1. advance preparation①Add the CodeReady Red Hat repository and install the required software# dnf config-manager --set-enabled powertoolsTripwire  Install1.Download and installation# cd /usr/local/srcChkrootkit  Install①chkrootkit Download and Install# cd /usr/local/src
MiracleLinux8.4_en

MiracleLinux8.4 ; Vsftpd (FTP server installation)

FTP Server Installation1. Install vsftpdDownload vsftpd-3.0.3-33.el8.x86_64.rpm from the download site to /usr/local/src/.# cd /usr/local/src/# wget ftp://ftp.pbone.net/mirror/ftp.centos.org/8-stream/AppStream/x86_64/os/Packages/vsftpd-3.0.3-33.el8.x86_64.rpm# rpm -ivh vsftpd-3.0.3-33.el8.x86_64.rpm2.Configuring vsftpd
MiracleLinux8.4_en

MiracleLinux8.4 ; Firewall , SSH , NTP server

1.Setting up SSH remote connectionSSH is a service to connect to a server remotely, and is basically running right after the OS installation, but the default settings are somewhat insecure.In this section, we will configure the settings to change the default settings and increase the security of the ssh connection.1.1 Change the configuration file of SSH service.2.How to set up a firewall (firewalld)In MiracleLinux, the firewall is set to firewalld by default, which is enabled when the OS is installed.To briefly explain firewalld, when setting up a communication control policy, communication permission/blocking rules are applied to predefined zones, and the zones are assigned to each NIC (network adapter).3.Synchronize the server time with Japan Standard Time.① Change the configuration file as follows
MiracleLinux8.4_en

MiracleLinux8.4 ; Mysql , WordPress

Install  Mysql8# dnf module -y install mysql:8.0# vi /etc/my.cnf.d/charset.cnfCreate a new "charset.cnf" with the following contents[mysqld]character-set-server = utf8mb4[client]default-character-set = utf8mb4
openSUSE15.4_en

OpenSUSE15.4 ; OS download and installation

OpenSUSE is a Linux distribution that is community-based, free to the public, and active in adopting the latest technologies. It is sponsored by Novell and developed by the community. Originally, SUSE Linux was developed by SUSE, but after the acquisition of SUSE by Novell in 2003, Novell shifted the development structure to community-based by the OpenSUSE project as a distribution aiming for 100% open source, and changed the name from SUSE Linux to OpenSUSE Linux The name was changed to the current name.openSUSE is available as Leap, the stable version, and Tumbleweed, which uses a rolling-release model and is also the basis for the paid-for version of SUSE Linux Enterprise.The openSUSE project announced the official release of "openSUSE Leap 15.4" on June 8, 2022.This is the fourth point release of the community version of the "openSUSE 15" series, built from the same source code and the same binary packages as the enterprise version "SUSE Linux Enterprise 15 SP4".
Almalinux9.1_en

RHEL9.x compatible Linux : Nagios Server

Nagios Server, open source integrated monitoring softwareNagios is an open source monitoring solution running on Linux.Nagios is designed to periodically check critical network, application, or server parameters.These parameters include microprocessor load, number of running processes, log files, disk and memory usage, as well as many other services such as SMTP (Simple Mail Transfer Protocol), HTTP (Hypertext Transfer Protocol), POP3 (Post Office Protocol 3), etc. can be checked.These parameters require a microprocessor load, a database such as PHP or MySQL to run Nagois, and a web server such as Apache or Nginx. We will proceed under the assumption that all of these have already been configured.SELinux must be set to permissive
Debian11.5_en

Debian11.5 ; MySQL8 , WordPress Install

1. Install MySQL 81. 1 InstallThe MySQL team provides the official MySQL PPA for Debian Linux. After downloading and installing the package on your Debian system, the PPA file will be added to your system. To enable the PPA, run the following command1.2. MySQL Server Security SettingsRun the tool mysql_secure_installation to configure security-related settings for the MySQL server.Once executed, several security settings are initiated in the form of questions. First, you will be asked if you want to use a plugin for password validation as follows2.Install WordPress2.1 Database CreationCreate a database for Word Press (for example, in this case, the database name is "wp_db", the user name is "wp_user", and the password is "?Y123456y")2.2 Wordpress Download and Installation①Download and Deployment
MiracleLinux8.4_en

MiracleLinux8.4 ; SSH public key cryptography setting

Public key1.Create a key pair with RSABecome an ordinary user and create a key pair with RSA2.Private Key Login Settings3.Change to login only with private key# vi /etc/ssh/sshd_config●Per line 694.Creating a private key using PuTTYgenLaunch Winscp and start puttygen.exe from Tools
MiracleLinux8.4_en

MiracleLinux8.4; Web Server Installation, Virtual Host

Installa apache2 and virtual host configuration1.Install apa...
MiracleLinux8.4_en

MiracleLinux8.4 ; Anti-virus, mail server

Install clamav (anti-virus software)1.Install Clam AntiVirus...
MiracleLinux8.4_en

MiracleLinux8.4 ; Let’s Encrypt , Apache Mail SSL

1.Obtain SSL Certificate ( Let's Encrypt )Install the latest open ssl# dnf install openssl-devel
MiracleLinux8.4_en

MiracleLinux8.4 ; System Backup & Restore

Web configuration file (under html) backup①Create a backup script file under html# cd /var/www/system/# vi html_backup.shContents of html_backup.sh#!/bin/bash#Date processing (save 10 days)TODAY=`/bin/date +%Y%m%d`DAY_AGO=`/bin/date --date '10day ago' +%Y%m%d`
Almalinux8.6_en

AlmaLinux 8.6 : Logwatch , Disk Usage Check Script

1. Logwatch Install① Install# dnf install logwatch② Edit configuration file2. Introduce disk usage check script2.1 Script Creation# cd /var/www/system# vi disk_capacity_check.sh