raspberry pi 4 ubuntu安装
-
官网下载ubuntu-20.04.2-preinstalled-server-arm64+raspi.img.xz
-
ubuntu默认登录账号密码都是ubuntu,登录会要求改新密码
-
开启root登录,sudo passwd root,设置root密码,sudo root切到root
-
/etc/hostname是修改主机名
-
配置无线网卡/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
-
开启root ssh
/etc/ssh/sshd_config
PermitRootLogin yes -
安装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