Install Telegram on Ubuntu/Linux Mint

Telegram Desktop can be installed on Ubuntu/Linux Mint from the Ubuntu’s APT repository, but this way you will get a quite outdated version of the app.

Alternatively, you can install the latest version of the Telegram Desktop app using a Snap package manager, but it is disable in Linux Mint and there are some reasons for this (one, two).

This note shows how to install the latest version of the Telegram Desktop application on any Linux distribution, incl. Ubuntu and Linux Mint, from the official tsetup.*.tar.xz tarball and how to update the already installed application. (more…)

Set Up ‘Out Of Office’ Auto-Reply Message in Outlook

A Microsoft Outlook’s “out of office” message is an auto-reply email that notifies people you’re not at work for an extended period of time.

It is useful for letting colleagues know when to expect a response and/or whom to contact in your absence, and is often considered proper work etiquette for vacations, sick leave, and other lengthy absences.

In this note i am showing how to set up an automatic “out of office” reply in the Outlook application. (more…)

Ansible: Run Shell Command on Remote Host

To run a command on a remote host we can use the Ansible’s shell module (or win_shell for Windows targets).

By default, the shell module uses the /bin/sh shell to execute commands, but it is possible to use other shells such as /bin/bash by passing the executable argument.

In this note i will show the examples of Ansible tasks running shell commands on remote hosts and also i will show how to execute ad hoc commands to perform quick tasks without having to write a playbook. (more…)

Linux Mint: Find Ubuntu Version it is Based On

The main edition of the Linux Mint is based on Ubuntu which itself is based on Debian.

If you try to add an Ubuntu APT repository in the Linux Mint with the command, like sudo apt-add-repository "deb [arch=amd64] <URL> $(lsb_release -cs) main", you may get this error:

E: The repository ‘<URL> <codeName> Release’ does not have a Release file. N: Updating from such a repository can’t be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.

This is because the $(lsb_release -cs) command returns not the codename of the Ubuntu release but the codename of the Linux Mint.

To solve this error in the most cases it should be enough to replace the $(lsb_release -cs) with the Ubuntu version the Linux Mint distribution is based on.

In this note i will show how to find the Ubuntu version the Linux Mint is based on. (more…)

Ansible: `lsb_release` Variable

The lsb_release -sc command displays the release codename of a Linux distribution in a short format.

You can often meet this command while adding APT repositories, e.g. sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main".

To get the output of the lsb_release -sc command in Ansible, there is no actually a need to execute this command, as the ansible_distribution_release fact in Ansible already stores this information in the required format.

This note shows how to refer to the output of the lsb_release -sc command in Ansible using the ansible_distribution_release fact. (more…)

Split Screen in Linux Mint (MATE)

If you search for how to split screen in a Linux Mint/Ubuntu you will find very fast that this can be done by using the different combinations of the ⊞ Win + , , , key buttons.

But if you are a lucky owner of the MATE edition of the Linux Mint, you will notice that these split-screen keyboard shortcuts don’t work out of the box.

This is because for some reason the split-screen keyboard shortcuts in the MATE edition of the Linux Mint are disabled by default.

This note shows how to split screen in the MATE edition of the Linux Mint. (more…)

Windows: Restart Explorer

Windows Explorer or explorer.exe is a process in Windows that is responsible for starting and displaying the most of the graphical user interfaces (GUI), including the Desktop, Taskbar, “Start” menu and File Explorer.

If any of the components the Windows Explorer is responsible of are freezing, hanging and not responding, before restarting the whole computer you can try to restart the explorer.exe process only.

In this note i will show how to fix problems with the Windows Explorer by restarting the explorer.exe from the Windows Task Manager or from the command prompt (CMD). (more…)

CMD: Delete Folder (Force `RMDIR`) – Windows

The rm -rf command in Linux is used to force the deletion of folders and their contents recursively.

The rmdir command is a Windows rm equivalent in a Windows command prompt (CMD), that also can be used to force the folders deletion with all their contents.

In this note i will show how to force the rmdir command to delete folders and their contents recursively without throwing any errors like “The directory is not empty” or “Access is denied“. (more…)