web-dev-qa-db-ja.com

Raspberry Pi 4B-Ubuntu 19.10-管理されていない有線ネットワーク

「ubuntu-19.10-preinstalled-server-armhf + raspi3.img」を正常にインストールし、アップデートとUbuntuデスクトップをインストールしました。有線ネットワークは「管理対象外」と表示されますが、Firefoxを使用できます。ネットワークが存在しないため、ソフトウェアはインストールされません。管理された有線ネットワークを有効にする方法についていくつかの提案を見つけましたが、その手順は不完全です。概要を説明したタスクの実行方法を知っている人向けに書かれているようなものです。問題を解決するためにダウンロードできるパッチはありますか?そうでない場合、すぐにリリースされますか?ありがとう!

2
Martin Capehart

私はこれを理解しました。

ネットプラン構成を表示するには、次のコマンドを実行します。

$cd /etc/netplan
$Sudo nano 50-cloud-init.yaml

50-cloud-init.yamlファイルが空白の場合は、次のコマンドを実行します。

^X
$Sudo netplan generate
$Sudo netplan apply

これで、50-cloud-init.yamlを編集して有線ネットワークを管理できます。

$Sudo nano 50-cloud-init.yaml

端末ウィンドウに表示されるのは次のとおりです。

# This file is generated from information provided by
# the datasource.  Changes to it will not persist across an instance
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
    ethernets:
        eth0:
            dhcp4: true
            optional: true
    version: 2

レンダラ:NetworkManagerを追加して、50-cloud-init.yamlを編集します。すべてのインデントが正しいことを確認する必要があります。そうしないと、ファイルが機能しません。インデントの設定には、タブではなくスペースバーを使用します。完了すると、50-cloud-init.yamlは次のようになります。オプションのtrue行を削除しました。

# This file is generated from information provided by
# the datasource.  Changes to it will not persist across an instance
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following
# network: {config: disabled}
network:
    renderer: NetworkManager
    ethernets:
        eth0:
            dhcp4: true
    version: 2

ここで編集を保存します。

^X
# Save Modifed Buffer
Y
# File Name to Write: 50-cloud-init.yaml
# Press Enter Key

次に、変更した50-cloud-init.yamlファイルを適用します。

$Sudo netplan apply

Raspberry Piを再起動し、有線ネットワークをTweakで使用できるようにしました。 LinuxとUbuntuに初めて触れたのは、ちょうど今週1週間前のことです。これを理解するためにオンラインリソースをつなぎ合わせることができてうれしいです。うまくいけば、この更新が他の人にとってこのタスクを容易にするでしょう。

2
Martin Capehart