Skip to content

Instantly share code, notes, and snippets.

@ucalyptus2
Created June 10, 2023 21:21
Show Gist options
  • Save ucalyptus2/4c299f7d79d7dbc75040c8615e2fb7dd to your computer and use it in GitHub Desktop.
Save ucalyptus2/4c299f7d79d7dbc75040c8615e2fb7dd to your computer and use it in GitHub Desktop.
curl -fsSL https://code-server.dev/install.sh | sh
# Use sed to modify bind-addr
sed -i 's/^bind-addr:.*$/bind-addr: 127.0.0.1:4040/' ~/.config/code-server/config.yaml
# Use sed to modify password
sed -i 's/^password:.*$/password: s/' ~/.config/code-server/config.yaml
curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | sudo tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null && echo "deb https://ngrok-agent.s3.amazonaws.com buster main" | sudo tee /etc/apt/sources.list.d/ngrok.list && sudo apt update && sudo apt install ngrok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment