WSL2 Ubuntu GUI
Key Takeaways
Install a graphical user interface with Ubuntu 20.04 on WSL 2 and connect using remote desktop, as Microsoft announces RDP-based GUI for future release
Full Transcript
in this video I'm going to show you a number of things I'm going to show you how to get WSL version 2 up and running on a Windows 10 computer in a previous video which I've linked here and below I showed you how to do that but I showed you how to do that using the graphical user interface so in this video I'm going to show you how to do that using PowerShell just allows us to do things very very quickly but I'm also going to show you how to get and a bunch of e em up and running on wsl in this case a bun to 2004 and I'm gonna show you how to get a graphical user interface up and running on ubuntu I'm going to show you how you can remote to desktop to the bull to VM running within WSL version 2 okay let's get started as mentioned I'm going to show you multiple things in this video first thing is installation of WSL version 2 then I'm going to show you how to get in a bun to virtual machine up and running within wsl version 2 then I'm going to show you how to set up at the graphical user interface use this menu and the menu below to jump to a specific topic so if you're not interested in for instance getting wsl version 2 up and running because you've already got it working then jump to the relevant topic in this video now in this example I'm doing everything on this Windows 10 a laptop I'm controlling the laptop using VNC from my Mac but I'm doing everything on this Windows 10 laptop ok first thing make sure that you've got the right of version of Windows 10 you need at least version 2004 if you haven't got that version go to Windows Update and make sure that you update your windows computer to that release now some people have had issues getting this release of windows up and running on their computer you may have to use a manual installation process to do that okay so once you've got your computer updated run PowerShell as an administrator so I'm gonna click yes to run this as administrator here's PowerShell first thing you need to once you open PowerShell as administrator is to enable the windows subsystem for Linux I'm going to simply copy this command from the Microsoft and documentation but I've put all the commands below this video which will hopefully help you get the set up very quickly I've added commands to setup w SL version two but I've also added of the commands to get the graphical user interface up and running on a bullet II so I'm going to simply paste that into PowerShell you can see that to the feature has been enabled next step and as you can see here they mention that you need a version 2004 is to enable the virtual machine platform so I'm going to copy that command from Microsoft and paste it in operation has completed successfully we told that we need to restart the machine so restart your computer as you can see Windows updates are being applied and the computers been rebooted ok once it reboots log back in you can check whether your features are enabled by going to turn Windows Features on or off scrolling down here I can see that the virtual machine platform is enabled as well as the windows subsystem for Linux that's how you enable it through the GUI if you prefer using the GUI ok next step is to set the version to w SL version T so PowerShell copy this command to set the version to version 2 now notice WSL requires an update to its kernel component you can use this URL to find out the details so copying that your role we need to download to the latest WS l to Linux kernel so I'm gonna click on that link to download the software this is only a small application 13 Meghan size so I'll show that in folder double-click on the MSI click a run and I'm told to that this will update the windows subsystem for Linux click Next click yes to allow it to to make changes that's now completed now that that's been done I'll copy the command once again to set the version to version 2 so that's been done now far top WS L - L - V you can see that no Linux distributions have been installed so I can install them from the Microsoft Store so back in the documentation they basically tell us to do that we can go to the Microsoft Store so I'll do that go to the Microsoft Store and search for a booty now there various releases of a bun - I could run 18:04 LTS I could run 2004 I'm simply going to take this version which is actually gonna give me the latest release of Ubuntu at the time of this recording it's 2004 now I've previously installed us so I've got the install option if you don't have that click get and then click install so I'm going to click install software is downloaded it's about four 30 Meg so that's now completed and what I can do now is launch the virtual machine I'm told that it's installing and may take a few minutes I'm asked to create a default UNIX account this does not need to match my Windows user name I'm simply going to use David specify my password retype my password and as you can see I've now got a boon to up and running on my Windows 10 computer back in PowerShell using the command WL - L - V shows me that I've got a boon to running the WS l version is version 2 so that's how you get and a boon to virtual machine this is a lightweight a virtual machine running within WS l version 2 on the Windows 10 computer in my example here I'm using Windows home I'm not using a professional version of Windows this is Windows home running on a laptop with an i7 processor 8 gig of ram but i've essentially got a bun tube up and running on this computer LSB under school released - a shows me my version of ubuntu now in other videos which i've linked here and below i show you how to use windows terminal when this terminal makes us very easy so as an example I can select Ubuntu here PWD shows me my home directory LSB underscore release once again shows me my release of Ubuntu 2004 you don't have to use the Windows terminal if you don't want to you can just use the bolt in terminal that you get with Windows but in my example I'm gonna use the Windows terminal just because it's very nice it has tabs very nice interface okay so now that we've got a boot up and running let's get a graphical user interface up and running on this a boon to virtual machine now in May 2020 Microsoft announced that they will bring graphical user interfaces to wsl version 2 at the time of this recording that's still not available it's probably scheduled for the later part of 2020 so in this example I'm going to show you how to get a graphical user interface up and running on a boon to so that you can IDP directly to your boon to virtual machine running within WSL version 2 this is a workaround at the moment while we wait for Microsoft to release they bolt in a DP or remote desktop solution in WS l version to you the first thing to do is to do a sudo apt update and sudo apt upgrade I'll put in my password references updated and the software is updated now you don't necessarily have to upgrade your virtual machine it's just good practice so that's what I'm doing here okay that's done I'll clear the screen I'll now use sudo apt install xrdp to install RDP I've once again listed all the commands below this video if you just want to copy those rather than try and get them from the video EP is installed I'll clear the screen let's install a lightweight graphical user interface so X face.4 now you have a choice I'm going to use G DM 3 as my graphical user interface ok that's completed I'll clear the screen again I'm going to install additional software so xfce 4 goodies I'll clear the screen again now we're going to do some configuration of ex IDP so I'm going to back up at the xrdp configuration file so that I have a backup of it you don't have to do this but it's a good idea to backup stuff like this so if you make a mistake you can just restore your backup what I'm going to do is change the default port of 3 3 8 9 2 3 3 9 0 you don't have to do that once again but I'm doing that so that I can use a different port number to the default make sure that there no conflicts I'm going to increase the resolution by increasing the bits per pixel so those two commands just allow the quality of the IDP session to be better I'm basically already paying to myself here locally so make sense to have good quality I'm going to save that to X session and what I'm going to do is use nano simple text editor to edit this xrdp startup script go right to the end so just go right to the end and comment out these last two lines so I'm going to simply comment out those two lines and then I'm going to add an additional two lines so we're going to start xfce control X save the file and there you go I've saved that file and now that I've saved the file I'm going to start up X IDP so the RDP server has now started so now that that's been done I can test my connection and I can use localhost port 3 3 9 0 because that's the port we changed the RDP server to use and if I click connect I'm told that the identity of the server can't be verified do I want to connect yes I do I've got an IDP session to my bunty server I'll log in with my username and password if you get an error here it's probably because you've used the wrong username and password so I'm going to click OK to log into my server and there you go of I peed or opened a remote desktop to my bunted computer so just to prove the point here is my boon to server so this is the CLI LSB underscore release gives us that IP address gives us that this is the IP address of the server in my IDP session I'll click on applications terminal editor I'll zoom in here so just make this a bit bigger LSB underscore release - a shows me my release IP address shows me that this is the same server I'm working on the same server now the interface is different I'm using a lightweight GUI interface here rather than the default notice what happens though when I try and open up a web browser I get an error so what I'm going to do is type sudo apt install Firefox so that I have Firefox as my default browser so I'm now installing firefox on the Ubuntu virtual machine running within WSL version 2 running within my Windows 10 computer ok so that's done I'll click on this icon again and notice I have Firefox running on my boon to VM running within WSL version 2 I'll type date today notice there's the date so there you go I'm able to connect to the internet using a web browser installed within a bun to within WSL version 2 on my Windows 10 computer now I'll close this because I'm sure people are going to ask me this question you don't have to use localhost you could go to 24-105 187 like this this is using a nat @ address so I'm able to connect to the virtual machine by IP address now that's how you get a graphical user interface up and running on a bun to have a look at the links below this video I found a really good article and I've linked to that below this video that really helped me set this up now if you enjoy this video please consider subscribing to my youtube channel please like this video and please click on the bell to get notifications I'm David bumble I want to wish you all the very best [Music]
Original Description
Install a graphical user interface (GUI) with Ubuntu 20.04 running within WSL 2 on a Windows 10 computer. Microsoft have announced that an RDP based GUI will be added to WSL2, but it's not currently available. I'll show you how to get a GUI installed and how to connect to the GUI using remote desktop so you can start using that today.
Menu:
Overview: 0:00
Prerequisites: 1:20
Install WSL: 1:46
Install Ubuntu 20.04: 4:45
Install Ubuntu GUI: 7:25
Test RDP connection to the Ubuntu VM: 10:35
WSL commands:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wsl --set-default-version 2
Ubuntu GUI commands:
See pinned comment as YouTube doesn't allow all the commands. Otherwise use my github link:
https://github.com/davidbombal/wsl2/blob/main/ubuntu_gui_youtube
Good links:
Microsoft GUI announcement: https://devblogs.microsoft.com/commandline/the-windows-subsystem-for-linux-build-2020-summary/
Ubuntu WSL2 GUI Install: In Ubuntu WSL:
https://dev.to/darksmile92/linux-on-windows-wsl-with-desktop-environment-via-rdp-522g
WSL 2 install: https://docs.microsoft.com/en-us/windows/wsl/install-win10
Docker for WSL2: https://docs.docker.com/docker-for-windows/wsl/
What is WSL? https://docs.microsoft.com/en-us/windows/wsl/about
WSL documentation: https://docs.microsoft.com/en-us/windows/wsl/
WSL 2 Announcement: https://devblogs.microsoft.com/commandline/announcing-wsl-2/
WSL2
Docker
Ubuntu 20.04
Ubuntu GUI
WSL 2 Ubuntu GUI
WSL Ubuntu GUI
WSL 2
WSL 1
Ubuntu 18.04
windows subsystem for linux
wsl2 ubuntu gui
#wsl2 #ubuntu #windows
Playlist
Uploads from David Bombal · David Bombal · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
RYU SDN Controller Part 4: Graphical User Interface (GUI): Practical GNS3 SDN and OpenFlow
David Bombal
HPE Network Protector SDN Application Part 1 - Introduction
David Bombal
HPE Network Protector SDN Application Part 2 : DNS Interception using OpenFlow
David Bombal
HPE Network Protector SDN Application Part 3 - Lab Setup using Physical Switches
David Bombal
HPE Network Protector SDN Application Part 4 - Demo of malicious websites blocked
David Bombal
HPE Network Protector SDN Application Part 5 - Demo OpenFlow table interception flows
David Bombal
HPE Network Protector SDN Application Part 6 - Demo of Physical Switch configuration
David Bombal
HPE Network Protector SDN Application Part 7 - Demo Service Insertion Tunnel / GRE Tunnel
David Bombal
HPE Network Protector SDN Application Part 8 - Demo SDN OpenFlow Reporting
David Bombal
HPE Network Protector SDN Application Part 9 - Demo switches interception of DNS traffic
David Bombal
GNS3 Talks: GNS3 version 1.5.X Appliance Tips
David Bombal
CCNA 200-125 Exam: AAA demo: TACACS+ with GNS3
David Bombal
GNS3 2.0.0 beta 2 install
David Bombal
CCNA #012: Learn SNMP with GNS3, Wireshark and Solarwinds NPM - CCNA 200-125 exam
David Bombal
CCNA #013: Spanning Tree CCNA Exam Questions: Know the answer? CCNA 200-125 exam
David Bombal
GNS3 2.0.0 beta : GNS3 VM integration with GNS3 GUI
David Bombal
CCNA #018: Routing exam questions: Who wins? OSPF, EIGRP or RIP? Sure? CCNA 200-125 exam
David Bombal
CCNA #019: Spanning Tree CCNA Exam Questions: Root Bridge, Root Port and more: CCNA 200-125 exam
David Bombal
GNS3 Download, installation and configuration - GNS3 1.5.3 and Windows 10
David Bombal
CCNA #023 EIGRP Neighbor Troubleshooting (DUAL Issues) for the CCNA 200-125 Exam
David Bombal
GNS3 2.0 Architecture and schema Part 1: What is the GNS3 Controller?
David Bombal
GNS3 2.0 Architecture and schema Part 2: Emulators and virtualization
David Bombal
CCNA #028 VTP Troubleshooting for the CCNA 200-125 Exam
David Bombal
CCNA #029 VTP & DTP Troubleshooting for the CCNA 200-125 Exam
David Bombal
CCNA #030 VTP Troubleshooting for the CCNA 200-125 Exam
David Bombal
GNS3 : How to download Cisco IOS images and VIRL images. Which is the best? How do you get them?
David Bombal
GNS3 ASA setup: Import and configure Cisco ASAv with GNS3
David Bombal
GNS3 switching setup and options: Cisco and other switching options in GNS3
David Bombal
GNS3 switching setup and options Part 2: GNS3 unmanaged built-in switch
David Bombal
GNS3 switching setup and options Part 3: Router on a sick with GNS3 unmanaged built-in switch
David Bombal
GNS3 switching setup and options Part 4: Etherswitch Router for Cisco Dynamips Part 1
David Bombal
GNS3 switching setup and options Part 5: Etherswitch Router for Cisco Dynamips Part 2
David Bombal
GNS3 switching setup and options Part 6: Etherswitch, Wireshark, 802.1Q, InterVLAN routing
David Bombal
GNS3 Talks: Docker, Open vSwitch, SDN and OpenFlow Part 1: GNS3 Switching Part 7
David Bombal
GNS3 Talks: Docker, Open vSwitch, SDN and OpenFlow Part 2: GNS3 Switching Part 8
David Bombal
GNS3 Talks: Docker, Open vSwitch, SDN and OpenFlow Part 3: GNS3 Switching Part 9
David Bombal
GNS3 Talks: Docker, Open vSwitch, SDN and OpenFlow Part 4: GNS3 Switching Part 10
David Bombal
GNS3 Talks: Docker, Open vSwitch, SDN and OpenFlow Part 5: GNS3 Switching Part 11
David Bombal
GNS3 Nexus (NX-OSv) switch setup and configuration Part 1: GNS3 switching options Part 12
David Bombal
GNS3 Nexus (NX-OSv) switch setup and configuration Part 2: GNS3 switching options Part 13
David Bombal
GNS3 Talks: Docker, Open vSwitch, SDN and OpenFlow Part 6: GNS3 Switching Part 14
David Bombal
GNS3 Talks: Docker, Open vSwitch, SDN and OpenFlow Part 7: GNS3 Switching Part 15
David Bombal
GNS3 Cisco CSR 1000v setup and configuration Part 1: GNS3 NFV
David Bombal
GNS3 Cisco CSR 1000v setup and configuration Part 2: GNS3 NFV
David Bombal
GNS3 Talks: Use the NAT node to connect GNS3 to the Internet easily!
David Bombal
GNS3 Talks: GNS3 2.0 RC1 is now available
David Bombal
GNS3 Talks: GNS3 2.0 Portable Projects - easily export and import GNS3 projects
David Bombal
GNS3 Talks: Multiple clients sharing projects in real time, plus console session shadowing!
David Bombal
CCNA #035 NAT Troubleshooting Scenario 1 - Can you find the issue? CCNA Exam 200-125 troubleshooting
David Bombal
CCNA #036 NAT Troubleshooting Scenario 2 - Can you find the issue? CCNA Exam 200-125 troubleshooting
David Bombal
GNS3 Talks: ESXi, GNS3 VM and KVM support Part 1: leverage servers and the cloud
David Bombal
CCNA #037 OSPF Troubleshooting - can you find the issue? CCNA Exam 200-125 troubleshooting
David Bombal
GNS3 Talks: ESXi, GNS3 VM and KVM support Part 2: leverage servers and the cloud
David Bombal
CCNA #038 NAT Troubleshooting Scenario 3 - Can you find the issue? CCNA Exam 200-125 troubleshooting
David Bombal
CCNA #039 - OSPF DR, BR and DROTHER Election - do you know the answers?
David Bombal
CCNA #040 NAT Troubleshooting Scenario 4 - Can you find the issue? CCNA Exam 200-125 troubleshooting
David Bombal
GNS3 Talks: Arista vEOS GNS3 import and configuration Part 1
David Bombal
CCNA #041 - OSPF DR, BR and DROTHER Election - do you know the answers?
David Bombal
GNS3 Talks: Arista vEOS GNS3 import and configuration Part 2
David Bombal
GNS3 Talks: ipterm: Linux, Docker, Python, SDN and more! Part 1
David Bombal
🎓
Tutor Explanation
DeepCamp AI