Files
code-server/guides/linode.md
2022-02-13 17:02:40 -06:00

25 lines
1.7 KiB
Markdown

# deploying `code-server` on Linode
> ⚠️ 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](https://coder.com/docs/code-server/latest/guide#using-lets-encrypt-with-caddy) to securely connect to code-server on your VM.
[Linode](https://linode.com) is a developer-friendly platform with cloud servers. Here is the easiest way to launch code-server on Linode.
1. Log in to Linode and go to the "StackScripts" section in the sidebar
<img src="../img/linode-stackscripts-sidebar.png" alt="Linode StackScripts" width="450" />
1. Navigate to "Community Scripts" and use `bencdr/code-server` or create your own based on [launch-code-server-linode.sh](../deploy-vm/launch-code-server-linode.sh).
1. 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](https://github.com/cdr/code-server#cloud-program-%EF%B8%8F).
<img src="../img/linode-launch-code-server.gif" alt="Linode launch code-server" width="700" />
1. 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:
```sh
sudo hostnamectl set-hostname bens-devbox
sudo systemctl restart code-server@coder
```
See our [troubleshooting guide](../deploy-vm#troubleshooting) if you are unable to connect after some time.