Crates.io | code-remote |
lib.rs | code-remote |
version | |
source | src |
created_at | 2025-04-12 13:40:22.052255+00 |
updated_at | 2025-04-12 13:46:11.974751+00 |
description | A terminal user interface to connect VS code to a computing cluster. |
homepage | |
repository | |
max_upload_size | |
id | 1630925 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
A terminal user interface to automate the process of allocating a slurm-session on a remote machine and connecting VSCode to it.
Supported Platforms: Linux, MacOS
ms-vscode-remote.remote-ssh
code
. On linux,
this should be the case by default. On MacOS, you have to launch VSCode,
open the command palette with Cmd+Shift+P
and search for:Shell Command: Install 'code' command in PATH
~/.ssh/config
. You can create the config file by executingtouch ~/.ssh/config
in the terminal.
openssl
installed. Openssl can be installed on debian based systems (Debian, Ubuntu, Linux Mint)sudo apt-get install libssl-dev
On macos, it can be installed using homebrew:
brew install openssl
scontrol show partition
, if it returns a list of partitions, you are good to go.cargo --version
, if it returns a version, cargo is already installed, if it returns an error, you need to install cargo and rust withcurl https://sh.rustup.rs -sSf | sh
cargo install code-remote
or, if you want to build from source, follow the instructions below.
Select the host that you want to remove and press 'd'. You will be asked to confirm the deletion. If you confirm, the host will be removed from the list.
scontrol show partition
on your remote machine.hours:minutes:seconds
.--mem=8G
(for 8 gigabytes of memory).Similar to selecting a host: Navigate through the session list with the arrow keys and select the session that you want to spawn. Press enter to spawn the session. If the session is successfully spawned, you will be directed to the VSCode menu. Otherwise, an error message will be displayed.
The configuration files are located in ~/.config/code-remote
. You can edit the files with a text editor. The clusters.toml
file contains the remote hosts, and the ($Hostname).toml
file contains the information about the corresponding sessions.
To build the binary from source, you must have rust and cargo installed.
cargo --version
, if it returns a version, cargo is already installed, if it returns an error, you need to install cargo and rust withcurl https://sh.rustup.rs -sSf | sh
git clone https://github.com/Gordi42/code-remote.git
cd code-remote
cargo build --release
Move the binary to a directory that is in your PATH. The binary will be in the target/release
directory.
Silvano Rosenau