Table of contents :
Our programming exercises require a Unix-like OS (operating system), in particular GNU/Linux.
There are several ways to get a working Linux environment :
This document focuses on the latest method : âWindows Subsystem for Linuxâ. If you want to do it differently, ensure you still do the Configure tools part.
Skip this part if Windows 10 is up-to-date.
You can check the video.
You can check the video.
You can check the video.
Skip this part if you have a modern & full-featured web browser (e.g. Chrome, Firefox, etc).
We recommend to use Firefox with the extension âuBlock Originâ and the additional filters lists :
Make sure to apply changes.
You can check the video.
Skip this part if you already have Debian (or similar system e.g. Ubuntu).
Follow the guide : Windows Subsystem for Linux Installation Guide for Windows 10
To âOpen PowerShell as Administratorâ, right-click on the Start menu.
exit
command)You can check the video.
If you run Linux natively, go to Configure tools.
Download it from the official website. Run the installer, check all âAdditional Tasksâ.
Launch VSCode, once started it should detect WSL and propose you to install the âRemote - WSLâ extension, which is needed for the next steps.
You can check the video.
Click on the bottom-left green button (overlay says âOpen a remote windowâ), select âRemote-WSL: New Windowâ.
It will open a new VSCode window then install and run a server program in Linux to help VSCode running in its context.
The bottom-left green button (Remote Host) in the VSCode status bar should now indicate âWSL: Debianâ.
You can close the previous VSCode window.
In the Menu Bar of VSCode, click on âTerminalâ, then âNew Terminalâ.
A new panel should appear looking like :
user@DESKTOP-XXXXXXX:~$ â
This is a command-line interface, you can type commands and execute them pressing Enter. You can also complete your command using Tab âš. For instance type âec
â :
user@DESKTOP-XXXXXXX:~$ ecâ
Then press Tab âš. The command will be completed to âecho
â and a space is added, waiting for arguments to be provided, type âHello World
â then Enter :
user@DESKTOP-XXXXXXX:~$ echo Hello World
Hello World
user@DESKTOP-XXXXXXX:~$ â
echo
is a program that displays text. Now you will execute commands that will install all the necessary programs you will need, this is the first one :
sudo apt update
Type the password you entered during Linux installation. When itâs over (the command prompt appears again) run the 3 next commands (we hide their output):
sudo apt -y upgrade
sudo apt -y install curl
curl https://raw.githubusercontent.com/01-edu/public/master/docs/setup/configure.sh | bash
Now you are able to push & pull code to Gitea using git
.
Close the terminal (by using the shortcut Ctrl+D or typing the exit
command)