- Create a new Ubuntu or Amazon Linux lightsail instance with a SSH keypair
- Open port 3000 on IPv4 firewall
- 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)
- SSH into lightsail instance
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.0If 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.