LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 01-07-2022, 02:59 PM   #1
johnprogrammer
Member
 
Registered: Jan 2022
Distribution: Manjaro Linux, Ubuntu in Windows 11 WSL2
Posts: 35

Rep: Reputation: Disabled
Linux in WSL 2 of Windows 11 and Windows 10


My current Linux installation: Ubuntu 21.10 in WSL 2 of Windows 11.

I installed it with: https://github.com/nullpo-head/wsl-distrod

It can install various distributions, with systemd enabled, and GUI Linux app integration with Windows 11 working.

Works fine with Windows 10 WSL 2 (but without GUI Linux apps integration of course).


Some other useful links, for people who are interested in trying WSL 2 in Windows 11 and Windows 10:

https://docs.microsoft.com/en-us/windows/wsl

(check the documentation tree on the left side)


For Windows 11 only users:

From the above link:

https://docs.microsoft.com/en-us/win...rials/gui-apps

https://github.com/microsoft/wslg

(the official source code site, of the graphics part of WSL 2, provided by Windows 11).


Long time Linux user here, recently migrated to Windows 11 from Manjaro MATE.

My opinion for Windows 11 WSL 2 is that it works well, and I am looking forward to seeing the improvements Microsoft will provide in the future.

My experience is that with WSL 2 in existence, more Windows users are testing Linux in it, who would not try any Linux distribution if WSL 2 did not exist.

So I think WSL 2 actually helps Linux adoption for the desktop.


Some notes: In Windows 11, WSL 2 provides its own Wayland Compositor (Weston), its own X.Org-compatible server (XWayland), and its own PulseAudio server.

So, do not try to install explicitly Wayland, X.Org, or PulseAudio from the package repositories yourself.

Install graphical applications in the following style (the examples use the Debian/Ubuntu package manager)

Code:
sudo apt install gedit (installs Gedit text editor)

sudo apt install firefox (installs Firefox)

sudo apt install LibreOffice (installs LibreOffice)
The default Linux distributions provided by WSL 2 itself, and those provided by Distrod (mentioned in the beginning), work with the WSL-provided servers without issues.

What is your opinion for WSL 2? Have you tested it?
Attached Thumbnails
Click image for larger version

Name:	s.png
Views:	12
Size:	125.2 KB
ID:	38029   Click image for larger version

Name:	s.jpg
Views:	12
Size:	179.6 KB
ID:	38030  

Last edited by johnprogrammer; 01-07-2022 at 06:26 PM.
 
Old 01-07-2022, 06:12 PM   #2
rclark
Member
 
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 496

Rep: Reputation: 182Reputation: 182
Why would a Linux user even try WSL 2 to begin with? To do that means you'd have to purchase a copy Windows 11 and then install ... (probably need a Pro version?). I, for one, have no reason to do that as I've been Windows free for years now. No reason to go back (wards?) into that merry-go-round!
 
1 members found this post helpful.
Old 01-07-2022, 06:40 PM   #3
johnprogrammer
Member
 
Registered: Jan 2022
Distribution: Manjaro Linux, Ubuntu in Windows 11 WSL2
Posts: 35

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rclark View Post
Why would a Linux user even try WSL 2 to begin with? To do that means you'd have to purchase a copy Windows 11 and then install ... (probably need a Pro version?). I, for one, have no reason to do that as I've been Windows free for years now. No reason to go back (wards?) into that merry-go-round!
WSL 2 is available in Windows Home edition too.

I think WSL is a new option for those that need it.

Myself was using Manjaro Linux, but I had two issues. Netflix does not support Linux for 1080p or higher resolution, you need some third party extension in Firefox.

In gaming, Windows has more commercial games than Linux, however with Steam the situation has improved a lot.

By using Windows and WSL, I get the benefits of watching Netflix, some decent gaming, and having all Linux facilities I need.

Others use Linux in desktop exclusively, for example reading sites on the web, with no fear for viruses, since they use their distribution's package repositories.

Last edited by johnprogrammer; 01-07-2022 at 06:53 PM.
 
Old 01-07-2022, 07:03 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,152

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
I have used it since it was a beta. I'm basically a CLI type so it was handy to be able to run awk or perl on Windoze without having to bother with a full VM hyper-visor. More so now that WSL2 implementation is a true lightweight client.
My needs are minial, but it is handy. Also saves me having to learn powershell.
 
Old 01-08-2022, 10:28 AM   #5
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,627

Rep: Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556
Quote:
Originally Posted by syg00 View Post
I'm basically a CLI type so it was handy to be able to run awk or perl on Windoze without having to bother with a full VM hyper-visor.
This had already been possible for over a decade, long before Windows 10 or WSLv1 was announced.

 
Old 01-08-2022, 10:45 AM   #6
johnprogrammer
Member
 
Registered: Jan 2022
Distribution: Manjaro Linux, Ubuntu in Windows 11 WSL2
Posts: 35

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by boughtonp View Post
This had already been possible for over a decade, long before Windows 10 or WSLv1 was announced.
I think it is far easier in the form of a fully working Linux terminal.

Last edited by johnprogrammer; 01-09-2022 at 03:11 AM.
 
Old 01-09-2022, 06:41 AM   #7
mjolnir
Member
 
Registered: Apr 2003
Posts: 824

Rep: Reputation: 106Reputation: 106
Quote:
Originally Posted by syg00 View Post
I have used it since it was a beta. I'm basically a CLI type so it was handy to be able to run awk or perl on Windoze without having to bother with a full VM hyper-visor. More so now that WSL2 implementation is a true lightweight client.
My needs are minial, but it is handy. Also saves me having to learn powershell.
Same here along with some simple text, image and video processing from the cli is about all I truly need from linux.
 
Old 01-09-2022, 08:40 AM   #8
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,627

Rep: Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556
Quote:
Originally Posted by johnprogrammer View Post
I think it is far easier in the form of a fully working Linux terminal.
What do you mean by a "fully working Linux terminal"?

WSL2 does not yet provide a fully working Linux-based OS, not even with WSLg.

If someone merely want to run Awk and/or Perl scripts in a Bash shell, they don't need Linux; GNU will do.

(Likewise, with text, image and video processing.)

 
Old 01-09-2022, 10:20 AM   #9
johnprogrammer
Member
 
Registered: Jan 2022
Distribution: Manjaro Linux, Ubuntu in Windows 11 WSL2
Posts: 35

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by boughtonp View Post
What do you mean by a "fully working Linux terminal"?
WSL2 does not yet provide a fully working Linux-based OS, not even with WSLg.

If someone merely want to run Awk and/or Perl scripts in a Bash shell, they don't need Linux; GNU will do.

(Likewise, with text, image and video processing.)
What do not work:

1. The command ps is not working for displaying windows processes running outside the Linux instance. But it works for Windows processes running inside the Linux instance.

2. Similarly, Linux network utilities, like ss -utp, do not report the host's open connections, for clients/servers running outside the Linux instance, and network utilities like ifconfig, do not report the host's IP address in the LAN outside the Linux instance.


The workaround for the first, is running the Windows command line programs tasklist.exe and taskkill.exe.

For the second, it is running the Windows network command line programs like netstat.exe, ipconfig.exe.

See the images attached.

Everything else seems to work fine (I do not know if the ZFS server issue mentioned in the link you provided, applies to Linux distributions installed with Distrod).

Microsoft has announced it is committing to improve the WSL integration in the future.


Notes:

To get the split vertical view shown in the first image, you press alt-shift-plus in the Windows Terminal. To get split horizontal view, you press alt-shift-minus.

Windows Terminal is available for Windows 10 here: https://www.microsoft.com/en-us/p/wi...ot:overviewtab
Attached Thumbnails
Click image for larger version

Name:	s1.png
Views:	11
Size:	183.7 KB
ID:	38050   Click image for larger version

Name:	s2.png
Views:	10
Size:	214.3 KB
ID:	38051   Click image for larger version

Name:	s3.jpg
Views:	12
Size:	135.5 KB
ID:	38052   Click image for larger version

Name:	s4.png
Views:	10
Size:	167.2 KB
ID:	38053  

Last edited by johnprogrammer; 01-10-2022 at 07:06 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to Install WSL 2 (Windows Subsystem for Linux) on Windows 10 LXer Syndicated Linux News 0 06-29-2021 01:18 PM
LXer: Ubuntu Linux Is Now Supported on Microsoft's Windows Subsystem for Linux (WSL) 2 LXer Syndicated Linux News 0 05-07-2019 12:50 AM
Debian GNU/Linux for WSL now available in the Windows Store ChuangTzu Linux - News 0 03-08-2018 03:32 PM
LXer: Kali Linux Ethical Hacking OS Is Now Available in the Windows 10 Store for WSL LXer Syndicated Linux News 0 03-08-2018 10:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 09:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration