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 21:47] – [Step 6: create a daemon and install it] 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 101: | Line 103: | ||
</ | </ | ||
- | And finnally, copy the configuration information. The configuration information is in your home directory under the folder '' | + | |
+ | ===== Step 6: create | ||
+ | |||
+ | In order to run the telegram-daemon as root, you will need to create the user telegramd. I've opted | ||
+ | to create this user as a system user: | ||
< | < | ||
- | # mv /home/YOUR-USER/ | + | # useradd |
</ | </ | ||
- | ===== Step 6: create a daemon and install it ===== | + | Impersonate this user and run the telegram-cli program again, to create a proper configuration file: |
+ | |||
+ | < | ||
+ | telegramd@: | ||
+ | Telegram-cli version 1.0.5, Copyright (C) 2013-2014 Vitaly Valtman | ||
+ | Telegram-cli comes with ABSOLUTELY NO WARRANTY; for details type `show_license' | ||
+ | This is free software, and you are welcome to redistribute it | ||
+ | under certain conditions; type `show_license' | ||
+ | Telephone number (with ' | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | ===== Step 7: create a daemon and install it ===== | ||
Telegram-cli has a bug that provokes that, unless '' | Telegram-cli has a bug that provokes that, unless '' | ||
Line 133: | Line 153: | ||
TELEGRAM_BIN="/ | TELEGRAM_BIN="/ | ||
TELEGRAM_PORT=1234 | TELEGRAM_PORT=1234 | ||
- | TELEGRAM_ARGS=" | + | TELEGRAM_ARGS=" |
PID_FILE=/ | PID_FILE=/ | ||
Line 191: | Line 211: | ||
</ | </ | ||
- | ===== Step 7: create the system user telegramd ===== | ||
- | |||
- | In order to run the telegram-daemon as root, you will need to create the user telegramd. I've opted | ||
- | to create this user as a system user: | ||
- | |||
- | < | ||
- | # useradd -M --user-group --system --shell=/ | ||
- | </ | ||
- | |||
- | |||
- | **And give permissions into / | ||
- | |||
- | < | ||
- | chown telegramd: | ||
- | </ | ||
===== Step 8: install the telegram-msg program ===== | ===== Step 8: install the telegram-msg program ===== |
linux/telegram.1435787234.txt.gz · Last modified: 2022/12/02 21:02 (external edit)