Friday, 2 August 2019

Reset Kali Linux Root Password in Windows Subsystem for Linux


WSL manages the default login user from DefaultUID registry.

To edit this registry value, open Registry Editor or regedit.exe from start menu
Go to this registry path,
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss

Double click on the DefaultUID value and change it to ZERO. Zero is for root user and 1000 (Decimal) or 3e8 (in hexadecimal) for normal users.

Open wsl.exe in command prompt. The prompt changes from $ to # (means root user). Run passwd command in Kali, change root password as usual.


Now go back to previous registry key, change Zero to previous value (or 3e8 in hex).

Ref:- superuser.com

Tuesday, 23 July 2019

Install Linux on Windows 10

1. Install Windows Subsystem for Linux using PowerShell


To ensure that the "Windows Subsystem for Linux" optional feature is enabled, Open PowerShell as Administrator and run:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Type Y to complete the installation and restart your computer.





2. Install Linux from the Microsoft Store


Open the Microsoft Store and choose your favorite Linux distribution.

Ref:- Linux Installation Guide for Windows 10