Hello Friends~!
I decided to write out a step by step guide to install WSL - Windows Subsystem for Linux, with an Ubuntu Distro, and integrated GUI using Xserver. As well as how to update WSL to WSL2.
I decided to write out a step by step guide to install WSL - Windows Subsystem for Linux, with an Ubuntu Distro, and integrated GUI using Xserver. As well as how to update WSL to WSL2.
Begin by Enabling the Virtual Machine Platform Windows Feature and WSL. (simply search feature and it will popup)
Open Powershell as Admin, then paste:
Set a Username and Password when prompted, then paste:
Close Ubuntu
Download and install the WSL Kernel update from Microsoft
To Upgrade our WSL to WSL 2, Open Powershell as Admin and paste:
Download X Server
Change X Server's desktop shortcut Target property to:
"C:\Program Files\VcXsrv\vcxsrv.exe" :0 -ac -terminate -lesspointer -multiwindow -clipboard -wgl -dpi auto
Run the shortcut
Open Powershell as Admin and paste:
Open Ubuntu and Paste:
Then Paste:
This will open the Terminator app allowing us to have GUI for our Apps we install.
This next step sets up a system and script that will allow us to easily run Terminator, IE the GUI for Ubuntu.
Open Run, paste:
Paste the shortcut in this folder
Create a new text document on your desktop, name it what you like. Mine will be terminator.
Open the text document and add this code:
Save and change the filetype to .vbs
I used the command sudo apt install nautilus, then sudo nautilus to run the file explorer app, it loaded a window successfully~!
If you learn better seeing it done first, here is a video of the steps
Code:
wsl --install -d Ubuntu
Code:
sudo apt update
Close Ubuntu
Download and install the WSL Kernel update from Microsoft
To Upgrade our WSL to WSL 2, Open Powershell as Admin and paste:
Code:
wsl --set-version Ubuntu 2
wsl --update
wsl --shutdown
Download X Server
VcXsrv Windows X Server
Download VcXsrv Windows X Server for free. Project has been moved to https://github.com/marchaesen/vcxsrv Windows X-server based on the xorg git sources (like xming or cygwin's xwin), but compiled with Visual C++ 2012 Express Edition. Source code can also be compiled with VS2008, VS2008...
sourceforge.net
Change X Server's desktop shortcut Target property to:
"C:\Program Files\VcXsrv\vcxsrv.exe" :0 -ac -terminate -lesspointer -multiwindow -clipboard -wgl -dpi auto
Open Powershell as Admin and paste:
Code:
netstat -abno|findstr 6000
Code:
sudo apt-get install terminator -y
Then Paste:
Code:
DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0 terminator &
This will open the Terminator app allowing us to have GUI for our Apps we install.
This next step sets up a system and script that will allow us to easily run Terminator, IE the GUI for Ubuntu.
Open Run, paste:
Code:
shell:startup
Paste the shortcut in this folder
Create a new text document on your desktop, name it what you like. Mine will be terminator.
Open the text document and add this code:
Code:
args = "-c" & " -l " & """DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0 terminator"""
WScript.CreateObject("Shell.Application").ShellExecute "bash", args, "", "open", 0
Save and change the filetype to .vbs
I used the command sudo apt install nautilus, then sudo nautilus to run the file explorer app, it loaded a window successfully~!
If you learn better seeing it done first, here is a video of the steps
Ubuntu WSL
This documentation refers to the Ubuntu distribution for WSL. Windows Subsystem for Linux: Windows Subsystem for Linux (WSL) lets developers run a GNU/Linux environment – including most command-lin...
ubuntu.com
I made a vmware machine with ubuntu preinstalled, jdk, python and other needed components to run certain Android Kitchens, as I found WSL to be Lacking for what I need..
VMWARE 17
UBUNTU PREMADE VMWARE MACHINE:
Ubuntu.zip (3.5G)
PASSWORD IS 0110
How to install:
Extract the folder and save it anywhere you like (the default vm area for vmware is in Documents\VirtualMachines)
In vmware, select open a new machine, navigate to where you saved your ubuntu folder and open the .vmx file
If you want a premade Virtual Box Ubuntu Machine
SUPERR'S KITCHEN
VMWARE 17
UBUNTU PREMADE VMWARE MACHINE:
Ubuntu.zip (3.5G)
PASSWORD IS 0110
How to install:
Extract the folder and save it anywhere you like (the default vm area for vmware is in Documents\VirtualMachines)
In vmware, select open a new machine, navigate to where you saved your ubuntu folder and open the .vmx file
If you want a premade Virtual Box Ubuntu Machine
SUPERR'S KITCHEN
Last edited: