Archives For November 30, 1999

Ubuntu will by default go sleep when your laptop battery is running into critical low. For those who want to apply anther action, here’s how to do the trick in Ubuntu with the default GNOME desktop.

NOTE: This tutorial is tested and works in Ubuntu 22.04 with default GNOME. It may also works in current other Ubuntu releases.

1. First, open terminal either by searching from ‘Activities’ overview or by pressing Ctrl+Alt+T on keyboard.

2. When terminal opens, run command to edit the upower config file:

sudo gedit /etc/UPower/UPower.conf

For Ubuntu 22.10+, replace gedit in command with gnome-text-editor, or use nano instead for other Linux.

3. Once file opens, scroll down and find out the line CriticalPowerAction=HybridSleep (the last line in my case). As the description says, you can change the value into:

(Optional) 4. For choice, you may also edit the value of following lines:

  • PercentageLow=20 – battery low when percentage 20% left.
  • PercentageCritical=5 – battery critical when percentage 5% left.
  • PercentageAction=2 – perform the action you set in step 3 when battery 2% left.

In case you want to use time remaining instead, find out and change UsePercentageForPolicy=false. So, following values will be in active:

  • TimeLow=1200 – battery low when 1200 seconds left.
  • TimeCritical=300 – battery critical when 300 seconds left.
  • TimeAction=120 – perform action (step 3) when 120 seconds left.

5. Once you saved the file (for nano text editor, press Ctrl+X, type y and hit Enter), run the command to restart upower service to apply changes:

sudo systemctl restart upower.service

That’s all. Enjoy!

In Ubuntu 18.04 and higher, Gnome’s built-in screen keyboard can be enabled via universal access menu.

However, it only triggers automatically in Gnome Activities and Application menu, nowhere else. See the bug. Though it’s marked as fixed, I still have the problem in my laptop.

For those have the same issue, you can install the previous Ubuntu 16.04’s default onboard screen keyboard utility in Ubuntu 18.04 as a workaround.

Open Ubuntu Software, search for and install onboard as well as onboard settings.

Once installed, launch the utility from Gnome application menu.

In onboard settings, set up auto-show, layout, theme, etc and enjoy!

Teams for Linux is an unofficial Microsoft Teams client for Linux using Electron. It uses the Web App and wraps it as a standalone application using Electron.

The latest Teams for Linux 0.4 was released 2 days ago with mostly stability improvements and fixes. And the spellchecker has been re-implemented not to need an external module.

Teams for Linux is available to install via Snap package (runs in sandbox). So you can easily search for and install it from Ubuntu Software utility in Ubuntu 18.04 and higher:

Also native Ubuntu .deb package is available to download at the release page:

Click install the .deb package via Ubuntu Software, or open terminal (Ctrl+Alt+T) and run following command:

sudo dpkg -i ~/Downloads/teams-for-linux*.deb

Once installed, launch the client from your system application menu and enjoy!

Gscan2pdf 2.5.5, GTK tool to produce PDF / DjVu from scanned document, was released yesterday with bug-fixes, some improvements, and updated translations.

Gscan2PDF 2.5.5 changelog:

  • Fix occasional error messages when clearing all pages
  • Only set paper to Manual if not applying profile
  • Update OCR view switching between pages with and without OCR output
  • xz compress log file if xz available
  • Fix bug applying paper after profile set SANE_INFO_INEXACT
  • When saving current settings as new profile, actually set the profile
  • If a device throws an error when opening it, add it to a session blacklist
  • option tolerance to cover buggy backends that return inexact options without setting SANE_INFO_INEXACT
  • Update translations.

How to Install gscan2pdf 2.5.5 in Ubuntu:

The official Ubuntu PPA has made the new release packages for Ubuntu 16.04, Ubuntu 18.04, Ubuntu 18.10, Ubuntu 19.04 and their derivatives.

1. Open terminal either by pressing Ctrl+Alt+T on keyboard or searching for ‘terminal’ from software launcher. When it opens, run command to add the PPA:

sudo add-apt-repository ppa:jeffreyratcliffe/ppa

Type user password (no asterisk feedback due to security reason) when it prompts and hit Enter.

2. For those who have a previous release installed, upgrade it through Software Updater:

For the first time, you can either install it via Synaptic Package Manager or by running following commands in terminal:

sudo apt-get update

sudo apt-get install gscan2pdf

How to Remove:

To remove gscan2pdf, either use your system package manager or run command:

sudo apt-get remove --autoremove gscan2pdf

And the PPA can be removed via Software & Updates utility, under Other Software tab.

The default Gnome desktop has a built-in desktop magnifier. This quick tutorial will show you how to enable this feature in Ubuntu 18.04 and higher.

First of all, install dconf editor from Ubuntu Software utility if you don’t have it.

To enable screen magnifier in Ubuntu:

Open Dconf Editor, then navigate to org/gnome/desktop/a11y/applications.

There turn on the toggle for “screen-magnifier-enabled”.

To change screen magnifier preferences:

I don’t like the default magnified view which fills entire screen. Fortunately, there are options to change the maginifier preferences.

Also in Dconf Editor, navigate to org/gnome/desktop/a11y/magnifier, there are many preference options including:

  • lens-mode: move the magnified view with the mouse pointer.
  • screen-position: screen position of magnified view, left-half, right-half, top-half, bottom-half, or full-screen.
  • mag-factor: magnification factor, minimum = 0.1, maximum = 32.
  • mouse-tracking: determine the position of the magnified mouse image within the magnified view, and how it reacts to system mouse movement.

There are also options to enable crosshairs, inverse lightness, scroll beyond the edges of desktop, etc.

Mesa 3D graphics library 19.0.8 now is available to install in Ubuntu 18.04, Ubuntu 19.04 via PPA repository.

For those sticking to the open-source RadeonSI / RADV / Intel / Nouveau drivers, Mesa 19.0.8 is the latest bug-fix release for 19.0 series which fixes a critical bug found in the 19.0.7 release.

Canonical’s Timo Aaltonen has made Mesa 19.0.8 package into “Ubuntu-X” team PPA for Ubuntu 18.04 and Ubuntu 19.04.

To get better open-source graphics driver performance, you may install Mesa 19.0.8 via following steps:

1. Open terminal either via Ctrl+Alt+T keyboard shortcut or from software launcher. When it opens, run command:

sudo add-apt-repository ppa:ubuntu-x-swat/updates

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

2. After adding the PPA, do system update via command:

sudo apt-get dist-upgrade

apt-get update is not required any more in Ubuntu 18.04 since adding PPA automatically refreshes system package cache.

3. Finally check your driver version via command:

glxinfo | grep "OpenGL version"

Uninstall:

To restore changes and downgrade to the default drives shipped in Ubuntu 18.04, run command:

sudo apt-get install ppa-purge && sudo ppa-purge ppa:ubuntu-x-swat/updates

Xsnow, let it snow on your desktop, now is working on Gnome, KDE, FVWM desktop in Ubuntu 18.04 and higher.

Xsnow is a handy command tool that brings Christmas to your desktop. However, it does not work properly in Ubuntu since Ubuntu 12.04 Precise.

Now a brand new Xsnow based on the original xsnow-1.42 is available to work on many desktop environments, and a simple graphical interface is available for those who are not familiar with command line.

Finally, a working xsnow for Gnome, KDE, etc. Based on the original xsnow-1.42 created by Rick Jansen, after the xsnow-2019 conference in Antas (Spain) we now have available a xsnow that works on many desktop environments, even Raspian. By request of many beta-testers, a graphical front end has been created as well.

For Ubuntu 18.04, Ubuntu 18.10, Ubuntu 19.04, and higher, download the package from the link below:

Select download i386.deb for 32-bit OS, amd64.deb for 64-bit OS, or armhf.deb for Raspberry pi.

Then double-click to install via Ubuntu Software, or run command in terminal (Ctrl+Alt+T):

sudo dpkg -i ~/Downloads/xsnow_*.deb

Once installed, launch the tool from your application menu and enjoy!

(Optional) To remove the tool, simply run command in terminal:

sudo apt remove xsnow

Oracle Virtualbox 6.0.10 was released today with many improvements and fixes to Linux hosts and guests.

Virtualbox 6.0.10 release highlights:

  • Fix guest display resolution resize issue with recent Linux hosts.
  • Fixed guru meditation when raw mode is enabled
  • Fixed possible VM crash under certain circumstances
  • Fixed “unrecoverable error” problems in OHCI emulation.
  • USB: improve captured device identification
  • Support UEFI secure boot driver signing on Ubuntu and Debian hosts
  • Fix focus grabbing problems with recent Qt versions.
  • Share folder fixes for Windows hosts and guests.
  • Linux kernel module build fixes for various kernels
  • Remember Linux guest screen size after a guest reboot

How to Install Virtualbox 6.0.10 in Ubuntu:

For all current Ubuntu releases, you can either download the official .deb binary from the link below:

or install VBox from its official apt repository:

1. Open terminal (Ctrl+Alt+T), paste below command and run to add the repository:

sudo sh -c 'echo "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" >> /etc/apt/sources.list.d/virtualbox.list'

For Linux Mint, you HAVE to replace $(lsb_release -sc) in the command with bionic for Mint 19.x, or xenial for Mint 18.x.

2. Then download and install the repository key via command:

wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -

3. Refresh system package cache via command:

sudo apt update

4. Finally install Virtualbox 6.0:

sudo apt install virtualbox-6.0

Uninstall:

To remove it, simply run command in terminal:

sudo apt remove --autoremove virtualbox-6.0

And go to Software & Updates -> Other Software to remove apt repositories.

Gnu Octave finally offers official Snap package for Linux desktops, so far in beta, which means you can now easily install the latest Octave via Ubuntu Software and always keep updated.

Octave snap is a containerized software package comes with run-time libraries bundled and auto-updates itself once a new version package is published.

UPDATE March, 2024: The GNU Octave Snap package is outdated and stuck at v7.1.0!

For Ubuntu 18.04 and higher, the snap can be directly installed from Ubuntu Software utility:

For Ubuntu 16.04, open terminal either via Ctrl+Alt+T or from application menu. When it opens, run command to install snapd daemon first:

sudo apt-get install snapd

Then install Octave via command:

sudo snap install --beta octave

Snap co-exists with legacy packages, launch it via snap run octave if both are installed.

(Optional) To remove the package, either use Ubuntu Software or run command in terminal:

sudo snap remove octave

FeedReader is modern GTK+ 3 client for online RSS services like tt-rss and others.

FeedReader currently supports Feedbin, Feedly, FreshRSS, InoReader, Local RSS, Nextcloud/ownCloud, The Old Reader, and Tiny Tiny RSS.

It combines all the advantages of web based services like syncing across all your devices with everything you expect from a modern desktop application. It also allows to save articles to read-it-later with Instapaper, Pocket, or Wallabag.

Also it lets you share articals with others via Email, Twitter, Telegram.

FeedReader in Elementary OS

How to Install FeedReader in Ubuntu 18.04 & Higher

The software is available in universe repositories of Ubuntu 18.10, Ubuntu 19.04, Ubuntu 19.10, but they are old and won’t receive future updates.

To install the latest release in Ubuntu 18.04 and higher, open terminal either via Ctrl+Alt+T or from application menu, and run following commands one by one:

1. First run command to install the flatpak framework:

sudo apt-get install flatpak

2. Add flathub repository, which hosts a large list of flatpak applications:

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

3. Finally install RSS client via command:

flatpak install flathub org.gnome.FeedReader

And future install updates if available via flatpak update org.gnome.FeedReader command.

(Optional) To remove FeedReader flatpak package, run command in terminal:

flatpak uninstall org.gnome.FeedReader