Showing posts with label WSL2. Show all posts
Showing posts with label WSL2. Show all posts

Monday, March 7, 2022

Install OpenSSL on Windows Subsystem for Linux (WSL2)

wget https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.5.0.tar.gz

<Check latest version and replace everywhere>

tar -xvf libressl-3.5.0.tar.gz

cd libressl-3.5.0/

./configure

You may receive and error configure: error: no acceptable C compiler found in $PATH 

sudo apt-get install -y build-essential checkinstall

sudo make

sudo make check

sudo make install

sudo ldconfig

<In new Terminal>

openssl version

Install Windows Subsystem for Linux (WSL2)

Pre-requisite: You must be running Windows 10 version 2004 and higher (Build 19041 and higher) or Windows 11

> Run powershell as administrator

> Run command:

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

    wsl --install -d Ubuntu 

 > Restart the system, after that find and run Ubuntu and it will ask you to set a user name and password.

    sudo apt update && sudo apt upgrade

  sudo apt install gedit -y


reference: Install WSL | Microsoft Docs