Archives For November 30, 1999

YOGA Image Optimizer is a graphical tool to batch convert photos into JPEG, PNG and WEBP, and compress file sizes while having equivalent quality.

It’s a free and open-source tool based on YOGA command line tool, which can also convert and optimize 3D models from various formats to glTF and GLB.

YOGA:

The YOGA backend uses Python Pillow library to convert images into PNG, JPEG, or WebP as you prefer. And it uses Google’s Guetzli library to generate JPEG that are typically 20-30% smaller than libjpeg while having some quality. Google’s Zopflipng and libwebp libraries are in use for optimizing other two image formats.

The command line tool also support converting and optimizing 3D models using the Open Asset Import Library (Assimp).

YOGA Image Optimizer:

The official front-end for YOGA provides an easy to use graphical interface to do converting and optimizing process in Linux and Windows.

Simply open a batch of photo images (press Shift or Ctrl while choosing files), it shows the thumbnails, input file name and size, as well as output name and file format.

Before you clicking “Optimize”, you can choose output format and set compress level for each or a selection of images.

YOGA Image Optimizer also features:

  • Multi-thread support. You can set how many CPU cores to use.
  • GTK theme support. It allows to choose between all installed GTK theme for the app only.
  • Dark Mode.
  • Custom output pattern.

Install YOGA Image Optimizer in Ubuntu Linux:

For Linux, the software can be installed either via universal Flatpak package or using pip (Python Package Installer).

1. Flatpak Package

Open terminal by pressing Ctrl+Alt+T on keyboard, you can then run following commands one by one to get the software via Flatpak in Ubuntu 20.04 and higher. For Ubuntu 18.04, you need to add this PPA before getting started.

a. ) Install the flatpak daemon if you don’t have it:

sudo apt install flatpak

b.) Add the Flathub the preferred repository hosting Flatpak package:

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

c.) Finally install the image converter and optimizer via command:

flatpak install flathub org.flozz.yoga-image-optimizer

(Optional) For any reason, you can easily remove the software by running command in temrinal:

flatpak uninstall --delete-data org.flozz.yoga-image-optimizer

2. Install the package via pip3:

For those don’t like the Flatpak package, use the Python pip3 package installer. It however does NOT create app shortcut for launching it from the ‘Show Applications’ start menu.

a.) Firstly, open terminal and run command to install required libraries:

sudo apt install git build-essential python3 python3-dev python3-pip libgirepository1.0-dev libcairo2-dev pkg-config gir1.2-gtk-3.0

b.) Next install the package via command:

sudo pip3 install yoga-image-optimizer

The pip package does not has app shortcut, you need to either run yoga-image-optimizer command to start it from terminal and create a .desktop file manually.

(Optional) To remove the package, use command:

sudo pip3 install yoga-image-optimizer

For those don’t like the Flatpak package, here’s how to install GIMP 2.99.18 from PPA in Ubuntu 20.04 and/or Ubuntu 22.04 LTS.

The popular GIMP image editor is working on the next major 3.0 release. For testing purpose, GIMP 2.99.18 was released as the latest development version. It provides the official Linux package via Flatpak package. However, some users don’t like it, since Flatpak is an universal package format needs separate daemon to run in sandbox.

Install GIMP 3.0 Dev from PPA in Ubuntu 20.04/22.04:

For Ubuntu 20.04, Ubuntu 22.04, and derivatives, e.g, Linux Mint 20/21 and Zorin OS 17, the unofficial PPA contains the classic .deb package for GIMP 3.0 Dev release.

NOTE: The package in the PPA is unstable. It may have bugs and used only for testing purpose. Installing GIMP from this PPA will override the 2.10 stable release, don’t install it on production machine.

1. Add the PPA.

Press Ctrl+Alt+T on keyboard to open terminal, or search for and open terminal from start menu if you’re on Linux Mint or ZorinOS.

When terminal opens, copy and paste the command below and hit Run to add the PPA:

sudo add-apt-repository ppa:mati75/gimp30

Type your password as sudo command need user authentication, and hit Enter to continue.

2. Update package cache

Since Ubuntu 20.04, it updates the system package cache automatically while adding Ubuntu PPAs, However, Linux Mint 20 does not. So you may need to manually run command in terminal to update cache:

sudo apt update

3. Install / Upgrade to GIMP 3.0 Dev

Finally, you can either open Software Updater (Update Manager) to install or upgrade the GIMP package, or run command in terminal instead:

sudo apt install gimp gegl

Revert to GIMP 2.10 Stable:

It’s possible to downgrade the image editor back to 2.10 stable release, 2.10.18 if no other relevant PPA added.

Simply open terminal and run the command below to install the ppa-purge package, and then purge the Ubuntu PPA which will remove it as well as downgrade installed packages:

sudo apt install ppa-purge && sudo ppa-purge ppa:mati75/gimp30

That’s all. Enjoy!

Mozilla Firefox 92.0 was released today with new features and various security fixes.

The release will use HTTPS resource record (HTTPS RR) as Alt-Svc headers to make connections more secure.

The full-range color (0-255) levels are now supported for video playback. Though the limited color range (16-235) is ideal for movies and TV, the source can be switched to full-range color to match PC monitor.

For Mac, users can now access the macOS share options from the Firefox File menu. And it enables support for images containing ICC v4 profiles.

Other changes include:

  • Firefox performance with screen readers and other accessibility tools is no longer severely degraded if Mozilla Thunderbird is installed or updated after Firefox.
  • macOS VoiceOver now correctly reports buttons and links marked as ‘expanded’ using the aria-expanded attribute.
  • An open alert in a tab no longer causes performance issues in other tabs using the same process.
  • The bookmark toolbar menus on macOS now follow Firefox visual styles.
  • Certificate error pages have been redesigned for a better user experience.

How to Install Firefox 92:

Usually, Ubuntu will publish the new Firefox package in next few days. The best choice is just wait!

You’ll see the packages in Software Updater once published:

Or see the release note & download the Linux portable package from this page.

This simple tutorial shows how to install Virtualbox Guest Additions in Ubuntu based systems, e.g., Linux Mint, Zorin OS and Elementary OS, with fix or workaround for common issues.

Guest Additions is a set of device drivers and system applications to install in Guest OS. It’s useful when you try to share folder and/or clipboard between guest and host, enable USB support etc. Installing the software suite is easy via a menu option. However, it might not function in some cases.

Install Guest Additions in the Normal Way

Firstly, start and login the Guest OS. Then go to VM menu “Devices -> Insert Guest Additions CD image“.

Usually, a pop-up dialog will open and prompt whether to run autorun script or not. Just click “Run” and it starts to install the guest additions after you typing user password in authentication dialog.

After installation, the additions will function in next boot of the Guest OS.

[Workaround] Unable to insert the virtual optical disk:

Sometimes it outputs an error “Unable to insert the virtual optical disk … into the machine …” when you click on the menu option in VM (VirtualBox Machine).

It happens in my case when trying to install the additions in Elementary OS 6. And it will pop-up an error dialog:

Don’t know why but do following steps will fix the issue in next Guest boot:

1.) Power off the Guest OS, then go to its Settings page. Under the Storage settings, remove the attached iso under Controller:IDE.

2.) Next add new optical drive, and click “Leave Empty” in the select dialog.

After saving the changes, start the Guest OS and try to install the additions again.

Manually Download & Install Guest Additions:

Nothing happens when clicking ‘Insert Guest Additions CD image’ option? You can download the iso, mount it, and install the Guest Additions manually.

1.) Firstly start the VirtualBox Machine, download the iso image for your VirtualBox edition, usually “VBoxGuestAdditions_x.x.xx.iso”, from the link button below:

2.) Next open the Downloads folder, right-click or (double-click) on the file and select to mount the iso image.

The dialog should pop-up allows you to select “Run” to install the additions. If not, go to the mounted folder from the left pane in file manager. Right-click on blank area and select ‘Open in Terminal‘ to open a terminal window and navigate to the directory automatically.

When terminal opens, run the .run installer manually via command:

sudo ./VBoxLinuxAdditions.run

That’s all. Enjoy!

HPLIP, Hewlett-Packard’s Linux imaging and printing software, released version 3.21.8 with new printers support.

The open-source HP printer and scanner driver add some new devices support. They are:

  • HP Smart Tank 500 series
  • HP Smart Tank 530 series
  • HP Smart Tank Plus 570 series
  • HP Smart Tank 7600
  • HP Smart Tank 750
  • HP Smart Tank 790
  • HP Smart Tank Plus 710-720
  • HP Smart Tank Plus 7000
  • HP Smart Tank Plus 660-670
  • HP Smart Tank Plus 6000
  • HP DeskJet Ink Advantage Ultra 4800 All-in-One Printer series

And Linux Mint 20.2, RHEL 8.4 and Manjaro 21.0.7 are officially supported according to the release note.

How to Install HPLIP 3.21.8 in Ubuntu:

The official installer package, “hplip-3.21.8.run“, is available to download at the link below:

After downloaded the file, open the Downloads folder in terminal by right-clicking on blank area in that directory and choose ‘Open in Terminal.’

Open Downloads folder in terminal

When terminal opens, add executable permission to the file by running command:

chmod u+x hplip-3.21.8.run

Then run the installer and follow terminal output to start installing the driver:

./hplip-3.21.8.run

For the python-pyqt5 dependency issue, see this how to tutorial. Or, you can manually install the dependencies via command:

sudo apt-get install libcups2 cups libcups2-dev cups-bsd cups-client libcupsimage2-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 libsane-dev sane-utils xsane libavahi-client-dev libavahi-core-dev

And compile it from source folder (generated automatically once you run the .run file) via configure, make, sudo make install.

Uninstall HPLIP 3.21.8:

While installing the driver, it creates a source folder that contains an uninstall script. Until you remove that folder, you can run the script to remove HPLIP:

cd ~/Downloads/hplip-3.21.8/ && sudo ./uninstall.py

This is a step by step tutorial shows how to add “open as root (or administrator)” option in Pantheon file browser in Elementary OS 6 Odin.

Elementary OS now is at version 6.0 based on Ubuntu 20.04 LTS. For those looking for the “Open as Administrator” function to open system file via root user permission, or do copy & paste things outside of user’s home directory, things have changed.

The executable command for the file manager now is io.elementary.files, and the command to start text editor is io.elementary.code. Both are named in Flatpak app style. Gksu has gnone, and “pkexec” takes the place to allow an authorized user to execute program as root.

Add Open as Admin action in Elementary OS 6:

1. ) Firstly, search for and open “terminal” from the top-left corner Applications menu.

2. When terminal opens, run command to create (& edit via nano) the configuration file for option to edit file as root user privilege:

sudo nano /usr/share/contractor/io.elementary.code.open-as-root.contract

When the file opens in terminal, paste following lines and save via Ctrl+X, type y and hit Enter.

[Contractor Entry]
Name=Edit as Administrator
Icon=io.elementary.code
Description=Edit file via root user privilege
MimeType=text/plain;
Exec=pkexec io.elementary.code %U
Gettext-Domain=code

3. And create another config file for an option to open folder as root permission:

sudo nano /usr/share/contractor/io.elementary.files.open-as-root.contract

Then paste the following lines and save it (Ctrl+X, type y, and hit Enter):

[Contractor Entry]
Name=Open as Administrator
Icon=system-file-manager
Description=Open a folder via root user privilege
MimeType=inode/directory;
Exec=pkexec io.elementary.files %U
Gettext-Domain=file manager

After creating the two files, “Edit as Administrator” and “Open as Administrator” context menu option appear when right-clicking a file or folder immediately without restart.

As you see, you can create more actions by creating files with “.contract” extension under /usr/share/contractor directory. The name will be displayed as menu option, and you can find value of icon, MineType and Exec by checking the app shortcut file (.desktop) under /usr/share/applications directory.

That’s all. Enjoy!

For Reddit users, Gtkeddit is another GTK app for Linux desktop and mobile.

It’s a free and open-source app written in C++. With the libadwaita library (formerly libhandy), it has an adaptive UI that works on Linux phones such as the Pinephone.

The software has dark mode for working at night, though I don’t find how to enable it in Ubuntu using the Flatpak package. And it allows you to browser without an account.

Compare to Giara, another Reddit App written in Python with GTK4, the UI navigation feels good and smoother in Gtkeddit. Though it freezes every time during loading new content, maybe due to my poor VPN network connection.

All functions including new post, rely and comment work in new navigation page instead of a pop-over dialog. And the developer promoted that it works better on Pinephone, boots and runs faster on slow hardware.

Other features in Gtkeddit:

  • Browse home feed
  • Search subreddits/users/posts
  • Submit Text/Url/Images/Videos
  • View images, galleries
  • Watch Reddit/Youtube videos in app
  • View and reply to posts/comments
  • Save posts / comments
  • Browse user Saved/Upvoted/Downvoted/Hidden/Gilded posts
  • Browse user Subreddits

How to Install Gtkeddit:

Most Linux can install the app via the Flatpak package from the flathub page. For Ubuntu users, there’s a step by step guide for Ubuntu 18.04, Ubuntu 20.04 and higer.

1.) Firstly, open terminal (Ctrl+Alt+T) and run command to install the daemon if you don’t have it:

sudo apt install flatpak

Flatpak supports Ubuntu 18.04 and even Ubuntu 16.04, you have to add the Ubuntu PPA first!

2.) Then add the flathub repository, the preferred place to get Flatpak apps.

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

3.) Finally, install the Reddit App via command:

flatpak install flathub io.gitlab.caveman250.gtkeddit

Like normal apps, open it by searching from start menu and enjoy!

Uninstall Gtkeddit:

To remove the app, simply use command:

flatpak uninstall --delete-data io.gitlab.caveman250.gtkeddit

Remove the --delete-data if you want to keep the personal data for the app. And run command to run unused runtime which may free up more disk spaces.

flatpak uninstall --unused

For Gnome fans, Apostrophe is a clean and intuitive Markdown editor you should try!

Apostrophe is one of the Gnome Circle Apps that provides a modern and distraction-free writing environment for Linux.

The editor supports for inputting via Pandoc’s Markdown, CommonMark, GitHub Flavored Markdown, MultiMarkdown and Plan Markdown formats.

The app has Light, Dark, and Gray (maybe) UI appearance. The ‘Hemingway Mode’ is available which will disable the backspace key. And ‘Focus Mode’ will highlight the current line, remove header and bottom bar to provide a zen-like environment when writing.

With inline preview, it formats your text automagically for you. By Ctrl+Clicking on anything, it shows popover preview, links, footnotes, equations.

Live Preview can be set to full window, right / bottom part, or a separate window. In bottom right it indicates how many words you wrote. It also counts characters, sentences, paragraphs, and read time.

And you can save you work as PDF, HTML, ODT. An advanced export dialog allows exporting to more formats including:

  • LibreOffice Text Document.
  • Microsoft Word(docx).
  • EPUB v3.
  • HTML5 Slideshow (reveal.js, DZSlides)
  • LaTeX (tex)
  • LaTeX Beamer Slideshow (tex, pdf)
  • Textile, Texinfo, and more.

How to Install Apostrophe in Ubuntu Linux:

The software is available as universal Flatpak package. You can install it in Ubuntu 16.04, Ubuntu 18.04, Ubuntu 20.04 and higher via following steps:

1.) Open terminal from start menu, and run command to add the Flatpak PPA for Ubuntu 16.04 and Ubuntu 18.04:

sudo add-apt-repository ppa:flatpak/stable

And run sudo apt-get update command to update cache afterwards.

2.) Install the Flatpak daemon if you don’t have it:

sudo apt install flatpak

3.) Add Flathub repository (considered official) that hosts the package:

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

4.) Finally install Apostrophe Markdown editor:

flatpak install flathub org.gnome.gitlab.somas.Apostrophe

Uninstall:

To remove the editor as well as your personal app data, run command in terminal:

flatpak uninstall --delete-data org.gnome.gitlab.somas.Apostrophe

The popular kart racing game SuperTuxKart 1.3 finally goes stable! Here’s how to install it in Ubuntu 18.04, Ubuntu 20.04, and Ubuntu 21.04.

After a year of development, the game now is ported to Switch though you need to have Homebrew installed. So the 3D open-source arcade racer now works on Windows, Linux, macOS, Android, iOS (beta), and Nintendo Switch.

photo via erik mclean (edited)

Thanks to SDL2 and Mary, there’s an option to enable force feedback. You can find it in ‘Options -> Controls’ if you have a controller that support the feature.

The graphics settings now provides “render resolution” option. With it, the resolution can be lowered by up to 50% to get better frame rates.

Other changes in SuperTuxKart 1.3 include:

  • URLs in text on STK UI are now clickable.
  • Lap line extensions to make sure the lap counting still takes place even if you drive a little bit off the road.
  • New high scores selection screen
  • updated SuperTuxKart Blender scripts
  • New Arenas and Karts:
    • Ancient Colosseum Labyrinth – new battle arena in a dark environment inspired by the Rome colosseum.
    • Alien Signal – arena based on a real location of the SETI program.
    • Sara the Racer replaced by the cute Pepper from Pepper&Carrot.
    • Gnu has got a new look, Adiumy and Emule also got a makeover.

See SuperTuxKart 1.3 in video:

How to Get SuperTuxKart 1.3 RC:

Linux Tarball:

Users can grab the Linux tar bar from the github release page (under assets):

Then extract, right-click on the “run_game.sh” file and select Run to launch the game.

Ubuntu PPA:

The racing game has an official Ubuntu PPA that contains packages for Ubuntu 18.04, Ubuntu 20.04, Ubuntu 21.04, Ubuntu 21.10, and their based systems, e.g., Linux Mint 20 and Zorin OS 16.

1.) To add the PPA. Open terminal by either pressing Ctrl+Alt+T on keyboard or searching from the activities overview screen. When it opens, run command:

sudo add-apt-repository ppa:stk/dev

2.) Next, update the system package cache. This is done automatically in Ubuntu 20.04 and higher, though Ubuntu 18.04 and some Ubuntu based systems need to run this command manually:

sudo apt update

3.) Finally, install the game package via apt command:

sudo apt install supertuxkart

How to Remove SuperTuxkart:

To remove kart racing game, simply run the apt command with remove flag in terminal window:

sudo apt remove --autoremove supertuxkart supertuxkart-data

And remove the Ubuntu PPA using command:

sudo add-apt-repository --remove ppa:stk/dev

Giara, the Reddit app for Gnome, released version 1.0. It’s now based on GTK4.

Giara is a free and open-source client for Reddit that runs on Linux. The software is written in Python 3 programming language. With GTK framework and libadwaita (formerly libhandy), it has a modern and adaptive user interface works on both desktop and Linux mobile devices.

What’s New in Giara 1.0:

The new release moves to GTK4 and libadwaita (the GTK 4 port of libhandy), makes the UI more modern. However, due to outdated system libraries the PPA package (unofficial) will not update until Ubuntu 22.04 (maybe).

With built-in image viewer, the 1.0 release has new and improved picture view, adds support for picture galleries. The NSFW (not safe for work) images that involve nudity, sexual content, and so forth are now blurred.

Other changes include optimized post lists based on ListView, custom emojis in post flairs, many improvements and bug-fixes.

How to Install Giara:

For Arch Linux only, an AUR repository is available, while other Linux can install the app via Flatpak package.

Flatpak is an universal Linux package format runs in sandbox. It’s supported out-of-the-box in some distributins, e.g., CentOS, Fedora, Linux Mint, though it needs a separate daemon for running the apps.

And below will show you how to install Giara Flatpak in Ubuntu 20.04 and higher:

1.) Firstly, open terminal (Ctrl+Alt+T) and run command to install the daemon if you don’t have it:

sudo apt install flatpak

Flatpak supports Ubuntu 18.04 and even Ubuntu 16.04, though you have to add the Ubuntu PPA first!

2.) Then add the flathub repository, the preferred place to get Flatpak apps.

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

3.) Finally, install the Reddit App via command:

flatpak install flathub org.gabmus.giara

Like normal apps, open it by searching from start menu and enjoy!

Uninstall Giara:

To remove the app, simply use command:

flatpak uninstall --delete-data org.gabmus.giara

Remove the --delete-data if you want to keep the personal data for the app. And run command to run unused runtime which may free up more disk spaces.

flatpak uninstall --unused