Archives For Ubuntu 18.04

Ubuntu 18.04

The first point release of Ubuntu 18.04 LTS was finally released.

Except for Ubuntu 18.04.1 Desktop, Server, and Cloud, Ubuntu Budgie 18.04.1 LTS, Kubuntu 18.04.1 LTS, Ubuntu MATE 18.04.1 LTS, Lubuntu 18.04.1 LTS, Ubuntu Kylin 18.04.1 LTS, and Xubuntu 18.04.1 LTS are also now available.

Ubuntu 18.04.1 come with updated Kernel and hardware support, many sever and cloud related fixes, installation and upgrade bug-fixes, and desktop fixes that include:

  • Make audio work on Lenovo machines with dual audio codecs
  • Upgrade Gnome Shell, GDM, and some other core apps to 3.28.2
  • Fix login fails (blank purple screen and mouse pointer only)
  • Ubuntu Software improvements for Snap packages.
  • New thunderbolt panel in System Settings (under Devices)
  • And see the change summary for details.

How to get Ubuntu 18.04.1:

For Ubuntu 18.04 users, simply launch Software Updater and install all system updates will bring you to Ubuntu 18.04.1.

For Ubuntu 16.04 and Ubuntu 17.10 users, see the official how to upgrade documentation.

For the iso images, go to http://releases.ubuntu.com/bionic/

Nvidia Linux driver

For Ubuntu 18.04 users plagued by screen tearing issue while using NVIDIA proprietary drivers, this quick tutorial may help you via enable PRIME Synchronization on Optimus.

Screen tearing usually happens on Ubuntu Linux laptop that uses Prime to switch between NVIDIA and Intel drivers.

1. Open terminal (either via Ctrl+Alt+T or by searching for ‘terminal’ from software launcher) and run command to create a new config file:

sudo gedit /etc/modprobe.d/nvidia-drm-nomodeset.conf

Type your password (no asterisks feedback) when it prompts and hit Enter.

2. When the file opens after running the previous command, add following line and save the file.

options nvidia-drm modeset=1

3. Finally update intramfs and reboot your machine.

sudo update-initramfs -u

To check if previous changes work after reboot, run command:

sudo cat /sys/module/nvidia_drm/parameters/modeset

It should output ‘Y’.

In addition, to get much SMOOTHER Nvidia window dragging experience, you can also do:

1. Set maximum performance in Nvidia X Server Settings -> PowerMizer.

2. If you have MORE than enough RAM, set swap tendency to a MUCH lower value by running command to edit sysctl.conf:

sudo gedit /etc/sysctl.conf

and add following 2 lines when the file opens:

via: ubuntuforums

gnome shell

This quick tutorial shows you how to reset Gnome Shell to its original status in Ubuntu 18.04 LTS.

Note following steps will reset most settings to its original status in the default Gnome 3 desktop, but no guarantee of ALL Gnome appearances.

1. As you may already know, there’s a graphical tool Gnome Tweaks that allows to tweak advanced Gnome 3 settings. And it can be installed in Ubuntu Software:

2. Gnome Tweaks offers an option “Reset to Defaults“. It resets desktop theme, icons, fonts, show desktop icons, and some application window settings.

3. Some changes (e.g., Gnome extensions, favorites applications on left launcher, and some dconf database changes) won’t revert back via the Gnome Tweaks option.

If need, you can run command in terminal (Ctrl+Alt+T) to reset all the settings:

dconf reset -f /org/gnome/

That’s it. Enjoy!

gnome shell

For those who want to change the look and feel of the left panel “Ubuntu Dock” in Ubuntu 18.04, Dash to Dock is a Gnome extension that replaces left panel with Mac OS style Dock application launcher.

Dash to Dock is a popular Gnome extension that Ubuntu Dock (the default left panel) is forked from. With it, you can get Ubuntu 18.04 desktop looks like:

1. First time to install a Gnome extension? Then you need to install an add-on for your web browser:

click install add-on for Google Chrome, Chromium, Vivaldi

click install add-on for Firefox

click install add-on for Opera

Then open terminal (Ctrl+Alt+T) and run command to install native connector get the add-ons to work.

sudo apt-get install chrome-gnome-shell

2. Then go to Dash to Dock extension page in your browser, and turn on the toggle to install it.

The left panel changes to dock launcher once you installed the extension.

To change its appearance, right-click on Show Applications icon or use Gnome Tweak Tool to go to the settings.

This quick tutorial is going to show you how to enable hibernate option in the top-right corner power menu in Ubuntu 18.04. So you’ll get a similar menu as the picture shows:

Test if hibernate works

First of first, you have to make sure hibernate works in command line.

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

sudo systemctl hibernate

Please SAVE all of your work before hitting enter, in case something goes wrong and your open applications and documents cannot be recovered.

2. After you computer turns off, switch it back on. Did your open applications re-open?

If hibernate doesn’t work, take a look at this question on askubuntu.

Enable Hibernate in Menus

If hibernate works in command line, continue enable it in the menus via following steps.

1. Open terminal (Ctrl+Alt+T) and run command to create a configuration file:

sudo gedit /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla

When the file opens, paste following content and save it.

[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes

[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
ResultActive=yes

2. Restart your computer and click the link to install the gnome extension: Hibernate Status Button.

For those who never installed a gnome extension, see this how to tutorial for details.