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

nuy

OpenSUSE15.5_en

OpenSUSE15.5 : Various settings after OS installation

1.Using su commandNot required if root password is set at the time of installationIf you set a root password, set it as followsLog in as a general user2. Modernize the systemTo modernize the system, enter the following command3.locate InstallThe find command is used to search for a specific file on the entire Linux system, but find's options are somewhat confusing.In such cases, it is useful to have the locate command available, which can extract all files with a given filename
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
MiracleLinux8.8_en

MiracleLinux8.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
MiracleLinux8.8_en

MiracleLinux8.8 : chkrootkit , Logwatch Install

chkrootkit Install①chkrootkit Download and installation# 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➁Create /root/bin directory and move chkrootkit command to that dirLogwatch①Install# dnf install logwatch②Edit configuration file# cat /usr/share/logwatch/default.conf/logwatch.conf >> /etc/logwatch/conf/logwatch.conf# vi /etc/logwatch/conf/logwatch.confPer Line 45Set "MailTo = root" as a comment and set the email address you want to receive notifications to the line below it.#MailTo = rootMailTo = [Mail address]Per Line 79Set the level of detail for log notifications#Detail = LowDetail = High③Output Logwatch reports# logwatch --output stdout
MiracleLinux8.8_en

MiracleLinux8.8 : MySQL8 , WordPress Install

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

MiracleLinux9.0 :  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
MiracleLinux9.2_en

MiracleLinux9.2 : 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
MiracleLinux9.2_en

MiracleLinux9.2 : 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]
MiracleLinux9.4_en

MiracleLinux9.4 : MySQL8 , WordPress Install

MySQL8 Install# dnf -y install mysql-servercharset.cnf   Create a new one with the fWordPress Install1. Create database for Word PressAs an example, assume database [wp_db] database user [wp_user] password [?W123456]
MiracleLinux9.4_en

MiracleLinux9.4 : SSH connection with public key

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.
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]
fedora39_en

Fedora39 : Logwatch , Disk Usage Check Script

Fedora39 ; Logwatch , Disk Usage Check Script
Ubuntu24.04_en

Ubuntu Server24.04 : NTP , FTP(Vsftpd) , Samba Install

1.Install NTP server2. Install FTP server vsftpd2.1Installation and configuration①Install2.2 Vsftpd Over SSL/TLS①Create a self-signed certificate.If you are using a trusted, legitimate certificate such as Let's Encrypt, you do not need to do this work.3. File server installation with SambaBuild a file server with access rights that requires user authentication with Samba.Installation Procedure(1) Create a shared folder with access rights that requires user authentication.(2) Create a group with access rights(3)Create users belonging to groups that can be accessed(4)Edit configuration file
Ubuntu22.04_en

Ubuntu Server22.04 ; Zabbix6 Install

Installation of open source integrated monitoring software "Zabbix"Zabbix is an open source integrated monitoring software for centralized monitoring of servers, networks and applications. It provides monitoring, fault detection and notification functions required for integrated monitoring. With Zabbix agent and SNMP support for many platforms, you can monitor your entire system with a single Zabbix.To run Zabbix, you will need the PHP programming language, MySQL/MariaDB as a database server, and a web server such as Apache or Nginx.In this case, we will assume that all of the following conditions have already been configured.Install Zabbix 6.x server, frontend and agent①Install repositorySetup Zabbix 6.x repository and install Zabbix Server.Install Zabbix Agent for the monitored hosts so that Zabbix Server itself can be monitored at the same time.
Almalinux9.3_en

AlmaLinux9.3 : Logwatch , Disk Usage Check Script

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