![]() ![]() This demonstrates that WSL is a valuable tool that you may want to install and become familiar with. I then showed you how to use it for what it was designed for, and finally I pushed its limits to do things it was expressly designed not to do. In this three-part series I first walked you through downloading and installing Windows 10 on vSphere. I honestly didn't expect the X graphics system to work on WSL, and although it's far from being ready for production, I was able to run some fairly sophisticated and powerful programs using it. I did try other graphic applications such as twm, xterm, tightvncserver and xman, and they worked fine, while other applications such as xprop, xmag, xload and xconsole didn't. Microsoft has a very good Web server and doesn't recommend running one on WSL, but I was able to install, configure, and run the Apache2 server, albeit with some warning on startup, and while it was running. The VCL interface and error messages are shown in Figure 8. When I tried to run VLC, many error messages were generated when I tried to load an MP4 file. Blockout ( Figure 7) worked flawlessly, which surprised me as it is an extremely graphics-intensive application. All of them were installed using apt-get: # sudo apt-get install blockout2įirefox ( Figure 6) worked even though I received some error messages on the command line when I first started it. Three other applications that I worked with were Blockout (a 3-D Tetris-like game), VLC (a video player), and the Firefox Web browser. Figure 5 shows xeyes running (a program with "eyes" that follow a moving cursor). Once the applications have been installed, you can start them by setting your display and executing the application on the Bash shell. To download and install it run the following: # sudo apt-get install x11-apps A good starting point would be the x11-apps package, which has about two dozen X applications, including xclock, xcalc, and xeyes. Once you have an X server installed and running, you'll need to install graphics applications. ![]() I used the default settings after launching it, Xming appeared in my system tray, running in the background and waiting for a graphical WSL program ( Figure 4). It comes with a setup wizard, and I installed it on my Windows 10 system without any difficulty ( Figure 3). I've used Xming and have had good luck with it in the past. Fortunately, there are many X servers that run on Windows some of the more popular free ones are Xming, Cygwin X, and vcXsrv. To use WSL with graphical programs, an X server will need to be installed on the Windows 10 system and the DISPLAY variable will need to be set in Bash. To be more precise, you'll be able to display graphical programs running in WSL on a Windows 10 desktop by using an X server which runs on Windows 10. Bash on WSL is intended for running command-line programs that developers might need, but it's possible to run graphical Linux desktop programs on Windows using the Bash shell. Microsoft doesn't support graphical programs on WSL. To install and use dropbear do the following: #sudo apt-get install dropbear ![]() Note: If you're having difficulty getting OpenSSH Server running, you can always try another SSH server such as Dropbear. The file - /etc/ssh/sshd_config - will need to be edited to add/change the following:Īfter these changes have been made, the SSH service will need to be restarted: # sudo service ssh -full-restartĪny firewalls running on the Windows side will need to be disabled or have a port opened up.įigure 2 is a screenshot of connecting to the WSL SSH server directly from WSL from the Windows 10 desktop using PuTTY, and my desktop using PuTTY. I chose to do the latter and use port 2200 for WSL SSH.Ī few other parameters will also need to be changed in the OpenSSH configuration file. Windows 10 comes with an SSH server, and it will either need to be disabled or the port that will be used for SSH on WSL will need to be changed. #sudo apt-get install openssh-server Figure 1. Fortunately, WSL comes with apt-get, making it a trivial process to install the full version: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |