Introduction
Work remotely using VS Code. 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 and download and install it.
Figure Out the Remote
Look at the IP table for the remote IP for "fetdatorn" here. 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.
- 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.
- 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).
- Click on the remote extension and add an SSH target.
Click configure and then add the hostnames under the headline "Using VS Code" from here and replacing the usernames.
Save the file, and the target should appear in your SSH Targets list.
- Connect to the host in the current window or a new window.
- Enter the necessary passwords.
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.
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.