Re: Vista, new install, x server does not start, startxwin.bat missing
Yaakov (Cygwin/X) wrote: On 17/02/2010 18:59, Scott Fordin wrote: FWIW, I've found that, under Vista, I have to run the Cygwin X server, bash shell, and xterm as Administrator for everything to work. There is nothing about the X server that requires Administrator privileges. I run W7 with the default UAC settings and I never see a prompt. Dunno. I can only get it to work on Vista if I run it as Administrator. Maybe UAC in Windows 7 differs somehow from UAC in Vista? Scott Yaakov Cygwin/X -- 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/ -- 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: Vista, new install, x server does not start, startxwin.bat missing
FWIW, I've found that, under Vista, I have to run the Cygwin X server, bash shell, and xterm as Administrator for everything to work. Scott Yaakov (Cygwin/X) wrote: On 17/02/2010 08:42, Jim Olson wrote: I found that using the (1 year old) startxwin.bat is easier than trying to figure out how to get startwin.exe with a $HOME/.startxwinrc file after trying to do the latter, because I would get wmaker warning: wrong option value for key NewStyle. Should be one of new, old, next wmaker warning: wrong option value for key NewStyle. Should be one of new, old, next wmaker fatal error: it seems that there is already a window manager running That's because startxwin with ~/.startxwinrc is for starting the X server in *multiwindow* mode. If you want to start an X desktop, you need to be using startx with ~/.xinitrc. when trying to use a $HOME/.startxwinrc equivalent to the old startxwin.bat: The old startxwin.bat served the same purpose and obviously did not start another window manager. You may have customized your copy at some point, but it was never shipped that way. Yaakov Cygwin/X -- 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/ -- 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: how do I get help if I can't figure out how to do anything?
Have you tried starting the Cygwin X Server with the -ac option to disable access control? Scott Gene C. Ruzicka wrote: Wendel Dean Renner wrote: Do you have a list of consultants? And it is not like I am ignorant of computers. I write c++ code. Without help, who is going to be able to use anything provided? Have managed to compile and link a Open GL, X/Motif program (using lesstif) and get Error: Can't open display. Need to be able to run program remotely on a ubuntu system. I can't get beyond connection refused. Ran xstartwin.bat and lost control c - control V on 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/ One issue that comes to mind is your environment. Have you tried running other x-clients such as xterm or xclock? Is the $DISPLAY environmental variable set? Cygwin is a tremendously useful bridge between Windows and Linux but it's often frustrating to use. -- 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/ -- 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: X server fails to start on Vista
Also be sure to start the X server with the Run as Administrator option. Ditto for the Cygwin bash shell. Scott Paul Loewenstein wrote: And make sure the icon isn't hidden (I set Vista to always show the X Windows icon). Paul Larry Hall (Cygwin X) wrote: Kim Goldov wrote: I downloaded Cygwin-X per the instructions in http://x.cygwin.com/docs/ug/setup-cygwin-x-installing.html When selecting Cygwin-X - XWin Server in the start menu, X does not start and I get the following /var/log/XWin.0.log ... /usr/bin/XWin -multiwindow -clipboard -silent-dup-error ddxProcessArgument - Initializing default screens winInitializeDefaultScreens - w 1280 h 1024 winInitializeDefaultScreens - Returning _XSERVTransSocketINETCreateListener: ...SocketCreateListener() failed _XSERVTransMakeAllCOTSServerListeners: server already running Fatal server error: Cannot establish any listening sockets - Make sure an X server isn't already running And you're sure there is no X-server running already? Is there an icon for it in the right corner of the task bar? -- 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/ -- 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: Another typing kills my xterm post...
Here's a copy of a post I sent previously about Solaris and X server issues. Could be useful in this context. -- Snip -- You know, as it so happens, I've been tracking down a solution to a similar problem I just started experiencing today. In my case though, I just upgraded from Ubuntu 8.04 to 8.10, and I'm trying to connect to a Solaris 10 box. I can connect, and certain applications work just fine, but a couple (in particular running a Java app withing Firefox 2.x), as soon as a type anything in a form field, Firefox crashes hard with XKEYBOARD resource errors. Based on what I've found today, the problem looks like it might be an X configuration error on the Solaris side, and it relates to Xorg versioning issues. Specifically, my Solaris 10 installation is using older versions of Xorg-related files; the new version of Ubunutu and, I gather, of the Cygwin/X server use new Xorg files. I'm in the process of applying a bunch of update patches to my Solaris box. In particular, patch 119059-45 was identified on https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/292973. We'll see if it works. Anyway, don't know if this might be any help to you. -- Snip -- Hope this helps, Scott fourkidsco wrote: All, I made the mistake of upgrading today and it has killed me. I am trying to bring a xwindow up from a Solaris 9 server to my Windows XP laptop running cygwin. So a few things out of the way: - Yes, I have read the FAQ. I am not setting XKeysymDB in any way and various fixes proposed in this an other posting areas don't work. I have followed everything in the FAQ to the letter to no avail. - I blew away my entire installation and reinstalled from scratch, so there are no stray startxwin.bat files around - I tried starting from the Start menu - Cygwin/X, from startxwin.bat, etc - I patched the Solaris system I am touching but it didn't fix anything. I can get an xterm to come up and it types just fine. But when I bring my app up, typing kills the window resulting in a core dump on the Solaris server. There is nothing of note in any local logs (on my laptop). No errors, no nothing. I do get a core file on the Solaris system, but I can't tell if anything in it tells me anything. I understand that this is an ongoing problem, but is there anything I have missed? -- 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: Connecting to an XServer with XWin
Just so you all know, it looks like installing the Xorg-related packages on my Solaris 10 machine (not difficult using the Sun Update Manager tool (/bin/updatemanager)) did the trick. No more X resource crashes on things like keyboard input (viz. XKEYBOARD). I hope other people find this useful. Scott Scott Fordin wrote: You know, as it so happens, I've been tracking down a solution to a similar problem I just started experiencing today. In my case though, I just upgraded from Ubuntu 8.04 to 8.10, and I'm trying to connect to a Solaris 10 box. I can connect, and certain applications work just fine, but a couple (in particular running a Java app withing Firefox 2.x), as soon as a type anything in a form field, Firefox crashes hard with XKEYBOARD resource errors. Based on what I've found today, the problem looks like it might be an X configuration error on the Solaris side, and it relates to Xorg versioning issues. Specifically, my Solaris 10 installation is using older versions of Xorg-related files; the new version of Ubunutu and, I gather, of the Cygwin/X server use new Xorg files. I'm in the process of applying a bunch of update patches to my Solaris box. In particular, patch 119059-45 was identified on https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/292973. We'll see if it works. Anyway, don't know if this might be any help to you. Scott jose isaias cabrera wrote: You might also want to check your firewall settings. Firewalls tend to get real touchy when the signatures for binary files change. With the firewall turned it off, (just XP) and same problem occurrs... -- 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/ -- 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: Connecting to an XServer with XWin
You might also want to check your firewall settings. Firewalls tend to get real touchy when the signatures for binary files change. Scott Jon TURNEY wrote: jose isaias cabrera wrote: Greetings! I just ran setup and upgraded to the new cygwin and something has broke. I was able to run this command before, xwin :0.0 -clipboard -query 13.142.6.222 -fp tcp/13.142.6.222:7100 I'm a bit suspicious of this command line as the server is called XWin and I would get the login screen of the Solaris 10 XServer and I was able to login. Now, I get the login screen, but when try to enter the login ID, when I type the first letter, the login screen refreshes and I can never enter login id. I have another cygwin setup that I have not updated and that one works great. Any ideas? No XWin.log gets created. Nothing gets written on the cygwin DOS screen neither. Are you looking for XWin.log in /var/log ? If you open a cygwin bash shell, type the command to run the X server, you get no output at all? If you add -once to the command used to launch the server, does it exit after your first connection attempt? (if so, this tells me that the XDM or whatever you are trying to log in to is closing the connection when you type, for it's own reasons, or maybe it just doesn't like us anymore...) -- 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/ -- 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: Connecting to an XServer with XWin
You know, as it so happens, I've been tracking down a solution to a similar problem I just started experiencing today. In my case though, I just upgraded from Ubuntu 8.04 to 8.10, and I'm trying to connect to a Solaris 10 box. I can connect, and certain applications work just fine, but a couple (in particular running a Java app withing Firefox 2.x), as soon as a type anything in a form field, Firefox crashes hard with XKEYBOARD resource errors. Based on what I've found today, the problem looks like it might be an X configuration error on the Solaris side, and it relates to Xorg versioning issues. Specifically, my Solaris 10 installation is using older versions of Xorg-related files; the new version of Ubunutu and, I gather, of the Cygwin/X server use new Xorg files. I'm in the process of applying a bunch of update patches to my Solaris box. In particular, patch 119059-45 was identified on https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/292973. We'll see if it works. Anyway, don't know if this might be any help to you. Scott jose isaias cabrera wrote: You might also want to check your firewall settings. Firewalls tend to get real touchy when the signatures for binary files change. With the firewall turned it off, (just XP) and same problem occurrs... -- 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/ -- 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/
Cygwin and Emacs on Vista
Hi, I can't get Emacs to work on Cygwin on Vista. Xemacs works just fine, but Emacs doesn't. When I try to launch Emacs in GUI mode from an xterm, the shell just hangs. When I try to launch it in console mode from a non-X bash shell, the shell just hangs. Again, Xemacs works; it's only Emacs that doesn't work. Running emacs-nox doesn't help. I've also tried using the -d and -nw options, but no joy. I'm running Cygwin on Windows Vista Home Premium SP1, as follows: $ uname -a CYGWIN_NT-6.0 balance 1.5.25(0.156/4/2) 2008-04-17 12:11 i686 Cygwin The version of Emacs I'm using is one that came with the Cygwin distribution, and is version 21.2.1. I've had no problem using the same Cygwin and Emacs distros on XP Pro. The problem seems to be only on Vista. Stupid Vista... I've googled it to no avail. Any clues? Thanks in advance, Scott -- 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: Windows Vista
Cygwin does indeed run on 32-bit versions of Windows Vista. Don't know about 64-bit versions. In my experience, there are a few catches to getting Cygwin to work on Vista: 1. Run the Cygwin setup as Administrator and in XP Compatibility Mode. 2. I had better luck when I did the install in two stages: First, I just downloaded the packages, then I ran setup again and chose the install from local repository option. 3. After installation, run Cygwin's rebaseall command from an ash (not bash) shell. 4. When you finally run the Cygwin bash shell for real, be sure to use Vista's Run as Administrator option. 5. Also make sure that your firewall is not blocking Xwin.exe or bash.exe. FWIW, the Xming X server works just fine on Vista, and you can use Xming as your X Server when running PuTTY or many if not all of the Cygwin X-based apps. Hope this helps, Scott Monson Hayes wrote: Not sure how to reply to a thread, but here are the details of what happens when I try to run Cygwin/X. First, I would like to comment that the following was suggested: Be sure to set up $DISPLAY in your .bashrc: export DISPLAY=localhost:0.0 What is interesting, is in my installation I cannot find a .bashrc file, although I did find one in my Windows XP installation. I am told to look at the XWin.log file on my computer running Windows Vista when I get the following fatal error: A fatal error has occurred and Cygwin/X will now exit Releast 6.8.99.901-4 XWin was started with the following command llin /usr/X11R6/bin/XWin -multiwindow - clipboard -silent-dup-error The XWin.log file is: (WW) /tmp mounted int textmode _XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created. (II) XF86Config is not supported (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information winAdjustVideoModeShadowGDI - Using Windows display depth of 32 bits per pixel winAllocateFBShadowGDI - Creating DIB with width: 1680 height: 1050 depth: 32 winInitVisualsShadowGDI - Masks 00ff ff00 00ff BPRGB 8 d 24 bpp 32 null screen fn ReparentWindow null screen fn RestackWindow InitQueue - Calling pthread_mutex_init InitQueue - pthread_mutex_init returned InitQueue - Calling pthread_cond_init InitQueue - pthread_cond_init returned winInitMultiWindowWM - Hello winMultiWindowXMsgProc - Hello winInitMultiWindowWM - Calling pthread_mutex_lock () winMultiWindowXMsgProc - Calling pthread_mutex_lock () MIT-SHM extension disabled due to lack of kernel support XFree86-Bigfont extension local-client optimization disabled due to lack of shared memory support in the kernel (--) Setting autorepeat to delay=500, rate=31 (--) winConfigKeyboard - Layout: 0409 (0409) (--) Using preset keyboard for English (USA) (409), type 4 (--) 8 mouse buttons found Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list! Fatal server error: could not open default font 'fixed' -- 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/ -- 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: Need help
Hi, Shahed, You need to use xhost in the Windows xterm to enable remote clients (in this case, the Solaris box) to connect to the Cygwin X server. You may also need to enable localhost to connect as well. Specifically: xhost +solaris_ip xhost +localhost You could also just do an xhost +, but that opens up your display to everyone, so I don't recommend it. You also need to make sure that X forwarding is enabled on the Windows side. There are a number of different ways to do this, but here's what I do to export the display of a Solaris app to a Windows machine: 1. (Windows) Open a Cygwin bash shell. 2. (Windows) Start the Cygwin X server and an xterm with the startx command. 3. (Windows) Allow connections to the Cygwin X server with the xhost command, as described above. 4. (Windows) Connect to the Solaris machine with ssh -X solaris_machine -l solaris_user_name 4. (Solaris) (optional) You shouldn't have to do this because you used -X with ssh, but depending on the Solaris app you're trying to display on your Windows system, you may need to explicitly export the Solaris display; for example, if you're using a C shell: setenv DISPLAY windows_machine:0.0 5. (Solaris) Launch your app through the ssh connection, and it should display on the Windows machine. Hope this helps, Scott Shahed Hussain wrote: Dear Concern, I need a help to login to a solaris machine using cygwin. As far as I know, the command x -query IP_ADDRESS should bring the window of the solaris machine in to the window machine. Can you please tell me what program has to be run in the solaris machine to enable this facility waiting for your feedback... BR // Shahed -- 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/ -- 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: XWin.exe not running on Vista
Have you tried starting Cygwin using Vista's Run as Administrator option? I've found that Cygwin and Vista don't get along at all unless you run the bash shell explicitly as Administrator. Also, your message indicates that you're starting XWin directly from bash, rather than using the startx script. FWIW, I find it more generally useful to use startx. Hope this helps, Scott [EMAIL PROTECTED] wrote: Hi all, I have installed the following Cygwin version on a Vista WS ( AMD 64 X2 Dual Core Processor with 32-bits Operating System): $ uname -a CYGWIN_NT-6.0 nodename 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin When I try to start XWin.exe, I get the following message: [EMAIL PROTECTED] /usr/X11R6/bin $ XWin -screen 0 1280 1024 -logverbose 10 Welcome to the XWin X Server Vendor: The Cygwin/X Project Release: 6.8.99.901-4 Contact: cygwin-xfree@cygwin.com XWin was started with the following command line: XWin -screen 0 1280 1024 -logverbose 10 _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root winValidateArgs - g_iNumScreens: 1 iMaxConsecutiveScreen: 1 winValidateArgs - Returning. (II) XF86Config is not supported (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information winDetectSupportedEngines - Windows NT/2000/XP winDetectSupportedEngines - DirectDraw installed winDetectSupportedEngines - DirectDraw4 installed winDetectSupportedEngines - Returning, supported engines 0007 winScreenInit - dwWidth: 1280 dwHeight: 1024 winSetEngine - Using Shadow DirectDraw NonLocking winAdjustVideoModeShadowDDNL - Using Windows display depth of 32 bits per pixel winCreateBoundingWindowWindowed - User w: 1280 h: 1024 winCreateBoundingWindowWindowed - Current w: 1280 h: 1024 winAdjustForAutoHide - Original WorkArea: 0 0 1170 1920 winAdjustForAutoHide - Adjusted WorkArea: 0 0 1170 1920 winCreateBoundingWindowWindowed - WindowClient w 1280 h 1024 r 1280 l 0 b 1024 t 0 winWindowProc - WM_ACTIVATEAPP winCreateBoundingWindowWindowed - Returning winCreatePrimarySurfaceShadowDDNL - Creating primary surface winCreatePrimarySurfaceShadowDDNL - Created primary surface winCreatePrimarySurfaceShadowDDNL - Attached clipper to primary surface winAllocateFBShadowDDNL - lPitch: 5120 winAllocateFBShadowDDNL - Created shadow pitch: 5120 winAllocateFBShadowDDNL - Created shadow stride: 1280 winFinishScreenInitFB - Masks: 00ff ff00 00ff winInitVisualsShadowDDNL - Masks 00ff ff00 00ff BPRGB 8 d 24 bpp 32 winRandRInit () winCreateDefColormap - Deferring to fbCreateDefColormap () winFinishScreenInitFB - returning winScreenInit - returning InitOutput - Returning. MIT-SHM extension disabled due to lack of kernel support XFree86-Bigfont extension local-client optimization disabled due to lack of shar ed memory support in the kernel (--) Setting autorepeat to delay=500, rate=31 (--) winConfigKeyboard - Layout: 100C (100c) (--) Using preset keyboard for French (Switzerland) (100c), type 4 Rules = xorg Model = pc105 Layout = fr_CH Variant = (null) Options = (n ull) The XKEYBOARD keymap compiler (xkbcomp) reports: Error:Can't find file pc/fr_CH for symbols include Exiting Abandoning symbols file default Errors from xkbcomp are not fatal to the X server (--) 3 mouse buttons found Then XWin.exe stops working with the following message: roblem signature: Problem Event Name: APPCRASH Application Name: XWin.exe Application Version: 0.0.0.0 Application Timestamp:43603add Fault Module Name:ntdll.dll Fault Module Version: 6.0.6001.18000 Fault Module Timestamp: 4791a7a6 Exception Code: c710 Exception Offset: 00088e7a OS Version: 6.0.6001.2.1.0.256.4 Locale ID:2055 Additional Information 1: e0b3 Additional Information 2: 3381a2bb347d2a7fd93caef5716d692f Additional Information 3: 3301 Additional Information 4: 18b93e7bb56d45169c16a0a55fcb86c0 Read our privacy statement: http://go.microsoft.com/fwlink/?linkid=50163clcid=0x0409 Has anone an idea what it could be and what can I do? Many thanks for your help. Felix Maurer Die Schweizerische Post Informationstechnologie IT244 Softwareintegration I Webergutstrasse 12 CH-3030 Bern Tel: +41 (0)58 338 98 49 Fax: +41 (0)31 667 61 13 Email: mailto:[EMAIL PROTECTED] -- 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/ -- 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: Windows Vista
Brian Dessent wrote: Scott Fordin wrote: Also make sure that you run the Cygwin setup as Administrator. Eh? I just installed on Vista yesterday and all I had to do was click on setup.exe. Vista asked to run it as administrator since the executable is named setup.exe. I didn't have to do anything special. Dunno. It was the only I way I could get it to work, and I was following advice I read elsewhere. In any case, it did work when I ran it as Administrator. Are there any downsides to doing it this way? Scott -- 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: Windows Vista
Larry Hall (Cygwin X) wrote: Mariana Silva wrote: Hello I am trying to install cygwin/X in Windows Vista and I get a message saying that the installation could not be completed. Is there a new version of cygwin/X for this operational system? No. The error you got is unlikely to be as a result of Vista. Try a different mirror. Also make sure that you run the Cygwin setup as Administrator. This doesn't just mean that your user account has Administrator rights; you have to right-click the Cygwin setup.exe and then choose Run as Administrator from the pop-up menu. FWIW, I have both Cygwin and Xming on my Vista notebook. I use Cygwin when I need a real shell environment on my Vista machine. I use Xming and PuTTY when I just need an X server and an ssh session on a remote Solaris or Linux box. Both work great! Hope this helps, Scott -- 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: ssh -x
Holger Krull wrote: Marco Meoni schrieb: hi, I'm new with cygwin. I've mainly installed it to connect to a linux server running GUI applications. In fact, I've read that with X11 forwarding (ssh -X) I can run remote applications and display the GUI on my pc running cygwin. Unfortunately I get errors like can't open display. Does anybody know what do I have to setup before? (i guess start X11 server on my local pc) Your guess is right. You have to start a local X11 server (startx). And set DISPLAY before you start ssh. Also remember that some applications need ssh -Y. You also may need to use xhost to add the remote machine to the access control list on your local machine; for example, in your Cygwin shell: /usr/X11R6/bin/xhost +linux_machine_name Some applications also don't seem to work with ssh -X or ssh -Y. For those apps, you may need to explicitly export the remote machine display to your local machine; for example, from your Linux box: export DISPLAY=cygwin_machine_name:0.0 Scott -- 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/ -- 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: Looking For Clipboard Solution
Koziatek, Joseph wrote: Hi All, I'm running Cygwin X on a Dell/Windows XP to get a full Xsession on a Solaris box and occasionally my X clipboard fails to work between X and MS Windows. It takes quite some time (weeks) for it to happen. The MS Windows clipboard continues to work withen itself and the X clipboard continues to work withen itself (other X Windows) but they don't work with each other. Once it fails I need to restart the X Server in it's entirety to get X clipboard and MS Windows clipboard to talk to each other. I use ClipMate from Thornsoft Development (http://www.thornsoft.com). It does cost money, but it is totally worth it, IMHO. It works very well with Cygwin, and in any case, on the rare occasions that I've lost the connection between ClipMate and some other app, ClipMate's Re-Establish Clipboard Connection command restores the connection without any problems and without having to close the app to which you're trying to connect. Scott I installed this Cygwin about 8 months ago from one of the Cygwin setup mirror sites. I am using the -clipboard option to XWin: XWin -nodecoration -emulate3buttons -clipboard -silent-dup-error -query my_solaris_box Is there a way that I can recover clipboad functionality between X and MS Windows WITHOUT RESTART of entire X Server? Also, I really don't want to take the time to do an entire Cygwin re-installation now, but would like to know if there is a quick simple fix.. I appreciate your advice. Joe -- 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/ -- 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: 1.5.21: startxwin.sh works, startxwin.bat does not work
René Berber wrote: Scott Fordin wrote: [snip] Strange thing though is that it does work on another machine. Very strange, the differences you sent don't show an invalid script at all. One of the 2 files has \r\n endings (that's the reason for the first 2 differences) but as long as they are being executed by command.com it doesn't matter. Thanks again, René. I found the solution to the startxserver.bat problem! Using one of your clues, I discovered that the Singular post-install script did not update my PATH correctly. I fixed the PATH to c:\cygwin\bin and c:\cygwin\X11R6\bin, and lo, the X startup script worked. You can create a shortcut to startx.sh and then edit its Properties so the target ends up like: C:\cygwin\bin\run.exe -p /usr/X11R6/bin/ bash --login -c startx [Ref:http://permalink.gmane.org/gmane.os.cygwin.xfree/16545] Excellent. This is just what I was looking for. I use a shortcut to start X Windows only (no xterm): C:\cygwin\bin\run.exe -p /usr/X11R6/bin XWin -multiwindow -clipboard -silent-dup-error -dpi 100 Very nice. Thanks again René. I really appreciate your thoughtful responses and the way you stuck with the problem. Best regards, Scott -- 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: 1.5.21: startxwin.sh works, startxwin.bat does not work
René Berber wrote: Scott Fordin wrote: Thanks again for replying, René. Sorry it took me a couple of days to get back to you. My responses are embedded below. OK, it seems that the startxserver is not even a valid script (I haven't tested, I don't have Singular, I'm saying that from the result you had). Strange thing though is that it does work on another machine. Question: Why were you trying to start XWin with that bat file? I don't know what it is for, but seems redundant. Well, the way things install, a Start X Server shortcut is installed on the desktop. It's more handy than opening a bash shell and then running startx from there. I've tried configuring a similar shortcut for startx, but I can't get it to work. Since startxwin.bat fails with the same error as startxserver.bat, I can't just use that on the desktop instead. I don't have a standalone version of Perl installed, so I can't run the .sh version of the script. I don't know how else to do it. I looked, but I didn't find an answer, but do you know of a way I can pass a shell command to bash.exe from the Windows command prompt? I then tried the /usr/X11R6/bin/startxwin.bat script and got the same error. [snip] Now to the real problem: are the files different? There are differences, but none seems significant vis a vis this particular problem. I've attached the diff output. I can't even figure out where the lapack libraries are being called... They should be. There is no reference to the Singular directory in the normal startxwin.bat file... check for symbolic or hard links, perhaps Singular's (post)installation is doing something wrong. I see no other explanation for getting the same error message. Thanks again, Scott 5c5 REM --- REM 10c10 REM example, if you installed Cygwin in \foo\bar\baz\cygwin, you will need --- REM example, if you installed Cygwin in \foo\bar\baz\cygwin, you will need 20a21 SET RUN=%CYGWIN_ROOT%\bin\run -p /usr/X11R6/bin 145c146,166 run XWin -multiwindow -clipboard -silent-dup-error \ No newline at end of file --- %RUN% XWin -multiwindow -clipboard -silent-dup-error REM Startup an xterm, using bash as the shell. %RUN% xterm -e /usr/bin/bash -l REM REM Startup the twm window manager. REM WARNING: Do not use an external window manager in conjunction with REM the ``-multiwindow'' command-line parameter for XWin. Doing so REM would start two window managers, which is never supposed to happen. REM REM %RUN% twm REM Set a background color. Only needed when not using -multwindow for XWin. REM %RUN% xsetroot -solid aquamarine4 -- 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: 1.5.21: startxwin.sh works, startxwin.bat does not work
Thanks for replying, René. My responses are embedded inline. René Berber wrote: When I tried running the C:\cygwin\lib\Singular\startxserver.bat -^ That is not from the Cygwin distribution. Dunno. I ran the latest official Cygwin setup.exe, and chose to install *all* the packages at one of the mirrors listed in the install window: ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/sources.redhat.com/cygwin The Singular stuff came with that. You seem to have installed something else on top of Cygwin. Nope. Just the stuff that came through the Cygwin install. - Snip - 'C:\cygwin\lib\lapack' is not recognized as an internal or external command, operable program or batch file. - Snip - So? That means the above .bat file is trying to execute something else that also doesn't come with Cygwin... and is not even an executable. Again. Dunno. It's what came with the distro. I then tried the /usr/X11R6/bin/startxwin.bat script and got the same error. If you received the same error message then something, not Cygwin, messed up your installation. Same error probably means you executed the same file, are they really named startxserver.bat and startxwin.bat, or is just a typo? Nope. Two different files. startxserver.bat came with the Singular stuff. startxwin.bat is the standard batch file included with Cygwin in /usr/X11R6/bin. Again, the two things to remember here are that startxwin.sh works just fine, and this exact same distro -- Singular stuff included -- works just fine on my XP machine. Moreover, before I rebuilt this Win2K box, this distribution worked just fine as well. I've tried totally removing and reinstalling Cygwin a couple of times already. Did you check what was left on the above directory? If Cygwin did not install whatever is there it will not delete it. I completely deleted the Cygwin directories, which included the Singular stuff. Thanks again, Scott -- 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/