Once connected you should be able to see, and control what is displayed on the display connected to the Raspberry Pi. The :0 appended to the address tells VNC to connect to the main X11 session. In the example above, I am connecting to a Raspberry Pi that has a static IP address assigned of 192.168.1.1. It will prompt you to log in, so enter the password for your Raspberry Pi. In 'Enter a VNC Server address or search', type in the IP address you noted down in the previous step. Type 'VNC VIEWER' in the search bar and press the 'Enter' key. The image below shows a connection using Real VNV Viewer on Windows 8.1. In this guide, we are using the Mac OS to access VNC Viewer. You should now be able to connect to the Pi using your favorite VNC Viewer. Save the file and then reboot the Pi: sudo rebootĬonnecting to the Raspberry Pi with Real VNC Viewer Run the following commands to create the autostart file: cd. If you want to run x11vnc all the time, and start it when the Pi boots up, you will need to create an autostart file. You should now be able to connect to the Pi using a VNC Viewer client. This will be the password required by clients when connecting to the Pi. Run the following command to start x11vnc for the first time: x11vnc -forever -usepw -display :0īecause we have specified the -usepw switch you will be asked to enter a password. This post will show you how.įire up a terminal and run the following command: sudo apt-get install x11vnc You will want to configure x11vnc so that you can connect to the primary X11 session with VNC Viewer. If your Raspberry Pi does not have a mouse and keyboard connected, or it’s in a different room.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |