Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 755 Bytes

code-server.md

File metadata and controls

38 lines (25 loc) · 755 Bytes

code server

macOS

brew install code-server brew services start code-server

Now visit http://127.0.0.1:8080. Your password is in ~/.config/code-server/config.yaml

ubuntu

Install:

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

# start service
sudo systemctl enable --now code-server@$USER

# status & logs
sudo systemctl status [email protected]
journalctl -u [email protected]


# stop
sudo systemctl stop [email protected]

# check config
cat ~/.config/code-server/config.yaml

Setup code-server with caddy and lets encrypt:

sudo apt install caddy
vim /etc/caddy/Caddyfile
sudo systemctl restart caddy.service