Archives For Howtos

Hugin, the popular free and open-source panorama photo stitcher application, now is in beta stage for the upcoming 2022 version.

Changes in this release according to the launchpad milestone include:

  • Add simple edge fill option to fill black edges in panorama with homogenous color.
  • Simplified the assistant page with only the necessary GUI controls to make it more clear for beginners and casual users.
  • Several improvements to control points tab (e.g. magnifier displays now warped image for better judgement of wide angle/fisheye images).
  • Improved handling of duplicate control points when running cpfind.
  • Extended command line tools pto_mask (--delete-mask) and pano_modify (allow specifying crop relative to canvas size).

There are as well some bug-fixes in the release, including fulla flatfield extremely dark, and high DPI display support for Windows.

How to install Hugin 2022 in Ubuntu:

For the source tarball as well as Windows msi packages, go the sourceforge download page.

For all current Ubuntu releases, including Ubuntu 18.04, Ubuntu 20.04, Ubuntu 22.04, Ubuntu 22.10, and their based systems, I’ve made the unofficial package into this PPA repository.

I’ll continue updating this PPA when the stable release is out! And sync the package (stable) with may apps ppa.

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

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

2. Update system package cache for Ubuntu 18.04 and Linux Mint, though it’s done automatically while adding PPA in Ubuntu 20.04+:

sudo apt update

3. Finally, either run the command below in terminal to install the panorama photo stitcher:

sudo apt install hugin

Or, upgrade the software (if an old version was installed) via Software Updater (Update Manager) app:

Uninstall hugin:

To remove the software package, simply run command:

sudo apt remove --autoremove hugin hugin-data

And, remove the PPA either by running command in terminal:

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

Or remove the source line from ‘Software & Updates‘ utility under Other Software tab.

Use Gnome Tweak tool and/or Extensions app frequently? You can add them into top-right corner system menu in Ubuntu 20.04 and Ubuntu 22.04.

Meaning you don’t have to search for and launch it every time from ‘Activities’ overview or ‘Show Applications’ screen. Like the built-in ‘Settings’ (Gnome Control Center), just click on top-right corner menu to launch your desired configuration tool.

Gnome Tweaks & Extensions app in system menu

This is implemented by an extension called “Tweaks & Extensions in System Menu”, which support GNOME version so far up to v42. Sadly, not updated at the moment for GNOME 43 which is default in Ubuntu 22.10 & Fedora 37.

Install the Extension to add system menu options

For Ubuntu 22.04, first search for and install ‘Extension Manager’ from Ubuntu Software.

Install Extension Manager in Ubuntu 22.04+

Then launch “Extension Manager” and use it to install the ‘Tweaks in system menu’ extension under ‘Browse’ tab.

Finally, switch back to ‘Installed’ tab, and click on gear button for that extension to open the configuration dialog. Where you can TURN ON/OFF either option and set its position.

For Ubuntu 20.04 and old Ubuntu 18.04 (not tested), first open terminal by press Ctrl+Alt+T shortcut key on keyboard. And, run command:

sudo apt install chrome-gnome-shell

Then, use the ON/OFF switch to install it via the link page below:

Of course, you must have Gnome Tweak tool and Extensions app installed from Ubuntu Software, to make them visible in the system menu.

For Ubuntu 22.10 and upcoming Fedora 37 with default GNOME 43 desktop, there’s now an extension to add user’s icon or figure (aka avatar) to the top-right corner system tray menu, which is also known as quick settings.

With it, the ‘Quick Settings’ menu will look like the screenshot below shows you. The avatar can be either in left or right. By clicking on it, will launch System Settings (Gnome Control Center) and automatically navigate to user settings page.

How to Install the Extension in Ubuntu 22.10

First, open Ubuntu Software app, search and and install ‘Extension Manager’.

Install Extension Manager in Ubuntu 22.04+

After that, press Super key (the ‘Windows’ logo key) on keyboard to activate overview screen. Search for and launch “Extension Manager”.

Finally, search for and install the extension “User Avatar In Quick Settings” under ‘Browse’ tab.

For Fedora user, the extension is also available to install via ON/OFF switch in the web page below:

The link should also works in Ubuntu 22.10 now, though you have to install agent package by running command: sudo apt install chrome-gnome-shell in terminal and also install the browser extension if it asks.

To change the avatar position, go to ‘Installed’ tab in Extension Manager, click on the gear button to configure the extension and toggle on/off the option to show it either in left or right.

That’s all. Enjoy!

GNU Grub logo image from Wikipedia.org

After installing Ubuntu 22.10 today in my desktop PC, the dual-boot Windows 10 disappeared from the startup boot menu. If you run into similar issue, here’s the quick tip to fix it.

This is definitely not bug, but a policy change since GNU Grub 2.06. The default boot-loader uses external os-prober tool to discover other operating systems on the same machine. However, the feature is disabled now for security reason due to the manual:

