Updated Linking other devices (Provisioning) (markdown)

AsamK 2020-11-14 19:05:12 +01:00
parent 49c157a77e
commit f054406ec5

@ -2,19 +2,19 @@
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 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.
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.
To request a link and display the resulting QR code image in a single command on linux:
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
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
or for newer android devices:
or for newer android devices:
signal-cli link -n "optional device name" | xargs -l qrencode -o /tmp/qrcode.png --level=H -v 10 & while [ ! -f /tmp/qrcode.png ]; do sleep 1; done; xdg-open /tmp/qrcode.png
signal-cli link -n "optional device name" | xargs -l qrencode -o /tmp/qrcode.png --level=H -v 10 & 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.
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.
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