raspberry pi 4 ubuntu新安装

raspberry pi 4 ubuntu安装

  1. 官网下载ubuntu-20.04.2-preinstalled-server-arm64+raspi.img.xz

  2. ubuntu默认登录账号密码都是ubuntu,登录会要求改新密码

  3. 开启root登录,sudo passwd root,设置root密码,sudo root切到root

  4. /etc/hostname是修改主机名

  5. 配置无线网卡/etc/netplan/50-cloud-init.yaml


network:
    ethernets:
        eth0:
            addresses: [3.1.1.2/24]
            dhcp4: no
            optional: true
        eth1:
            dhcp4: true
            optional: true
    wifis:
        wlan0:
            dhcp4: true
            optional: true
            access-points:
                "bi2_keting":
                    password: "00001111"
    version: 2

  1. 开启root ssh
    /etc/ssh/sshd_config
    PermitRootLogin yes

  2. 安装openvpn
    apt install openvpn
    scp root@192.168.0.101:/root/client_xxx.ovpn /root/ (取openvpn 文件)
    /usr/sbin/openvpn --config /etc/openvpn/xxx.ovpn & 临时连接上openvpn

8.设置开机自动连接openvpn

上一篇:全能高性价比之王,2020商城高人气游戏蓝牙耳机推荐


下一篇:Attribute "not-null" must be declared for element type "property"解决办法