WSL
Many of the tools used in the course will not work natively on Windows, and to make the journey smoother, students on Windows are recommended to install WSL (Windows Subsystem for Linux). An alternative approach is to create a machine in CSCloud with the single purpose of running the tools in the course.
Install WSL
Follow the guide: https://learn.microsoft.com/en-us/windows/wsl/setup/environment
- Start of by installing WSL
- Setup your Linux username and password
- Update and upgrade packages
- (There is no need to add additional distributions.)
- Set up the Windows Terminal
- Try out the File Storage
- Setup Visual Studio Code
- Setup Git
- (Remote development with Docker)
- Read Basic WSL Commands
Add SSH-keys to WSL
The WSL is a virtual computer in windows and will not have access to your, in Windows, added SSH-keys. It is possible to sync keys between Windows and WSL, however we recommend to have separate keys in WSL and Windows.
Remember! WHen you are in WSL you should follow guides aimed towards Linux/Ubuntu, not Windows!
Add SSH-keys to Gitlab
- Start of by creating new SSH-keys in WSL by following the guide at Gitlab.com
- Add the public part of the key to your Gitlab.lnu.se-account
- Verify that you can communicate between WSL and Gitlab:
ssh -T git@gitlab.lnu.se
Add your CSCloud SSH-keys
- Download the SSH-key (xx222yy_key_ssh.pem) from your "Secrets"-project on Gitlab and add to the folder
~/.ssh/
in WSL. - Change the key permissions to 600:
chmod 600 ~/.ssh/xx222yy_key_ssh.pem