How to Install Flameshot on Ubuntu 22.10/22.04/20.04

Anyone who has used Ubuntu will know that it comes with a great screenshot tool called Flameshot. This tool is simple to use and offers a range of features that make taking screenshots easier and faster. For example, you can capture the entire screen or just a specific area, and you can also capture screenshots of windowed applications. In addition, Flameshot offers several editing features that can annotate or highlight portions of the screenshot. Overall, Flameshot is a valuable tool for anyone who needs to take screenshots regularly.

In the following tutorial, you will learn how to install Flameshot on Ubuntu 22.10, 22.04, and 20.04 Linux with cli commands using two methods, APT or Flatpak/Flathub, using the command line terminal. For most users, I would always recommend installing the version from Ubuntu’s repository first. For users that prefer Flatpaks and more frequently updated applications, use the Flathub source.

Important Notice

The following tutorial was done with a Ubuntu 22.04 LTS release, and example images were taken. Still, it was tested on Ubuntu 20.04 and Ubuntu 22.10. In the future, if Ubuntu makes any changes to break the tutorial for one of the distribution versions, please place a comment for me to investigate so I can update the tutorial.

Recommended Steps Before Installation

Before proceeding with the tutorial, ensuring your system is up-to-date with all existing packages is good.

sudo apt update

Optionally, you can list the updates for users who require review or are curious.



sudo apt --list upgradable

Proceed to upgrade any outdated packages using the following command.

sudo apt upgrade

#1st Method – Install Flameshot – Ubuntu Repository

By default, Ubuntu 22.04 standard repository comes with Flameshot included. This would be the best option for most users that prefer not to use a third-party package manager.

sudo apt install flameshot -y

#2nd Method – Install Flameshot – Flatpak/Flathub Repository

The second option is to use the Flatpak package manager. Flatpak is not installed natively on Ubuntu, given Canonical is behind both Ubuntu and Snaps, but it is available to install if you so wish from the repository.

First, install the Flatpak manager; this can be skipped if you have it installed already.

sudo apt install flatpak -y

For users installing Flatpak for the first time, it is often recommended to reboot your system. Failure to do this can occur with odd issues, such as wrong icon paths.

reboot

SKIP THE REBOOT IF FLATPAK IS INSTALLED.



Next, you need to enable Flatpack using the following command in your terminal.

sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Next, you can install Flameshot Flatpak with the following command.

flatpak install flathub org.flameshot.Flameshot -y

Once installed, you can proceed to launch.

Launch Flameshot on Ubuntu Linux

Launching the Flameshot GUI using the following desktop path is the best method.

Activities > Show Applications > Flameshot

Example:



launch flameshot from the application menu on Ubuntu 22.10, Ubuntu 22.04 and Ubuntu 20.04.

Once you have launched the GUI method of Flameshot, you will see it in the top right-hand corner of the screenshot below the application icon. You can click it to launch to screenshot the image capture tab, configurations options, and much more.

Example:

Example of Flameshot icon in system tray on Ubuntu 22.10, Ubuntu 22.04 and Ubuntu 20.04.

Example screenshot was taken:

Example of Flameshot GUI screenshot tool on Ubuntu 22.10, Ubuntu 22.04 and Ubuntu 20.04.

Additionally, you can use the configuration options to customize your screen captures images, such as shortcuts, available customizations with colors, filenames, and much more.

Example:

Example UI color editor for Flameshot on Ubuntu 22.10, Ubuntu 22.04 and Ubuntu 20.04.

Flameshot CLI Commands on Ubuntu Linux

Below are some of the basic CLI commands you can use with Flameshot for users that prefer using terminal actions over GUI methods.



Flameshot Common Example Commands

capture with GUI:

flameshot gui

Capture with GUI with custom save path:

flameshot gui --path ~/myStuff/captures

Open GUI with a delay of 3 seconds:

flameshot gui --delay 3000

Fullscreen capture (asking to save path):

flameshot full

Fullscreen capture with custom save path (no GUI) and delayed:

flameshot full --path ~/myStuff/captures --delay 5000

Fullscreen capture with custom save path copying to clipboard:



flameshot full --clipboard --path ~/myStuff/captures

Flameshot CLI Configuration Commands

Open the configuration menu:

flameshot config

Show the initial help message in the capture mode:

flameshot config --showhelp true

To check mistakes and issues in the configuration file:

flameshot config --check

For more information about the available options, use the help flag:

flameshot config --help

Update Flameshot on Ubuntu Linux

Most users would often update when the desktop GUI notifies them, which is excellent. But I would always recommend updating using the command line terminal with CLI to ensure updates are getting processed.

sudo apt update && sudo apt upgrade

Remove Flameshot on Ubuntu Linux

The removal of the Flameshot is straightforward. Use the following command that matches your installation.



Remove Flameshot APT Method

sudo apt autoremove flameshot --purge

Note that this will delete all data, including all database data added with the –purge flag. Do not use the purge end flag if you wish to keep the data.

Remove Flameshot Flatpak Method

To remove the Flatpack version, run the following command.

flatpak uninstall --delete-data org.flameshot.Flameshot -y

Another handy hint can be to use the following command to ensure Flatpak has not left behind any unnecessary packages as it is known to sometimes.

flatpak remove --unused


Not what you were looking for? Try searching for additional tutorials.

Leave a Comment