Posted by2 years ago
In the case of X, the server is taking your input (physical) and providing you with access to remote applications and services (virtual). So applications you run (on Linux) connect to the server (on Windows), and send their commands to the server, which draws them on the screen for you. Jan 10, 2016 The best one I have been using, so far, is VcXsrv All them are descendants from the same base, but this one is crafted to work very well on Windows, in particular Windows 10. Take into consideration 'what is' an X11 platform. This works the opposi.
Archived
Some of my users are running software on RHEL 7 that's using X forwarding to an X server on a Windows 10 machine. The latest version of software was incompatible with the X server they were using previously (because it was ~10 years old) so I'm looking for a product to replace it.
MobaXterm was my first thought, but I ran into a bug where menus wouldn't open when clicked on. Might be a config issue on the client's end but I haven't yet taken the time to debug it.
Requirements:
- Free (preferably OSS)
- Actively maintained
- Runs on Windows 10
- Easy to set up
- Preferably easily integrated with ssh (like MobaXterm)
6 comments
Active1 month ago
I have a Raspberry Pi 3 Model B+ connected to my local network and I can SSH into it with no problems. This does cause some problems though as everything is done on the command line.
What I would really like to do is use X11 forwarding by using the SSH client that comes with Windows Subsystem for Linux. I am running Windows 10 Pro with the 1803 update installed.
I'm just curious about how I might go about using this feature? If it won't work in Windows 10 natively then I can always run a Linux virtual machine to connect to the Raspberry Pi.
CromulentCromulent1931 gold badge2 silver badges11 bronze badges
2 Answers
This is definitely possible given your current setup. Note that you also have the option of using Putty but either way, you'll need to have an X server running on the client machine, your Windows Subsystem for Linux — WSL. The client-server model of the X window system is partially what makes X forwarding so easy to pull off. All you need is an X server running on host and client.
X11 For Windows
Raspberry Pi (Host) Configuration
First, you'll want to make a minor config adjustment to your SSH server on the host machine (your Raspberry Pi). First, find your sshd_config file within the etc directory. You can run these commands by ssh-ing into the Raspberry Pi (with a sudo-capable account), or accessing the Pi directly and then opening a terminal.
Once you're in, run the command:
Make a backup of your sshd config file:
Now open the original file in a text editor with:
You can choose any text editor you're comfortable with (see here for the nano text editor shortcuts). This is the main config file for the ssh server. Find and uncomment the following lines:
Save and exit. Now you'll need to restart your Pi's SSH server with:
Windows (Client) Setup
You're done with your host. Now all you need to do is install an X server for Windows. There are a few options to choose from but I would go with Cygwin X which you can download here. Install it and once you run it, it should spawn a little window on your client which will be used to display the X program. Enable adobe reader plugin. You can now test that X forwarding is happening by returning to your WSL shell and running the simple command:
A simple clock should appear in the window spawned by Cygwin. You can terminate the clock by returning to your WSL shell and hitting Ctrl+C.If this command isn't recognized, you may first need to install x11-graphics applications on the host machine with:
X forwarding should now be enabled for you and you can now run most if not all of your Raspberry Pi's applications from Windows.
Note on XDMCP, FreeNX
You may wish to take things a step further and set things up to run an entire desktop environment from your Pi rather than just app-by-app which is what X forwarding allows. Here are a couple common options available to you: Nero wave editor 2014 download pc.
- XDMCP: This is the easiest to set up but is notoriously insecure and most authorities only recommend you ever run it on a trusted, wired LAN (like your home network). This may be more trouble than it's worth but if you're curious to look into it, see this Rasp Pi thread for the initial setup.
- FreeNX: More secure than XDMCP and probably worth the time to set up if you'll want to do this regularly and possibly from another network entirely. You'll need to install a FreeNX server on the host, then use another piece of software - NoMachine - on your Windows client. See here for a very detailed guide.
baelxbaelx
On the WSL shell, make sure you have exported the fully qualified DISPLAY
export DISPLAY=localhost:0.0
The following doesn't work:export DISPLAY=:0.0
X11 Server Windows 7 64-bit
:0.0 relies on a UNIX domain socket (instead of a TCP/IP socket) and somehow the X-forwarding doesn't get hooked up correctly. I had the same problem.
Carl ZmolaCarl Zmola