Skip to content

Instantly share code, notes, and snippets.

@Contextualist
Created March 28, 2023 22:02
Show Gist options
  • Save Contextualist/eda897a92503c083884c3deec24d041b to your computer and use it in GitHub Desktop.
Save Contextualist/eda897a92503c083884c3deec24d041b to your computer and use it in GitHub Desktop.
Code Server Quickstart

The project involved is under active development. Refer to their docs for any update.

Run VS Code on a supercomputer's node and access it locally in a browser, so that you (and your VS Code plugins) have universal access to files on the supercomputer and a uniform IDE experience.

Installation and set up

On any supercomputer, run:

curl -fsSL https://code-server.dev/install.sh | sh -s -- --method standalone

The script above install code-server on ~/.local, so make sure that ~/.local/bin is on your PATH.

You can then customize the binding port and password in config file ~/.config/code-server/config.yaml.

It's now ready to use. ssh with port forwarding. Start it up by running on the login node:

code-server

It will print out the address and you can access it locally in your browser with the password you set. Go on and install plugins and code in the same way a s using VS Code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment