Skip to content

Instantly share code, notes, and snippets.

@jpillora
Last active January 24, 2024 13:56
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 jpillora/28a5bff90e4e61e88f0faf226f36a2a1 to your computer and use it in GitHub Desktop.
Save jpillora/28a5bff90e4e61e88f0faf226f36a2a1 to your computer and use it in GitHub Desktop.
Install Microsoft's VS code-server
#!/bin/bash
set -euf -o pipefail
if [ ! -f code-server ]; then
ARCH=$(uname -m)
OS="unknown-linux-gnu"
echo "downloading code-server ($ARCH-$OS)"
URL="https://vscodeserverlauncher.blob.core.windows.net/builds/latestbin/$ARCH-$OS/$ARCH-$OS"
curl -L "$URL" >code-server
chmod +x code-server
fi
echo "starting code-server"
PORT="9980"
./code-server serve-local --verbose --accept-server-license-terms --disable-telemetry --host 0.0.0.0 --port $PORT --without-connection-token
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment