Created
October 13, 2022 15:07
-
-
Save dentropy/8c44825e9c81cae54c8ae0af74e242cd to your computer and use it in GitHub Desktop.
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
curl -fsSL https://code-server.dev/install.sh | sh -s -- --dry-run > ~/code-server-install.txt | |
curl -fsSL https://code-server.dev/install.sh | sh | |
echo -e "export PASSWORD=\`tr -cd '[:alnum:]' < /dev/urandom | fold -w31 | head -n1\`" > ~/run-code-sever.sh | |
echo -e "PASSWORD=\$PASSWORD" >> ~/run-code-sever.sh | |
echo -e "echo 'Password posted below'" >> ~/run-code-sever.sh | |
echo -e "echo \$PASSWORD" >> ~/run-code-sever.sh | |
echo "code-server --disable-telemetry --cert --auth password --bind-addr 0.0.0.0:8082" >> ~/run-code-sever.sh | |
chmod +x ~/run-code-sever.sh | |
cat ~/run-code-sever.sh | |
~/run-code-sever.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment