Archives For November 30, 1999

HPLIP, the HP developed Linux driver for HP printers and Scanners, released version 3.23.5 this Monday!

The new release features many new HP devices support. They are:

  • HP Color LaserJet Enterprise 6700dn / 6700
  • HP Color LaserJet Enterprise 6701dn / 6701
  • HP Color LaserJet Enterprise X654dn / X654
  • HP Color LaserJet Enterprise X65455dn / X65465dn
  • HP Color LaserJet Enterprise X654 65 PPM
  • HP Color LaserJet Enterprise X654 55 to 65ppm License
  • HP Color LaserJet Enterprise X654 Down License
  • HP Color LaserJet Enterprise MFP 6800dn
  • HP Color LaserJet Enterprise Flow MFP 6800zf / 6800zfsw / 6800zfw+
  • HP Color LaserJet Enterprise MFP 6800 / 6801 / 6801 zfsw
  • HP Color LaserJet Enterprise Flow MFP 6801zfw+
  • HP Color LaserJet Enterprise MFP X677 55 to 65ppm License
  • HP Color LaserJet Enterprise MFP X677 65ppm
  • HP Color LaserJet Enterprise Flow MFP X677z
  • HP Color LaserJet Enterprise MFP X67765dn / X67755dn
  • HP Color LaserJet Enterprise Flow MFP X67765zs / X67765z+
  • HP Color LaserJet Enterprise MFP X677 / X677s
  • HP Color LaserJet Enterprise Flow MFP X67755zs / X67755z+
  • HP Color LaserJet Enterprise MFP X677dn
  • HP Color LaserJet Enterprise Flow MFP X677zs / X677z+
  • HP Color LaserJet Enterprise 5700dn / 5700
  • HP Color LaserJet Enterprise X55745dn / X55745
  • HP Color LaserJet Enterprise MFP 5800dn / 5800f / 5800
  • HP Color LaserJet Enterprise Flow MFP 5800zf
  • HP Color LaserJet Enterprise MFP X57945 / X57945dn
  • HP Color LaserJet Enterprise Flow MFP X57945zs / X57945z

How to Install HPLIP 3.23.5 in Ubuntu Linux

HPLIP offers official .run installer available to download at the link below:

Once you downloaded the file, right-click on blank area in ‘Downloads’ folder and select “Open in Terminal”.

When terminal opens, run the commands below one by one:

  • Add executable permission for the file:
    chmod u+x hplip-3.23.5.run
  • Run the file, follow the on-screen prompt and answer some questions:
    ./hplip-3.23.5.run

Until the command done without errors, you can plug or re-plug your HP printer for the new driver to work.

NOTE: The .run installer so far does not support Ubuntu 23.04! But, after running the previous commands, it generated the source folder in user ‘Downloads’ folder. Right-click on that folder and select ‘Open in Terminal’, then 23.04 user can run the commands below one by one to build from source:

Install build dependencies:

sudo apt install --assume-yes libcups2-dev libdbus-1-dev build-essential ghostscript openssl libjpeg-dev libsnmp-dev libtool-bin libusb-1.0-0-dev wget python3-pil policykit-1 policykit-1-gnome python3-pyqt5 python3-dbus.mainloop.pyqt5 python-gi-dev python3-dev python3-notify2 python3 python3-reportlab libsane-dev xsane libavahi-client-dev libavahi-core-dev avahi-utils

Configure, make & install:

./configure --prefix=/usr --enable-qt5 --disable-qt4
make -j4
sudo make install

Uninstall HPLIP 3.23.5

As mentioned above, running the installer will create a source folder in user ‘Downloads’ folder.

Right-click on that folder and select “Open in Terminal”. Then run the uninstall script in pop-up terminal window to remove HPLIP:

sudo ./uninstall.py

The KeePass password manager now is at version 2.55. Here are the new features and PPA repository for all current Ubuntu releases.

KeePass 2.54 now uses the enforced configuration file for the triggers, global URL overrides, password generator profiles and a few more settings. See more about enforced configuration.

