

Download it using curl by running the following command: At the time of writing, the latest version was 3.2.0. You’ll need to head over to the Github releases page of code-server and pick the latest Linux build (the file will contain ‘linux’ in its name). Create it by running the following command:

You’ll store all data pertaining to code-server in a folder named ~/code-server. You’ll also specify a restart policy for the service, so that code-server stays available after possible crashes or reboots. This entails downloading the latest version and creating a systemd service that will keep code-server always running in the background. In this section, you will set up code-server on your server. For DigitalOcean, you can follow this introduction to DigitalOcean DNS for details on how to add them. You can purchase a domain name on Namecheap, get one for free on Freenom, or use the domain registrar of your choice.

For a guide on how to do this, see How To Install Nginx on CentOS 7.Ī fully registered domain name to host code-server, pointed to your server. You can set this up by following this initial server setup guide. PrerequisitesĪ server running CentOS 7 with at least 2GB RAM, root access, and a sudo, non-root account. In the end, you’ll have Microsoft Visual Studio Code running on your CentOS 7 server, available at your domain and protected with a password. In this tutorial, you will set up the code-server cloud IDE platform on your CentOS 7 machine and expose it at your domain, secured with free Let’s Encrypt TLS certificates. This means that you can use various devices running different operating systems, and always have a consistent development environment on hand. Visual Studio Code is a modern code editor with integrated Git support, a code debugger, smart autocompletion, and customizable and extensible features. Accessible through web browsers, cloud IDEs are available from every type of modern device.Ĭode-server is Microsoft Visual Studio Code running on a remote server and accessible directly from your browser. Cloud IDEs allow for real-time collaboration between developer teams to work in a unified development environment that minimizes incompatibilities and enhances productivity. With developer tools moving to the cloud, creation and adoption of cloud IDE (Integrated Development Environment) platforms is growing. The author selected the Free and Open Source Fund to receive a donation as part of the Write for DOnations program.
