Skip to content

Instantly share code, notes, and snippets.

@Cyclenerd
Created April 1, 2022 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Cyclenerd/7f245f48b573ff2c8d9c784e866095a7 to your computer and use it in GitHub Desktop.
Save Cyclenerd/7f245f48b573ff2c8d9c784e866095a7 to your computer and use it in GitHub Desktop.
Install Open Visual Studio Code (VSCode) Server / Gitpod
#!/bin/sh
MY_LAST_VERSION_URL="$(curl -fsSLI -o /dev/null -w "%{url_effective}" https://github.com/gitpod-io/openvscode-server/releases/latest)"
echo $MY_LAST_VERSION_URL
MY_LAST_VERSION="${MY_LAST_VERSION_URL#https://github.com/gitpod-io/openvscode-server/releases/tag/openvscode-server-v}"
echo $MY_LAST_VERSION
MY_DOWNLOAD_URL="https://github.com/gitpod-io/openvscode-server/releases/download/openvscode-server-v${MY_LAST_VERSION}/openvscode-server-v${MY_LAST_VERSION}-linux-x64.tar.gz"
echo $MY_DOWNLOAD_URL
curl -LO "$MY_DOWNLOAD_URL"
tar -xzf "openvscode-server-v${MY_LAST_VERSION}-linux-x64.tar.gz"
ln -sf "openvscode-server-v${MY_LAST_VERSION}-linux-x64" "openvscode-server"
./openvscode-server/bin/openvscode-server --without-connection-token --host "0.0.0.0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment