Archives For Howtos

The latest release of Mesa graphics library 17.2.2 is now available for users of Ubuntu 16.04 to install via PPA.

Mesa 17.2.2 is a bug-fix release for the 17.2 series. It was released two weeks ago and finally available in the “Ubuntu-X” team PPA for Ubuntu 16.04.

Mesa 17.2 contains many RADV/ANV Vulkan driver improvements, Vulkan and OpenGL performance improvements, more work towards OpenGL 4.6 compliance, and a wealth of other open-source driver improvements.

How to Install Mesa 17.2.2 in Ubuntu 16.04 via PPA:

1. Open terminal either via Ctrl+Alt+T keyboard shortcuts or by searching for “terminal” from application launcher. When it opens, run command to add the PPA:

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

Input your password (no visual feedback while typing) when it prompts and hit Enter.

Mesa ppa

2. Then refresh your system and install upgrades via commands:

sudo apt-get update

sudo apt-get install dist-upgrade

3. To check result, run command:

glxinfo | grep "OpenGL version"

How to Restore:

To revert back to the original Mesa 3D graphics library in Ubuntu, get into command console and run command:

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

HP Linux Imaging and Printing

HPLIP, an open-source HP developed Linux drivers for HP printers, has reached the 3.17.10 release. Two new scanners and Debian 9.1 are supported in the release.

New scanners supported in HPLIP 3.17.10:

  • HP Scanjet Enterprise Flow N9120 fn2 Document Scanner
  • HP Digital Sender Flow 8500 fn2 Document Capture Workstation

Download / Install HPLIP 3.17.10:

To install the software, download the package “hplip-3.17.10.run” from the link below:

HPLIP Download Page

Then open terminal via Ctrl+Alt+T or search for “terminal” from app launcher. When it opens, run command:

cd ~/Downloads/ && chmod +x hplip-3.17.10.run && ./hplip-3.17.10.run

Input your password (no visual feedback while typing) when it prompts and hit Enter.

install hplip 3.17.10

Then follow the terminal outputs, answer some questions to build and install HPLIP on your system. When everything is done, plug/re-plug your printers and enjoy!

FFMPEG

The FFmpeg multimedia library 3.4 “Cantor” was released earlier today. Here’s how to install it in Ubuntu 14.04, Ubuntu 16.04 via PPA.

Click to see what’s new in FFmpeg 3.4:
  • deflicker video filter
  • doubleweave video filter
  • lumakey video filter
  • pixscope video filter
  • oscilloscope video filter
  • config.log and other configuration files moved into ffbuild/ directory
  • update cuvid/nvenc headers to Video Codec SDK 8.0.14
  • afir audio filter
  • scale_cuda CUDA based video scale filter
  • librsvg support for svg rasterization
  • crossfeed audio filter
  • spec compliant VP9 muxing support in MP4
  • remove the libnut muxer/demuxer wrappers
  • remove the libschroedinger encoder/decoder wrappers
  • surround audio filter
  • sofalizer filter switched to libmysofa
  • Gremlin Digital Video demuxer and decoder
  • headphone audio filter
  • superequalizer audio filter
  • roberts video filter
  • The x86 assembler default switched from yasm to nasm, pass --x86asmexe=yasm to configure to restore the old behavior.
  • additional frame format support for Interplay MVE movies
  • support for decoding through D3D11VA in ffmpeg
  • limiter video filter
  • libvmaf video filter
  • Dolby E decoder and SMPTE 337M demuxer
  • unpremultiply video filter
  • tlut2 video filter
  • floodfill video filter
  • pseudocolor video filter
  • raw G.726 muxer and demuxer, left- and right-justified
  • NewTek NDI input/output device
  • Some video filters with several inputs now use a common set of options: blend, libvmaf, lut3d, overlay, psnr, ssim. They must always be used by name.
  • FITS demuxer and decoder
  • FITS muxer and encoder
  • add --disable-autodetect build switch
  • drop deprecated qtkit input device (use avfoundation instead)
  • despill video filter
  • haas audio filter
  • SUP/PGS subtitle muxer
  • convolve video filter
  • VP9 tile threading support
  • KMS screen grabber
  • CUDA thumbnail filter
  • V4L2 mem2mem HW assisted codecs
  • Rockchip MPP hardware decoding
  • vmafmotion video filter
  • use MIME type “G726” for little-endian G.726, “AAL2-G726” for big-endian G.726

How to Install FFmpeg 3.4 via PPA in Ubuntu:

Not recommended to upgrade from distribution build of FFmpeg, unless you need the latest version for special reasons. And some FFmpeg based applications may need to be re-built after following steps.

1. Open terminal via Ctrl+Alt+T or by searching for “Terminal” from the dash. When it opens, run command to add the PPA repository (unofficial):

sudo add-apt-repository ppa:jonathonf/ffmpeg-3

Type in password (no visual feedback due to security reason) and hit Enter.

2. (For Ubuntu 14.04 only), you also need to add another PPA for the dependencies:

sudo add-apt-repository ppa:jonathonf/tesseract

3. Then upgrade FFmpeg using Software Updater:

upgrade ffmpeg

Or simply run command:

sudo apt update && sudo apt upgrade

How to Restore:

To undo the changes and restore to the stock version of FFmpeg in main Ubuntu repositories, purge the PPA via command:

sudo apt install ppa-purge && ppa-purge ppa:jonathonf/ffmpeg-3

The hibernate functionality is disabled in Ubuntu by default because it might not work on some machines. For those who want to re-enable the feature, here’s how to do it in Ubuntu 17.10.

1. Test if hibernate works on your machine.

Open terminal either via Ctrl+Alt+T keyboard shortcut or by searching ‘terminal’ from application launcher. When it opens, run command:

sudo apt install pm-utils && sudo pm-hibernate

After you computer turns off, switch it back on. Did your open applications re-open? If hibernate doesn’t work, check if your swap partition is at least as large as your available RAM.

2. To re-enable hibernate, run the command to edit the configuration file:

sudo nano /var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla

When the file opens in the terminal window, scroll down to find out the section started as:

“[Disable hibernate by default in upower]” and “[Disable hibernate by default in logind]”

Change the both values of ResultActive to yes.

Save the changes by pressing Ctrl+X and then typing y and finally hitting Enter.

To make Hibernate working for multiple users, you can add following lines into the configuration file:

[Re-enable hibernate for multiple users by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate-multiple-sessions
ResultActive=yes

And for some machines you may replace the command in step 2, in case it doesn’t work, with following one:

sudo nano /etc/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla

Press power button to hibernate:

After enabled the hibernate functionality, you can launch Settings from application tool. In the ‘Power’ settings, you are able to set ‘Hibernate’ when the power button is pressed.

Hibernate when laptop lid is closed:

You can also make your laptop automatically hibernate when the lid is closed.

To do so, open terminal (Ctrl+Alt+T) and run command to edit the logind.conf file:

xhost +local: && sudo gedit /etc/systemd/logind.conf

When it opens, change the line #HandleLidSwitch=suspend into HandleLidSwitch=hibernate.

Tip, you can replace the value of HandleLidSwitch to poweroff, ignore for other lid closed actions.

To apply all the changes, restart your computer.

Krita

The open-source digital painting software Krita 3.3.1 was released a few days ago. Features some important bug-fixes and performance updates.

Krita 3.3.1 release highlights:

  • Fix that Krita would crash if you would restart Krita after closing Krita with the reference images docker set to floating
  • Fix that Krita 3.3.0 could not read .kra backup files or .kra files that were unzipped, then zipped up manually
  • Improve the look and feel of dragging and dropping layers
  • Fix a memory leak in the color selectors
  • Add brightness and contrast sliders for textured brushes
  • Add paste-at-cursor
  • Improve performance of the cpu canvas
  • Fix a crash on closing Krita when there is something on the clipboard
  • Add a button to open a file layer’s image in Krita

Krita 3.3.1

How to install Krita 3.3.1 in Ubuntu:

For Ubuntu 16.04, you can’t install the traditional .deb package due to out-dated system Qt libraries. However, a 64-bit Appimage is available for download at the link below:

Download Krita (.appimage)

Appimage is a single executable file with most required runtime and libraries. Just make it executable and run it to launch Krita:

Krita 3.3.1 Appimage

For Ubuntu 17.04, Ubuntu 17.10, Krita 3.3.0 is also available in Krita Lime PPA:

1. Open terminal either via Ctrl+Alt+T or by searching it from app launcher. When it opens, run commands to add the PPA:

sudo add-apt-repository ppa:kritalime/ppa

Input your password (no visual feedback while typing) when it prompts and hit Enter.

2. Then upgrade Krita via Software Updater:

upgrade krita

or run commands to install it for the first time:

sudo apt update && sudo apt install krita

Uninstall:

To remove the PPA, launch “Software & Updates” utility and navigate to Other Software tab.

To remove Krita 3.3.1, either use system package manager or run command:

sudo apt remove --autoremove krita