Solved How do I get desktop GUI on WSL2/Ubuntu 22.04?


caffeine

Well-known member
Member
Local time
3:41 PM
Posts
75
OS
windows 11 home 64bit 24H2 (OS Build 26100.7992)
Windows 11 Home version 22H2
AMD Ryzen 7 benchmarked @ 4.1 GHZ
16 GB ram benchmarked @ peak speed 13738 MB/s

The specs above show that I have plenty of power and memory to support a desktop GUI on WSL2/Ubuntu 22.04.

I have (at best) a beginner knowledge of Linux and want to have a functional desktop GUI to aid me in the learning Linux. I have been researching and attempting to install a desktop GUI for a few weeks without success.

Additionally I have found conflicting information during this process:
  • systemd is required for the GUI - systemd is not required for the GUI
  • Windows 11 supports systemd - Windows 11 does not support systemd
I have experienced "package not found" errors. I have found some hacks with a great deal of lines of code, and have been unsure of whether or not they were safe to use.

I have attempted to install GNOME, lightdm, and X*** without success.

Please tell me which conflicts are true and whether or not I can have a functional desktop GUI. If it is possible, please provide me with useful links or step-by-step instructions to achieve my goal.

Thanks in advance for helpful feedback.

regards,
caffeine
 

My Computer My Computer

At a glance

windows 11 home 64bit 24H2 (OS Build 26100.7992)AMD RYZEN 5 8645HS, base 4.3GHz- up tp 5 GHz16GB DDR5
OS
windows 11 home 64bit 24H2 (OS Build 26100.7992)
Computer type
Laptop
Manufacturer/Model
Lenovo ideapad 5
CPU
AMD RYZEN 5 8645HS, base 4.3GHz- up tp 5 GHz
Memory
16GB DDR5
Monitor(s) Displays
2
Screen Resolution
1920x1200
Hard Drives
512 GB SSD
PSU
65W
Case
military grade (mil-std 810h), color-abyss blue
Keyboard
backlit, light blue
Mouse
Logitech M100
Internet Speed
SLOOOOOOOW
Antivirus
Windows Defender & MBAM
Other Info
novabench score 2443
Honestly, if you want to run and learn linux, I would run Linux in a true VM rather than using WSL for it. Something like VMWare Player, Hyper-V or VirtualBox .
 

My Computers My Computers

  • At a glance

    Windows 11 ProIntel Core i5-8279u32GB DDR4 2666MhzIntel Iris Plus 655
    OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Beelink SEI8
    CPU
    Intel Core i5-8279u
    Motherboard
    AZW SEI
    Memory
    32GB DDR4 2666Mhz
    Graphics Card(s)
    Intel Iris Plus 655
    Sound Card
    Intel SST
    Monitor(s) Displays
    Asus ProArt PA278QV
    Screen Resolution
    2560x1440
    Hard Drives
    512GB NVMe
    PSU
    NA
    Case
    NA
    Cooling
    NA
    Keyboard
    NA
    Mouse
    NA
    Internet Speed
    500/50
    Browser
    Edge
    Antivirus
    Defender
    Other Info
    Mini PC used for testing Windows 11.
  • At a glance

    Windows 10 ProRyzen 9 5900x64GB DDR4-3600EVGA GeForce 3080 FT3 Ultra
    Operating System
    Windows 10 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    Ryzen 9 5900x
    Motherboard
    Asus Rog Strix X570-E Gaming
    Memory
    64GB DDR4-3600
    Graphics card(s)
    EVGA GeForce 3080 FT3 Ultra
    Sound Card
    Onboard
    Monitor(s) Displays
    ASUS TUF Gaming VG27AQ. ASUS ProArt Display PA278QV 27” WQHD
    Screen Resolution
    2560x1440
    Hard Drives
    2TB WD SN850 PCI-E Gen 4 NVMe
    2TB Sandisk Ultra 2.5" SATA SSD
    PSU
    Seasonic Focus 850
    Case
    Fractal Meshify S2 in White
    Cooling
    Dark Rock Pro CPU cooler, 3 x 140mm case fans
    Keyboard
    Corsiar K65 RGB Lux
    Mouse
    Logitech G9 Laser Mouse
    Internet Speed
    500/50
    Browser
    Chrome
    Antivirus
    Defender.
By installing GNOME etc...won't help you learn Linux in any way.

If you want to launch apps with GUI, you can do that straight from the shell/cli, assuming you truly have installed WSL2 and aren't stuck at WSL1. WSL even support 3D acceleration with about 70% speed compared to native Windows performance.
 

My Computers My Computers

  • At a glance

    Win 11 Pro 25H2 26200.8894 / Linux Mint 22.3Ryzen 7 2700U Pro32GBiGPU Vega 10
    OS
    Win 11 Pro 25H2 26200.8894 / Linux Mint 22.3
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo A485
    CPU
    Ryzen 7 2700U Pro
    Motherboard
    Lenovo (WiFi/BT module upgraded to Intel Wireless-AC-9260)
    Memory
    32GB
    Graphics Card(s)
    iGPU Vega 10
    Sound Card
    Realtek
    Monitor(s) Displays
    14" FHD (built-in) + 14" Lenovo Thinkvision M14t (touch+pen) + 32" Asus PB328
    Screen Resolution
    FHD + FHD + 1440p
    Hard Drives
    Intel 660p m.2 nVME PCIe3.0 x2 512GB
    PSU
    125W(Dock)/65W(Travel Adapter)
    Keyboard
    Thinkpad / Logitech MX Keys
    Mouse
    Logitech MX Master 2S
    Internet Speed
    1/1Gbit
    Browser
    Firefox
    Antivirus
    Windows Defender
    Other Info
    SecureBoot: Enabled
    TPM2.0: Enabled
    AMD-V: Enabled
  • At a glance

    Win 11 Pro 25H2 26200.8968(RP)i7-7700k @4.8GHz32GB 2x16GB 2133MHz CL15EVGA GTX1080Ti FTW 11GB
    Operating System
    Win 11 Pro 25H2 26200.8968(RP)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    i7-7700k @4.8GHz
    Motherboard
    Asus PRIME Z270-A
    Memory
    32GB 2x16GB 2133MHz CL15
    Graphics card(s)
    EVGA GTX1080Ti FTW 11GB
    Sound Card
    Integrated
    Monitor(s) Displays
    32" 10-bit Asus PB328Q
    Screen Resolution
    WQHD 2560x1440
    Hard Drives
    512GB ADATA SX8000NP NVMe PCIe Gen 3 x4
    PSU
    850W
    Case
    Fractal Design Define 7
    Cooling
    Noctua NH-D15 chromax.black
    Keyboard
    Logitech MX Keys
    Mouse
    Logitech MX Master 2S
    Internet Speed
    1/1Gbit
    Browser
    Firefox
    Antivirus
    Windows Defender
    Other Info
    AC WiFi Card
  • Asus U46SV (laptop), i5-2410M, 8GB RAM, 500GB SSD, 750GB HDD, Windows 10. (used as a local Minecraft server and data dump)
Windows 11 Home version 22H2
AMD Ryzen 7 benchmarked @ 4.1 GHZ
16 GB ram benchmarked @ peak speed 13738 MB/s

The specs above show that I have plenty of power and memory to support a desktop GUI on WSL2/Ubuntu 22.04.

I have (at best) a beginner knowledge of Linux and want to have a functional desktop GUI to aid me in the learning Linux. I have been researching and attempting to install a desktop GUI for a few weeks without success.

Additionally I have found conflicting information during this process:
  • systemd is required for the GUI - systemd is not required for the GUI
  • Windows 11 supports systemd - Windows 11 does not support systemd
I have experienced "package not found" errors. I have found some hacks with a great deal of lines of code, and have been unsure of whether or not they were safe to use.

I have attempted to install GNOME, lightdm, and X*** without success.

Please tell me which conflicts are true and whether or not I can have a functional desktop GUI. If it is possible, please provide me with useful links or step-by-step instructions to achieve my goal.

Thanks in advance for helpful feedback.

regards,
caffeine
The only way to learn Linux is to install something like Arch linux or any debian based distro and do a minimal install from the command line -- you can always add a GUI (or several later). The advantage of this is you can install very efficient systems totally devoid of bloat and you will learn a lot more about OS'es, security, networking etc etc.

Arch linux has a reputation of being difficult to install -- follow these instructions and it's easy. With a VM as well you can just wipe and re-do over and over again if you make mistakes so you won't hose up your system. Also software is free, open source etc. One thing though learn some of the basic commands in nano or vim as these are text based editor unlike WYSISYG type editors like notepad and wordpad.

A little learning here will pay huge dividends in time saving etc. You can practice easily enough by just downloading ANY bootable live distro that has a GUI.These run totally from the media and don't touch your main computer unless you really work hard at wrecking your system.

Here's a good guide on how to install Arch Linux. If you do it on say Virtual box (also free) as a VM then you won't overwrite your running OS.

two methods

here using Virtual Box : A step by step Arch Linux installation guide
and another - not using Virtual box (but you can in any case use it). Note HYPER-V or Vmware also work if you prefer those.


Cheers
jimbo
 
Last edited:

My Computer My Computer

At a glance

Windows XP,11 Linux Fedora Rawhide pre-releas...2 X Intel i7
OS
Windows XP,11 Linux Fedora Rawhide pre-release 45
Computer type
PC/Desktop
CPU
2 X Intel i7
Screen Resolution
4KUHD X 2
pparks1: Thanks for the reply.
I have Windows 11 Home.
After reading documentation on your suggested VMs, I learned the following:
HYPER-V is available only on Win 11 pro and enterprise.
VMWare player does not list Windows 11.
VirtualBox free is viable for Win 11 Home. It required installation of Visual C++ redistrbutable (no big deal). I installed VBox 7.0 running Ubuntu-22.04 LTS. (using 4GB ram, 2 processors, and 60 GB storage). It works, and I will remove bloatware and customize it from there as needed.

Jimbo45: Thanks for the reply and excellent links for Arch linux.
I plan to try Arch in Vbox later. Currently I know nothing about networking and want to stick with learning the basics well before moving into more advanced topics. Arch promises to be a good vehicle for that. I currently have about 400GB of free space on C drive, 14 GB of ram, and 14 processors available for future use. That should be plenty.

regards,
caffeine
 

My Computer My Computer

At a glance

windows 11 home 64bit 24H2 (OS Build 26100.7992)AMD RYZEN 5 8645HS, base 4.3GHz- up tp 5 GHz16GB DDR5
OS
windows 11 home 64bit 24H2 (OS Build 26100.7992)
Computer type
Laptop
Manufacturer/Model
Lenovo ideapad 5
CPU
AMD RYZEN 5 8645HS, base 4.3GHz- up tp 5 GHz
Memory
16GB DDR5
Monitor(s) Displays
2
Screen Resolution
1920x1200
Hard Drives
512 GB SSD
PSU
65W
Case
military grade (mil-std 810h), color-abyss blue
Keyboard
backlit, light blue
Mouse
Logitech M100
Internet Speed
SLOOOOOOOW
Antivirus
Windows Defender & MBAM
Other Info
novabench score 2443

My Computers My Computers

  • At a glance

    All Branches but ReleaseAMD Ryzen 7 7735HS 3200-4500 Mhz 8 cores x 232 GB DDR5Radeon Graphic / NVIDIA GeForce RTX 4060 8 GB...
    OS
    All Branches but Release
    Computer type
    Laptop
    Manufacturer/Model
    Acer Nitro ANV15-51
    CPU
    AMD Ryzen 7 7735HS 3200-4500 Mhz 8 cores x 2
    Motherboard
    Sportage_RBH
    Memory
    32 GB DDR5
    Graphics Card(s)
    Radeon Graphic / NVIDIA GeForce RTX 4060 8 GB GDDR6
    Sound Card
    AMD/Realtek(R) Audio
    Monitor(s) Displays
    Integrated Monitor (15.3"vis)
    Screen Resolution
    FHD 1920X1080 16:9 144Hz
    Hard Drives
    KINGSTON OM8SEP4512Q-AA 1TB
    Western Digital 256GB
    PSU
    19V DC 6.32 A 120 W
    Cooling
    Dual Fans
    Mouse
    MS Bluetooth
    Internet Speed
    Fiber 1GB Cox -us & 1GB Orange-fr
    Browser
    Edge Canary- Firefox Nightly-Chrome Dev-Chrome Dev
    Antivirus
    Windows Defender
  • At a glance

    Windows 11 BetaAMD A9-94208 GB of DDR4AMD Radeon R5
    Operating System
    Windows 11 Beta
    Computer type
    Laptop
    Manufacturer/Model
    Asus X751BP
    CPU
    AMD A9-9420
    Memory
    8 GB of DDR4
    Graphics card(s)
    AMD Radeon R5
    Screen Resolution
    1600x900
    Hard Drives
    Seagate 1 TB
Since you are interested in Ubuntu, what I would do is create a bootable Ubuntu usb stick which is a fairly quick thing to do. Then I would boot with it to bring up Ubuntu whenever I wanted to use it, use it in live mode, without installing to your pc, and go from there. The terminal is available there, so you can learn the terminal commands, plus there are many resources available online to supplement that…. , plus, don’t forget the Ubuntu forums.

When I want to check out a new linux distribution that’s what I do, and it just takes a few minutes to create a bootable usb disk and to check it out without installing on my pc.
 

My Computer My Computer

At a glance

Windows 11/Linux MintIntel Core 2 Duo CPU E8400 @ 3.00 GHz x 28 GBIntel 4 Series Chipset Integrated Graphics Co...
OS
Windows 11/Linux Mint
Computer type
PC/Desktop
Manufacturer/Model
Dell Optiplex 960
CPU
Intel Core 2 Duo CPU E8400 @ 3.00 GHz x 2
Memory
8 GB
Graphics Card(s)
Intel 4 Series Chipset Integrated Graphics Controller
Monitor(s) Displays
HP x22LED
Hard Drives
Crucial 250 GB SSD, HD 1Tb
OAT,
It looks like I used a poor search.

Mackie,
I considered that, but choose to take advantage of my storage capacity, fast and abundant cpu, and fast and abundant ram.

regards,
caffeine
 

My Computer My Computer

At a glance

windows 11 home 64bit 24H2 (OS Build 26100.7992)AMD RYZEN 5 8645HS, base 4.3GHz- up tp 5 GHz16GB DDR5
OS
windows 11 home 64bit 24H2 (OS Build 26100.7992)
Computer type
Laptop
Manufacturer/Model
Lenovo ideapad 5
CPU
AMD RYZEN 5 8645HS, base 4.3GHz- up tp 5 GHz
Memory
16GB DDR5
Monitor(s) Displays
2
Screen Resolution
1920x1200
Hard Drives
512 GB SSD
PSU
65W
Case
military grade (mil-std 810h), color-abyss blue
Keyboard
backlit, light blue
Mouse
Logitech M100
Internet Speed
SLOOOOOOOW
Antivirus
Windows Defender & MBAM
Other Info
novabench score 2443
closing note before I mark this thread solved ...
I appreciate the help provided in this thread. I have been out of school for over fifty years, and I have an injury which has left me essentially one handed. It takes me more repetitions to put things to memory coupled with me typing one-handed. That is why I am waiting to install arch linux. I still love learn; so I will definitely pursue arch linux laterr.

Thanks to all,
caffeine
 

My Computer My Computer

At a glance

windows 11 home 64bit 24H2 (OS Build 26100.7992)AMD RYZEN 5 8645HS, base 4.3GHz- up tp 5 GHz16GB DDR5
OS
windows 11 home 64bit 24H2 (OS Build 26100.7992)
Computer type
Laptop
Manufacturer/Model
Lenovo ideapad 5
CPU
AMD RYZEN 5 8645HS, base 4.3GHz- up tp 5 GHz
Memory
16GB DDR5
Monitor(s) Displays
2
Screen Resolution
1920x1200
Hard Drives
512 GB SSD
PSU
65W
Case
military grade (mil-std 810h), color-abyss blue
Keyboard
backlit, light blue
Mouse
Logitech M100
Internet Speed
SLOOOOOOOW
Antivirus
Windows Defender & MBAM
Other Info
novabench score 2443
  • Helpful
Reactions: OAT
VirtualBox free is viable for Win 11 Home. It required installation of Visual C++ redistrbutable (no big deal). I installed VBox 7.0 running Ubuntu-22.04 LTS. (using 4GB ram, 2 processors, and 60 GB storage). It works, and I will remove bloatware and customize it from there as needed.
Yeah, Vbox is a great product. If it wasn't for some docker desktop and WSL stuff, I would have stayed with Vbox, versus Hyper-V.

You probably won't need 4GB of RAM for that Linux instance. Try backing it down to 2GB and see how it goes for you.

Note: There is a way to install Hyper-V under the home editions, and many are doing it fine. But you end up in a non-supported area and if you have problems, it may be hard to get help.
 

My Computers My Computers

  • At a glance

    Windows 11 ProIntel Core i5-8279u32GB DDR4 2666MhzIntel Iris Plus 655
    OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Beelink SEI8
    CPU
    Intel Core i5-8279u
    Motherboard
    AZW SEI
    Memory
    32GB DDR4 2666Mhz
    Graphics Card(s)
    Intel Iris Plus 655
    Sound Card
    Intel SST
    Monitor(s) Displays
    Asus ProArt PA278QV
    Screen Resolution
    2560x1440
    Hard Drives
    512GB NVMe
    PSU
    NA
    Case
    NA
    Cooling
    NA
    Keyboard
    NA
    Mouse
    NA
    Internet Speed
    500/50
    Browser
    Edge
    Antivirus
    Defender
    Other Info
    Mini PC used for testing Windows 11.
  • At a glance

    Windows 10 ProRyzen 9 5900x64GB DDR4-3600EVGA GeForce 3080 FT3 Ultra
    Operating System
    Windows 10 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    Ryzen 9 5900x
    Motherboard
    Asus Rog Strix X570-E Gaming
    Memory
    64GB DDR4-3600
    Graphics card(s)
    EVGA GeForce 3080 FT3 Ultra
    Sound Card
    Onboard
    Monitor(s) Displays
    ASUS TUF Gaming VG27AQ. ASUS ProArt Display PA278QV 27” WQHD
    Screen Resolution
    2560x1440
    Hard Drives
    2TB WD SN850 PCI-E Gen 4 NVMe
    2TB Sandisk Ultra 2.5" SATA SSD
    PSU
    Seasonic Focus 850
    Case
    Fractal Meshify S2 in White
    Cooling
    Dark Rock Pro CPU cooler, 3 x 140mm case fans
    Keyboard
    Corsiar K65 RGB Lux
    Mouse
    Logitech G9 Laser Mouse
    Internet Speed
    500/50
    Browser
    Chrome
    Antivirus
    Defender.
Back
Top Bottom