As well, there’s now new ‘Enforced Options’ dialog for storing certain options in the enforced configuration file. User can open it by going to menu 'Tools' -> 'Advanced Tools' -> 'Enforce Options'.

The ‘Print’ and ‘Export’ command in most report dialogs now requires the ‘Print’ application policy and ‘Export’ application policy flag, and the master key must be entered.

Other changes in KeePass 2.54 include:

  • Hide passwords and other sensitive data by default in report dialogs.
  • Support hiding the value via asterisk in single line edit dialogs
  • Like on Windows, commands that require elevation now have a shield icon in Linux/macOS.
  • add ‘Move Selected Unused Text to Dialog Control’ command.
  • Redesign export confirm dialog.
  • Disable the clipboard workarounds by default in Linux, macOS, etc.
  • Various other improvements.

How to Install KeePass 2.55 (updated) in Ubuntu via PPA

Besides building from source code, I’ve uploaded the package into this unofficial PPA for Ubuntu 18.04, Ubuntu 20.04, Ubuntu 22.04, Ubuntu 23.10, Ubuntu 23.04 and their derivatives.

NOTE: Thanks to @AnonTester, there should be no longer “invalid data format” pop-up in every app launch. Because, I’ve made small script to sync the version number between KeePass.exe and KeePass.exe.config files during the building process.

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

sudo add-apt-repository ppa:ubuntuhandbook1/keepass2

2. For old Ubuntu 18.04 & Linux Mint, you need to manually refresh package cache though it’s done automatically in Ubuntu 20.04+:

sudo apt update

3. Finally, either run the apt command below to install the package:

sudo apt install keepass2

Or use Software Updater (Update Manager) to update the package if an old version was installed on your system.

Uninstall:

To remove the software package, also open terminal (Ctrl+Alt+T) and run command:

sudo apt remove --autoremove keepass2

And, remove the PPA, either by going to “Software & Updates -> Other Software” and remove the source line, or run the command below in terminal:

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

The free and open-source DJ mixing software, Mixxx, announced the beta version of the next major 2.4 release series a few days ago!

The new Mixxx 2.4 added support for saving loops as hotcues, and native Apple Silicon support for better performance on M1, M2, etc., devices.

The release also features explicit sync leader support, new controller mapping scripting engine (ES2016 support), new “all-shaders” scrolling waveforms for much better UI performance, new Quick Effect selector and effect chain buttons.

Other changes include:

  • background color for quick cover art preview
  • cover art fetcher to the Musicbrainz dialog
  • support exporting crates, playlists and the library to Engine Prime and Denon standalone controllers
  • Add support for m4v files
  • Add experimental QML user interface
  • Noise active effect, pitch shift effect, distortion effect.
  • Drop Ubuntu 18.04 support, add NixOS support.
  • And numerous other changes including search improvement, optimized database, history cleanup, and more and more. See this page for details.

How to Install Mixxx 2.4 Beta in Ubuntu:

Mixxx has an official Beta PPA contains the package for Ubuntu 20.04, Ubuntu 22.04, Ubuntu 23.04 and Ubuntu 23.10.

NOTE: At the moment of writing, the 2.4 Beta package in PPA is borken due to missing dependency. So, check the link above! And do the commands below when the PPA successfully updated.

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:mixxx/mixxxbetas

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

2. Then, update system package cache for Linux Mint, etc:

sudo apt update

3. Finally, install Mixxx 2.4 beta package by running command:

sudo apt install mixxx

Before the maintainer fixed the PPA package, user can compile Mixxx 2.4 Beta from the source tarball.

The Bluefish text editor just got a new bug-fix release today!

It’s Bluefish 2.2.14, that fixed crashes when deleting backup files on close, when closing some of the dialogs in flatpak app, and when the CSS language file was loaded on a 32-bit system.

Furthermore, the release fixed zencoding functionality with python3, added option to store the scope of the search dialog to the session or project which was removed in 2.2.12 release. Also, it improves the speed of the bookmarks code.

Bluefish 2.2.14

How to Install Bluefish in Ubuntu

Bluefish is available in Ubuntu repository, but always old. For the most recent releases, either use the official Flatpak package, third-party PPA, or build it from source by yourself.

Option 1: Flatpak package

Bluefish provides official package through Flatpak that works in most Linux but runs in sandbox.

Ubuntu user can press Ctrl+Alt+T on keyboard to open terminal, and run the commands below one by one to install the package:

1. First, run command to enable Flatpak support:

sudo apt install flatpak

2. Then, install Bluefish as Flatpak package:

flatpak install https://dl.flathub.org/repo/appstream/nl.openoffice.bluefish.flatpakref

At the moment of writing, the Flatpak package is still v2.2.13. You can run flatpak update nl.openoffice.bluefish to update it when the new package is published.

Option 2: Ubuntu PPA (unofficial)

As you can see in the screenshot above, the Flatpak package will install hundred MB of run-time libraries. So, this unofficial PPA is here for choice.

The PPA supports Ubuntu 18.04, Ubuntu 20.04, Ubuntu 22.04, Ubuntu 22.10, Ubuntu 23.04, and their based systems with both x86_64 and arm64/armhf CPU architecture types.

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/bluefish

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

2. For the old Ubuntu 18.04 and Linux Mint users, manually refresh the system package cache by running command:

sudo apt update

3. Finally, either run command to install the text editor:

sudo apt install bluefish

Or, open “Software Updater” and use the tool to upgrade the previous Bluefish package to the latest.

Option 3: Build Bluefish text editor from source

For those who can’t wait, it’s not hard to compile the package from source tarball. And, following steps are tested and work in my case in Ubuntu 23.04.

1. First, open terminal (Ctrl+Alt+T) and run command to install the dependency libraries:

sudo apt install gettext debhelper libenchant-2-dev libglib2.0-dev libgtk-3-dev libgucharmap-2-90-dev libpango1.0-dev libtool libxml2-dev libxml2-utils python3-dev zlib1g-dev

2. Download the source code from Bluefish website. Then, extract it. Right-click on source folder and select “Open in Terminal

3. Once terminal opens with the source folder as working directory, run the commands below one by one to build and install the text editor.

./autogen.sh
make -j4
sudo make install

Uninstall Bluefish text editor:

For the Flatpak package, open terminal and run command to remove it:

flatpak uninstall --delete-data nl.openoffice.bluefish

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

For the PPA package, remove it by running command:

sudo apt remove --autoremove bluefish

Also remove the Ubuntu PPA repository via command:

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

For bluefish built from source code, until you remove the source folder, you can navigate to that folder in terminal and run command to uninstall it:

sudo make uninstall

For Ubuntu 24.04, Ubuntu 23.10, Fedora 38 and other Linux with GNOME 44 ~ 46, there’s now an extension allows to change display name of audio output devices from the top-right aggregation menu (aka Quick Settings).

By default,  the speakers and headphones in the sound output sub-menu is a bit too explicit, that are not very clear to understand. To make the menu easy to read, you may rename them to just “headphones”, “built-in speaker”, or whatever that you want.

1. To install the extension, first open Ubuntu Software, search and install “Extension Manager”:

Install Extension Manager in Ubuntu 22.04+

For Ubuntu 23.10/24.04, press Ctrl+Alt+T on keyboard to open terminal and run the command below instead to install it:

sudo apt install gnome-shell-extension-manager

2. Then launch “Extension Manager”, navigate to ‘Browse’ tab, finally search and install the “Quick Settings Audio Devices Renamer” extension.

For Fedora and other Linux, go to this web page and use ON/OFF switch to install the extension.

3. Once installed the extension, switch back “Installed” tab in Extension Manager (or open GNOME Extensions app). Then, click open the settings for that extension, finally click on the ‘pencil’ icon to edit the name of corresponding output device.

You can even insert emojis in the name, either by using a emoji picker or copy from “Gnome Characters” app.

Want to let “Open in Terminal” context (right-click) menu option work for another terminal emulator? Here’s an extension to do the similar job for Nautilus.

When right-clicking on either a folder or blank area in file manager, there’s an “Open in Terminal” menu option to launch system default terminal with that folder as working directory.

The option in Ubuntu so far is provided by the built-in gnome-terminal package. Meaning no way to use the option for another terminal emulator. However, there’s an extension can add similar option to open terminal from in-side folder.

And not only for Gnome Terminal, the extension supports many other terminal emulators:

  • alacritty
  • blackbox
  • cool-retro-term
  • deepin-terminal
  • foot/footclient
  • guake
  • hyper
  • kermit
  • kgx (GNOME Console)
  • kitty
  • konsole
  • mate-terminal
  • mlterm
  • qterminal
  • sakura
  • st properly patched
  • tabby
  • terminator
  • terminology
  • termite
  • tilix (the package itself supports this stuff)
  • urxvt
  • urxvtc
  • wezterm
  • xfce4-terminal

The extension adds the menu option “Open XXX Here“, with XXX changes automatically according which terminal emulator is in use.

How to Install the Nautilus Extension

This tutorial is tested and works in Ubuntu 22.04, Ubuntu 24.04. It should also work in Fedora Workstation and other Linux with GNOME & Nautilus.

1. First, press Ctrl+Alt+T on keyboard to open terminal. Then run command to install git and python3-nautilus package:

sudo apt install python3-nautilus python3-pip gir1.2-gtk-4.0

2. Then, install the extension as pip package, by running command:

pip install nautilus-open-any-terminal --break-system-packages

The --break-system-packages is required for Ubuntu 24.04 due to policy change. Skip it in 22.04

3. Finally, run command to generate the dconf configuration file.

glib-compile-schemas ~/.local/share/glib-2.0/schemas/

Apply and Set your Terminal Emulator

After installed the extension, apply it by running command to quit Nautilus:

nautilus -q

Then, open “Dconf Editor” (install it from Ubuntu Software) and navigate to ‘com/github/stunkymonkey/nautilus-open-any-terminal‘. Finally, set the value of ‘terminal’ to tell which terminal emulator to use.

You can of course choose another terminal emulator by running command (replace kgx with yours terminal app):

gsettings set com.github.stunkymonkey.nautilus-open-any-terminal terminal "kgx"

Tip: You may also remove the built-in ‘Open in Terminal’ option by running command:

sudo apt remove nautilus-extension-gnome-terminal

 

Uninstall

To get rid of the context menu option, simply open terminal (Ctrl+Alt+T) and run command to uninstall the python package:

pip uninstall nautilus-open-any-terminal --break-system-packages

Skip --break-system-packages for Ubuntu 22.04, and run nautilus -q to apply changes.

This simple tutorial shows how to install brave browser via the new apt source policy in Ubuntu 24.04 & 22.04.

Due to security issue, Debian changed its policy for adding apt sources. Ubuntu is changing the rules too. Since Ubuntu 22.04, it uses more secure key files with digital signature for system repositories and PPAs.

Since Ubuntu 23.10,  it now uses deb822 .sources file instead of the previous .list file for third-party repositories. And, the new source files include ‘Signed-by’ section to specify the key file.

Step 1: Install curl command line download tool

First, press Ctrl+Alt+T on keyboard to open terminal. When it opens, run command to install curl and apt-transport-https package:

sudo apt install apt-transport-https curl

Type user password (no asterisk feedback) when it asks.

Step 2: Download & Install the key

Then, run curl command to download the key file and save it into /usr/share/keyrings folder.

This can be done by running the single command below in terminal:

sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg

Step 3: Add the brave apt source repository

The previous .list file with or without ‘Signed-By’ is still working! But here I’m going to show the new .sources file.

1. First, run command to create a .sources file under ‘/etc/apt/sources.list.d’:

sudo gedit /etc/apt/sources.list.d/brave-browser-release.sources

Replace gedit with gnome-text-editor for Ubuntu 24.04.

2. Then in the pop-up text editor window, paste following lines:

Types: deb
URIs: https://brave-browser-apt-release.s3.brave.com/
Suites: stable
Components: main
Architectures: amd64
Signed-By: /usr/share/keyrings/brave-browser-archive-keyring.gpg

As you see, the new source file is easy to read, but a bit hard to write for beginners. See this thread for more about it.

Step 4: Update cache & install Brave Browser

After saving the file in last step, you can now run commands below to refresh the system package cache:

sudo apt update

And, finally install the web browser via command:

sudo apt install brave-browser

You don’t have to run the command every time when a new release is out. Just launch “Software Updater”, newer release of the browser package will be available there along with system package updates.

Uninstall Brave:

To remove brave browser package, open terminal (Ctrl+Alt+T) and run command:

sudo apt remove --autoremove brave-browser

And remove the apt source repository by running command:

sudo rm /etc/apt/sources.list.d/brave-browser-release.list

Also remove the key file via command:

sudo rm /usr/share/keyrings/brave-browser-archive-keyring.gpg

Finally, run sudo apt update to refresh system package index.

For developers who want to prepare their project for the latest Python releases, here’s how to install Python 3.12 in all current Ubuntu releases.

Python 3.12 finally goes stable. It features more flexible f-string parsing, Per-Interpreter GIL, new type annotation syntax for generic classes, support for the Linux perf profiler, and many performance improvements, but removed the distutils package and wstr from Unicode. See more about Python 3.12.

How to Install Python 3.12

Python is easy to install in Ubuntu by either using the popular Deadsnakes PPA or building from the source. Choose either one that you prefer.

Option 1: Install Python 3.12 from PPA

For Ubuntu 22.04, Ubuntu 20.04, and their derivatives such as Linux Mint 21, the Deadsnakes PPA has made the packages for all supported CPU architecture types: amd64, arm64/armhf, ppc64el, and s390x.

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

sudo add-apt-repository ppa:deadsnakes/ppa

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

2. Ubuntu 20.04+ automatically refresh package cache while adding PPA. However, Linux Mint user may need to do this job manually by running command:

sudo apt update

3. Finally, run command to install Python 3.12:

sudo apt install python3.12

Option 2: Compile and install Python 3.12 from source

Don’t trust third-party repositories or you’re running Ubuntu 23.04 or Ubuntu 18.04? It’s easy to build Python from the source tarball.

1. First download the source tarball from its ftp download page:

2. Then open ‘Downloads’ folder, extract the source tarball, finally right-click on source folder and select “Open in Terminal”.

3. When terminal opens, run the commands below one by one to configure and build Python:

./configure --enable-optimizations
sudo make -j4 && sudo make altinstall

NOTE: You have to first install all build dependency libraries before running last 2 commands. See this tutorial for details.

Verify:

Once installed Python 3.12, verify by running command:

python3.12 --version && pip3.12 --version

Set Python 3.12 as default

It’s NOT recommended to set non-preinstalled Python package as default for Python3, since it will break some core applications.

However, you may try to set python3.12 as python by running the commands below one by one:

  • First, run command to find out where Python 3.12 executable is installed to:
    whereis python3.12

    It’s either /usr/bin/python3.12 or /usr/local/bin/python3.12.

  • Then, add Python 3.12 as an alternative link to python (replace /usr/local/bin/python3.12 according last command output).
    sudo update-alternatives --install /usr/bin/python python /usr/local/bin/python3.12 1
  • Finally, run command to set default for /usr/bin/python executable if more then one available:
    sudo update-alternatives --config python

Uninstall Python 3.12:

If you installed Python 3.12 using the PPA repository, simply open terminal and run command to remove it:

sudo apt remove --autoremove python3.12

For the PPA, run command to remove it:

sudo add-apt-repository --remove ppa:deadsnakes/ppa

If you built the Python 3.12 from source tarball, then there’s no uninstaller script to automate the job.

However, you may manually remove the installed files by running commands:

cd /usr/local/bin && sudo rm python3.12* pip3.12 idle3.12 pydoc3.12 2to3-3.12
cd /usr/local/lib && sudo rm -R python3.12 pkgconfig libpython3.12.a

RedHat announced the release of Podman Desktop 1.0 general availability (GA) on Tuesday. Here’s how to install it in all current Ubuntu releases.

Podman Desktop is a container management tool.  It provides a simple and user friendly user interface to easily create, manage, and deploy Podman, Docker, Lima, Openshift Local, Kind, etc containers and complex container configurations all in one place.

The app provides out-of-the-box Kubernetes environment based on Kind, allowing to create a multi-node Kubernetes cluster on local machine, and test applications without having to install and configure Kubernetes manually.

Other features include:

  • Install and run in Windows, macOS, and Linux
  • Keep Podman and other dependencies up to date
  • Manage multiple container engines at the same time.
  • Compatabile with Docker Compose
  • VPN and proxies configuration
  • And more and more, see release note for details.

How to Install Podman Desktop 1.0 in Ubuntu:

The application is available to install in most Linux using Flatpak package. Fedora 38 & Linux Mint 21 can simply search for and install it from either Gnome Software or Software Manager.

For all current Ubuntu users, follow the steps below one by one to get it.

1. First, open terminal either by searching from ‘Activities’ overview or by pressing Ctrl+Alt+T on keyboard.

2. Then, run command to enable flatpak support.

sudo apt install flatpak

Ubuntu 18.04 user need to run the 2 sudo commands to add the Flatpak PPA first.

3. Finally, install Podman Desktop by running command:

flatpak install https://dl.flathub.org/repo/appstream/io.podman_desktop.PodmanDesktop.flatpakref

NOTE: Besides the software package itself, there may be other run-time libraries to install automatically.

Once installed, search for and launch it from ‘Activities’ overview and enjoy!

NOTE: first time installing a flatpak app may needs a log out and back in to make app icon visible.

Uninstall Podman Desktop

To remove the software package, also press Ctrl+Alt+T on keyboard to open terminal and run command:

flatpak uninstall io.podman_desktop.PodmanDesktop

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

The ‘Tab’ key bash auto-completion does not work for you? Here’s how to re-enable this feature in Ubuntu.

When typing in terminal/command console, user can press ‘Tab’ key to auto-complete command, options, file path & name. This feature is quite useful and available out-of-the-box for every user with home directory.

If you broke something done and the feature does no longer work, then this tutorial could help.

Step 1: Install bash-completion package

For Debian, Ubuntu, and most other Linux, this feature is implemented by bash-completion package files. So the first step is to make sure that package is installed on your system.

To do so, open terminal/command console and run command:

sudo apt install bash-completion

Step 2: Enable Bash Completion

For each user, there’s a .bashrc file in user home directory. The file runs automatically on every login, and it contains the rule to enable bash completion.

1. First, run command to edit the file:

nano ~/.bashrc

2. When the file opens, add the following lines or make sure the lines below exist:

if ! shopt -oq posix; then
  if [ -f /usr/share/bash-completion/bash_completion ]; then
    . /usr/share/bash-completion/bash_completion
  elif [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
  fi
fi

To save file, press Ctrl+X, type y and hit Enter.

You can alternatively edit the system wide config file:

sudo nano /etc/bash.bashrc

Then enable the corresponding lines (remove # at the beginning for each line), so it applies to all users at login.

After saving the change, it should work immediately in new terminal window or command console.

In addition

The default configuration files for bash completion is located in “/usr/share/bash-completion”. However, some Linux Distro or may be 3rd party program may add rules by creating files under “/etc/bash_completion.d/”.

So, if the feature does not work for a specific command, go check the config file under “/etc/bash_completion.d/”.