How to Install Code-Server on Clear Linux Latest
Code-Server is an open-source project from GitHub that allows you to run Visual Studio Code in your web browser. It's a fantastic tool for those who want to code on the go, or for those who don't want to install an IDE on their machine. Clear Linux is a free and open-source Linux distribution, and here's how to install Code-Server on it:
Prerequisites
- A running instance of Clear Linux.
- A terminal application to execute commands.
Installation
Open a terminal window on Clear Linux.
Type the following command to download the Code-Server package from GitHub:
wget https://github.com/cdr/code-server/releases/download/2.1698-vsc1.39.2/code-server-2.1698-vsc1.39.2-linux-x86_64.tar.gz
- Next, extract the downloaded .tar.gz file:
tar -xzvf code-server-2.1698-vsc1.39.2-linux-x86_64.tar.gz
- Rename the extracted directory to "code-server":
mv code-server-2.1698-vsc1.39.2-linux-x86_64 code-server
- Move the "code-server" directory to the "/opt" directory:
sudo mv code-server /opt/
- Navigate to the "/opt/code-server/bin" directory and run the following command to start Code-Server:
./code-server
- Your terminal will output a link which looks like the one below. Copy the link and open it in a web browser:
[2019-11-16T08:08:40.924Z] info Server listening on http://127.0.0.1:8080
[2019-11-16T08:08:40.924Z] info - Using password from /home/user/.config/code-server/config.yaml
[2019-11-16T08:08:40.958Z] info - Automatic updates are enabled
[2019-11-16T08:08:40.958Z] info - Code-server version: 2.1698-vsc1.39.2
[2019-11-16T08:08:40.958Z] info - Simple proxy version: 5.0.8
- You will now be prompted for the password in the browser window. Enter the password, and you will be taken to the Visual Studio Code interface.
Congratulations! You've successfully installed Code-Server on Clear Linux Latest.