Created
July 31, 2021 10:21
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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