Archives For Ubuntu 16.04

Ubuntu 17.04

A new point release of Ubuntu 16.04 LTS was released last night for its Desktop, Server, and Cloud products, as well as other Ubuntu flavors.

Lukasz Zemczak announced in the Ubuntu Release mailing list:

Like previous LTS series’, 16.04.4 includes hardware enablement stacks for use on newer hardware. This support is offered on all architectures except for 32-bit powerpc, and is installed by default when using one of the desktop images. Ubuntu Server defaults to installing the GA kernel, however you may select the HWE kernel from the installer bootloader.

As usual, this point release includes many updates, and updated installation media has been provided so that fewer updates will need to be downloaded after installation. These include security updates and corrections for other high-impact bugs, with a focus on maintaining stability and compatibility with Ubuntu 16.04 LTS.

Ubuntu 16.04 LTS

To upgrade from a previous Ubuntu 16.04 release, either run Software Updater and install all available updates or run command in terminal (Ctrl+Alt):

sudo apt-get update && sudo apt-get upgrade

Then check result via command:

cat /etc/issue

How to Install HWE Stacks in previous Ubuntu 16.04:

The new point release ships with an updated kernel and X stack (HWE Stacks) by default for the desktop in its ISO images.

These HWE Stacks were released in the LTS point releases as a means to enable newer platforms and components.

For those upgrading from a previous release, you need to manually install the stacks via command:

sudo apt-get install --install-recommends linux-generic-hwe-16.04 xserver-xorg-hwe-16.04

For any reason, you can uninstall HWE stacks by following this tutorial.

gnome shell

It’s been a long time last time I wrote about how to enable “Open as root” or “Open as Administrator” in Nautilus’ context menu.

A Nautilus extension called Nautilus Admin has been created for a period of time. It’s a simply Python script that adds some administrative actions to the right-click menu:

  • Open as Administrator: opens a folder in a new Nautilus window running with administrator (root) privileges.
  • Edit as Administrator: opens a file in a Gedit window running with administrator (root) privileges.

To install the Nautilus extension:

The extension is available for all current Ubuntu releases: Ubuntu 14.04, Ubuntu 16.04, Ubuntu 17.10, and Ubuntu 18.04.

1. Simply open “Terminal” either via Ctrl+Alt+T or from app launcher. Then run command:

sudo apt-get install nautilus-admin

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

2. Then restart Nautilus via command:

nautilus -q

That’s it. Open nautilus file browser again and enjoy with new context menu options!

Visual Studio Code IDE

MicroSoft’s Visual Studio Code IDE now is super easy to install in Ubuntu 14.04, Ubuntu 16.04, and higher via the Snap package format.

David Callé announced the availability of Visual Studio Code as a Snap a day ago:

Launched in 2015 by Microsoft, Visual Studio Code has imposed itself as one of the preferred code editors in the developer community. Cross-platform (powered by Electron), it features a marketplace of more than 3000 extensions where any language can find its linters, debuggers and test runners.

Visual Studio Code

To install Visual Studio Code in all current Ubuntu releases, simply run command (open terminal via Ctrl+Alt+T):

sudo snap install --classic vscode

That’s it! Installed snaps are automatically refreshed, so you’ll always have the latest release of VS Code installed.

In addition, if you’re first time installing a Snap package in Ubuntu, you need to first install snapd, the service which runs on your machine and keeps track of your installed snaps, via command:

sudo apt install snapd

Like traditional deb packages, the snap version of the software can be launched either from Unity Dash, Gnome application launcher, or other desktop menu, or via command vscode.

Uninstall:

To remove VS Code, run the snap command with remove flag:

sudo snap remove vscode

Linux Kernel

Ubuntu 16.04.2 LTS was released 2 days ago with security updates, corrections for high-impact bugs, and hardware enablement stacks for use on newer hardware.

The LTS enablement stacks provide Linux Kernel 4.8 and newer X support, and they are included in the Ubuntu 16.04.2 desktop ISO images.

Ubuntu 16.04 LTS

For original Ubuntu 16.04, and Ubuntu 16.04.1 users, you have to manually install the HWE stacks. And below will tell you how:

How to Install Hardware Enablement Stacks:

Open terminal from app launcher or via Ctrl+Alt+T shortcut key. When it opens, run command:

sudo apt-get install --install-recommends xserver-xorg-hwe-16.04

Type in your password (no visual feedback) and hit Enter.

install hwe stack

After installation, reboot your computer.

How to Uninstall:

1. I don’t like the new X stack in my laptop, so I removed it via commands:

sudo apt remove xserver-xorg-core-hwe-16.04 xserver-xorg-input-all-hwe-16.04 linux-generic-hwe-16.04 xserver-xorg-video-all-hwe-16.04

You’ll see the command also removes the ubuntu-desktop package. Don’t worry. The following commands will install it back.

2. Then install back the original xserver-xorg via commands:

sudo apt install xserver-xorg-core

sudo apt install ubuntu-desktop xserver-xorg xserver-xorg-video-all xserver-xorg-input-all libgl1-mesa-dri:i386 libgl1-mesa-glx:i386

If you want to remove the new kernel 4.8, reboot and select boot with old 4.4 kernel (grub -> Advanced Options), then see this how to tutorial.

peek Animated GIF recorder

For those who want to record a selection of your screen to an animated GIF image, Peek is open source tool for Linux that offers a simple window that can be resized to select a screen area to record over.

peek recording area

After resizing Peek window to select a screen area, click the Record button to start recording.

Once you stop the recording, a dialog pops-up and prompts you to give a name and select where to save the GIF image.

save gif image

After you save the GIF image, a dialog pops-up allows you to open the file folder quickly with the GIF image automatic highlighted.

peek-open-in-folder

Install Peek Animated GIF recorder in Ubuntu 16.04:

Peek so far only support Linux with X11. Other Unix like systems using X11 should work as well. It is planned to also support Wayland and maybe other operating systems in the future.

1. Open terminal from Unity Dash, App Launcher, or via Ctrl+Alt+T keys, then run command to install the requirements:

sudo apt install libsdl1.2debian ffmpeg libavdevice-ffmpeg56

2. Then download peek, Linux.deb package from the link below:

Peek Animated GIF Recorder (.deb)

Finally click install the .deb via Ubuntu Software or use dpkg -i command in terminal:

sudo dpkg -i ~/Downloads/peek-*.deb && sudo apt -f install

Once installed, launch peek from Unity Dash or your app launcher and enjoy!