Archives For November 30, 1999

Starting in Ubuntu 21.04, when user trying to open file or path via GVfs admin daemon it outputs an error and refuses to work.

This usually happens when you use “Open as Administrator” or “Edit as Administrator” to open folder or edit file via root. Or when you trying to access another user folder in system, and even using nautilus admin://, gedit admin://, or other commands in your script or console.

It usually outputs an error look like this:

GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Unix process subject does not have uid set

The issue is caused by a gvfs commit to fix flatpak app network permission requirement problem. To get rid of the error (see bug), reverting just that one commit could be a workaround.

Method 1: Install old GVfs from Ubuntu 20.10 repository:

You can download & install the gvfs .deb packages for the previous Ubuntu 20.10. And here are the links for 64-bit system:

gvfs_1.46.1-1ubuntu1_amd64.deb

gvfs-libs_1.46.1-1ubuntu1_amd64.deb

gvfs-fuse_1.46.1-1ubuntu1_amd64.deb

gvfs-daemons_1.46.1-1ubuntu1_amd64.deb

gvfs-common_1.46.1-1ubuntu1_all.deb

gvfs-backends_1.46.1-1ubuntu1_amd64.deb

Grab the 6 packages, then open terminal (Ctrl+Alt+T) and run command to install all of them:

sudo apt install ./Downloads/gvfs*.deb

Method 2: upgrade GVfs via PPA (recommend):

Upstream has fixed the issue by releasing GVfs 1.48.1. Ubuntu somehow stuck at v1.47.91 in Ubuntu 21.10 & 21.04.

Besides building from the source, I’ve uploaded it into this PPA to make life easier.

1. Open terminal either by searching from activities overview screen or by pressing Ctrl+Alt+T on keyboard. When it opens, run command to add the PPA:

sudo add-apt-repository ppa:ubuntuhandbook1/gvfs

2. Then either upgrade GVfs via “Software Updater” or run the apt command in terminal:

sudo apt install gvfs

After installing the new packages, Log out and back in to apply change.

How to Restore GVfs to stock version:

If you change mind, and want to revert it back, simply run command in terminal to purge the PPA which will downgrade the installed packages:

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

That’s all. Enjoy!

Want to get Google search suggestions in your system search results? There’s now an extension to enable the feature in Gnome Desktop.

Google Search Provider is the extension inspired by DuckDuckGo Search Provider. With it, typing any keyword in the Activities overview or ‘Show Applications’ search box will display Google search suggestions. And you can click to open the result in your favorite web browser.

How to Install the Extension in Ubuntu:

The Gnome Shell extension so far supports Gnome 3.36 & 3.38, so it should work in Ubuntu 20.04, Ubuntu 20.10, and the upcoming Ubuntu 21.04.

1.) Firstly open terminal (Ctrl+Alt+T) and run command to install the chrome-gnome-shell package if you don’t have it:

sudo apt install chrome-gnome-shell

2.) Next go to the extension web page in web browser, and turn on the toggle icon to install it.

If you don’t see the toggle icon, click the link “Click here to install browser extension” and refresh the web page afterward.

Uninstall Gnome Shell Extension

To remove the extension, either go to the web page again or use Extensions tool, which can be installed via sudo apt install gnome-shell-extension-prefs command.

Want to try out the new Gnome 40 Desktop? You can install it in Ubuntu 21.04 Hirsute Hippo via PPA.

Gnome 40 was released more than a week ago with new features including new design for the overview screen, a horizontal workspace switcher, Dock at the bottom, new gestures, and more.

While Ubuntu 21.04 includes Gnome 3.38.x with some Gnome 40 core applications, you can get the new desktop environment via this third-party PPA.

WARNING: GNOME 40 is not yet officially supported in Ubuntu 21.04. The PPA packages is just for testing purpose! Use it at your own risk!

1.) Firstly open terminal by pressing Ctrl+Alt+T on keyboard. When it opens, run command to add the PPA:

sudo add-apt-repository ppa:shemgp/gnome-40

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

2.) After adding the PPA, run command to upgrade the mutter window manager:

sudo apt install mutter

You can follow the command in the PPA description, which adds the package version in the code. It however just works with the package name only.

3.) Then install Gnome Shell 40 via command:

sudo apt install gnome-shell

4.) As the default Yaru theme is not updated for Gnome 40, you have to install and use Gnome Session instead of the Ubuntu Session. To install it, run command:

sudo apt install gnome-session

5.) And run command for the rest packages:

sudo apt upgrade

Finally reboot your machine. When you’re in login screen, DO SELECT “Gnome” or “Gnome on Xorg” before logging in. To do so, select your user and then click the gear button in the bottom-right and select Gnome in popup menu.

How to Uninstall Gnome 40:

To remove the new Gnome Desktop and revert back to the original v3.38.x, run command to purge the Ubuntu PPA:

sudo apt install ppa-purge && sudo ppa-purge ppa:shemgp/gnome-40

And if you no longer use the Gnome Session from login screen, remove it via command:

sudo apt remove gnome-session

Prefer the light mode appearance? Here’s how to change the system tray menu, date & time menu, notifications, and other top panel drop-down menus from dark to light in Ubuntu 21.04.

Different to previous Ubuntu releases, Ubuntu 21.04 now has top-panel menus in dark mode. It’s good for those prefer the dark themes. However, light mode fans need to change the Gnome Shell theme to get better experience.

Before:

After:

1. Install User Themes Extension:

To get started, you have to first install the User Themes Gnome Shell extension, which enables ability to change the Gnome Shell Theme.

Method 1: Install the extension via single command:

Press Ctrl+Alt+T on keyboard to bring up a terminal window and run the command below will install a dozen of extensions, including User Themes, in Ubuntu:

sudo apt install gnome-shell-extensions

Once installed, log out and back in.

Method 2: Install the extension from extensions.gnome.org:

For clean freak just need the single extension, firstly install chrome-gnome-shell package via command:

sudo apt install chrome-gnome-shell

Then click to go to the extension web page and turn on the toggle icon to install the extension.

Don’t see the toggle icon? Click ‘Click here to install browser extension’ to install browser extension, and then refresh the web page.

2. Change Gnome Shell Theme:

After installed User Themes extension, launch Gnome Tweaks (install it from Ubuntu Software) and go to Extensions tab.

There scroll down, find out and turn on the extension, click the gear button to get into settings. And finally select Yaru-light or gnome classic for even light top panel.

That’s it. Enjoy!

GIMP extra color palettes

Before the next major GIMP 3.0, a new maintenance update for the 2.10 series GIMP 2.10.24 now is available to install.

Though it’s not officially announced at the moment of writing, GIMP has provided the 2.10.24 source tarball & Windows exe for downloading in its website.

And both the Flathub repository and unofficial Ubuntu PPA have updated the packages for the new release.

What’s new in GIMP 2.10.24 according to the release note:

  • Off-canvas point snapping
  • GeoTIFF metadata support (georeferencing information embedded within a TIFF file used by map makers)
  • Many improvements in the metadata viewer and editor
  • Many file format supports improved: HEIF, PSP, TIFF, JPEG, PNG, PDF, DDS, BMP, PSD
  • New “Negative Darkroom” operation to simulate enlargement prints from scans of photographic negatives.
  • The RAW image import now handles darktable 3.6 and over
  • New Kabyle translation

How to Install GIMP 2.10.24 in Ubuntu:

Method 1: Install GIMP via the universal flatpak package:

If you’re OK with the flatpak package which runs in sandbox, open terminal and run following commands one by one to install it:

1. Firstly add PPA for updated Flatpak package (required for Ubuntu 18.04 only):

sudo add-apt-repository ppa:alexlarsson/flatpak && sudo apt update

2. Install flatpak daemon if you don’t have it:

sudo apt install flatpak

3. Add flathub repository which hosts the software packages:

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

4. Finally install GIMP flatpak package via command:

flatpak install flathub org.gimp.GIMP

NOTE: as flatpak runs in sandbox, it takes much more disk space for run-time libraries.

5. (Optional) If you want to remove the package, run command:

flatpak uninstall org.gimp.GIMP

Method 2: install GIMP via Ubuntu PPA:

For those prefer the classic .deb packages, the unofficial PPA has made the new release packages for Ubuntu 20.04, Ubuntu 20.10, and Ubuntu 21.04.

Due to compile issue, the package for Ubuntu 18.04 is stuck at v2.10.22 at the moment.

1.) Open terminal from system application launcher. When it opens, run command to add the PPA:

sudo add-apt-repository ppa:ubuntuhandbook1/gimp

Type user password (no asterisk feedback) for sudo prompts and hit Enter to continue.

2.) If an old version of GIMP .deb package was installed, upgrade it via Software Updater (Update Manager) utility.

or run apt commands in terminal to install GIMP:

sudo apt install gimp

If you’re going to upgrade the image editor from command line, I’d recommend to RUN this command instead, so to also install the updated dependency libraries.

sudo apt upgrade

3.) (Optional) To restore GIMP to the stock version in main Ubuntu repository, run command to purge the PPA:

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

Want to automatically set the background & lock screen wallpaper once per day to Microsoft Bing image of the day? It’s easy to do this in Ubuntu via an Extension.

For Ubuntu 18.04, Ubuntu 20.04, Ubuntu 20.10, and all other Linux with Gnome Desktop, a lightweight Gnome Shell Extension “Bing Wallpaper” make it possible to set Microsoft Bing image as background and/or lock screen wallpaper.

The extension downloads Bing image and refreshes your wallpaper once per day. By providing system tray indicator menu, you can copy image to clipboard and change the extension preferences.

How to Install Bing Wallpaper Extension:

1.) Firstly open terminal (Ctrl+Alt+T) and run command to install the chrome-gnome-shell package, which will add Gnome Shell extensions integration for web browsers, if you don’t have it.

sudo apt install chrome-gnome-shell

2.) Then go to the extension web page, turn on the toggle icon to install it.

Don’t see the toggle icon? Follow the link to install the browser extension and refresh the web page.

Once installed the extension, an indicator applet should appear in the top-right corner. You can either click “Refresh Now” or wait till it refreshes wallpaper automatically.

For Bing locale, download folder, screen resolution, and other settings, just go to indicator menu ‘Settings’ option.

Uninstall the Exension:

To remove the extension, either turn off the toggle icon in the previous link page, or use Extensions tool (install it via sudo apt install gnome-shell-extension-prefs command).

The Audacity audio editor 3.0.0 was released a week ago as the new major release. Here’s how to install it in Ubuntu / Linux Mint via Flatpak package.

Audacity 3.0.0 features new all-in-one-file aup3 project file format, improved ‘Noise Gate’ effect, new ‘Label Sounds’ analyzer, and over 160 bug-fixes.

According to the Privacy Notice, Audacity may COLLECT personal data necessary for law enforcement, litigation and authorities. And it dissuade those under 13 years old from using the App.

It is incompatible with the GPL license. USE IT AT YOUR OWN RISK!

Why Flatpak?

Ubuntu PPA has updated via the 3.0.x built against wxWidgets 3.1.3. As well, you can install the Snap package from Ubuntu Software.

The distribution’s build and Ubuntu PPAs are mostly “incorrectly built packages” as they are built against the wrong wxWidgets (3.0.x), however Audacity 3.0.0 requires wxWidgets 3.1.3.

Though I’m not a fan of the containerized Flatpak package, it’s so far the only ‘correctly’ build binary package since the Snap is still under testing.

Install Audacity 3.0.0 via Flatpak:

Firstly open terminal from system app launcher. When it opens, run following commands one by one.

1.) For Ubuntu 18.04, add the PPA for updated version of Flatpak framework:

sudo add-apt-repository ppa:alexlarsson/flatpak && sudo apt update

2.) Install flatpak via command:

sudo apt install flatpak

3.) Add flathub repository that hosts the software packages:

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

4.) Finally install Audacity flatpak package:

flatpak install flathub org.audacityteam.Audacity

The flatpak package won’t replace the classic deb package. If you have more than one app icon in launcher, either remove Audacity installed via apt, or launch Audacity Flatpak via command in terminal:

flatpak run org.audacityteam.Audacity

Remove Audacity Flatpak package:

To remove the software installed via flatpak, simply run command:

flatpak uninstall org.audacityteam.Audacity

Want to install the ClipGrab YouTube video downloader via classic deb package? Here’s a PPA available for Ubuntu 20.04, Ubuntu 20.10, and Linux Mint 20.

ClipGrab is a free and open-source downloading and converting application for YouTube, Vimeo, Facebook, and many other video sites.

Thanks to Youtube-DL and Qt framework, it provides a simple UI with ability to search videos via keywords. By clicking a video from the search result, it automatically inputs the video URL to “Downloads” tab.

You can also copy & paste the video URL directly from YouTube web page, and then select downloads format, MPEG4, MP3, etc, and choose the quality.

Finally click on “Grab this clip!” to start downloading process.

Install ClipGrab via Ubuntu PPA:

The software offers official Linux binary via non-install Appimage package in its website.

If you prefer the classic .deb package with better integration, the “xtradeb packaging” team maintains the software package in an unofficial PPA, which so far supports for Ubuntu 20.04 and Ubuntu 20.10.

1.) Open terminal from system app launcher. When it opens, run command to add the PPA:

sudo add-apt-repository ppa:xtradeb/apps

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

2.) After adding the PPA, run command to install the tool:

sudo apt install clipgrab

And it will install the most recent YouTube-DL package, if you don’t have it or have an older version, from the PPA repository.

Uninstall ClipGrab:

To remove the Ubuntu PPA, either go to Software & Updates -> Other Software or run command in terminal:

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

To remove the video downloader software, run command:

sudo apt remove --auto-remove clipgrab

Kid3 audio tag editor 3.8.6 was released a few days ago with new features and important bug-fixes. PPA has updated for Ubuntu 18.04, Ubuntu 20.04, and Ubuntu 20.10.

Kid3 3.8.6 adds support for building with Qt 6. And it now provides a nicer default style for Windows users.

The new release features:

  • adds sub tracks support in Discogs import
  • Integration test for Amazon import
  • Removed TrackType.org import.
  • Fix crash when using id3lib in 64-bit Windows.

How to Install Kid3 3.8.6 in Ubuntu via PPA:

The official Kid3 PPA has made the new packages for Ubuntu 18.04, Ubuntu 20.04, Ubuntu 20.10, and Linux Mint 20.

1. Open terminal either from application launcher or by pressing Ctrl+Alt+T on keyboard. When it opens, run command to add the PPA:

sudo add-apt-repository ppa:ufleisch/kid3

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

2. If an old version was installed, upgrade Kid3 using Software Updater:

upgrade kid3 via software updater

or run commands one by one in terminal to install or upgrade to the latest tag editor:

sudo apt update

sudo apt install kid3-qt

You may replace kid3-qt with kid3 in the code for KDE integration, and/or with kid3-cli for the command-line interface.

Uninstall

To remove the PPA repository, either open Software & Updates -> Other Software tab and remove the relevant line, or run command:

sudo add-apt-repository --remove ppa:ufleisch/kid3

To remove the audio tag editor, either use your system package manager or run command:

sudo apt remove --auto-remove kid3 kid3-*

Oracle Java 16 was announced as a short release with 6-month support. Here’s how to install it in Ubuntu 14.04, Ubuntu 16.04, Ubuntu 18.04, Ubuntu 20.04, Ubuntu 20.10 via PPA.

UPDATE: Oracle Java 17 has been released as the new LTS (Long Term Support Release). This tutorial also works for the new release!

New features in the release include:

  • Vector API (Incubator)
  • Enable C++14 Language Features
  • Migrate from Mercurial to Git
  • Migrate to GitHub
  • ZGC: Concurrent Thread-Stack Processing
  • Unix-Domain Socket Channels
  • Alpine Linux Port
  • Elastic Metaspace
  • Windows/AArch64 Port
  • Foreign Linker API (Incubator)
  • Warnings for Value-Based Classes
  • Packaging Tool
  • Foreign-Memory Access API (Third Incubator)
  • Pattern Matching for instanceof
  • Records
  • Strongly Encapsulate JDK Internals by Default
  • Sealed Classes (Second Preview)

The “Linux Uprising” team ppa has made the installer script, which automatically downloads and installs Oracle JDK 16 package, and sets Java 16 as the default Java version (setting JAVA_HOME, etc.) on 64-bit Ubuntu based system.

1.) Open terminal and run command to add the PPA:

sudo add-apt-repository ppa:linuxuprising/java

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

2.) After adding PPA, refresh system package cache and install the script:

sudo apt update

sudo apt install oracle-java16-installer

For Java JDK 17, replace the package name so the command will be:

udo apt install oracle-java17-installer

Once the package is installed, you have to accept the license (press Tab to highlight) before starting the download process.

And after installed Oracle Java 16, check via java --version command:

(Optional) To uninstall the PPA repository, run command in terminal:

sudo add-apt-repository --remove ppa:linuxuprising/java

And remove Oracle Java 16 if you want by running command:

sudo apt-get remove oracle-java16-installer