If you already installed the pulseaudio software package, you will need to uninstall it ( apt-get purge pulseaudio ) first, because it will not work, and you are likely to see the following error message.It enables running unmodified Linux binaries in Windows without creating a virtual machine.It implements a compatibility layer that translates Linux system calls to Windows system calls.Basically, it is like a wine on Windows for Linux executables.
Therefore, WSL can be very convenient if you need to run some Linux only program in a Windows development environment. You no longer need the overhead to boot up a virtual machine (or even worse, switching between Windows and Linux on a dual boot system). You can also check this community maintained list of programs that work (and those that dont) under the WSL. Consequently, numerical computations in WSL can only be done on CPU (actually CPU performance is pretty good in WSL). Having a SSD may alleviate this issue, but the overall disk performance is not good enough. If you use a different distro, you may need some additional tweaks. To enable WSL, you just need to turn on Windows Subsystem for Linux among Windows Features, and install your preferred distro from the Windows Store. While you can browser these files in Windows Explorer, do not make any modifications to them. Doing so may case loss of data under WSL, because these files contain additional attributes for interoperability which Windows Explorer may not understand. Since the Fall Creators Update, Windows Console is give more love and a lot of improvements have been made. However, changing the color scheme using the default settings panel is still not an enjoyable experience. Luckily, the Windows Console team introduced the Windows Console Colortool recently, making changing color schemes much easier. Nevertheless, it is possible to run a X server on Windows and run X applications as clients under WSL. After installation, simply start the X server on Windows using the default settings. Under WSL, since we are connecting to an X server on the local machine, simply run export DISPLAY:0.0 (you can add it to your.bashrc ). Now you can use matplotlib (assuming that you have relevant packages installed) as shown in the screenshot below. Usually, audio support under WSL is unnecessary because Windows already provides better support for your musicvideo needs. If, for whatever reason, you want to hear audio playing under WSL, there is a way to do it. You will need to set up PulseAudio both under both Windows and WSL. You should see four folders named bin, etc, lib, and share.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2020
Categories |