Archives For November 30, 2017

Quick Tip: No Sound from HDMI Display / TV

Last updated: January 21, 2018

My laptop display was broken last night by accident. Now I connect my Ubuntu laptop to home TV using a HDMI cable for temporary use.

However, there’s no sound output from HDMI device (TV in my case) by default. So here’s the quick tutorial show you how.

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

alsamixer

Then you’ll see something similar in following picture:

Here you need to make sure S/PDIF, S/PDIF 1, S/PDIF 2 are no muted.

  • use Left/Right keys to choose item.
  • press M to mute/unmute (00 means unmuted)

2. If sound is not muted via sound card mixer, launch “System Settings” and go to “Sound”:

Select HDMI device as sound output and unmute output volume.

wireshark

Wireshark network analyzer 2.4.4 was released a week ago. Now it’s finally available in PPA repository for Ubuntu 14.04, Ubuntu 16.04, Ubuntu 17.10.

Wireshark 2.4.4 is a small release with mainly bug-fixes and updated protocol support. Bug-fixes in the release include:

  • Multiple dissectors could crash.
  • The IxVeriWave file parser could crash.
  • The WCP dissector could crash.
  • Disabled the Linux kernel’s BPF JIT compiler due to security vulnerable.
  • Some keyboard shortcut mix-up has been resolved
  • Remote interfaces are not saved.
  • Wireshark & Tshark 2.4.2 core dumps with segmentation fault.
  • SSH remote capture promiscuous mode.
  • For more, see the release note.

How to Install Wireshark 2.4.3 in Ubuntu:

Wireshark has a stable PPA with the latest packages for Ubuntu 14.04, Ubuntu 16.04, and Ubuntu 17.10.

1. To add the PPA, open terminal from Unity Dash / App Launcher, or via Ctrl+Alt+T shortcut keys, and then run command:

sudo add-apt-repository ppa:wireshark-dev/stable

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

wireshark-official-ppa

2. For those who have a previous release installed, launch Software Updater (or Update Manager) to upgrade it to the latest:

upgrade wireshark

Or run the commands below in terminal to install / upgrade wireshark:

sudo apt-get update

sudo apt-get install wireshark

How to restore:

To restore to the stock version of Wireshark in Ubuntu main repositories, purge the PPA via ppa-purge tool:

sudo apt-get install ppa-purge && sudo ppa-purge ppa:wireshark-dev/stable

Wine 3.0 Released with Direct3D 10 and 11 Support

Last updated: January 25, 2019

Wine Stable

The Wine team announced the new stable release Wine 3.0 a day ago a large number of improvements and following great changes:

  • Direct3D 10 and 11 support.
  • The Direct3D command stream.
  • The Android graphics driver.
  • Improved DirectWrite and Direct2D support.

“because of the annual release schedule, a number of features that are being worked on have been deferred to the next development cycle. This includes in particular Direct3D 12 and Vulkan support, as well as OpenGL ES support to enable Direct3D on Android.”, the Wine team announced.

For detailed changes, read the announcement.

Wine running windows app in Linux

How to Install Wine 3.0 in Ubuntu:

Wine has an official apt repository contains packages for Ubuntu 14.04, Ubuntu 16.04, Ubuntu 17.10.

Wine 3.0 binary packages are in the process of being built. Once it’s published in apt repository, do following steps to install it:

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

wget -nc https://dl.winehq.org/wine-builds/winehq.key && sudo apt-key add winehq.key

Type your password (no visual feedback while typing due to security reason) when it asks and hit Enter.

2. Add wine repository via command:

sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/

For Linux Mint 18.x, use following command instead (replace xenial with trusty for 17.x):

sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main'

3. Finally check updates and install wine stable packages:

sudo apt-get update

sudo apt-get install --install-recommends winehq-stable

NOTE: If you get the unmet dependencies issue while installing Wine 3.0, try aptitude instead via command:

sudo aptitude install winehq-stable

The command tells you which packages broke the installation. This usually caused by wrong dependency versions. You can then manually fix the dependencies via Synaptic package manager.

For more details, see the official documentation.

Uninstall:

To remove wine-stable package, run command in terminal:

sudo apt-get remove --autoremove wine-stable wine-stable-amd64

To remove Wine repository, launch Software & Updates utility and navigate to Other Software tab.

PyRadio is an open-source curses based internet radio player that runs in command console. The software is implemented in Python, and uses mplayer or VLC for media playback.

The community has recently made the snap package for PyRadio to make it easy to install the tool in Ubuntu 16.04 and higher either via Ubuntu Software:

or by running command in terminal:

snap install pyradio

Since snap app contains most required libraries and dependencies, the installation file is kinda large.

To start the radio player, run command:

pyradio --play

And here are keyboard shortcuts:

  • Up/Down/j/k/PgUp/PgDown Change station selection
  • Enter Play selected station
  • -/+ Change volume
  • m Mute
  • r Select and play a random station
  • g Jump to first station
  • <n>G Jump to n-th station
  • Space Stop/start playing selected station
  • Esc/q Quit

MKVToolNix, free and open-source Matroska software, reached 20.0.0 release a day ago. Here’s how to install it in Ubuntu 16.04, Ubuntu 17.10.

MKVToolNix 20.0.0 fixed quite a number of bugs in mkvmerge, and removed those options and features deprecated a year ago. An important change was the near complete rewrite of mkvinfo’s internals.

Important notes in the announcement:

  • Feature removal: several deprecated features have been removed:
    • mkvmerge: the deprecated options --identify-verbose (and its counterpart -I), --identify-for-gui, --identify-for-mmg and --identification-format verbose-text
    • support for the deprecated, old, proprietary format used for option files
    • support for passing command line options via the deprecated environment variables MKVTOOLNIX_OPTIONS, MKVEXTRACT_OPTIONS, MKVINFO_OPTIONS, MKVMERGE_OPTIONS and MKVPROPEDIT_OPTIONS
  • mkvinfo: most of its code was re-written in order to lay the groundwork for including its functionality in MKVToolNix GUI but with more features than the existing mkvinfo GUI. Changes include but aren’t limited to:
    • Several element names are a bit clearer (e.g. Maximum cache instead of MaxCache).
    • All timestamps and durations are now output as nanoseconds in formatted form (e.g. 01:23:45.67890123). All additional formats (e.g. floating point numbers output in seconds or milliseconds) were removed.
    • Element names for chapters and tags are now translated if a translation is available.
    • Elements located in wrong positions within the Matroska document are handled better.

How to Install MKVToolNix 20.0.0 in Ubuntu:

The official apt repository offers the latest packages for Ubuntu 16.04, Ubuntu 17.04, Ubuntu 17.10 so far.

Open terminal via Ctrl+Alt+T or by searching it from app launcher. When it opens, do following steps:

1. Run command to add the repository:

sudo sh -c 'echo "deb https://mkvtoolnix.download/ubuntu/ $(lsb_release -sc) main" >> /etc/apt/sources.list.d/bunkus.org.list'

Replace $(lsb_release -sc) with xenial for Linux Mint 18.x. And input your password (no visual feedback while typing) when it prompts and hit Enter.

2. Then install the key:

wget -q -O - https://mkvtoolnix.download/gpg-pub-moritzbunkus.txt | sudo apt-key add -

3. Finally either upgrade the software via Software Updater (Update Manager):

or run command to install the software packages:

sudo apt-get update

sudo apt-get install mkvtoolnix mkvtoolnix-gui

Uninstall:

To remove the repository, launch Software & Updates utility and navigate to Other Software tab.

To remove MKVToolNix, use Synaptic Package Manager or run following command:

sudo apt-get remove --autoremove mkvtoolnix mkvtoolnix-gui

Kxstitch cross stitch

KXStitch 2.1.0, free and open-source cross stitch pattern software, was released a day ago. Here’s how to install it in Ubuntu via PPA.

KXStitch is a cross stitch pattern editor by KDE. The software features:

  • Importing images
  • Multiple floss palettes
  • Multiple stitch types
  • Pattern libraries
  • Reads PCStitch files
  • Flexible printing options

The latest KXStitch 2.1.0 was released silently. No announcement, no changelog. If you want to know what changed, look over the project commits on github page.

KX Stitch PPA for Ubuntu

How to Install KXStitch 2.1.0 in Ubuntu:

For Ubuntu 16.04, Ubuntu 17.10, Ubuntu 18.04 users, it can be easily installed via the unofficial PPA.

1. Open terminal either via Ctrl+Alt+T or by searching for ‘terminal’ from app launcher. When it opens, run command:

sudo add-apt-repository ppa:ubuntuhandbook1/kxstitch

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

2. Then check updates and install the software either via Synaptic Package Manager or by running commands:

sudo apt-get update

sudo apt-get install kxstitch

Uninstall:

To remove KXStitch cross stitch software, either use Synaptic or run command in terminal:

sudo apt-get remove --autoremove kxstitch

The PPA can be removed via “Software & Updates” utility under “Other Software” tab.

uGet download manager

uGet download manager has reached the new stable 2.2 release series. The new release features ability to download from Youtube.

“uGet respects the YouTube Policies so depending on the individual settings of a video it may not be possible to download video from YouTube. The vast majority of videos will be available for use in uGet. The reason this was done instead of using something youtube-dl is because this method allows uGet for Android to also download YouTube videos as well as not have to worry about the ever changing APIs of YouTube that consistently break alternative methods of downloading.” uGet team announced.

The “uGet Chrome Wrapper” browser extension is compatible with Firefox, Chromium, Google Chrome, Opera, and Vivaldi. It will be renamed in the near future to better reflect the functionality.

uGet 2.2.0 features:

  • Support for downloading from YouTube
  • Support for downloading from MEGA
  • Batch Downloading up to 3 Wildcard Ranges
  • Better support for Wayland
  • New Browser Extension: uGet Chrome Wrapper

How to Install uGet 2.2.0 in Ubuntu:

The new release has been made into uGet Stable PPA, available for Ubuntu 14.04, Ubuntu 16.04, Ubuntu 17.10, and Ubuntu 18.04.

1. Open terminal via Ctrl+Alt+T or from app launcher, and then run command to add the PPA:

sudo add-apt-repository ppa:plushuang-tw/uget-stable

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

uGet Stable PPA

2. Then upgrade the download manager from an existing release via Software Updater:

or you can run following 2 commands to check updates and install / upgrade uGet:

sudo apt-get update 

sudo apt-get install uget

How to Remove:

Run following command in terminal will remove the PPA and also downgrade to the stock version of uGet in your Ubuntu system:

sudo apt-get install ppa-purge && sudo ppa-purge ppa:plushuang-tw/uget-stable

If you want to remove uGet download manager, simply search for and remove it via “Ubuntu Software” utility.

Ubuntu 17.04 Reaches End of Life Today

Last updated: January 13, 2018

Ubuntu 17.04

Ubuntu 17.04 Zesty Zapus reaches end of its life today on Jan 13. Ubuntu Security Notices will no longer include information or updated packages for Ubuntu 17.04.

Users can either upgrade to Ubuntu 17.10 (support will end in July 2018), or download Ubuntu 16.04, the current LTS with 5-year support cycle.

Ubuntu announced its 17.04 (Zesty Zapus) release almost 9 months ago, on April 13, 2017. As a non-LTS release, 17.04 has a 9-month support cycle and, as such, will reach end of life on Saturday, January 13th.

At that time, Ubuntu Security Notices will no longer include information or updated packages for Ubuntu 17.04.

The supported upgrade path from Ubuntu 17.04 is via Ubuntu 17.10. Instructions and caveats for the upgrade may be found at:

https://help.ubuntu.com/community/Upgrades

Note that is NOT patched against Meltdown and Spectre vulnerabilities due to the End of Life timing. Users are advised to upgrade to Ubuntu 17.10 and install the updated kernel packages.

Development of a complete response to the highly-publicized Meltdown and Spectre vulnerabilities is ongoing, and due to the timing with respect to this End of Life, we will not be providing updated Linux kernel packages for Ubuntu 17.04. We advise users to upgrade to Ubuntu 17.10 and install the updated kernel packages for that release when they become available.

Read the announcement for more details.

Get-iplayer is a command line tool for downloading TV and radio programmes from BBC iPlayer. The tool features:

  • Downloads TV and radio programmes from BBC iPlayer
  • Allows multiple programmes to be downloaded using a single command
  • Indexing of most available iPlayer catch-up programmes (not BBC Three, Red Button or iPlayer Exclusive)
  • Caching of index with automatic updating
  • Regex search on programme name
  • Regex search on programme description and episode title
  • Filter search results by channel
  • Direct download via programme ID or URL
  • PVR capability (may be used with cron or Task Scheduler)
  • HTTP proxy support
  • Perl 5.10.1+ required, plus LWP, LWP::Protocol::https, XML::LibXML and Mojolicious modules
  • Requires ffmpeg for conversion to MP4 and AtomicParsley for metadata tagging
  • Runs on Linux/BSD (Ubuntu, Fedora, OpenBSD and others), macOS (10.10+), Windows (7/8/10 – XP/Vista not supported)

Install get-iplayer

There are so far 2 ways to install the software package in Ubuntu. They include:

  • Snap package – runs in sandbox environment.
  • Native .deb package through Ubuntu PPA.

Choose either one that you prefer.

Option 1: Snap package

For the latest get-iplayer Snap package, either launch Ubuntu Software or App Center, then search & click install it.

get-iplayer in App Center

Or, you may also open terminal (Ctrl+Alt+T) and run the following command instead to install the snap package:

snap install get-iplayer

Option 2: Ubuntu PPA

For those who prefer the native .deb package, there’s an PPA repository that contains the most recent package for Ubuntu 24.10, Ubuntu 24.04, Ubuntu 22.04, and Ubuntu 20.04. Even the old Ubuntu 16.04 and Ubuntu 18.04 are also supported.

1. First, press Ctrl+Alt+T on keyboard to open terminal. When it opens, run command to add the PPA:

sudo add-apt-repository ppa:m-grant-prg/utils

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

2. Then, install the .deb package via command:

sudo apt install get-iplayer

Linux Mint users may need to run sudo apt update first to manually refresh package cache, while this is done automatically while adding PPA in Ubuntu.

3. The PPA also contains many other software packages. You may run the command below to remove the PPA after installed get-iplayer in case of any package conflict.

sudo add-apt-repository --remove ppa:m-grant-prg/utils

For Linux Mint, also run sudo apt update to update cache.

Usage / examples:

As mentioned, this is a command line tool. You need to open terminal and run any command below to use it.

  • List all TV programmes with long descriptions:
    get_iplayer --long ".*"
  • List all radio programmes:
    get_iplayer --type=radio ".*"
  • List all TV and radio programmes with “doctor who” in the name:
    get_iplayer --type tv,radio "doctor who"
  • List all BBC One programmes:
    get_iplayer --channel="BBC One" ".*"
  • List Radio 4 and Radio 4 Extra programmes with “Book at Bedtime” in the title:
    get_iplayer --type=radio --channel="Radio 4" "Book at Bedtime"
  • Record TV programme number 208 (index from search results) in HD, with SD fallback if HD not available:
    get_iplayer --get 208

    [default is to download best available]

    OR

    get_iplayer --get 208 --tvmode=best
  • Record TV programme number 208 and download subtitles in SubRip (SRT) format:
    get_iplayer --get 208 --subtitles
  • Record multiple TV programmes (using index numbers from search results):
    get_iplayer --get 208 209 210
  • Record a TV or radio programme using its iPlayer URL:
    get_iplayer http://www.bbc.co.uk/iplayer/episode/b01sc0wf/Doctors_Series_15_Perfect/
  • Record a TV or radio programme using the PID (b01sc0wf) from its iPlayer URL:
    get_iplayer --pid=b01sc0wf

Uninstall get-iplayer

For any reason, you may remove the get-iplayer .deb package by running command:

sudo apt remove --autoremove get-iplayer

Or, remove the Snap package using either Ubuntu Software / App Center, or the snap remove get-iplayer command.

Heard about Meltdown and Spectre, two severe hardware bugs that affect billions of devices?

Besides updating the Ubuntu Kernel via “Software Updater”, Intel has released an update processor microcode patch for Linux based operating systems to address the security vulnerabilities.

The patch has been made into Ubuntu repository. So FOLLOWING STEPS IS NOT REQUIRED any more!

Just update your system via Software Updater. Then launch Software & Updates -> Additional Drivers, and mark the line “Using Processor microcode firmware for Intel CPUs from intel-microcode” for installation if it’s not used.

1. Download the Intel Processor patch from the link below:

Intel Processor Micorcode Data File (.tgz)

Extract the file and you’ll get a new file folder with microcode.dat and intel-ucode directory.

2. To install the patch, open terminal via Ctrl+Alt+T or by searching for “terminal” from application launcher. When it opens, run command:

sudo cp -r ~/Downloads/microcode-*/intel-ucode /lib/firmware/

Then run:

sudo -i && echo 1 > /sys/devices/system/cpu/microcode/reload

Finally you need to reboot your machine to apply changes.