Launch Ubuntu In SECONDS Using WSL2 With GUI (Broken)

preview_player
Показать описание
Introduction:
This guide will walk you through the process of setting up Windows Subsystem for Linux (WSL) on your Windows 10 machine and run Ubuntu in seconds with GUI (GNOME). By following these steps, you will be able to run Linux commands and applications directly on your Windows system, without the need for a virtual machine.

Before you can use WSL, you will need to enable a few Windows features. To do this, open the Command Prompt and run the following commands:

Now that the necessary features are enabled, you can install WSL by running the following commands:
$ wsl --install
$ Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

To check which version of WSL you have installed, use the following command:
$ wsl -l -v

To set the default version of WSL to version 2, use the following command:
$ wsl --set-default-version 2

Once you have Ubuntu installed, you can update it by running the following commands:
$ sudo apt update
$ sudo apt upgrade

To install Gnome on Ubuntu, run the following command:
$ sudo apt install ubuntu-desktop gnome

To configure display for GUI application, open bashrc by running the following command:
$ nano ~/.bashrc

Paste the following in bashrc:
export LIBGL_ALWAYS_INDIRECT=1

To enable systemd, use the following commands:
$ cd ubuntu-wsl2-systemd-script/

To shut down WSL2, use the following command:
$ wsl --shutdown

To start a Gnome session, use the following command:
$ gnome-session

With these steps, you should now have WSL set up and configured on your Windows 10 machine. You can now run Linux commands and applications directly on your system, and even use a GUI interface with the help of XLaunch and Gnome. Remember to keep your Linux distribution updated and enjoy the power of Linux on Windows.

#wsl #ubuntu #windows10 #windows11 #it #cybersecurity
Рекомендации по теме
Комментарии
Автор

i face this problem "[process exited with code 1 after wsl --shutdown and restart My Laptop Please Help

idkofficiel
Автор

I love this video but I cant get the sound to be working do you have any solutions?

AkaraKaewsaad
Автор

That script from github completely broke my ubuntu 22.04 WSL version, not even reinstalling fixed it, please beware

manuelquiroga
Автор

Hey Frenzaahh,
right after I restarted my pc and tried to give the command gnome-session my ubuntu terminal was not operateable. It said "gmm^Hgmm^HSleeping for 1 second to let systemd settle". Could you possibly give me an solution to this?
Thanks in advance.

bordoblue
Автор

I get an error saying "** (process:344): WARNING **: 19:06:55.864: Could not make bus activated clients aware of XDG_CURRENT_DESKTOP=GNOME environment variable: Could not connect: No such file or directory"

BlackAnt
Автор

I followed the steps and then when I open Ubuntu I get the message "Sleeping for 1 second to let systemd settle" and ubuntu closes automatically.

orobsonlourenco
Автор

Very nice video and thanks for the same. I got struck in the last few minutes while running this command to activate the GUI. Can u please help me out to fix this to complete the GUI login. $ gnome-session D-Bus library appears to be incorrectly set up: see the manual page for dbus-uuidgen to correct this issue. (Failed to open "/var/lib/dbus/machine-id": No such file or directory; UUID file '/etc/machine-id' should contain a hex string of length 32, not length 0, with no other text)
gnome-session-binary[1880]: WARNING: Failed to upload environment to systemd: Name "org.freedesktop.systemd1" does not exist
gnome-session-binary[1880]: WARNING: Failed to reset failed state of units: Name "org.freedesktop.systemd1" does not exist
gnome-session-binary[1880]: WARNING: Falling back to non-systemd startup procedure due to error: Name "org.freedesktop.systemd1" does not exist
gnome-session-binary[1880]: WARNING: Using null backend for session tracking
_IceTransmkdir: Owner of /tmp/.ICE-unix should be set to root

jaikishank
Автор

hmm, in the last step, I open the Ubuntu terminal, it loads a black screen and then is closed automatically. It seems that a crash error occurs.

PlayGamesToRelax
Автор

when install ubuntu-gnome ** (process:331): WARNING **: 00:49:17.898: Could not make bus activated clients aware of XDG_CURRENT_DESKTOP=GNOME environment variable: Could not connect: No such file or directory
Trace/breakpoint trap

ParacordProProjects
Автор

bingbong#5912
take this video down its broken af

edwardmorra