|
@@ -123,6 +123,26 @@ sudo apt upgrade
|
|
|
|
|
|
---
|
|
|
|
|
|
+## Graphical User Interface
|
|
|
+
|
|
|
+Open a **Powershell terminal** in **User mode** and do
|
|
|
+
|
|
|
+```sh
|
|
|
+wsl --update
|
|
|
+```
|
|
|
+
|
|
|
+> maybe an Admin login/password is required (so ask for with CII interface)
|
|
|
+
|
|
|
+Open a new **Ubuntu terminal** and do
|
|
|
+
|
|
|
+```bash
|
|
|
+sudo apt update
|
|
|
+sudo apt upgrade
|
|
|
+sudo apt install x11-apps -y
|
|
|
+```
|
|
|
+
|
|
|
+---
|
|
|
+
|
|
|
# VS Code
|
|
|
|
|
|
You can install Visual Studio Code from the web link [here](https://code.visualstudio.com/download)
|
|
@@ -247,4 +267,39 @@ Now, try to run all the cells of this notebook :exclamation:
|
|
|
|
|
|
---
|
|
|
|
|
|
+# VS Code nice extensions
|
|
|
+
|
|
|
+- `Remote - SSH` : lets you use any remote machine with a SSH server
|
|
|
+- `Tabnine` : code faster with AI code completions
|
|
|
+- `Regex Previewer` : shows the current regular expression's matches
|
|
|
+- `Modern Fortran` : Fortran syntax is missing in built-in version
|
|
|
+
|
|
|
+---
|
|
|
+
|
|
|
+## VSCode - Remote SSH : example
|
|
|
+
|
|
|
+Select `Remote-SSH: Open Configuration File`
|
|
|
+
|
|
|
+```bash
|
|
|
+Host cyclone
|
|
|
+ HostName cyclone.elic.ucl.ac.be
|
|
|
+ User pbarriat
|
|
|
+```
|
|
|
+
|
|
|
+Visual Studio Code is now configured and ready to connect to your server :
|
|
|
+
|
|
|
+click on the green `Open a remote window` button in the bottom left-hand corner and select `Remote-SSH: Connect to Host`
|
|
|
+
|
|
|
+> On ELIC workstation, choose a Python environment from `ELIC_Python` module : `/opt/easybuild/...`
|
|
|
+
|
|
|
+---
|
|
|
+
|
|
|
+# Ubuntu with WSL (and without VS Code)
|
|
|
+
|
|
|
+I strongly recommand to install `Windows Terminal Preview` from **Microsft Store**
|
|
|
+
|
|
|
+![h:350](assets/term_preview.png)
|
|
|
+
|
|
|
+---
|
|
|
+
|
|
|
# Visual Studio Code for WSL :speech_balloon:
|