Archives For Howtos

TLP

TLP, an advanced power management tool for Linux, released version 1.3 beta for testing. Here’s how to install it in Ubuntu 18.04, Ubuntu 19.10, and Ubuntu 20.04.

If you’re just looking for how to save your Ubuntu laptop battery life, simply open terminal by pressing Ctrl+Alt+T on keyboard and install the stable version of TLP by running command:

sudo apt install tlp

This command line tool comes with a default configuration already optimized for battery life, so you may just forget it afterwards.

TLP 1.3 Beta comes with new configuration scheme. System wide user configuration file /etc/default/tlp is replaced by /etc/tlp.conf. And settings are read in the following order:

  1. Intrinsic defaults
  2. /etc/tlp.d/ – Drop-in customizations
  3. /etc/tlp.conf – User configuration

For more about the beta release, see the github releases page.

How to Install TLP 1.3 Beta in Ubuntu:

The software has an official PPA repository for the beta releases. So for, it supports for Ubuntu 18.04, Ubuntu 19.10, and Ubuntu 20.04.

1.) Open terminal either from application launcher or by pressing Ctrl+Alt+T on keyboard. When it opens, run command to add the PPA:

sudo add-apt-repository ppa:linrunner/tlp-beta

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

2.) If you already installed an old version, open Software Updater and upgrade the package.

Or run command in terminal:

sudo apt update && sudo apt install tlp

Uninstall:

You can run command in terminal to purge the PPA which also downgrade TLP to the stable version available in Ubuntu main repository:

sudo apt install ppa-purge && sudo ppa-purge ppa:linrunner/tlp-beta

To completely remove the TLP power management tool, run command:

sudo apt remove tlp tlp-rdw

gnome shell

For Ubuntu 18.04, Ubuntu 19.10, and higher with the default Gnome desktop environment, there’s a built-in screen recording tool you may not know.

There’s no app shortcut or manual page for the hidden video recording tool. It has limited features that include:

  • Start recording by pressing Ctrl+Alt+Shift+R on keyboard.
  • Stop recording also by pressing Ctrl+Alt+Shift+R.
  • Maximum video length is 30s (change it via following steps).
  • Full-screen recording only.
  • Record to WebM only.
  • Automatically saved videos to user’s Videos folder.

Change video length time limit:

The maximum video length is 30 seconds by default. You can change 30 to any number in seconds or 0 with no time limit. Then you can press the shortcut key again at any time to stop the recording process.

1. Install Dconf Editor from Ubuntu Software and then launch it.

When it opens, navigate to org/gnome/settings-daemon/plugins/media-keys.

Screen down and click to change the value of ‘max-screencast-length’ as you want.

2. Alternatively, run single command in terminal (Ctrl+Alt+T) to change the value:

gsettings set org.gnome.settings-daemon.plugins.media-keys max-screencast-length 0

You may replace number 0 in the command as you want.

gnome shell

This simple tutorial shows how to install ‘McMojave’, a Mac OS Mojave like theme, in Ubuntu 18.04, Ubuntu 19.10.

Following steps will first download and install the GTK theme, icons theme, and a set of wallpapers. And then apply new themes and tweak the left dock to make your Ubuntu desktop look like Mac OS X.

Install Mojave GTK theme:

1. First download the source code of GTK theme from the project releases page:

Mojave GTK (.zip or .tar.gz)

2. Then extract the tarball, select ‘Open in Terminal in source folder’s right-click menu.

3. When terminal opens, run command ./install.sh:

If everything goes OK, the GTK theme should installed successfully for single user usage.

Install Mojave icon theme:

The icon theme source code is available for download at the link below:

Mojave icons (.zip or .tar.gz)

Same to the GTK theme, after downloaded the Mojave icon theme, do following steps one by one:

  • extract the source code by right-clicking on the tarball and selecting ‘Extract Here’.
  • open icon folder in terminal by selecting ‘Open in Terminal’ in its context menu.
  • install the icon theme by running command ./install.sh -a in the pop-up terminal.

Apply new themes to make Ubuntu look like Mac OS X:

1. First open terminal, and run command to install required GTK engine and Gnome Tweak Tool:

sudo apt-get install gtk2-engines-murrine gtk2-engines-pixbuf gnome-tweaks

2. Search for and install “user themes gnome shell extension” (without quotes) from Ubuntu Software.

3. Open Gnome Tweaks, and select the new themes under Applications, Icons, and Shell.

And click here to download Mojave default wallpapers.

4. Finally tweak the left panel by running following two commands in terminal:

  • To move left dock to bottom:
  • gsettings set org.gnome.shell.extensions.dash-to-dock dock-position 'BOTTOM'
  • To shorten the dock:
  • gsettings set org.gnome.shell.extensions.dash-to-dock extend-height false

Mozilla Firefox 72.0 was released today. Picture-in-picture video now is available for Linux and Mac OS.

“Picture-in-picture” feature allows web video to be played in a “pop out” window. Simply select the blue icon from the right edge of a web video to pop open a floating window so you can keep watching while working in other tabs.

Other changes in Firefox 72.0 include:

  • Block fingerprinting scripts by default for all users
  • Replaces notification request pop-ups with speech bubble in address bar.
  • Remove support for blocking images from individual domains.
  • Various security fixes.

Download / Install Firefox in Ubuntu:

You’ll be able to upgrade the pre-installed Firefox to the latest 72.0 release in Ubuntu 16.04, Ubuntu 18.04, and Ubuntu 19.10, through the Software Updater in 2 or 3 days (check the building page).

Or install the Firefox 72 Snap package (runs in sandbox) simply from Ubuntu Software. It can be installed alongside pre-installed Firefox, and will automatically update to the latest.

Also Mozilla Firefox website offers non-install (extract and run the executable) tarball for all Linux desktop.

KeePassX 2 YubiKey support

KeePassXC, KeePass cross-platform community edition, released version 2.5.2 a few days ago. Here’s how to install it in Ubuntu 18.04, Ubuntu 16.04, Ubuntu 19.10 via PPA.

KeePassXC 2.5.2 features significant stability and usability improvements. Changes in the release include:

  • Show UI warning when entering invalid URLs
  • Option to use an entry only for HTTP auth
  • Disable the user interface when merging or saving the database
  • Ability to hide protected attribute after reveal
  • Improve GUI tests reliability on Hi-DPI displays
  • Fix crashes when saving a database to cloud storage

How to Install KeePassXC 2.5.2 in Ubuntu:

For Ubuntu 18.04 and higher, KeePassXC Snap package (runs in sandbox) can be easily installed via Ubuntu Software.

For those prefer native Ubuntu .deb package, open terminal from application menu or press Ctrl+Alt+T on keyboard, and run following commands one by one:

1.) Run command to add the official PPA, which so far supports for Ubuntu 16.04, Ubuntu 18.04, Ubuntu 19.04, and Ubuntu 19.10.

sudo add-apt-repository ppa:phoerious/keepassxc

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

2. Then upgrade KeePassXC from previous release via Software Updater:

or run commands one by one in terminal to install the password manager:

sudo apt update

sudo apt install keepassxc

Uninstall:

To remove the PPA, open Software & Updates and navigate to Other Software tab.

To remove KeePassXC .deb package, run command in terminal:

sudo apt-get remove --autoremove keepassxc