readme updated
This commit is contained in:
parent
30d8fd5888
commit
4df9e0ec0d
23
README.md
23
README.md
|
@ -1,4 +1,6 @@
|
||||||
# signal-cli
|
# 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.
|
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/).
|
signal-cli is a commandline interface for the [Signal messenger](https://signal.org/).
|
||||||
It supports registering, verifying, sending and receiving messages.
|
It supports registering, verifying, sending and receiving messages.
|
||||||
|
@ -41,8 +43,7 @@ Create a folder for signal account configs:
|
||||||
## Register Account
|
## Register Account
|
||||||
```sh
|
```sh
|
||||||
# su signal-cli -s /bin/bash
|
# su signal-cli -s /bin/bash
|
||||||
|
$ /usr/local/bin/signal-cli --config /var/lib/signal-cli -u <PHONE NUMBER> register
|
||||||
signal-cli$ /usr/local/bin/signal-cli --config /var/lib/signal-cli -u <PHONE NUMBER> register
|
|
||||||
```
|
```
|
||||||
Registering may require solving a CAPTCHA challenge: [Registration with captcha](https://github.com/AsamK/signal-cli/wiki/Registration-with-captcha)
|
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.
|
Git clone this repo as you will need files from the data folder.
|
||||||
```sh
|
```sh
|
||||||
git clone
|
git clone https://git.data.coop/sune/Signal-cli.git
|
||||||
```
|
```
|
||||||
move the files:
|
move the files:
|
||||||
```sh
|
```sh
|
||||||
|
@ -68,9 +69,15 @@ move the files:
|
||||||
```
|
```
|
||||||
edit service file to match phone number and enable systemd service:
|
edit service file to match phone number and enable systemd service:
|
||||||
```sh
|
```sh
|
||||||
sed -i -e "s|%number%|<PHONE NUMBER>|" /etc/systemd/system/signal-cli.service
|
# sed -i -e "s|%number%|<PHONE NUMBER>|" /etc/systemd/system/signal-cli.service
|
||||||
systemctl daemon-reload
|
# systemctl daemon-reload
|
||||||
systemctl enable signal-cli.service
|
# systemctl enable signal-cli.service
|
||||||
systemctl reload dbus.service
|
# systemctl reload dbus.service
|
||||||
systemctl start signal-cli.service
|
# systemctl start signal-cli.service
|
||||||
|
```
|
||||||
|
|
||||||
|
## Test
|
||||||
|
Send a message:
|
||||||
|
```sh
|
||||||
|
$ signal-cli --dbus-system send -m "hey test" <RECIPIENT>
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue