Install Signal

From xPL
Jump to: navigation, search

Install Signal

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

wget -O- | 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] xenial main' | sudo tee -a /etc/apt/sources.list.d/signal-xenial.list
sudo apt update && sudo apt install signal-desktop

Install Signal CLI


Check repository by visiting 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