public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Cygwin/X11 on Windows 10
@ 2020-09-29 10:26 Thomas Schweikle
  2020-09-29 12:05 ` Thomas Schweikle
  2020-09-29 12:27 ` Eliot Moss
  0 siblings, 2 replies; 6+ messages in thread
From: Thomas Schweikle @ 2020-09-29 10:26 UTC (permalink / raw)
  To: Cygwin

Hi!

I've managed to install cygwin/X on Windows 10. Now I'm looking for command
"startxwin" -- does not seen to exist. If following instructions from
https://x.cygwin.com/docs/ug/setup.html it should be installed? Or is an
extra package selected needed beyond what is given in upper mentioned
handbook online?

If I start "XWin.exe -multiwindow" directly it starts and finishes
immediately. The recommended idea of creating an
executable "~/.startxwinrc" holding only "exec sleep infinity" does not
help. Same behaviour as before. Any other suggestions?

-- 
Thanks in advance for any help you can provide!
Thomas

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Cygwin/X11 on Windows 10
  2020-09-29 10:26 Cygwin/X11 on Windows 10 Thomas Schweikle
@ 2020-09-29 12:05 ` Thomas Schweikle
  2020-09-29 12:27 ` Eliot Moss
  1 sibling, 0 replies; 6+ messages in thread
From: Thomas Schweikle @ 2020-09-29 12:05 UTC (permalink / raw)
  To: Cygwin

The documentation given at https://x.cygwin.com/docs/ug/setup.html isn't
really clear about what packages shall be selected. It only states one
awaiting all others pulled in as dependencies. Since this isn't true it
might be better to give a list which ones to select.

Now the next problem:
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error

Any idea about this problem?

On Tue, Sep 29, 2020 at 12:26 PM Thomas Schweikle <tschweikle@gmail.com>
wrote:

> Hi!
>
> I've managed to install cygwin/X on Windows 10. Now I'm looking for
> command "startxwin" -- does not seen to exist. If following instructions
> from https://x.cygwin.com/docs/ug/setup.html it should be installed? Or
> is an extra package selected needed beyond what is given in upper mentioned
> handbook online?
>
> If I start "XWin.exe -multiwindow" directly it starts and finishes
> immediately. The recommended idea of creating an
> executable "~/.startxwinrc" holding only "exec sleep infinity" does not
> help. Same behaviour as before. Any other suggestions?
>
> --
> Thanks in advance for any help you can provide!
> Thomas
>
>

-- 
Thomas

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Cygwin/X11 on Windows 10
  2020-09-29 10:26 Cygwin/X11 on Windows 10 Thomas Schweikle
  2020-09-29 12:05 ` Thomas Schweikle
@ 2020-09-29 12:27 ` Eliot Moss
  2020-09-30  7:23   ` Thomas Schweikle
  1 sibling, 1 reply; 6+ messages in thread
From: Eliot Moss @ 2020-09-29 12:27 UTC (permalink / raw)
  To: Cygwin

On 9/29/2020 6:26 AM, Thomas Schweikle via Cygwin wrote:
 > Hi!
 >
 > I've managed to install cygwin/X on Windows 10. Now I'm looking for command
 > "startxwin" -- does not seen to exist. If following instructions from
 > https://x.cygwin.com/docs/ug/setup.html it should be installed? Or is an
 > extra package selected needed beyond what is given in upper mentioned
 > handbook online?
 >
 > If I start "XWin.exe -multiwindow" directly it starts and finishes
 > immediately. The recommended idea of creating an
 > executable "~/.startxwinrc" holding only "exec sleep infinity" does not
 > help. Same behaviour as before. Any other suggestions?

startxwin is in the xinit package.  Personally I use xlaunch, in the
xlaunch package.  xlaunch with no arguments fires up a GUI where you
can configure it and save an xlaunch file, e.g., ~/config.xlaunch.
I put a link to xlaunch in my Windows task bar, with the follow
command line it:

C:\cygwin64\bin\run.exe /bin/xlaunch -p /usr/bin -run /home/moss/config.xlaunch

You'll need to change paths for your file locations, of course.

It uses startxwin.  Below is my personal .startxwinrc file for a sample.  It
starts a couple of xterm windows and an emacs, all iconized.  The emacs
geometry suits my high resolution screen.  The "wait" is important - otherwise
things exit immediately and the X server terminates.

#!/bin/bash

xrdb -merge ${HOME}/.Xdefaults
xmodmap ${HOME}/.Xmodmap

UC="${USER} console"
xterm +tb -geometry 110x62+4+0  -T "${USER}" -n "${USER}" -name "${USER}" -bg rgbi:.0/.2/.2    -ls 
-iconic &
xterm +tb -geometry 110x62-10+0 -T "${UC}"   -n "${UC}"   -name "${UC}"   -bg rgbi:.5/.0/.1    -ls 
-iconic &
emacs --chdir=${HOME} --no-splash --iconic --geometry=130x60+100+100 -T emacs &
wait

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Cygwin/X11 on Windows 10
  2020-09-29 12:27 ` Eliot Moss
@ 2020-09-30  7:23   ` Thomas Schweikle
  2020-09-30 13:41     ` Eliot Moss
  2020-09-30 17:20     ` Marco Atzeri
  0 siblings, 2 replies; 6+ messages in thread
From: Thomas Schweikle @ 2020-09-30  7:23 UTC (permalink / raw)
  To: moss; +Cc: Cygwin

Tried it. Does not work. X11 is fired up and terminates immediately. I am
using:
~/.startxwinrc:
#!/bin/bash
xterm &
exec sleep infinity

changing "exec sleep infinity" to wait does not change anything.
"~/.startxwinrc" is mode 0755:
-rwxr-xr-x  1 sct-muc user     42 30. Sep 09:12 .startxwinrc

And XLaunch is started with:
C:\cygwin\bin\run.exe /bin/xlaunch -p /usr/bin -run
/home/sct-muc/.config/XLaunch/config.xlaunch

config.xlaunch holds:
<?xml version="1.0" encoding="UTF-8"?>
<XLaunch WindowMode="MultiWindow" ClientMode="NoClient" LocalClient="True"
 Display="0" RemoteProtocol="" LocalProgram="xterm" RemoteProgram="xterm"
 RemoteHost="" RemoteUser="" XDMCPHost="" XDMCPBroadcast="False"
 XDMCPIndirect="False" Clipboard="True" ExtraParams="" Wgl="True"
 DisableAC="False" XDMCPTerminate="False" SSHKeyChain="False"
 SSHTerminal="True" ExtraSSH=""/>



On Tue, Sep 29, 2020 at 2:30 PM Eliot Moss <moss@cs.umass.edu> wrote:

> On 9/29/2020 6:26 AM, Thomas Schweikle via Cygwin wrote:
>  > Hi!
>  >
>  > I've managed to install cygwin/X on Windows 10. Now I'm looking for
> command
>  > "startxwin" -- does not seen to exist. If following instructions from
>  > https://x.cygwin.com/docs/ug/setup.html it should be installed? Or is
> an
>  > extra package selected needed beyond what is given in upper mentioned
>  > handbook online?
>  >
>  > If I start "XWin.exe -multiwindow" directly it starts and finishes
>  > immediately. The recommended idea of creating an
>  > executable "~/.startxwinrc" holding only "exec sleep infinity" does not
>  > help. Same behaviour as before. Any other suggestions?
>
> startxwin is in the xinit package.  Personally I use xlaunch, in the
> xlaunch package.  xlaunch with no arguments fires up a GUI where you
> can configure it and save an xlaunch file, e.g., ~/config.xlaunch.
> I put a link to xlaunch in my Windows task bar, with the follow
> command line it:
>
> C:\cygwin64\bin\run.exe /bin/xlaunch -p /usr/bin -run
> /home/moss/config.xlaunch
>
> You'll need to change paths for your file locations, of course.
>
> It uses startxwin.  Below is my personal .startxwinrc file for a sample.
> It
> starts a couple of xterm windows and an emacs, all iconized.  The emacs
> geometry suits my high resolution screen.  The "wait" is important -
> otherwise
> things exit immediately and the X server terminates.
>
> #!/bin/bash
>
> xrdb -merge ${HOME}/.Xdefaults
> xmodmap ${HOME}/.Xmodmap
>
> UC="${USER} console"
> xterm +tb -geometry 110x62+4+0  -T "${USER}" -n "${USER}" -name "${USER}"
> -bg rgbi:.0/.2/.2    -ls
> -iconic &
> xterm +tb -geometry 110x62-10+0 -T "${UC}"   -n "${UC}"   -name "${UC}"
>  -bg rgbi:.5/.0/.1    -ls
> -iconic &
> emacs --chdir=${HOME} --no-splash --iconic --geometry=130x60+100+100 -T
> emacs &
> wait
> --
> Problem reports:      https://cygwin.com/problems.html
> FAQ:                  https://cygwin.com/faq/
> Documentation:        https://cygwin.com/docs.html
> Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
>


-- 
Thomas

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Cygwin/X11 on Windows 10
  2020-09-30  7:23   ` Thomas Schweikle
@ 2020-09-30 13:41     ` Eliot Moss
  2020-09-30 17:20     ` Marco Atzeri
  1 sibling, 0 replies; 6+ messages in thread
From: Eliot Moss @ 2020-09-30 13:41 UTC (permalink / raw)
  To: Thomas Schweikle; +Cc: Cygwin

On 9/30/2020 3:23 AM, Thomas Schweikle wrote:
 > Tried it. Does not work. X11 is fired up and terminates immediately. I am using:
 > ~/.startxwinrc:
 > #!/bin/bash
 > xterm &
 > exec sleep infinity
 >
 > changing "exec sleep infinity" to wait does not change anything. "~/.startxwinrc" is mode 0755:
 > -rwxr-xr-x  1 sct-muc user     42 30. Sep 09:12 .startxwinrc
 >
 > And XLaunch is started with:
 > C:\cygwin\bin\run.exe /bin/xlaunch -p /usr/bin -run /home/sct-muc/.config/XLaunch/config.xlaunch
 >
 > config.xlaunch holds:
 > <?xml version="1.0" encoding="UTF-8"?>
 > <XLaunch WindowMode="MultiWindow" ClientMode="NoClient" LocalClient="True"
 >   Display="0" RemoteProtocol="" LocalProgram="xterm" RemoteProgram="xterm"
 >   RemoteHost="" RemoteUser="" XDMCPHost="" XDMCPBroadcast="False"
 >   XDMCPIndirect="False" Clipboard="True" ExtraParams="" Wgl="True"
 >   DisableAC="False" XDMCPTerminate="False" SSHKeyChain="False"
 >   SSHTerminal="True" ExtraSSH=""/>

My config.xlaunch seems substantially different:

<?xml version="1.0" encoding="UTF-8"?>
<XLaunch WindowMode="MultiWindow" ClientMode="StartProgram" LocalClient="True" Display="0" 
RemoteProtocol="" LocalProgram=".startxwinrc" RemoteProgram="xterm" RemoteHost="" RemoteUser="" 
XDMCPHost="" XDMCPBroadcast="False" XDMCPIndirect="False" Clipboard="True" ExtraParams="-unixkill 
-listen tcp -clipboard -resize -engine 1 -emulate3buttons 100" Wgl="False" DisableAC="True" 
XDMCPTerminate="False" SSHKeyChain="False" SSHTerminal="True" ExtraSSH=""/>

Note that I set to start the .atartxwinrc program locally.  Also note the
extra parameters to the X server (though certainly not all of those are
relevant, just preferences).

You can also examine your /var/log/xwin/XWin.0.log file for clues.

Regards - Eliot Moss

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Cygwin/X11 on Windows 10
  2020-09-30  7:23   ` Thomas Schweikle
  2020-09-30 13:41     ` Eliot Moss
@ 2020-09-30 17:20     ` Marco Atzeri
  1 sibling, 0 replies; 6+ messages in thread
From: Marco Atzeri @ 2020-09-30 17:20 UTC (permalink / raw)
  To: cygwin

On 30.09.2020 09:23, Thomas Schweikle via Cygwin wrote:
> Tried it. Does not work. X11 is fired up and terminates immediately. I am
> using:
> ~/.startxwinrc:
> #!/bin/bash
> xterm &
> exec sleep infinity
> 
> changing "exec sleep infinity" to wait does not change anything.
> "~/.startxwinrc" is mode 0755:
> -rwxr-xr-x  1 sct-muc user     42 30. Sep 09:12 .startxwinrc
> 


bottom post on this list, please

Have you tried without any ~/.startxwinrc ?





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-09-30 17:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-29 10:26 Cygwin/X11 on Windows 10 Thomas Schweikle
2020-09-29 12:05 ` Thomas Schweikle
2020-09-29 12:27 ` Eliot Moss
2020-09-30  7:23   ` Thomas Schweikle
2020-09-30 13:41     ` Eliot Moss
2020-09-30 17:20     ` Marco Atzeri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).