树莓派安装Ubuntu Server 19.01

1.连接wifi,在Ubuntu Server中使用netplan连接

# sudo vim /etc/netplan/50-cloud-init.yaml //末尾添加,注意缩进使用空格,wifis:前有缩进
wifis:
    wlan0:
        dhcp4: true
        access-points:
            "wlan-name":
                password: "password here" 
# sudo netplan --debug apply

2.树莓派换源

# sudo sed -i 's/ports.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list

3.开启ssh

# sudo apt search openssh-server
# sudo apt install opessh-client openssh-server
# sudo dpkg-reconfigure openssh-server
# sudo service ssh restart
# sudo service ssh status
# sudo systemctl enable ssh
posted @ 2020-04-13 15:34  Vlary  阅读(1134)  评论(0编辑  收藏  举报