The site that you are currently viewing is a static version of the Software Factory documentation delivered with the

version v7.2.
For up-to-date documentation, see the latest version.

LEAP configuration

How to configure LEAP endpoint with some dev tools

Concept

This guide will help you set up a modern development environment using Windows Subsystem for Linux (WSL2), combining the best of Windows and Linux tools. You’ll configure:

  • WSL for running Linux tools natively on Windows
  • A customized terminal environment for improved productivity
  • Visual Studio Code with WSL integration

Prerequisites:

Tasks

Common

From Company Portal:

From Microsoft Store:

WSL + Linux

From Microsoft Store:

For security purposes, Zscaler inspects encrypted HTTPS traffic by intercepting SSL/TLS connections. To avoid certificate errors, the Zscaler root certificate must be manually installed.

Important

Certificates and an automatic installation script are available on the GitLab TDP C3 . To access it, ensure that the Zscaler Private Access mode is connected.

Tip

If you need to connect a USB device to the Linux on the WSL environment, you can use usbipd-win .

Containerization environment

There are several ways to have a containerization environment on your LEAP, according to your needs.

Docker-Desktop

Docker Desktop cannot be installed on LEAP. Moreover, a paid subscription is needed for professional use (see Docker license ).

Docker Engine

You can now use docker in command line in your Terminal. If you want a GUI, install the VSCode Docker extension .

NOTE The main difference between using Docker Desktop with the WSL2 integration and using Docker directly in WSL2 without Docker Desktop is the level of integration with your tools. When you use Docker desktop, you have access to Docker in powershell/cmd, have access to your file on windows, the possibility to switch to Windows container and to use it with your IDE. If you install Docker inside your WSL2 distro, Docker will not be accessible from Windows directly.

Podman Desktop

If you are not familiar with Docker CLI or want something more similar to Docker-Desktop, you can use Podman Desktop .

Podman Desktop with install a new WSL2 distribution called _podman-machine-default_. As with the Ubuntu distribution, we need to install Zscaler root certificate in order to be able to download images from registries without SSL errors.

Git

Git is already installed in Ubuntu 22.04 but you need to configure it.

git config --global user.email "you@example.com"
git config --global user.name "Your Name"

NOTE: Cloning Git repository in ssh is authorized from LEAP endpoint, don’t forget to generate new ssh keys.

VSCode

You can now connect to your WSL environment. See the official documentation.

Optional: Fancy Terminal

Transform your Windows Terminal into a modern, feature-rich development environment with custom fonts, prompt, and styling.

Nerd Font Installation

Nerd Fonts add developer-focused icons and glyphs to regular fonts, enabling visual features like Git status icons and programming symbols in your terminal. We’ll use Hack Nerd Font, known for its excellent monospace readability.

  • Get Hack font
  • Install .ttf files
  • Terminal Settings > Ubuntu 22.04 > Appearance > Font > “Hack Nerd Font Mono”

Starship Setup

Starship is a minimal, fast shell prompt that shows contextual information like Git status, current directory, and active environment.

curl -sS https://starship.rs/install.sh | sh
echo 'eval "\$(starship init bash)"' >> ~/.bashrc

Terminal Customization

Select your preferred theme in: Terminal Settings > Ubuntu 22.04 > Appearance > Texte > Jeu de couleurs

For example: Dark+

  • Configure Terminal transparency in: Terminal Settings > Ubuntu 22.04 > Appearance > Transparence
  • You can set opacity to 90% and enable acrylic mode

image

Reference

Troubleshooting

Why I see only 50% of my RAM in WSL?

By default, only 50% of total memory is allocated to the WSL virtual machine. You can increase (or decrease) this value in the .wslconfig file .