From 4df9e0ec0d7329d0d69d92225f3aa9ded758f68a Mon Sep 17 00:00:00 2001 From: Sune Date: Thu, 7 Sep 2023 01:11:40 +0200 Subject: [PATCH] readme updated --- README.md | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 6e9e0cb..b58c589 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ # signal-cli +First and foremost a big thank you to AsamK(https://github.com/AsamK) most of this guide is copied from AsamK's signal-cli repo modified to fit my own needs. + This guide is for installing and running signal-cli as a daemon and setting up a system-wide dbus. signal-cli is a commandline interface for the [Signal messenger](https://signal.org/). It supports registering, verifying, sending and receiving messages. @@ -41,8 +43,7 @@ Create a folder for signal account configs: ## Register Account ```sh # su signal-cli -s /bin/bash - -signal-cli$ /usr/local/bin/signal-cli --config /var/lib/signal-cli -u register +$ /usr/local/bin/signal-cli --config /var/lib/signal-cli -u register ``` Registering may require solving a CAPTCHA challenge: [Registration with captcha](https://github.com/AsamK/signal-cli/wiki/Registration-with-captcha) @@ -58,7 +59,7 @@ These steps, executed as root, should work on all distributions using systemd. Git clone this repo as you will need files from the data folder. ```sh -git clone +git clone https://git.data.coop/sune/Signal-cli.git ``` move the files: ```sh @@ -68,9 +69,15 @@ move the files: ``` edit service file to match phone number and enable systemd service: ```sh -sed -i -e "s|%number%||" /etc/systemd/system/signal-cli.service -systemctl daemon-reload -systemctl enable signal-cli.service -systemctl reload dbus.service -systemctl start signal-cli.service +# sed -i -e "s|%number%||" /etc/systemd/system/signal-cli.service +# systemctl daemon-reload +# systemctl enable signal-cli.service +# systemctl reload dbus.service +# systemctl start signal-cli.service +``` + +## Test +Send a message: +```sh +$ signal-cli --dbus-system send -m "hey test" ```