Skip to content

Instantly share code, notes, and snippets.

@giautm
Created July 31, 2021 10:21
Show Gist options
  • Save giautm/5498b753e6a15d1b37453f852f588a83 to your computer and use it in GitHub Desktop.
Save giautm/5498b753e6a15d1b37453f852f588a83 to your computer and use it in GitHub Desktop.
workaround hack to open vscode remote as root without logging in as root
# Add sudo to node runner
sed -i "/node/s/^/sudo /" ~/.vscode-server/bin/*/server.sh
# Restart remote vscode
pkill -f vscode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment