The Simple Things in Life

Jason Benjamin hexusnexus at gmail.com
Tue Jul 19 21:29:34 UTC 2016


I've been irritated by so many obvious shortcomings of Ubuntu this 
version (16.04).  So many of the most obvious fixes are easily 
attributed to configuration files.  I don't know if those who purchase 
the operating system directly from Canonical versus a download are 
having to deal with the same problems or are getting a superior/better 
operating system.  Some of  my main qualms that I am unable to deal 
with are the theming.  Even using alternative themes most of them won't 
even look right as supposed.

The HIBERNATION itself seems to work fine on other closely related 
distros (Elementary OS I tested).  but Ubuntu has problems with it.  
AFAIK the GRUB_CMDLINE breaks this if anything, and alternatives such 
as TuxOnIce don't work either.  My guess is that its Plymouth and there 
doesn't seem to be any clear pointers to a solution.  After desktop 
session saving was deprecated (or removed because of transition from 
Gnome?), this seems like a serious and necessary *implementation* of 
desktop application saving.

I've seen a lot of these blogs that suggest installing extra programs 
and such after the installation.  Here's mine:



Top real things to do after

installing Ubuntu 16.04 LTS:



Fix splash at boot up

while root create file /etc/initramfs-tools/conf.d/splash and add the 
line: FRAMEBUFFER=y

then run sudo update-initramfs -u [-k all]

“-k all” refers to checking all graphics cards

Alternative recourse if the previous splash fix doesn’t cover 
everything

Comment out GRUB_HIDDEN_TIMEOUT and GRUB_HIDDEN_TIMEOUT_QUIET lines 
(both deprecated)

uncomment GRUB_TIMEOUT (preferably set to 0) and add 
‘GRUB_TIMEOUT_STYLE=hidden’

add boot option ‘fastboot’ to /etc/default/grub (to hide file 
system clean message at boot)

add ‘GRUB_GFXPAYLOAD_LINUX=keep’ to same file

run sudo update-grub

Disable upstart entry in grub menu

as root edit /etc/grub.d/10_linux and find line SUPPORTED_INITS and 
remove the option ‘upstart:/sbin/upstart’

run sudo update-grub

Remove Guest account from login

create new file /etc/lightdm/lightdm.conf and add following lines:

[SeatDefaults]

greeter-session=unity-greeter

user-session=ubuntu

allow-guest=false



Fix event sounds

for startup open startup applications and add “canberra-gtk-play -i 
desktop-login &”

as root in /etc/lightdm/lightdm.conf add the line: 
“session-cleanup-script=/usr/share/gnome/shutdown/libcanberra-logout-sound.sh”

Enable hibernate

First make sure your swap partition is large enough

the kernel that comes with Ubuntu is behind and has a bug that causes 
hibernate to crash when in practical situations

go to http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.4.8-wily

download and install kernel headers and image

remove any older kernel packages

run sudo blkid and determine swap UUID

ensure UUID is the same in /etc/initramfs-tools/conf.d/resume

add the same line to /etc/default/grub at the end of 
GRUB_CMDLINE_LINUX_DEFAULT or to GRUB_CMDLINE_LINUX

run sudo update-grub and sudo update-initramfs -u

while root create 
/var/lib/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla 
and add following lines:

[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.hibernate-multiple-sessions

ResultActive=yes



As root edit /usr/share/X11/xkb/symbols/inet and change XF86Hibernate 
key to <I213> and comment out XF86Suspend line

run sudo dpkg-reconfigure xkb-data

*optional: edit /etc/systemd/logind.conf

find line “#HandleLidSwitch=suspend” and uncomment

change suspend to hibernate

Fix scaling to remove distortions

use dconf or gsettings

change /com/canonical/unity/interface/text-scale-factor to 0.95

change /org/gnome/desktop/interface/text-scaling-factor to 0.95

change /org/gnome/desktop/interface/document-font-name to Sans 12

change /org/gnome/desktop/interface/font-name to Ubuntu 12

*optional: install Unity Tweak

sudo apt install unity-tweak-tool
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-devel-discuss/attachments/20160719/d5475b02/attachment.html>


More information about the Ubuntu-devel-discuss mailing list