树莓派3B,3B+,4B 安装桌面版ubuntu 18.04LTS 及联网方法

写在前面:推荐使用4或4B,3系列可能无法进入桌面
1.资源准备
ubuntu server 安装镜像:Ubuntu Server 18.04.4 for Raspberry Pi
官网 https://ubuntu.com/download/raspberry-pi
板子:树莓派 3B,3B+,4,4B
SD卡:32G+
2.Win32DiskImager等软件写入SD
参考:
[https://ubuntu.com/tutorials/create-an-ubuntu-image-for-a-raspberry-pi-on-macos#1-overview]

上电后登录,用户名ubuntu 密码ubuntu,第一次登陆需要重置密码(遇到unix password先输入原密码)

3.插电配置联网:
https://askubuntu.com/questions/1143287/how-to-setup-of-raspberry-pi-3-onboard-wifi-for-ubuntu-server-18-04

sudo nano /etc/netplan/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:
    version: 2
    ethernets:
        eth0:
            optional: true
            dhcp4: true
    # add wifi setup information here ...
    wifis:
        wlan0:
            optional: true
            access-points:
                "YOUR-SSID-NAME":
                    password: "YOUR-NETWORK-PASSWORD"
            dhcp4: true

应用配置 :
• Testing: sudo netplan --debug try (continue even if successful)
• Generate: sudo netplan --debug generate (provides more details in case of issues with the previous command)
• Apply: sudo netplan --debug apply (if no issues during the previous commands)

sudo netplan --debug try
sudo netplan --debug apply

重新启动

sudo reboot

连接测试: ping www.baidu.com

4.安装桌面

此处可根据个人喜好可用lubuntu kubuntu xbuntu等代替

sudo apt-get install ubuntu-desktop  

重新启动

sudo reboot

你可能感兴趣的:(ubuntu,raspberry,pi,networkmanager)