Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm not sure if this is the best place to get support for Cygwin, but a lot of the things are the same...
Anyway, when I SSH with ssh -XYC remote@192.168.1.104 to get into my machine, I can log in, but I can't start any X11 apps, even with my X server running.
Trying to start Netscape (perl /usr/bin/netscape/netscape ) gives me this error:
Quote:
Gtk-WARNING **: cannot open display:
Also, whenever I try to open xterm (not in SSH) I get the error:
Quote:
xterm Xt error: Can't open display:
xtrem: DISPLAY is not set
But at the same time, I can open xemacs.
Is there anything I can do to get my X server working properly?
In cygwin, you need something like
X -query server
where server is the name of your linux box, to get an X login.
Google XDMCP for lots of info
You need to have the server configured to accept XDMCP requests. I think this is part of your gdm (or kdm or xdm or whatever display manager you are using) configuration. This is usually turned off by default because it is considered insecure.
Much easier, though not quite as flashy and smooth, is vnc, which gives you a remote desktop without using an X-client on your windows box (cygwin in your case). You need to start vncserver on the server, then use a client on your Windows box (I use tightvnc - it is free and open - I think). This can also be a more secure way, if you tunnel through ssh.
Rather than emulating X on Windows with CygWIN/X so you can ssh tunnel an X session over to your Linux box, have you thought about using FreeNX as an alternative?
It's one heck of a lot faster than tunnelling X or using VNC. Download the free Windows NX client from http://www.nomachine.com, and download the FreeNX server for your Linux box from http://freenx.berlios.de The FreeNX server may even be available as a package for your distro. NX uses ssh tunnelling itself, so it's secure. It uses compression of the X protocol for great speed improvement.
I'm not sure if this is the best place to get support for Cygwin, but a lot of the things are the same...
Anyway, when I SSH with ssh -XYC remote@192.168.1.104 to get into my machine, I can log in, but I can't start any X11 apps, even with my X server running.
Trying to start Netscape (perl /usr/bin/netscape/netscape ) gives me this error:
Also, whenever I try to open xterm (not in SSH) I get the error:
But at the same time, I can open xemacs.
Is there anything I can do to get my X server working properly?
Are you trying to run this from the Cygwin command line? If so, you need to run it in xterm so it will have the DISPLAY variable set.
Or you can use another SSH client with X forwarding, like putty, and it will assume the display :0
Are you trying to run this from the Cygwin command line? If so, you need to run it in xterm so it will have the DISPLAY variable set.
Or you can use another SSH client with X forwarding, like putty, and it will assume the display :0
As I had mentioned before, I can't start xterm, because it gives me a DISPLAY error.
Also, I tried FreeNX server, and it didn't work too well, so I went and downloaded the one from nomachine.com, and it works a bit better. I just get a connection timeout with their client from my laptop. I also installed the client in my VMwared PCLinuxOS install. I was able to connect perfectly from there... It probably doesn't help that I'm using Windows ME.
I'm going to search around a bit on sourceforge ad see if there are any open source clients.
I guess NX is my soloution to remote access, but I'd still like to get my X server working in Cygwin...
Last edited by timothyb89; 07-08-2006 at 12:52 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.