系统相关
首页 > 系统相关> > raspberry pi 4 ubuntu新安装

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

标签:raspberry,dhcp4,root,ubuntu,etc,openvpn,pi,true
来源: https://blog.csdn.net/m0_38133358/article/details/117627215