Skip to content

Instantly share code, notes, and snippets.

@ictus4u
Last active April 12, 2023 13:26
Show Gist options
  • Save ictus4u/ff43dccf7ed2d1964ba2037794d0970f to your computer and use it in GitHub Desktop.
Save ictus4u/ff43dccf7ed2d1964ba2037794d0970f to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
TMATE_URL=https://github.com/tmate-io/tmate/releases/download/2.4.0/tmate-2.4.0-static-linux-amd64.tar.xz
VERSION_FILENAME=$(basename -s .tar.xz "${TMATE_URL}")
DEPLOY_DIR=/opt/tmate
sudo mkdir -p /opt/tmate
cd /opt/tmate
sudo curl -RLOJ "${TMATE_URL}"
sudo tar -xJvf "${VERSION_FILENAME}.tar.xz"
sudo ln -sf "${DEPLOY_DIR}/${VERSION_FILENAME}/tmate" "/usr/local/bin/tmate"
@ictus4u
Copy link
Author

ictus4u commented Jun 18, 2020

tmate was failing when installed from Ubuntu 19.04 repositories. Here is a bash script for quick installing it from tmate's repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment