Sample Header Ad - 728x90

Running VSCode headless, without installing desktop environment

3 votes
3 answers
4252 views
Can you install VS-Code-CLI on a headless machine, without installing a desktop environment too? (I sometimes wish to access my code on an Android tablet, using the PWA version of Code that doesn't allow ssh, only the VS Code tunnel.) system spec:
No monitors, keyboards, speakers or anything.
Old Atom processor, 4G RAM
Debian 12 6.1.0-amd64 GCC 12.2
Node 20.1
Running code returns:
$ ./code 
No installation of Visual Studio Code stable was found.
Install it from your system's package manager or https://code.visualstudio.com , restart your shell, and try again.

If you already installed Visual Studio Code and we didn't detect it, run code version use stable --install-dir /path/to/installation
To install the Debian package code_1.85.1-1702462158_amd64.deb, depends on a display server, a window manager, a sound-subsystem, 1000s of libraries, etc. Which I don't need, or even want to attempt to install, on such a low-powered machine! The same would apply to Raspberry Pi headless systems too. The Debian package for code, depends on all these things. Has anyone tried something different, or could the Debian package be split into, for example, code-core into code-gui
Asked by LukeW (33 rep)
Dec 24, 2023, 04:47 PM
Last activity: Dec 30, 2023, 03:27 AM