How-to Setup a VNC Remote Connection to a Raspberry Pi

I don’t have a Raspberry Pi board, yet I’m using one right now remotely thanks to the VNC (Virtual Network Computing) protocol.

The Raspberry Pi I use runs the latest Debian-13-04-2012 image.

Here’s how to do to access the Raspberry Pi desktop in Windows XP. These instructions could  also be followed to connect to any remote networked Linux device with minor modifications.

  1. Connect to the Raspberry Pi via SSH
  2. Install a VNC server (e.g. tightvncserver):

    # sudo apt-get install tightvncserver

  3. Run startx in the background

    # startx &

  4. Start the VNC server (it will ask a password of your choice):

    # tightvncserver

    New ‘X’ desktop is raspberrypi:1

    Starting applications specified in /home/cnxsoft/.vnc/xstartup
    Log file is /home/cnxsoft/.vnc/raspberrypi:1.log

  5. Back to your computer. Install a VNC client such as  TightVNC for Windows. You only need to select “TightVNC Viewer” during installation.
  6. Start TightVNC Viewer (In Windows XP, Start->All Programs->TightVNC->TightVNC Viewer)
  7. Enter the Raspberry Pi IP address and display number in “TightVNC Server:” field , e.g. 192.168.0.123:1, select your connection profile and click on Connect.
    Raspberry Pi Remote Desktop Connection
  8. It should now ask for the password you chose in step 4 and you should see LXDE desktop as shown below. The color depth of the display is 8-bit, since I chose “Low-bandwidth connection” connection profile because I access the board via Internet and to make the system more responsive.

Raspberry Pi TightVNC Server and Viewer Connection

Share this:

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

Radxa Orion O6 Armv9 mini-ITX motherboard
Subscribe
Notify of
guest
The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Please read and accept our website Terms and Privacy Policy to post a comment.
5 Comments
oldest
newest
Boardcon CM3588 Rockchip RK3588 System-on-Module designed for AI and IoT applications