GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
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.
Hey, sorry if this is not the right place to be asking this sort of thing...
Anyways, I'm a student working for my college's CS department, and right now I've been asked to try and figure out how to get cygwin working. I've got practically no Cygwin experience. We're running Windows XP (yeah, I know, not Linux. Like I said, sorry if this is the wrong place to ask)
As near as I can tell, it seems like something with our installation may have been botched. I wasn't involved with installing it, and I'm told that 1: It was installed from a CD and 2: Whoever installed it basically just kept hitting next. So I'm assuming everything is at its default settings. I've been told reinstalling isn't a good idea, because it takes an extraordinarily long time.
So anyways, xterm windows never come up. I've tried running the startxwin.bat, and I get the tray icon, and both Xwin.exe and xterm.exe show up in the processes list in the task manager, but there is nothing [obvious] I can do to get the xterm window which I assume I should be seeing.
I've also tried opening the bash prompt command line thingie and starting xterm from there, but it says it can't open display. I try to set DISPLAY=127.0.0.1:0 but that doesn't have any effect (I get same error and when I echo $DISPLAY it's a blank line).
I've tried ssh-ing to our server (err, client, I guess? Server meaning the remote machine) and am able to log in there, and that works. I am even able to set the DISPLAY variable and export it, although then I get a totally different error. If I set the display to my IP address and, say, type in xterm& or xclock&, it seems like it accepts the command fine and says something like "[1] 2684", but nothing shows up. A few minutes later if I just leave it there, it tells me that it "Can't open display: [my IP address]:0"
So, does anyone have any ideas about what I should do? The computer's frozen, so I can't restart, but I can muck around with the registry and such with impunity. Like I said, this is entirely new territory for me, so even if you could suggest some questions I should be asking, it would be much appreciated.
Not real familiar with Cygwin/X. We have successfully installed Xming which is based on Cygwin and it DOES let us open X windows from our UNIX/Linux servers to our XP desktops.
A few things:
Don't put the ampersand (&) after xterm when youu login to the server. This puts it in the background so all you are seeing is the PID it started and its eventual failure. Without the ampersand you'll see everything it says.
It complains about not being able to open your DISPLAY rather than it not being set. This indicates a permission issue. Some things to try:
-Type xhost+ on the server to allow all X windows.
-Verify you've allowed ports 6000-6010 in the XP firewall. It may be the XP is refusing the connection.
-Try pinging your XP from your server just to insure it allows for it.
-Try doing "telnet XP 6000" from the server where XP is your XP machine's IP address. This will let you know if it is able to open port 6000. You may be prohibited via an internal switch firewall rule.
-You can try opening an ssh tunnel to the server with PuTTY then see if the DISPLAY that automatically sets allows your xterm to work. This will get around the need for ports 6000-6010.
Not real familiar with Cygwin/X. We have successfully installed Xming which is based on Cygwin and it DOES let us open X windows from our UNIX/Linux servers to our XP desktops.
A few things:
Don't put the ampersand (&) after xterm when youu login to the server. This puts it in the background so all you are seeing is the PID it started and its eventual failure. Without the ampersand you'll see everything it says.
It complains about not being able to open your DISPLAY rather than it not being set. This indicates a permission issue. Some things to try:
-Type xhost+ on the server to allow all X windows.
-Verify you've allowed ports 6000-6010 in the XP firewall. It may be the XP is refusing the connection.
-Try pinging your XP from your server just to insure it allows for it.
-Try doing "telnet XP 6000" from the server where XP is your XP machine's IP address. This will let you know if it is able to open port 6000. You may be prohibited via an internal switch firewall rule.
-You can try opening an ssh tunnel to the server with PuTTY then see if the DISPLAY that automatically sets allows your xterm to work. This will get around the need for ports 6000-6010.
Many thanks for the suggestions and info.
How do I ping? Does it work just like in windows (i.e. ssh to server and type ping xxx.xxx.xxx.xxx)?
Anyways, I don't work again til Friday so I won't know if any of this stuff works until then.
No it is NOT like Windows! Windows TCP/IP was adapted from UNIX so it is fairer to say Windows is like UNIX (and Linux) rather than vice-vera. Most Windows networking command line stuff is directly from UNIX TCP/IP. netstat, ping, nslookup etc...
Back in the old days there was no TCP/IP at all on Windows. A lot of the early "PC networking" was done using IPX/SPX with Novell fileservers. There were also things like Banyan Vines though I never worked with that. Even Novell now uses TCP/IP instead of IPX/SPX for the most part.
Of course I also remember working on SCO UNIX (I know...) when TCP/IP was an add on package that we didn't buy because we did everything over serial ports.
P.S. An old AT&T guy (they invented UNIX in their Bell Labs division) said MS-DOS was an acronym for:
Micrsoft Stole our Damn Operating System
Last edited by MensaWater; 09-14-2006 at 11:29 AM.
Hmm... On the one hand, I feel the need to post something snarky like, "Thanks for the info, Captain Pedant."
On the other hand, I, too, get mad when people say something like, "Puzzle Bobble/Bust-a-Move? Isn't that that game like Snood." so I guess I can't get too mad.
So I'll just say that I have nothing to say. Ph34r my paradox fu.
I wasn't mad - just pointing out. Having been a professional (at least in my opinion) UNIX Systems Administrator since around 1991 I tend to sardonically view MS as "the evil empire". This attitude wasn't formed until they created Windows NT which seemed to me to be clearly designed to try to take over the UNIX midrange niche. It has often amazed me when people would go from an OS that allowed multiple platforms and was obtainable from different vendors to an OS that is proprietary and runs on only one basic platform (x86).
The funny thing to me is that NT seemed to have more impact on Novell than on UNIX. Linux now seems to be making inroads against Windows in the x86 space and of course like UNIX can be run on other platforms as well.
Well, I didn't get to do much work on it Friday as other stuff popped up that was more important, but I made some in-roads.
One of the things I had done was to analyze the startxwin.bat file. Basically, all it did was set a bunch of environmental variables, run xwin, and then run xterm. It never worked. All I would get was the icon in the system tray, and both xwin and xterm would show up in the task manager but otherwise seemed to not be doing anything.
Yet, if I opened the bash prompt and just started xwin from there, rootless or not, it worked right. I was then able to go and get xterm running from the link in the start menu.
After I got xterm running (connected to 127.0.0.1), I used that to ssh into the server (again, I'm talking the server machine, so technically I think it's the X client?) and was able to get the display set semi-correctly. I used "export DISPLAY=ipaddress:0" and then when I tried to run xclock or anything else I would get refused by the server. The original bash prompt I'd used to start xwin would have a message I can't remember off the top of my head about the connection, though, so it was definitely making it back.
Oddly, I wasn't able to ping myself from the server. I'd issue the ping, wait a few seconds and nothing happened, then I hit ctrl+c and it said something like 15 pings and no response.
Just use 'ssh -X" which will turn X forwarding on and should save you
the hassle of having to export DISPLAY and the xhost + stuff on the
local machine (your cygwin).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.