1. 下载 对应镜像b并解压
2. win32diskimage 烧录到TF中.
3. TF卡放入 rapsberry 4b. 连u接HDMI显示器. 接入鼠标键盘网线.
4. 开机密码: ubuntu/ubuntu 需要立刻修改登录密码.
5. 设置网络
-
$ cat /etc/netplan/50-cloud-init.yaml
-
-
network:
-
ethernets:
-
eth0:
-
dhcp4: true
-
optional: true
-
version: 2
-
wifis:
-
wlan0:
-
dhcp4: true
-
access-points:
-
"你的wifi的ssid":
-
password: "你的密码"
-
然后执行
-
netplan try
-
netplan apply
-
ping 8.8.8.8 确认网络畅通.
执行
sudo apt install openssh-server ### 然后就可以使用 远程登录修改其他的配置了.
-
6. 修改源.
此页面是X86架构, ARM架构换成 把 ubuntu 改为
ubuntu-ports 即可.:
-
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb focal main restricted universe multiverse
# deb-src focal main restricted universe multiverse
deb focal-updates main restricted universe multiverse
# deb-src focal-updates main restricted universe multiverse
deb focal-backports main restricted universe multiverse
# deb-src focal-backports main restricted universe multiverse
deb focal-security main restricted universe multiverse
# deb-src focal-security main restricted universe multiverse
# 预发布软件源,不建议启用
# deb focal-proposed main restricted universe multiverse
# deb-src focal-proposed main restricted universe multiverse
然后执行 sudo apt update; sudo apt dist-upgrade
7. 安装桌面系统.
-
sudo apt install ubuntu-desktop
-
sudo apt install xrdp
-
sudo apt install language-pack-zh-hans language-pack-zh-hans-base language-pack-gnome-zh-hans language-pack-gnome-zh-hans-base
-
sudo apt install `check-language-support -l zh`
-
sudo reboot
8.
sudo passwd root //设置root密码
sudo vim /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf //编辑此文件
greeter-show-manual-login=true
阅读(4473) | 评论(0) | 转发(0) |