Contenu principal

slrtlinux.wsl.configure

R2026b

Configure 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:

  1. Verifies the host is a Windows machine.

  2. Checks if WSL is installed; installs it if not (triggers UAC elevation).

  3. Ensures WSL2 is set as the default version.

  4. Installs the Debian distribution under the name SLRT if not present.

  5. Verifies the Debian version is 13.

  6. Configures the instance: sets root password, installs SSH, creates the slrt user with sudo access.

Tip

Typically, you do not need to call the slrtlinux.wsl.configure function directly. Use the slrtlinux.wsl.setupTarget function instead.

example

Examples

collapse all

You can use the slrtlinux.wsl.configure function to manually configure a WSL distribution without creating a Target object.

slrtlinux.wsl.configure()

Version History

Introduced in R2026b