Install Signal

From xPL
Revision as of 15:40, 5 September 2022 by Fcorthay (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Install Signal

To check what is going on, install the desktop version of signal.

wget -O- https://updates.signal.org/desktop/apt/keys.asc | gpg --dearmor > signal-desktop-keyring.gpg
cat signal-desktop-keyring.gpg | sudo tee -a /usr/share/keyrings/signal-desktop-keyring.gpg > /dev/null
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt xenial main' | sudo tee -a /etc/apt/sources.list.d/signal-xenial.list
sudo apt update && sudo apt install signal-desktop

Install Signal CLI

Install

Check repository by visiting https://github.com/AsamK/signal-cli/releases/latest. Download the tar.gz.

Install from repository:

sudo mkdir /opt/signal-cli
sudo tar xvfz ~/Downloads/signal-cli-*.tar.gz -C /opt/signal-cli/
sudo mv /opt/signal-cli/signal-cli-*/bin /opt/signal-cli/
sudo mv /opt/signal-cli/signal-cli-*/lib /opt/signal-cli/
sudo rmdir /opt/signal-cli/signal-cli-*

If necessary, update Javascript version:

java --version
apt install openjdk-17-jdk openjdk-17-jre
java --version

Install qrencode:

sudo apt install qrencode

Setup and test

Link the CLI application to your phone:

/opt/signal-cli/bin/signal-cli link -n 'hyperion-cli' | tee >(xargs -L 1 qrencode -t utf8)

This presents a QR-code in the terminal. From the smartphone application settings, link this new device.

Check if the link works:

/opt/signal-cli/bin/signal-cli listDevices

Send a message:

/opt/signal-cli/bin/signal-cli -u +4178xxxxxxx send -m 'Salut, moi!' +4178xxxxxxxx

Get received messages:

/opt/signal-cli/bin/signal-cli receive -t 1 2>/dev/null