• About
  • Advertise
  • Privacy & Policy
  • Contact
Raspberry Pi Developing
  • Home
  • Getting Started
    Getting started with Node.js and Raspberry Pi: Controlling an LED with Node.js Webserver

    Getting started with Node.js and Raspberry Pi: Controlling an LED with Node.js Webserver

    All About Batteries

    All About Batteries

    What’s The Difference Between DC, Servo & Stepper Motors?

    What’s The Difference Between DC, Servo & Stepper Motors?

    Which OS is Best for Raspberry PI ?

    Which OS is Best for Raspberry PI ?

  • Pi Projects

    Raspberry Pi UV Sensor using the VEML6075

    Raspberry Pi Nvidia Shield: Stream Games using Moonlight

    Raspberry Pi Accelerometer using the ADXL345

    Raspberry Pi Accelerometer using the ADXL345

    Raspberry Pi Humidity Sensor using the DHT22

    Raspberry Pi Humidity Sensor using the DHT22

  • How to
    Setting up Home Assistant on the Raspberry Pi

    Setting up Home Assistant on the Raspberry Pi

    How to Install PHPMyAdmin on the Raspberry Pi

    How to Install PHPMyAdmin on the Raspberry Pi

    Setup a Raspberry Pi MYSQL Database

    Setup a Raspberry Pi MYSQL Database

    How to Upgrade Raspbian Stretch to Raspbian Buster

    How to Upgrade Raspbian Stretch to Raspbian Buster

    How to Setup Raspberry Pi RecalBox

    Play Retro Games with Raspberry Pi RetroPie

    Trending Tags

    • Arduino Projects
      RS-485 Serial Communication between Raspberry Pi and Arduino Uno

      RS-485 Serial Communication between Raspberry Pi and Arduino Uno

      Installing and Testing Mosquitto MQTT Broker on Raspberry Pi for IoT Communication

      Installing and Testing Mosquitto MQTT Broker on Raspberry Pi for IoT Communication

      The 2019 Thermostat ReThink

      The 2019 Thermostat ReThink

      Tracked Arduino Robot

      Tracked Arduino Robot

    • News
      New report shows how IoT devices remain under ‘constant’ attack

      New report shows how IoT devices remain under ‘constant’ attack

      BlackBerry, Telus, L-Spark among those to launch programme for Canadian IoT startups

      BlackBerry, Telus, L-Spark among those to launch programme for Canadian IoT startups

      Raspberry Pi Comparison Table

      Raspberry Pi Kernel Updated to 4.19

      Apple Watch Series 2 Is Swimproof and Comes With Built-In GPS

      To regain advertiser trust, Facebook is tracking ads by the millisecond

      National Academy of Sciences endorses embryonic engineering

      Trending Tags

      No Result
      View All Result
      • Home
      • Getting Started
        Getting started with Node.js and Raspberry Pi: Controlling an LED with Node.js Webserver

        Getting started with Node.js and Raspberry Pi: Controlling an LED with Node.js Webserver

        All About Batteries

        All About Batteries

        What’s The Difference Between DC, Servo & Stepper Motors?

        What’s The Difference Between DC, Servo & Stepper Motors?

        Which OS is Best for Raspberry PI ?

        Which OS is Best for Raspberry PI ?

      • Pi Projects

        Raspberry Pi UV Sensor using the VEML6075

        Raspberry Pi Nvidia Shield: Stream Games using Moonlight

        Raspberry Pi Accelerometer using the ADXL345

        Raspberry Pi Accelerometer using the ADXL345

        Raspberry Pi Humidity Sensor using the DHT22

        Raspberry Pi Humidity Sensor using the DHT22

      • How to
        Setting up Home Assistant on the Raspberry Pi

        Setting up Home Assistant on the Raspberry Pi

        How to Install PHPMyAdmin on the Raspberry Pi

        How to Install PHPMyAdmin on the Raspberry Pi

        Setup a Raspberry Pi MYSQL Database

        Setup a Raspberry Pi MYSQL Database

        How to Upgrade Raspbian Stretch to Raspbian Buster

        How to Upgrade Raspbian Stretch to Raspbian Buster

        How to Setup Raspberry Pi RecalBox

        Play Retro Games with Raspberry Pi RetroPie

        Trending Tags

        • Arduino Projects
          RS-485 Serial Communication between Raspberry Pi and Arduino Uno

          RS-485 Serial Communication between Raspberry Pi and Arduino Uno

          Installing and Testing Mosquitto MQTT Broker on Raspberry Pi for IoT Communication

          Installing and Testing Mosquitto MQTT Broker on Raspberry Pi for IoT Communication

          The 2019 Thermostat ReThink

          The 2019 Thermostat ReThink

          Tracked Arduino Robot

          Tracked Arduino Robot

        • News
          New report shows how IoT devices remain under ‘constant’ attack

          New report shows how IoT devices remain under ‘constant’ attack

          BlackBerry, Telus, L-Spark among those to launch programme for Canadian IoT startups

          BlackBerry, Telus, L-Spark among those to launch programme for Canadian IoT startups

          Raspberry Pi Comparison Table

          Raspberry Pi Kernel Updated to 4.19

          Apple Watch Series 2 Is Swimproof and Comes With Built-In GPS

          To regain advertiser trust, Facebook is tracking ads by the millisecond

          National Academy of Sciences endorses embryonic engineering

          Trending Tags

          No Result
          View All Result
          Raspberry Pi Developing
          No Result
          View All Result

          Raspberry Pi VNC Server: Setup Remote Desktop for your Pi

          tibi by tibi
          April 20, 2019
          Home How to
          Share on FacebookShare on Twitter

          In last tutorial, I guided how to install Teamviewer on Raspberry Pi to remote Raspberry Pi.

          In this tutorial, I will go through the all the steps to setting up a Raspberry Pi VNC server. Once we have done this, you will be able to remote desktop to your Pi, so you’re able to control as if you were sitting there with it.

          The process of setting VNC all up is pretty easy, and at the end of it, you will be able to control the desktop of the Pi remotely.

          This software is incredibly handy if you don’t have a screen or access to the Pi itself. If you just want a barebones command line approach, then be sure to check out the tutorial on how to SSH into your Raspberry Pi. This method is how I control my Pi pretty much all the time, but it all just comes down to preference.

          It’s important to mention that Raspbian now has a VNC server package pre-installed. You can still do this tutorial if you wish otherwise go into the Raspberry Pi configuration and turn it on. Once you have turned it on, simply connect using the same steps as described in this guide.

           Equipment

          To complete this Raspberry Pi remote desktop tutorial, you will need the following pieces of equipment.

          Recommended:

           Raspberry Pi

           SD Card or Micro SD Card if you’re using a Raspberry Pi 2, 3 or B+ (8gb+ is recommended)

           Ethernet Cord or Wifi dongle

          Optional:

           Raspberry Pi Case

           USB Keyboard

           USB Mouse

           Video

          If you want to see how this is all done, then be sure to check out my video below. I go through all the steps from start to finish on getting this setup correctly in no time at all.

          If you do like the video and would love to see more, then please make sure you subscribe.

          Can’t see the video? Please support us by disabling your adblocker.

           Installing the Raspberry Pi VNC Server

          As in all of my tutorials, you will need to have Raspbian pre-installed onto your Raspberry Pi. If you haven’t already done this, then you can find out how to do it all in my guide to installing Raspbian.

          Now installing the VNC server software package onto your Raspberry Pi is actually incredibly easy and only requires entering a couple of commands.

          1. Before we get started first make sure your Pi is up to date by running the following commands:

          sudo apt-get update
          sudo apt-get upgrade

          2. Once those two commands have finished running, enter the following to install the tightvncserver.

          sudo apt-get install tightvncserver

          3. Now, set up and run the VNC server, this is pretty easy to do. Simply run the following command:

          vncserver :1

          4. You will now need to set up a password for when you go to connect to the Pi remotely via the VNC client. It is important to remember the password will be truncated to eight characters so try and choose a password that works best for you that is no longer than eight characters long.

          5. It will next ask you to verify the password, enter it again.

          6. Next, it will ask if you want a separate view only password, simply enter “n” for this.

          7. Once that is all done, the server will be up and running. The following command will need to be run every time the Pi reboots, or for some reason, the process is stopped.

          vncserver :1

          The Raspberry Pi VNC server should now be up and running correctly. If you want to have the software startup automatically at boot up then simply follow the next couple of steps, otherwise we’re ready to setup the client side of things.

           Having the VNC server start automatically (Optional)

          Having to run the command above is not ideal so you might want to have it start automatically whenever your Pi is booted up.

          The following steps are pretty straightforward and will take you through the steps of having the server startup on port 1 at boot up.

          1. First, open up the rc.local file by entering the following command.

          sudo nano /etc/rc.local

          2. Now enter the following before the exit 0 line.

          su - pi -c '/usr/bin/tightvncserver :1'

          3. Save and exit by pressing ctrl + x then y.

          4. Restart the Pi by running the following command.

          sudo reboot

          5. You can confirm that it is running by running the following command.

          vncserver:1

          6. It should say “A VNC server is already running at :1”

          7. If you need to kill the server simply enter the following command (Change 1 if you’re using a different port):

          vncserver -kill :1

          Once you’re done, you can proceed to set up the client on your other computer, tablet or whatever device you plan on using.

           Setting up the VNC client on your PC

          Installing and setting up a VNC client on your computer is incredibly easy. There are quite a few different VNC software packages out there, but in this tutorial, I am going to be using RealVNC.

          1. To begin head over to the RealVNC website and download the VNC viewer client relevant to your operating system.

          2. Once downloaded, simply open it up. (If you want server software as well you will need to download the full software package.)

          3. Enter your IP address with the port 1 in the field that says VNC server. For example, mine is, 192.168.1.108:1

          realvnc connect screen


          4. Now simply press connect.

          5. It should then give you a warning message, simply press continue on this.

          vnc security warning

          6. Then it will ask you for the password you set for it earlier. Simply enter the password that we set earlier.

          7. The VNC window should load, and you will now have remote access to your Raspberry Pi.

          This process is all you need to do to have Raspberry Pi remote desktop up and running. If you do come across any issues, I have small troubleshooting section below otherwise be sure to leave a comment.

           Troubleshooting

          • I can’t connect! – Be sure to double check the IP you entered and make sure it is the same as the Pis. Also be sure to make sure that the VNC server software is running. Most routers also dynamically give out IP’s, so it is possible the IP will change over time. To fix this setup a fixed IP or check the IP whenever you go to connect.
          • I want access outside my local network – This will open security issues, but you’re able to do this by setting up port forwarding. Remember the VNC server is running on port 1.
          • I want a different/larger sized screen on my VNC client – When you go to start the VNCserver, you can add an extra command called geometry and then the screen size width and high you want (This is in pixels). The command is:
          vncserver :1 -geometry 1440x900

          I hope that you have been able to setup your Raspberry Pi VNC server correctly and that you’re able to remove desktop to your Pi easily. If you’re still having trouble or that I have missed something, then please feel free to drop a comment below. If you’re looking for more, then be sure to check out some of my latest DIY raspberry pi projects.

          Tags: desktopraspberryremoteserversetup
          tibi

          tibi

          Next Post
          How to Backup your Raspberry Pi SD Card

          How to Backup your Raspberry Pi SD Card

          Comments 2

          1. Alex says:
            2 years ago

            Thanks for the excellent post

            Reply
          2. Rosaline says:
            2 years ago

            I spent a great deal of time to find something such as this

            Reply

          Leave a Reply Cancel reply

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

          Recommended.

          Elon Musk: Tesla Model 3 won’t come with a 100 kWh battery

          March 14, 2019
          Simple Raspberry Pi WiFi Extender

          Simple Raspberry Pi WiFi Extender

          March 14, 2019

          Trending.

          How to Setup a Raspberry Pi Nextcloud Server

          How to Setup a Raspberry Pi Nextcloud Server

          March 14, 2019
          How to Setup a Raspberry Pi NAS (Network Attached Storage)

          How to Setup a Raspberry Pi NAS (Network Attached Storage)

          April 13, 2019
          Raspberry Pi TorrentBox: Build an Always-On Torrent Machine

          Raspberry Pi TorrentBox: Build an Always-On Torrent Machine

          March 16, 2019
          Setup a Raspberry Pi MYSQL Database

          Setup a Raspberry Pi MYSQL Database

          July 28, 2019
          Raspberry Pi Humidity Sensor using the DHT22

          Raspberry Pi Humidity Sensor using the DHT22

          May 14, 2019
          Raspberry Pi Developing

          PI Guide Developing is where you can find some of the coolest Raspberry Pi projects and guides on the web. You can check them all out right here.

          Follow Us

          Categories

          • Arduino Projects
          • Getting Started
          • How to
          • News
          • Pi Projects

          Tags

          about adding Apple Watch 2 arduino beginners Best iPhone 7 deals build Buying Guides camera CES 2017 clock digital display drive email games getting guide install installing iOS 10 iPhone 7 learn linux mount mysql network Nintendo Switch phpmyadmin Playstation 4 Pro python raspberry Raspbian sense sensor server setting setup Sillicon Valley simple started storage system tutorial using

          Recent News

          Setting up Home Assistant on the Raspberry Pi

          Setting up Home Assistant on the Raspberry Pi

          March 22, 2020
          How to Install PHPMyAdmin on the Raspberry Pi

          How to Install PHPMyAdmin on the Raspberry Pi

          July 28, 2019
          • About
          • Advertise
          • Privacy & Policy
          • Contact

          © 2019 PI GUIDE - Premium PI Guide PI GUIDE.

          No Result
          View All Result
          • Home
          • Getting Started
          • How to
          • Pi Projects
          • Arduino Projects
          • News

          © 2019 PI GUIDE - Premium PI Guide PI GUIDE.