First attach monitor, keyboard, mouse to the machine.
https://ubuntu.com/download/server
(in Mac) Download the image file from the above link: ubuntu-22.04.3-live-server-amd64.iso
https://ubuntu.com/tutorials/create-a-usb-stick-on-ubuntu#1-overview
(in mac) Make the installation USB stick. The stick may contain old version ISO or others. It doesn't matter. At first I followed the guide of the above page. But an error occurs: the image file is not gzip format.
So I changed the guides as follows:
$ diskutil list
Check where the stick is mounted at.
$ diskutil unmountDisk /dev/disk5
$ sudo dd if=~/Downloads/ubuntu-22.04.3-live-server-amd64.iso of=/dev/disk5 bs=32m
It takes 1600 seconds. Now unmount.
$ diskutil unmountDisk /dev/disk5 Now insert the USB stick into the machine, turn on the machine, and go into BIOS setting during booting by F2 or DEL (for ASUS board).
Change the boot menu to the USB stick and save & exit.
The installation starts.
Select default options.
At first trial, I select Docker for snaps and the installation fails. At the second trial, I select none and the installation succeeds.
https://askubuntu.com/questions/1417938/ubuntu-does-not-use-full-disk-space-how-to-extend
-------- if needed, resize file system / of ubuntu--vg-ubuntu--lv
$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS loop0 7:0 0 63.4M 1 loop /snap/core20/1974 loop1 7:1 0 111.9M 1 loop /snap/lxd/24322 loop2 7:2 0 53.3M 1 loop /snap/snapd/19457 sda 8:0 0 3.6T 0 disk └─sda1 8:1 0 3.6T 0 part /media/hdd0 nvme0n1 259:0 0 465.8G 0 disk ├─nvme0n1p1 259:1 0 1G 0 part /boot/efi ├─nvme0n1p2 259:2 0 2G 0 part /boot └─nvme0n1p3 259:3 0 462.7G 0 part └─ubuntu--vg-ubuntu--lv 253:0 0 100G 0 lvm /
$ sudo lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv
$ sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS loop0 7:0 0 63.4M 1 loop /snap/core20/1974 loop1 7:1 0 111.9M 1 loop /snap/lxd/24322 loop2 7:2 0 53.3M 1 loop /snap/snapd/19457 sda 8:0 0 3.6T 0 disk └─sda1 8:1 0 3.6T 0 part /media/hdd0 nvme0n1 259:0 0 465.8G 0 disk ├─nvme0n1p1 259:1 0 1G 0 part /boot/efi ├─nvme0n1p2 259:2 0 2G 0 part /boot └─nvme0n1p3 259:3 0 462.7G 0 part └─ubuntu--vg-ubuntu--lv 253:0 0 462.7G 0 lvm /
|