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:
- curl
- wget
- unzip
- node.js
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
First, navigate to code-server's GitHub page by opening a web browser and going to https://github.com/coder/code-server.
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.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 ~/DownloadsThen, extract the downloaded file using the following command:
tar -xzvf code-server-*.*.*-linux-amd64.tar.gzReplace
*.*.*with the appropriate version number.Once the extraction is complete, enter the extracted directory with the following command:
cd code-server-*.*.*-linux-amd64Finally, run the following command to install code-server:
sudo ./install.shThe code-server installation will begin. After it completes successfully, you can run code-server using the following command:
code-serverThis 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.