Skip to content

Instantly share code, notes, and snippets.

@thecloudranger
Last active September 2, 2023 20:06
Show Gist options
  • Select an option

  • Save thecloudranger/8954894c327d465d997dd2969d7a7858 to your computer and use it in GitHub Desktop.

Select an option

Save thecloudranger/8954894c327d465d997dd2969d7a7858 to your computer and use it in GitHub Desktop.
Gitpod's openvscode-server on AWS Lightsail

On AWS console

  1. Create a new Ubuntu or Amazon Linux lightsail instance with a SSH keypair
  2. Open port 3000 on IPv4 firewall
  3. Go to https://github.com/gitpod-io/openvscode-server/releases and note down the latest version number (as of writing this gist the version number is 1.81.1)
  4. SSH into lightsail instance

In terminal

export SERVER_VERSION=1.81.1 # Replace with the latest version

wget https://github.com/gitpod-io/openvscode-server/releases/download/openvscode-server-v$SERVER_VERSION/openvscode-server-v$SERVER_VERSION-linux-x64.tar.gz -O code-server.tar.gz
tar -xzf code-server.tar.gz
rm code-server.tar.gz

cd openvscode-server-v$SERVER_VERSION-linux-x64
./bin/openvscode-server --host 0.0.0.0

If successful the console will display an output as follows: Web UI available at http://localhost:3000/?tkn=xx112233-4567-8901-zzyy-abcdefgh1234

Access the editor through a browser by using the Lightsail public IP instead of localhost in the URL displayed in ther terminal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment