Skip to content

Instantly share code, notes, and snippets.

@bindiego
Created November 9, 2023 02:43
Show Gist options
  • Save bindiego/b6d9a7ef876e6418eda31d62a5a37c7e to your computer and use it in GitHub Desktop.
Save bindiego/b6d9a7ef876e6418eda31d62a5a37c7e to your computer and use it in GitHub Desktop.
Manually install vscode on server side

First of all, open the vscode editor and check the commit version from "About Visual Studio Code" tab, it should be something like 2b35e1e6d88f1ce073683991d1eff5284a32690f.

Save the bellow script and pass it the commit code to run will do the job.

#!/bin/bash

code_server=~/vscode-server-linux-x64.tar.gz

curl -L https://update.code.visualstudio.com/commit:${@}/server-linux-x64/stable > $code_server

[ -d ~/.vscode-server/bin/${@} ] || mkdir -p ~/.vscode-server/bin/${@}

cd ~/.vscode-server/bin/${@} && \
    tar -xvzf $code_server --strip-components 1

rm -rf $code_server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment