Meanwhile, open up the Run console with Win + R, and type shell:startup. Open up the file location for the XLaunch shortcut (as shown in the step above). Head to the ‘File Location’ for XLaunch (the image below may assist you). We will then add XLaunch to the startup apps in the next step XLaunch is a shortcut to VcXsrv, we are going to update the shortcut to include the desired parameters. Much credit goes to Bhupathy’s WSL1 tutorial for this step. To confirm this has worked, open up a new Ubuntu Terminal tab and run the following: echo "$DISPLAY" 3.4 ‘Hacking’ Xlaunch This way our DISPLAY variable is correct regardless of if our IPv4 address changes! Open up your ubuntu terminal and open the file ~/.bashrc and add the following line: export DISPLAY="$(grep '^nameserver ' /etc/nf | cut -d' ' -f2):0" Since our IPv4 address can change from time to time, it’s important that this is set dynamically. The 0 is the default sequence number (see here for more info). It’s important that we set the DISPLAY environment variable to XXX.XX.XX.X:0 where XXX.X is the local IPv4 address of the computer (rather than the Virtual Machine itself). Open up an Ubuntu console (through Windows Terminal) and run sudo apt install x11-apps xclip xdg-utils 3.3 Setting the DISPLAY environment variable It’s important all items are selected for installation 3.2 Installing the Ubuntu X11 Apps and xclip
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |