Skip to content

Running Code-Server in WSL2 #1868

Closed
Closed
@chilcano

Description

@chilcano
  • Web Browser: Chrome in Windows 10
  • Local OS: Windows 10
  • Remote OS: Ubuntu 20.04 and WSL2
  • Remote Architecture: NA
  • code-server --version: 3.4.1

I've tried to install Code-Server using the installation script and had this error:

Failed to connect to bus: No such file or directory

That is related to systemd and WSL2 (WSL and WSL2 don't support systemd, the PID 1 is Init).
Then, I've tried the Code-Server manual installation and every time I open WSL terminal I have to run:

$ code-server
info  Using config file ~/.config/code-server/config.yaml
info  Using user-data-dir ~/.local/share/code-server
info  code-server 3.4.1 44f7c2724827e526eeaa6c2c151c520f48a61222
info  HTTP server listening on http://0.0.0.0:8001
info      - Using password from ~/.config/code-server/config.yaml
info      - To disable use `--auth none`
info    - Not serving HTTPS

Is there any option to start Code-Server when Windows/WSL starts?

Is running Code-Server in Docker inside WSL2 an option?

Any help is welcome.
Regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions