Raspberry Pi 3B に Ubuntu 22.04 をインストール

はじめに

Raspberry Pi 3B に Ubuntu 22.04 をインストールしました。

メモリー1GB、SDカードは16GBというスペックに対し、どの程度使えるのか未知数でしたが、アプリケーションのインストール等のノウハウが得やすいと考え、Ubuntu Server 22.04.4 LTS (64-bit) をインストールしました。

内容

editor

設定変更を行う際にエディタが起動する場面で、環境変数 EDITOR を変更しても、nano が起動してしまうケースがありました。

下記で設定しておくのが良いようです。

$ sudo update-alternatives --config editor
There are 4 choices for the alternative editor (providing /usr/bin/editor).

  Selection    Path                Priority   Status
------------------------------------------------------------
\star{} 0            /bin/nano            40        auto mode
  1            /bin/ed             -100       manual mode
  2            /bin/nano            40        manual mode
  3            /usr/bin/vim.basic   30        manual mode
  4            /usr/bin/vim.tiny    15        manual mode

Press <enter> to keep the current choice[*], or type selection number: 3
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/editor (editor) in manual mode

A start job is runnig for Wait for Network to be Configured

A start job is runnig for Wait for Network to be Configured

インストール後、上記のメッセージが表示され、Ubuntuの起動が2分以上待たされる事象がありました。

netplan にて各イーサネットアダプタ(eth0、wlan0等)に対して optional: true を設定しておくと良いようです。

事実、wlan0側が接続されており、eth0にnetplan未設定だった時には事象が発生しましたが、設定後は発生しなくなりました。

おわりに

以上です。

Copied title and URL