Table of contents
1. VNC login
1. Download VNC
Network disk link: https://pan.baidu.com/s/1Chyi_TTg3oBxEASOo4oJyw?pwd=0c1c
Extraction code: 0c1c
2. VNC login operation
Open VNC, select file-> new connection in turn.
Enter the IP address of the Raspberry Pi and press Enter.
First double-click to open the newly created vnc connection, then click continue to enter.
Enter the name and password of the Raspberry Pi you set up to log in!
Then you can log in to the graphical desktop of the Raspberry Pi, and the result is as shown in the figure below!
2. VNC can not log in the problem and the solution!
When I used vnc to log in before, there were Desk... can't... and so on. It was said on the Internet that it was because of the resolution of vnc, but it still didn't work after I changed it. If you are lucky enough to encounter this problem, you can try the resolution. When I encounter the problem of not being able to log in to vnc again in the future, I will improve this blog! I still have a suggestion, just choose one of vnc and xrdp.
2. xrdp remote desktop login (suggestion: if VNC can enter, it is recommended not to fiddle with remote desktop, choose one of the two)
1. Open the computer's search box and enter Remote Desktop
Enter remote desktop in the search box of the computer, open it as shown in the figure below:
enter the ip address of the Raspberry Pi, and then click Connect.
Tick Don't ask again... and click Yes, as shown in the figure below.
Enter your own Raspberry Pi login and password.
2. The problem that the remote desktop cannot be logged in (I still recommend choosing one of vnc and remote desktop. If you can get in, don’t mess with vnc)
1. A blue screen appears
In the command line window (putty) of the Raspberry Pi, enter:sudo gpasswd -d pi render
#我在这提供两种方法
#第一种在putty输入下面这行代码
sudo gpasswd -d pi render
#重启树莓派
sudo reboot
#重启树莓派,如果能登录进去就ok,如果不能则输入sudo gpasswd -a pi render,在添加回来
#此时可能vnc自己关了,你可以继续按上文打开即可
#第二种
#先在putty输入下面这行代码
sudo nano /etc/X11/xrdp/xorg.conf
#接着找到这行代码Option "DRMDevice" "/dev/dri/renderD128"将其注释掉,如下图所示
#Option "DRMDevice" "/dev/dri/renderD128"
#接着写入Option "DRMDevice"
Option "DRMDevice"
#然后Ctrl+o+回车;然后Ctrl+x,即可保存退出
#重启
sudo reboot
#然后重启即可登录进去,因为各位安装的树莓派架构不一样,所以...,我是第二种方法登录进去的
Then log in to the remote desktop again and find that you can go in!