⚠️ The deploy script referenced in this guide uses the code-server --link service which is now deprecated. If this solution does not work for you, we recommend following our guide to use LetsEncrypt with Caddy to securely connect to code-server on your VM.
Linode is a developer-friendly platform with cloud servers. Here is the easiest way to launch code-server on Linode.
-
Log in to Linode and go to the "StackScripts" section in the sidebar
-
Navigate to "Community Scripts" and use
bencdr/code-server
or create your own based on launch-code-server-linode.sh. -
Give your server a label and deploy with Ubuntu 20.10 and any size. Once your server starts, you can simply navigate to the IP address and get forwarded to a secure version of code-server, which will be proxied behind your GitHub account. For information on how this works, see code-server --link.
-
Optional: To change the URL in the address bar from
linode-[xxxx]
to something more descriptive, you just need to change your hostname and restart code-server:sudo hostnamectl set-hostname bens-devbox sudo systemctl restart code-server@coder
See our troubleshooting guide if you are unable to connect after some time.