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:
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.
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.
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.
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:
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.
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:
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.
Linux Kernel 5.14 was released with latest features and new hardware support. Here’s how to install it in Ubuntu.
Linus Torvalds announced the release of Kernel 5.14 this Sunday:
So I realize you must all still be busy with all the galas and fancy balls and all the other 30th anniversary events, but at some point you must be getting tired of the constant glitz, the fireworks, and the champagne. That ball gown or tailcoat isn’t the most comfortable thing, either. The celebrations will go on for a few more weeks yet, but you all may just need a breather from them.
And when that happens, I have just the thing for you – a new kernel release to test and enjoy. Because 5.14 is out there, just waiting for you to kick the tires and remind yourself what all the festivities are about.
…
What’s New in Kernel 5.14:
The new Kernel introduced Core Scheduling to reduce SMT/HT information leak risks, new graphics support including AMD Yellow Carp, AMD Beige Goby, and Intel Alder Lake P.
There are also new or improved hardware support, including:
AMD Smart Shift laptops.
AMD SFH support for light sensor and human presence detection with newer AMD Ryzen laptops.
Dell Hardware Privacy laptop support.
Raspberry Pi 400 support.
Microsoft Xbox One Controller select/share button support.
How to Install Kernel 5.13 in Ubuntu:
The Mainline Kernel PPA provides packages for Ubuntu 21.04 and Ubuntu 21.10. However, it does not include any Ubuntu-provided drivers or patches, and NOT supported and are not appropriate for production use.
The .deb packages for amd64, arm64, ppc64el and s390x are available to download at the link below:
Since the previous packages needs Ubuntu 21.04+, you may keep an eye on this third-party PPA which re-build the Kernel with Ubuntu 20.04 LTS support.
Uninstall Linux Kernel 5.14:
Restart your machine and select boot with the previous kernel in boot menu ‘Grub2 -> Advanced Option for Ubuntu’. Then run command to remove Linux Kernel 5.14:
The MATE desktop 1.26 now is available to install via the official Ubuntu PPA!
UPDATE 2024: This PPA is so far only for Ubuntu 20.04 LTS, since Ubuntu 22.04/24.04 has MATE 1.26 in system repository.
The lightweight MATE desktop environment 1.26 was released a week ago. It features initial wayland support, do not disturb applet, and many core applications updates!
The Ubuntu MATE developer team finally made a new Ubuntu PPA contains the packages for Ubuntu 20.04 LTS, MATE 1.26 will be there in the main repositories.
Install MATE 1.26 via PPA:
Firstly, search for and open terminal from start menu, or simply press Ctrl+Alt+T on keyboard. When terminal opens, run following commands one by one.
1. Add MATE PPA.
To add the official PPA, copy and paste the command below into terminal and hit Enter.
Computer hibernate does not work in your Ubuntu? Here’s step by step complete guide shows how to enable this feature in Ubuntu 24.04 and Ubuntu 22.04 LTS.
Similar to suspend, hibernate can be used to save your system work. It moves the content from RAM memory into swap area in hard disk, then shutdown your machine completely. Next time you boot the computer, it restores the system status exactly as it was.
NOTE:This tutorial now is tested and works on my Ubuntu 22.04 and Ubuntu 24.04 Laptop with default GNOME. It may NOT work if you’ve used Grub-Customizer to edit the boot-menu!!
For other desktop environments, you need to replace gnome-text-editor or gedit in following commands with your favorite text editor, or use the universal nano command line editor that works in most desktops (use Ctrl+S to save, Ctrl+X to exit).
Step 1: Check the ID of Swap Area & Create if NOT exist.
System hibernate feature saves data into swap area on disk. You need to first find out the ID or UUID of the swap device, so to know where to resume from hibernation.
a. Check Swap Area:
First, press Ctrl+Alt+T on keyboard to open terminal. When it opens, run command:
swapon --show
The command will output all enabled swap devices in your system, along with its name, type, size, priority, etc., information.
If the TYPE is a partition, then you need to write down its name, which is usually ‘/dev/sdaX‘ or ‘/dev/nvme0n1px‘. Next go directly to step 2
If it’s a file, then you need to go next step (b.) to find out the root partition (Ubuntu file-system) name, as well as the physical offset to locate that swap file.
NOTE: A Linux system may have multiple swap devices, go check the one with highest priority! If the swap name is “/dev/zram0”, then it does NOT support hibernation!!
b. Find root partition name and physical offset
So, if your system uses a file for swap area, then you need to find out the root partition name + physical offset to locate it.
To get the system partition name, run the command below, and check the one mounted on “/”:
df -h
In the screenshot below, the root is /dev/nvme0n1p6 in my case.
To get the physical offset of the file, use command:
sudo filefrag -v /swapfile
Here, replace /swapfile with yours swap file name (see swapon --show output). Then, copy the start number under physical_offset. It’s 3606528 in my case.
c. Create Swap File, if you don’t have Swap area:
To create a file for swap if you don’t have it, run following commands one by one:
a.) Pre-allocate a disk place for a file via command:
Replace 8192 MB (8G) to your desired size. As large as RAM is recommended for swap.
b.) Change the file permission to only read & write for root:
sudo chmod 600 /swapfile
c.) Set the file as swap area:
sudo mkswap /swapfile
d.) Finally enable it by running command:
sudo swapon /swapfile
If you already have a swap space, and want to use this one with higher priority, run sudo swapon -p 100 /swapfile instead. Replace 100 with any number bigger than the existing swap.
And, if you already ‘swapon’ the swap, then you need to disable it via sudo swapoff /swapfile first, then swap-on with priority number with the command above.
e.) And write it into ‘/etc/fstab’, so Ubuntu will mount it automatically on startup.
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
When done, you may run step b. to find out the root partition name plus physical offset for this swap file.
Step 2: Enable Hibernate by adding Kernel Parameter
After step 1, you can now add kernel parameter in Grub boot-loader config file, to tell it to try resuming from the swap device on every boot.
To do so, press Ctrl+Alt+T to open terminal, and run command to edit the config file:
sudo gnome-text-editor /etc/default/grub
For Ubuntu 22.04 and earlier, replace gnome-text-editor with gedit. For non-GNOME desktop, use other text editor or nano that works for all.
For Swap partition, add resume=/dev/xxx (do replace “/dev/xxx” to the Swap partition name you got in step 1) as value of “GRUB_CMDLINE_LINUX_DEFAULT”.
For Swap file, add resume=/dev/xxx resume_offset=xxx (also replace xxx with the root partition name and physical offset number according to step 1) instead for value of “GRUB_CMDLINE_LINUX_DEFAULT”.
Finally, save the file and apply changes by updating the Grub configuration via command:
sudo update-grub
Step 3: Check if hibernate works:
NOTE: The hibernation won’t work with secure boot!! You have to disable it in BIOS/EFI first. With secure boot enabled, you’ll get error:
“Failed to hibernate system via logind: Sleep verb “hibernate” not supported”.
To verify if the hibernation function works now, open terminal (Ctrl+Alt+T) and run command:
sudo systemctl hibernate
Save you work before running the command!! Then type user password when it asks. The command will turn off your computer/laptop. Next you can boot the machine again, and see if it restores your system status after login.
If hibernation works, go to Step 4 to enable ‘Hibernate’ option in shutdown menu. If NOT, then your computer may NOT support this feature or something has gone wrong.
Troubleshooting:
For Ubuntu 24.04 with swap file, there was a bug, that may cause “Call to Hibernate failed: Invalid argument” error when running the hibernate command. In the case, the hibernation may only work on first action.
The bug has been fixed in Ubuntu 24.04.1. And, here is just the note about the workaround:
First, open terminal and run command lsblk to get the MAJ:MIN value of the root partition. If you don’t know root name, use df -h to find the one mounted on “/”.
Next, run command to create a tmpfiles.d config file:
sudo nano /etc/tmpfiles.d/hibernation_resume.conf
When file opens in terminal window, add the lines below:
# Path Mode UID GID Age Argument
w /sys/power/resume - - - - 259:6
Here, replace 259:6 according to MAJ:MIN value you got in last command. Then, press Ctrl+S to save file and Ctrl+X to exit.
This config file tells to write MAJ:MIN value to the /sys/power/resume automatically on system boot, so to workaround the bug until it was fixed.
Regenerate initramfs if hibernate to Swap file
Hibernation works in my case without this step!! If it’s NOT for you, try regenerating initramfs via a new rule.
Firstly, open terminal (Ctrl+Alt+T) and run command to create a config file:
sudo gedit /etc/initramfs-tools/conf.d/resume
Then paste the line “RESUME=/dev/xxx resume_offset=xxx” (replace xxx with correct partition name and offset number) and save it.
After saving the file, regenerate initramfs via command:
sudo update-initramfs -c -k all
Finally reboot and test hibernate function again.
Step 4: Enable Hibernate option in Power-Off Menu:
After enabled the function, you can now add a menu option into the system tray shutdown menu.
Option 1: The legacy method for For Ubuntu 22.04 and earlier, though it still works in Ubuntu 24.04.
1.) First, open terminal (Ctrl+Alt+T) and run command to create the config directory, that’s not exist by default in Ubuntu 24.04:
When the file opens, paste following lines and save it.
[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
ResultActive=yes
Option 2: Thanks to this thread, since Ubuntu 24.04, the new method to add hibernate menu option is to create config file under /etc/polkit-1/rules.d/ directory.
For those first time installing Gnome extension, you need to run command to install “chrome-gnome-shell” package first:
sudo apt install chrome-gnome-shell
And click the “click here to install browser extension” link in the extension page and refresh the page if you don’t see the toggle icon.
Or, search for and install “Extension Manager” from Ubuntu Software, and use the tool to search and install that extension:
After installed the extension, go back “Installed” tab in Extension Manager window, and click configure the extension for showing/hiding power-off menu options (May need log out and back in).
The Ubuntu Team announced the release of Ubuntu 20.04.3 LTS today for its Desktop, Server, and Cloud products, as well as official flavors.
Ubuntu 20.04.3 includes hardware enablement stack for use on newer hardware. It’s Linux Kernel 5.11 provided via ‘linux-generic-hwe-20.04‘ package. If you have install the package previously, you should have been running on the Kernel for a period of time.
Besides that, the release includes mainly bug-fixes, installation media, security and stability updates, according to the announcement:
Like previous LTS series, 20.04.3 includes hardware enablement stacks for use on newer hardware. This support is offered on all architectures.
Ubuntu Server defaults to installing the GA kernel; however you may select the HWE kernel from the installer bootloader.
As usual, this point release includes many updates, and updated installation media has been provided so that fewer updates will need to be downloaded after installation. These include security updates and corrections for other high-impact bugs, with a focus on maintaining stability and compatibility with Ubuntu 20.04 LTS.
How to Get Ubuntu 20.04.3 LTS:
If you’re running Ubuntu 20.04 now, simply open ‘terminal’ and run command to install all available system updates:
sudo apt update && sudo apt upgrade
Or install all updates via “Software Updater” will bring you to the new point release.
To verify your Ubuntu edition, run cat /etc/issue, lsb_release -d, or open Settings -> About page.
Alternatively, grab the Ubuntu 20.04.3 disc image from the link below: