1 Code-server
Anthony Wang edited this page 2024-10-11 17:22:28 +00:00

Code-server is basically VS Code in your browser.

Usage

Run it with code-server. If the port is used, change the port to a Unix socket and forward the socket to your computer using SSH. If you're unable to forward the port, you can instead use a Unix socket in /srv/http using the flags --socket /srv/http/SOCKETNAME --socket-mode 660. All flags can also be configured in ~/.config/code-server/config.yaml. If your code-server instance is accessible to other people, make sure you've set a password!

Tips and tricks

systemd service

Code-server has a systemd user service called code-server.service. Use the ~/.config/code-server/config.yaml file to configure code-server run using that service.