Skip to content
This repository has been archived by the owner on Apr 11, 2018. It is now read-only.

RealVNC/raspi-preview

Repository files navigation

Stable version now available

Thank you to everyone who tried the VNC for Raspberry Pi alpha version!

There is now a stable version of RealVNC Server for Raspberry Pi available on our Website, which incoroprates the improvements that were made in this alpha version, so we highly recommend that you upgrade to this.

The RealVNC Server and Viewer are now also included by default in the Raspbian Jessie with PIXEL distribution (2016-09-23 onwards), availble from the Raspberry Pi Foundation's download page.


VNC for Raspberry Pi alpha

Minecraft Pi animated GIF

Click the above image for more video of Minecraft over VNC.

Thanks for your help testing the VNC for Raspberry Pi alpha! This build contains a whole host of improvements over our 5.2 release, including Minecraft support, the ability to render the Pi's text console, and improved performance on all Pi models.

Download alpha 1 now from GitHub Releases

The alpha is automatically licensed with a Personal license when you install it on your Raspberry Pi (but feel free to apply an Enterprise license key of your own for additional features). The alpha license will expire at the end of Jan 2017.

As this is an alpha test, you may notice some bugs. A list of known issues and instructions for leaving feedback are included at the end of this Readme.

Don't forget you'll need VNC Viewer on the device you want to control your Pi from.

Note: You will need to optimize VNC Viewer to get the best performance from this alpha.

Release notes

  • NEW: Minecraft can now be played on the Raspberry Pi over VNC (Service Mode only).
  • NEW: The Raspberry Pi's text console can now be accessed over VNC (Service Mode only).
  • NEW: Any program which uses a directly rendered overlay (e.g. Kodi, the Pi camera's preview window, omxplayer etc.) can now be used on the Pi over VNC (Service Mode only).
  • NEW: VNC Server now uses hardware acceleration on all Pi models, ensuring a faster, smoother experience.

Prerequisites

  • Ensure your Pi is running Raspbian.
  • Ensure you are using your Pi's recommended power supply.
  • For optimal performance, increase your Pi's GPU allocation to at least 128mb (this is 64mb by default). You can do this by running sudo raspi-config in Terminal and selecting Advanced options > Memory Split.

Installation

Download the VNC Server package from GitHub Releases, and install using dpkg or your favourite package manager.

e.g. from the command line:

curl -OL https://github.com/RealVNC/raspi-preview/releases/download/5.3.1.18206/VNC-Server-5.3.1-raspi-alpha1.deb
sudo dpkg -i VNC-Server-5.3.1-raspi-alpha1.deb

You can then start VNC Server at the command line.

You can use the latest VNC Viewer for your platform, although you may need to optimize the configuration.

Starting VNC Server

You can run VNC Server in two modes: Service Mode and Virtual Mode. You can even run both at the same time. For more information, see here.

Note: Only Service Mode will be able to capture Minecraft and similar applications.

Raspbian "Jessie"

To run VNC Server in Service Mode:

sudo systemctl start vncserver-x11-serviced.service

To have VNC Server start automatically when you power the Pi on:

sudo systemctl enable vncserver-x11-serviced.service

Raspbian "Wheezy"

To run VNC Server in Service Mode:

sudo /etc/init.d/vncserver-x11-serviced start

To have VNC Server start automatically when you power the Pi on:

sudo update-rc.d vncserver-x11-serviced defaults

Additional instructions, including how to connect a VNC Viewer device and how to stop VNC Server, are available here.

Optimizing VNC Viewer for the Raspberry Pi

To make the most of VNC Server's hardware acceleration, configure VNC Viewer in the following way:

  1. Run VNC Viewer and connect to the Raspberry Pi.
  2. On the VNC Viewer toolbar, click the Options button.
  3. Click Advanced..., then the Expert tab.
  4. Set PreferredEncoding to JPEG, AutoSelect to False, and ColorLevel to Full.

Playing Minecraft

To play Minecraft over VNC:

  1. Run VNC Server in Service Mode on your Pi and connect to it with VNC Viewer.
  2. On your VNC Viewer device, press the F8 key and ensure Relative Pointer Motion is checked.
  3. Start and play Minecraft, as if you were sitting in front of the Pi.
  4. When you finish playing, press F8 and uncheck Relative Pointer Motion.

Minecraft VNC

Running Kodi

To use Kodi over VNC:

  1. Run VNC Server in Service mode on the Pi and connect to it with VNC Viewer.
  2. On your VNC Viewer device, press the F8 key and ensure Relative Pointer Motion is checked.
  3. Press Ctrl Alt F2 to access the Pi's console.
  4. Run kodi.
  5. Use Kodi, as if you were sitting in front of the Pi.
  6. When you finish using Kodi, exit in the usual way. Then press F8 and uncheck Relative Pointer Motion.

KodiVNC

Known issues

  • Kodi only accepts keyboard input over VNC when it is started by running kodi at the Raspberry Pi's console.
  • Connecting to a headless Pi may result in VNC Viewer's Options dialog being cut off. Increase the Pi's default resolution to fix.

For an up-to-date list of known issues, please click here.

Leaving feedback

We'd love to hear your thoughts! If you have any feedback, or if you've spotted a bug, please let us know through GitHub's issue reports page. You can also tweet us @RealVNC or email us at raspi@realvnc.com.

Thanks for your help.

About

Preview version of VNC Server optimized for the Raspberry Pi

Resources

Stars

Watchers

Forks

Packages

No packages published