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

nuy

Almalinux9.3_en

AlmaLinux9.3 : SSH、Firewalld、NTP Server

1. SSH remote connectionSSH is a service for connecting remotely to a server and is basically running immediately after the OS is installed, but the default settings are somewhat insecure.Here we will configure the default settings to increase the security of ssh connections.2.How to set up a firewall (firewalld)In AlmaLinux, the firewall is set to firewalld by default and is enabled during OS installation.2.1 How to use the "firewall-cmd" command to control "firewalld"1)How to use the "firewall-cmd" command to control "firewalld"①Check firewalld operation status3.Remote connection from WindowsSetup in WindowsStart setting up a remote connection from Windows, using "Tera Term" as the terminal emulator.Start Tera Term, cancel the startup screen, and then select "New Connection" from "File" in the Tera Term menu.
Almalinux9.3_en

AlmaLinux9.3 : Various settings after installation

1. Disabling SELinuxFirst, 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 operating modesEnforcing : SELinux functionality is enabled and access control is enabledPermissive : SElinux will warn, but no access restrictions will be placeddisabled : Both SElinux function and access control are disabled2. System ModernizationUpdate packages as soon as possible after OS installation.A kernel update 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 from the update.The kernel can be excluded from updates by running dnf -y update with "--exclude=kernel*" after it.
Almalinux9.3_en

AlmaLinux9.3 : OS Install

AlmaLinux 9.3 InstallAlmaLinux OS is a project launched by CloudLinux in the US as an alternative to CentOS. Currently, the AlmaLinux OS Foundation is the development parent organization.Following the general availability of Red Hat Enterprise Linux 9.0, AlmaLinux 9.0 was released on May 26, 2022.Like Red Hat Enterprise Linux 9, AlmaLinux 9 utilizes the same package versions as the Linux 5.14 kernel, GCC 11, Python 3.9, and RHEL9.Cockpit web management interface, enhanced kernel live patching, improved container and cloud integration, OpenSSL 3, and other security improvements.This time we will install AlmaLinux 9.3 with a minor upgrade on Nov 11, 2023.1.AlmaLinux 9.3 DownloadAlmaLinux 9.3 installation image can be downloaded from the following sitehttps://almalinux.org
Almalinux9.4_en

AlmaLinux9.4 : System Backup and Restore

1.Website data backup1-1.Backup under /var/www/html①Create backup script file# cd /var/www/system# vi backup_html.sh2.MySQL database backup①Create backup script file# cd /var/www/system# vi db_my_backup.sh3.Restore backup files under html①Store HTML backup files in "/ (root)" directory4.Restore Mysql backup file①Save the database backup file to any directory and(In the example, the directory is "/var/www/backup/db_bak".)Extracting data
Almalinux9.4_en

AlmaLinux9.4 : SSH connection with public key

SSH connection with authentication using public key cryptography Creation of public and private key pairsCreate a public/private key pair for a user connecting to the Linux server using OpenSSH.Use ssh-keygen to create key pairs.Creation of public/private key pairs is performed with remote login user privileges。If you do not specify the destination and file name, id_ed25519 and id_ed25519.pub will be created in /home/(user name)/.ssh/. On the way, enter the password for the key.
Almalinux9.4_en

AlmaLinux9.4 : SSH、Firewalld、NTP Server

1. SSH remote connectionSSH is a service for connecting remotely to a server and is basically running immediately after the OS is installed, but the default settings are somewhat insecure.Here we will configure the default settings to increase the security of ssh connections.
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 indexInstall necessary...
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 ...