|
|
|
# Introduction
|
|
|
|
|
|
|
|
Work remotely using [VS Code](https://code.visualstudio.com/). This allows you to quickly get up and running with ROS and the system you're developing, without having to install anything on your own computer besides VS Code. Neat! In essence, you will sit on your computer while the other computer (remote) does the work of running ROS, Docker, etc.
|
|
|
|
|
|
|
|
Head over to [VS Code](https://code.visualstudio.com/) and download and install it.
|
|
|
|
|
|
|
|
# Figure Out the Remote
|
|
|
|
|
|
|
|
Look at the IP table for the remote IP for "fetdatorn" [here](https://gitlab.liu.se/liuhomewreckers/liu-home-wreckers/-/wikis/Home). This is the **connection string** you will use when adding the remote using **ssh**.
|
|
|
|
|
|
|
|
# VS Code Setup
|
|
|
|
|
|
|
|
Given that you now have installed VS Code you are ready to proceed to the next steps.
|
|
|
|
|
|
|
|
1. If you have already done this setup before, you may find that the remote setup is available through your recent projects as follows, otherwise skip this step. 
|
|
|
|
2. Begin by installing the Remote Connection plugins from the store. You can install them by clicking the Extensions icon in the left navigation bar, or by the keyboard shortcut **Ctrl + Shift + X** (Windows).
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
3. Click on the remote extension and add an SSH target.
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
4.
|
|
|
|
|
|
|
|
Click **configure** and then add the hostnames under the headline "Using VS Code" from [here](SSH%20Tunnel%20Settings) and replacing the usernames.
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
Save the file, and the target should appear in your SSH Targets list.
|
|
|
|
|
|
|
|
5. Connect to the host in the current window or a new window.
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
6. Enter the necessary passwords.
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
7. Look at the bottom left to see the status of the connection. 
|
|
|
|
|
|
|
|
<details><summary>Troubleshooting</summary>
|
|
|
|
If you're having trouble connecting after entering your password and get: "Failed to parse remote port from server output" error messages, try downgrading the "Remote - SSH" VSCode extension to 0.49. You might also have to disable compression in the .ssh/config file.
|
|
|
|
</details>
|
|
|
|
8. Open the repository folder on your user. If you don't have the repository, open your home directory and clone the repository using the terminal (`git clone git@gitlab.liu.se:liuhomewreckers/liu-home-wreckers.git`), and then open that directory instead.
|
|
|
|
|
|
|
|
Click on **Open Folder** in the top left to choose the directory to open if you have already cloned the repository into your home folder. 
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
Otherwise, open a terminal from the top navigation menu.
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
From this terminal, you can do anything as if you were using the terminal of the actual remote computer.
|
|
|
|
|
|
|
|
 |
|
|
\ No newline at end of file |