Last active
April 12, 2023 13:26
-
-
Save ictus4u/ff43dccf7ed2d1964ba2037794d0970f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tmate was failing when installed from Ubuntu 19.04 repositories. Here is a bash script for quick installing it from tmate's repo.