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

2022-05

Ubuntu22.04_en

Ubuntu Server22.04 : Obtaining and Installing Images

Download Ubuntu Server 22.04 installation imageUbuntu Server installation media can be downloaded from official sites on the Internet.You will need to create an installation CD/DVD from the downloaded iso file. (approx. 1.2G)The iso file itself is available for installation on a virtual machine using Vmware or other software.The iso file can be downloaded from the "Official Ubuntu Download Site".Ubuntu Server 22.04 installedChange the BIOS so that the PC can boot from the installation disk created above.
Debian11.3_en

Debian11.3 : SNORT2 , Tripwire Install

1.Install SNORTSnort is an open source network intrusion detection system capable of performing real-time traffic analysis and packet logging on IP networks.It can perform "protocol analysis," "content search," and "matching," and can be used to detect a variety of attacks, including "buffer overflows," "stealth port scans," "CGI attacks," "SMB probes," "OS fingerprinting attempts," "semantic URL attacks," and "server message block probes.
Debian11.3_en

Debian11.3 : MySQL8 , WordPress Install

1. Install MySQL 81. 1 InstallThe MySQL team provides the official MySQL PPA for Debian Linux. After downloading and installing the package on your Debian system, the PPA file will be added to your system. To enable the PPA, run the following command2.Install WordPress2.1 Database CreationCreate a database for Word Press (for example, in this case, the database name is "wp_db", the user name is "wp_user", and the password is "?Y123456y")If you receive a message "Your password does not satisfy the current policy requirements" when creating an account, please make sure your password is at least 8 characters long and includes upper and lower case letters, numbers, symbols, etc.
Debian11.3_en

Debian11.3 : Let's Encrypt WEB , Mail Server SSL

1. Obtain a certificate (Let's Encrypt)1.1 advance preparation①Enable mod_ssl# a2enmod ssl②Install client tool to obtain Let's Encrypt certificate# apt -y install certbot
Debian11.3_en

Debian11.3 : Anti-virus , Mail server

1. Antivirus software Clamav installedInstall Clam AntiVirus, a free anti-virus software for Linux, as an anti-virus measure.By installing this anti-virus software, you can not only scan the entire server for viruses, but also scan incoming and outgoing mail for viruses if you build and configure a mail server.
Debian11.3_en

Debian11.3 : WEB Server Apache Install

Web server Apache2 installationAllow http:80 and https:443 p...
Debian11.3_en

Debian11.3 : NTP , FTP(Vsftpd) install

1. Install NTP server# apt -y install chrony# vi /etc/chrony/chrony.conf# Line 8.:Comment the default settings and add the NTP server for your time zone.#pool 2.debian.pool.ntp.org iburstpool ntp.nict.jp iburst# Add to the last line (Range for which time synchronization is allowed)
Debian11.3_en

Debian11.3 : SSH public key cryptosystem

RSA SSH connection with authentication using public key cryptographyCreate 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.This time, we will create a key set using the RSA cipher used in the SSH protocol Version 2.The creation of a public/private key pair is performed with remote login user privileges (e.g., huong).If you do not specify the destination and file name, id_rsa and id_rsa.pub will be created in /home/huong/.ssh/. On the way, enter the password for the key.
Debian11.3_en

Debian11.3 : SSH , Firewall

1. SSH Service Security SettingsThe SSH service allows the root user to log in by default, and since the root user already knows the user name and can log in to the server with administrative privileges once the password is known, we will deny this setting.1.1 Creating a General UserIf you have created a general user when installing Debian, this procedure is not necessary.If the only user created on the server is root, remote login via SSH will not be possible, so if a user has not been created during OS installation, a user must be created in advance.Users can be created with the "useradd" command. The "-m" option creates a home directory and the "-p" option specifies the password.For example, to set "debianuser" as the user account name and "123456" as the password, execute the following
Debian11.3_en

Debian11.3 : Initialization

1. Installing and configuring the vim editorDebian has "nano" as the default editor. nano is somewhat difficult to use, and there are few environments where it is used, so we will introduce the procedure for changing the editor to "vim".。1.1 Check vim packageDebian has vim installed by default, but it is a package called "vim-tiny", which is a less functional version. Let's check the installed vim package.Debian uses the "dpkg" command to check packages. The "-l" option displays a list of packages.Since the "dpkg" command as is will show all packages installed on the system, we will use the "grep" command to extract only those packages that contain the string "vim". Execute as follows
Debian11.3_en

Debian11.3 : OS Install

1.Debian11 OverviewIn this article, we will explain how to build a server with Debian, the basis of the user-friendly Linux distribution UBUNTU.The latest release is Debian 11.3 (codenamed "bullseye").Released on August 14, 2021 with an update (point release) on March 26, 2022.2.Download Debian installation imageDebian11 download site https://www.debian.org/Access the above official website and download "debian-11.3.0-amd64-netinst.iso." which is convenient for setup in an environment connected to the Internet.(Fits on a single CD)NETINST allows you to download and install the necessary packages from the Internet, so you can use a smaller installer (approximately 378 MB for v11.3.0) than a full installer.Click through the following screens in order.
Ubuntu22.04_en

Ubuntu22.04 Server : Backup and Restore

1. System Backup1.1 Backup under /var/www/html①Create /var/www/system directory# mkdir -p /var/www/system②/Create backup_all.sh script under var/www/system# vi /var/www/system/backup_all.shbackup_all.sh script contents
Ubuntu22.04_en

Ubuntu22.04 Server : Logwatch , Disk usage check

1. DiCE  InstallWhenever the global IP changes, which happens when the network is disconnected or the router is disconnected and rebooted, the dynamic DNS must be accessed to inform the user that the global IP has changed. DiCE does this automatically!
Ubuntu22.04_en

Ubuntu22.04 Server : SNORT , Tripwire

1.SNORT InstallSnort is an open source network intrusion detection system capable of performing real-time traffic analysis and packet logging on IP networks.It can perform "protocol analysis," "content search," and "matching," and can be used to detect a variety of attacks, including "buffer overflows," "stealth port scans," "CGI attacks," "SMB probes," "OS fingerprinting attempts," "semantic URL attacks," and "server message block probes.
Ubuntu22.04_en

Ubuntu22.04 Server : MySQL 8 , WordPress

1. MySQL 8 Install1. 1Install# apt -y install mysql-server1.2. MySQL Server Security SettingsRun the tool mysql_secure_installation to configure security-related settings for the MySQL server.Once executed, several security settings are initiated in the form of questions.First, you will be asked if you want to use a plugin for password validation as follows. Password validation is a way to check the strength of a user's password for MySQL and restrict it to only accepting passwords that are secure enough. For example, it must be at least as many characters long as the user's password and must contain at least one symbol and one number. You can set this requirement by asking the following questionsType y and press Enter if you like