Skip to main content
Commonmark migration
Source Link

Using Cygwin/X

If you're not tied to Xming, you can instead use Cygwin/X for running an X server in Windows.

Preparing the Raspberry Pi

Try to establish a regular SSH connection from Windows to the Raspberry Pi using PowerShell:

Log in to Raspberry Pi on Windows with PowerShell and SSH

Given that Raspbian Buster includes X11Forwarding yes in /etc/ssh/sshd_config, your Raspberry Pi should also be able to forward the visual output of X11 applications to an X server on Windows.

The next step shows how to install that X server.

Install Cygwin/X on Windows

Cygwin/X provides an X server for Windows that displays GUI applications running on the Raspberry Pi.

  1. Download and run setup-x86_64.exe from Cygwin's website.

  2. For Cygwin's "Local Package Directory" you can use C:\Users\me\AppData\Roaming\Cygwin.

  3. Choose a server near you for downloading packages.

  4. Set "View" to "Full" and search for xinit.

  5. In the "New" column, use the drop-down menu to change the value from "Skip" to xinit's latest version:

Install package xinit with Cygwin

  1. Install package openssh the same way.

Connect to Raspberry Pi from Windows

  1. Start the X server using Windows' start menu: Cygwin-X → XWin Server. This won't open any windows, but you should see two new icons in your system tray:

XWin server icons in system tray

  1. Start the Cygwin terminal: Cygwin → Cygwin64 Terminal

  2. Set the DISPLAY environment variable to where the X server on Windows runs:

    export DISPLAY=:0.0

  3. Connect to your Raspberry Pi with X11 forwarding:

    ssh -Y pi@raspberrypi

export DISPLAY=:0.0

  1. Connect to your Raspberry Pi with X11 forwarding:

ssh -Y pi@raspberrypi

Login with Cygwin Terminal

Inside the SSH session, you can now start an X application on the Raspberry Pi like Thonny:

Thonny forwarded to Windows

Alternatively, as user1297 mentioned in the question's comments, you can run x-session-manager to emulate the experience you'd get when connecting to the Raspberry Pi via HDMI on an external monitor:

Rasbpian desktop forwared to Windows

If you want to start an application directly without first typing its name in the shell, use this:

ssh -Y pi@raspberrypi x-session-manager 

On macOS

XQuartz provides an X server for macOS.

Install XQuartz, log out and back in (to make the new value of DISPLAY effective), then launch applications with SSH from Bash:

ssh -Y pi@raspberrypi thonny 

Thonny inside macOS using XQuartz

Using Cygwin/X

If you're not tied to Xming, you can instead use Cygwin/X for running an X server in Windows.

Preparing the Raspberry Pi

Try to establish a regular SSH connection from Windows to the Raspberry Pi using PowerShell:

Log in to Raspberry Pi on Windows with PowerShell and SSH

Given that Raspbian Buster includes X11Forwarding yes in /etc/ssh/sshd_config, your Raspberry Pi should also be able to forward the visual output of X11 applications to an X server on Windows.

The next step shows how to install that X server.

Install Cygwin/X on Windows

Cygwin/X provides an X server for Windows that displays GUI applications running on the Raspberry Pi.

  1. Download and run setup-x86_64.exe from Cygwin's website.

  2. For Cygwin's "Local Package Directory" you can use C:\Users\me\AppData\Roaming\Cygwin.

  3. Choose a server near you for downloading packages.

  4. Set "View" to "Full" and search for xinit.

  5. In the "New" column, use the drop-down menu to change the value from "Skip" to xinit's latest version:

Install package xinit with Cygwin

  1. Install package openssh the same way.

Connect to Raspberry Pi from Windows

  1. Start the X server using Windows' start menu: Cygwin-X → XWin Server. This won't open any windows, but you should see two new icons in your system tray:

XWin server icons in system tray

  1. Start the Cygwin terminal: Cygwin → Cygwin64 Terminal

  2. Set the DISPLAY environment variable to where the X server on Windows runs:

export DISPLAY=:0.0

  1. Connect to your Raspberry Pi with X11 forwarding:

ssh -Y pi@raspberrypi

Login with Cygwin Terminal

Inside the SSH session, you can now start an X application on the Raspberry Pi like Thonny:

Thonny forwarded to Windows

Alternatively, as user1297 mentioned in the question's comments, you can run x-session-manager to emulate the experience you'd get when connecting to the Raspberry Pi via HDMI on an external monitor:

Rasbpian desktop forwared to Windows

If you want to start an application directly without first typing its name in the shell, use this:

ssh -Y pi@raspberrypi x-session-manager 

On macOS

XQuartz provides an X server for macOS.

Install XQuartz, log out and back in (to make the new value of DISPLAY effective), then launch applications with SSH from Bash:

ssh -Y pi@raspberrypi thonny 

Thonny inside macOS using XQuartz

Using Cygwin/X

If you're not tied to Xming, you can instead use Cygwin/X for running an X server in Windows.

Preparing the Raspberry Pi

Try to establish a regular SSH connection from Windows to the Raspberry Pi using PowerShell:

Log in to Raspberry Pi on Windows with PowerShell and SSH

Given that Raspbian Buster includes X11Forwarding yes in /etc/ssh/sshd_config, your Raspberry Pi should also be able to forward the visual output of X11 applications to an X server on Windows.

The next step shows how to install that X server.

Install Cygwin/X on Windows

Cygwin/X provides an X server for Windows that displays GUI applications running on the Raspberry Pi.

  1. Download and run setup-x86_64.exe from Cygwin's website.

  2. For Cygwin's "Local Package Directory" you can use C:\Users\me\AppData\Roaming\Cygwin.

  3. Choose a server near you for downloading packages.

  4. Set "View" to "Full" and search for xinit.

  5. In the "New" column, use the drop-down menu to change the value from "Skip" to xinit's latest version:

Install package xinit with Cygwin

  1. Install package openssh the same way.

Connect to Raspberry Pi from Windows

  1. Start the X server using Windows' start menu: Cygwin-X → XWin Server. This won't open any windows, but you should see two new icons in your system tray:

XWin server icons in system tray

  1. Start the Cygwin terminal: Cygwin → Cygwin64 Terminal

  2. Set the DISPLAY environment variable to where the X server on Windows runs:

    export DISPLAY=:0.0

  3. Connect to your Raspberry Pi with X11 forwarding:

    ssh -Y pi@raspberrypi

Login with Cygwin Terminal

Inside the SSH session, you can now start an X application on the Raspberry Pi like Thonny:

Thonny forwarded to Windows

Alternatively, as user1297 mentioned in the question's comments, you can run x-session-manager to emulate the experience you'd get when connecting to the Raspberry Pi via HDMI on an external monitor:

Rasbpian desktop forwared to Windows

If you want to start an application directly without first typing its name in the shell, use this:

ssh -Y pi@raspberrypi x-session-manager 

On macOS

XQuartz provides an X server for macOS.

Install XQuartz, log out and back in (to make the new value of DISPLAY effective), then launch applications with SSH from Bash:

ssh -Y pi@raspberrypi thonny 

Thonny inside macOS using XQuartz

wording
Source Link

Using Cygwin/X

If you're not tied to Xming, you can instead use Cygwin/X for running an X server in Windows.

Preparing the Raspberry Pi

Try to establish a regular SSH connection from Windows to the Raspberry Pi using PowerShell:

Log in to Raspberry Pi on Windows with PowerShell and SSH

Given that Raspbian Buster includes X11Forwarding yes in /etc/ssh/sshd_config, your Raspberry Pi should also be able to forward the visual output of X11 applications to an X server on Windows.

The next step shows how to install that X server.

Install Cygwin/X on Windows

Cygwin/X provides an X server for Windows that displays GUI applications running on the Raspberry Pi.

  1. Download and run setup-x86_64.exe from Cygwin's website.

  2. For Cygwin's "Local Package Directory" you can use C:\Users\me\AppData\Roaming\Cygwin.

  3. Choose a server near you for downloading packages.

  4. Set "View" to "Full" and search for xinit.

  5. In the "New" column, use the drop-down menu to change the value from "Skip" to xinit's latest version:

Install package xinit with Cygwin

  1. Install package openssh the same way.

Connect to Raspberry Pi from Windows

  1. Start the X server that you just installed using Windows' start menu: Cygwin-X → XWin Server. This won't open any windows, but you should see two new icons in your system tray:

