sudo apt-get install tightvncserver
tightvncserver
如果出現灰屏
vncserver :0 -geometry 1920x1080 -depth 32
如果出現
Warning: raspberrypi:0 is taken because of /tmp/.X0-lock Remove this file if there is no X server raspberrypi:0 A VNC server is already running as :0
可先delete .X0-lock
sudo rm .X0-lock
有時候把.X0-lock就已經解決了灰屏