Archives For November 30, 1999

This simple tutorial shows how to install ungoogled chromium web browser in Ubuntu 22.04, Ubuntu 24.04, and their based systems.

Ungoogled-chromium is a free open-source variant of Chromium web browser, that removes all Google web services.

The project was started in 2015. It retains the default Chromium experience as closely as possible. But disables functionality specific to Google domains, including Google Safe Browsing, blocks internal requests to Google at runtime by replacing Google web domains in the source code with non-existent alternatives, and strips binaries from the source code.

It also features tweaks to enhance privacy, control, and transparency. However, almost all of these features must be manually activated or enabled.

How to Install Ungoogled Chromium in Ubuntu

The project refers to OBS repository for Debian and Ubuntu packages, however, no longer updated for long time.

As far as I know, there are still community maintained Flatpak and Ubuntu PPA available for choices.

Option 1: Flatpak package

The flatpak package can be installed in most Linux, but run in sandbox and take more disk space due to run-time library.

Tips: Linux Mint 21 can directly search for and install the Flatpak package from Software Manager.

All current Ubuntu releases can open terminal (Ctrl+Alt+T) and run 2 commands below to install the browser as Flatpak:

  • First, run command to install the flatpak daemon:
    sudo apt install flatpak

  • Then, install the browser package by running command:
    flatpak install https://dl.flathub.org/repo/appstream/com.github.Eloston.UngoogledChromium.flatpakref

If you’re first time installing a software package as Flatpak, then you need log out and back in to make the app icon visiable.

Option 2: Ubuntu PPA

For Ubuntu 22.04, Ubuntu 24.04, the xtradebs PPA also contains the browser packages for amd64 (Intel/AMD), arm64/armhf (Apple Silicon/Raspberry Pi) CPU architecture types.

First, press Ctrl+Alt+T on keyboard to open terminal. Then, run command to add the PPA:

sudo add-apt-repository ppa:xtradeb/apps

Type user password when it asks (no asterisk feedback) and hit Enter to continue.

Linux Mint 21 users need to manually refresh system package cache after adding PPA. To do so, run command:

sudo apt update

Finally, install the web browser as .deb package by running command:

sudo apt install ungoogled-chromium

For choice, also install ungoogled-chromium-driver package for WebDriver support.

After installing the package, search for and launch the web browser from start/application menu or ‘Activities’ overview depends on your DE and enjoy!

Uninstall Ungoogled chromium

Depends on how you installed the software package, select remove it via:

  • For the Flatpak package, uninstall it by running command:
    flatpak uninstall --delete-data com.github.Eloston.UngoogledChromium

    Also, run flatpak uninstall --unused to uninstall useless runtime libraries.

  • For the .deb package installed from Ubuntu PPA, remove it by running command:
    sudo apt remove --autoremove ungoogled-chromium

    Also, remove the Ubuntu PPA, either by running command:

    sudo add-apt-repository --remove ppa:xtradeb/apps

    Or by launching “Software & Updates” and remove source line under “Other Software” tab.

Looking for app to convert your photo images into other formats? Try Switcheroo.

For batch image processing, I’d recommend to use Converseen. However, stupid simple applications are always good choices for beginners.

And, Switcheroo is one stupid simple app for converting photo images, while having modern look and feel in today’s Linux desktop.

Click ‘Open Images’ or drag’n’drop files into app window

With it, just click “Open Images” button and choose your image file/files, or drag and drop files into the app window to open them.

It shows thumbnail preview of all opened images, along with delete buttons in top-right for each images.

By using top-left ‘+’ button, user can add more images (Tips: hold Ctrl or Shift can select multiple files). And, ‘≡’ menu even provides an option to paste images from clipboard.

After opening all your photo images, click the drop-down box in the right of “Export Format” to select which file format to convert to.

At the moment of writing, it support converting image to PNG, JPG, WEBP, HEIF, HEIC, BMP, AVIF, JXL, TIFF, PDF, GIF. Though, you have to either use top-right hamburger menu or press Ctrl + H to show less popular file types.

The app’s hamburger menu

Before clicking ‘Convert’, it provides few more options, such as set background color, resize with or without aspect ratio, and change image quality. There’s also “Save To Zip” to directly output images into ZIP archive.

Instead of providing an in-app option, it pops-up file chooser dialog asks to choose where to save output images or ZIP archive, once clicking “Convert” button.

How to Install Switcheroo Image Converter

The app is available as universal Flatpak package, that can be installed in Ubuntu, Debian, Fedora, Arch, Chrome OS, and most other Linux, even including the mobile device, such as PinePhone.

1. First, press Ctrl+Alt+T on keyboard to open terminal. When it opens, run command to install the Flatpak daemon:

sudo apt install flatpak

Other Linux can follow the official setup guide to get Flatpak support.

2. Then, run command to install the app as flatpak:

flatpak install https://dl.flathub.org/repo/appstream/io.gitlab.adhami3310.Converter.flatpakref

As you see in the screenshot, the downside is that a small app can have 1 GB downloading due to run-time libraries (though shared).

3. Once installed, search for and launch it from your system application launcher, start menu, or ‘Activities’ overview depends on desktop environment.

First time installing Flatpak app needs a log out and back in, to make app icon visible.

4. To enable drag’n’drop support, you need to grant access permission to the folders that contain the photo images.
To do so, install Flatseal, then use it to allow access either all user files or certain folders (by adding Other files).

Uninstall Switcheroo

To uninstall the image converting application, also open terminal (Ctrl+Alt+T), then run command:

flatpak uninstall --delete-data io.gitlab.adhami3310.Converter

Also run flatpak uninstall --unused to remove useless run-time libraries.

Have 2 or more PCs connected to a single external monitor? If you run Ubuntu (or other Linux) on one of the PCs, then here’s how to add a keyboard shortcut to switch video source on the monitor.

Most external monitors today have more than one video input ports, e.g., HDMI1, HDMI2, DP1, allowing to connect with different computers at the same time.

And, they usually support DDC/CI protocol to control monitors without hitting physical buttons.

I have multiple computers connected to the single monitor.

To save desktop space, I have only one monitor on my desk, and 2 computers connected to this single monitor. One is running Windows 10 for gaming and another with Ubuntu for work.

In Windows, I use ControlMyMonitor (it’s http link, not sure if it works now) to modify monitor settings and autohotkey to setup keyboard shortcuts.

In Ubuntu and most other Linux, it’s easy to do the job through ddcutil. And, here’s the how to steps one by one.

NOTE: This tutorial is tested and works in my case in Ubuntu 22.04 and Ubuntu 24.04, though it should also works in all other Ubuntu releases, such as Ubuntu 20.04.

Step 1: Install ddcutil

For Ubuntu user, simply press Ctrl+Alt+T on keyboard to open a terminal window. When it opens, run command to install the command line tool:

sudo apt install ddcutil

Type user password when it asks for sudo authentication, though there’s no asterisk feedback.

For Fedora, RHEL, based systems, run the dnf command below instead:

sudo dnf install ddcutil

And, Arch based Linux can install it via command:

sudo pacman -S ddcutil

Step 2: setup permission

After installing the package above, i2c user group is created. You have to add current user to that group by running command:

sudo gpasswd --add $USER i2c

Not sure if required, but try to restart computer if next step does not work for you.

Step 3: Use Linux command to Switch Monitor Input Source

1. Now, run command in terminal to report connected monitors, and find out the logical display number:

ddcutil detect

In my case, it’s number 1. Usually you can skip this step if only one monitor connected.

2. Next, run command to find out the feature code, as well as its values for input source:

ddcutil --display 1 capabilities

Replace number 1 to yours according to the last command. And you can just skip for --display 1.

In the terminal output, 60 is the input source feature code for me. And, values include: 0f and 11 in hex. So, they are 0x0f and 0x11.

3. After finding out the feature code and its values, try running command to switch monitor input source:

ddcutil setvcp 60 0x11

In this command, replace 60 to yours feature code. And, replace 0x11 (its HDMI-1 in my case) to your values according which video source to switch to.

Step 4: Setup keyboard shortcut to switch input source

If the ddcutil setvcp command works for you, now you may do following steps to set keyboard shortcuts to do the job.

For GNOME (default desktop in Ubuntu & Fedora), open ‘Settings’ and navigate to “Keyboard -> Keyboard Shortcuts -> View and Customize Shortcuts”.

In pop-up dialog, select “Custom Shortcuts”, then add new shortcut with:

  • Name: switch monitor input source (or whatever you want).
  • Command: ddcutil setvcp 60 0x11 (change code 60 & 0x11 according to yours).
  • Shortcut: whatever key combination that you want.

Also, add another keyboard shortcut to switch back.

For other Desktop Environments, try launching “Keyboard Shortcuts”, “Shortcut Keys”, “Custom Shortcuts”, “Keyboard”, etc, for the custom keyboard shortcuts settings page.

Fedora workstation displays Fedora logo on the desktop for the default wallpaper, now there’s an extension that can do the similar job in Ubuntu Desktop, Arch, and Manjaro Linux with GNOME 42 ~ 46.

It’s “Desktop Logo”, which allows to add any user selected image into desktop as background logo, resize and place it in top-left, top-center, top-right, center, bottom-left, bottom-center, or bottom-right of screen.

Continue Reading…

Mozilla announced Firefox 120.0 a day ago as the latest stable release of the popular web browser.

The new release continue adding new security improvements. In the right-click menu of web links, there’s now “Copy Link Without Site Tracking” to ensure that copied links no longer contain tracking information.

The ‘Privacy & Security’ setting page now has an option “Tell websites not to sell or share my data“.

For Germany users, Cookie Banner Blocker and URL Tracking Protection by default in private windows to auto-refuse cookies, and remove non-essential URL query parameters.

For Ubuntu, both Firefox and Chromium (in system repository) are Snap packages run in sandbox. Since 120.0 release, user can now import data from Chromium to Firefox, when both web browsers are installed as Snap packages.

Other changes in Firefox 120.0 include:

  • enhance Canvas APIs with Fingerprinting Protection for private windows.
  • imports TLS trust anchors (e.g., certificates) from the operating system root store.
  • New keyboard shortcuts to edit and delete a selected credential on about:logins.
  • support corner snapping for Picture-in-Picture on Windows and Linux
  • Various security fixes and developer improvements.

Download Firefox 120.0

The official release note as well as download link is available in the Mozilla website via the link:

For Ubuntu users with the pre-installed Firefox package, it has been already updated to the new 120.0 release. Just check it via menu “Help -> About Firefox”.

For those who prefer the classic .deb package format, the Mozilla Team PPA has made the package for all current Ubuntu releases, however, Ubuntu 22.04 users need to manually set PPA priority.

For Ubuntu 23.10, Fedora 39, Arch and other Linux with GNOME Desktop 45, there’s now new system tray applet to monitor system resource utilization.

There are quite a few tools for monitoring system resource utilization. While, Gnome-Stats-Plus is a new one that adds real-time graphs in right-corner of top-panel, allowing users to keep a close eye on their system’s performance.

By moving mouse cursor over the indicator icon, it will show you a bigger graph with real-time and historical CPU load, memory usage, network speed, and swap area usage.

And, clicking on the icon will launch system monitor application.

How to Install the SystemStatsPlus indicator

The indicator is available as a Gnome shell extension, which so far supports only GNOME 45.

1. Install gtop library

First, open terminal (press Ctrl+Alt+T on keyboard) and run command to install the gtop system monitoring library:

sudo apt install gir1.2-gtop-2.0 libgtop2-dev

For Fedora run sudo dnf install libgtop2, and Arch can install it via sudo pacman -S libgtop command.

2. Install the Gnome Extension

Ubuntu 23.10 can first launch App Center, and use it to search & install “Extension Manager” app.

Install Extension Manager in Ubuntu Software/App Center

Then, launch “Extension Manager” and use it to search & install “SystemStatsPlus” extension under Browse tab.

For Fedora 39 and Arch Linux, simply open the extension web page via the link below:

Then, use the ON/OFF switch to install it. Install browser extension via the link in the page, if you don’t see the toggle switch, and refresh.

3. Restart Gnome Shell

The indicator applet should appear in top-panel immediately after installation. If NOT, try restarting Gnome Shell.

For the default Wayland session, just log out and back in to restart the shell.

In the classic Xorg session, user can press Alt+F2, type r in pop-up ‘Run a command’ box, and hit Enter.

Uninstall:

To uninstall the extension, either use “Extension Manager” or “Gnome Extensions” app (both available in Gnome Software).

Or, turn off the toggle switch in the extension web page via the link button above.

How to Install .NET 8 in Ubuntu 22.04 LTS

Last updated: May 8, 2024 — 5 Comments

UPDATE May 2024: .NET 8 is finally made into Ubuntu 22.04 main repository!! Just open terminal (Ctrl+Alt+T) and run 2 commands one by one to install:

sudo apt update
sudo apt install dotnet8

Microsoft announced .NET 8 a few days ago. Here’s a step by step guide shows how to install it in Ubuntu 22.04 LTS (Also works in Ubuntu 20.04).

.NET 8 is a new LTS release with 3 years support. It features new code generator “Dynamic Profile-Guided Optimization” (PGO), AVX-512 instruction set, out-of-the-box AI features, first preview of .NET Aspire, native AoT, and various other changes. See the release note for details.

And, here are 2 ways to install the .NET 8 in current Ubuntu 22.04 LTS. They are Microsoft’s official repository and Ubuntu PPA.

Option 1: Install .NET 8 SDK/Run-time via official repository

Ubuntu has included the new release package into system repository for Ubuntu 23.10 and next Ubuntu 24.04.

Don’t know if it will be backported to Ubuntu 22.04 LTS repository, but here you can install it through Microsoft’s official apt repository. And, the repository also supports Ubuntu 20.04!

1. install the key

To add the Microsoft repository, you have to first download & install the key file.

To do so, press Ctrl+Alt+T on keyboard to open terminal. When terminal opens, run single command:

sudo wget -O - https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | sudo tee /etc/apt/keyrings/microsoft.gpg

This command will download the key, dearmor it (so it’s unreadable code, see the screenshot), and save to ‘/etc/apt/keyrings’ directory.

2. Add the Microsoft repository

Next, in terminal window, run command to create & edit the sources file:

sudo gedit /etc/apt/sources.list.d/microsoft.sources

Depends on your desktop environment, replace gedit with mousepad for XFCE, pluma for MATE, or nano that works in most cases.

When the file opens, add following lines and save it.

Types: deb
URIs: https://packages.microsoft.com/ubuntu/22.04/prod/
Suites: jammy
Components: main
Architectures: amd64
Signed-By: /etc/apt/keyrings/microsoft.gpg

For Ubuntu 20.04, replace 22.04 with 20.04, and jammy with focal.

3. Install .NET 8

Finally, update system package cache by running command:

sudo apt update

And, install .NET 8 SDK, runtime:

sudo apt install dotnet-sdk-8.0

I’m not .NET developer, but you can try dotnet --version after installation to verify.

Option 2: Install .NET 8 from Ubuntu PPA

For choice, .NET 8 is also available to install through an Ubuntu PPA. It so far supports Ubuntu 22.04 on amd64 (Intel/AMD) and arm64 (e.g., Raspberry Pi) devices.

This is a third-party PPA, but maintained by the same people who maintain the .NET8 package in Ubuntu’s system repository for 23.10 & 24.04.

1. First, press Ctrl+Alt+T on keyboard to open terminal. When it opens, run command to add the PPA:

sudo add-apt-repository ppa:dotnet/dotnet8


2. Linux Mint 21 users need to manually refresh the package cache after adding PPA, by running command:

sudo apt update

3. Finally, just run command to install .net8:

sudo apt install dotnet8

The command will install the host, sdk, runtime, as well as other packages automatically as dependencies.

Uninstall .NET 8

To remove .NET 8, open terminal (Ctrl+Alt+T) and run command:

sudo apt remove --autoremove aspnetcore-runtime-8.0 dotnet-sdk-8.0 dotnet-runtime-8.0 dotnet8

And, remove the Microsoft repository by running the 2 commands below to delete sources and key files:

sudo rm /etc/apt/keyrings/microsoft.gpg
sudo rm /etc/apt/sources.list.d/microsoft.sources

Finally, run sudo apt update to refresh cache.

If you installed the package from Ubuntu PPA, also run the apt remove command above to uninstall. Then, use the command below to remove the PPA:

sudo add-apt-repository --remove ppa:dotnet/dotnet8

For HandBrake users who prefer the classic .deb package, there’s now new PPA for all current, Ubuntu 22.04, Ubuntu 24.04, Ubuntu 23.10, and their based systems, such as Linux Mint 20/21, Pop! OS, Zorin OS 17.

HandBrake announced the new major 1.7.0 release a few days ago. The release features new AMD VCN AV1 encoder, NVIDIA NVENC AV1 encoder, SVT-AV1 multi-pass ABR mode, Apple VideoToolbox hardware presets, improved QSV support, drag and drop support for video scanning, and various other changes. See the github releases page for details.

HandBrake 1.7.0 Dark Mode

HandBrake provides official Linux package through .flatpak package (see link above). It’s can be installed in most Linux, however, run in sandbox.

Install HandBrake (1.8.0 Updated) in Ubuntu via PPA

For those prefer Ubuntu PPA, I’ve uploaded the new release package into this unofficial PPA with all current Ubuntu releases, on amd64 (Intel/AMD) and arm64 (Apple Silicon, Raspberry Pi) CPUs support.

Thanks to the official guide, the new package in PPA is built with the latest run-time libraries (e.g., FFmpeg 7.0, libdvdnav & libdvdread, SVT-AV1 1.7.0) into single bundle. Meaning, it can be installed on old Ubuntu releases (22.04), without worrying about dependencies mis-match. Though, the .deb package size increased to be around 10 MiB.

1. First, press Ctrl+Alt+T on keyboard to open terminal. When it opens, run command to add the PPA:

sudo add-apt-repository ppa:ubuntuhandbook1/handbrake

Type user password (no asterisk feedback) when it asks and hit Enter to continue.

2. Linux Mint users need to manually update the system package cache, after adding PPA, by running command:

sudo apt update

3. Finally, install the new HandBrake package via command:

sudo apt install handbrake

For choice, you may also run sudo apt install handbrake-cli to install the command line tool

When installation done, search for and launch the video transcoder from either start/application menu or ‘Activities’ overview depends on your desktop environment.

Uninstall:

To uninstall the Ubuntu PPA, either open terminal (Ctrl+Alt+T) and run command:

sudo add-apt-repository --remove ppa:ubuntuhandbook1/handbrake

or, just remove the source line using ‘Software & Updates’ tool under “Other Software” tab.

To remove the HandBrake video transcoder, use command:

sudo apt remove --autoremove handbrake handbrake-cli

That’s all. Enjoy!

Shotwell updated to 0.32.3 with Some Fixes

Last updated: November 18, 2023 — 1 Comment

Shotwell photo viewer and organizer released new 0.32.3 version a day ago with minor updates.

The release came with some bug-fixes and minor changes, they include:

  • Fix asking twice on closing viewer with modified image
  • Do not try to reload photo on shutdown
  • Do not abort if new thumbnail size does not exist
  • Open fullscreen windows on correct monitor
  • Do not show toolbar if mouse is on another monitor
  • Do not leak zoom buffers
  • Remove length limit for GPhoto import
  • Be more robust against invalid UTF-8 filenames
  • Drop some old work-arounds

As well, there’s new/updated translations included in this release. They include: id.po, courtesy of Andika Triwidada; eu.po, courtesy of Asier Sarasua Garmendia; hu.po, courtesy of Balázs Úr; sl.po, courtesy of Martin Srebotnjak.

How to Install Shotwell 0.32.3 in Ubuntu

Shotwell is available to install in Ubuntu via a few different ways.

Snap package

Canonical (the company behind Ubuntu) maintains Shotwell as Snap package, which runs in sandbox. However, it’s stuck at 0.32.1 at the moment of writing.

The snap package is available to install in Ubuntu Software (or App Center for 23.10).

Flatpak package

Shotwell is also available to install as Flatpak package, another universal Linux package format runs in sandbox. It’s marked as maintained by the Shotwell developers, but NOT verified.

The Flatpak is at version of 0.32.2 at the moment of writing (check HERE). Ubuntu user can press Ctrl+Alt+T on keyboard to open terminal, and run 2 commands one by one to install it:

  • First, make sure the flatpak daemon is installed:
    sudo apt install flatpak
  • Then, install shotwell as flatpak:
    flatpak install https://dl.flathub.org/repo/appstream/org.gnome.Shotwell.flatpakref

Ubuntu PPA

For those who prefer the classic native .deb package format, I’ve upload the package into this unofficial PPA for Ubuntu 22.04, 23.04, and 23.10.

1. First, search for and open terminal from your system application menu, or press Ctrl+Alt+T on keyboard. When it opens, run command to add the PPA:

sudo add-apt-repository ppa:ubuntuhandbook1/shotwell

Type user password (no asterisk feedback) when it asks and hit Enter to continue.

2. Next, launch Software Updater (Update Manager), then install the updates for the software package.

Or, run command in terminal to install/upgrade the Shotwell package:

sudo apt install shotwell

NOTE: Linux Mint user may need to run sudo apt update first to refresh package cache.

Finally, either right-click on your photo images to select open with the photo manager, or search for and launch shotwell from ‘Activities’ overview and enjoy!

Uninstall Shotwell 0.32.3

For any issue, it’s recommended to purge the Ubuntu PPA. Which, will remove PPA and downgrade shotwell to the pre-installed version.

To do so, open terminal (Ctrl+Alt+T) and run command:

sudo apt install ppa-purge && sudo ppa-purge ppa:ubuntuhandbook1/shotwell

For the Snap package, just remove it from Ubuntu Software or App Center. While, Flatpak package can be removed by running the command below in a terminal window:

flatpak uninstall --delete-data org.gnome.Shotwell

For LUbuntu 22.04 users, the latest LXQt desktop 1.4.0 is available to upgrade now through the official PPA.

LXQt, the lightweight Qt desktop environment, announced the release of 1.4.0 more than a week ago. Changes in the new desktop release include:

  • lxqt-menu-data is released to replace lxmenu-data anywhere needed.
  • In file manager, user can add the command for the default terminal
  • Restore last window also restores state of split view
  • Remember password and anonymity settings of the mount dialog
  • QTerminal supports audible bell as an option
  • Image viewer has a minimal support for color spaces now.

How to Upgrade to LXQt 1.4.0 in LUbuntu 22.04

LUbuntu Team has made the new release package into this official Ubuntu PPA for current 22.04 LTS.

1. Add PPA

First, press Ctrl+Alt+T on keyboard to open terminal. When it opens, run the command below to add the official PPA:

sudo add-apt-repository ppa:lubuntu-dev/backports

Type user password (no asterisk feedback) when it asks and hit Enter to continue.

2. Update LXQt Desktop:

While adding the PPA, it should automatically refresh system package cache. So, your can then run the command below to update LXQt to v1.4.0:

sudo apt full-upgrade

NOTE: apt full-upgrade is required rather than apt upgrade, or some core libraries will be kept back.

For non-LUbuntu but Ubuntu 22.04 based systems, user can use the command below to install LXQt 1.4.0:

sudo apt install lubuntu-desktop

In case you want to restore your system later, it’s better to written down what packages it’s going to install via terminal output.

When done, restart your computer and launch “About LXQt” dialog to verify.

Uninstall LXQt 1.4.0 in LUbuntu 22.04

To restore your LUbuntu desktop, run the command below in terminal to install ppa-purge and use the tool to purge the PPA repository:

sudo apt install ppa-purge && sudo ppa-purge ppa:lubuntu-dev/backports

It will downgrade all the installed packages from the PPA to the stock versions in system repository. When done, restart your system.