在安装好树莓派镜像之后,先不要拔掉SD卡,直接打开SD卡盘目录(一般只有40M左右),找到config.txt,直接在尾部添加
framebuffer_width=1024
framebuffer_height=600
hdmi_force_hotplug=1
hdmi_group=1
hdmi_mode=5
hdmi_ignore_edit=0xa5000080
我使用的是7寸的显示屏
安装 图形化 界面
sudo passwd root
su root
apt-get update
apt-get install -y ubuntu-desktop