![]() ![]() ![]() Now you should see two in your system tray Public networks is strongly discouraged, for privacy and security concerns) When prompted by Windows Firewall (or your firewall) Allow xwin.exe to communicate on the appropriate networks (Domain and Private, for example. Run the startx.bat file for the first time. Right click the icon, and select "Pin to Start".If you named the shortcut "StartX", type that in to find it Sometimes you need to type in the name to search for it.Now the shortcut will show up on your Start Menu under Recently Added.C:\%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu (for just you).C:\ProgramData\Microsoft\Windows\Start Menu (for all users, need admin access). ![]() Move the shortcut to one of the two locations:.Create a shortcut to startx.bat (anywhere, your Desktop for example).(Optional) There are other ways to do this, but here is one way to add a shortcut to your start menu bashrc (Your WSL bashrc, for example) to include the following (other other rc files if you don't use bash) (If you put them somewhere else, you will need to update the first two %~dp0s in startx.bat to point to C:\cywin64\)Įdit your. The required packages will already be selected)ĭownload these two files ( startx.bat and startxwin and put them in C:\cywin64\. Open up a command prompt to C:\cygwin64 and run: setup-x86_64.exe -l C:\cygwin64\packages -qnNd -P xorg-server -P xinit -P libiconv (all you need to do is click Next and Pick the mirrors. # This prevents an annoying Terminal hang every time an ssh client tried to access a dead X sessionįinally run: C:\cygwin64\startx.bat Getting startedĭownload cygwin installer and place it in C:\cygwin64\setup-x86_64.exe Setup-x86_64.exe -l C:\cygwin64\packages -qnNd -P xorg-server -P xinit -P libiconvĪnd Add this to your WSL. Powershell -NoProfile -Command "Invoke-WebRequest -Uri "" -OutFile "c:\cygwin64\setup-x86_64.exe" Optionally, we can even add a "one click" link to the start menu to start the xserver TL DR Once the DISPLAY value is accessible, an rc file can load it and it will automatically be used. With a few minor modifications, we can save the DISPLAY variable to files accessible by any shell. With a few modifications, we can add cygwin's X Server support to other shell implementations including cygwin, mingw64 (such as git for windows), msys2, WSL1, WSL2, and others. Using cygwin X in WSL1 and MingW (and others)Ĭygwin comes with an X Server that can be useful with tools other than Cygwin itself. ![]()
0 Comments
Leave a Reply. |