Click here for "Safe Air Conditioner Repair and Proper Freon Recovery".

Ubuntu Server 22.04 : Initialization

1. Set root password and use SU command

The root user is unavailable in the default Ubuntu configuration because no password is set.
Setting a password for the root user allows transitions using the conventional [su] command.

2. System Modernization

3. Make the locate command available

The find command is often used to search for specific files throughout the Linux system, but find is somewhat confusing in specifying options.
The locate command can extract all files with a given filename.

3.1 Installing the locate package

3.2 Example of executing the locate command

4. vim editor settings

Ubuntu has vim installed by default

4.1 Change vim settings

This time, we will create a ".vimrc" file in the root user's home directory "/root/" and configure it to apply to all users.

5. Network Settings

5.1 Host Name Settings

This procedure is not necessary if the host name was set at the time of Ubuntu installation and the host name is to be used as it is.
To change the hostname, use the "hostnamectl set-hostname" command.
As an example, here we set "ubuntu-10" as the host name。

5.2 Set IP address to network interface

This section is not necessary if a fixed IP address is specified during Ubuntu installation.
To change the IP address, modify the " /etc/netplan/00-installer-config.yaml" file and then restart the network interface (ens33 in this environment).
The network interface name will vary depending on the environment in which the setup was performed, so check the interface name first.

ens33:  network interface name
192.168.11.83 : IP address

5.2.1 Setting up a static IP address
For this example, we will fix the IP address to 192.168.11.63.
The required network information is as follows, which is reflected in the configuration file.
IP address : 192.168.11.63/24
default gateway : 192.168.11.1
name server : 192.168.11.1
IP address configuration is done by modifying the file " /etc/netplan/00-installer-config.yaml".

Default settings should be disabled and backed up.

Create a new installer configuration file

Reflect settings

5.2.2 Disabling IPv6

6. Configure server time synchronization

Configure "timesyncd", a service that automatically adjusts the server time.

6.1Configuration of timesyncd service

Before changing a file, make a backup copy of the original file

↓ change

6.2Reflection of timesyncd service settings

Confirmation of time synchronization

If "System clock synchronized: yes" is displayed, the time is synchronized.

6.3 Set time zone to Japan

In the above, Time zone: Etc/UTC (UTC, +0000), so it matches Japan (Asia/Tokyo).

As above, it is in Japan.

タイトルとURLをコピーしました