22.1 code-server and clangd Development Environment
Overview
Linux Compatibility Layer Path Mapping Mechanism
Enable Linux Binary Compatibility on the Server and Deploy the archlinux-bootstrap Image
# service linux enable # Set the Linux compatibility layer service to start on boot
# service linux start # Start the Linux compatibility layer service# fetch -o /tmp https://mirrors.bfsu.edu.cn/archlinux/iso/latest/archlinux-bootstrap-x86_64.tar.zst
# mkdir -p /compat/linux
# tar --use-compress-program=unzstd -xpvf /tmp/archlinux-bootstrap-x86_64.tar.zst -C /compat/linux --numeric-owner --strip-components=1
# rm /tmp/archlinux-bootstrap-x86_64.tar.zstRemove Unnecessary Directories from the Arch Linux Runtime Environment on the Server
Install LLVM and the clangd Extension on the Server
Start code-server via the daemon Command on the Server
Establish an SSH Tunnel from the Client and Access the code-server Server via Browser
(Example) Open the FreeBSD Source Tree in code-server in the Browser
(Example) Compile a Minimal Kernel in the Browser and Generate the compile_commands.json File
compile_commands.json FileAutomated Installation Script
Supplementary Notes
HTTPS Configuration
Linux Compatibility Layer vs. Linux Jail
Last updated