How to Install Code-Server on Debian Latest

In this tutorial, we will be installing code-server on Debian Linux.

Prerequisites

Before installing code-server, make sure you have the following installed on your Debian system:

You can install these dependencies using the following command:

sudo apt update && sudo apt install curl wget unzip nodejs -y

Downloading and Installing Code-Server

  1. First, navigate to code-server's GitHub page by opening a web browser and going to https://github.com/coder/code-server.

  2. Download the latest version of the code-server package that matches your Debian installation. You may need to look for the appropriate package in the releases section of the page. For example, if you are using a 64-bit Debian installation, you would download code-server-*.*.*-linux-amd64.tar.gz.

  3. Once the download is complete, navigate to the directory where it was downloaded using the terminal. For instance, if the file was downloaded to the Downloads folder, use the following command to navigate to it:

    cd ~/Downloads
    
  4. Then, extract the downloaded file using the following command:

    tar -xzvf code-server-*.*.*-linux-amd64.tar.gz
    

    Replace *.*.* with the appropriate version number.

  5. Once the extraction is complete, enter the extracted directory with the following command:

    cd code-server-*.*.*-linux-amd64
    
  6. Finally, run the following command to install code-server:

    sudo ./install.sh
    
  7. The code-server installation will begin. After it completes successfully, you can run code-server using the following command:

    code-server
    

    This will start code-server's web server, and you can connect to it using a web browser at http://localhost:8080.

Conclusion

In this tutorial, we learned how to install code-server on Debian Linux. We hope this tutorial was helpful for you. If you encounter any issues during the installation process, feel free to ask for help.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!