First thing is to ensure that vm / hypervisor / subsystem for Linux windows are installed on your system! After rebooting your system you then upgrade wsl to wsl2 via command prompt in windows.
Open PowerShell as Administrator.
To install WSL, run this command:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
Enable the Virtual Machine Platform optional feature by running the following command:
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Restart Windows
Download the latest Linux kernel update package and install it: WSL2 Linux kernel update package for x64 machines
https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
Set WSL 2 as your default version. Open PowerShell as Administrator and run:
wsl --set-default-version 2
You can now install WSL 2 distros from the Microsoft Store.
Reboot windows
---------------------------------------------------------------------------------------------------------------------------
1) Download, and install Ubuntu 20.04 from the windows store for free.
2) Do a distro upgrade to a current supported Linux version
sudo apt update
sudo apt list --upgradable
sudo apt upgrade
(REBOOT WINDOWS)
then restart Ubuntu console and type
sudo apt update
sudo apt install update-manager-core
sudo nano /etc/update-manager/release-upgrades
change lts to normal in this file then ctrl x y and then press enter to save and exit.
sudo do-release-upgrade
Incase of error status 1 do
sudo apt remove snapd
sudo apt update
sudo do-release-upgrade
when it asks you to remove packages type n and hit enter then y to reboot! you can remove them later!
reboot windows
3) Do another distro upgrade to 22.04 lts
sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
sudo do-release-upgrade -d
4) Install a desktop environment (kubuntu desktop)
sudo apt-get install kubuntu-desktop
choose lightdm as your desktop manager when prompted for it!
sudo update-alternatives --config x-session-manager
change the session to Kubuntu desktop not the default gnome
sudo apt-get install xrdp
sudo /etc/init.d/xrdp start
sudo cp /etc/xrdp/xrdp.ini /etc/xrdp/xrdp.ini.bak
you can use any port you want starting with 33
use this command to edit the file
sudo sed -i 's/3389/3390/g' /etc/xrdp/xrdp.ini
Or use this command to edit it manually
sudo nano /etc/xrdp/xrdp.ini
Then the following
sudo sed -i 's/max_bpp=32/#max_bpp=32\nmax_bpp=128/g' /etc/xrdp/xrdp.ini
sudo sed -i 's/xserverbpp=24/#xserverbpp=24\nxserverbpp=128/g' /etc/xrdp/xrdp.ini
sudo /etc/init.d/xrdp restart
6) Enable dbus if its not already enabled
sudo systemctl enable dbus
sudo /etc/init.d/dbus start
7) Log into the new desktop via remote desktop app on windows
type localhost:(the port you used goes here) into remote desktop address.
localhost:3390 for example
then login with your Linux user name, and password
It should work now!
next time you login to the Linux console you will have to start services before remote login,
sudo /etc/init.d/dbus start
sudo /etc/init.d/xrdp start
No comments:
Post a Comment
Anyone can leave feedback! No Account needed.