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

2023

Almalinux9.1_en

AlmaLinux 9.1 : Logwatch , DiCe , Disk Usage Check Script

1. Logwatch①Install# dnf install logwatch②Edit configuration file2. DiCEWhenever the global IP changes, which happens when the network is disconnected or the router is disconnected and rebooted, the dynamic DNS must be accessed to inform the user that the global IP has changed. DiCE does this automatically!3.Introduce disk usage check script3.1 Script Creation# cd /var/www/system# vi disk_capacity_check.sh
Almalinux9.1_en

AlmaLinux 9.1 : Suricata , Tripwire , Chkrootkit

SuricataSURICATA IDS/IPS is an open source IDS that monitors communications on the network and detects suspicious traffic.The basic mechanism is signature-based, so it can detect predefined unauthorized communications. Suricata is also characterized by its ability to provide protection as well as detection.1.advance preparation①Activate the EPEL Repository# dnf -y install epel-releaseTripwire1.Download and installation# cd /usr/local/src# wget https://rpmfind.net/linux/epel/9/Everything/x86_64/Packages/t/tripwire-2.4.3.7-13.el9.x86_64.rpm# rpm -Uvh tripwire-2.4.3.7-13.el9.x86_64.rpmChkrootkit①Download and install chkrootkit# cd /usr/local/src# wget https://launchpad.net/chkrootkit/main/0.55/+download/chkrootkit-0.55.tar.gz# tar xvf chkrootkit-0.55.tar.gz
Almalinux9.1_en

AlmaLinux 9.1 : Mysql8 , WordPress Install

Mysql8 Install# dnf -y install mysql-servercharset.cnf   Create a new one with the following contentsWordPress Install1. Create database for Word PressAs an example, assume database [wp_db] database user [wp_user] password [?W123456]
Almalinux9.1_en

AlmaLinux 9.1 : SSL Certificate Acquisition( Let's Encrypt ) , Apache SSL , Mail SSL/TLS

1.Obtain an SSL certificate ( Let's Encrypt )Install the latest open ssl# dnf install openssl-devel1.1 advance preparation1.Package management system Snappy installedSince the SSL certificate issuing tool "certbot" of Let's Encrypt is recommended to be installed using "snap" after 2021, install Snapd first.(Can also be installed the traditional way with dnf or yum)2. Converting Apache to httpsInstall the following just in case# dnf -y install mod_ssl3. SSL/TLS (Let's Encrypt) settings on the mail server3.1 Obtaining a certificate for the mail serverObtain a certificate for the mail server, but it cannot be obtained in the same way as above, so the following with the "--standalone" option fails.
Almalinux9.1_en

AlmaLinux 9.1 : Anti-virus(Clamav) , Mail Server

clamav (anti-virus software] Install1.Clam AntiVirus install# dnf -y install clamav clamd clamav-update2.Clam AntiVirus  Configuration File EditMail Server Install1. Postfix1.1 InstallInstall Postfix and build an SMTP server
Almalinux9.1_en

AlmaLinux 9.1 : WEB Server(Apache2) Install & Virtual Hosts

1.Apache2 Install , Virtual Host Configuration1.1 Apache2 install①httpd install# dnf -y install httpd1.3 Virtual Host SettingsAssign and configure the domain name [alma.korodes.com] to the document root [/var/www/html/alam.korodes.com] directory for virtual host operation2. Use of CGI Scripts①CGI availability check3. PHP installation and configuration1.PHP8 Install4. Digest authentication with Apache2Since Basic Authentication, a well-known authentication authorization method for http, sends authentication information in plain text, there is a risk of ID and password leakage if the packet is intercepted.On the other hand, Digest Authentication encrypts and transmits authentication informa
Debian10.13_en

Debian10.13 : SNORT2 , Tripwire

1.SNORT2 InstallSnort is an open source network intrusion de...
Debian10.13_en

Debian10.13 : MySQL8 , WordPress

1. MySQL 8 Install1. 1 Update package index# apt update# apt...
Debian10.13_en

Debian10.13 : Let's Encrypt WEB , Mail SSL

1. Obtaining a Certificate(Let's Encrypt)1.1 advance prepara...
Debian10.13_en

Debian10.13 : Antivirus , Mail Server

1.Anti-virus Clamav installed1.1 InstallThe clamav-related c...
Debian10.13_en

Debian10.13 : WEB Server Apache2

WEB Server Apache2Allow http:80 and https:443 ports in UFW b...
Debian10.13_en

Debian10.13 : NTP ,FTP Server

1. Install an NTP server that provides time synchronization ...
Debian10.13_en

Debian10.13 : SSH with public key

SSH connection with authentication using RSA public key cryp...
Debian10.13_en

Debian10.13 : SSH , Firewall

1. SSH Service Security SettingsThe SSH service allows the r...
Debian10.13_en

Debian10.13 : Initialization

1. Install and configure vim editorDebian has "nano" as the ...