---
title: "Take Control Remotely with Raspberry Pi VNC"
description: "Learn how to remotely take control of your Raspberry Pi VNC from anywhere in this tutorial by ATA Learning, and make management far easier!"
canonical: "https://adamtheautomator.com/raspberry-pi-vnc/"
---

# Take Control Remotely with Raspberry Pi VNC

> Learn how to remotely take control of your Raspberry Pi VNC from anywhere in this tutorial by ATA Learning, and make management far easier!

Source: https://adamtheautomator.com/raspberry-pi-vnc/

---

ATA Learning

Tap to hide

[

ATA Learning

](/)

*   [Home](/)
*   [Tutorials](/tutorials/)
*   [Instructors](/author/)
*   [Advertising](/advertising/)
*   [Recommended Resources](/resources/)
*   [About Adam](/about-adam/)

Search for:  

*   [](https://twitter.com/adbertram)
*   [](https://github.com/Adam-the-Automator)
*   [](https://www.linkedin.com/company/adam-the-automator-llc)
*   [](/feed/)

![Take Control Remotely with Raspberry Pi VNC](https://adamtheautomator.com/wp-content/uploads/2023/04/raspberry-pi-vnc.jpg)

# Take Control Remotely with Raspberry Pi VNC

[![](https://secure.gravatar.com/avatar/2788bb1a3f735603f81eca51d68daec56a9d97e805a10268fb2c20afcc76b81b?s=192&d=mm&r=g)Nicholas Xuan Nguyen](https://adamtheautomator.com/author/nicholas-xuan-nguyen/)17 April 20234 min. read

Categories: [IT Ops](/category/it-ops/)

Tags:[Raspberry Pi](/tag/raspberry-pi/)

Table of Contents

*   [Prerequisites](#prerequisites)
*   [Installing Raspberry Pi VNC](#installing-raspberry-pi-vnc)
*   [Enabling the VNC Server](#enabling-the-vnc-server)
*   [Connecting to the Raspberry Pi Remotely](#connecting-to-the-raspberry-pi-remotely)
*   [Conclusion](#conclusion)

If you are seeking an effortless way to remotely control your Raspberry Pi’s GUI, [Virtual Network Computing (VNC)](https://en.wikipedia.org/wiki/Virtual_Network_Computing) is the ideal solution.

With Raspberry Pi VNC, you can remotely access your device’s GUI, no matter where you are. And in this tutorial, you will walk through the steps of setting up and using VNC on your Raspberry Pi.

Read on and take complete control of your Raspberry Pi from anywhere!

## Prerequisites

This tutorial houses hands-on demonstrations. To follow along, be sure you have the following:

*   A Raspberry Pi – This tutorial uses a Raspberry Pi model 4B with Raspbian Bullseye installed.
*   A host machine with the [VNC viewer client installed](https://www.realvnc.com/en/connect/download/viewer/) to access the Raspberry Pi remotely – This tutorial uses Windows 10.
*   A stable internet connection.

## Installing Raspberry Pi VNC

SSH is a valuable tool when accessing the command line interface of the Raspberry Pi remotely and securely without needing a GUI. But many tasks require a GUI, such as running applications or remotely controlling the desktop of your Raspberry Pi. In such cases, VNC comes in handy.

Related:[Learn How to Remotely Access Raspberry PI Devices With SSH](https://adamtheautomator.com/how-to-remotely-access-raspberry-pi/)

With VNC, you can remotely access the Raspberry Pi’s desktop environment and control it as if sitting in front of it. But before using VNC, you must install the VNC Server on your Raspberry Pi.

Open a terminal, and run the following [`apt update`](https://linuxize.com/post/how-to-use-apt-command/#updating-package-index-apt-update) command to update the list of available packages. Doing so ensures you have the latest version of the VNC Server.

```bash
sudo apt update
```

Related:[Learning Ubuntu Apt Get Through Examples](https://adamtheautomator.com/ubuntu-apt-get/)

![raspberry pi vnc - Updating the list of available packages](https://adamtheautomator.com/wp-content/uploads/2023/04/image-56.png)

Updating the list of available packages

Now, run the following [`apt install`](https://linuxize.com/post/how-to-use-apt-command/#installing-packages-apt-install) command to install the VNC Server package, specifically two packages as follows:

| Package | Details |
| --- | --- |
| `realvnc-vnc-server` | The package for the actual VNC Server software that runs on the Raspberry Pi |
| `realvnc-vnc-viewer` | A separate program that allows you to connect to and control the Pi’s desktop environment from another device. |

```powershell
sudo apt install realvnc-vnc-server realvnc-vnc-viewer
```

![Installing the VNC Server package](https://adamtheautomator.com/wp-content/uploads/2023/04/image-57.png)

Installing the VNC Server package

Related:[How To Provision an Ubuntu VNC Server](https://adamtheautomator.com/ubuntu-vnc-server/)

## Enabling the VNC Server

Installing the [VNC Server](https://adamtheautomator.com/ubuntu-vnc-server/) does not automatically run it. Post installation, you must enable the VNC server on your Raspberry Pi. Enabling the VNC Server starts the VNC service, which allows incoming connections on Raspberry Pi’s network port (5900).

To enable the VNC server, follow these steps:

1\. Run the below `raspi-config` command to open the Raspberry Pi configuration tool.

This tool allows you to configure various system settings, such as:

*   Enabling/disabling interfaces.
*   Setting up networking options.
*   Changing the Raspberry Pi hostname, and much more.

```powershell
sudo raspi-config
```

Navigate to **Interfacing Options** and press Enter to access a list of interface options.

![Accessing the list of interface options](https://adamtheautomator.com/wp-content/uploads/2023/04/image-58.png)

Accessing the list of interface options

2\. Next, select VNC from the list below and press Enter to enable your VNC Server.

![Enabling the VNC Server](https://adamtheautomator.com/wp-content/uploads/2023/04/image-59.png)

Enabling the VNC Server

3\. When prompted, select **<Yes>** and press Enter to confirm enabling your VNC Server.

![Confirming enabling the VNC Server](https://adamtheautomator.com/wp-content/uploads/2023/04/image-60.png)

Confirming enabling the VNC Server

4\. Once the VNC Server is enabled, press Enter to continue.

![Confirming the VNC Server is enabled](https://adamtheautomator.com/wp-content/uploads/2023/04/image-61.png)

Confirming the VNC Server is enabled

5\. Now, press Tab to highlight the **<Finish>** button and **Enter** to exit the configuration tool.

![Exiting the configuration tool](https://adamtheautomator.com/wp-content/uploads/2023/04/image-62.png)

Exiting the configuration tool

6\. Next, run the below command, which does not produce output, but restarts (`reboot`) your Raspberry Pi to apply the changes.

```powershell
sudo reboot
```

7\. Once your Raspberry Pi boots up, run the below `systemctl` command to check the status of the VNC service.

```powershell
sudo systemctl status vncserver-x11-serviced.service
```

Related:[Correct Way of Using Ubuntu systemctl to Control Systemd](https://adamtheautomator.com/ubuntu-systemctl/)

If all goes well, you will see an output similar to the one below that shows the VNC server is **active (running)**.

![Checking the VNC service’s status](https://adamtheautomator.com/wp-content/uploads/2023/04/image-63.png)

Checking the VNC service’s status

8\. Lastly, run the `hostname` command below to get all IP addresses (`-I`) associated with your Raspberry Pi.

```powershell
hostname -I
```

Note down your Raspberry Pi’s IP address, as shown below. You will need this IP address to connect to your Raspberry Pi later.

![Finding the Raspberry Pi’s IP address](https://adamtheautomator.com/wp-content/uploads/2023/04/image-64.png)

Finding the Raspberry Pi’s IP address

## Connecting to the Raspberry Pi Remotely

With the VNC Server running, you can now remotely connect to your Raspberry Pi. How? You will use the VNC Viewer from your host machine.

To connect to your Raspberry Pi remotely:

1\. Open the VNC Viewer program on your host machine.

2\. Enter your Raspberry Pi’s IP address, as shown below, and press Enter to establish a remote desktop connection to your Raspberry Pi.

![Connecting to the Raspberry Pi remotely](https://adamtheautomator.com/wp-content/uploads/2023/04/image-65.png)

Connecting to the Raspberry Pi remotely

3\. When prompted, click **Continue** to authorize the remote connection to your Raspberry Pi.

This warning message only appears when you connect to your Raspberry Pi remotely using VNC for the first time.

![Authorizing the remote connection](https://adamtheautomator.com/wp-content/uploads/2023/04/image-66.png)

Authorizing the remote connection

4\. Finally, enter the root user and password of your Raspberry Pi and click **OK** to log in.

In most cases, the default username is **pi,** and the password is the one you set during the initial setup of your Raspberry Pi (not the one above).

You need to provide the username and password of the administrative account on your Raspberry Pi to gain access to perform administrative tasks on the Raspberry Pi.

![Logging in to the Raspberry Pi ](https://adamtheautomator.com/wp-content/uploads/2023/04/image-67.png)

Logging in to the Raspberry Pi

If everything is set up correctly, you will see the Raspberry Pi’s desktop environment in your VNC Viewer window, as shown below.

Congratulations! You now have complete control of your Raspberry Pi’s desktop environment remotely. Feel free to securely access your files, install packages, and perform tasks to your heart’s content.

![Accessing the Raspberry Pi remotely](https://adamtheautomator.com/wp-content/uploads/2023/04/image-68.png)

Accessing the Raspberry Pi remotely

## Conclusion

Whether you are a developer, hobbyist, or educator, remote access via Raspberry Pi VNC can be a valuable tool for various applications. And in this tutorial, you learned how to set up VNC Server on your Raspberry Pi and establish a remote connection via the VNC Viewer.

With a fully functional VNC Server, securely accessing your Raspberry Pi remotely only takes a few clicks. Take advantage of Raspberry Pi’s powerful computing capabilities from anywhere.

Now, why not learn how to [stream a PiCamera video stream](https://www.pazzland.com/projects/pi/streaming-from-a-raspberry-pi-camera-to-your-browser/) as a background in your Raspberry Pi’s VNC Server? Or [create a motion detector](https://opensource.com/article/20/11/motion-detection-raspberry-pi) using the same VNC-enabled Raspberry Pi?

Share this article

[Share on X](https://twitter.com/intent/tweet?url=https%3A%2F%2Fadamtheautomator.com%2Fraspberry-pi-vnc%2F&text=Take%20Control%20Remotely%20with%20Raspberry%20Pi%20VNC)[Share on Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fadamtheautomator.com%2Fraspberry-pi-vnc%2F)[Share on LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fadamtheautomator.com%2Fraspberry-pi-vnc%2F)

## Related Posts

![](https://adamtheautomator.com/wp-content/uploads/2023/09/hoobs.jpg)

### [HOOBS & Raspberry Pi: The Perfect DIY Smart Home Combo](/hoobs/)

Learn how HOOBS works in concert with Raspberry PI to create a DIY smart home combo that works to extend what you can automate!

![](https://adamtheautomator.com/wp-content/uploads/2023/08/java-on-raspberry-pi.jpg)

### [Learn How to Install Java on Raspberry Pi](/java-on-raspberry-pi/)

Learn how to install and get started with the ins and outs of Java on Raspberry Pi in this ATA Learning tutorial!

![](https://adamtheautomator.com/wp-content/uploads/2023/06/remote-desktop-raspberry-pi.jpg)

### [How to Guide to Remote Desktop Raspberry Pi with AnyDesk](/remote-desktop-raspberry-pi/)

Learn how to connect through the remote desktop Raspberry Pi via the AnyDesk application in this ATA Learning tutorial!

## Categories

*   [IT Ops](/category/it-ops/)
*   [Cloud](/category/cloud/)
*   [DevOps](/category/devops/)
*   [Home Ops](/category/home-ops/)
*   [Information Security](/category/infosec/)
*   [Software Development](/category/software-development/)

## Site

*   [Home](/)
*   [Tutorials](/tutorials/)
*   [Instructors](/author/)
*   [Advertising](/advertising/)
*   [Recommended Resources](/resources/)
*   [About Adam](/about-adam/)

Copyright 2026© ATA Learning | [Privacy Policy](/privacy/)
