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

2023

Ubuntu23.04_en

Ubuntu Server23.04 : OS Install

Ubuntu Server 23.04 Download Installation ImageThe installation media for Ubuntu Server can be downloaded from the official site on the Internet. As long as you have a fast connection, you can download the OS itself in about 2 to 3 minutes. You will need to create an installation CD/DVD from the downloaded iso file. (approx. 2.5G)The iso file itself can be used for installation on a virtual machine using Vmware or other software.The iso file can be downloaded from the "Official Ubuntu Download Site".Ubuntu 23.04 (released on April 20, 2023) is supported until January 2024, so it is safer to install the LTS version of Ubuntu 22.04 in the production environment.
Slackware 15.0_en

Slackware15.0 : SSH connect with public key

Creation 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.The creation of a public/private key pair 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.
Slackware 15.0_en

Slackware15.0 : Various settings after OS installation #I

Adding General UsersRoot is a privileged user and should not normally be logged in as root.You must create your own account separate from root. Create a login user with the following command# useradd huong# passwd huongNew password:Retype new password:passwd: password updated successfullyCreate user's home directorySetting up the use of the sudo commandTo grant sudo privileges to the created general user, use the command "visudo" as root and edit the file "sudoers".This time, "users belonging to the wheel group can use it; they will not be asked for their password when sudoing." Use the
Slackware 15.0_en

Slackware15.0 : Various settings during installation

Creating BootstickTo create an emergency Bootstick, insert a USB stick, select Create, and press Enter.Select Skip since you will not create it this time.Install Boot ManagerELILO InstallationIf installed on a machine with a UEFI boot PC or motherboard, the following screen will appearPCs running on UEFI firmware will not work with LILO, so proceed to install ELILO designed for EFI/UEFI systemsSelect skip and press Enter to continue
Slackware 15.0_en

Slackware 15.0 : Disk partitioning

PartitioningFirst, basic partitioning divides the disk space into two parts: / (root) and a partition for swap. The partition for swap must be prepared.1.Using gdisk commandsWhen gdisk is invoked, the following is displayed.gdisk always requires a device file name as an argument
Slackware 15.0_en

Slackware15.0 : OS image download, boot

About SlackwareSlackware is one of the Linux distributions.However, in the early days of Linux, it was one of the two major distributions so commonly used that it was said that Linux was either Slackware or Red Hat Linux.Launched in 1992, Slackware celebrates its 31st anniversary this year.The latest version is 15.0, released on February 4, 2022.Forte・High stability・Secure with few bugs and security holes・It is capable of high operating speeds. Slackware is fast because it installs only the components that users need.・Highly compliant with standards and suitable for servers・Slackware is simple to use, and if you can master it, you can create your own environment.・SlackBuilds, which automates the installation of apps, is available, and the SlackBuilds site has a database of scripts for creating various packages on your own. Furthermore, if you install sbopkg, you can browse the Slackbuilds database with a single command and automatically download, generate, and install packages.・Slackware allows you to use emacs, vim, and gimp, which are standard Linux applications.
FreeBSD13.2_en

FreeBSD13.2 : WEB Server(Apache2) , MySQL8

1. Apache21.1 Install2. MySQL InstallInstall MySQL before installing PHP3. apache24 - PHP 8.03.1 PHP Install
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).
OracleLinux 8.8_en

OracleLinux8.8 : System Backup and Restore

1.Website data backup1-1. Backup under /var/www/html①Creating backup script files# cd /var/www/system# vi backup_html.sh2.MySQL database backup①Creating backup script files# cd /var/www/system3.Restore backup files under html① Store HTML backup files in "/ (root)" directory4.Restoring Mysql Backup Files①Save the backup file to any directory(In the example, the directory is "/var/www/backup/db_bak".)Unzip data
OracleLinux 8.8_en

OracleLinux8.8 : Logwatch , DNS update ・disk usage check script

1. Logwatch①Install# dnf install logwatch②Editing Configuration Files2.Automatic DNS update scriptWhenever the global IP changes, which happens when the network is disconnected or the router is disconnected and rebooted, we need to access Dynamic DNS to inform the user that the global IP has changed. We will install a script that will do this automatically.This time, we assume that you will use Value Domain as your DNS service.3.Disk Usage Check Script3.1 script# cd /var/www/system# vi disk_capacity_check.sh
OracleLinux 8.8_en

OracleLinux8.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]
OracleLinux 8.8_en

OracleLinux8.8 : SSH Remote connection , Firewalld , NTP Server

1.Setting up a 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.2.Firewall (Firewalld) settingsIn Oracle, the firewall is firewalld configured by default and enabled during OS installation.To briefly explain "firewalld," when setting communication control policies, communication permission/blocking rules are applied to predefined zones, and these zones are then assigned to each NIC (network adapter).
OracleLinux9.1-en

OracleLinux9.1 : System Backup and Restore

1.Website data backup1-1.Backup under /var/www/html①Create backup script file2.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)" directory# cd /var/www/backup/html_bak# cp html_back_20220610.tar.gz / ←Specify the backup file with the latest date4.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# cd /var/www/backup/db_bak
OracleLinux9.2-en

OracleLinux9.2 : 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]