Skip to content

Repo to create a WSL2 compatible zip of Alma Linux

License

Notifications You must be signed in to change notification settings

amithgeorge/AlmaLinux-WSL2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AlmaLinux for WSL2

This is based on the Generic Cloud (cloud-init) image released by AlmaLinux.

The build script is used to create a WSL2 compatible RootFS from the QCOW2 cloud-init image. The script takes inspiration from the build script used by mishamosher in their CentOS-WSL repo.

Installation

  1. Download the zip from the latest release.
  2. Extract the zip to the installation folder. Eg C:\WSL2 Distros\Alma-8
  3. Execute the file Alma-8.exe. This will install and register Alma with WSL2.
  4. Execute the file again to enter the distribution. The default user will be root.

The exe (Alma.exe) is provided by wsldl. Please read it's readme to know what all it can do.

Configuration

A few quality of life changes maybe made by the user

  1. Create a new user account inside Alma and use that as the default. Execute these from a powershell shell, inside the host Windows OS. Ensure the present working directory is the installation directory selected in "Installation Step 2".
.\Alma-8.exe run adduser -G wheel "%USERNAME%"

# enter the password for the newly created user
.\Alma-8.exe run passwd "%USERNAME%"

.\Alma-8.exe config --default-user "%USERNAME%"
  1. Upgrade the software packages. The cloud-init image might be a bit behind the latest version of Alma.
.\Alma-8.exe run sudo yum upgrade --assumeyes
  1. Set Windows Terminal as the default terminal.
.\Alma-8.exe config --default-term wt

Win x86/x64

I don't have access to a arm64 Windows machine to test/build the arm64 version of AlmaLinux for WSL2. I will accept any related PRs.

Other info

This repo contains an installation script, which is not present in the release zip. The script simply automates the installation and configuration mentioned earlier. As it stands, I don't have faith that the script will work flawlessly for everyone, hence it is excluded from the release zip.