How to Install Telegram on Linux Mint

How to Install Telegram on Linux Mint

Telegram is a popular messaging app known for its speed, security, and rich features. It’s widely used for personal and professional communication, Telegram is a popular messaging application that emphasizes speed, security, and cross-platform availability. With its open-source nature and cloud-based services, Telegram has gained a massive user base worldwide. For Linux users, especially those using Linux Mint, installing Telegram is a straightforward process. This guide will walk you through the steps necessary to install Telegram on Linux Mint, ensuring you have a fully functional application by the end.

Prerequisites

Before you begin, ensure that your system meets the following prerequisites:

  1. Operating System: Linux Mint 19 or later.
  2. Internet Connection: A stable internet connection is required to download the Telegram package.
  3. User Privileges: Ensure you have sudo privileges to install software on your system.

Step 1: Update the System

Before installing any new software, it’s good practice to update your system. This ensures that all packages and repositories are up to date, minimizing the risk of conflicts or installation errors.

To update your system, open the terminal and run the following command:

sudo apt update && sudo apt upgrade -y 

This command will update the package list and upgrade any outdated packages to their latest versions.

Step 2: Choose Your Installation Method

There are several methods to install Telegram on Linux Mint. You can install it via the official Telegram binary, the Snap package, or from the official repositories. Below, we’ll explore each method.

Method 1: Installing Telegram via the Official Binary

The Telegram team provides an official binary that you can download and run without installing any additional dependencies.

  1. Download the Telegram Binary:Visit the official Telegram website and download the Linux version of Telegram. Alternatively, you can download it directly using the terminal
wget -O telegram.tar.xz https://telegram.org/dl/desktop/linux

  1. Extract the Archive:After downloading, extract the archive using the following command:
tar -xvf telegram.tar.xz

  1. This command will extract the files into a new directory.

  1. Run Telegram:Navigate to the newly extracted directory and run the Telegram binary:
cd Telegram ./Telegram

  1. Telegram will start, and you can follow the on-screen instructions to set up your account. To make Telegram easier to access, you might want to add it to your applications menu. This can be done by creating a desktop entry, which we’ll discuss later.

Method 2: Installing Telegram via Snap

Snap is a package management system that allows you to install applications packaged as snaps. Snaps are self-contained and include all the dependencies an application needs.

  1. Install Snap:If Snap is not already installed on your Linux Mint system, you can install it using the following command:sudo apt install snapd
  2. Install Telegram:Once Snap is installed, you can install Telegram by running:sudo snap install telegram-desktop
  3. Launch Telegram:After installation, you can launch Telegram by searching for it in the application menu or by typing the following command in the terminal:telegram-desktop

Method 3: Installing Telegram via the Official Repository

Telegram is also available through the official Linux Mint repositories, making installation straightforward through the terminal.

  1. Install Telegram:Run the following command to install Telegram from the official repositories:sudo apt install telegram-desktop
  2. Launch Telegram:After installation, you can launch Telegram from the application menu or by running:telegram-desktop

Step 3: Creating a Desktop Entry (Optional)

If you installed Telegram using the official binary, you might want to create a desktop entry to make it easier to launch from the applications menu.

  1. Create the Desktop Entry:First, create a new file in the applications directory:
sudo nano /usr/share/applications/telegram.desktop

  1. Add the Following Content:Paste the following content into the file:
[Desktop Entry] Name=Telegram Desktop Comment=Official Telegram Desktop client Exec=/path/to/Telegram/Telegram Icon=/path/to/Telegram/telegram-icon.png Terminal=false Type=Application Categories=Network;InstantMessaging;

  1. Make sure to replace /path/to/Telegram/ with the actual path where you extracted the Telegram binary.
  2. Save and Close the File:Press Ctrl+O to save the file and Ctrl+X to exit the editor.
  3. Make the File Executable:To ensure the desktop entry is executable, run the following command:sudo chmod +x /usr/share/applications/telegram.desktop
  4. Launch Telegram:You should now see Telegram in your application menu. You can launch it from there without needing to navigate to the terminal each time.

Step 4: Keeping Telegram Updated

Telegram updates frequently, and it’s important to keep it up to date for security reasons and to access new features.

  • For Official Binary: If you installed Telegram using the official binary, it will automatically update itself when new versions are released.
  • For Snap: Snap packages update automatically, so you don’t need to worry about manual updates.
  • For Repository Installation: If you installed Telegram via the official repositories, you can update it using the following command:sudo apt update && sudo apt upgrade telegram-desktop

Troubleshooting

If you encounter issues during the installation, here are some common problems and their solutions:

  • Dependency Issues: If you face missing dependencies, make sure your system is updated. You can also try installing the missing packages manually using sudo apt install package-name.
  • Permission Denied: If you get a permission denied error while trying to run the Telegram binary, ensure that you have executable permissions on the binary. Use the command:chmod +x ./Telegram
  • Application Not Found: If the application does not appear in your menu, ensure the desktop entry was created correctly, and the paths are accurate.

Conclusion

Installing Telegram on Linux Mint is a simple process that can be done in several ways depending on your preferences. Whether you prefer using the official binary, Snap, or the repository, each method provides a reliable way to get Telegram up and running on your system. With this guide, you should have no trouble installing and using Telegram on Linux Mint. Enjoy messaging with Telegram’s secure and fast platform!

Fedya Serafiev

Fedya Serafiev

Fedya Serafiev owns the website linuxcodelab.eu. He finds satisfaction in helping people solve even the most complex technical problems. His current goal is to write easy-to-follow articles so that such problems do not arise at all.

Thank you for reading the article! If you found the information useful, you can donate using the buttons below: