Skip to content

Instantly share code, notes, and snippets.

@harperreed
Last active April 9, 2021 15:47
Show Gist options
  • Save harperreed/719abe1e4fadbc22136295c77f714c66 to your computer and use it in GitHub Desktop.
Save harperreed/719abe1e4fadbc22136295c77f714c66 to your computer and use it in GitHub Desktop.
Use VSCode (server) in a google cloud shell. or a chromebook.
./bin/code/bin/code-server --auth none --port 8080
cd ~/bin
export VERSION=`curl -s https://api.github.com/repos/cdr/code-server/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")'`
wget https://github.com/cdr/code-server/releases/download/$VERSION/code-server-$VERSION-linux-x86_64.tar.gz
tar -xvzf code-server-$VERSION-linux-x86_64.tar.gz
rm code-server-$VERSION-linux-x86_64.tar.gz
if [ -L code ] ; then
if [ -e code ] ; then
rm code
fi
fi
ln -s code-server-$VERSION-linux-x86_64 code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment