Skip to content

Lampus/install-vscode-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

install-vscode-server.sh

Purpose

Simple bash script for installing vscode-server on the remote Linux machine without Internet access

Usage

Use -h option for getting help

Usage: ./install-vscode-server.sh [-c <VSCODE_COMMIT_ID>] [-u <REMOTE_USER>] -H <REMOTE_HOST>

Options:
        -c <VSCODE_COMMIT_ID>   Set VS Code commit id manually. Default: try to detect commit id for installed version automatically
        -d                      Download only mode. Downloads vscode-cli and vscode-server to current directory
        -h                      Display this help and exit
        -u <REMOTE_USER>        Set user name for remote server. Default: use local user name
        -H <REMOTE_HOST>        Set host name for remote server. REQUIRED! (if not download-only mode is used)

Example:

./install-vscode-server.sh -u myuser -H myserver.mydomain.com

Dependencies

On the local machine:

  • scp
  • ssh
  • curl
  • code binary in PATH (optional, only for Commit ID automatic detection)

On the remote machine:

  • GNU tar with --transform option support

Limitations

  1. Only Linux x64 hosts are supported
  2. Directory /home/<REMOTE_USER>/.vscode-server should exist on the remote host
  3. Tested only with VS Code version 1.107.0 Linux x64

About

Install VS Code Server needed for Remote-SSH feature to remote server without Internet access

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages