Skip to content

Instantly share code, notes, and snippets.

@dentropy
Created October 13, 2022 15:07
Show Gist options
  • Save dentropy/8c44825e9c81cae54c8ae0af74e242cd to your computer and use it in GitHub Desktop.
Save dentropy/8c44825e9c81cae54c8ae0af74e242cd to your computer and use it in GitHub Desktop.
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