Click here for "Safe Air Conditioner Repair and Proper Freon Recovery".(Japanese Version)

2024-04

Almalinux9.3_en

AlmaLinux9.3 ; 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
Rocky Linux9.3_en

Rocky Linux9.3 ; 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 serverMail : Postfix + Clamav + clamav-milter+SpamAssassin1.Real-time scanning of e-mails①clamav-milter InstallVirus checks are performed on the mail server side using Clam AntiVirus.The mail server and Clam AntiVirus are linked using clamav-milter.
Rocky Linux9.3_en

Rocky Linux9.3 ; WEB Server(Apache2) & 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 [rocky.korodes.com] to the document root [/var/www/html/rocky.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
Rocky Linux9.3_en

Rocky Linux9.3 ; FTP Server , Samba File Server

1.FTP Server1. 1 Vsftpd Install# dnf -y install vsftpd1.2 Configure VsftpdSave the unedited vsftpd.conf with .bak3. 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②Accessible group creation③Creation of users belonging to accessible groups④Configuration File Editing
Rocky Linux9.3_en

Rocky Linux9.3 ; SSH、firewalld 、NTP Server

1.Remote connection via SSHSSH 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.1.1 Edit SSH service configuration fileModify the configuration file to change the SSH service settings.The SSH service configuration file is "/etc/ssh/sshd_config".2.Firewall (firewalld) settingsThe firewall is set to firewalld as default and is enabled during OS installation.4.NTP ServerBuild an NTP server to synchronize the server time with Japan Standard Time
Rocky Linux9.3_en

Rocky Linux9.3 ; 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 [?Ww123456]
Rocky Linux9.3_en

Rocky Linux9.3 ; 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 RepositoryTripwire1.Installation# dnf install -y tripwireChkrootkit①Download and install chkrootkit
Rocky Linux9.3_en

Rocky Linux9.3 ; 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
FreeBSD13.3_en

FreeBSD13.3 ; OS INSTALL

FreeBSDFreeBSD is UNIX-like open source OS software. In particular, its performance as a network operating system exceeds that of Linux-based systems, and it maintains stable performance even under high loads.FreeBSD is designed to be robust and sturdy with an emphasis on practicality, making it suitable for operating FTP, WWW, and e-mail servers for major companies and services.In this project, we will install FreeBSD 13.3, released on March 5, 2024, and build the server.FeaturesHigh-speed, high-performance multi-platform capable of withstanding high workloadsAdopted by many major companiesNetwork security measures can be applied by restricting accessCapable of operating small to large serversMore than 33,000 dedicated software applications from commercial to personal use
FreeBSD13.3_en

FreeBSD13.3 ; Initial setting (Update binaries, Packages and Ports Collection)

After 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).
FreeBSD13.3_en

FreeBSD13.3 ; Initial setup (Vim , SSH , firewall, NTP server)

1. Vim InstallInstall Vim, which you are familiar with as an editor, as follows# pkg install -y vim2. SSH Connection Security Measures2.1 SSH port changed, root user login disabled3. Firewall SettingsFreeBSD has the following firewalls・pf・ipfw・ipfIn this case, we will use ipfw to configure the firewall4. NTP Server Settings4.1 Rewrite the referenced NTP server in /etc/ntp.conf. Add an appropriate server in Japan.
FreeBSD13.3_en

FreeBSD13.3 ; FTP Server , Samba Fileserver

1. FTP Sever (Vsftpd)1.1 advance preparation①Private Key Creation2. File Server with SambaUse Samba to build a file server for Windows and Mac file sharing2.1 Samba Install# cd /usr/ports/net/samba413/# makeRemove the active directory relationships for ADS and AD_DC, as they will not be used this time.LDAP is also removed because account management is not done through LDAP.
FreeBSD13.3_en

FreeBSD13.3 ; WEB Server(Apache2) , MySQL8

1. Apache21.1 Install# cd /usr/ports/www/apache24# make configThere are many options, but we will proceed with the defaults2. MySQL InstallInstall MySQL before installing PHP# pkg install -y mysql80-client mysql80-server3. apache24 - PHP 8.03.1 PHP Install# cd /usr/ports/lang/php83# make config
FreeBSD13.3_en

FreeBSD13.3 ; Web Server SSL、Webmin

1. FreeBSD13.2 ; Web Server SSL、Webmin1.1 Installing the Certbot tool for Let's EncryptRun the following command to install the Certbot package# pkg install py39-certbot2. Webmin InstallWebmin is a web browser-based tool for configuring Unix-like operating systems (OS) such as Linux. It allows users to make numerous changes to internal OS settings such as user and disk usage limits, services, configuration files, etc., and to modify and control many open source applications such as Apache, PHP, MySQL, and others.Webmin is built primarily in Perl and runs as its own process and web server. By default, it communicates on TCP port 10000.
FreeBSD13.3_en

FreeBSD13.3 ; Mail Server(Postfix,Dovecot) , SSL/TLS

1. Obtaining a certificate for the mail serverObtain a certificate for the mail server to convert the mail server to SSL/TLS.Use the certbot that was used when the web server was converted to SSL.Stop the web server and execute the following command