Читать книгу Raspberry Pi For Dummies - McManus Sean, Evans Jonathan, Sean McManus - Страница 42
Connecting Using VNC
ОглавлениеUsing VNC, you can control your Raspberry Pi’s desktop environment from another computer. If you register for a RealVNC account, you can access your Raspberry Pi over the public Internet. Just follow these steps:
1 Change your password.To prevent unauthorized access to your Raspberry Pi after a remote connection is enabled, start by changing your password. You can use the Raspberry Pi Configuration tool (see “Configuring Your Raspberry Pi in Raspberry Pi OS,” earlier in this chapter), or see Chapter 5 for instructions on changing the password in the command line.
2 Enable VNC on your Pi.Use the Raspberry Pi Configuration tool to enable VNC on the Interfaces tab.
3 Get your Pi’s IP address.Click the VNC icon, which appears in the upper right of your desktop. The window that opens shows you the IP address you need to connect to your Pi.
4 Install VNC Viewer.You’ll need to install VNC Viewer on the device you want to connect from. You can download it at
www.realvnc.com/en/connect/download/viewer
. Apps are available for Windows, macOS, and Linux. If you want to manage one Raspberry Pi from another, there’s a version of VNC Viewer for the Raspberry Pi, too. Apps for Android and iOS are available, but they’re quite hard to use without a physical mouse and keyboard.5 Connect from your other device.Run VNC Viewer, and you’ll be prompted to enter a VNC server address. This is the IP address displayed by your Raspberry Pi. The first time you connect, VNC Viewer warns you that it hasn’t connected to this device before. Click Continue. When you enter your username and password, a window opens that shows your Raspberry Pi screen. You can now control your Raspberry Pi remotely.
Using VNC, you can share a keyboard and mouse between your PC and your Raspberry Pi. Connect them to your PC; then use VNC to control your Raspberry Pi from your PC.