Archives For Howtos

Wine Stable

Wine 2.0.1, the first point release of the Wine 2.0 stable, was released one day ago. Here’s how to install it in Ubuntu 16.04, Ubuntu 16.10, Ubuntu 17.04, and derivatives.

Wine 2.0.1 has a total of 47 bug-fixes including fixes to Need For Speed, QQ 2013, SC2, git for Windows, incorrect GPU detection, and other bug-fixes. Besides the nearly four dozen fixes, Wine 2.0.1 also deprecates the wineinstall tool.

How to Install Wine 2.0.1 stable in Ubuntu:

The official Wine repository has moved away from launchpad, the new repository now provides both the latest development and stable Wine packages.

To add the repository, open terminal (Ctrl+Alt+T) and run following commands one by one:

1. Download the key:


2. Add the key to your system:

sudo apt-key add Release.key

3. Add the new Wine repository:

sudo apt-add-repository ''

After added the repository, install Wine Stable 2.0.1 either via following commands:

sudo apt update && sudo apt install winehq-stable

Or use Synaptic Package Manager:

NOTE: I’ve got an unmet dependencies issue while installing winehq-stable package in Ubuntu 16.04. It can be fixed by manually run command:

sudo apt install libasound2-plugins:i386


VirtualBox 5.1.20, another maintenance release for the Oracle VirtualBox 5.1 series was released a few hours go.

VirtualBox 5.1.20 is a small release with some bug fixes, changelog includes:

  • GUI: don’t check if the Extension Pack is up-to-date if the user is about to install a new Extension Pack
  • GUI: fixed a possible crash when switching a multi-monitor VM into full-screen or seamless mode
  • GUI: fixed non-literal shortcuts if the keyboard is not captured (5.1.10 regression; Windows hosts only)
  • GUI: several mini-toolbar fixes in full-screen / seamless mode (X11 hosts only)
  • GUI: don’t crash on restoring defaults in the appliance import dialog
  • Windows Additions: another fix for automatic logins for Windows Vista and newer
  • ICH9: fix for Windows guests with a huge amount (>64G) of guest memory
  • BIOS: fixed El Torito hard disk emulation geometry calculation

Oracle Virtualbox

Download / Install VirtualBox 5.1.20:

The official Linux binary packages for the latest VirtualBox are available for download at the link below:

Download VirtualBox for Linux

If you have a previous 5.1 series installed, and added the Virtualbox Linux repository, upgrade Virtualbox using Software Updater:

upgrade virtualbox

To manually add the VirtualBox Linux repository, do:

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

sudo sh -c 'echo "deb $(lsb_release -cs) contrib" >> /etc/apt/sources.list.d/virtualbox.list'

Virtualbox Official Linux repository

2. Download and install the gpg key:

wget -q -O- | sudo apt-key add -

wget -q -O- | sudo apt-key add -

3. To install virtualbox 5.1 for the first time:

sudo apt update && sudo apt install virtualbox-5.1

Wire, an open source, encrypted instant messaging client created by Wire Swiss, finally gets an official APT repository for Debian-based distributions to make it easy to install and receive automatic updates to the app.

The team announced the APT repository for Wire Desktop:

Today we’re happy to take a big step forward — Debian-based distributions (like Ubuntu or Mint) can now get Wire Desktop via APT. You can receive updates of Wire through the update mechanism of your own package management system. Updates are automatic and more secure as we sign the repositories with a PGP key.

Open terminal by pressing Ctrl+Alt+T, and get started by following steps to add Wire repository and install Wire for Desktop:

1. If you already installed Wire, uninstall it (don’t worry, your history will be kept):

sudo apt-get remove wire

2. Install apt-transport-https to receive the package via HTTPS

sudo apt-get install apt-transport-https

3. Import the PGP signing key to be able to verify the downloaded package:

sudo apt-key adv --fetch-keys

4. Add our repository address to your sources list:

echo "deb stable main" | sudo tee /etc/apt/sources.list.d/wire-desktop.list

5. Finally update and install wire-desktop:

sudo apt-get update

sudo apt-get install wire-desktop

After that, you can receive automatic updates to this app via Software Updater utility.


To uninstall Wire desktop client, run command:

sudo apt-get remove wire-desktop && sudo apt-get autoremove

To remove the APT repository, go to Software & Updates -> Other Software tab.

remove wire repository

Your preferred screen resolution is not available in the Display settings? Well, here I’m going to show you how to add a custom screen resolution in Ubuntu 17.04 (Work on all current Ubuntu releases).

On my Ubuntu 17.04 Desktop, the default 1920X1080 (16:9) resolution is kinda high for me. Though there are options to scale for menu, title bars, and text, I prefer 1600X900 (16:9) which is available in Ubuntu 16.04 LTS by default.

To get my screen resolution, I did the following steps:

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


It outputs current screen resolution as well as all available solutions. ALL I need here is the display device name, in my case, it’s eDP-1.

2. Run command to calculate VESA CVT mode lines by given resolution:

cvt 1600 900

Replace 1600 900 (1600X900 in my case) in the command to your desired screen resolution.

3. Copy the Modeline (words with red underline, see previous picture), and run command to add new mode:

sudo xrandr --newmode "1600x900_60.00"  118.25  1600 1696 1856 2112  900 903 908 934 -hsync +vsync

NOTE the command section after --newmode are COPIED from previous step output.

4. Now add the new created mode for your display device:

sudo xrandr --addmode eDP-1 "1600x900_60.00"

Replace eDP-1 (see step1) and "1600x900_60.00" (Step 2 or 3) in the command.

Finally Apply the new resolution in the Display settings:

IMPORTANT: To make Ubuntu remember the new created screen resolution at next start, you have to edit the .profile via command:

gedit ~/.profile

add the 3 lines to the end, commands in step 2, 3, 4, and save the file.

While Ubuntu 17.04 includes the latest GNU Emacs 25.1 in its main repository, here’s how to install the editor in Ubuntu 16.10, Ubuntu 16.04, Ubuntu 14.04, and Ubuntu 12.04 via PPA.

Emacs 25.1 was released months ago with a wide variety of new features. I’ve written about how to build it from the source. However, a PPA repository will make things easier.

Kevin Kelley has created a PPA with Emacs 25 packages for all current Ubuntu releases. A patch was made into the packages to fix for an `xinput`-related bug that, when triggered, causes `emacs` to enter an infinite loop; the process will then be unresponsive and will consume 100% of a single CPU core until you kill it.

1. Open terminal by pressing Ctrl+Alt+T or searching for “Terminal” from start menu. When it opens, run command to add the PPA:

sudo add-apt-repository ppa:kelleyk/emacs

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

2. Then update and install Emacs 25 via commands:

sudo apt update

sudo apt install emacs25

For text-only interface, replace emacs25 with emacs25-nox in the last command.

Don’t know why, but I need to log out and back in to be able to launch Emacs 25 from the Dash.

How to Remove:

To remove Emacs25, open terminal and run commands:

sudo apt remove emacs25 emacs25-nox && sudo apt autoremove

The PPA can be removed by going to System Settings -> Software & Updates -> Other Software tab.