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

nuy

OracleLinux 8.6_en

OracleLinux8.6 : FTP Server

FTP Server Installation1. Vsftpd Install# dnf -y install vsftpd2. Vsftpd configurationSave the unedited vsftpd.conf with .bak# cp /etc/vsftpd/vsftpd.conf /home/huong/vsftpd.conf.bak①Editing Configuration Files
OracleLinux 8.6_en

OracleLinux8.6 : Anti-virus , Mail server installation

Install clamav ( anti-virus software )1.Clam AntiVirus InstallMail Server Installation1. Postfix Install1.1 Install Postfix and build an SMTP serverMail server : Postfix + Clamav + Amavisd + SpamAssassin1.Real-time scanning of e-mails①Install Amavisd and Clamav Server
OracleLinux 8.6_en

OracleLinux8.6 : Mysql8 , WordPress installation

Mysql8 Install# dnf module -y install mysql:8.0Create a new charset.cnf with the following contents# vi /etc/my.cnf.d/charset.cnf2.Wordpress Install# cd /var/www/html/oracle.korodes.com# wget http://wordpress.org/latest.tar.gz# tar xvf latest.tar.gz3.Edit Wordpress configuration file
Rocky Linux 8.4_en

Rocky Linux8.4 ; Disable SELinux , Firewalld settings

1.Disable SELinuxFirst, disable selinux. selinux is a feature that improves auditing and security in Linux, but when it is enabled, it restricts the behavior of services and settings to a great extent. For this reason, selinux is basically disabled in most cases.If you build a server while looking at a website and it does not work as expected, it may be due to the fact that selinux is enabled. So, don't forget to disable it after installation.
Rocky Linux 8.4_en

Rocky Linux8.4 ; Creating a Certificate for SSL , Public key cryptography for SSH

1.Creating a Certificate for SSL1.1 advance preparationThe RHEL8 series does not include CA, so use RHEL7 CA.① Copy the CA to /etc/pki/tls/misc/ using WINSCP, etc.➁Pass PATH to SSL commands[root@Lepard ~]# export PATH=/etc/pki/tls/misc:$PATH➂Edit the openssl.cnf file
Rocky Linux 8.4_en

Rocky Linux8.4 ; WEB Server Install

1.Installation of Apache2 (httpd-2.4.39) and virtual host configuration1-1.Apache2 installation①Download and extract httpd-2.4.39Download[root@Lepard ~]# cd /usr/local/src/src]# wget http://archive.apache.org/dist/httpd/httpd-2.4.39.tar.gzExtracting the Apache tar filesrc]# tar zxvf httpd-2.4.39.tar.gz➁Download and extract apr and apr-util
Rocky Linux 8.4_en

RockyLinux 8.4 ; Installing a mail server

1.Install Postfix and Dovecot1-1.Install the required software.[root@Lepard ~]# dnf -y install postfix dovecot cyrus-sasl cyrus-sasl-plain cyrus-sasl-devel[root@Lepard ~]# systemctl enable postfix[root@Lepard ~]# systemctl enable dovecot[root@Lepard ~]# systemctl enable saslauthdCheck if Postfix is installed.
Rocky Linux8.6_en

Rocky Linux8.6 : Let's Encrypt , Apache Mail SSL

1.Obtain SSL Certificate ( Let's Encrypt )Install the latest open ssl# dnf install openssl-devel1.1 Certificate Installation2. Apache SSLInstall the following just in case# dnf -y install mod_ssl2.1 Edit ssl.conf file3. Mail SSL/TLS(Let's Encrypt)3.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.
Ubuntu20.04_en

Ubuntu Server 20.04 Obtaining and installing an image

Download Ubuntu Server 20.04 installation imageThe Ubuntu Server installation image can be downloaded from the official website.You will need to create an installation CD/DVD from the downloaded iso file.(About 1.2G)If you are installing on a virtual machine using Vmware or similar, you can use the iso file itself.Download the iso file   :  Ubuntu official download siteUbuntu Server 20.04 installationChange the BIOS so that the PC can boot from the installation disc created above, and then boot the PC.
Ubuntu20.04_en

Ubuntu Server 20.04 : SSH Service & Firewall

1. SSH service security settingsThe SSH service allows root user login by default.Since the root user already knows the username, if the password is known, he can log in to the server with administrator rights.1.1 Creating a general userIf you have created a general user during the installation of Ubuntu 20, this step is not necessary.If the only user created on the server is root, you will not be able to log in remotely via SSH, so if you have not created a user when you installed the OS, you will need to create one beforehand.To create a user, use the "useradd" command.The "-m" option is used to create a home directory and the "-p" option is used to specify a password.For example, to set "ubuntuuser" as the user account name and "123456" as the password, you would run
Ubuntu20.04_en

Ubuntu Server 20.04 : MySQL 8 , WordPress

1. Install MySQL 81. Install# apt -y install mysql-server-8.02. MySQL server security settingsRun the tool mysql_secure_installtion to configure security-related settings for your MySQL server.When you run it, you will be asked a series of questions to help you configure your security settings.You will first be asked if you want to use a password validation plugin, as shown below.Password validation means that you can check the password strength of users for MySQL and restrict them to accepting only passwords that are secure enough.For example, it should be at least a few characters long and always contain at least one symbol and one number.Type y if you like and press Enter
Ubuntu20.04_en

Ubuntu Server 20.04 : SNORT , Tripwire install

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

Ubuntu Server 20.04 : System Backup and Restore

1. System backup1.1 Backup under /var/www/html①Create the /var/www/system directory# mkdir /var/www/system②Create a script "backup_all.sh" under /var/www/system# vi /var/www/system/backup_all.shContents of the "backup_all.sh" script#!/bin/bash#===========================================================# : Environment initialization#===========================================================#Date processingTODAY=`/bin/date +%Y%m%d`DAY_AGO=`/bin/date --date '7day ago' +%Y%m%d`
Ubuntu22.04_en

Ubuntu Server 22.04 : SSH , Firewall

1. SSH Service Security SettingsThe SSH service allows root user login by default.The root user can log in to the server with administrator privileges if the password is known because the user name is already known.1.1 Creating a General UserIf you have created a general user when installing Ubuntu 22, 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.
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!