Click here for "Error Codes for Commercial Air Conditioners".(Japanese Version)

Ubuntu Server 20.04 Initial setup

1. Set the root password and use the SU command

In the default Ubuntu configuration, the root user is disabled because no password is set.
By setting a password for the root user, the traditional [su] command can be used for transitions

Switch to root user

2. Modernisation of the system

3. Make the locate command available

The find command is often used to search for a specific file on the whole Linux system, but find is somewhat confusing in its options.
The locate command is capable of extracting all files with a given filename.

3.1 Install locate package

Check your package

3.2 Example of the locate command

You will see a list of filenames containing sshd, as shown above

4. vim editor settings

Ubuntu comes with vim installed by default

4.1 Change vim settings

If you don't want to allow all users to set their own vim preferences, you can create a ".vimrc" file in the user's home directory that allows you to change the vim environment for each user.
This time we will create a ".vimrc" file in the root user's home directory "/root/" and set it to apply to all users.

The above settings can be selected according to preference.

5. Network settings

5.1 Host name settings

If you set a hostname when you install Ubuntu and use that hostname, you do not need to follow this procedure.
To change the hostname, use the command "hostnamectl set-hostname".
As an example, here we will set "ubuntu-10" as the hostname.

Checking the results of the configuration

5.2 Setting IP addresses for network interfaces

If you specified a static IP address during Ubuntu installation, this section is not necessary.
If you want to change the IP address, change the file " /etc/netplan/00-installer-config.yaml" and reboot the network interface (eno1 in this environment).
The name of the network interface will vary depending on your environment, so check the interface name first.
Check network information

eno1:Network interface name
192.168.11.152 : IP address

5.2.1 Setting a static IP address
This time, fix the IP address to 192.168.11.63.
The network information required is as follows, which should be reflected in the configuration file.

subnet mask : 192.168.11.63/24
default gateway : 192.168.11.1
name-server : 192.168.11.1

The configuration of the IP address is done by modifying the file " /etc/netplan/00-installer-config.yaml".
Disable the installer default settings and back them up

Create a new installer configuration file

# Reflect settings

5.2.2 Disable IPv6

6. Configuring server time synchronisation

Configure "timesyncd", a service that automatically sets the server's time.

6.1 Configuring the timesyncd service

Before making any changes to a file, make a backup copy of the original file

Edit configuration file

6.2 Reflection of timesyncd service settings

Check time synchronisation

If the message "System clock synchronized: yes" is displayed, time synchronization has taken place.

6.3 Set timezone to Japan

In the above example, the time zone: Etc/UTC (UTC, +0000) is set to Japan (Asia/Tokyo).

As above, this is Japan!

Copied title and URL