Raumi
6 years ago
2 changed files with 34 additions and 0 deletions
@ -0,0 +1,23 @@ |
|||
#!/bin/bash |
|||
|
|||
# Display a QR code provided as parameter $1 |
|||
|
|||
qrcode=$1 |
|||
|
|||
# make sure qrcode-encoder in installed |
|||
clear |
|||
echo "*** Setup ***" |
|||
sudo apt-get install qrencode -y |
|||
|
|||
clear |
|||
echo "Make the this terminal as big as possible - fullscreen would be best." |
|||
echo "Then PRESS ENTER here in the terminal to generare the QR code and scan it with the app." |
|||
read key |
|||
|
|||
clear |
|||
echo -e "$1" | qrencode -t ANSI256 |
|||
echo -e "$1" |
|||
echo "(To shrink QR code: OSX->CMD- / LINUX-> CTRL-) Press ENTER when finished." |
|||
read key |
|||
|
|||
clear |
Loading…
Reference in new issue