Nautilus-Share-Message: Called “net usershare info” but it failed: Failed to execute child process “net” (No such file or directory)

On Ubuntu 20.04.01 LTS, I got the following message while launching GNOME file browser Nautilus from the command line:

Nautilus-Share-Message: Called “net usershare info” but it failed: Failed to execute child process “net” (No such file or directory)


apt-file search /bin/net | grep -w 'net$'

The utility net is provided by the samba-common-bin Ubuntu package.

To install it:


apt install samba-common-bin

After installing this package, the error no longer pops up.

The LibreOffice built-in help for current UI language (English (USA)) is not installed on your computer

If you’re using LibreOffice 6.3.5.2 on Ubuntu 19.10, the built-in help is not available by default within the whole application.
In Ubuntu, the built-in help documentation has its dedicated package.
For the English USA language:


apt info libreoffice-help-en-us
Package: libreoffice-help-en-us
Version: 1:6.3.5-0ubuntu0.19.10.1
Priority: optional
Section: doc
Source: libreoffice
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian LibreOffice Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 19.8 MB
Provides: libreoffice-help (= 6.3)
Depends: libreoffice-common (= 1:6.3.5-0ubuntu0.19.10.1), libreoffice-l10n-en-us, libreoffice-help-common (= 1:6.3.5-0ubuntu0.19.10.1)
Recommends: libreoffice-core (>> 1:6.3.5)
Replaces: libreoffice-help-common (<< 1:6.1.0~beta1)
Homepage: http://www.libreoffice.org
Task: ubuntu-desktop-default-languages, lubuntu-live, ubuntu-mate-live, ubuntu-budgie-live
Supported: 9m
Download-Size: 1,371 kB
APT-Sources: http://ca.archive.ubuntu.com/ubuntu eoan-updates/main amd64 Packages
Description: office productivity suite -- English_american help
LibreOffice is a full-featured office productivity suite that provides a
near drop-in replacement for Microsoft(R) Office.
.
This package contains the help of LibreOffice in English_american.

To install it:


apt install libreoffice-help-en-us

The package libreoffice-help-common will also be installed as a required dependency.

QGtkStyle could not resolve GTK. Make sure you have installed the proper libraries.

While using keepassx version 2.0.3 on my GNOME desktop, I got the following error message:

QGtkStyle could not resolve GTK. Make sure you have installed the proper libraries.

Here are some details about the Linux distribution used:


cat /etc/os-release


NAME="Ubuntu"
VERSION="19.10 (Eoan Ermine)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 19.10"
VERSION_ID="19.10"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=eoan
UBUNTU_CODENAME=eoan

Tested suggestions:

https://github.com/ilastik/ilastik/issues/1768

In the current shell and in the .bashrc file:


export QT_STYLE_OVERRIDE=gtk2

Still the same error

Here is my working solution working within the Ubuntu GNOME desktop:


keepassx -v
2.0.3

Archlinux wiki provides interesting details about QGtkAStyle:

https://wiki.archlinux.org/index.php/Uniform_look_for_Qt_and_GTK_applications#QGtkStyle

Looking up all the files available in their package qt5-styleplugins:

https://www.archlinux.org/packages/community/x86_64/qt5-styleplugins/

Back to Ubuntu Linux distribution

With the help of the apt-file utility, the Ubuntu related package can be found with the provided filename:


apt-file search libqgtk2.so


qt5-gtk2-platformtheme: /usr/lib/x86_64-linux-gnu/qt5/plugins/platformthemes/libqgtk2.so
qt5-gtk2-platformtheme: /usr/lib/x86_64-linux-gnu/qt5/plugins/styles/libqgtk2style.so

More details about the package qt5-gtk2-platformtheme:


Package: qt5-gtk2-platformtheme
Version: 5.0.0+git23.g335dbec-3ubuntu1
Priority: optional
Section: universe/libs
Source: qtstyleplugins-src
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Qt/KDE Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 626 kB
Depends: libc6 (>= 2.14), libgdk-pixbuf2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.12.0), libgtk2.0-0 (>= 2.24.0), libpango-1.0-0 (>= 1.14.0), libqt5core5a (>= 5.12.2), libqt5dbus5 (>= 5.0.2), libqt5gui5 (>= 5.10.0) | libqt5gui5-gles (>= 5.10.0), libqt5widgets5 (>= 5.10.0), libstdc++6 (>= 5), libx11-6, qtbase-abi-5-12-4
Breaks: libqt5libqgtk2 (<< 5.7), qt5-style-platform-gtk2 (<< 5.0.0+git23.g335dbec-3~), qt5-style-plugin-gtk2 (<< 5.0.0+git23.g335dbec-3~), qt5-style-plugins (<< 5.0.0+git23.g335dbec-3~)
Replaces: libqt5libqgtk2 (<< 5.7), qt5-style-platform-gtk2 (<< 5.0.0+git23.g335dbec-3~), qt5-style-plugin-gtk2 (<< 5.0.0+git23.g335dbec-3~), qt5-style-plugins (<< 5.0.0+git23.g335dbec-3~)
Homepage: https://www.qt.io/
Task: ubuntustudio-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop
Download-Size: 164 kB
APT-Sources: http://ca.archive.ubuntu.com/ubuntu eoan/universe amd64 Packages
Description: Qt 5 extra widget styles - GTK+ 2 Platform theme
Qt is a cross-platform C++ application framework. Qt's primary feature
is its rich set of widgets that provide standard GUI functionality.
.
This package contains the GTK+ 2 style and platform theme. Export
QT_QPA_PLATFORMTHEME=gtk2 to enable it for all Qt applications.

Then installing it:


apt install qt5-gtk2-platformtheme

Let’s try using keepassx again.
A new error message pop up:

Failed to load module “canberra-gtk-module”

Same process as above to search for the Ubuntu package that will install the missing file.


apt-file search canberra-gtk-module


libcanberra-gtk-module: /usr/lib/gnome-settings-daemon-3.0/gtk-modules/canberra-gtk-module.desktop
libcanberra-gtk-module: /usr/lib/x86_64-linux-gnu/gtk-2.0/modules/libcanberra-gtk-module.so
libcanberra-gtk-module: /usr/share/doc/libcanberra-gtk-module/changelog.Debian.gz
libcanberra-gtk-module: /usr/share/doc/libcanberra-gtk-module/copyright
libcanberra-gtk3-module: /usr/lib/x86_64-linux-gnu/gtk-3.0/modules/libcanberra-gtk-module.so

apt-cache info libcanberra-gtk-module

Package: libcanberra-gtk-module
Version: 0.30-7ubuntu1
Priority: optional
Section: universe/libs
Source: libcanberra
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian GNOME Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 51.2 kB
Depends: libc6 (>= 2.4), libcanberra-gtk0 (>= 0.2), libglib2.0-0 (>= 2.12.0), libgtk2.0-0 (>= 2.24.5-4), libx11-6
Homepage: http://0pointer.de/lennart/projects/libcanberra/
Task: ubuntu-mate-core, ubuntu-mate-desktop
Download-Size: 9,904 B
APT-Sources: http://ca.archive.ubuntu.com/ubuntu eoan/universe amd64 Packages
Description: translates GTK+ widgets signals to event sounds
A GtkModule which will automatically hook into all kinds of events
inside a GTK+ program and generate sound events from them.

Installing the requested package libcanberra-gtk-module

apt install libcanberra-gtk-module

Problem solved. Keepassx can now open any password file without error or warning message.

Setting up a desktop notification in Ubuntu after login

The following actions have been tested successfully on Ubuntu 19.04

Setting a desktop notification in Ubuntu after login requires creating a Desktop application following the Freedesktop specifications.
All such applications run as a user must be located in $HOME/.config/autostart

The autostart folder may not exist.
If not :

mkdir -p $HOME/.config/autostart

As an example, this desktop application will be named welcome.desktop

Create this file as follows :


touch $HOME/.config/autostart/welcome.desktop

Add the following lines in it :

cat welcome.desktop

[Desktop Entry]
Type=Application
Exec=/home/$USERNAME/Tools/
welcome_msg.sh
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=myscript
Comment=Startup Script

Create the bash script welcome_msg.sh that will display the notification message :

cat welcome_msg.sh

#!/usr/bin/env bash

notify-send “Good morning ${USERNAME^} !” “Did you check your backups ?”

Make sure that the Exec field in your welcome.desktop file points to your script.

Reboot your Ubuntu machine and log in. Your custom desktop notification will be displayed !

Further readings :

https://cloudkul.com/blog/display-notification-login-ubuntu/

XDG autostart specification

Different ways of autostarting applications in Linux

Desktop Application Autostart Specification

Enabling zenity notifications using cron

Making zenity notifications available using cron as a user is a bit tricky.

Here is the workaround to add to your scripts to make desktop notifications available.


DBUS=$(pgrep -ou $(whoami) mate)
DBUS="$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$DBUS/environ | sed 's/DBUS_SESSION_BUS_ADDRESS=//')"

# Write a notification function
function Notif {
DBUS_SESSION_BUS_ADDRESS="$DBUS" zenity --notification --text="$1" --display=:0
}

# Test this notification function
Notif "your message"

Set up a cron job to test your function using crontab -e and let’s see the magic

Realtek wifi card rtl8723de not detected on Debian Stretch

The HP Pavilion 15-cc507nf notebook comes up with a wifi adapter Realtek rtl8723de not detected after a fresh install of Debian Stretch.
Realtek firmwares are provided by the firmware-realtek package.

After enabling the Stretch-backports, a newer kernel version is available 4.18.0.0 and a newer version of the Firmware-realtek in Stretch backports

This one contains the wifi firmware for rtl8723de : Realtek RTL8723DE firmware (rtlwifi/rtl8723defw.bin)

Just install them and make sure to boot on this latest kernel version. The integrated wifi card is now available for configuration and for use.

XDG: configuration directory ‘/home/fool/.config/newsbeuter’ not accessible, using ‘/home/fool/.newsbeuter’ instead.

On Debian Jessie, I get this error while launching newsbeuter :

“XDG: configuration directory ‘/home/fool/.config/newsbeuter’ not accessible, using ‘/home/fool/.newsbeuter’ instead.”

XDG stands for X Desktop Group and now known as the freedesktop.org project.
More details about XDG

To fix it, here is the workaround :

fool@localhost:~$ cd /home/fool/.config/
fool@localhost:~$ ln -s ~/.newsbeuter/ newsbeuter

Once done, you might have another similar error :

“XDG: data directory ‘/home/fool/.local/share/newsbeuter’ not accessible, using ‘/home/fool/.newsbeuter’ instead.”

To fix it, here is the workaround :

fool@localhost:~$ cd /home/fool/.local/share/
fool@localhost:~$ ln -s ~/.newsbeuter/ newsbeuter

Hope this helps !

Unblocking Bluetooth on Debian

If you find yourself with Bluetooth blocked or disabled, use the rfkill command to reset the Bluetooth fonctionality.
rfkill package must be installed on your system to run the following commands below :

rfkill list
0: hp-wifi: Wireless LAN
Soft blocked: yes
Hard blocked: no
1: hp-bluetooth: Bluetooth
Soft blocked: yes
Hard blocked: no
2: phy0: Wireless LAN
Soft blocked: yes
Hard blocked: no

rfkill unblock 1

rfkill list
0: hp-wifi: Wireless LAN
Soft blocked: no
Hard blocked: no
1: hp-bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no
2: phy0: Wireless LAN
Soft blocked: yes
Hard blocked: no
3: hci0: Bluetooth
Soft blocked: yes
Hard blocked: no

As a precaution, restart the Bluetooth service as follows :

service bluetooth restart
[ ok ] Stopping bluetooth: rfcomm /usr/sbin/bluetoothd.
[ ok ] Starting bluetooth: bluetoothd rfcomm.

Thanks for this tip here: Cannot enable Bluetooth anymore