Re: Windows Subsystem for Linux && Visual Studio Code

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: James Dugger
Date:  
To: Main PLUG discussion list
Subject: Re: Windows Subsystem for Linux && Visual Studio Code
Are you on the latest version of Windows 10 with WSL2? If not there are
huge differences. Prior to WSL2 and the latest Windows 10 developer mode,
the WSL sent linux system calls to an emulator that the Windows NT kernel
could understand. However with the advent of the latest Windows 10 updates
and WSL2 (June 2019) Microsoft installs a full linux kernel with the WSL2
distribution you chose. I think the latest for Ubuntu now is 18.04 on the
Microsoft Store. When launched for projects saved and running in the WSL
Visual Studio Code now knows the project is a Linux project open with the
Linux binaries enabled. You can see this when the bottom left screen
lights up in the highlighted text color and indicates WSL.

I have not noticed a lag in VS Code in on either Windows or Linux based
projects (lasts versions) . But my system is a core i7. Haven't had to
reboot either.
I am running the latest Windows 10 Version. with Hyper V shut down and
VirtualBox installed as a Hypervisor. I don't use the native WSL as a
native webserver for PHP applications. I use Vagrant and VirtualBox for
building guest machines to run/develop those apps.

Regarding Apache I assume you are setting up separate document root
directories for each site declared in different virtual hosts files or
section of code in the main apache conf file or separate conf files.

Do you have corresponding settings in the /etc/hosts file that are
correctly resolving to your virtual host entries?

On Mon, Dec 16, 2019 at 5:03 PM <> wrote:

> Hi,
>
> AZ Pete mentioned the Windows Powershell and the Visual Studio Code
> editor. I thought I would branch off of that.
>
> I'm not a Python developer. I'm a PHP developer.
>
> In the past I have always used an external LAMP server for development.
> Currently I have an old i3 laptop that was upgraded to an SSD. Does the
> job just fine.
>
> A month or so ago I thought I would experiment with the Windows Subsystem
> for Linux by installing Apache, MySql, and PHP. Worked well, with two
> exceptions.
>
> I used Visual Studio Code to edit the code "remotely".
>
> I had two issues which I do not recall completely. 1) When I would bring
> the computer out of screen saver mode it would run really slow and require
> a reboot. I'm guessing the subsystem went to sleep and was not able to wake
> up..... 2) As I recall I configured a number of vhosts off of
> /var/www/html/ which worked well except PHP reported the Docroot was the
> same as the localhost for all three vhosts, even though they
> were configured with different Docroots. I wonder if there might be a
> Apache setting that will correct this?
>
> The subsystem reports its running Ubuntu 16.04.6 LTS.
>
> I think it might be time to dig a little deeper.
>
>
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change your mail settings:
> https://lists.phxlinux.org/mailman/listinfo/plug-discuss




--
James

*Linkedin <http://www.linkedin.com/pub/james-h-dugger/15/64b/74a/>*
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss