Skip to content
Snippets Groups Projects
cygwin-and-x11-forwarding.md 828 B
Newer Older
  • Learn to ignore specific revisions
  • Lukáš Krupčík's avatar
    Lukáš Krupčík committed
    Cygwin and X11 forwarding
    
    Lukáš Krupčík's avatar
    Lukáš Krupčík committed
    =========================
    
    
    Lukáš Krupčík's avatar
    Lukáš Krupčík committed
    **If no able to forward X11 using PuTTY to CygwinX**
    
    Lukáš Krupčík's avatar
    Lukáš Krupčík committed
    
    
    Lukáš Krupčík's avatar
    Lukáš Krupčík committed
    ```bash
    
    Lukáš Krupčík's avatar
    Lukáš Krupčík committed
    [usename@login1.anselm ~]$ gnome-session &
    [1] 23691
    [usename@login1.anselm ~]$ PuTTY X11 proxy: unable to connect to forwarded X server: Network error: Connection refused
    PuTTY X11 proxy: unable to connect to forwarded X server: Network error: Connection refused
    
      (gnome-session:23691): WARNING **: Cannot open display:**
    
    Lukáš Krupčík's avatar
    Lukáš Krupčík committed
    ```
    
    Lukáš Krupčík's avatar
    Lukáš Krupčík committed
    
    
    1. Locate and modify Cygwin shortcut that uses [startxwin](http://x.cygwin.com/docs/man1/startxwin.1.html)
    
    Lukáš Krupčík's avatar
    Lukáš Krupčík committed
        locate
        C:cygwin64binXWin.exe
        change it
        to
        C:*cygwin64binXWin.exe -listen tcp*
    
    
    Lukáš Krupčík's avatar
    Lukáš Krupčík committed
    ![XWin-listen-tcp.png](../../../img/XWinlistentcp.png "XWin-listen-tcp.png")
    
    Lukáš Krupčík's avatar
    Lukáš Krupčík committed
    
    2. Check Putty settings:
         Enable X11 forwarding
    
    Lukáš Krupčík's avatar
    Lukáš Krupčík committed
    
    
        ![](../../../img/cygwinX11forwarding.png)