Last active
February 28, 2025 11:35
-
-
Save Erisa/608e543411ceca0e1631968b083b2189 to your computer and use it in GitHub Desktop.
Install krypton's kr client on Termux
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
#!/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