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

nuy

LinuxTips(RedHat)_en

Display the IRQ of the connected device

Display the IRQ of the connected deviceThe /proc/interrupts file can display IRQ (InterruptReQuest: Interrupt Request) information.There are 16 types of IRQ, ranging from 0 to 15, and the /proc/interrupts file contains information on which ones are used.
Disk and device management

Display PCI device information

Display PCI device informationTo check the information of a PCI device in Linux, use the lspci command.This lspci command can be executed with the option "-v" to display more detailed information.You will need super user (root) privileges to run this command.
LinuxTips(RedHat)_en

Stop unnecessary services

Linux starts many unnecessary services (programs) that are not used immediately after installation.Services that are not used consume server resources unnecessarily just by being started and running, which is not desirable for security measures.There are two commands to stop services: service and chkconfig, but the service command will cancel the settings and start the stopped service when the server is restarted.Stop the service with the chkconfig command, which will keep the service stopped even after restarting the server.
LinuxTips(RedHat)_en

Include daemon processes in the display

In the case of Linux, there are processes that run specifically for system maintenance without the need to give any instructions.These processes are called daemons, and they wait until there is a request from the user, and when there is a request, they create a new process and execute the process.The process created here is called a child process, and if it is set to run at a certain date and time in advance, it will execute the reserved process at the reserved date and time.Basically, these daemons are executed according to the user's settings, but some of them are default (standard) settings. Since these daemons are not operated by the user in a control terminal such as a console or terminal emulator, they will not be displayed in the control terminal when the ps command is executed, but you can display these processes by adding the option "-x".
LinuxTips(RedHat)_en

Terminate the process

To terminate a running process, use the kill command.You nee...
Ubuntu18.04_en

Ubuntu Server 18.04 : Obtaining and Installing an Image

Download the installation imageThe installation media for Ubuntu Server can be downloaded from the official website on the Internet.You will need to create an installation CD/DVD from the downloaded iso file.The download location for the iso file isUbuntu official download siteInstallChange the BIOS so that the PC can boot from the installation disk created above, and then boot the PC.
Ubuntu18.04_en

Ubuntu Server 18.04 : Installing MySQL

Installing MySQL1.Install the necessary packages.# apt update# apt install mysql-server2.Configure security settings for MySQL server.There is a tool called mysql_secure_installtion that can be used to configure security-related settings for the MySQL server.When you run it, it will ask you a series of questions to help you configure some security settings.
Ubuntu18.04_en

Ubuntu Server 18.04 : SSL/TLS applied to web , mail , FTP server

1. Apache2 : SSL/TLS ConfigurationDescribes how to apply an SSL certificate obtained with Let's Encrypt to apache.Domain name : hoge.com1.1 Configuration of Apache2①Editing the Apache2 configuration fileRename and copy the default conf file (e.g. "hoge.com-ssl.conf")
Ubuntu18.04_en

Ubuntu Server 18.04 : Mail Server Install

1.Postfix : Installation / ConfigurationPostfix is a software developed as an MTA (Mail Transport Agent) to replace Sendmail, and is a mail server with features such as high compatibility with Sendmail, security, easy maintenance, and speed.Also, since Postfix only functions as an SMTP server for sending mails, you will need to install a POP server for receiving mails separately as described later.
Ubuntu18.04_en

Ubuntu Server 18.04 : Web server and antivirus installed.

1. WEB server installation1. 1 Apache2 installation① Install# apt -y install apache2② Edit configuration file# vi /etc/apache2/conf-enabled/security.conf# Line 25: ChangeServerTokens  Prod
Ubuntu18.04_en

Ubuntu Server 18.04 : FTP Serve , NTP Server

1.Install the FTP server vsftpd① Install# apt install vsftpd② Allow PORT21 to be used by FTP in UFW(firewall)# ufw allow ftp# ufw reload③ Edit the configuration file (vsftpd.conf)
Ubuntu18.04_en

Ubuntu Server : 18.04 Initial Setup

1. Set the root password and use the SU command$  passwd rootpassword for ← Current user's passwordEnter new UNIX password: ← Enter the root password to be set.Retype new UNIX password: ← Re-enter the same passwordpasswd: password updated successfully
LinuxTips(RedHat)_en

Display various information about the CPU

●Display the CPU information installed on the PC.To display the CPU information installed in the PC, refer to the "/proc/cpuinfo" file.This information is used to know the CPU load for top command, etc.
LinuxTips(RedHat)_en

Configuring the default gateway (router)

●Confirmation of the current default gatewayExecute the "route -n" command. "-n" is an option to display the hostname as IP.●Remove the default gatewaySet "del" as the argument of the route command, and set the IP address of the default gateway device (192.168.11.1) that you want to delete after "default gw".●Setting up a new default gatewaySet "add" as the argument of the route command, and set the IP address (192.168.11.2) of the default gateway device you want to set after "default gw".
Ubuntu18.04_en

Ubuntu Server 18.04 : Obtain an SSL certificate (Let's Encrypt).

Obtaining a certificate with Let's Encrypt①Enable mod_ssl# a2enmod ssl②Install Git.# apt-get install -y git③Install the certificate acquisition tool# cd /usr/local/# git clone https://github.com/certbot/certbot