Archives For Ubuntu 18.04

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.

gnome shell

The Gnome login screen normally shows a list of available users to log in as. For those who want to disable showing the user list, and manually type a username to login with, below I will show you how.

Open terminal by pressing Ctrl+Alt+T on keyboard, when it opens, run following commands one by one:

1. Run command to get access to root:

sudo -i

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

2. Then switch to user gdm, which is required to run gsettings to configure gdm settings.

su gdm -s /bin/bash

3. Finally hide user list from login screen using Gsettings:

gsettings set org.gnome.login-screen disable-user-list true

After that, restart your computer and enjoy!

How to Restore

To restore the change, open terminal and re-do previous steps, except running the last command with:

gsettings set org.gnome.login-screen disable-user-list false

gnome shell

The trash can icon is moved from left launcher to desktop icon since Ubuntu switched back to Gnome Desktop.

For those using files context menu or keyboard shortcut to delete file folders, and getting access to trash can via Files (nautilus file browser), the desktop icon is kinda useless and you may want to remove it.

You can easily remove (hide) the trash can desktop icon by doing following steps:

1. Open Ubuntu Software, search for and install Gnome Tweaks, a Gnome 3 desktop configuration tool.

2. Once installed, launch Gnome Tweaks and navigate to Desktop pane. There you can see the toggles to show or hide some desktop icons.

Simply turn off the toggle for Trash and enjoy!