XWin not found and xinit: no such file or directory (errno 2)
Dear all, I've got a problem when trying to lauch startx the problem is as follows: xinit: No such file or directory (errno 2): unable to connect to X server xinit: No such process (errno 3): Server error And when I tried to run XWin.exe i got msg: XWin: not found Here is the msg when i tried to run cygcheck: Cygwin Package Information PackageVersion Status XFree86-xserv 4.3.0-68 OK $mount L:\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type system (binmode) L:\cygwin\bin on /usr/bin type system (binmode) L:\cygwin\lib on /usr/lib type system (binmode) L:\cygwin on / type system (binmode) c: on /cygdrive/c type user (binmode,noumount) d: on /cygdrive/d type user (binmode,noumount) l: on /cygdrive/l type user (binmode,noumount) There's no XWin.lo either, my question what happened cause I have chosen to intall full packages. Thank you for your answer Nico Prsasetio __ Do you Yahoo!? SBC Yahoo! - Internet access at a great low price. http://promo.yahoo.com/sbc/
Re: xinit: No such file or directory
From: Tomasz Rojek [EMAIL PROTECTED] Subject: Re: xinit: No such file or directory Date: Fri, 27 Jun 2003 18:39:19 +0200 I only run into this problem as nonadministrator. I don't know if this will help in your case, but maybe during instalation process you have selected Install for: Only me instead of All users? Thanks, Tomasz. As I confirmed with Andrew, I believe the permissions to the /tmp/.X11-unix got narrowed during the setup of sshd. I emailed Mike Erdely and his ssh-l mailing list about this. The same setup procedure also made the /home unwritable, so cygwin couldn't create new home directories for new users. Funny that no one commented on that when I reported it. I imagine Mike's quite busy right now, as his personal website shows that he is a new father. Fred -- Fred Ma, [EMAIL PROTECTED] Carleton University, Dept. of Electronics 1125 Colonel By Drive, Ottawa, Ontario Canada, K1S 5B6
Re: xinit: No such file or directory
I only run into this problem as nonadministrator. I don't know if this will help in your case, but maybe during instalation process you have selected Install for: Only me instead of All users? -- Tomasz Rojek
Re: xinit: No such file or directory
Boy I must be getting old. I sent this to the framemaker newsgroups by mistake... From Andrew M. To: [EMAIL PROTECTED] Date: Fri, 27 Jun 2003 21:10:45 +0200 Just one more small.. what happens if you run sh -x startxwin.sh to see what goes wrong?? /Andy Hi, Andy, The following is the output from sh -x startxwin.sh, issued from a bash environment. + export DISPLAY=127.0.0.1:0.0 + PATH=/usr/X11R6/bin:/home/fma/bin:/usr/local/bin :/usr/bin:/bin:/c/WINNT/system32:/c/WINNT :/c/WINNT/system32/WBEM:/usr/bin:/usr/X11R6/bin + ssh-agent + eval SSH_AUTH_SOCK=/tmp/ssh-DYPu1408/agent.1408; export SSH_AUTH_SOCK; SSH_AGENT_PID=1552; export SSH_AGENT_PID; echo Agent pid 1552; + SSH_AUTH_SOCK=/tmp/ssh-DYPu1408/agent.1408 + export SSH_AUTH_SOCK + SSH_AGENT_PID=1552 + export SSH_AGENT_PID + echo Agent pid 1552 Agent pid 1552 + rm -rf /tmp/.X11-unix rm: cannot remove directory `/tmp/.X11-unix': Permission denied + XWin -screen 0 1024 768 + twm + xsetroot -solid aquamarine4 XIO: fatal IO error 104 (Connection reset by peer) on X server 127.0.0.1:0.0 after 0 requests (0 known processed) with 0 events remaining. + xterm -n xterm-1 -j -ls -sb -sl 500 -rightbar -geometry +361+0 -e bash + exit XIO: fatal IO error 104 (Connection reset by peer) on X server 127.0.0.1:0.0 after 0 requests (0 known processed) with 0 events remaining. xterm Xt error: Can't open display: 127.0.0.1:0.0 I've prettified the output by wrapping long lines and spacing stuff out. The output differs slightly if the command is issued from tcsh. Basically, all the export commands are replaced by setenv, and there is an error saying that setenv is not found. I didn't bother to pursue the csh route. I'm not sure if the references to ssh stuff is Xwin's own use of ssh, or if it is related to my use of ssh to connect to a VNC server. The VNC server merely echos the contents of localhost:0 to an external viewer (another program). This should not be visible to the X server. I use the same setup as administrator with no problems. In any case, the errors seem to occur later on in the script. The error from being unable to remove /tmp/.X11-unix is strange. Here are the details of that directory: drwxr-xr-x 2 Name None 0 Jan 29 04:57 /tmp/.X11-unix srwxr-xr-x 1 Name None 0 Jun 27 16:11 /tmp/.X11-unix/X0 Note that if I just ls -Fp /tmp/.X11-unix, the file X0 shows up as X0=. The man page for ls doesn't say what the = means. I captured the output from the same command issued as administrator. Needless to say, none of the error messages were present. I also did not get a permission denied in removing /tmp/.X11-unix. I think this is the key difference, as the only other differences in the output are different numbers in the messages related to ssh agent, and different home directory in the PATH. On the other hand, the permissions for /tmp/.X11-unix and X0 are exactly the same as on another PC which doesn't experience the same problem. On that PC, the nonadministrator can startx without trouble. Anyway, thanks for the suggestion on how to further sleuth down the problem. And thanks to anyone who can suggest something further. Fred -- Fred Ma, [EMAIL PROTECTED] Carleton University, Dept. of Electronics 1125 Colonel By Drive, Ottawa, Ontario Canada, K1S 5B6
Re: xinit: No such file or directory
Andrew Markebo wrote: |+ rm -rf /tmp/.X11-unix |rm: cannot remove directory `/tmp/.X11-unix': | Permission denied [...] |drwxr-xr-x 2 Name None 0 Jan 29 04:57 /tmp/.X11-unix |srwxr-xr-x 1 Name None 0 Jun 27 16:11 /tmp/.X11-unix/X0 Yeah, think it is around here the error is, my .X11-unix, it is owned by me, assuming Name is your name? Actually, that was my mistake. Name is the userid on the machine that doesn't have problems. On the PC that only lets administrator do startx, /tmp/.X11-unix is owned by administrator, and does not have write permission for anyone else. Have you tried removed the file and subdir as admin, and then tried firing it up again, BTW My files has the rights drwxrwxrwt+ 2 flognat None0 May 16 23:37 .X11-unix [...] /Andy Yes, if I remove /tmp/.X11-unix, it gets recreated by the userid which does startx. It is writable by everyone, as is yours above. For that reason, any other user can also do startx. That seems to solve the problem. So the problem is that the permissions got changed somehow. I'm pretty sure it happened when I setup sshd according to http://tech.erdelynet.com/cygwin-sshd.html. This procedure, contains the step chmod -R go-w /, which narrows the accessibility of /tmp/.X11-unix to the only creator. I guess that it is an attempt to improve security, given that sshd allows an external login. However, the subsequent fixup chmod go+w /tmp is not enough to open up accessibility to /tmp/.X11-unix. Another part of the problem is that /tmp/.X11-unix is left behind after X windows shuts down. This ensures that the next user to do startx is using the directory /tmp/.X11-unix created by someone else. Thus, everyone is dependent on the directory having write permission by group and world. The problem could be avoided by having the X windows startup scripts/programs remove /tmp/.X11-unix when X windows shuts down. Thanks, Andrew, for your help in solving this problem. Fred -- Fred Ma, [EMAIL PROTECTED] Carleton University, Dept. of Electronics 1125 Colonel By Drive, Ottawa, Ontario Canada, K1S 5B6
xinit: No such file or directory
Hello, I'm running into a problem which seems to show up often in the mailing list. I think I've tried all the suggestions there. When I use startx to start an X server, I get the message: + xinit /usr/X11R6/lib/X11/xinit/xinitrc -- giving up. xinit: No such file or directory (errno 2): unable to connect to X server xinit: No such process (errno 3): Server error. + [ x != x ] I only run into this problem as nonadministrator. I have /usr/X11R6/bin in my path, and my Xfree installation includes XFree86-xserv. Before I discovered that nonadministrators have this problem, I had my own ~/.xinitrc. It was identical to the system default except at the end, where it called my own script to start my own xclients. To debug the problem, I changed line 1 of .xinitrc to #!/bin/sh -x to echo all commands, and also explicit diagnostic echo commands at the top. Since none of this echoing gets printed out, I conclude that ~/.xinitrc is never reached. To further troubleshoot why this problem only afflicts nonadministrators, I got rid of ~/.xinitrc in both cases. The discrepancy persists, even though both are using the system .xinitrc. I checked that the relevant files were readable and executable by everyone: -rwxrwxrwx+ 1 Users 8704 Jan 21 2002 /usr/X11R6/bin/xinit -rwxrwxrwx+ 1 Users 667 Jun 27 04:08 /usr/X11R6/lib/X11/xinit/xinitrc The timestamp of xinitrc is recent because I made it run according to sh -x for troubleshooting. But as can be seen from the error message above, it seems that xinitrc doesn't even get a chance to run (i.e. same as ~/.xinitrc). I tried to put sh -x in the xinit program and find where things go wrong in there. But xinit is actually the binary executable xinit.exe. It took a while to figure out why I couldn't use less or cat on /usr/X11R6/bin/xinit. Because it is not a script, I can't stick in diagnostic statements. I tried startxwin.bat and xwin: $ startxwin.bat Access is denied. startxwin.bat - Starting on Windows NT/2000/XP $ xwin In both cases, nothing happens. Preferrably, I would like to get startx working. Thanks if anyone can advise on what to try next to find the problem. Fred -- Fred Ma, [EMAIL PROTECTED] Carleton University, Dept. of Electronics 1125 Colonel By Drive, Ottawa, Ontario Canada, K1S 5B6