Uncategorized

3 Ways to Install Telegram Messenger on Debian 11 bullseye

This tutorial shows 3 ways to install the Telegram messaging app on Debian 11. Telegram is a free, open-source messaging app with a focus on privacy, security and speed. It’s available on Linux, Mac, Window, Android, iOS and Windows Phone.

Telegram boasts over 100 million active monthly users. Main features of Telegram Messenger are as follows:

  • Super fast and lightweight
  • Send text, files, pictures, audio and video messages
  • Group chat with up to 10,000 members
  • Make voice calls with the Telegram mobile and desktop app
  • Messages can be synced across your computer, tablet and phone
  • Secret chat mode provides end-to-end encryption and self-destruct messaging function
  • Beautiful interface

Now let’s see how we can install Telegram messenger on Debian 9 Stretch.

Method 1: Install Telegram on Debian 11 via Tarball

Telegram website offers a traditional tar.xz tarball for Linux users. This is the recommended way to install Telegram on Debian 11. Head over to the official Telegram website and download the tar archive. Once it’s downloaded, open up a terminal window and navigate to the download directory. Then extract the tarball with the following command:

tar xvf tsetup*.tar.xz

There’ll be a new directory named Telegramand there are two executable files in it: Telegram and Updater.  You can navigate to the Telegram directory, execute the Telegram binary and using Telegram Messenger right away like below.

cd Telegram

./Telegram

Instead of using Telegram this way, we can move the Telegram directory into /opt, a directory used for storing third-party applications on Linux. The following two command requires root privilege. You can use su - command to switch to root user on Debian.

mv Telegram/ /opt/

Then create a symbolic link. Please note that Linux is case-sensitive.

ln -sf /opt/Telegram/Telegram /usr/bin/telegram

Now you can launch Telegram by typing telegram in the terminal.

telegram

Method 2: Install Telegram on Debian 9 via Snap Package

Starting with Debian 11, snapd is available from Debian repository. And Telegram is available from the Ubuntu Snap store. So we can install telegram on Debian 11 via Snap.

First, switch to root user with the following command (Don’t forget the hyphen).

su -

Then update package repository and install snapd.

apt update

apt install snapd

Next, install Telegram from Snap store. There are actually 3 Snap packages for telegram: telegram-latesttelegram-sergiusenstelegram-cli (the command line interface to telegram service). You can install one of these packages with commands below.

snap install telegram-latest

snap install telegram-sergiusens

snap install telegram-cli

After installing it, you may need to log out and log back in to see the Telegram icon in application menu. One drawback of the Telegram snap package is that you won’t be able to open HTTP links when click them in Telegram. You have to manually copy links and open them in web browser.

Method 3: Install Telegram on Debian 11 via Ubuntu PPA

You can install Ubuntu PPA packages on Debian. A third-party Telegram PPA is available. Here’s how to install Telegram on Debian 11 via PPA.

Open up a terminal window and login as root.

su -

Then edit /etc/apt/sources.list file.

nano /etc/apt/sources.list

Append the following two lines at the end.

deb http://ppa.launchpad.net/atareao/telegram/ubuntu xenial main
deb-src http://ppa.launchpad.net/atareao/telegram/ubuntu xenial main

Notice that ubuntu version is xenial in the above two lines. Save and close the file. Now add the PGP public key of this PPA to your Debian 9 Stretch with the following command.

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 36FD5529

If the above command reports no dirmngr, then you can install it with:

sudo apt install dirmngr

Once the key is imported, update package repository and install Telegram Desktop.

sudo apt update

sudo apt install telegram