How to sort and rename files in Python on Linux and use tesseract OCR to extract text to a file

In order to convert a series of images with text as an image in them to text files, the best tool is tesseract. It is quite old, but very reliable when it comes to looking for and extracting text from images. After saving some screen shots as jpg files, it was found their names contained … Continue reading How to sort and rename files in Python on Linux and use tesseract OCR to extract text to a file

How to get dark theme in Geany Code Editor on LinuxMint, Debian, Xubuntu Linux

Even though a dark theme is chosen for the desktop in XFCE, geany will display it's toolbars and window elements in dark mode, but the code displays with a white background. To make it a dark background, go to Edit -> Preferences -> Editor -> Display and check the box that says "Invert syntax highlighting … Continue reading How to get dark theme in Geany Code Editor on LinuxMint, Debian, Xubuntu Linux

How to debug “There was a system error retrieving the price quotes” in Gnucash Finance::Quotes on Linux

There was a system error retrieving the price quotes. This error is a debugging nightmare as it is not specific, gives no clue as to where the error lies and there is no easy debugging mechanism to find out what went wrong. Nonetheless, all is not lost. In order to debug the problem, open a … Continue reading How to debug “There was a system error retrieving the price quotes” in Gnucash Finance::Quotes on Linux

Things to do after installation of Debian 12 (Bookworm)

Finally, I managed to install Debian 12 XFCE, also known as, Bookworm on my laptop and found that though it installed and booted successfully, it needed some issues to be resolved and some additional activities to be done. These are all listed below with links to the relevant posts. Assign sudo rights to a normal … Continue reading Things to do after installation of Debian 12 (Bookworm)

How to enable missing bluetooth icon in system tray in Debian

After installation of Debian 12, it appears that bluetooth is not working. However, all the services related to bluetooth on the computer are running, but the bluetooth icon does not appear in the system tray. To enable the bluetooth icon, install the blueman package. To do so, open a terminal window and enter the following … Continue reading How to enable missing bluetooth icon in system tray in Debian

How to query GTK3 theme currently in use on Linux, enable dark mode and display missing icons in Gnucash

To view the current GTK3 theme in use on the XFCE desktop environment that is pre-installed in distributions like Linux Mint or Xubuntu or Debian, open a terminal window and enter the following command: $ gtk-query-settings theme <enter> Upon enter, it displays the following: gtk-theme-name: "Mint-Y-Dark-Orange" gtk-icon-theme-name: "Mint-Y-Dark-Orange" ! gtk-fallback-icon-theme: NULL gtk-key-theme-name: NULL gtk-cursor-theme-name: "Bibata-Modern-Ice" … Continue reading How to query GTK3 theme currently in use on Linux, enable dark mode and display missing icons in Gnucash

How to install ttf-mscorefonts-installer on Linux Mint or Debian

Do not install the package ttf-mscorefonts-installer using like Software Center or Synaptic on Linux Mint 21. It does not work because the user licence has to be accepted. To install the package, open a terminal window and enter: $ sudo apt-get install ttf-mscorefonts-installer <enter> The above command will also work on Debian 12.

How to install masscode code snippets manager on Linux Mint

masscode is one of the best code snippets managers out there. It works on multiple platforms and devices. However, it is only available as a snap package for Linux. To install it on a Linux Mint system where snap packages are disabled by default requires snap packages to be enabled. Therefore, enable snap packages on … Continue reading How to install masscode code snippets manager on Linux Mint

How to install Snap packages on Linux Mint 21

Installing Snap Packages on Linux Mint 21 is not as straightforward. If the snap package is installed without doing the steps below, it throws an error as below: package snapd has no installation candidate. However, snap can still be enabled, and snap packages installed on it. To install snap, open a terminal window and enter … Continue reading How to install Snap packages on Linux Mint 21

How to fix error the following packages have been held back in Linux Mint or Ubuntu Linux

When updating packages in Linux Mint 21 or Ubuntu 22.04 LTS, at times, a message appears, as shown below, that states the following packages have been held back.$ sudo apt-get dist-upgrade <enter> Reading package lists… DoneBuilding dependency tree… DoneReading state information… DoneCalculating upgrade… DoneThe following packages have been kept back:cryptsetup cryptsetup-bin cryptsetup-initramfs libcryptsetup120 upgraded, 0 … Continue reading How to fix error the following packages have been held back in Linux Mint or Ubuntu Linux