raspberry piにubuntuをインストール

gihyo.jp

qiita.com

sudo apt install avahi-daemon
sudo systemctl enable avahi-daemon
sudo systemctl start avahi-daemon

ubuntu@ubuntu.local

# ロケールとキーボードとリポジトリの設定
sudo locale-gen ja_JP.UTF-8
sudo dpkg-reconfigure -f noninteractive locales
echo "LANG=ja_JP.UTF-8" | sudo tee /etc/default/locale
sudo timedatectl set-timezone Asia/Tokyo

sudo nano /etc/default/keyboard
XKBMODEL="jp106"
XKBLAYOUT="jp"

sudo dpkg-reconfigure -f noninteractive keyboard-configuration
sudo cp /etc/netplan/50-cloud-init.yaml /etc/netplan/99_config.yaml
sudo nano /etc/netplan/99_config.yaml

network:
  version: 2
  renderer: networkd
  ethernets:
    eth0:
      dhcp4: true

  wifis:
    wlan0:
      dhcp4: true
      access-points:
        "xxxxxxxx":
          password: "yyyyyyyy"