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

nuy

Almalinux8.6_en

AlmaLinux 8.6 : SSL Certificate Acquisition , WEB・Mail SSL

1. Obtain an SSL certificate ( Let's Encrypt )Install the latest open ssl# dnf install openssl-devel1.1 Certificate Installation# dnf -y install certbot2. Converting Apache to httpsInstall the following# 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.
Ubuntu22.04_en

Ubuntu Server 22.04 : SSH public key cryptosystem

SSH connection with authentication using RSA public key cryptographyCreation of public and private key pairsCreate a public/private key pair for a user connecting to a Linux server using OpenSSH.Use ssh-keygen to create key pairs.This time, we will create a key set using the RSA cipher used in the SSH protocol Version 2.Creation of public/private key pairs is performed with remote login user privileges (huong).If you do not specify the destination and file name, id_rsa and id_rsa.pub will be created in /home/huong/.ssh/. On the way, enter the password for the key.
Debian11.5_en

Debian11.5 ; SSH connection using public key cryptography

RSA SSH connection with authentication using public key cryptographyCreate public and private key pairsCreate a public/private key pair for a user connecting to a Linux server using OpenSSH.Use ssh-keygen to create the key pair.This time, we will create a key set using the RSA cipher used in the SSH protocol Version 2.The creation of a public/private key pair is performed with remote login user privileges (e.g., huong).If you do not specify the destination and file name, id_rsa and id_rsa.pub will be created in /home/huong/.ssh/. On the way, enter the password for the key.
Debian11.3_en

Debian11.3 : SSH public key cryptosystem

RSA SSH connection with authentication using public key cryptographyCreate public and private key pairsCreate a public/private key pair for a user connecting to a Linux server using OpenSSH.Use ssh-keygen to create the key pair.This time, we will create a key set using the RSA cipher used in the SSH protocol Version 2.The creation of a public/private key pair is performed with remote login user privileges (e.g., huong).If you do not specify the destination and file name, id_rsa and id_rsa.pub will be created in /home/huong/.ssh/. On the way, enter the password for the key.
Almalinux8.6_en

AlmaLinux 8.6 : Public key SSH connection

SSH connection with authentication using RSA public key cryptographyCreation of public and private key pairsCreate a public/private key pair for a user connecting to a Linux server using OpenSSH.Use ssh-keygen to create the key pair.This time, we will create a key set using the RSA cipher used in the SSH protocol Version 2.The creation of a public/private key pair is performed with remote login user privileges (huong).If you do not specify the destination and file name, id_rsa and id_rsa.pub will be created in /home/huong/.ssh/. On the way, enter the password for the key.
fedora36_en

Fedora36 ; System Backup and Restore

Web configuration file (under html) backup①Create backup script file# cd /var/www/system/# vi html_backup.shContents of html_backup.shMySQL database backup①Create backup script fileWeb configuration file (under html) restored① Copy the HTML backup file to the "/ (root)" directory of the server to be used for restorationRestore MySQL data① Save database backup file to any directory
fedora36_en

Fedora36 ; SSL Certificate ( Let's Encrypt ) , Apache ・Mail Server SSL

1.Obtain SSL Certificate ( Let's Encrypt )Install the latest open ssl# dnf install openssl-devel2. Apache SSLInstall the following just in case# dnf -y install mod_ssl3.Mail SSL/TLS(Let's Encrypt)3.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.
fedora36_en

Fedora36 ; Mysql8 , WordPress Install

Mysql8 installation#dnf module -y install mysql:8.0#vi /etc/my.cnf.d/charset.cnfCreate a new charset.cnf with the following contents# Set default character encoding# To handle 4-byte characters such as pictographs, use [utf8mb4].[mysqld]character-set-server = utf8mb4[client]default-character-set = utf8mb4WordPress Installation1. Create a database for WordPressAs an example, assume database [wp_db] database user [wp_user] password [?W123456]
fedora36_en

Fedora36 ; SNORT2 , Tripwire Install

SNORT Installation1.advance preparation①Add the CodeReady Red Hat repository and install the required software# dnf -y install bison flex libpcap-devel pcre-devel openssl-devel libdnet-devel libtirpc-devel libtool nghttp2 libnghttp2-devel# mkdir /var/src②Installing DAQ# cd /var/srcTripwire Installation1.Install# dnf -y install tripwire
fedora36_en

Fedora36 ; Clam AntiVirus , Mail Server

Install Clamav ( anti-virus software )1.Install Clam AntiVirus# dnf -y install clamav clamd clamav-update2.Edit Clam AntiVirus configuration file# vi /etc/clamd.d/scan.confMail Server Install1. Install Postfix1.1 InstallInstall Postfix and build an SMTP serverMail Server : Postfix + Clamav + Amavisd+SpamAssassin1.Real-time scanning of E-mails①Install Amavisd and Clamav Server# dnf -y install amavisd-new clamd perl-Digest-SHA1 perl-IO-stringy
fedora36_en

Fedora36 : WEB Server(Apache2) Install

Apache2 installation and virtual host configuration1.Apache2 Install①httpd install# dnf -y install httpdVersion Check# httpd -verver version: Apache/2.4.54 (Fedora Linux)Server built: Jun 17 2022 00:00:003.Virtual Host SettingsAssign and configure the [FQDN] to be operated on the virtual host in the document root [/var/www/html/FQDN] directoryConfirmation of CGI Script Usage①CGI availability checkPHP installation and configuration1.PHP Installation①Install# dnf -y install php php-mbstring php-pear
fedora36_en

Fedora36 : FTP Server(Vsftpd) , File Server(Samba)

1.FTP Server Installation1. 1 Vsftpd Install# dnf -y install vsftpd1.2 Vsftpd configurationSave the unedited vsftpd.conf with .bak2. vsftpd SSL/TLSConfigure Vsftpd to use SSL/TLS2.1 Create self-signed certificates3. File server installation with SambaBuild a file server with access rights that requires user authentication with Samba.Installation Procedure① Create shared folders with access rights that require user authentication②Creation of accessible groups③Creation of users belonging to groups that can be accessed④Configuration File Editing
fedora36_en

Fedora36 ; Remote connection with SSH public key cryptography

SSH public key cipher settingCreate an SSH private key on Windows and an SSH public key on the server to allow login by key pair authentication.1.Create key pair with ECDSABecome an ordinary user and create a key pair in ECDSA# su – $ ssh-keygen -t ecdsaGenerating public/private ecdsa key pair.Enter file in which to save the key (/home/huong/.ssh/id_ecdsa):Created directory '/home/huong/.ssh'.Enter passphrase (empty for no passphrase):  ← Enter any password
fedora36_en

Fedora36 ; SSH 、Firewalld

1.Remote connection by SSHSSH is a service for connecting remotely to a server, basically running immediately after OS installation, but the default settings are somewhat insecure.Configure the default settings to increase the security of ssh connections.1.1 SSH service configuration file changesThe SSH service configuration file is "/etc/ssh/sshd_config".Open the configuration file in a vi editor.# vi /etc/ssh/sshd_config
fedora35_en

Fedora35 : System Backup & Restore

Web configuration file (under html) backup①Create backup script file# cd /var/www/system/# vi html_backup.shContents of html_backup.shMySQL database backup①Create backup script fileWeb configuration file (under html) restored① Copy the HTML backup file to the "/ (root)" directory of the server to be used for restorationRestore MySQL data① Save database backup file to any directory