Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.comp.os.windows-10 > #53785

Re: What the heck is Windows Subsystem for Linux

From Paul <nospam@needed.invalid>
Newsgroups alt.comp.os.windows-10, alt.os.linux
Subject Re: What the heck is Windows Subsystem for Linux
Date 2017-10-16 01:09 -0400
Organization A noiseless patient Spider
Message-ID <os1etj$a47$1@dont-email.me> (permalink)
References <os177d$co5$1@news.mixmin.net>

Cross-posted to 2 groups.

Show all headers | View raw


Blake Snyder wrote:
> What the heck is Windows Subsystem for Linux?
> 
> Is it a baby linux inside of Windows?
> Just a Bash shell? 
> Just Cygwin done better?
> What?
> 
> This is all I know, but I didn't understand what a 'subsystem' is.
> <http://www.zdnet.com/article/windows-subsystem-for-linux-graduates-in-windows-10-fall-creators-update/>
> 
> It seems to be just a shell ... but is that what it is?
> 
>  "With WSL, most Linux shell tools are at your command. These include: apt,
> ssh, find, grep, awk, sed, gpg, wget, tar, vim, emacs, diff, and patch. You
> can also run popular open-source programming languages such as python,
> perl, ruby, php, and gcc. In addition, WSL and Bash supports server
> programs such as the Apache web-server and Oracle's MySQL database
> management system. In other words, you get a capable Linux development
> environment running on Windows."

It's not quite as "deep" as Cygwin.

It doesn't allow access to the lowest level (/dev/sda).

When you run the Bash shell, you can

    cd /mnt/C

and all the Windows drive letters are under the /mnt point.
/mnt/C , /mnt/D , /mnt/E ...

    ls

    pagefile.sys
    hiberfil.sys
    ...

Bash shell uses "ls" instead of "dir".

You can install packages.

    apt install disktype

If you type the name of a utility that is not installed

    disktype

the shell will print out a one-liner telling you how to get it.
That's why I don't have to worry about the exact syntax. It'll
tell you. You put sudo in front of the command, to run it
with root privileges.

    sudo apt install disktype

You can tell "who" you are, account wise, with

    whoami

which Windows also supports now :-)

There is no XWindows (Xorg). You cannot run the Linux Firefox, *unless*
you arrange some sort of X solution. You can use a Windows Xorg,
as a replacement (XMing). So you could run Firefox from the Linux side.
Start XMing first. Set the Display environment variable in your
Bash shell. Then launch Firefox.

https://en.wikipedia.org/wiki/Xming

You could use

    xdpyinfo

to find out what "extensions" your Xming supports after you've
started it, and then work out whether Firefox needs something
that isn't present in the X you're using. That's one of the
shortcomings of "bodging" a graphics subsystem onto the Bash
shell, is the Windows freebies, don't have nearly as many
extensions compiled in, as the one native to Linux. That's not
to say it can't be done - if you're paying someone for the
program, chances are it would be more complete (there are
commercial packages - I think I have one sitting around
somewhere here).

And it's bound to have some subsystem limitations. If it
doesn't admit to having /dev/sda, then there are going to
be a few things that won't work. It's supposed to be
a scripting environment, not a full copy of a Linux Distro.

I had a gawk script that was causing my gnuwin32 copy of
Gawk.exe to crash (I've only had that thing crash the one time).
And the first usage I made of the Bash shell, was to run the
Linux Gawk 4, which ran at exactly the same speed as my other
one, but didn't crash :-) Not crashing makes a big difference
to your productivity. It was a happy coincidence that the
one time gawk.exe crashed on me, that Bash shell was sitting there
waiting for a test case.

But other people, like to try "bar bet" test cases on it.
Like getting Linux Firefox running on it, a day or two after the
Win10 Bash beta was released.

    Paul

Back to alt.comp.os.windows-10 | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

What the heck is Windows Subsystem for Linux Blake Snyder <blakdeblakesnyder@outlook.com> - 2017-10-16 02:57 +0000
  Re: What the heck is Windows Subsystem for Linux lifewoutmilk <lifewoutmilk@distraction.x10host.com> - 2017-10-16 04:16 +0000
    Re: What the heck is Windows Subsystem for Linux "J.O. Aho" <user@example.net> - 2017-10-16 06:59 +0200
  Re: What the heck is Windows Subsystem for Linux Paul <nospam@needed.invalid> - 2017-10-16 01:09 -0400
    Re: What the heck is Windows Subsystem for Linux Richard Kettlewell <invalid@invalid.invalid> - 2017-10-16 09:25 +0100
      Re: What the heck is Windows Subsystem for Linux Paul <nospam@needed.invalid> - 2017-10-16 06:44 -0400
        Re: What the heck is Windows Subsystem for Linux Richard Kettlewell <invalid@invalid.invalid> - 2017-10-16 15:12 +0100
  Re: What the heck is Windows Subsystem for Linux Jasen Betts <jasen@xnet.co.nz> - 2017-10-16 10:54 +0000
    Re: What the heck is Windows Subsystem for Linux Paul <nospam@needed.invalid> - 2017-10-16 07:27 -0400
      Re: What the heck is Windows Subsystem for Linux Andy Burns <usenet@andyburns.uk> - 2017-10-16 14:16 +0100
  Re: What the heck is Windows Subsystem for Linux Peter Köhlmann <peter-koehlmann@t-online.de> - 2017-10-16 14:21 +0200
  Re: What the heck is Windows Subsystem for Linux "Mayayana" <mayayana@invalid.nospam> - 2017-10-16 09:24 -0400
    Re: What the heck is Windows Subsystem for Linux Paul <nospam@needed.invalid> - 2017-10-16 14:52 -0400
      Re: What the heck is Windows Subsystem for Linux "Mayayana" <mayayana@invalid.nospam> - 2017-10-16 19:56 -0400
        Re: What the heck is Windows Subsystem for Linux Eef Hartman <E.J.M.Hartman@gmail.com> - 2017-10-30 14:22 +0000

csiph-web