Windows
Last updated
Last updated
To work on the assignments, you need a UNIX-like environment. Luckily, even though Windows is not UNIX-based, the Windows Subsystem for Linux (WSL) allows you to run a Linux distribution in a virtual machine (VM) with minimal setup. You may already know this setup from the Computer Programming course.
Download and install (VS Code) for Windows and install the WSL Extension.
Open PowerShell as administrator.
Enter wsl --install
(This step may take a few minutes)
When prompted choose a username and password for the WSL user account.
WSL should now be installed and the PowerShell window will show the command line for the Linux VM. From now on, you can enter this Linux VM by opening the WSL App from within Windows (e.g., by typing "WSL" in the search bar).
Any terminal commands that are mentioned in the following guides should be executed in a WSL terminal - not your Windows command line.
The WSL setup is not yet fully done. To install the tools needed for building your assignment programs, run the following command in your WSL terminal:
After you have set up SSH with GitHub and cloned your repository:
Navigate to the newly created folder (cd <repo_name>
)
Enter code .
A message should appear that the VS Code Server is getting installed/updated and after the process finishes, a VS Code window should open to the root folder of the framework.
One of the easiest ways to access your GitHub account (and with that your private repository) from within WSL is to set up a Secure Shell (SSH) key. Follow the for this. Make sure to execute all commands from within your WSL terminal!
You can validate that VS Code is running through WSL by checking whether the bottom left corner of the window shows a small blue box with the "WSL: Ubuntu" text in it: