Skip to main content

Code-server

Description

A Code-server is VS Code running on a remote server, accessed through a browser.

Benefits

  • Work on any device in a single development environment
  • If you have a Windows or Mac workstation, you'll find it easier to develop on Linux
  • All intensive tasks are performed on the server

Getting started

After the image is installed, the Code-server web interface will be available at https://example.com, where example.com is the hostname of your server.

To access the web interface, use the credentials sent to you by email.

Additionally, the login credentials can be found on the server in the file:

/root/.app_credentials

To access this file, you will need to log in to the server via SSH. You can connect to the server via SSH:

  • With an SSH key, if this option is enabled before a server is created
  • With the root user password sent by mail when server is activated

Changing domain

If you wish to use your domain, or subdomain, to access the Code-server web interface, you will need to SSH into the server under the root user and run the command::

add_domain

You will be prompted to enter a domain or subdomain in the format subdomain.example.com.

note

Make sure your domain exists and points to the IPv4 address of your server!

When the script finishes, a Let's Ecnrypt certificate will be issued for the specified domain or subdomain and the web-interface will be available at https://example.com/, where example.com is the previously specified domain (subdomain).

Changing password

If you wish to change the password to access the Code-server, you will need to SSH into the server under the root user and run the command::

change_pwd

After executing the command, the script will ask you to enter a new password and confirm it.

Software installed

NameLicense
Code-serverMIT license
CaddyApache License 2.0

For more information about the installed packages, please refer to their official documentation: