How to Install LightZone RAW Photo Editor in Ubuntu 22.04 | 20.04

There are several Lightroom alternative applications for editing your photos. LightZone is one of them works in Linux.

It’s a free and open-source professional-level digital darkroom and photo editor written in Java. It has less features than the popular Darktable and RawTherapee, but it’s good at processing black and white photos.

LightZone features include:

  • Windows, macOS, and Linux support.
  • Support RAW files for a variety of cameras.
  • Batch processing.
  • Range of available style filters
  • Many non-destructive tools
  • Raw tone curve modification

How to Install LightZone in Ubuntu:

The software has an official PPA so far with Ubuntu 18.04, Ubuntu 20.04, Ubuntu 22.04, Linux Mint 21/20 support.

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

sudo add-apt-repository ppa:lightzone-team/lightzone

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

2. For Linux Mint and old Ubuntu 18.04, user need to manually refresh the system package index by running command:

sudo apt update

3. Finally, install this photo editing tool via command:

sudo apt install lightzone

With the PPA, you don’t have to run the apt command again and again, the future release page will be available to install in Software Updater (Update Manager) utility.

After installation, search for and launch the editor either from start menu or ‘Activities’ overview depends on your system.

Uninstall LightZone

To remove the photo editor, open a terminal window and run command:

sudo apt remove --autoremove lightzone

And remove the PPA repository either via “Software & Updates” utility under Other Software tab, or by running command:

sudo add-apt-repository --remove ppa:lightzone-team/lightzone

Wine 8.0 RC2 Released! How to install in Ubuntu 22.04 | 20.04

For those who would like to run Windows apps on Linux, the new major Wine 8.0 now is in RC release stage.

As usual, there will be 6 RC releases until final stable version. The latest so far is rc2 that features 50 bug-fixes for applications, including ICU64 for VICE, UT99, Warframe, MyPhoneExplorer, Silent Hill 2, Resident Evil 7, Serious Sam 2, and more. See the announcement for details.

How to Install Wine 8.0 rc2 in Ubuntu 22.04 | 20.04 | 18.04 | 22.10

Winehq website has official setup guide for installing the software in Ubuntu & other Linux. However, it still use the ASCII-armored key which is deprecated.

1. Install Wine key

The repository now has updated with new method to install the key to follow Debian policy, as apt-key is deprecated. However, it’s still ASCII-armored key so far.

Press Ctrl+Alt+T on keyboard to open terminal. When it opens, run command to create ‘/etc/apt/keyrings’ directory in case it’s not exist, for storing the keys:

sudo mkdir -p /etc/apt/keyrings

Then, run the single command to download the key, dearmor, and move to “/etc/apt/keyrings” directory:

sudo wget -O - | gpg --dearmor | sudo tee /etc/apt/keyrings/winehq-archive.key

Type user password and hit Enter if the command stuck with blinking cursor. And, it will output un-readable text as the picture shows:

2. Add Wine repository:

Next run the commands below one by one to download the repository setup file and install to “/etc/apt/sources.list.d” directory.

  • Download and install the source file:
    sudo wget -NP /etc/apt/sources.list.d/$(lsb_release -sc)/winehq-$(lsb_release -sc).sources

IMPORTANT: “$(lsb_release -sc)” in command returns system’s code-name. For Linux Mint and other Ubuntu based system, you HAVE to replace it with kinetic (22.10), jammy (22.04), focal (20.04) or bionic (18.04) depends on which Ubuntu edition your system is based on.

3. Update cache

Before installing any package from that repository, you need to refresh system cache by running command in terminal:

sudo apt update

4. Install Wine Development:

Finally, run the apt install command to install the new development release:

sudo apt install winehq-devel

After installation, use winecfg to generate and open the configuration page, and finally right-click on your EXE file and start it via Wine program loader option. See if you app works with wine.

How to Remove Wine:

1. To remove the Wine package, simply open terminal and run commands:

sudo apt remove --autoremove wine winehq-devel

There will be local configuration files and app data left under .wine and .local/share/applications. They are hidden folders, press Ctrl+H in file manager to toggle display and remove them as you want.

2. To remove the Wine repository, open terminal (Ctrl+Alt+T) and run command:

sudo rm /etc/apt/sources.list.d/winehq-*.sources

And remove the repository key via command:

sudo rm /etc/apt/keyrings/winehq-archive.key

Finally apply changes by running sudo apt update to refresh system package cache.

Hugin 2022.0.0 Released! How to install it in Ubuntu 22.04 | 20.04

The Hugin panorama photo stitcher finally announced the 2022.0.0 release! Ubuntu PPA updated for Ubuntu 18.04, Ubuntu 20.04, Ubuntu 22.04 and Ubuntu 22.10.

One year per release! The 2022 release is finally here, though there’s not so many changes!

  • 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, high DPI display support for Windows, and Hugin Calibrate Lens launch issue on Debian Testing Cinnamon.

How to install Hugin 2022.0.0 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 also sync the packages into the apps PPA, use either one as you prefer.

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.

Install get-iplayer to Download BBC TV Programmes in Ubuntu 22.04 | 20.04

This simple tutorial shows how to install get-iplayer and use it to download TV and radio programmes from BBC iPlayer/BBC Sounds for offline playback.

get-iplayer is a free and open-source app for Windows, macOS, and Linux. With it, you can searches and downloads your favorite BBC TV / radio programmes. Then play locally and legally in 30 days.

NOTE: For legal reason, you need a TV licence to download BBC TV/radio programmes! And, you have to delete them after 30 days of legal play!

Install get-iplayer in Ubuntu/Linux Mint

The project release page offers Windows and macOS installer. For Ubuntu and its based systems, it refers to a PPA repository, which so far supports Ubuntu 16.04, Ubuntu 18.04, Ubuntu 20.04, Ubuntu 22.04 and Ubuntu 22.10.

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:m-grant-prg/utils

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

2. Then, run command to install the app package:

sudo apt install get-iplayer

For old Ubuntu and Linux Mint, run sudo apt update first to refresh package cache.

Use get-iplayer to download TV programmes

This is a command line tool! After installing it, run following commands at any time in a terminal to search and/or download your favorite programmes.

  • To search for something, use command:
    get_iplayer 'keyword here'

    NOTE: get_iplayer can only search for programmes that were scheduled for broadcast on BBC linear services within the first 30 days! Those present more than 30 days can be downloaded directly via PID or URL

  • To start downloading a programme, use command:
    get_iplayer --get NUMBER_HERE

    Replace NUMBER_HERE with the number in the search result. And, you can download more programmes at same time via multiple numbers. For example:

    get_player --get 2708 3501 3680
  • You may also download directly via an URL address, for example::
  • Or use PID, which is usually the random characters in URL address:
    get_iplayer --pid b04n9p9c

    Also, it supports downloading via multiple PIDs: get_iplayer --pid id1 id2 id3 ...

The tool also has many other command line options, run man get_iplayer in terminal to read more.

Uninstall get-iplayer

To remove get-iplayer from Ubuntu/Linux Mint, open terminal and run command:

sudo apt remove --autoremove get-iplayer

Also, remove the Ubuntu PPA repository by running command:

sudo add-apt-repository --remove ppa:m-grant-prg/utils

That’s all. Enjoy!

PHP 8.2 Released, How to Install in Ubuntu 22.04 | 20.04 via PPA

PHP finally released 8.2.0 release after 7 release candidates. Here are the new features and how to install guide for all current Ubuntu LTS.

PHP 8.2.0 allows to mark a class as readonly, which will add the readonly modifier to every declared property, and prevent the creation of dynamic properties. Moreover, using the AllowDynamicProperties attribute on readonly class will trigger a compile-time error.

Other release highlights in PHP 8.2.0 include:

  • Disjunctive Normal Form (DNF) Types
  • New stand-alone types: null, false, and true
  • New “Random” extension
  • Constants in traits
  • Deprecate dynamic properties

There are as well numerous bug-fixes and other changes in the release. See the changelog for details.

How to Install Php 8.2 in Ubuntu:

Not recommended for beginners. Only install PHP 8.2 for web developing purpose or there’s specific feature or bug-fix you need in this release.

The popular Ondřej Surý’s PPA has built the package for all current Ubuntu LTS: Ubuntu 18.04, Ubuntu 20.04 and Ubuntu 22.04.

1. First, open terminal or connect to your Ubuntu server and run command to add the PPA:

LC_ALL=C.UTF-8 sudo add-apt-repository ppa:ondrej/php

Run sudo apt install software-properties-common in case the command does not exist. And, type user password (no asterisk feedback) when it asks and hit Enter to continue.

2. Then, install Php packages accordingly. For example, install apache2 module and mysql module via command:

sudo apt install php8.2 libapache2-mod-php8.2 php8.2-mysql

Or install the FPM-CGI binary for use with Nginx:

sudo apt install php8.2 php8.2-fpm php8.2-mysql

For Ubuntu 18.04, run sudo apt update first to refresh package cache.

After installed it, remember to configure your http server (apache 2 or nginx) for the new PHP package, and configure php8.2 via files under ‘/etc/php/8.2/’.

Uninstall Php 8.2

To remove the package, simply run command:

sudo apt remove --autoremove php8.2 libapache2-mod-php8.2 php8.2-*

And remove the Ubuntu PPA via command:

sudo add-apt-repository --remove ppa:ondrej/php

PyCharm 2022.3 Released! How to Install in Ubuntu 22.04 | 20.04

PyCharm Python IDE 2022.3 was finally released a few days ago. Here are the new features and how to guide for installing it in Ubuntu Linux.

Changes in PyCharm 2022.3 include:

  • Ability to search, install, and delete Conda packages through the Python Packages tool window
  • New Settings Sync plugin
  • export DataFrames in various formats (for professional only)
  • The Quick Documentation popup now displays the Attributes section of the class docstrings
  • Support await keyword in the built-in Python Console.
  • Experimental asyncio support for the debugger.
  • Vitest support (for professional only)
  • New project templates for Next.js and Vite (for professional only)
  • Redis support (for professional only)

How to Install PyCharm 2022.3 in Ubuntu Linux

There are 3 ways to install the Python IDE in Ubuntu and other Linux: Snap, Flatpak, and portable tarball. Just choose the one that you prefer.

Option 1: PyCharm Snap package

The easiest way to get the IDE is using the official Snap package. It is a containerized software package that run in sandbox, and updates automatically.

For Ubuntu 20.04, Ubuntu 22.04 and higher, simply search for ‘PyCharm’ then install either community or professional edition from Ubuntu Software.

Or, run command in terminal to install the Snap package:

sudo snap install pycharm-community --classic

Replace pycharm-community with pycharm-professional for the professional edition.

Option 2: PyCharm Portable package (tar.gz)

The website also provides official tar.gz package for downloading at the link below:

Then open the folder that stores the tarball (usually Downloads folder), right-click on blank area and select ‘Open in Terminal‘.

When terminal opens, run the commands below one by one to install it for all system users (replace community with professional accordingly):

  • First, create a folder under ‘/opt’ to store the source:
    sudo mkdir -p /opt/pycharm-community
  • Then extract the tarball into that folder:
    sudo tar -zxf pycharm-community-2022.3.tar.gz --strip-components=1 -C /opt/pycharm-community/
  • Finally, create & edit shortcut icon file for the IDE package:
    sudo gedit /usr/share/applications/pycharm-community.desktop

    Replace gedit with nano for Ubuntu 22.10.

The last command should open an empty text editor window. There paste the lines below and save it.

[Desktop Entry]
Name=PyCharm Community Edition
Comment=Lightweight IDE for Python & Scientific development

After saving the file, you should be able to search for and launch PyCharm IDE from start menu or ‘Activities’ overview, depends on your desktop environment.

Option 3: PyCharm Flatpak

The open-source community also maintains the PyCharm packages as Flatpak package, which is also containerized package runs in sandbox.

First, open terminal by pressing Ctrl+Alt+T keys on keyboard. When it opens, run command to install the daemon package:

sudo apt install flatpak

Next, run command to install PyCharm Community as Flatpak:

flatpak install

Or, install the professional version as Flatpak via command:

flatpak install

Uninstall PyCharm

For the Snap package, remove it either via Ubuntu Software or by running command in terminal:

sudo snap remove pycharm-community --classic

For the portable package, remove the source as well as shortcut file via command:

sudo rm -R /opt/pycharm-community
sudo rm /usr/share/applications/pycharm-community.desktop

And, remove the Flatpak package via command:

flatpak uninstall --delete-data com.jetbrains.PyCharm-Community

For the professional edition, remove pycharm-community in the commands above with pycharm-professional.

This Extension Tells Your App Startup Time in Ubuntu 22.04 | 20.04

Want to measure your application launch time in Linux? There’s an extension can do the job for GNOME desktop.

Meaning Ubuntu, Fedora workstation, and other Linux with GNOME desktop can easily tell how much time it takes for launching an application, which is useful for benchmark and/or software developing purpose.

With the extension enabled, every time you launching an application, an on-screen display pops up shows the loading time in millisecond. Not only for native .deb/.rpm, but also for Snap and Flatpak applications.

How to Install the App Start Time Measure extension

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 search & install ‘application start time measure’:

For Ubuntu 20.04, first press Ctrl+Alt+T on keyboard to open terminal. When it opens, run command to install the agent package:

sudo apt install chrome-gnome-shell

Then, go to extension page in the link below and use ON/OFF switch to install it:

Install the browser extension if prompted via link in that page and refresh if you don’t see the ON/OFF switch.

After installing the extension, it should be enable automatically (verify via ‘Gnome Extensions’ or ‘Extension Manager’). You can then launch something and see the magic!

How to Hide App Shortcut Icon in Ubuntu 22.04 | 20.04 & Other Linux

Got an application, but you want to make it in-visible from start menu, app grid, app launcher search result, and dock launcher?

It’s easy to do the trick by adding rule NoDisplay=true or Hidden=true into the ‘.desktop’ file for that application. And, here’s how to do it step by step.

Hide Shortcut Icon for native Deb/RPM & Snap apps

