diff --git a/Linking-other-devices-(Provisioning).md b/Linking-other-devices-(Provisioning).md index ac4be86..4d07dd7 100644 --- a/Linking-other-devices-(Provisioning).md +++ b/Linking-other-devices-(Provisioning).md @@ -2,9 +2,15 @@ signal-cli link -n "optional device name" - This shows a "tsdevice:/…" link, if you want to connect to another signal-cli instance, you can just use this link. If you want to link to and Android device, create a QR code with the link (e.g. with [qrencode](https://fukuchi.org/works/qrencode/)) and scan that in the Signal Android app. + This shows a `tsdevice:/…` link; if you want to connect to another signal-cli instance, you can just use this link. If you want to link to an Android device, create a QR code with the link (e.g. with [qrencode](https://fukuchi.org/works/qrencode/)) and scan that in the Signal Android app. - After linking was successful, you need to execute the receive command to get the list of contacts and groups from the main device. + To request a link and display the resulting QR code image in a single command on linux: + + signal-cli link -n "optional device name" | xargs -l qrencode -o /tmp/qrcode.png & while [ ! -f /tmp/qrcode.png ]; do sleep 1; done; xdg-open /tmp/qrcode.png + + Do not kill the `signal-cli link …` process until linking is finished; the process will exit when it's done. + + After linking was successful, you need to execute the receive command to get the list of contacts and groups from the main device. signal-cli -u USERNAME receive