To complete this guide, you need:
- an AWS account
- Navigate to https://console.aws.amazon.com/ec2
- Launch a Ubuntu 20.04 instance with the default settings
- Caution: Please follow security best practices when setting up your VM
Caution: Make sure you successfully connected to the VM before you execute the following commands.
First, let's define the release version we want to download. You can find the latest version on the Releases page.
export SERVER_VERSION=1.60.0 # Replace with the latest version
With that in place, let's download & extract OpenVSCode server:
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
To access OpenVSCode Server on port 3000 later, we have to create an inbound rule:
- Open the instance summary page
- Select the "Security" tab
- In the "Security groups" section, click on the link to open the security group page
- In the "Inbound rules" table, click the "Edit inbound rules" button on the right side
- Click "Add rule" and populate the following fields (use default values for everything else):
- Type: Custom TCP
- Port range: 3000
- Source: Anywhere-IPv4
- Click "Save rules"
While you are still connected to the VM, execute the following commands to start OpenVSCode Server:
cd openvscode-server-v$SERVER_VERSION-linux-x64
./server.sh
- Navigate to your VM's instance summary page
- Copy the "Public IPv4 address"
- Paste the IP address in a new browser tab and add
:3000
, i.e.http://18.118.194.234:3000
- Navigate to your VM's instance summary page
- Click "Instance state" and select "Terminate instance"