Archives For November 30, 1999

Auto-cpufreq, automatic CPU speed & power optimizer, now is at version 2.0.0 release!

This is a popular free open-source tool that monitors Linux laptop’s battery state, CPU usage, temperature and system load. And, automatically switches CPU profile between “power saving” and “performance mode” according to whether power supply is plugged. It also automatically turn on/off CPU turbo boost according to system load.

By releasing 2.0.0 version, it has a graphical GTK3 user interface, making the things easy for beginners! As well, it now has Nix Flake and better NixOS support

Auto-cpufreq graphical interface.

How to Install Auto-CpuFreq in Ubuntu Linux

NOTE 1: In Ubuntu with default GNOME desktop, there’s already an extension can do similar job. So, you may only need this on Ubuntu flavors such as XUbuntu, Ubuntu MATE, KUbuntu, etc.

NOTE  2: Ubuntu Software (or App Center) includes auto-cpurfreq package, though it’s Snap package that so far does not support GUI, due to sandbox permission issue.

NOTE 3: Installing auto-cpufreq in GNOME Desktop will disable the default power profile daemon.

1. First, download the source code (ZIP or Tar.gz) from github releases page:

2. After downloading the source, open your “Downloads” folder and extract the tarball. Then, right-click on extracted folder and select “Open in Terminal“.

3. In pop-up terminal window, run command to start the official installer, and answer “i” to start installing the tool.

sudo ./auto-cpufreq-installer

It will automatically install auto-cpufreq as well as download and installing all required dependencies on your system. If everything goes OK, you’ll be able to launch it from applications menu or ‘Activities’ overview.

And, first launch will prompt to click install and run the daemon. Just click ‘Install’ and re-launch the tool. Finally, you should be able to see the main UI like the top screenshot shows you.

Then, just leave it there to automatically change power profile depends on power state and CPU load. Or, you can manually switch to Power-save or Performance as you need.

Uninstall Auto-CPUFreq

To remove the tool, simply re-run the previous steps, but answer ‘r‘ while running the installer script in terminal window.

This simple tutorial shows how to install the latest Whisker Menu, the main menu for launching apps, in XUbuntu 22.04, Linux Lite 6.6, and Linux Mint 21 XFCE Edition.

The default main menu (aka applications menu, or start menu) in Debian and Ubuntu with XFCE Desktop is Whisker Menu. It’s a free and open-source project being developed by gottcode.org.

XUbuntu 22.04 includes Whisker Menu 2.7.1, while the latest version has now reached v2.8.0. For users who want to try out new features and receive bug-fixes, here’s how to install it step by step.

What’s New in Whisker Menu 2.8.0

For multiple monitors, you may have more than one instances of the menu in panel. In the case, the default Super shortcut key always open the menu in primary monitor.

To trigger the Whisker Menu in other monitors, user can bind xfce4-popup-whiskermenu -i ID-number to a keyboard shortcut. To get the ID-number, open ‘Panel Preferences -> Items’ and move mouse over the Whisker Menu applet to see the tooltip. It’s NOT the PID, but seems to be applet sequence number.

Also for keyboard users, the new release can trigger the menu in screen center by binding xfce4-popup-whiskermenu -c to a shortcut key.

The appearance settings menu has been redesigned in the release. There’s a new “Position profile on buttom” option. With it, user can put the user figure, Settings, Logout buttons in either top or bottom of the menu.

There’s also a “downside” in the release. User can no longer drag menu border to resize it. Instead, there are new “Menu width” and “Menu height” setting options to resize the menu. For more about the new release changes, see its official page.

Install Whisker Menu 2.8.0 via its Official PPA

The software developer has an official PPA contains the latest Whisker Menu packages for Ubuntu 22.04, Ubuntu 23.04, Ubuntu 23.10, and their derivatives.

(X)Ubuntu, Linux Mint XFCE Edition, and Linux Lite users can follow the steps below one by one to install it:

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

sudo add-apt-repository ppa:gottcode/gcppa

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

2. Then, Linux Mint users need to manually refresh the system package cache, by running command:

sudo apt update

3. Finally, install the latest version of Whisker Menu by running command:

sudo apt install xfce4-whiskermenu-plugin


After installing the package, log out and back in. Then, right click on the menu and go to ‘About‘ to verify its version!

For Debian 12 with XFCE Desktop, user can download and install the .deb package directly from the PPA packages page.

How to Uninstall

To restore the original Whisker Menu, open terminal (Ctrl+Alt+T) and run command to install ppa-purge tool:

sudo apt install ppa-purge

Then, purge the PPA which will also downgrade the menu to the original version:

sudo ppa-purge ppa:gottcode/gcppa

In case the command above failed for you, you may manually remove the PPA by running command:

sudo add-apt-repository --remove ppa:gottcode/gcppa

Then, remove the Whisker Menu package by running command:

sudo apt remove xfce4-whiskermenu-plugin

And, install back the original version via command:

sudo apt install --reinstall xfce4-whiskermenu-plugin

This is a beginner’s guide shows how to set custom keyboard shortcut to tile windows in Ubuntu 24.04 Noble Numbat

Ubuntu (since 23.10) introduced enhanced tiling window support with a new system extension. With it, user can easily arrange all opened windows side by side by either mouse dragging or keyboard shortcuts.

The extension supports both “edge tiling” to automatically resize and fill a window to left, right, top, or bottom screen half, and “corner tiling” to tile a window to top-left, top-right, bottom-left, and bottom-right screen quarter.

The default keyboard shortcuts use “Super + number pad key” combination. But, some laptop and PC don’t even have a number pad. In the case, you have to set custom shortcuts. And, here’s how to do the job in 2 ways.

Method 1: Use Extension Manager

Firstly, press Super (Windows Logo) key to open overview screen. Search for and launch the new “App Center”.

When it opens, search and install “Extension Manager” app.

Install Extension Manager in Ubuntu Software/App Center

Next, launch “Extension Manager” by searching from the overview screen.

When the tool opens, scroll down and find out “Ubuntu Tiling Assistant“. Finally, click its setting icon to open the configuration dialog.

In the pop-up dialog, navigate to “Keybindings” tab, scroll down and click your desired tile action under “Edge Tiling” and “Corner Tiling” and press a key combination on keyboard to set as new shortcut.

Method 2: Use single command to set custom tiling shortcut

For those who are familiar with Linux command, the thing can be done by running gsettings command.

Firstly, search for and launch a terminal window from the overview screen.

When terminal opens, run command to set custom shortcut (Alt + q for example) for tiling to top-left quarter:

gsettings set org.gnome.shell.extensions.tiling-assistant tile-topleft-quarter "['<Alt>q']"

In command you may replace tile-topleft-quarter with one of the tile actions below:

  • tile-left-half
  • tile-right-half
  • tile-top-half
  • tile-bottom-half
  • tile-topright-quarter
  • tile-bottomleft-quarter
  • tile-bottomright-quarter

For the shortcut value, there must be quotation marks both inside and outside of bracket. And, the commonly used functions keys include <Control>, <Alt>, <Super> and <Shift>.

For example, set Ctrl + Alt + E to tile window to top-right corner by running command:

gsettings set org.gnome.shell.extensions.tiling-assistant tile-topright-quarter "['<Control><Alt>e']"

One tiling action can have 2 or more shortcut keys, for example, set both Alt+a and Ctrl + Left Arrow to tile a window to left half:

gsettings set org.gnome.shell.extensions.tiling-assistant tile-left-half "['<Alt>a', '<Control>Left']"

 

This simple tutorial shows how to install the latest Clang compiler 17 and/or 16 in Ubuntu 20.04, Ubuntu 22.04, and Ubuntu 23.10.

Ubuntu includes several versions of Clang in its system repositories. But, it rarely builds newer releases into Ubuntu stable repositories.

You can easily install Clang 10, 11, 12, 13, 14, and 15 by running sudo apt install clang-xx (replace xx with major version number) command in terminal.

For the most recent 16 and 17, they are also easy to install via the official apt repository.

Step 1: Download the Automatic installation script

The official Clang repository, so far supports Ubuntu 18.04, Ubuntu 20.04, Ubuntu 22.04, Ubuntu 23.04, and Ubuntu 23.10. It has a script to make adding repository and installing Clang as easy as few Linux commands.

1. First, press Ctrl+Alt+T on keyboard to open terminal. When terminal opens, run command to download the official installation script:

wget https://apt.llvm.org/llvm.sh

You may also use the script in Debian stable, though you may need to install wget first.

2. After downloading the script, add executable permission by running command:

chmod u+x llvm.sh

Step 2: Use the script to install Clang

The script automate the process of adding the official apt repository, updating package cache, and installing specific Clang version into your system.

All this can be done by running a single command. For example, install Clang-17:

sudo ./llvm.sh 17

Replace 17 with 16 for installing Clang-16, or even 18 if it’s already released when you see this tutorial

During the process, it will ask to hit Enter to confirm adding the apt repository. Then, you may just wait until the process done.

Step 3: Verify

If everything’s done successfully, just run clang-xx --version and/or locate clang-xx to verify.

Uninstall

To remove the repository added by the script, just open terminal (Ctrl+Alt+T) and run command to remove the corresponding source file:

sudo rm /etc/apt/sources.list.d/archive_uri-http_apt_llvm_org_*.list

And, remove the repository key file via command:

sudo rm /etc/apt/trusted.gpg.d/apt.llvm.org.asc

Or, launch “Software & Updates” and remove source line and key from “Other Software” and “Authentication” tabs.

To remove Clang packages (replace 17 accordingly), just run command:

sudo apt remove --autoremove clang-17 lldb-17 lld-17 clangd-17

This simple tutorial shows how to add a “Show Desktop” icon to the top panel in Ubuntu 22.04 and Ubuntu 24.04 with default Wayland session.

I’ve written about how to add ‘Show Desktop’ to the left dock panel, however, it works for the class Xorg session only. Since 22.04, Ubuntu switched to Wayland as its default display server. If you switched back to Xorg (via the gear icon in login screen), then this tutorial still works.

For GNOME (the default desktop) on Wayland, the thing can be done via a simple extension. And, here’s how to do it step by step.

Step 1: Install Extension Manager

Ubuntu has an “Extension Manager” tool in system repository, which allows to easily install and manage Gnome Shell extensions.

First, search for and install the tool from either Ubuntu Software or App Center, depends on your Ubuntu edition.

Install Extension Manager in Ubuntu Software/App Center

Or, press Ctrl+Alt+T on keyboard to open terminal, and run single command to install the tool:

sudo apt install gnome-shell-extension-manager

Step 2: Install the ‘Show Desktop’ button extension

After installing the Extension Manager, search for and launch it from the overview screen.

When the tool opens, navigate to ‘Browse’ tab, finally search and install the “Show Desktop Button” extension.

A ‘Home’ icon should appear immediately on the top-panel after installed the extension. By clicking on it, will hide (or show) all open app windows.

For choice, you can switch back “Installed” tab in Extension Manager, and open the preferences dialog for the extension. In which, you can choose to place the ‘Show Desktop’ icon in left, far left, center, right, or far right corner.

In addition, you may also install “Just Perfection” extension using Extension Manager. Which provides an Panel Button Padding Size option under Customize tab, to make the top-right panel icons look more compact.

That’s all. Enjoy!

For those who prefer the new ‘App Center’ in Ubuntu 23.10 and Ubuntu 24.04, it’s easy to install it in Ubuntu 22.04 and here’s how!

The new App Center is also the snap-store but re-built with Google’s Flutter UI toolkit. It’s fast and always works!

With it, the software app will never stuck at “Downloading Software catalog” or the spinning loading circle.

The App Center supports both Snap and native Debian (.deb) packages in Ubuntu 23.10/24.04, however, in my tests, searching Debian package always show me “No results found” in 22.04. If you know how to fix the issue, please leave a comment here.

App Center dark mode

App Center light mode

How to Install the new App Center in Ubuntu 22.04

