How to Install and Configure Code-Server

Run VS Code on any machine anywhere and access it in the browser.

Why I Use Coder?

  • Code on any device with a consistent development environment
  • Accessible from Browser
  • Microsoft VS Code extensions will work

System Requirements

At the minimum, the recommendation is :

  • 1 GB of RAM
  • 2 CPU cores

Installation

To install, run:

1curl -fsSL https://code-server.dev/install.sh | sh
2sudo systemctl enable --now code-server@$USER

Post installation check the service status

1sudo systemctl status code-server@$USER

Modify the config parameters to use https

1vi ~/.config/code-server/config.yaml
modify the vaules to
  • Change the bind address to 0.0.0.0:8080
  • Change the password
  • cert to true from false

Post change the config file looks like this:

1bind-addr: 0.0.0.0:8080
2auth: password
3password: SuperStrongPassword
4cert: true

Using the AD Certificate Services generated certificate with Code-Server

I have created a wild card SSL certificate in ADCS, to use for other requirements, where SSL Encryption is required.

Watch the video on How to Install Code-Server, Generate Wild Card SSL certificate and Use it with Code-Server