XWin server icons in system tray

  1. Start the Cygwin terminal: Cygwin → Cygwin64 Terminal

  2. Set the DISPLAY environment variable to where the X server on Windows runs:

export DISPLAY=:0.0

  1. Connect to your Raspberry Pi with X11 forwarding:

ssh -Y pi@raspberrypi

Login with Cygwin Terminal

Inside the SSH session, you can now start an X application on the Raspberry Pi like Thonny:

Thonny forwarded to Windows

Alternatively, as user1297 mentioned in the question's comments, you can run x-session-manager to emulate the experience you'd get when connecting to the Raspberry Pi via HDMI on an external monitor:

Rasbpian desktop forwared to Windows

If you want to start an application directly without first typing its name in the shell, use this:

ssh -Y pi@raspberrypi x-session-manager 

On macOS

XQuartz provides an X server for macOS.

Install XQuartz, log out and back in (to make the new value of DISPLAY effective), then startlaunch applications with SSH from Bash:

ssh -Y pi@raspberrypi thonny 

Thonny inside macOS using XQuartz

Using Cygwin/X

If you're not tied to Xming, you can instead use Cygwin/X for running an X server in Windows.

Preparing the Raspberry Pi

Try to establish a regular SSH connection from Windows to the Raspberry Pi using PowerShell:

Log in to Raspberry Pi on Windows with PowerShell and SSH

Given that Raspbian Buster includes X11Forwarding yes in /etc/ssh/sshd_config, your Raspberry Pi should also be able to forward the visual output of X11 applications to an X server on Windows.

The next step shows how to install that X server.

Install Cygwin/X on Windows

Cygwin/X provides an X server for Windows that displays GUI applications running on the Raspberry Pi.

  1. Download and run setup-x86_64.exe from Cygwin's website.

  2. For Cygwin's "Local Package Directory" you can use C:\Users\me\AppData\Roaming\Cygwin.

  3. Choose a server near you for downloading packages.

  4. Set "View" to "Full" and search for xinit.

  5. In the "New" column, use the drop-down menu to change the value from "Skip" to xinit's latest version:

Install package xinit with Cygwin

  1. Install package openssh the same way.

Connect to Raspberry Pi from Windows

  1. Start the X server that you just installed using Windows' start menu: Cygwin-X → XWin Server. This won't open any windows, but you should see two new icons in your system tray:

XWin server icons in system tray

  1. Start the Cygwin terminal: Cygwin → Cygwin64 Terminal

  2. Set the DISPLAY environment variable to where the X server on Windows runs:

export DISPLAY=:0.0

  1. Connect to your Raspberry Pi with X11 forwarding:

ssh -Y pi@raspberrypi

Login with Cygwin Terminal

Inside the SSH session, you can now start an X application on the Raspberry Pi like Thonny:

Thonny forwarded to Windows

Alternatively, as user1297 mentioned in the question's comments, you can run x-session-manager to emulate the experience you'd get when connecting to the Raspberry Pi via HDMI on an external monitor:

Rasbpian desktop forwared to Windows

If you want to start an application directly without first typing its name in the shell, use this:

ssh -Y pi@raspberrypi x-session-manager 

On macOS

XQuartz provides an X server for macOS.

Install XQuartz, log out and back in (to make the new value of DISPLAY effective), then start applications with SSH from Bash:

ssh -Y pi@raspberrypi thonny 

Thonny inside macOS using XQuartz

Using Cygwin/X

If you're not tied to Xming, you can instead use Cygwin/X for running an X server in Windows.

Preparing the Raspberry Pi

Try to establish a regular SSH connection from Windows to the Raspberry Pi using PowerShell:

Log in to Raspberry Pi on Windows with PowerShell and SSH

Given that Raspbian Buster includes X11Forwarding yes in /etc/ssh/sshd_config, your Raspberry Pi should also be able to forward the visual output of X11 applications to an X server on Windows.

The next step shows how to install that X server.

Install Cygwin/X on Windows

Cygwin/X provides an X server for Windows that displays GUI applications running on the Raspberry Pi.

  1. Download and run setup-x86_64.exe from Cygwin's website.

  2. For Cygwin's "Local Package Directory" you can use C:\Users\me\AppData\Roaming\Cygwin.

  3. Choose a server near you for downloading packages.

  4. Set "View" to "Full" and search for xinit.

  5. In the "New" column, use the drop-down menu to change the value from "Skip" to xinit's latest version:

Install package xinit with Cygwin

  1. Install package openssh the same way.

Connect to Raspberry Pi from Windows

  1. Start the X server using Windows' start menu: Cygwin-X → XWin Server. This won't open any windows, but you should see two new icons in your system tray:

XWin server icons in system tray

  1. Start the Cygwin terminal: Cygwin → Cygwin64 Terminal

  2. Set the DISPLAY environment variable to where the X server on Windows runs:

export DISPLAY=:0.0

  1. Connect to your Raspberry Pi with X11 forwarding:

ssh -Y pi@raspberrypi

Login with Cygwin Terminal

Inside the SSH session, you can now start an X application on the Raspberry Pi like Thonny:

Thonny forwarded to Windows

Alternatively, as user1297 mentioned in the question's comments, you can run x-session-manager to emulate the experience you'd get when connecting to the Raspberry Pi via HDMI on an external monitor:

Rasbpian desktop forwared to Windows

If you want to start an application directly without first typing its name in the shell, use this:

ssh -Y pi@raspberrypi x-session-manager 

On macOS

XQuartz provides an X server for macOS.

Install XQuartz, log out and back in (to make the new value of DISPLAY effective), then launch applications with SSH from Bash:

ssh -Y pi@raspberrypi thonny 

Thonny inside macOS using XQuartz

Add instructions on how to show GUI applications on macOS
Source Link

Using Cygwin/X

If you're not tied to Xming, you can instead use Cygwin/X for running an X server in Windows.

Preparing the Raspberry Pi

Try to establish a regular SSH connection from Windows to the Raspberry Pi using PowerShell:

Log in to Raspberry Pi on Windows with PowerShell and SSH

Given that Raspbian Buster includes X11Forwarding yes in /etc/ssh/sshd_config, your Raspberry Pi should also be able to forward the visual output of X11 applications to an X server on Windows.

The next step shows how to install that X server.

Install Cygwin/X on Windows

Cygwin/X provides an X server for Windows that displays GUI applications running on the Raspberry Pi.

  1. Download and run setup-x86_64.exe from Cygwin's website.

  2. For Cygwin's "Local Package Directory" you can use C:\Users\me\AppData\Roaming\Cygwin.

  3. Choose a server near you for downloading packages.

  4. Set "View" to "Full" and search for xinit.

  5. In the "New" column, use the dropdowndrop-down menu to change the value from "Skip" to xinit's latest version:

Install package xinit with Cygwin

  1. Do the same forInstall package openssh the same way.

Connect to Raspberry Pi from Windows

  1. Start the X server that you just installed using Windows' start menu: Cygwin-X → XWin Server. This won't open any windows, but you should see two new icons in your system tray:

XWin server icons in system tray

  1. Start the Cygwin terminal: Cygwin → Cygwin64 Terminal

  2. Set the DISPLAY environment variable to where the X server on Windows runs:

export DISPLAY=:0.0

  1. Connect to your Raspberry Pi with X11 forwarding:

ssh -Y pi@raspberrypi

Login with Cygwin Terminal

Inside the SSH session, you can now start an X application on the Raspberry Pi like Thonny:

Thonny forwarded to Windows

Alternatively, as user1297 mentioned in the question's comments, you can run x-session-manager to emulate the experience you'd get when connecting to the Raspberry Pi via HDMI on an external monitor:

Rasbpian desktop forwared to Windows

If you want to start an application directly without first typing its name in the shell, use this:

ssh -Y pi@raspberrypi x-session-manager 

On macOS

XQuartz provides an X server for macOS.

Install XQuartz, log out and back in (to make the new value of DISPLAY effective), then start applications with SSH from Bash:

ssh -Y pi@raspberrypi thonny 

Thonny inside macOS using XQuartz

Using Cygwin/X

If you're not tied to Xming, you can instead use Cygwin/X for running an X server in Windows.

Preparing the Raspberry Pi

Try to establish a regular SSH connection from Windows to the Raspberry Pi using PowerShell:

Log in to Raspberry Pi on Windows with PowerShell and SSH