For applications installed as the native .deb (or .rpm for RPM based systems), and Snap packages, the ‘.desktop’ files are usually stored in /usr/share/applications directory.

1. First, open terminal either from start menu or by pressing Ctrl+Alt+T on keyboard in Ubuntu. When it opens, run command to navigate to that folder:

cd /usr/share/applications/

2. Then, find out the .desktop file by either listing all of them via ls command. Or, filter via:

ls | grep 'keyword_here'

3. Once you find out the .desktop file for your applications, edit it via command:

sudo gedit your_application.desktop

Replace gedit with your system text editor, or use nano command line editor that works in most Linux.

4. Finally, add (or change value if the key already exist) the line below:


Finally, save the file. For nano text editor, press Ctrl+X, type y and hit Enter.

In next time you logging into the system, the app shortcut will no longer exist in start menu, app grid, the left/bottom dock, and ‘Activities’ overview search result.

Hide Shortcut Icon for Flatpak Apps

For the universal Flatpak applications, the ‘.desktop’ files are located in ‘/var/lib/flatpak/exports/share/applications/‘ directory.

1. So, first open terminal and run command to navigate to that folder:

cd /var/lib/flatpak/exports/share/applications/

2. Use ls or ls |grep 'keyword' to find out the file.

3. Finally, edit it either via Gedit or other text editor:

sudo gedit your_application.desktop

Add the NoDisplay=true line and save the file. Also, log out and back in to see result.

Copy & paste the .desktop file into local folder

The previous change may be overridden after updating the software package. As a workaround, you may copy & paste the .desktop file into local folder and then do the change. Your system will always take use of the local one.

For native package and Snap, open terminal and run command to copy the file:

sudo cp /usr/share/applications/your_app.desktop ~/.local/share/applications/

Then, navigate to local directory, change the ownership, and finally edit the file:

cd ~/.local/share/applications/ && sudo chown $USER:$USER your_app.desktop && gedit your_app.desktop

For Flatpak applications, the local folder is “~/.local/share/flatpak/exports/share/applications/“. So, do the commands below instead:

sudo cp /var/lib/flatpak/exports/share/applications/your_app.desktop ~/.local/share/flatpak/exports/share/applications/
cd ~/.local/share/flatpak/exports/share/applications/ && sudo chown $USER:$USER your_app.desktop && gedit your_app.desktop

| 22.10 22.10 20.04

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.

Show Clock in Top-bar for different Locations in Ubuntu 22.04 | 20.04

This simple tutorial shows how to add world clock in top panel, so you can have a glance at what time is it now for different countries and locations.

Say you have business world-wide or family members or good friends live in different countries, a world clock can be quite useful to know the time in their locations.

If you’re working on Ubuntu, Fedora Workstation, or other Linux with GNOME desktop, then there’s an extension to display the time for your specified locations in top panel to make life easier.

As you see in the screenshot above, it also shows the sunrise and sunset time for the selected location.

Step 1: Install GNOME Clock

The extension uses GNOME Clock for the date and time information. You need to first install it either from Ubuntu Software:

Install GNOME Clock

Pay attention that you need to install the package in native .deb format, meaning from ‘ubuntu-xxx-universe’. Check the source drop-down box in header bar of Ubuntu Software. Or, press Ctrl+Alt+T to open terminal and run command to install it:

sudo apt install gnome-clocks

Step 2: Add different locations

After installing the app, press Super (Windows logo) key, then search for and open it from ‘Activities’ overview screen.

When it opens, click on the top-left corner ‘+’ button to add locations for your business partners or family members.

Step 3: Install Extension to make World Clock display on Panel

For Ubuntu 22.04 & Ubuntu 22.10, do the steps below one by one to install the extension:

  1. Search for and install ‘Extension Manager’ from Ubuntu Software.
  2. Click top-left edge ‘Activities’ to open overview, then search for and launch ‘Extension Manager’.
  3. Finally, use the tool to search and install ‘Panel World Clock (Lite)’ extension under ‘Browse’ tab.

For Ubuntu 18.04 and Ubuntu 20.04, use web browser instead to install it:

  1. First, press Ctrl+Alt+T on keyboard to open a terminal windows. When it opens, run command to install the agent package and manager app:
    sudo apt install chrome-gnome-shell gnome-shell-extension-manager
  2. Next, go to the extension web page by clicking the link button below:
  3. Click install browser extension if prompted via the link in that page. Finally, refresh and use the ON/OFF switch to install it.

After installing the extension, it should display world clock in top panel alongside local date and time. If not, try log out and back in to reload it.

In case you don’t like the default display location, you can open the configuration page in either Extension Manager or Gnome Extensions app. Then configure to:

  • show world clock in center or right.
  • Set number of clocks.
  • Show/hide local clock.
  • Display city/country name.