Remote Raspberry Pi Desktop

Now that Java is doing its sweet thing on the Raspberry Pi, and before connecting a display to the Raspberry Pi, let's use the host machine, i.e., my Windows laptop, to display the desktop of the Raspberry Pi.

1. Get and start it with the command below, so that the Raspberry Pi desktop will take over a small part of your screen real estate:

"C:\Program Files (x86)\Xming\Xming.exe" :0 -clipboard -screen 0 700x500+125+100@1

At this point, Xming should be started. It provides an empty desktop screen into which Putty will pass the Raspberry Pi desktop.

2. Start the Raspberry Pi and make sure you can connect to it from your host machine (otherwise there's no point in using Putty in the first place, since it exists as an SSH client in this context).

3. Start up Putty. Connect to the Raspberry Pi using the IP of the Raspberry Pi (e.g., in my case). Before making the connection, go to Connection/SSH/X11 in Putty and then put a checkmark next to the "Enable X11 forwarding" checkbox.

4. Now you see the Raspberry Pi login screen in Putty and you can use pi/raspberry, by default, to login.

5. The final step is to type the magical incantation 'startlxde' in the Raspberry Pi, i.e., in Putty, and press Enter. Some garbage appears in Putty and then Xming shows you your Raspberry Pi desktop.

Indeed, the Raspberry Pi has a desktop. (I was surprised, too.) Remember that the Raspberry Pi is just like any other computer, just smaller. (And cheaper, i.e., 30 EUR instead of 700 EUR that I paid for my HP ProBook laptop.) Now that you can see your desktop, you can work on connecting an external display device, e.g., a touch screen, to it. And a mouse and a keyboard.

All the wisdom imparted above comes from here:


Hi Geertjan,
Thanks to you. It is an amazing article. I have purchased a Raspberry Pi recently. I am looking how to connect with my laptop. I will try based on your article. I will contact you if I face any issue.

Posted by Tham on July 08, 2014 at 10:19 PM PDT #

Hi Tham, sure, happy to help.

Posted by Geertjan on July 09, 2014 at 10:22 AM PDT #

Thanks a lot for this clear tutorial.

Its working perfect.


Posted by Xavier on March 06, 2015 at 06:39 AM PST #

I recently tried to view my Pi's desktop on my laptop but when I enter starlxde I get a message that says: only one lxsession can be executed at a time. What does this mean and what might be some possible solutions?

Posted by LD on July 30, 2015 at 07:51 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.


« July 2016