![]() ![]() TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0Īfter I start the “Debian” app ( I Have Ubunto and Debian on WSL 2) I got for the ifconfig eth1: flags=41 TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags= Before hitting cmake lets tell our WSL that CLHEP is installed by giving it the. When I start ubuntu it doesn’t detect the Xserver running on the Windows 10 side. I installed “VcXsrv” on Windows side and for what I understand it listen to the Ethernet adapter vEthernet (WSL) Starting a graphical application should work then, enjoy! $ export DISPLAY=$(grep -m 1 nameserver /etc/nf | awk ''):0.0 Specifying the server numer to be ‘0’ on the first screen and also allow public accessĭisable Windows Defender Firewall for Guest or public Network (a better way would be to add firewall rules to allow only what is needed but I didn’t figure out how to do that yet, help welcome if anyone knows?) VcXsrv, download from and install/start it. Once started click on the systray icon and pick “Allow Public Access” X410 is available in the windows store with a free trial. Install an Xserver, I tried those options which work The problem is known upstream and has to do with the fact that WSL2 has its own network configuration which means using localhost/127.0.0.1 to contact the xserver isn’t working. I started following the wiki instructions but things seem currently a bit more complicated that they were on WSL and the improvement did in this wslu upload don’t seem enough. SILENT in your Makefile if you want 'quieter' builds.ĬXXFLAGS = $(shell $(FLTKCONFIG) -cxxflags) -Wall -I.I’ve been trying to get graphical applications to work on WSL2. # FLTKCONFIG = /usr/local/src/fltk-1.3.x-svn/fltk-config # FLTKCONFIG = /usr/local/bin/fltk-config # the 'FLTKCONFIG' setting to point to where it's installed # If you take this for use in your own project, be sure to change Then, we ask Cortana to install bash from the Windows Store. # Stuff every FLTK application might need Next, you need to activate the Windows Subsystem for Linux (WSL) Open Control Panel and click on Programs and select Turn Windows features on or off, Check the box to the left of Windows Subsystem for Linux (Beta) When the installation is completed, click on the Restart Now button. Define an instance of the class CubeViewUIġ: comment out "include in CubeView.h, and change it to" include I have also attempted to use the X410 X server with the same result. Once I do this, I am ultimately wanting to be able to runTo clarify, I am wanting to connect to the Ubuntu server (LNX) from the Windows 10 system (WIN). Except for the main.cxx file, the rest can be copied in the directory / usr/share/doc/fltk1.3-doc/examples /. I am having issues with X11 forwarding between a Windows 10 system using WSL and a Ubuntu 19 system. Prepare the required documents CubeView.cxx main.cxx Makefile.FLTK CubeView.h CubeViewUI.cxx CubeViewUI.h Makefile. Sudo apt install libgtk-3-dev libgtk2.0-devįltk development sudo apt install libfltk1.3-dev Opengl: sudo apt-get install libgl1-mesa-dev freeglut3-dev libglu1-mesa-dev ![]() ![]() Xlib/Xt/Motif, etc sudo apt install libxt-dev libmotif-dev libxext-dev libxaw7-dev libxmu-dev In this way, the programs that directly execute the graphic interface in the future will be connected to Xming. Start Xming to execute xterm in wsl DISPLAY=:0 xtermįor convenience, set the DISPLAY environment variable It's better to have Xming fonts (in the same directory). When installing Xming in win10, it's OK by default. No need to install the desktop, just install xterm to test: sudo apt install xterm ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |