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

Ubuntu Server26.04 : OS Install , Initial settings

Ubuntu Server 26.04

インストールイメージのダウンロード

You can download the Ubuntu Server installation media from the official website. With a fast internet connection, it takes only about 2 to 3 minutes to download the OS itself.
You will need to create an installation CD/DVD or USB drive from the downloaded ISO file. (Approx. 2.7 GB)
The ISO file can be downloaded from https://releases.ubuntu.com/resolute/
The file to download is ubuntu-26.04-live-server-amd64.iso

Since Ubuntu 26.04 (released on April 23, 2026) will receive standard support until April 2031, it is safer to deploy the LTS version of Ubuntu 26.04 in a production environment.

Install

Configure the BIOS to boot from the installation disk you created above, then start up the PC.
The installation process is the same as for Ubuntu 24.04, so I will omit the details here. Please refer to the page below.

Initial settings

1. Set root password

In the default configuration of Ubuntu, the root user is unavailable because no password has been set.
By setting a password for the root user, transitions using the traditional [su] command will be possible.

Switch to root user

2. System Modernization

3. Make locate command available

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

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 Changing Vim settings

There may be cases where you do not want to allow vim settings for all users. In such cases, a ".vimrc" file can be created in each user's home directory to change the vim environment for each user.
In this case, we will create a ".vimrc" file in the root user's home directory "/root/" and apply it to all users.

Select the above settings according to your preference.

5. ネットワークの設定

5.1 Host Name Settings

This procedure is not necessary if you have already set the hostname at the time of Ubuntu installation and wish to use the hostname as it is.
To change the hostname, use the "hostnamectl set-hostname" command.
As an example, we set "Lepard" as the hostname.

5.2 Set IP address to network interface

If you specified a static IP address during Ubuntu installation, this section is unnecessary.
To change the IP address, modify the /etc/netplan/00-installer-config.yaml file, then restart the network interface (ens33 in this environment).
The network interface name varies depending on the setup environment, so first check the interface name.

ens33:Network Interface Name
192.168.11.83 : IP Address

Setting up a static IP address

This time, we'll set the IP address to 192.168.11.63 as an example. The required network information is as follows, and this will be reflected in the configuration file.
Address : 192.168.11.63/24
Default gateway : 192.168.11.1
Name server : 192.168.11.1
IP address settings are configured by modifying the "/etc/netplan/00-installer-config.yaml" file.

5.3 Disabling IPv6

6. Configure server time synchronization

The default service for automatically synchronizing the server's time has been changed from system-timesyncd to chrony.

6.1 Configuration of the chronyd service

Configure the time synchronization server in /etc/chrony/sources.d/ubuntu-ntp-pools.sources.

Restart chrony and enable it to remain active after a system reboot.

Open the NTP port in the firewall (We'll explain firewalls on the next page, so just open it for now).

6.2 Checking the status (operation) of chronyd

7. Set time zone to Japan

Current Time Zone Check

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

As above, it is in Japan.

Copied title and URL