How to Access Your Raspberry Pi Easily Using VNC

PIXEL

There are many ways of being able to control the programs that are running on your Raspberry Pi at all times, program it to perform different tasks ... As you surely know, the most widespread way to do all this is literally to connect the screen, keyboard and mouse to the card and from there begin to work on its configuration and then proceed to carry out the tasks that we had planned.

All this can change significantly if we use VNC (Virtual Network Computing) a very interesting system especially for those who, for some reason, cannot or do not have a keyboard, mouse and screen to connect to their Raspberry Pi or literally have it located in some rather complicated access because they have developed some type of project and they have it working, which does not mean that they want to update it with new functionality.

To connect to your Raspberry Pi by VNC, in my case I used the operating system PIXEL, mainly because I recently decided to try it and I already had it installed and especially because getting it configured correctly is a very simple and fast task. One of the advantages that PIXEL brings with it is that you already have the vncserver component pre-installed. The negative part of all this is found in that depending on your Raspberry Pi it may be that PIXEL works wonderfully, in the case of the latest version, in an acceptable way or directly it is not an option.

By following these simple steps you will be able to access your Raspberry Pi through VNC.

Assuming that we already have our Raspberry Pi running with PIXEL, turned on and connected to our local network, the first thing we must do is locate it, that is, we need know your IP address. For that we can use the application Adafruit Pi Finder that locates it in just a few minutes and offers us precisely this information. Once we have the IP address of our Raspberry Pi, we open a terminal and connect to it by SSH. By default the factory username is'pi'while the password is'r'. Once achieved we write 'vncserver'to enable the service.

Once we have executed the order 'vncserver'we will see in the terminal a line that says something similar to'raspberrypi: 3'followed by an IP address that is somewhat different than the one we already had, an example would be: 192.168.100.1. This IP address should be noted somewhere as it will serve us in later steps. Once we have gained access to all this data, the only thing we will need is to download VNC Viewer, an application that we must install on our computer. Once opened we will access with the IP that we had saved, 192.168.1.135:3 in the case of the previous example, 'pi'as username and'r'as password. If everything goes as it should, VNC Viewer will open a window where it will let us see the desktop of our card.

If you liked this way of access, you can enable vncserver permanently.

If you found it interesting and it is an option that you would like to carry out quite frequently, tell yourself that once you have VNC access to the card, you can access a terminal of the card, write 'sudo raspi-config', move to section'Advanced Options'and then access the VNC option to enable vncserver permanently. This will allow you to always have this function active and not have to access the card via SSH to enable the vncserver function every time you want to connect.


Be the first to comment

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.