Skip to content

Instantly share code, notes, and snippets.

@MystPi
Created September 17, 2022 14:53
Show Gist options
  • Save MystPi/1bd5b3b5dacc72c5d4ef56eb4ed844e8 to your computer and use it in GitHub Desktop.
Save MystPi/1bd5b3b5dacc72c5d4ef56eb4ed844e8 to your computer and use it in GitHub Desktop.
Download the latest code-server binary on your headless Raspberry Pi.
echo Finding latest version...
v=$(curl -s https://api.github.com/repos/coder/code-server/releases/latest | grep '"tag_name":' | sed -E 's/.*"v([^"]+)".*/\1/')
echo Downloading binary v$v...
wget -q -O code-server.deb "https://github.com/coder/code-server/releases/download/v$v/code-server_${v}_armhf.deb"
echo "Done! Run run 'sudo dpkg -i code-server.deb' to install"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment