Skip to content

Instantly share code, notes, and snippets.

@LAK132
Last active January 6, 2021 02:08
Show Gist options
  • Select an option

  • Save LAK132/fcc946f848f9ed87dbef289f2d30096d to your computer and use it in GitHub Desktop.

Select an option

Save LAK132/fcc946f848f9ed87dbef289f2d30096d to your computer and use it in GitHub Desktop.

Revisions

  1. LAK132 revised this gist Jan 6, 2021. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions Makefile
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,11 @@
    ifeq ($(shell grep -a -h -i microsoft /proc/version),)
    DISPLAY =
    else
    ifneq ($(shell grep -a -h -i microsoft /proc/version),)
    # // For use on Windows (WSL) with cygwinX
    # // Requires xinit, xauth and xhost probably
    # // Start the X11 server with `path\to\cygwin64\bin\run.exe --quote /usr/bin/bash.exe -l -c "cd; exec /usr/bin/startxwin -- +iglx -listen tcp"`
    # // If you get "Authorization required, but no authorization protocol specified"
    # // then try running `DISPLAY=:0.0 xhost +` in the cygwin terminal after
    # // starting the X11 server.
    DISPLAY = "`cat /etc/resolv.conf | grep nameserver | awk '{ print $$2 }'`:0.0"
    LIBGLARGS = LIBGL_ALWAYS_INDIRECT=1 LIBGL_ALWAYS_SOFTWARE=1
    endif
    DISPLAYARGS = DISPLAY=$(DISPLAY) $(LIBGLARGS)
  2. LAK132 revised this gist Jan 5, 2021. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions Makefile
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,11 @@
    ifeq ($(shell grep -a -h -i microsoft /proc/version),)
    DISPLAY =
    else
    # For use on Windows (WSL) with cygwinX
    # Requires xinit, xauth and xhost probably
    # Start the X11 server with `path\to\cygwin64\bin\run.exe --quote /usr/bin/bash.exe -l -c "cd; exec /usr/bin/startxwin -- +iglx -listen tcp"`
    # If you get "Authorization required, but no authorization protocol specified"
    # then try running `DISPLAY=:0.0 xhost +` in the cygwin terminal after
    # starting the X11 server.
    # // For use on Windows (WSL) with cygwinX
    # // Requires xinit, xauth and xhost probably
    # // Start the X11 server with `path\to\cygwin64\bin\run.exe --quote /usr/bin/bash.exe -l -c "cd; exec /usr/bin/startxwin -- +iglx -listen tcp"`
    # // If you get "Authorization required, but no authorization protocol specified"
    # // then try running `DISPLAY=:0.0 xhost +` in the cygwin terminal after
    # // starting the X11 server.
    DISPLAY = "`cat /etc/resolv.conf | grep nameserver | awk '{ print $$2 }'`:0.0"
    endif
  3. LAK132 revised this gist Jan 5, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Makefile
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@ DISPLAY =
    else
    # For use on Windows (WSL) with cygwinX
    # Requires xinit, xauth and xhost probably
    # Start the X11 server with `path\to\cygwin64\bin\run.exe --quote /usr/bin/bash.exe -l -c "cd; exec /usr/bin/startxwin -- +iglx -nowgl -listen tcp"`
    # Start the X11 server with `path\to\cygwin64\bin\run.exe --quote /usr/bin/bash.exe -l -c "cd; exec /usr/bin/startxwin -- +iglx -listen tcp"`
    # If you get "Authorization required, but no authorization protocol specified"
    # then try running `DISPLAY=:0.0 xhost +` in the cygwin terminal after
    # starting the X11 server.
  4. LAK132 revised this gist Jan 5, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Makefile
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@ DISPLAY =
    else
    # For use on Windows (WSL) with cygwinX
    # Requires xinit, xauth and xhost probably
    # Start the X11 server with `path\to\cygwin64\bin\run.exe --quote /usr/bin/bash.exe -l -c "cd; exec /usr/bin/startxwin -- -listen tcp"`
    # Start the X11 server with `path\to\cygwin64\bin\run.exe --quote /usr/bin/bash.exe -l -c "cd; exec /usr/bin/startxwin -- +iglx -nowgl -listen tcp"`
    # If you get "Authorization required, but no authorization protocol specified"
    # then try running `DISPLAY=:0.0 xhost +` in the cygwin terminal after
    # starting the X11 server.
  5. LAK132 created this gist Oct 15, 2020.
    11 changes: 11 additions & 0 deletions Makefile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    ifeq ($(shell grep -a -h -i microsoft /proc/version),)
    DISPLAY =
    else
    # For use on Windows (WSL) with cygwinX
    # Requires xinit, xauth and xhost probably
    # Start the X11 server with `path\to\cygwin64\bin\run.exe --quote /usr/bin/bash.exe -l -c "cd; exec /usr/bin/startxwin -- -listen tcp"`
    # If you get "Authorization required, but no authorization protocol specified"
    # then try running `DISPLAY=:0.0 xhost +` in the cygwin terminal after
    # starting the X11 server.
    DISPLAY = "`cat /etc/resolv.conf | grep nameserver | awk '{ print $$2 }'`:0.0"
    endif