QR Code Generator – Windows, Linux, MacOS

A QR code generator is an application which creates and stores different types of data in a QR code image file.

A qrencode is a free command line tool for encoding string data in the QR code and saving it as a PNG or an EPS image.

In this note i will show how to install and and how to use (with examples) the qrencode on Windows, Linux and MacOS from the command line. (more…)

Redirect `STDERR` to `STDOUT` 2>&1

Any command executed in Bash or any other Linux shell, has one input stream (stdin) and two kinds of output streams: standard output (stdout) and standard error (stderr).

Each of these streams is represented by a numeric file descriptor:

  • 0stdin, the standard input stream
  • 1stdout, the standard output stream
  • 2stderr, the standard error stream

There is an advantage in separating the stdout and stderr streams, as it allows to redirect/pipe a command’s output (stdout) to a file or anther command and still see any error messages (stderr) in the terminal.

But sometimes it is required to redirect the stderr stream to stdout or redirect the both stderr and stdout to a file or to /dev/null and in this note i am showing how to do this. (more…)

Wget: Keep Original Filename

If you try to download a file over HTTP/HTTPS provided by a dynamic link or through a chain of 301, 302 redirects, wget would normally save the file using a part of the URL that you’re using.

At the same time, if you use this URL to download the file in a browser, it will be downloaded and saved with its original name.

In this note i will show how to force wget to preserve the original filename and save it with its actual name. (more…)

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…)

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…)

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…)

Increase Image Size in KB (Without Changing Pixels)

Sometimes it is requires to increase an image size without changing its pixels i.e. increase the size of a file without changing a quality, dimension or resolution of the image or photo.

You may need this for example in some applications or web-services that don’t allow to upload images if their size is less than some minimum, e.g. less than 50KB.

There is no need to search for some online “photo size increaser” or install any additional software as Windows, macOS and Linux users can easily increase an image size using the built-in command-line tools.

In this note i will show how to increase an image size without changing its pixels in Windows, macOS and Linux from the command line. (more…)