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

2023-11

fedora39_en

Fedora39 : Various settings after installation

1. SELinux DisableFirst, disable selinux. selinux is a feature that improves auditing and security in Linux, but when enabled, it can limit the behavior of services and the configuration considerably.Therefore, it is basically invalidated in many cases.You can disable it by doing the following。
fedora39_en

Fedora39 : OS Install

Fedora39 ; Download (Released on Nov 07, 2023)Fedora39 can be downloaded from the following mirror siteshttps://ftp.riken.jp/Linux/fedora/releases/39/Server/x86_64/iso/The file to download is the "Fedora-Server-dvd-x86_64-39-1.5.iso" imageCreate an installation disk from the downloaded "Fedora-Server-dvd-x86_64-39-1.5.iso" image on a USB disk and install it on the actual device.
AlmaLinux8.8_en

AlmaLinux8.8 : 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
AlmaLinux8.8_en

AlmaLinux8.8 : Tripwire , Logwatch , disk usage check script

Tripwire1.Install# dnf install -y tripwire2..Passphrase settingSet site passphrase and local passphraseLogwatch①Install# dnf install logwatch -y②Edit configuration fileIntroduce disk usage check script3.1  Script Creation# cd /var/www/system# vi disk_capacity_check.shContents of disk_capacity_check.sh
AlmaLinux8.8_en

AlmaLinux8.8 : Snort3+Snortsnarf , Chkrootkit Install

Snort3+Snortsnarf InstallImplement Snort, a network-based IDS, in the unauthorized access detection system.SnortSnarf will also be installed to enable the unauthorized access logs extracted by Snort to be checked on a Web browser.AlmaLinux8 does not have a Snort3 repository, so build, compile and install Snort3 from source codeAdvance preparation①Install required build tools and librariesInstall the EPEL repository and enable the Powertools repository.chkrootkit①Download and install chkrootkit# cd /usr/local/src# wget ftp://ftp.chkrootkit.org/pub/seg/pac/chkrootkit.tar.gz# tar xvf chkrootkit.tar.gz➁Create /root/bin directory and move chkrootkit command to that directory# mkdir -p /root/bin# mv chkrootkit-0.58b/chkrootkit /root/bin➂Check chkrootkit.
AlmaLinux8.8_en

AlmaLinux8.8 : MySQL8 , WordPress

Mysql8 Install#dnf module -y install mysql:8.0charset.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]
AlmaLinux8.8_en

AlmaLinux8.8 : SSL Certificate Acquisition( Let's Encrypt ) , Apache SSL , Mail SSL/TLS

1.SSL Certificate Acquisition ( Let's Encrypt )Install the latest open ssl# dnf install openssl-devel1.1 advance preparation1.Package management system Snappy installationSince 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# 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.
FreeBSD14_en

FreeBSD14 : Web Server SSL、Webmin

1. Web server (Apache) SSL conversionThe ports can be further updated with FreeBSD's periodic job settings.Install certbot via pkg, and include a plugin for apache to update in webroot mode.1.1 Installing the Certbot tool for Let's EncryptRun the following command to install the Certbot package and the Apache HTTP plug-in
FreeBSD14_en

FreeBSD14 : Initial setting (Update binaries, Packages and Ports Collection)

First do the followingAfter installing FreeBSD, we will start building the server, but it is difficult to work on the console screen, so we will change the SSH connection settings for now in order to operate the server from Windows using TeraTerm or other software.Enter the following command on the FreeBSD console screen# vi /etc/ssh/sshd_configLine 61.#PasswordAuthentication no → PasswordAuthentication yes Make the changes and reflect the settings with the following command# service sshd restartNow you can connect via SSH from TeraTerm on Windows (see the default settings for other operating systems for settings in TeraTerm).
fedora39_en

Fedora39 : Logwatch , Disk Usage Check Script

Fedora39 ; Logwatch , Disk Usage Check Script