Skip to content

Instantly share code, notes, and snippets.

@Gimenz
Created April 10, 2024 08:54
Show Gist options
  • Save Gimenz/0945b53ef2b8856877d4bb15beaa31e4 to your computer and use it in GitHub Desktop.
Save Gimenz/0945b53ef2b8856877d4bb15beaa31e4 to your computer and use it in GitHub Desktop.
install vs code-server on vps

installing vs code-server to edit the code remotely

Installation

basicly, you can installing by read the doc at https://code-server.dev/ but i made this gist for more easier and simples to reading.

  • install curl -fsSL https://code-server.dev/install.sh | sh
  • start sudo systemctl enable --now code-server@$USER'
  • edit the ip, port, and password at nano ~/.config/code-server/config.yaml

the bind-ip is your vps ip addresses, and the port you can wrote as you fun

example :

bind-addr: 123.45.67.89:1337
auth: password
password: #ngamalembahe
cert: false
  • after done, restart the service sudo systemctl restart code-server@$USER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment