Re: Launching Cygwin/X in background with no clients

2015-02-03 Thread Mark Hansen

On 2/2/2015 9:12 PM, Jim Garrison wrote:

On 2/2/2015 5:21 PM, Yaakov Selkowitz wrote:

 On Mon, 2015-02-02 at 16:52 -0800, Jim Garrison wrote:

 I updated Cygwin (which pulled in a bunch of Cygwin-X updates) and
 now startxwin no longer works.  According to the log (below) it starts
 the XServer successfully but then shuts down.

 My .startxwinrc is an empty (zero-length) file to prevent automatic
 launching of the default clients, which I don't need.


 http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-startxwinrc-exit


Thanks.

I want to start an X server in the background, with no visible
clients, if it's not already running, whenever I launch a mintty
session. X should continue to run even if the mintty session that
started it is closed.

Currently I have the following in my .bash_profile

ps -ef|grep -q XWin || nohup setsid startxwin 2startxwin.log

This now works again after adding exec sleep infinity in
.startxwinrc, but I can't help feel my whole approach is a bad hack.
Both nohup and setsid seem to be required. Without setsid the mintty
will hang if I attempt to close it with exit or ^D, and without nohup
the X server terminates whenever the first mintty session is closed.

Is there a cleaner way to accomplish this objective?



Are you willing to have the X Server launch when you log into windows and just 
keep it
running? This is what I do and I find it very useful. I launch the X server 
when I log
in using a shortcut with the following target:

  C:\Apps\cygwin\bin\run.exe /usr/bin/bash.exe -l -c /usr/bin/startxwin.exe -- -emulate3buttons 100 -multiwindow -clipboard 
-swcursor


I then place this shortcut into the Startup folder of my Start menu.

I hope this helps.

--
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: Cygwin, Python Anaconda 32-bit, Google Cloud SDK: Issues with Python functionality inside of Cygwi

2015-02-03 Thread David Stacey

On 03/02/15 03:43, mjmv wrote:

When I went to install Cygwin, I did not see an option for Python 2.7, which is 
what the GC SDK requires (more specifically, 2.7 32-bit).


32-bit Cygwin has python 2.7.8, which should work with Google Cloud SDK. 
You can select this by searching for 'python' on the package selection 
page of the Cygwin installer - or you can find it by expanding the 
'Python' group on the same page.


According to the Google Cloud SDK docs [1], you will also require 
openssh and curl.


Hope this helps,

Dave.

[1] - https://cloud.google.com/sdk/ - See 'Alternative methods' tab.


--
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/