Skip to content

Instantly share code, notes, and snippets.

@Erisa
Last active June 26, 2021 02:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Erisa/608e543411ceca0e1631968b083b2189 to your computer and use it in GitHub Desktop.
Save Erisa/608e543411ceca0e1631968b083b2189 to your computer and use it in GitHub Desktop.
Install krypton's kr client on Termux
#!/bin/sh
echo "--upgrading packages" &&
pkg update -y &&
echo "-- installing dependancies: golang git debianutils make" &&
pkg install golang git debianutils make -y &&
echo "-- installing fake sudo binary (no root needed, just to appease kr's build script)" &&
echo '#!/bin/sh
$*' > /data/data/com.termux/files/usr/bin/sudo &&
chmod +x /data/data/com.termux/files/usr/bin/sudo &&
echo '-- setting up $GOPATH' &&
export GOPATH=$HOME/.go &&
mkdir -p $GOPATH &&
echo "-- downloading kr source" &&
go get github.com/kryptco/kr &&
echo "-- building and installing kr" &&
cd $GOPATH/src/github.com/kryptco/kr && make install && kr restart &&
cd -
echo "-- done! use 'kr pair' to get started."
echo "WARNING: you will likely need another device available to perform pairing to localhost"
echo "WARNING: also, please decrease your font size (pinch zoom out) to show the qr properly."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment