UbuntuUbuntu Based

How To Install gThumb on Ubuntu 24.04 LTS

Install gThumb on Ubuntu 24.04

gThumb is an advanced image viewer and browser for the GNOME desktop environment that offers a wide array of features, making it a favorite among Linux users. It allows you to easily browse your filesystem for images, present them in engaging slideshows, create image catalogs, and even generate web albums. Whether you are a casual user or a photography enthusiast, gThumb provides the tools you need to manage and view your image collections effectively. This guide will walk you through the process of installing gThumb on Ubuntu 24.04 LTS (Noble Numbat), providing step-by-step instructions for both the APT and Flatpak installation methods. We’ll cover each method in detail, including the advantages and disadvantages, to help you choose the best option for your needs.

Ubuntu 24.04 LTS is a Long Term Support release, meaning it receives updates and security patches for five years, making it a stable and reliable choice for both desktop and server environments. Installing gThumb on this platform ensures you have a dependable image viewer that integrates seamlessly with your system. Let’s get started!

Prerequisites

Before we dive into the installation process, let’s ensure that you have everything you need. Here are the prerequisites:

  • A working Ubuntu 24.04 LTS installation: This guide assumes you already have Ubuntu 24.04 LTS installed and running on your system.
  • A stable internet connection: You will need an active internet connection to download the necessary packages.
  • sudo privileges: You need to have sudo privileges to install software on Ubuntu. This allows you to run commands with administrative rights.
  • Basic knowledge of the Linux terminal: While this guide provides detailed instructions, some familiarity with the Linux terminal will be helpful.

Updating Ubuntu Before gThumb Installation

Updating your Ubuntu system before installing any new software is a best practice. Updating ensures that you have the latest security updates, bug fixes, and system improvements. This can prevent potential conflicts during the installation process and ensure that gThumb runs smoothly on your system. To update your system, open the terminal and run the following commands:

sudo apt update && sudo apt upgrade

Let’s break down this command:

  • sudo: This command elevates your privileges to that of the superuser, allowing you to make system-level changes.
  • apt update: This command refreshes the package lists, downloading the latest information about available packages and their versions.
  • apt upgrade: This command upgrades all installed packages to their newest versions. It’s important to keep your system up-to-date to maintain stability and security.

After running these commands, your system will be up-to-date, and you can proceed with the gThumb installation.

Method 1: Install gThumb via Ubuntu Default Repository

The Ubuntu default repository provides a stable and secure version of gThumb. This method is straightforward and ensures that gThumb integrates well with your system. However, the version available in the default repository might not be the latest.

Installing gThumb via APT Command

To install gThumb using the APT package manager, open the terminal and enter the following command:

sudo apt install gthumb

This command instructs APT to install the gThumb package. Here’s a breakdown:

  • sudo: As mentioned earlier, this gives you the necessary administrative privileges.
  • apt install: This is the command used to install a new package.
  • gthumb: This is the name of the package you want to install.

Once you run the command, APT will download and install gThumb along with any required dependencies. You may be prompted to confirm the installation by typing Y and pressing Enter.

Verifying the Installation

After the installation is complete, you can verify that gThumb has been successfully installed. There are a couple of ways to do this:

  1. Using apt show gthumb:
    Run this command in the terminal to display information about the installed package:
apt show gthumb

This command will show details such as the version number, description, and dependencies of gThumb. It confirms that the package is installed correctly.

  1. Using gthumb --version:
    Run this command to display the version number of gThumb:
gthumb --version

The output will show the version number of the installed gThumb, confirming its successful installation.

Launching gThumb After APT Installation

Now that gThumb is installed, you can launch it in several ways:

  1. From the terminal: Simply type gthumb in the terminal and press Enter.
gthumb
  1. From the GUI: You can find gThumb in the Activities menu. Click on “Show Applications” and then locate the gThumb icon. Click on the icon to launch the application.

Method 2: Install gThumb via Flatpak and Flathub

Flatpak is a universal package management system that allows applications to run consistently across various Linux distributions. Installing gThumb via Flatpak offers several advantages:

  • It provides a more isolated environment for the application, reducing the risk of conflicts with other software.
  • Flatpak often hosts more recent versions of applications compared to the default Ubuntu repository.
  • It ensures consistent performance across different systems.

Installing Flatpak (if needed)

If you don’t have Flatpak installed on your system, you need to install it first. Open the terminal and run the following command:

sudo apt install flatpak

This command installs the Flatpak package manager. After the installation, it’s recommended to add the Flatpak plugin for GNOME Software, which allows you to install Flatpak apps from the Software Center:

sudo apt install gnome-software-plugin-flatpak

To ensure that all changes are applied, restart your system:

sudo reboot

Enabling Flathub for gThumb

Flathub is the primary repository for Flatpak applications. To enable Flathub, run the following command in the terminal:

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

This command adds the Flathub repository to your Flatpak configuration. The --if-not-exists option ensures that the repository is only added if it’s not already present.

Install gThumb via Flatpak Command

With Flatpak and Flathub set up, you can now install gThumb using the following command:

flatpak install flathub org.gnome.gThumb -y

This command tells Flatpak to install gThumb from the Flathub repository. The -y option automatically answers “yes” to any prompts, allowing the installation to proceed without interruption.

Launching gThumb After Flatpak Installation

After the installation is complete, you can launch gThumb in the following ways:

  1. From the terminal: Use the following command:
flatpak run org.gnome.gThumb
  1. From the GUI: As with the APT method, you can find gThumb in the Activities menu. Click on “Show Applications” and then locate the gThumb icon. Click on the icon to launch the application.

Install gThumb on Ubuntu 24.04

Using gThumb

Once gThumb is installed, you can start using it to manage and view your images. Here are some basic operations you can perform.

Basic Image Viewing

  1. Opening an image: To open an image, simply double-click on it in the file manager. gThumb will open the image in its main window.
  2. Navigating images: You can use the arrow keys to navigate to the next or previous image in a folder. The toolbar also provides buttons for navigation.
  3. Zooming: Use the mouse wheel or the zoom slider in the toolbar to zoom in and out of the image.
  4. Fullscreen mode: Press F11 to enter fullscreen mode for an immersive viewing experience.

File System Browsing

gThumb allows you to browse your file system to locate images:

  1. Sidebar: The sidebar displays your file system, allowing you to navigate to different folders.
  2. Bookmarks: You can add bookmarks for frequently accessed folders by dragging them to the bookmarks section in the sidebar.
  3. Filtering: Use the filter options to display only image files in a folder.

Image Catalogs

gThumb supports image catalogs, which allow you to organize your images into collections:

  1. Creating a catalog: Go to “File” > “New Catalog” to create a new image catalog.
  2. Adding images: Drag and drop images from your file system into the catalog.
  3. Adding comments: You can add comments to individual images by right-clicking on the image and selecting “Properties.”

Basic Editing Tools

gThumb provides basic editing tools for image manipulation .

  1. Cropping: Use the crop tool to select a portion of the image and remove the rest.
  2. Resizing: Resize images to different dimensions using the resize tool.
  3. Color adjustments: Adjust brightness, contrast, saturation, and hue using the color adjustment tools.
  4. Filters: Apply various filters to enhance your images.

Troubleshooting

Even with detailed instructions, you might encounter issues during the installation or usage of gThumb. Here are some common problems and their solutions:

gThumb Not Launching

If gThumb fails to launch after installation, try the following:

  1. Check the installation: Verify that gThumb is properly installed by running apt show gthumb (for APT) or flatpak list (for Flatpak).
  2. Ensure Flathub is configured correctly: If using Flatpak, make sure Flathub is properly configured as a remote repository.
  3. Check dependencies: Missing dependencies can prevent gThumb from launching. Use the methods described below to check and install any missing dependencies.

Missing Dependencies

Missing dependencies can cause gThumb to malfunction. To identify and resolve this issue:

  1. Identify missing dependencies: Use the ldd command to list the dynamic dependencies of gThumb. For APT installations, run:
ldd /usr/bin/gthumb

For Flatpak installations, use:

flatpak run --command=ldd org.gnome.gThumb

Look for any dependencies that are marked as “not found.”

  1. Install missing dependencies: Use APT or Flatpak to install the missing dependencies. For example, if libjpeg.so.0 is missing, run:
sudo apt install libjpeg0

or, if using Flatpak:

flatpak install flathub [missing-dependency]

Removable Media Access

If gThumb cannot access removable media (e.g., USB drives), you might need to adjust the permissions:

  1. Snap installations: If you installed gThumb via Snap, connect the removable media interface:
sudo snap connect gthumb-unofficial:removable-media :removable-media
  1. Flatpak permissions: For Flatpak, ensure that gThumb has the necessary permissions to access removable drives via Flatseal or the command line.

Alternative Installation Methods

Besides APT and Flatpak, you can also install gThumb using Snap. Snap is another package management system that provides containerized applications. However, APT and Flatpak are generally recommended due to better integration and update management.

Installing gThumb via Snap

To install gThumb using Snap, run the following command:

sudo snap install gthumb-unofficial

Note that this is an unofficial Snap package. After installation, launch gThumb using the command gthumb-unofficial.

Uninstalling gThumb

If you no longer need gThumb, you can uninstall it using the same package manager you used to install it.

Uninstalling gThumb Installed via APT

To uninstall gThumb installed via APT, run the following command:

sudo apt remove gthumb

This command removes the gThumb package. To remove any unused dependencies, you can run:

sudo apt autoremove

Uninstalling gThumb Installed via Flatpak

To uninstall gThumb installed via Flatpak, use the following command:

flatpak uninstall org.gnome.gThumb

This command uninstalls gThumb from your system.

Uninstalling gThumb Installed via Snap

To uninstall gThumb installed via Snap, use the following command:

sudo snap remove gthumb-unofficial

Congratulations! You have successfully installed gThumb. Thanks for using this tutorial for installing the gThumb photo manager and image viewer on Ubuntu 24.04 LTS system. For additional help or useful information, we recommend you check the official gThumb website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!

r00t

r00t is an experienced Linux enthusiast and technical writer with a passion for open-source software. With years of hands-on experience in various Linux distributions, r00t has developed a deep understanding of the Linux ecosystem and its powerful tools. He holds certifications in SCE and has contributed to several open-source projects. r00t is dedicated to sharing her knowledge and expertise through well-researched and informative articles, helping others navigate the world of Linux with confidence.
Back to top button