Given that Raspbian Buster includes X11Forwarding yes in /etc/ssh/sshd_config, your Raspberry Pi should also be able to forward the visual output of X11 applications to an X server on Windows.

The next step shows how to install that X server.

Install Cygwin/X on Windows

Cygwin/X provides an X server for Windows that displays GUI applications running on the Raspberry Pi.

  1. Download and run setup-x86_64.exe from Cygwin's website.

  2. For Cygwin's "Local Package Directory" you can use C:\Users\me\AppData\Roaming\Cygwin.

  3. Choose a server near you for downloading packages.

  4. Set "View" to "Full" and search for xinit.

  5. In the "New" column, use the dropdown menu to change the value from "Skip" to xinit's latest version:

Install package xinit with Cygwin

  1. Do the same for package openssh.

Connect to Raspberry Pi from Windows

  1. Start the X server that you just installed using Windows' start menu: Cygwin-X → XWin Server. This won't open any windows, but you should see two new icons in your system tray:

XWin server icons in system tray

  1. Start the Cygwin terminal: Cygwin → Cygwin64 Terminal

  2. Set the DISPLAY environment variable to where the X server on Windows runs:

export DISPLAY=:0.0

  1. Connect to your Raspberry Pi with X11 forwarding:

ssh -Y pi@raspberrypi

Login with Cygwin Terminal

Inside the SSH session, you can now start an X application on the Raspberry Pi like Thonny:

Thonny forwarded to Windows

Alternatively, as user1297 mentioned in the question's comments, you can run x-session-manager to emulate the experience you'd get when connecting to the Raspberry Pi via HDMI on an external monitor:

Rasbpian desktop forwared to Windows

If you want to start an application directly without first typing its name in the shell, use this:

ssh -Y pi@raspberrypi thonny 

Using Cygwin/X

If you're not tied to Xming, you can instead use Cygwin/X for running an X server in Windows.

Preparing the Raspberry Pi

Try to establish a regular SSH connection from Windows to the Raspberry Pi using PowerShell:

Log in to Raspberry Pi on Windows with PowerShell and SSH

Given that Raspbian Buster includes X11Forwarding yes in /etc/ssh/sshd_config, your Raspberry Pi should also be able to forward the visual output of X11 applications to an X server on Windows.

The next step shows how to install that X server.

Install Cygwin/X on Windows

Cygwin/X provides an X server for Windows that displays GUI applications running on the Raspberry Pi.

  1. Download and run setup-x86_64.exe from Cygwin's website.

  2. For Cygwin's "Local Package Directory" you can use C:\Users\me\AppData\Roaming\Cygwin.

  3. Choose a server near you for downloading packages.

  4. Set "View" to "Full" and search for xinit.

  5. In the "New" column, use the drop-down menu to change the value from "Skip" to xinit's latest version:

Install package xinit with Cygwin

  1. Install package openssh the same way.

Connect to Raspberry Pi from Windows

  1. Start the X server that you just installed using Windows' start menu: Cygwin-X → XWin Server. This won't open any windows, but you should see two new icons in your system tray:

XWin server icons in system tray

  1. Start the Cygwin terminal: Cygwin → Cygwin64 Terminal

  2. Set the DISPLAY environment variable to where the X server on Windows runs:

export DISPLAY=:0.0

  1. Connect to your Raspberry Pi with X11 forwarding:

ssh -Y pi@raspberrypi

Login with Cygwin Terminal

Inside the SSH session, you can now start an X application on the Raspberry Pi like Thonny:

Thonny forwarded to Windows

Alternatively, as user1297 mentioned in the question's comments, you can run x-session-manager to emulate the experience you'd get when connecting to the Raspberry Pi via HDMI on an external monitor:

Rasbpian desktop forwared to Windows

If you want to start an application directly without first typing its name in the shell, use this:

ssh -Y pi@raspberrypi x-session-manager 

On macOS

XQuartz provides an X server for macOS.

Install XQuartz, log out and back in (to make the new value of DISPLAY effective), then start applications with SSH from Bash:

ssh -Y pi@raspberrypi thonny 

Thonny inside macOS using XQuartz

Add hint to start applications directly via SSH, formatting
Source Link
Loading
Add hint to start applications directly via SSH
Source Link
Loading
Remove unnecessary screenshots, formatting
Source Link
Loading
Source Link
Loading