X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Message-ID: <4C80273D.3030401@bopp.net> Date: Thu, 02 Sep 2010 17:37:49 -0500 From: Jeremy Bopp User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: export DISPLAY={localWorkstationIP} in mintty References: <29609361 DOT post AT talk DOT nabble DOT com> <29609623 DOT post AT talk DOT nabble DOT com> In-Reply-To: <29609623.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 9/2/2010 5:12 PM, PaulHR wrote: > > I got the standard error..... > Error: Can't open display: > > I made sure xWin Server was running > Did a -vvv on the ssh and saw nothing for X11 > > What else can I look at? It would be really helpful if you included a little context from earlier bits of the conversation to which you are responding. I'm going to assume that you responded to my message suggesting you use the -X option to ssh. ;-) It's possible that the corresponding server-side option to allow that feature is disabled. If so, you could try to reconfigure the ssh server. The option to enable is named X11Forwarding and it should be set to "yes". If you are not allowed to do that, then your only option is to go back to your original idea of figuring out your local IP. This will require a bit more effort on your part. When you connect to the remote machine, there should be an environment variable named SSH_CLIENT set. It appears to be a space delimited list where the first item is your client's IP address. Given that and assuming your shell is bash on the server, you can use the following to set the DISPLAY environment variable after you open your connection: export DISPLAY=$(echo $SSH_CLIENT | cut -d' ' -f1):0 If that works for you, you may want to put it in your .bashrc or .bash_profile script on the server side so that it happens automatically every time you connect. -Jeremy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple