Running XWindow Programs in Cygwin

I installed all the necessary packages to run graphics programs in Cygwin.

Now I have to do this to start the XWindow program:

1) /bin/startxwin.sh
2) It launches a separate window (window X?)
2) In this X Window, ssh -X user @server (this is the remote box in which I want to run these programs)
3) Then in In this X Window, I can run GUI programs such as "xclock".

My question is: can I directly make ssh -X user @server in my original Cygwin window and run GUI programs directly, instead of launching a separate X Window and doing it there?

Any instructions are welcome !!!!

+3
source share
2 answers

If you need a good graphical interface, AFAIK you need an X server to display graphics from your remote "X client".

If you are worried that you are manually using the X server (?), You can start your X server at startup. On the desktop, I do this personnaly (until it uses the X server provided by Cygwin, but commercial).


Edit: according to all the comments, you should try: export DISPLAY = xxx: 0.0, xxx, which is the IP address of the computer hosting the server x, and add it to your .profile file (or the .bashrc file should be in order but I remember .profile better for this kind of thing, however I might be wrong ..)

+2
source

, X Window ( startxwin.sh). "ssh -X" . ,

export DISPLAY = Cygwin: 0.0

cygwin, GUI .

+1

Source: https://habr.com/ru/post/1708234/


All Articles