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

nuy

openSUSE_15.3_en

OpenSUSE15.3 : Let's Encrypt & Web Server SSL

1.Obtaining an SSL Certificate (Let's Encrypt)Pre-assignmentEnable mod_ssl# a2enmod ssl1.1 Install the certificate# zypper -n install certbot# certbot certonly --webroot -w /srv/www/htdocs/[Web site directory] -d  [Domain name]Saving debug log to /var/log/letsencrypt/letsencrypt.logPlugins selected: Authenticator webroot, Installer None# First time only, you need to register your email address and agree to the terms o
openSUSE_15.3_en

OpenSUSE15.3 : SNORT

1.SNORT InstallSnort is a network-type IDS (intrusion detection system). It captures packets flowing on the network and detects suspicious packets.The source file is used directly from https://snort.org/.1.1 advance preparationInstall the required libraries# zypper install wget bison flex libfl2 gcc libpcap-devel libpcap-devel-32bit libpcap1 automake libtool make glibc-devel-32bit zlib-devel zlib-devel-32bit libWN3 libdnet-devel libdnet1 efl efl-lang elua libXvMC1 libecore1 libector1 libedje1 libeet1 libpcrecpp0 libstdc++-devel libstdc++6-devel-gcc7 pcre-devel ethtool net-tools-deprecated net-tools net-tools-lang libopenssl-1_1-devel libtirpc-devel moonjit moonjit-devel1.2 SNORT and daq download and installation
openSUSE_15.3_en

OpenSUSE15.3 : Mysql & WordPress

1. Install Mysql8First, make sure the server is up to date.Update the server package# zypper ref# zypper up -y 1.2 Example of creating  Mysql8 database and userTry to create a user, password, and database for wordpress to install in the followingdatabase :  wp_dbuser : wp_userpassword : ?WHxx333Yo2. Install Wordpress2.1 Install required libraries# zypper install php-gd php-pdo php-mysql php-mbstr
openSUSE_15.3_en

OpenSUSE15.3 : Clamav (anti-virus) , Mail Server

1. Install clamav (anti-virus software)1.1 Install Clamav# zypper -n install clamav1.2 Virus definition file update①Virus definition file update setting# vi /etc/freshclam.conf■Line 71.Insert "#" at the beginning of the line "DatabaseMirror database.clamav.net".し、"DatabaseMirror db.jp.clamav.net" added.#DatabaseMirror database.clamav.netDatabaseMirror db.jp.clamav.net
openSUSE_15.3_en

OpenSUSE15.3 : Web server Apache Install

1. Install Web server Apache1.1Install apache2 ( httpd-2.4.43 )# zypper -n install apache21.2 Apache2 : Basic Configuration2. Apache2 : Use Perl scripts.Configure Perl scripts to be used as CGI2.1 Install Perl①Install# zypper -n install perl3. Apache2 : Virtual Host ConfigurationConfigure both domains sample1.korodes.com sample2.korodes.com to be displayed on a single server4. Apache2 : Use PHP scriptsInstall PHP and configure it so that PHP scripts can be used
openSUSE_15.3_en

OpenSUSE15.3 : FTP over SSL/TLS

1. vsftpd (FTP server installation)1.1 Install vsftpdIt is already installed when you install openSUSE.If it is not installed, you can install it with the following command# zypper -n install vsftpd1.2 Edit vsftpd configuration fileSave the unedited vsftpd.conf with .bak.
openSUSE_15.3_en

OpenSUSE15.3 : SSH connection with authentication using public key cryptography

Create a private key for the client and a public key for the server so that the client can log in using the key pair authentication.1.Key pair creationCreate a pair of public and private keys for the user who will connect to the Linux server using OpenSSH.To create a key pair, use ssh-keygen.The creation of a public/private key pair should be performed as a user with remote login privileges.If you do not specify the destination and file name, id_ecdsa and id_ecdsa.pub will be created in /home/(user name)/.ssh/.    On the way, you will also enter the password for the key.
openSUSE_15.3_en

OpenSUSE15.3 : Firewall , SSH、NTP

1.Setting up a remote connection using SSHSSH is a service to connect to a server remotely, basically running right after the OS installation, but the default settings are somewhat insecure.Configure settings to increase the security of ssh connections.1.1 Change the configuration file of SSH service.The configuration file for the SSH service is "/etc/ssh/sshd_config".
openSUSE_15.3_en

OpenSUSE15.3 : Initialization

1. Disable SELinuxSELinux is a feature that provides a highly secure system architecture that prevents the concentration of privileges on root.In openSUSE, it is disabled at the time of installation.To check# vi /etc/selinux/configSELINUX=disabled2. Use su commandNot required if you set the root password at the time of installation.If you don't want to set the root password, set it as followsAfter logging in as a general user
openSUSE_15.3_en

OpenSUSE15.3 : OS download and installation

What is openSUSE?OpenSUSE is a community-based, free to the public, Linux distribution that is actively adopting the latest technologies. It is sponsored by Novell and developed by the community. Originally SUSE Linux was developed by SUSE, but after the acquisition of SUSE by Novell in 2003, Novell moved to a 100% open source distribution with a community-based development structure through the OpenSUSE project and changed the name from SUSE Linux to After the acquisition of SUSE by Novell in 2003, Novell moved to a community-based development structure with the OpenSUSE project as a 100% open source distribution and changed the name from SUSE Linux to the current name.openSUSE is available in two versions: Leap, the stable version, and Tumbleweed, which uses a rolling release model and is also the basis for the paid version of SUSE Linux Enterprise.
OpenSUSE15.6_en

OpenSUSE15.6 : Server backup and restore

1. Server Backup1.1 Backup under /srv/www/①Create backup script file1.2. MariaDB Database Backup①Create backup script file2.Data Restore2.1 Restore backup files under www① Save backup files used for restore to the "/ (root)" directory of the server2.2 Restore MariaDB data① Save the database backup file to any directoryExtract data
MiracleLinux9.0_en

MIRACLE ZBX 6.0 Install

Integrated Monitoring Software "MIRACLE ZBX"MIRACLE ZBX, enterprise-oriented integrated system monitoring software based on the open source Zabbix, with enhancements and modifications provided by Cybertrust. It implements security enhancements that comply with some requirements of the National Institute of Standards and Technology (NIST) security guidelines "NIST SP800-171" and "NIST SP800-53", which are becoming an international standard for security standards.SELinux must be set to permissive
MiracleLinux9.0_en

MiracleLinux9.0 :  Tripwire Chkrootkit Logwatch

Tripwire1.Download and installation# cd /usr/local/src1. Logwatch①Install# dnf install logwatch②Edit configuration file2. DiCEWhenever 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!3.Introduce disk usage check script3.1 Script Creation# cd /var/www/system# vi disk_capacity_check.sh
MiracleLinux9.0_en

MiracleLinux9.0 :  Suricata , SNORT Install

 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.。SNORTSnort is an open source network intrusion detection system that can perform 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 such as buffer overflows, stealth port scans, CGI attacks, SMB probes, OS fingerprinting attempts, semantic URL attacks, and server message block probes. detection.
MiracleLinux9.0_en

MiracleLinux9.0 : SSL Certificate Acquisition( Let's Encrypt ) , Apache SSL , Mail SSL/TLS

1.Obtain an SSL certificate ( Let's Encrypt )Install the latest open ssl# dnf install openssl-devel1.1 advance preparation1.Package management system Snappy installedSince the SSL certificate issuing tool "certbot" of Let's Encrypt is recommended to be installed using "snap" after 2021, install Snapd first.(Can also be installed the traditional way with dnf or yum)2. Converting Apache to httpsInstall the following just in case# dnf -y install mod_ssl3. SSL/TLS (Let's Encrypt) settings on the mail server3.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.