Commit cbb5fbac authored by Chris Hines's avatar Chris Hines
Browse files

Update vscode.md

parent b938b9f3
Pipeline #18060 failed with stage
in 4 minutes and 15 seconds
Introduction
-------------
So you'd like to use VSCode, but your data is on M3. No problem. You want a VSCode remote server
So you'd like to use VS Code, but your data is on M3. No problem. You want a VS Code remote server
The official VSCode documentation on this is here https://code.visualstudio.com/docs/remote/ssh
The official VS Code documentation on this is here https://code.visualstudio.com/docs/remote/ssh
By default, if you follow those instructions, you will end up running the VS Code remote server on the login node. Please don't do this, the login nodes are a shared resources and we would rather allocate you a resource just for you.
Steps
------
1. Setup VSCode (install remote server extension)
1. Setup VS Code (install remote server extension)
Please follow the excelent instructions here https://code.visualstudio.com/docs/remote/ssh#_installation ... When you get to the section "Connect to a remote host" please come back here
......@@ -50,7 +50,7 @@ It is possible to start the inbuild windows ssh-agent. But I'm having difficulty
Open a terminal and type `ssh-add .ssh/id_ed25519` you'll be asked for that key passphrase, but then your computer will remember the key (until the next reboot)
3. Configure VSCode
3. Configure VS Code
Skip down to here https://code.visualstudio.com/docs/remote/ssh#_remember-hosts-and-advanced-settings. If you are on linux or mac, for your "SSH Connection Command" enter
......@@ -67,12 +67,12 @@ Skip down to here https://code.visualstudio.com/docs/remote/ssh#_remember-hosts-
4. Start remote server.
Using strudel2 https://beta.cloud.cvl.org.au login to CVL and select the VSCode application on the left. Fill in how many CPUs which GPU and how much RAM you need for how long and click launch
Using strudel2 https://beta.cloud.cvl.org.au login to CVL and select the VS Code application on the left. Fill in how many CPUs which GPU and how much RAM you need for how long and click launch
5. Switching back to vscode, Remote-ssh: Connect to host and select the VSCode host
If you didn't add the key to the agent, VSCode will ask you for either you key passphrase or your M3 password. It will ask twice (once to the connect to the login nodes, then again to connect to the node running the remote server)
5. Switching back to vscode, Remote-ssh: Connect to host and select the VS Code host
If you didn't add the key to the agent, VS Code will ask you for either you key passphrase or your M3 password. It will ask twice (once to the connect to the login nodes, then again to connect to the node running the remote server)
VSCode will also ask you what type of server it is (linux)
VS Code will also ask you what type of server it is (linux)
Then you should be good to good
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment