Archives For jimingkui

This is a beginner’s guide shows how to set custom keyboard shortcut to tile windows in Ubuntu 23.10 Mantic Minotaur.

Ubuntu 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 23.10 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, 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, 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

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-23.10

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.