linux:telegram
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:telegram [2015/07/01 22:06] – rlunaro | linux:telegram [2022/12/02 21:02] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 54: | Line 54: | ||
| ===== Step 4: a basic test ===== | ===== Step 4: a basic test ===== | ||
| - | Make a simple confirmation that the program is working. The program is called '' | + | Make a simple confirmation that the program is working. |
| + | |||
| + | The program is called '' | ||
| < | < | ||
| Line 63: | Line 65: | ||
| < | < | ||
| - | rluna@gamora: | + | $: |
| Telegram-cli version 1.0.5, Copyright (C) 2013-2014 Vitaly Valtman | Telegram-cli version 1.0.5, Copyright (C) 2013-2014 Vitaly Valtman | ||
| Telegram-cli comes with ABSOLUTELY NO WARRANTY; for details type `show_license' | Telegram-cli comes with ABSOLUTELY NO WARRANTY; for details type `show_license' | ||
| Line 85: | Line 87: | ||
| ===== Step 5: install the client ===== | ===== Step 5: install the client ===== | ||
| - | I've opted for manually install the client. I've copied the '' | + | I've opted for manually install the client. I've copied the '' |
| < | < | ||
| - | # mkdir /usr/local/bin/ | + | # mkdir / |
| # cp telegram-cli / | # cp telegram-cli / | ||
| </ | </ | ||
| Line 99: | Line 101: | ||
| # cp tg-server.pub / | # cp tg-server.pub / | ||
| # chmod g=r,o=r,u=r / | # chmod g=r,o=r,u=r / | ||
| - | </ | ||
| - | |||
| - | And finnally, copy the configuration information. The configuration information is in your home directory under the folder '' | ||
| - | |||
| - | < | ||
| - | # mv / | ||
| </ | </ | ||
| Line 117: | Line 113: | ||
| </ | </ | ||
| - | |||
| - | **And give permissions into / | ||
| - | |||
| - | < | ||
| - | chown telegramd: | ||
| - | </ | ||
| Impersonate this user and run the telegram-cli program again, to create a proper configuration file: | Impersonate this user and run the telegram-cli program again, to create a proper configuration file: | ||
| Line 135: | Line 125: | ||
| </ | </ | ||
| + | |||
| + | |||
| ===== Step 7: create a daemon and install it ===== | ===== Step 7: create a daemon and install it ===== | ||
| Line 161: | Line 153: | ||
| TELEGRAM_BIN="/ | TELEGRAM_BIN="/ | ||
| TELEGRAM_PORT=1234 | TELEGRAM_PORT=1234 | ||
| - | TELEGRAM_ARGS=" | + | TELEGRAM_ARGS=" |
| PID_FILE=/ | PID_FILE=/ | ||
linux/telegram.1435788391.txt.gz · Last modified: 2022/12/02 21:02 (external edit)
