Application telegram

From campisano.org
Jump to navigation Jump to search

Telegram

Install

shared/opt install schema v1.2

su -
#### as root
# dependencies
apt-get install curl tar xz-utils libminizip1 libtgvoip1.0
# binary
DESTINATION="/home/shared/opt/software"                 # Edit when needed
VERSION="1.8.15"                                        # Edit when needed
URL="https://updates.tdesktop.com/tlinux/tsetup.${VERSION}.tar.xz"
umask 0027
mkdir -p "${DESTINATION}/tmp"
cd "${DESTINATION}/tmp"
curl -C - -kLO "${URL}"
tar -xJf tsetup.${VERSION}.tar.xz
cd "${DESTINATION}"
chown -R root:users "tmp"
find "tmp" -type d -exec chmod a-s,u+rwx,g+rx,g-w,o-rwx {} \;
find "tmp" -type f -exec chmod a-s,u+rw,g+r,g-w,o-rwx {} \;
mv "tmp/Telegram" "telegram-${VERSION}"
rm -rf tmp telegram
ln -s "telegram-${VERSION}" telegram
exit
#### as final user
SOFTWARE_PATH="/home/shared/opt/software"               # Edit when needed
nice -1 "${SOFTWARE_PATH}/telegram/Telegram"