Re: problems starting xterm
Ken Brown writes: Does your CYGWIN environment variable contain tty? http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-startxwin-no-windows administra...@pc51997 ~ $ echo $CYGWIN server Which, in fact, is a leftover of 1.5. But no, there is no tty here. regards, Markus -- Markus Hoenicka http://www.mhoenicka.de AQ score 38 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: problems starting xterm
Markus Hoenicka: xterm: Could not exec 4.90.2.20040617: No such file or directory Jon TURNEY: Google suggests '4.90.2.20040617' is a novell netware client version. Good catch. I use a Windoze client on a Netware network at work, so this client is likely to be installed. But then, why would xterm try to run that client??? Actually it's trying to invoke that client's version number as a program, which is even more weird. There are only three places that could come from: the SHELL environment variable, the /etc/passwd file, and a -e option on xterm's command line. Andy -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
problems starting xterm
Hi, I've set up Cygwin 1.7.1 lately, along with X and some applications. The X server works ok and claims to be Version 1.7.5 Build Date: 2010-02-05. I can run Emacs as an X application without hassles. However, when I start the X server, or when I try to run xterm from the X server systray icon, xterm apparently fails to find a shell to run, so it terminates (no pun intended) after a couple of seconds: xterm: Could not exec 4.90.2.20040617: No such file or directory I have plenty of shells installed (bash, ash, dash), and they work ok in MinTTY. I'm afraid I'm missing some simple but important setting somewhere. Any ideas? regards, Markus -- Markus Hoenicka http://www.mhoenicka.de AQ score 38 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: problems starting xterm
On Fri, 2010-03-19 at 10:54 +0100, Markus Hoenicka wrote: Hi, I have plenty of shells installed (bash, ash, dash), and they work ok in MinTTY. I'm afraid I'm missing some simple but important setting somewhere. Any ideas? what happens when you call xterm from the mintty command line? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: problems starting xterm
Reid Thompson reid.thomp...@ateb.com was heard to say: what happens when you call xterm from the mintty command line? $ xterm Xt error: Can't open display: xterm: DISPLAY is not set Do I have to set DISPLAY manually? And if yes, what should it read? regards, Markus -- Markus Hoenicka http://www.mhoenicka.de AQ score 38 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: problems starting xterm
On 3/19/2010 9:09 AM, Markus Hoenicka wrote: $ xterm Xt error: Can't open display: xterm: DISPLAY is not set Do I have to set DISPLAY manually? And if yes, what should it read? For the mintty test case, yes, you need to set DISPLAY. Use this: export DISPLAY=:0.0 -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: problems starting xterm
Larry Hall (Cygwin X) reply-to-list-only-l...@cygwin.com was heard to say: For the mintty test case, yes, you need to set DISPLAY. Use this: export DISPLAY=:0.0 Yep, that works, except for the following warning: Warning: Missing charsets in String to FontSet conversion As this method to start xterm seems to work, do I have to start the X server some other way than I do now? I just use the Win start menu entry Cygwin-X-XWin Server. thanks Markus -- Markus Hoenicka http://www.mhoenicka.de AQ score 38 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: problems starting xterm
Markus Hoenicka markus.hoeni...@mhoenicka.de mumbled: As this method to start xterm seems to work, do I have to start the X server some other way than I do now? I just use the Win start menu entry Cygwin-X-XWin Server. I can answer that one myself. Running startxwin from mintty works without a hitch. This is no big deal for me, but this still leaves me wondering why one of the officially recommended ways to start X (as per the docs, see http://x.cygwin.com/docs/ug/using.html#using-starting) fails on my system. regards, Markus -- Markus Hoenicka http://www.mhoenicka.de AQ score 38 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: problems starting xterm
On 3/19/2010 11:40 AM, Markus Hoenicka wrote: Markus Hoenickamarkus.hoeni...@mhoenicka.de mumbled: As this method to start xterm seems to work, do I have to start the X server some other way than I do now? I just use the Win start menu entry Cygwin-X-XWin Server. I can answer that one myself. Running startxwin from mintty works without a hitch. This is no big deal for me, but this still leaves me wondering why one of the officially recommended ways to start X (as per the docs, see http://x.cygwin.com/docs/ug/using.html#using-starting) fails on my system. Does your CYGWIN environment variable contain tty? http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-startxwin-no-windows -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: problems starting xterm
On 19/03/2010 09:54, Markus Hoenicka wrote: I've set up Cygwin 1.7.1 lately, along with X and some applications. The X server works ok and claims to be Version 1.7.5 Build Date: 2010-02-05. I can run Emacs as an X application without hassles. However, when I start the X server, or when I try to run xterm from the X server systray icon, xterm apparently fails to find a shell to run, so it terminates (no pun intended) after a couple of seconds: xterm: Could not exec 4.90.2.20040617: No such file or directory Google suggests '4.90.2.20040617' is a novell netware client version. So, erm... yeah. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: problems starting xterm
Jon TURNEY writes: Google suggests '4.90.2.20040617' is a novell netware client version. Good catch. I use a Windoze client on a Netware network at work, so this client is likely to be installed. But then, why would xterm try to run that client??? regards, Markus -- Markus Hoenicka http://www.mhoenicka.de AQ score 38 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: problems starting xterm
Ken Brown writes: Does your CYGWIN environment variable contain tty? http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-startxwin-no-windows Thanks for the hint. Will check on Monday. regards, Markus -- Markus Hoenicka http://www.mhoenicka.de AQ score 38 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Again Problems starting xterm under win7]
is anyone seeing this or do I send it to myself each time. Doesn't anyone have the same problems or any suggestions. It is Xwin.exe that is leaving the window open. How can I log this when i start the Xserver? anyone??/ ---BeginMessage--- Hi, I am still having problems with cygwin leaving blank xterm windows up each time an xterm window opens. It does not go away until I exit the xterm window, unlike the Xserver windows that go away once the server is started. They fill up my task bar with useless icons which makes navigation really difficult. It would be nice it someone would give me a resolution to this! Also, every once in awhile I get the following errors when I try to start and xterm window: $ xterm 1 [main] xterm 4080 C:\Xwin\bin\xterm.exe: *** fatal error - couldn't allocate heap, Win32 error 487, base 0x89, top 0x9D, reserve_size 1306624, allocsize 1310720, page_const 4096 1 [main] xterm 1700 child_info::sync: wait failed, pid 4080, Win32 error 1812 1127 [main] xterm 1700 fork: child -1 - died waiting for longjmp before initialization, retry 0, exit code 0x100, errno 11 xterm: Error 29, errno 11: Resource temporarily unavailable Reason: spawn: fork() failed I'm running Win7 64 bit with 8 Gig of memory, but then cygwin is 32 bit right? Any help? thanks, jerry -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/ ---End Message--- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: Again Problems starting xterm under win7]
On 02/19/2010 07:25 PM, Jerry Lowry wrote: is anyone seeing this or do I send it to myself each time. Nope, it goes to the list as you would expect: http://cygwin.com/ml/cygwin-xfree/2010-02/msg00111.html http://cygwin.com/ml/cygwin-xfree/2010-02/msg00099.html If you're ever unsure, just check the email archives. That will answer it for you in a definitive way. As for your issue, I can say that I cannot reproduce it on Win7 x64. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Problems Starting Xterm using the System Tray Icon for XWin Server
Hi, When I open a new xterm window using the XWin Server icon in the system tray: (right click on icon)-Applications-xterm it opens xterm, but the command prompt is not formatted correctly and the window title is 'xterm' instaed of the current directory. The command prompt looks like: bash-3.2$ and should be cr...@laptop ~ $ How do I configure the XWin Server so that it opens xterm correctly? Also, is there a way I can add a shortcut on my desktop to open a new terminal window without having to type 'xterm' in the existing terminal window or the system tray icon? Thanks, Craig -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: Problems Starting Xterm using the System Tray Icon for XWin Server
On 2/18/2010 7:13 AM, Craig Moore wrote: When I open a new xterm window using the XWin Server icon in the system tray: (right click on icon)-Applications-xterm it opens xterm, but the command prompt is not formatted correctly and the window title is 'xterm' instaed of the current directory. The command prompt looks like: bash-3.2$ and should be cr...@laptop ~ $ How do I configure the XWin Server so that it opens xterm correctly? This happens because xterm doesn't start a login shell, and PS1 gets unset. One way around this is to set PS1 in your ~/.bashrc file. For example: PS1='\[\e]0;\w\a\]\n\[\e[32m\...@\h \[\e[33m\]\w\[\e[0m\]\n\$ ' Also, is there a way I can add a shortcut on my desktop to open a new terminal window without having to type 'xterm' in the existing terminal window or the system tray icon? I use a shortcut with target C:\cygwin\bin\run.exe /usr/bin/xterm -ls -display 127.0.0.1:0.0 Ken -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: Problems Starting Xterm using the System Tray Icon for XWin Server
On Thu, 18 Feb 2010 10:34:56 -0500, Ken Brown kbrown at cornell dot edu wrote: How do I configure the XWin Server so that it opens xterm correctly? This happens because xterm doesn't start a login shell, and PS1 gets unset. One way around this is to set PS1 in your ~/.bashrc file. For example: PS1='\[\e]0;\w\a\]\n\[\e[32m\...@\h \[\e[33m\]\w\[\e[0m\]\n\$ ' I added this to my ~/.bashrc and the problem went away. Thanks! Also, is there a way I can add a shortcut on my desktop to open a new terminal window without having to type 'xterm' in the existing terminal window or the system tray icon? I use a shortcut with target C:\cygwin\bin\run.exe /usr/bin/xterm -ls -display 127.0.0.1:0.0 Perfect, with this I don't even need to bother with the system tray icon. However, I do get a small error message when I execute it: -bash: Files/MiKTeX: No such file or directory cr...@craig-laptop ~ $ I imagine that this has something to do with the way cygwin deals with the PATH variable? Here is the text in my PATH variable as seen from Cygwin: $ echo $PATH /cygdrive/c/Users/craig/Programming/scripts:/home/craig/bin:/usr/local/bin:/usr/bin:/bin:/cygdrive/c/Program Files/MiKTeX 2.7/miktex/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Program Files/Common Files/Roxio Shared/10.0/DLLShared/:/cygdrive/c/Program Files/Common Files/Roxio Shared/DLLShared/:/cygdrive/c/modeltech_6.5c/win32:/cygdrive/c/Users/craig/Software/ant-1.7.1/apache-ant-1.7.1/bin Alternatively , this is what it looks like from DOS cmd: ECHO %PATH% C:\Program Files\MiKTeX 2.7\miktex\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\modeltech_6.5c\win32;C:\Users\craig\Software\ant-1.7.1\apache-ant-1.7.1\bin Its not a big problem, but I thought I would make you all aware of it. Thanks for your help, Craig -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: Problems Starting Xterm using the System Tray Icon for XWin Server
On 2/18/2010 11:28 AM, Craig Moore wrote: On Thu, 18 Feb 2010 10:34:56 -0500, Ken Brownkbrown at cornell dot edu wrote: How do I configure the XWin Server so that it opens xterm correctly? This happens because xterm doesn't start a login shell, and PS1 gets unset. One way around this is to set PS1 in your ~/.bashrc file. For example: PS1='\[\e]0;\w\a\]\n\[\e[32m\...@\h \[\e[33m\]\w\[\e[0m\]\n\$ ' I added this to my ~/.bashrc and the problem went away. Thanks! Also, is there a way I can add a shortcut on my desktop to open a new terminal window without having to type 'xterm' in the existing terminal window or the system tray icon? I use a shortcut with target C:\cygwin\bin\run.exe /usr/bin/xterm -ls -display 127.0.0.1:0.0 Perfect, with this I don't even need to bother with the system tray icon. However, I do get a small error message when I execute it: -bash: Files/MiKTeX: No such file or directory cr...@craig-laptop ~ $ I imagine that this has something to do with the way cygwin deals with the PATH variable? Here is the text in my PATH variable as seen from Cygwin: $ echo $PATH /cygdrive/c/Users/craig/Programming/scripts:/home/craig/bin:/usr/local/bin:/usr/bin:/bin:/cygdrive/c/Program Files/MiKTeX 2.7/miktex/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Program Files/Common Files/Roxio Shared/10.0/DLLShared/:/cygdrive/c/Program Files/Common Files/Roxio Shared/DLLShared/:/cygdrive/c/modeltech_6.5c/win32:/cygdrive/c/Users/craig/Software/ant-1.7.1/apache-ant-1.7.1/bin Alternatively , this is what it looks like from DOS cmd: ECHO %PATH% C:\Program Files\MiKTeX 2.7\miktex\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\modeltech_6.5c\win32;C:\Users\craig\Software\ant-1.7.1\apache-ant-1.7.1\bin Its not a big problem, but I thought I would make you all aware of it. You have spaces in your PATH but probably did not quote it properly in your scripts when you used it ... I have things like this in my .bash_profile: PATH=${HOME}/bin:/c/miktex2.8/miktex/bin:${PATH}:${M2_HOME}/bin Note the quotes :-) Since I run MiKTeX from cygwin, I added to PATH within cygwin only, so that's not my point. My point is always using the quotes when adjusting PATH, and so forth, if it might have spaces in it. Cheers -- EM -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Problems starting xterm under win7
Hi, I am still having problems with cygwin leaving blank xterm windows up each time an xterm window opens. It does not go away until I exit the xterm window, unlike the Xserver windows that go away once the server is started. They fill up my task bar with useless icons which makes navigation really difficult. It would be nice it someone would give me a resolution to this! Also, every once in awhile I get the following errors when I try to start and xterm window: $ xterm 1 [main] xterm 4080 C:\Xwin\bin\xterm.exe: *** fatal error - couldn't allocate heap, Win32 error 487, base 0x89, top 0x9D, reserve_size 1306624, allocsize 1310720, page_const 4096 1 [main] xterm 1700 child_info::sync: wait failed, pid 4080, Win32 error 1812 1127 [main] xterm 1700 fork: child -1 - died waiting for longjmp before initialization, retry 0, exit code 0x100, errno 11 xterm: Error 29, errno 11: Resource temporarily unavailable Reason: spawn: fork() failed I'm running Win7 64 bit with 8 Gig of memory, but then cygwin is 32 bit right? Any help? thanks, jerry -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: Problems Starting Xterm using the System Tray Icon for XWin Server
On 18 February 2010 17:55, Eliot Moss m...@cs.umass.edu wrote: You have spaces in your PATH but probably did not quote it properly in your scripts when you used it ... No, thats not it. It works fine when I start xterm normally (either by starting XWin Server or selecting it from the system tray icon). Its only when I use the shortcut on my desktop: C:\cygwin\bin\run.exe /usr/bin/xterm -ls -display 127.0.0.1:0.0 that I get the message. Craig -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
RE: Problems Starting Xterm using the System Tray Icon for XWin Server
From: cygwin-xfree-ow...@cygwin.com [mailto:cygwin-xfree- ow...@cygwin.com] On Behalf Of Craig Moore Sent: Thursday, February 18, 2010 4:14 AM When I open a new xterm window using the XWin Server icon in the system tray: (right click on icon)-Applications-xterm it opens xterm, but the command prompt is not formatted correctly and the window title is 'xterm' instaed of the current directory. The command prompt looks like: bash-3.2$ and should be cr...@laptop ~ $ How do I configure the XWin Server so that it opens xterm correctly? My wild guess is that you have a typo in .bashrc which prevents all the startup happening. in your system tray launched window, make sure you are in your home directory, then run '. .bashrc' (note that first period!) and see if there are any error messages. You can also edit .bashrc and put 'set -x' as the first line for verbose output. HTH, Mike
Re: Problems Starting Xterm using the System Tray Icon for XWin Server
On 18 February 2010 22:02, Mike Ayers mike_ay...@tvworks.com wrote: No, no, .bashrc is off the suspect list. What's in ~/.bash_profile? Ah! Yes, this is where the problem was. This is what I found in my .bash_profile: if [ -e /etc/bash.bashrc ] ; then source /etc/bash.bashrc fi if [ -e ${HOME}/.bashrc ] ; then source ${HOME}/.bashrc fi if [ -d ${HOME}/bin ] ; then PATH=${HOME}/bin:${PATH} fi PATH=/cygdrive/c/Users/craig/Programming/scripts:${PATH} PATH=/cygdrive/c/Program Files/MiKTeX 2.7/miktex/bin:${PATH} The last line is the guilty party, I added it by mistake and forgot to remove it. I've deleted it, and now the message doesn't appear. It was redundant because MiKTeX was already added to the PATH in Windows. Mea cupla... I thought it had something to do with the shortcut I was using becuase I hadn't seen it before. Thanks for your help! Craig -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/