It is disabled by default since automatic and silent execution of os-prober, and creating boot entries based on that data, is a potential attack vector. Set this option to ‘false’ to enable this feature in the grub-mkconfig command.

By reloading the config will prompt your that “Warning: os-prober will not be executed to detect other bootable pertitions“.

Ubuntu 22.04 is the first release uses GRUB 2.06, which however not affected in my case. So I didn’t encounter this issue until trying Ubuntu 22.10 today on dual-boot machine. And, here’s how to fix the the ‘issue’ in 2 ways.

Option 1: Manually re-enable OS-PROBER

As mentioned in the manual, just set the ‘GRUB_DISABLE_OS_PROBER’ option to ‘false’ in Grub configuration will do the trick.

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

sudo nano /etc/default/grub

Ubuntu 22.10 switched to gnome-text-editor which however does not work along-with sudo from command line. So here I use nano command line text editor instead.

2. When the file opens in terminal window, scroll down and add the new line (or change the value if the line already exists):

GRUB_DISABLE_OS_PROBER=false

After that, save changes by pressing Ctrl+X, type y and hit Enter.

3. Finally, run sudo update-grub to reload the change.

Don’t know why, but Windows OS appears in boot-menu again after I did restart computer twice in my case.

Option 2: Use Grub-Customizer (graphical tool)

For those who prefer using a graphical configuration tool, there’s a third-party Grub-Customizer app available for choice.

1. First, you still need to open terminal (Ctrl+Alt+T) and run 3 commands one by one to install the tool from developer’s PPA:

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt update
sudo apt install grub-customizer

2. Search for and launch grub customizer from system start menu or ‘Activities’ overview.

3. When the app opens, navigate to ‘General Settings‘ page, then do:

  • click on bottom right advanced settings option.
  • in next pop-up dialog, click “Add” (or edit if exists) and type:
    • name: GRUB_DISABLE_OS_PROBER
    • value: false

Close advanced settings dialog, and finally click “Save” button in the app to apply change.

This simple tutorial shows how to reboot your machine into another OS or grub boot menu entry directly from Ubuntu.

Say you have Ubuntu dual- or multi-boot with other operating systems, and want to reboot directly into a specific OS when working done in current Ubuntu. Or you want to reboot with another Kernel or maybe recovery mode without any keyboard press while booting. This tutorial may help.

Method 1: Single command to reboot into another OS

Grub, the default boot-loader for many Linux, has a command line tool grub-reboot, which allows to set the default boot-entry for ONLY next boot.

Along with reboot command, it allows to reboot directly into another entry. For example, reboot into the third menu try with command:

sudo grub-reboot 2 && reboot

NOTE: Grub menu entry counts from 0. Number 2 means the 3rd entry.

Tell which number for booting your OS/entry

You don’t have to reboot and count in the boot-menu for your desired number. There are 2 ways to view the menu from in Ubuntu.

Option 1. Preview Grub Menu via Grub-Emu

Press Ctrl+Alt+T on keyboard to open terminal, and run command to install grub-emu:

sudo apt install grub-emu

Then, run grub-emu command in terminal will open up a window for previewing your boot-loader. And, close the terminal will also close the preview window.

Option 2. Use Grub-Customizer

Grub-Customizer is a good alternative, as the preview tool does not work good in my case. To install it, open terminal (Ctrl+Alt+T) and run 3 commands below one by one.

The commands will add the software developer’s PPA repository, update cache and finally install it into your system.

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt update
sudo apt install grub-customizer

After that, search for and open it from either system start menu or ‘Activities’ overview depends on your DE.

As the screenshot shows you, number 2 is for Windows in my case. 1>1 means recovery mode, and 1>2 means the previous kernel entry.

So, run the command below will reboot directly into Windows in my case:

sudo grub-reboot 2 && reboot

To reboot into recovery mode in sub-menu entry (quotation marks required), use:

sudo grub-reboot "1>1" && reboot

And, if you want to use the command in script or bind with a keyboard shortcut, use command:

pkexec grub-reboot 2 && reboot

So, it will pop-up an authentication dialog asks you to type user password, before performing the action.

Method 2: Add Reboot option in top-right system menu

For GNOME 43, meaning users of Ubuntu 22.10, Fedora 37, Arch and Manjaro Linux, there’s an extension to do the job by adding menu entries into system status menu.

By clicking on an entry in the menu, will pop-up password authentication dialog, and then shows you the reboot dialog. When typing correct password and click restart in pop-up dialog, it reboot directly with that entry you just clicked!

How to Install the Extension

For Ubuntu 22.10, first search for and install “Extension Manager” from Ubuntu Software.

Install Extension Manager in Ubuntu 22.04+

Then press Super (the Windows Logo) key to activate overview, search for and open “Extension Manager”. Finally, use the tool to install the “Custom Reboot” extension:

For Fedora 37 and other Linux with GNOME 43, you may go directly to the extension website and use ON/OFF switch to install it.