Simple bash script for installing vscode-server on the remote Linux machine without Internet access
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.comOn the local machine:
- scp
- ssh
- curl
- code binary in PATH (optional, only for Commit ID automatic detection)
On the remote machine:
- GNU tar with
--transformoption support
- Only Linux x64 hosts are supported
- Directory /home/<REMOTE_USER>/.vscode-server should exist on the remote host
- Tested only with VS Code version 1.107.0 Linux x64