首先下载ubuntu,
地址:https://wiki.ubuntu.com/ARM/RaspberryPi版本:Raspberry Pi 3: ubuntu-16.04-preinstalled-server-armhf+raspi3.img.xz (4G image, 216M compressed)
解压文件,得到近4G镜像文件
添加ssh文本文档。登录账号及密码均为:ubuntu
修改密码
添加vnc界面远程控制:首先更新软件库并下载vnc
sudo apt-get update sudo apt-get install vnc4server
若出现错误如下:
E:could not get lock /var/lib/dpkg/lock -open
输入以下命令对正在运行的进程解锁
sudo rm /var/cache/apt/archives/locksudo rm /var/lib/dpkg/lock
在1号桌面启动vnc
vncserver :1
下载vnc的依赖项,安装gnome:
sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal
设置vnc开机启动,用nano文本编辑器编辑:
sudo nano ~/.vnc/xstartup
输入以下命令:
#!/bin/sh
export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &
gnome-terminal &
重新启动vnc桌面
vncserver -kill :1 vncserver :1