Displaying X windows applications on a Windows desktop: Difference between revisions

From Edgar BV Wiki
Jump to navigation Jump to search
New page: Setting the X11 display to show X applications under Win2k 1) Start up X-Win32 and an XDMCP session 2) on the machine you're running stuff off: export DISPLAY=192.168.1.28:0 3) run the pr...
 
No edit summary
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Setting the X11 display to show X applications under Win2k
=Setting the X11 display to show X applications under Windows=
For win2k, win7


1) Start up X-Win32 and an XDMCP session
Start up X-Win32 / Xming and an XDMCP / broadcast session. Make sure the server you are going to run the application from has permissions in the X-server (for Xming it's in the X0.hosts file)
2) on the machine you're running stuff off:
 
export DISPLAY=192.168.1.28:0
Before you putty into the machine make sure you go to connection -> SSH -> X11 and set Enable X11 forwarding on.
3) run the program :)
 
Make sure the machine with the program on it (eg. /usr/games/tuxeyes) has xdm installed, and has open ports on the firewall (eg /etc/shorewall/rules:
 
 
ACCEPT  fw    loc    tcp    x11
 
ACCEPT  fw    loc    udp    x11
 
run the program :) (eg xeyes)
 
Alternatively in a terminal window ssh in using the -X or -Y options, eg
 
ssh -X user@ipofserver or ssh -Y user@ipofserver or ssh -XC user@ipofserver
 
If you want to run the entire desktop you can run xfce4-session (Assuming the server has an xfce desktop installed)
 
=Troubleshooting=      
== Xming.exe: client 4 rejected from IP 192.168.1.215==
 
Solution:
 
Edit: X0.hosts (c:\program files*86)\xming\ in the installation directory)
 
add the ip you want allow. my X0.hosts
 
“localhost
 
192.168.1.215″
 
Restart Xming.
 
==NV-GLX missing on display==
 
Try the following commands for this error
<pre>
glxgears
</pre>
You should see spinning gears if it works
 
<pre>
glxinfo
</pre>
should also give the error at the top if it doesn't work
 
This is usually because the propriatary driver is installed on the machine running glxinfo , and that driver expects the NV-GLX extension loaded in the X server, which is clearly not the case. Try removing the nvidia proprietary driver. [https://www.linuxquestions.org/questions/linux-general-1/nv-glx-missing-in-remote-connections-4175463926/ adamk75]
After removing the driver, logout and login.
 
You can try setting the following environment variable
<pre>
export LIBGL_ALWAYS_INDIRECT=y
</pre>
 
----
 
[http://www.glump.net/howto/desktop/seamless-remote-linux-desktop-in-windows For the full desktop]
 
----
 
= Alternatives to X-Win: =
 
Xming
 
XWinLogon Win32 X Server
 
Cygwin/X
 
NB To do this in a linux desktop just
<pre>
ssh -XC user@ip
</pre>
 
= Depreciated and insecure (manually setting the export environment)! =
 
Putty into the machine you're running stuff off:
 
export DISPLAY=YOUR IP:0

Latest revision as of 08:18, 5 May 2017

Setting the X11 display to show X applications under Windows

For win2k, win7

Start up X-Win32 / Xming and an XDMCP / broadcast session. Make sure the server you are going to run the application from has permissions in the X-server (for Xming it's in the X0.hosts file)

Before you putty into the machine make sure you go to connection -> SSH -> X11 and set Enable X11 forwarding on.

Make sure the machine with the program on it (eg. /usr/games/tuxeyes) has xdm installed, and has open ports on the firewall (eg /etc/shorewall/rules:


ACCEPT fw loc tcp x11

ACCEPT fw loc udp x11

run the program :) (eg xeyes)

Alternatively in a terminal window ssh in using the -X or -Y options, eg

ssh -X user@ipofserver or ssh -Y user@ipofserver or ssh -XC user@ipofserver

If you want to run the entire desktop you can run xfce4-session (Assuming the server has an xfce desktop installed)

Troubleshooting

Xming.exe: client 4 rejected from IP 192.168.1.215

Solution:

Edit: X0.hosts (c:\program files*86)\xming\ in the installation directory)

add the ip you want allow. my X0.hosts

“localhost

192.168.1.215″

Restart Xming.

NV-GLX missing on display

Try the following commands for this error

glxgears

You should see spinning gears if it works

glxinfo

should also give the error at the top if it doesn't work

This is usually because the propriatary driver is installed on the machine running glxinfo , and that driver expects the NV-GLX extension loaded in the X server, which is clearly not the case. Try removing the nvidia proprietary driver. adamk75 After removing the driver, logout and login.

You can try setting the following environment variable

export LIBGL_ALWAYS_INDIRECT=y

For the full desktop


Alternatives to X-Win:

Xming

XWinLogon Win32 X Server

Cygwin/X

NB To do this in a linux desktop just

ssh -XC user@ip

Depreciated and insecure (manually setting the export environment)!

Putty into the machine you're running stuff off:

export DISPLAY=YOUR IP:0