Skip to content
Follow
Ubuntu Linux

Install Visual Studio Code Web on Ubuntu 24.04

Richard
Written by
Richard
Dec 22, 2024 Updated Jul 13, 2026 4 min read
Install Visual Studio Code Web on Ubuntu 24.04
Install Visual Studio Code Web on Ubuntu 24.04

Visual Studio Code Web lets you use the powerful VS Code editor directly in your browser on Ubuntu 24.04 without installing anything.

This web-based version offers the core features of the desktop Visual Studio Code, making it great for quick coding jobs or using it on computers where you can’t install software.

It connects easily with services like GitHub, allowing you to work with your code from anywhere. This is especially handy for Ubuntu 24.04 users who want to start coding instantly.

⚡ Quick Answer

Install Visual Studio Code for Web on Ubuntu 24.04 by running the installer script. Update your system with `sudo apt update`, then download and execute the script with `curl -fsSL https://code-server.dev/install.sh | sh`. Enable and start the service using `sudo systemctl enable –now code-server@$USER`.

Download the installer script

Installing Visual Studio Code for the Web on Ubuntu 24.04 begins with a download script. Start by updating your system and installing the `curl` tool. Then, use `curl` to download the official installation script that sets up Visual Studio Code for the Web on your system.

🐧Bash / Shell
sudo apt update
sudo apt install curl

Run the following command to download the installer script.

💻Code
curl -fsSL https://code-server.dev/install.sh | sh -s -- --dry-run

Next, execute this command to install it.

💻Code
curl -fsSL https://code-server.dev/install.sh | sh

When prompted, type in your password (admin) to proceed with the installation.

Once installed, run the command below to enable it and check the service status.

🐧Bash / Shell
sudo systemctl enable --now code-server@$USER
sudo systemctl status code-server@$USER

The command should output an active status for the app.

For security, your Visual Studio Code for the Web session on Ubuntu requires a password. Set this by editing the `config.yaml` file located in the `.config/code-server/` folder. Add your password next to the `auth: password` line in `config.yaml` to protect your work.

Open the default code-server configuration file at ~/.config/code-server/config.yaml using the `nano` editor.

💻Code
nano ~/.config/code-server/config.yaml

Then, create your password for authentication.

💻Code
bind-addr: 127.0.0.1:8080
auth: password
password: 6fd97c37c251428ed0f3c74e
cert: false

Finally, save the file and exit. Restart the service using the command below to apply your changes.

🐧Bash / Shell
sudo systemctl restart code-server@$USER

Use a Reverse Proxy Server

Using a reverse proxy server, like Nginx or Apache, can significantly enhance how you access Visual Studio Code for the Web on Ubuntu. A reverse proxy helps manage network connections more efficiently, resulting in a smoother experience when you’re coding in your web browser. Guides are available to help you set one up.

Below are two articles that guide you through setting up a proxy server on Ubuntu Linux.

Set up Let’s Encrypt SSL Certificate

Securing your Visual Studio Code for the Web connection on Ubuntu with a Let’s Encrypt SSL certificate is important for protecting your online coding environment. This process encrypts your data and keeps your connection safe. Guides are provided to help you set up an SSL certificate using either Apache or Nginx.

Once your environment is set up, go ahead and access the Visual Studio Code for Web portal.

📝Good to Know
If you configured a reverse proxy, enter the hostname. Otherwise, use the default hostname and port below:

http://localhost:8080

⚠️Warning
Enter the password you created in the password file.
Visual Studio Code portal
Visual Studio Code portal

Now you’re ready to start coding.

Visual Studio Code for Web interface ready for browser-based coding
Visual Studio Code for Web interface ready for browser-based coding

That should do it!

Conclusion:

Installing Visual Studio Code for Web on Ubuntu 24.04 gives you a streamlined coding experience right in your browser. Here are the key things to remember:

  • Visual Studio Code for Web allows for lightweight, browser-based coding without installation.
  • Effective for rapid coding sessions and collaboration on various devices.
  • Supports integration with cloud services like GitHub for real-time collaboration.
  • Installation is straightforward using the provided installer script.
  • Configuring authentication enhances the security of your coding environment.
  • Setting up a reverse proxy (using Nginx or Apache) optimizes accessibility.
  • Implementing Let’s Encrypt SSL certificates secures your service.
  • Access your development environment via http://localhost:8080 after setup.
  • Start coding and take advantage of the flexibility that this platform offers!

Can I run VS Code on web?

Yes, you can run Visual Studio Code directly in your web browser without any installation.

How to add VS Code to desktop Ubuntu?

And you can see the installation of Visual Studio Code has been started. So now Visual Studio Code has been installed on your Ubuntu operating system.

Was this guide helpful?

Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

📚 Related Tutorials

How to Install Let's Chat on Ubuntu Linux
Ubuntu Linux How to Install Let's Chat on Ubuntu Linux
How to Install NetData on Ubuntu 24.04
Ubuntu Linux How to Install NetData on Ubuntu 24.04
How to Install PhpStorm on Ubuntu 24.04
Ubuntu Linux How to Install PhpStorm on Ubuntu 24.04
How to Install RubyMine on Ubuntu 24.04
Ubuntu Linux How to Install RubyMine on Ubuntu 24.04

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *