slrtlinux.wsl.configure
R2026bConfigure WSL2 on development computer with Debian distribution name SLRT
Since R2026b
Description
slrtlinux.wsl.configure() configures a WSL distribution for use
with Simulink Real-Time on the development computer with Debian® distribution name SLRT. This function is called
automatically by the slrtlinux.wsl.setupTarget function when needed. The
slrtlinux.wsl.configure function performs the following steps:
Verifies the host is a Windows machine.
Checks if WSL is installed; installs it if not (triggers UAC elevation).
Ensures WSL2 is set as the default version.
Installs the Debian distribution under the name
SLRTif not present.Verifies the Debian version is 13.
Configures the instance: sets root password, installs SSH, creates the
slrtuser with sudo access.
Tip
Typically, you do not need to call the slrtlinux.wsl.configure
function directly. Use the slrtlinux.wsl.setupTarget function
instead.
Examples
Version History
Introduced in R2026b