NOTE: The NEW App Center so far lacks ability to install local .deb package!!

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

snap refresh snap-store --channel=latest/stable/ubuntu-24.04

This command may fail and output something look like: snap ‘snap-store’ has running apps, pids: 2205. In the case, just kill snap-store using the ID number (replace 2205 to yours):

sudo kill -9 2205

Then, re-run the snap refresh command.

2. After that, just press Super (windows logo) key to open overview screen, search and launch “App Center”.

How to Restore

To revert back the previous ‘Ubuntu Software’, also press Ctrl+Alt+T on keyboard to open terminal and run command:

snap refresh snap-store --channel=latest/stable/ubuntu-22.04

Ubuntu 23.10, code name “Mantic Minotaur”, is in Beta stage now!

The Ubuntu team announced the release today on Sep 22:

This Beta release includes images from not only the Ubuntu Desktop, Server, and Cloud products, but also the Edubuntu, Kubuntu, Lubuntu, Ubuntu Budgie, Ubuntu Cinnamon, Ubuntu Kylin, Ubuntu MATE, Ubuntu Studio, Ubuntu Unity, and Xubuntu flavours.

Ubuntu 23.10 features GNOME Desktop 45, Kernel 6.5, and some other exciting new features!

They include a new App Center based on Google’s Flutter toolkit. Compare to the previous Ubuntu Software, it’s fast and just works!

New App Center

The release also features a new firmware updater, for users who are running Ubuntu on real machine. The features also include TPM based full disk encryption, workspace indicator in top-left, Super + S shortcut to open Quick Settings, new Tiling Assistant extension.

The Ubuntu installer now defaults to the ‘Minimal’ installation, though the previous “Full” installation is still available for choice.
Other changes include:

  • Polished ‘Files’ and Settings pages.
  • Use deb822 .sources files for PPA.
  • Network manager now uses Netplan as it’s default settings storage backend
  • Enable Wayland by default for Firefox.
  • New package for the old classic font, that is default in Ubuntu 22.04 and earlier.
  • Drag and drop saving web image into file.
  • Default wallpaper now has dark variant.
  • Firefox 117, Thunderbird 115, LibreOffice 7.6.

Toolkit updates:

  • GCC 13.2.0, binutils 2.41, glibc 2.38.
  • Python 3.11.5 (3.12 rc in the archive), Perl, 5.36.0, LLVM 16 (17 is available in the archive), rustc 1.71.
  • OpenJDK 17, OpenJDK 21, .NET 7, golang 1.21.

For more about Ubuntu 23.10, see the official release note.

Get Ubuntu 23.10

Ubuntu 23.10 final is planned for October 12. The current Beta as well as final release is available to download at the link below:

For other download links and upgrade channel, see the official announcement.

For those who prefer the old system font, now it’s easy to get it in Ubuntu 23.10 via a new package!

Since Ubuntu 23.04, Ubuntu takes use a new slim font for the text in system menus, documents, and app windows.

Some users do NOT like the change, because the new font is thin and hard to focus on. And, I’ve written about how to get the previous font back in Ubuntu 23.04.

Now, Ubuntu 23.10 includes a new package fonts-ubuntu-classic in system repository. Make it easy to do the job even without a system restart.

Install the Classic Font in Ubuntu 23.10

To install the font, simply press Ctrl+Alt+T on keyboard to open terminal.

When terminal opens, run command:

sudo apt install fonts-ubuntu-classic

Run sudo apt update to update package cache if it says package not found.

After installation, your system font change without restart! For opened app windows, you need to close and re-open them. For ‘Files’, just run nautilus -q to reload.

(Optional) Install ‘fonts-ubuntu-console’

The package above does not install the old font for the command console.

For choice, you may download the package for Ubuntu 22.04:

wget https://launchpad.net/ubuntu/+archive/primary/+files/fonts-ubuntu-console_0.83-6ubuntu1_all.deb

Then, install it via:

sudo apt install ./fonts-ubuntu-console_0.83-6ubuntu1_all.deb

How to Uninstall

To restore the system default fonts, just open terminal (Ctrl+Alt+T) and run command to install the stock font packages back:

sudo apt install fonts-ubuntu fonts-ubuntu-console

This simple tutorial shows how to reset Ubuntu Dock, the left panel, to its original status in Ubuntu 22.04 & Ubuntu 23.10.

As you may know, Ubuntu Dock (aka Dash-to-Dock) is an extension to the GNOME Desktop. It has many configure options, however most of them are hidden.

In Ubuntu 23.10, it finally provides a preference dialog to configure its appearance with full options. See HERE for how to get it.

Ubuntu Dock preference dialog

The preference dialog so far does not have ‘Reset’ buttons. If you messed thing up or want to restore Ubuntu Dock to factory setting, then this tutorial may help!

Reset Ubuntu Dock

The steps below should work in all current Ubuntu releases, include other Gnome-based Linux (such as Manjaro) using Dash-to-dock extension.

Option 1: Single command to reset Ubuntu Dock

Without installing anything, running a single command in terminal window can do the job.

First, open terminal either by searching from the overview screen, or by pressing Ctrl+Alt+T shortcut key on keyboard.

When terminal opens, copy and paste the command below and hit Enter.

dconf reset -f /org/gnome/shell/extensions/dash-to-dock/

The command above resets Ubuntu Dock, but leaves your favorite apps (pinned app icons) unchanged.

If you want to also reset the app icons on the Dock, run command:

gsettings reset org.gnome.shell favorite-apps

Option 2: Use Dconf Editor (graphical way)

For a graphical way, the advanced ‘Dconf Editor’ configuration tool can do the job.

First, either search for and install ‘Dconf Editor‘ from Ubuntu Software:

Or, install it by running a command in terminal:

sudo apt install dconf-editor

Then, launch Dconf Editor by searching from the overview screen.

When it opens, navigate to ‘org/gnome/shell/extensions/dash-to-dock‘. Finally, click on ‘≡’ menu, select “Reset visible keys“, and click “Apply” button in bottom.

To reset the app icons, go to ‘org/gnome/shell/favorite-apps‘, turn on “Use default value” and finally click Apply.

That’s all. Enjoy!

HPLIP, HP developed Linux driver for its inkjet and laser printers, now is at version 3.23.8!

The official .run installer now supports for OpenSuse 15.5, Fedora 38, and Ubuntu 23.04.

There are as well many new HP printers support in the release. They include:

  • HP Color LaserJet Pro MFP 4301dwe, 4301fdne, 4301fdwe, 4301cdwe, 4301cfdne, 4301cfdwe.
  • HP Color LaserJet Pro MFP 4302dwe, 4302fdne, 4302fdwe, 4302cdwe, 4302fdn, 4302fdw.
  • HP Color LaserJet Pro MFP 4303dw, 4303fdn, 4303fdw, 4303cdw, 4303cfdn, 4303cfdw.
  • HP Color LaserJet Pro 4201dne, 4201dwe, 4201cdne, 4201cdwe.
  • HP Color LaserJet Pro 4202dne, 4202dwe, 4202dn, 4202dw.
  • HP Color LaserJet Pro 4203dn, 4203dw, 4203cdn, 4203cdw.
  • HP DeskJet 2800, 2800e All-in-One Printer series
  • HP DeskJet Ink Advantage 2800 All-in-One Printer series
  • HP DeskJet 4200, 4200e All-in-One Printer series
  • HP DeskJet Ink Advantage 4200 All-in-One Printer series
  • HP DeskJet Ink Advantage Ultra 4900 All-in-One Printer series

The release also has 2 known issues. They are:

  • 1. USB print feature is not working properly with FW version 6.17.X.X for HP Color LaserJet Pro MFP 4303 devices
  • 2. An I/O error is observed when attempting to add a HP Color LaserJet Pro MFP 4303series device via wireless option.

How to Install HPLIP 3.23.8 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.8.run
  • Run the file, follow the on-screen prompt and answer some questions:
    ./hplip-3.23.8.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.10! 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.10 user can try running 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.8

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